.qwen-page {
  min-height: 100vh;
  color: var(--text);
}
.qwen-page [hidden] {
  display: none !important;
}
.qwen-shell {
  width: min(100% - 28px, 1696px);
  margin: 0 auto;
}
.qwen-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 0 64px;
}
.qwen-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-faint);
  font-size: 13px;
}
.qwen-breadcrumb a { color: var(--accent); text-decoration: none; }
.qwen-breadcrumb strong { color: var(--text); }
.qwen-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(161, 118, 240, 0.58);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 12%, rgba(84, 214, 219, 0.18), transparent 32%),
    radial-gradient(circle at 8% 88%, rgba(194, 120, 255, 0.2), transparent 38%),
    linear-gradient(120deg, rgba(27, 25, 57, 0.94), rgba(24, 56, 69, 0.9));
  box-shadow: 0 20px 60px rgba(8, 11, 30, 0.24), inset 0 1px rgba(255,255,255,.08);
}
.qwen-hero::after {
  content: "";
  position: absolute;
  top: -120px;
  right: 12%;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255,255,255,.08);
  transform: rotate(28deg);
  box-shadow: 34px 34px 0 rgba(255,255,255,.025), 68px 68px 0 rgba(255,255,255,.018);
  pointer-events: none;
}
.qwen-eyebrow {
  margin-bottom: 12px;
  color: #d8bcff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}
.qwen-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.qwen-testing {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 204, 107, .5);
  border-radius: 999px;
  color: #ffe1a4;
  background: rgba(255, 172, 65, .14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}
.qwen-hero h1 {
  margin: 0;
  color: #f7f4ff;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.qwen-hero h1 em {
  color: #86eef0;
  font-style: normal;
  text-shadow: 0 0 28px rgba(94, 225, 227, .2);
}
.qwen-hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(235, 239, 255, .7);
  font-size: 14px;
  line-height: 1.8;
}
.qwen-service {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 235px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(6, 13, 26, .34);
  backdrop-filter: blur(12px);
}
.qwen-service-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e9b84d;
  box-shadow: 0 0 0 5px rgba(233,184,77,.12);
}
.qwen-service.is-online .qwen-service-dot { background:#5be18a; box-shadow:0 0 0 5px rgba(91,225,138,.12); }
.qwen-service.is-offline .qwen-service-dot { background:#ff6c72; box-shadow:0 0 0 5px rgba(255,108,114,.12); }
.qwen-service b,.qwen-service small { display:block; }
.qwen-service b { color:#f4f5ff; font-size:13px; }
.qwen-service small { margin-top:3px; color:rgba(235,239,255,.52); font-size:10px; }
.qwen-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  gap: 20px;
}
.qwen-panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 12px 34px rgba(7, 12, 30, .12), inset 0 1px rgba(255,255,255,.04);
}
.qwen-panel-head { display:flex; align-items:center; gap:12px; }
.qwen-panel-head h2 { margin:0; color:var(--text); font-size:17px; }
.qwen-panel-head p { margin:4px 0 0; color:var(--text-faint); font-size:11px; }
.qwen-step {
  display:grid;
  place-items:center;
  flex:0 0 31px;
  width:31px;
  height:31px;
  border:1px solid rgba(146,105,230,.58);
  border-radius:10px;
  color:#dac4ff;
  font-size:13px;
  font-weight:900;
  background:rgba(113,71,188,.2);
}
.qwen-subject-wrap {
  position:relative;
  display:flex;
  align-items:center;
  margin-top:22px;
}
.qwen-subject-wrap input {
  box-sizing:border-box;
  width:100%;
  height:64px;
  padding:0 72px 0 48px;
  border:1px solid var(--border);
  border-radius:14px;
  outline:none;
  color:var(--text);
  font:inherit;
  font-size:18px;
  font-weight:800;
  background:var(--panel-2);
}
.qwen-subject-wrap input::placeholder { color:var(--text-faint); font-weight:500; }
.qwen-subject-wrap input:focus { border-color:#a77be7; box-shadow:0 0 0 3px rgba(147,96,222,.12); }
.qwen-subject-icon { position:absolute; left:17px; z-index:1; color:#c49bf6; font-size:17px; pointer-events:none; }
.qwen-subject-wrap>span:last-child { position:absolute; right:15px; color:var(--text-faint); font-size:10px; pointer-events:none; }
.qwen-examples { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:12px; color:var(--text-faint); font-size:10px; }
.qwen-examples button { padding:6px 10px; border:1px solid var(--border); border-radius:999px; color:var(--text-muted); font:inherit; font-size:10px; cursor:pointer; background:var(--panel-2); }
.qwen-examples button:hover { color:#d8bdff; border-color:#9366d6; }
.qwen-generate {
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  width:100%;
  margin-top:18px;
  padding:14px 16px;
  border:1px solid #b98af1;
  border-radius:14px;
  color:#fff;
  cursor:pointer;
  background:linear-gradient(100deg,#7442b8,#2b8da7);
  box-shadow:0 10px 24px rgba(74,49,143,.22);
}
.qwen-generate:hover:not(:disabled) { filter:brightness(1.08); transform:translateY(-1px); }
.qwen-generate:disabled { cursor:not-allowed; filter:saturate(.35); opacity:.62; }
.qwen-generate b { justify-self:start; font-size:14px; }
.qwen-generate small { color:rgba(255,255,255,.7); font-size:10px; }
.qwen-privacy { margin:10px 4px 0; color:var(--text-faint); font-size:10px; line-height:1.6; }
.qwen-result-stage {
  display:grid;
  place-items:center;
  min-height:430px;
  margin-top:16px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:18px;
  background-color:#d9dce1;
  background-image:linear-gradient(45deg,#f3f4f6 25%,transparent 25%),linear-gradient(-45deg,#f3f4f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f3f4f6 75%),linear-gradient(-45deg,transparent 75%,#f3f4f6 75%);
  background-position:0 0,0 12px,12px -12px,-12px 0;
  background-size:24px 24px;
}
.qwen-result-stage>img { width:100%; height:430px; object-fit:contain; image-rendering:auto; }
.qwen-result-empty,.qwen-progress { display:flex; align-items:center; flex-direction:column; gap:8px; padding:30px; color:#56616c; text-align:center; }
.qwen-result-empty>span { font-size:42px; opacity:.55; }
.qwen-result-empty small,.qwen-progress small { font-size:11px; opacity:.72; }
.qwen-progress { width:min(300px,75%); padding:24px; border:1px solid rgba(42,54,68,.13); border-radius:18px; background:rgba(250,252,255,.84); box-shadow:0 12px 30px rgba(33,42,58,.12); }
.qwen-spinner { width:33px; height:33px; border:3px solid rgba(94,77,139,.18); border-top-color:#7952b5; border-radius:50%; animation:qwen-spin .8s linear infinite; }
.qwen-progress-track { width:100%; height:5px; margin-top:5px; overflow:hidden; border-radius:99px; background:rgba(83,72,111,.13); }
.qwen-progress-track i { display:block; width:42%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#8d5dca,#3ca9b4); animation:qwen-loading 1.4s ease-in-out infinite; }
@keyframes qwen-spin { to { transform:rotate(360deg); } }
@keyframes qwen-loading { 0%{transform:translateX(-110%)} 100%{transform:translateX(250%)} }
.qwen-alert { margin-top:12px; padding:10px 12px; border:1px solid rgba(255,102,112,.34); border-radius:10px; color:#ffafb4; font-size:11px; line-height:1.6; background:rgba(187,50,63,.1); }
.qwen-alert.is-success { border-color:rgba(87,220,139,.35); color:#85e9a8; background:rgba(39,155,88,.1); }
.qwen-result-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:12px; }
.qwen-result-actions button,.qwen-history-head button { padding:10px 12px; border:1px solid var(--border); border-radius:10px; color:var(--text); font:inherit; font-size:11px; font-weight:800; cursor:pointer; background:var(--panel-2); }
.qwen-result-actions button:first-child:not(:disabled) { border-color:#54b7a8; color:#89e1ce; }
.qwen-result-actions button:disabled { cursor:not-allowed; opacity:.4; }
.qwen-tips { margin-top:20px; padding:15px 17px; border:1px solid var(--border); border-radius:14px; background:var(--panel-2); }
.qwen-tips h3 { margin:0 0 8px; color:var(--text); font-size:12px; }
.qwen-tips ul { margin:0; padding-left:18px; color:var(--text-faint); font-size:10px; line-height:1.8; }
.qwen-history { margin-top:22px; padding:24px; border:1px solid var(--border); border-radius:22px; background:var(--panel); }
.qwen-history-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; }
.qwen-history-head span { color:#ae85e8; font-size:10px; font-weight:900; letter-spacing:.1em; }
.qwen-history-head h2 { margin:4px 0 0; color:var(--text); font-size:18px; }
.qwen-history-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:11px; }
.qwen-history-card { position:relative; overflow:hidden; border:1px solid var(--border); border-radius:14px; background:var(--panel-2); }
.qwen-history-card img { display:block; width:100%; aspect-ratio:1; object-fit:contain; background-color:#d9dce1; background-image:linear-gradient(45deg,#f3f4f6 25%,transparent 25%),linear-gradient(-45deg,#f3f4f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f3f4f6 75%),linear-gradient(-45deg,transparent 75%,#f3f4f6 75%); background-position:0 0,0 8px,8px -8px,-8px 0; background-size:16px 16px; }
.qwen-history-info { padding:8px 9px 9px; border-top:1px solid var(--border); }
.qwen-history-info strong,.qwen-history-info span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.qwen-history-info strong { color:var(--text); font-size:11px; }
.qwen-history-info span { margin-top:3px; color:var(--text-faint); font-size:9px; }
html[data-theme="day"] .qwen-panel,html[data-theme="day"] .qwen-history { background:rgba(249,244,216,.94); }
html[data-theme="day"] .qwen-step { color:#68418f; background:#eadcf6; }
@media (max-width:900px) {
  .qwen-hero { grid-template-columns:1fr auto; padding:16px 18px; }
  .qwen-service { width:fit-content; }
  .qwen-workspace { grid-template-columns:1fr; }
  .qwen-history-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:600px) {
  .qwen-shell { width:100%; }
  .qwen-main { padding:18px 12px 42px; }
  .qwen-breadcrumb { margin-left:4px; }
  .qwen-hero { grid-template-columns:1fr; gap:12px; padding:16px; border-radius:16px; }
  .qwen-hero h1 { font-size:22px; }
  .qwen-panel { padding:17px; border-radius:18px; }
  .qwen-subject-wrap input { height:58px; padding-left:44px; font-size:16px; }
  .qwen-result-stage { min-height:330px; }
  .qwen-result-stage>img { height:330px; }
  .qwen-generate { grid-template-columns:auto 1fr; }
  .qwen-generate small { display:none; }
  .qwen-history { padding:17px; }
  .qwen-history-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
