/* Lingzo brand v4 — layout & polish */

.page-glow {

  position: fixed;

  inset: 0;

  pointer-events: none;

  z-index: 0;

  background:

    radial-gradient(ellipse 70% 55% at 15% -5%, rgba(124, 92, 255, 0.16), transparent 55%),

    radial-gradient(ellipse 50% 40% at 95% 15%, rgba(255, 107, 157, 0.08), transparent 50%);

}



/* ── Header (full-width sticky) ── */

.site-header {

  position: sticky;

  top: 0;

  z-index: 200;

  width: 100%;

  border-bottom: 1px solid var(--border-soft);

  background: rgba(7, 7, 12, 0.92);

  backdrop-filter: blur(18px);

  margin-bottom: 0;

  padding: 0;

}



.site-header-inner {

  max-width: 1160px;

  margin: 0 auto;

  padding: 0.75rem 1.25rem;

  display: flex;

  align-items: center;

  gap: 1rem;

}



.lingzo-app {

  position: relative;

  z-index: 1;

  max-width: 1160px;

  margin: 0 auto;

  padding: 1.5rem 1.25rem 3rem;

}



.brand-name {

  display: block;

  font-family: var(--font-display);

  font-size: 1.1rem;

  font-weight: 700;

  letter-spacing: -0.02em;

  line-height: 1.2;

}



.brand-sub {

  font-size: 0.72rem;

  color: var(--muted);

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  max-width: 12rem;

}



.brand-mark {

  width: 40px;

  height: 40px;

  border-radius: 12px;

  flex-shrink: 0;

  box-shadow: 0 4px 18px var(--accent-glow);

}



.brand-mark.sm { width: 34px; height: 34px; font-size: 0.68rem; }



.site-nav {

  display: flex;

  align-items: center;

  gap: 0.15rem;

  margin-left: auto;

  margin-right: 0.5rem;

}



.site-nav a {

  font-size: 0.86rem;

  font-weight: 500;

  padding: 0.42rem 0.7rem;

  border-radius: 999px;

  color: var(--muted);

  text-decoration: none;

  transition: background 0.15s, color 0.15s;

  white-space: nowrap;

}



.site-nav a:hover {

  color: var(--text);

  background: rgba(255, 255, 255, 0.05);

}



.header-actions {

  display: flex;

  align-items: center;

  gap: 0.5rem;

  flex-shrink: 0;

}



.header-auth,

.header-user {

  display: flex;

  align-items: center;

  gap: 0.45rem;

}



.nav-toggle {

  display: none;

  margin-left: auto;

  width: 2.25rem;

  height: 2.25rem;

  border-radius: 8px;

  border: 1px solid var(--border);

  background: var(--surface-2);

  color: var(--text);

  font-size: 1.1rem;

  cursor: pointer;

}



/* User dropdown */

.user-menu-wrap { position: relative; }



.user-menu-trigger {

  display: flex;

  align-items: center;

  gap: 0.45rem;

  padding: 0.35rem 0.6rem 0.35rem 0.35rem;

  border-radius: 999px;

  border: 1px solid var(--border);

  background: var(--surface-2);

  color: var(--text);

  font-family: var(--font);

  font-size: 0.82rem;

  cursor: pointer;

  max-width: 10rem;

}



.user-menu-trigger:hover { border-color: var(--accent); }



.user-avatar {

  width: 1.65rem;

  height: 1.65rem;

  border-radius: 50%;

  background: linear-gradient(135deg, var(--accent), var(--accent-2));

  display: grid;

  place-items: center;

  font-size: 0.7rem;

  font-weight: 700;

  flex-shrink: 0;

}



.user-email-short {

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

}



.user-menu {

  position: absolute;

  top: calc(100% + 0.4rem);

  right: 0;

  min-width: 13rem;

  padding: 0.35rem;

  border-radius: 12px;

  border: 1px solid var(--border);

  background: var(--surface);

  box-shadow: var(--shadow-card);

  z-index: 300;

}



.user-menu-meta {

  font-size: 0.75rem;

  color: var(--muted);

  padding: 0.45rem 0.65rem 0.55rem;

  line-height: 1.45;

  border-bottom: 1px solid var(--border-soft);

  margin-bottom: 0.25rem;

}



.user-menu-item {

  display: block;

  width: 100%;

  text-align: left;

  padding: 0.5rem 0.65rem;

  border: none;

  border-radius: 8px;

  background: transparent;

  color: var(--text);

  font-family: var(--font);

  font-size: 0.85rem;

  cursor: pointer;

}



.user-menu-item:hover { background: rgba(124, 92, 255, 0.1); }

.user-menu-danger { color: #fca5a5; }



.plan-badge {

  font-size: 0.68rem;

  padding: 0.2rem 0.5rem;

  white-space: nowrap;

}



/* ── Buttons ── */

.lingzo-app .btn-primary {

  width: auto;

  margin-top: 0;

  box-shadow: 0 4px 18px rgba(124, 92, 255, 0.32);

  transition: transform 0.15s, box-shadow 0.15s;

}



.lingzo-app .btn-primary.btn-block { width: 100%; margin-top: 0; }

.lingzo-app .action-row .btn-primary,

.lingzo-app .action-row .btn-secondary { margin-top: 0; }



.lingzo-app .btn-primary:hover:not(:disabled) {

  transform: translateY(-1px);

  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.42);

}



.lingzo-app .btn-secondary { margin-top: 0; width: auto; }

.lingzo-app .btn-secondary.btn-block { width: 100%; }



.btn-lg { padding: 0.72rem 1.4rem; font-size: 0.94rem; }



/* ── Hero ── */

.hero {

  display: grid;

  grid-template-columns: 1.15fr 0.85fr;

  gap: 1.75rem;

  align-items: stretch;

  padding: 0.5rem 0 2rem;

  margin-bottom: 0.5rem;

}



.hero-title {

  font-family: var(--font-display);

  font-size: clamp(2.2rem, 5.5vw, 3.4rem);

  line-height: 1.08;

  letter-spacing: -0.03em;

  font-weight: 800;

  margin-bottom: 0.5rem;

}



.hero-title-line2 {

  display: block;

  color: var(--text);

  margin-top: 0.1rem;

}



.gradient-text {

  background: linear-gradient(120deg, #c4b5fd 0%, #f472b6 55%, #fb923c 100%);

  -webkit-background-clip: text;

  background-clip: text;

  color: transparent;

}



.hero-slogan-cn {

  font-size: 1.05rem;

  font-weight: 600;

  color: #d4d4e8;

  margin-bottom: 0.65rem;

}



.hero-lead {

  font-size: 0.95rem;

  line-height: 1.65;

  color: var(--muted);

  margin-bottom: 1.25rem;

  max-width: 34rem;

}



.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }



.hero-stats-card {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0.85rem;

  padding: 1.25rem;

  align-content: center;

  border: 1px solid var(--border-soft);

  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);

  box-shadow: var(--shadow-glow);

}



.hero-stat {

  display: flex;

  flex-direction: column;

  gap: 0.2rem;

  padding: 0.65rem 0.75rem;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid var(--border-soft);

}



.hero-stat strong {

  font-family: var(--font-display);

  font-size: 1.15rem;

  font-weight: 700;

  color: var(--text);

}



.hero-stat span { font-size: 0.74rem; color: var(--muted); line-height: 1.35; }



/* ── Sections ── */

.section-block { margin-bottom: 3rem; }



.section-alt {

  padding: 2rem 1.5rem;

  border-radius: var(--radius);

  border: 1px solid var(--border-soft);

  background: rgba(16, 16, 24, 0.55);

}



.section-head { margin-bottom: 1.5rem; }



.section-head-center { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }



.section-head-inline {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 1rem;

  flex-wrap: wrap;

  margin-bottom: 1.25rem;

}



.section-head-inline h2 { margin-bottom: 0; }



.section-eyebrow {

  text-transform: uppercase;

  letter-spacing: 0.12em;

  font-size: 0.66rem;

  font-weight: 700;

  color: var(--accent);

  margin-bottom: 0.35rem;

}



.section-head h2 {

  font-family: var(--font-display);

  font-size: clamp(1.45rem, 2.8vw, 1.85rem);

  font-weight: 700;

  letter-spacing: -0.02em;

  margin-bottom: 0.35rem;

}



.section-lead {

  color: var(--muted);

  font-size: 0.92rem;

  line-height: 1.55;

  margin-bottom: 0;

}



.workspace-hint { font-size: 0.85rem; text-align: right; max-width: 16rem; }



/* ── Workspace ── */

.workspace-section { margin-bottom: 3rem; }



.workspace-shell {

  padding: 1.5rem 1.5rem 1.75rem;

  border: 1px solid rgba(124, 92, 255, 0.28);

  background: linear-gradient(165deg, rgba(124, 92, 255, 0.07) 0%, var(--surface) 35%);

  box-shadow: var(--shadow-glow);

}



.workspace-shell .upload-section { margin-bottom: 0; }



.auth-gate {

  text-align: center;

  padding: 2.5rem 1.5rem;

  border: 1px dashed rgba(124, 92, 255, 0.35);

  border-radius: var(--radius-sm);

  background: rgba(124, 92, 255, 0.04);

  margin-bottom: 0;

}



.auth-gate-icon { font-size: 2rem; margin-bottom: 0.65rem; opacity: 0.85; }

.auth-gate-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }

.auth-gate-sub { margin-bottom: 1.15rem; font-size: 0.86rem; color: var(--muted); }

.guest-login-cta {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.22);
  font-size: 0.84rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.results-upsell {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-upsell p { margin: 0; }



.input-mode-tabs {

  margin-bottom: 1rem;

  padding: 0.25rem;

  border-radius: 999px;

  background: var(--surface-2);

  border: 1px solid var(--border-soft);

  display: inline-flex;

  gap: 0.25rem;

}



.input-mode-tab {

  border: none;

  background: transparent;

  border-radius: 999px;

  padding: 0.45rem 1rem;

}



.input-mode-tab.active {

  background: rgba(124, 92, 255, 0.22);

  border: 1px solid rgba(124, 92, 255, 0.4);

}



.url-input-row {

  padding: 1.15rem;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border-soft);

  background: var(--surface-2);

}



.dropzone {

  border-color: rgba(124, 92, 255, 0.3);

  background: rgba(124, 92, 255, 0.03);

  padding: 2.25rem 1.5rem;

}



.action-row { margin-top: 1rem; }



/* ── Features ── */

.features-grid-3 {

  grid-template-columns: repeat(3, 1fr);

  gap: 1rem;

}



.feature-card {

  border: 1px solid var(--border-soft);

  padding: 1.25rem;

  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;

  height: 100%;

}



.feature-card:hover {

  transform: translateY(-2px);

  border-color: rgba(124, 92, 255, 0.35);

  box-shadow: var(--shadow-glow);

}



.feature-icon {

  font-size: 1.35rem;

  display: flex;

  align-items: center;

  justify-content: center;

  width: 2.5rem;

  height: 2.5rem;

  border-radius: 10px;

  background: rgba(124, 92, 255, 0.12);

  margin-bottom: 0.75rem;

}



.feature-card h3 {

  font-size: 0.98rem;

  font-weight: 600;

  margin-bottom: 0.4rem;

}



.feature-card p { font-size: 0.84rem; line-height: 1.5; }



.platform-box {

  margin-top: 1.75rem;

  padding: 1rem 1.15rem;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border-soft);

  background: rgba(0, 0, 0, 0.15);

}



.platform-box-label {

  font-size: 0.72rem;

  text-transform: uppercase;

  letter-spacing: 0.08em;

  color: var(--muted);

  margin-bottom: 0.65rem;

}



.platform-chips {

  display: flex;

  flex-wrap: wrap;

  gap: 0.4rem;

  justify-content: flex-start;

}



.platform-chips span {

  font-size: 0.74rem;

  padding: 0.28rem 0.6rem;

  border-radius: 999px;

  background: rgba(124, 92, 255, 0.1);

  border: 1px solid rgba(124, 92, 255, 0.22);

  color: #c4b5fd;

}



/* ── Pricing ── */

.pricing-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 1rem;

  align-items: stretch;

}



.pricing-card {

  display: flex;

  flex-direction: column;

  gap: 0.75rem;

  padding: 1.25rem 1.15rem 1.15rem;

  height: 100%;

  border: 1px solid var(--border-soft);

  text-align: left;

}



.pricing-card .pricing-cta { margin-top: auto; align-self: stretch; }



.pricing-card.featured {

  border-color: rgba(124, 92, 255, 0.45);

  background: linear-gradient(165deg, var(--surface) 0%, rgba(124, 92, 255, 0.08) 100%);

  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.2), var(--shadow-glow);

}



.pricing-card .pricing-name {

  font-family: var(--font-body);

  font-weight: 600;

  font-size: 0.95rem;

  letter-spacing: 0;

  margin: 0;

  color: var(--text);

}



.pricing-card .price {

  font-family: var(--font-body);

  font-weight: 700;

  font-size: 1.2rem;

  line-height: 1.35;

  letter-spacing: 0;

  margin: 0;

  color: var(--text);

  font-variant-numeric: tabular-nums;

}



.pricing-feats {

  flex: 1;

  margin: 0;

  padding: 0;

  list-style: none;

  color: var(--muted);

  font-size: 0.84rem;

  line-height: 1.55;

}



.pricing-feats li {

  margin-bottom: 0.4rem;

  padding-left: 1.05rem;

  position: relative;

}



.pricing-feats li::before {

  content: "✓";

  position: absolute;

  left: 0;

  color: var(--success);

  font-size: 0.78rem;

}



/* ── Bottom grid (downloads + contact) ── */

.bottom-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1.5rem;

  align-items: start;

}



.bottom-col .section-head { margin-bottom: 1rem; }

.bottom-col .section-head h2 { font-size: 1.35rem; }



.downloads-list {

  display: flex;

  flex-direction: column;

  gap: 0.65rem;

}



.download-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 1rem;

  padding: 0.85rem 1rem;

  border-radius: var(--radius-sm);

  border: 1px solid var(--border-soft);

  background: var(--surface);

  transition: border-color 0.15s;

}



.download-row:hover { border-color: rgba(124, 92, 255, 0.35); }



.download-row-info h3 { font-size: 0.92rem; font-weight: 600; margin-bottom: 0.15rem; }

.download-row-info p { font-size: 0.8rem; color: var(--muted); margin: 0; }



.desktop-inline {

  margin-top: 1rem;

  padding: 0.85rem 1rem;

  border-radius: var(--radius-sm);

  border: 1px dashed var(--border);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 0.75rem;

  flex-wrap: wrap;

}



.desktop-note-text { font-size: 0.82rem; margin: 0; flex: 1; min-width: 10rem; }



.contact-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 1rem;

  padding: 1.25rem;

  margin: 0;

}



.contact-item-wide { grid-column: 1 / -1; }



.contact-item strong {

  display: block;

  font-size: 0.72rem;

  text-transform: uppercase;

  letter-spacing: 0.06em;

  color: var(--muted);

  margin-bottom: 0.3rem;

}



.contact-value { font-size: 1rem; font-weight: 600; word-break: break-all; }



/* ── Results ── */

.results-toolbar { margin-bottom: 0.75rem; display: flex; justify-content: flex-end; }



.studio-card { margin-bottom: 0; }

.studio-card h3 { font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--text); margin-bottom: 0.25rem; }



.suno-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 0.75rem;

  flex-wrap: wrap;

  margin-bottom: 0.75rem;

}



.suno-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }



/* ── Footer ── */

.site-footer {

  margin-top: 1rem;

  padding-top: 2rem;

  border-top: 1px solid var(--border-soft);

}



.footer-inner {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 0.65rem;

  text-align: center;

}



.footer-brand {

  display: flex;

  align-items: center;

  gap: 0.75rem;

  margin-bottom: 0.25rem;

  text-align: left;

}



.footer-slogan {

  font-family: var(--font-display);

  font-size: 0.85rem;

  color: var(--muted);

  font-weight: 600;

  margin-top: 0.1rem;

}



.footer-links {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  gap: 0.75rem;

}



.footer-links a,

.footer-links .link-btn {

  color: var(--muted);

  text-decoration: none;

  font-size: 0.84rem;

}



.footer-links a:hover { color: var(--accent-2); }



.modal-footnote { font-size: 0.8rem; margin-top: 0.5rem; }



.api-guide-panel {

  margin: 0.75rem 0 1rem;

  padding: 0.85rem 1rem;

  font-size: 0.82rem;

  line-height: 1.5;

  background: rgba(124, 92, 255, 0.06);

  border: 1px solid rgba(124, 92, 255, 0.2);

}



.api-banner {

  margin-bottom: 1.25rem;

  border-radius: var(--radius-sm);

}



/* ── Responsive ── */

@media (max-width: 960px) {

  .features-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  .hero { grid-template-columns: 1fr; }

  .hero-stats-card { grid-template-columns: repeat(4, 1fr); }

  .bottom-grid { grid-template-columns: 1fr; }

}



@media (max-width: 720px) {

  .nav-toggle { display: grid; place-items: center; }



  .site-nav {

    display: none;

    position: absolute;

    top: 100%;

    left: 0;

    right: 0;

    flex-direction: column;

    align-items: stretch;

    margin: 0;

    padding: 0.5rem;

    background: rgba(7, 7, 12, 0.97);

    border-bottom: 1px solid var(--border-soft);

  }



  .site-nav.open { display: flex; }



  .site-nav a {

    padding: 0.65rem 0.85rem;

    border-radius: 8px;

  }



  .site-header-inner { position: relative; flex-wrap: wrap; }



  .header-actions { margin-left: auto; }



  .plan-badge { display: none; }



  .features-grid-3,

  .pricing-grid { grid-template-columns: 1fr; }



  .hero-stats-card { grid-template-columns: 1fr 1fr; }



  .section-head-inline { flex-direction: column; align-items: flex-start; }

  .workspace-hint { text-align: left; max-width: none; }



  .section-alt { padding: 1.5rem 1rem; }



  .contact-grid { grid-template-columns: 1fr; }



  .lingzo-app { padding: 1rem 1rem 2.5rem; }

}

/* ── v5: 顶栏网格 + 登录按钮修复 ── */
.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1.25rem;
  padding: 0.65rem 1.25rem;
}

.site-header .brand {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-header .brand-mark {
  flex-shrink: 0;
}

.site-header .brand-name {
  display: inline;
  white-space: nowrap;
  line-height: 1;
  font-size: 1.05rem;
}

.site-nav a {
  font-size: 0.88rem;
}

.workspace-unified {
  border-color: rgba(124, 92, 255, 0.28);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.workspace-hint-line {
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 0.65rem;
}

.site-notice {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
}

.site-notice.hidden { display: none; }

.step-hint {
  font-size: 0.82rem;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.step-hint-action { margin-bottom: 0.5rem; }

.settings-help-link {
  font-size: 0.82rem;
  margin: 0 0 0.75rem;
}

.settings-help-link a { color: var(--accent-2); }

.help-page { max-width: 820px; }

.help-hero { margin-bottom: 1.5rem; }

.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.help-toc a {
  font-size: 0.88rem;
  color: var(--accent-2);
  text-decoration: none;
}

.help-article {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.help-article h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}

.help-prose {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-soft, var(--muted));
}

.help-prose p { margin: 0 0 0.75rem; }

.help-prose ol, .help-prose ul {
  margin: 0 0 0.75rem 1.1rem;
  padding: 0;
}

.help-foot {
  margin: 1.5rem 0 2rem;
  font-size: 0.88rem;
}

.help-foot a { color: var(--accent-2); }

.contact-hint { font-size: 0.85rem; margin-top: 0.5rem; }

.payment-qr-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.payment-qr-card {
  margin: 0;
  text-align: center;
}

.payment-qr-card img {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--border-soft);
}

.payment-qr-card figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.qr-preview-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.qr-preview img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}

.site-header .brand { min-width: 0; }

.site-header .site-nav {
  margin-left: 0;
  margin-right: 0;
  justify-content: center;
  justify-self: center;
}

.site-header .header-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}

.site-header .header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.22rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
}

/* 顶栏按钮：覆盖 styles.css 的 width:100% */
.site-header .btn-primary,
.site-header .btn-secondary,
.site-header .btn-ghost,
.site-header .btn-sm {
  width: auto !important;
  margin-top: 0 !important;
  max-width: none;
}

/* ── LingScan: workspace-first + unified hero ── */
.workspace-first {
  margin-top: 0;
  padding-top: 0.25rem;
}

.workspace-unified {
  padding: 0;
  overflow: hidden;
}

.workspace-hero {
  text-align: center;
  padding: 1.75rem 1.5rem 1.35rem;
}

.workspace-hero .hero-title {
  font-size: clamp(1.65rem, 3.8vw, 2.35rem);
  margin: 0 auto 0.65rem;
  max-width: 28rem;
  line-height: 1.15;
}

.workspace-hero .hero-lead {
  margin: 0 auto 1.15rem;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 40rem;
  margin: 0 auto;
}

.hero-stats-row .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-soft);
  align-items: center;
  text-align: center;
}

.hero-stats-row .hero-stat strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.hero-stats-row .hero-stat span {
  font-size: 0.72rem;
}

.workspace-divider {
  height: 1px;
  margin: 0 1.25rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(124, 92, 255, 0.35) 20%,
    rgba(124, 92, 255, 0.35) 80%,
    transparent
  );
}

.workspace-unified .workspace-hint-line:not(.hidden) {
  margin: 1rem 1.35rem 0;
}

.workspace-unified .upload-section {
  padding: 1.15rem 1.35rem 1.4rem;
}

.workspace-unified .loading,
.workspace-unified .auth-gate,
.workspace-unified .warnings,
.workspace-unified #results,
.workspace-unified #studio {
  margin-left: 1.35rem;
  margin-right: 1.35rem;
  margin-bottom: 1.35rem;
}

.workspace-unified .auth-gate:first-of-type,
.workspace-unified .loading:first-of-type {
  margin-top: 0.25rem;
}

.workspace-first .workspace-shell:not(.workspace-unified) {
  padding: 1.25rem 1.35rem 1.5rem;
}

.workspace-hint-line {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  text-align: center;
}

.dropzone-hero {
  min-height: 200px;
  border-width: 2px;
  border-style: dashed;
}

.dropzone-hero.has-file {
  min-height: 120px;
  opacity: 0.72;
}

.dropzone-hero h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0;
}

.file-ready-panel {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(76, 175, 130, 0.1);
  border: 1px solid rgba(76, 175, 130, 0.35);
}

.file-ready-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(76, 175, 130, 0.25);
  color: #7dffb8;
  font-weight: 700;
  flex-shrink: 0;
}

.file-ready-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.file-ready-meta {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--text);
  word-break: break-all;
}

.file-ready-sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}

.post-file-cta {
  margin: 0.75rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
}

.lang-select {
  appearance: none;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 1.6rem 0.35rem 0.65rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}

.lang-select:focus {
  outline: 2px solid rgba(124, 92, 255, 0.45);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* legacy lang buttons */
.lang-switch { display: none; }

.hero-compact {
  margin-top: 2.5rem;
  padding-top: 1rem;
}

@media (max-width: 900px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 22rem;
  }
}

@media (max-width: 560px) {
  .workspace-hero {
    padding: 1.35rem 1rem 1.1rem;
  }

  .workspace-unified .upload-section {
    padding: 1rem;
  }

  .workspace-divider {
    margin: 0 1rem;
  }

  .hero-stats-row {
    gap: 0.5rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-header .header-auth .btn-ghost.btn-sm {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
}

.site-header .header-auth .btn-ghost.btn-sm:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-header .header-auth .btn-primary.btn-sm {
  padding: 0.48rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  border: none;
  box-shadow: 0 2px 12px rgba(124, 92, 255, 0.35);
}

.btn-primary.btn-sm {
  width: auto;
  margin-top: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5a3fd4);
  border: none;
}

.site-header .nav-toggle {
  margin-left: 0;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    row-gap: 0;
  }

  .site-header .brand { grid-column: 1; grid-row: 1; }

  .site-header .header-right {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }

  .site-header-inner { flex-wrap: nowrap; }
}

/* ── v6: 官方 LOGO 图片 ── */
img.brand-mark,
.brand-mark img,
.brand-mark[src$=".svg"] {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  padding: 0;
  font-size: 0;
  filter: drop-shadow(0 2px 10px rgba(124, 92, 255, 0.22));
}

img.brand-mark.sm,
.brand-mark.sm {
  width: 32px;
  height: 32px;
  font-size: 0;
}

.login-brand img.brand-mark,
.admin-sidebar .brand-mark {
  width: 36px;
  height: 36px;
}

.mobile-lite-banner {
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.2), rgba(255, 107, 157, 0.1));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.mobile-lite-banner span { flex: 1; color: var(--text-muted, #b8b8c8); }

.mobile-lite-banner a {
  color: var(--accent, #7c5cff);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-lite-dismiss {
  border: none;
  background: transparent;
  color: var(--text-muted, #9b9bb0);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.install-ios-dialog {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 22px;
  max-width: 360px;
  width: calc(100% - 32px);
  background: #12121a;
  color: #f2f2f7;
}

.install-ios-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }

.install-ios-dialog h3 { margin: 0 0 12px; }

.install-ios-dialog ol {
  margin: 0 0 16px;
  padding-left: 1.2rem;
  line-height: 1.55;
  color: #9b9bb0;
}

.install-ios-dialog .btn-primary { width: 100%; }

.radar-section {
  padding-top: 2rem;
}

.radar-card-single {
  max-width: 760px;
  margin: 0 auto;
}

.radar-meta {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--text-muted, #9b9bb0);
}

.radar-track-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radar-track-item {
  display: grid;
  grid-template-columns: 28px 44px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.radar-rank {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent, #7c5cff);
  line-height: 1.3;
}

.radar-track-main strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  margin-bottom: 4px;
}

.radar-track-main a {
  color: inherit;
  text-decoration: none;
}

.radar-track-main a:hover {
  color: var(--accent, #7c5cff);
}

.radar-track-sub {
  font-size: 0.78rem;
  color: var(--text-muted, #9b9bb0);
}

.radar-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff6b9d;
  white-space: nowrap;
}

.radar-empty {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted, #9b9bb0);
}

.radar-legal {
  margin: 16px 0 0;
  font-size: 0.78rem;
  text-align: center;
}

.radar-cover {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.radar-cover-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent, #7c5cff);
}

.radar-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.radar-tag {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  color: #d4c8ff;
}

