/* Final product-family polish: fixed theme, editorial rhythm, no template gloss. */
:root {
  --v2-bg: #06101a;
  --v2-bg-soft: #0a1420;
  --v2-panel: #0d1827;
  --v2-panel-strong: #111e2f;
  --v2-panel-muted: #09131f;
  --v2-line: #203044;
  --v2-line-strong: #315168;
  --v2-text: #f4f7fa;
  --v2-muted: #a4b0bd;
  --v2-dim: #728397;
  --v2-accent: #65d9ff;
  --v2-accent-soft: rgba(101, 217, 255, .10);
  --v2-success: #6ee7b7;
}

html { scroll-padding-top: 72px; }
.aive-no-break { white-space: nowrap; }
.aive-site-header { height: 64px !important; min-height: 64px !important; }
.aive-site-nav {
  width: min(1200px, calc(100% - 40px)) !important;
  height: 63px !important;
}
.aive-site-nav .nav-logo-img {
  width: 31px !important;
  height: 31px !important;
  flex-basis: 31px !important;
}
.aive-site-nav .nav-cta,
body.aive-v2 input,
body.aive-v2 textarea,
body.aive-v2 select { border-radius: 8px !important; }
.aive-site-footer .aive-footer-shell { width: min(1200px, calc(100% - 48px)); }
.aive-site-footer .footer-logo { width: 31px !important; height: 31px !important; }

.aive-surface-home .aive-abc-hero .btn-primary,
.aive-surface-home .aive-abc-hero .btn-outline { border-radius: 8px !important; }
.aive-surface-home .hero-badge::before {
  background: var(--v2-accent) !important;
  box-shadow: none !important;
}
.aive-surface-home .hero-title-accent {
  color: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.aive-surface-home .aive-ghost-link { display: none !important; }
.aive-surface-home .aive-abc-cards article {
  padding: 24px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--v2-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.aive-surface-tools .tools-page,
.aive-surface-blog .blog-page,
.aive-surface-wechat .mp-page,
.aive-surface-account .page { padding-top: 120px !important; }

.aive-surface-tools .tools-grid-page {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 32px !important;
}
.aive-surface-tools .tool-item {
  padding: 22px 0 24px !important;
  border: 0 !important;
  border-top: 1px solid var(--v2-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.aive-surface-tools .tool-item:hover {
  border-color: var(--v2-line-strong) !important;
  transform: none !important;
  box-shadow: none !important;
}

.aive-surface-blog .blog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 32px !important;
}
.aive-surface-blog .blog-card {
  padding: 24px 0 26px !important;
  border: 0 !important;
  border-top: 1px solid var(--v2-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.aive-surface-blog .blog-card:hover {
  border-color: var(--v2-line-strong) !important;
  transform: none !important;
  box-shadow: none !important;
}

.aive-surface-wechat .mp-header,
.aive-surface-wechat .mp-service-card,
.aive-surface-wechat .article-item,
.aive-surface-wechat .tip-box,
.aive-surface-image .tool-panel,
.aive-surface-image .credits-bar,
.aive-surface-image .model-intro,
.aive-surface-image .result-card,
.aive-surface-image .history-item { border-radius: 8px !important; box-shadow: none !important; }
.aive-surface-wechat .article-item:hover { transform: none !important; }

.aive-surface-image {
  --accent: var(--v2-accent) !important;
  --accent-glow: transparent !important;
  --gradient: linear-gradient(#fff, #fff) !important;
}
.aive-surface-image .hero h1 {
  color: var(--v2-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-wrap: balance;
}
body.aive-v2.aive-surface-image .type-btn.active,
body.aive-v2.aive-surface-image .style-btn.active {
  border-color: var(--v2-accent) !important;
  color: var(--v2-text) !important;
  background: var(--v2-accent-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}
.aive-surface-image .type-btn:hover,
.aive-surface-image .style-btn:hover,
.aive-surface-image .prompt-area textarea:focus { border-color: var(--v2-line-strong) !important; }
.aive-surface-image .example-chip {
  border-color: var(--v2-line) !important;
  color: var(--v2-muted) !important;
  background: transparent !important;
}
.aive-surface-image .btn-generate {
  border: 1px solid #fff !important;
  border-radius: 8px !important;
  color: #07111d !important;
  background: #fff !important;
  box-shadow: none !important;
}
.aive-surface-image .btn-generate:hover { border-color: var(--v2-accent) !important; background: var(--v2-accent) !important; transform: none !important; }
.aive-surface-image .loading-bar { background: var(--v2-accent) !important; }

.aive-surface-auth .card { border-radius: 10px !important; }
.aive-surface-auth .btn-submit { border-radius: 8px !important; }
.aive-surface-auth::before { display: none !important; }
.aive-surface-auth .logo img { display: none !important; }
.aive-surface-auth .logo { margin-bottom: 22px !important; }
.aive-surface-auth .logo h1 {
  margin-top: 0 !important;
  color: var(--v2-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.aive-surface-account .info-grid { gap: 0 32px !important; }
.aive-surface-account .info-card {
  padding: 22px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--v2-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.aive-surface-account .record-item,
.aive-surface-account .tabs { border-radius: 8px !important; box-shadow: none !important; }
.aive-surface-account .card-icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 0 !important;
  color: var(--v2-accent) !important;
  background: transparent !important;
  box-shadow: none !important;
}
.aive-surface-account .card-icon svg { width: 22px !important; height: 22px !important; }
.aive-surface-account .tab.active {
  color: var(--v2-text) !important;
  background: var(--v2-accent-soft) !important;
  box-shadow: inset 0 0 0 1px var(--v2-line-strong) !important;
}

.aive-surface-article .highlight-box,
.aive-surface-article .evidence-box,
.aive-surface-article .tip-box,
.aive-surface-article .step-box,
.aive-surface-article .summary-box,
.aive-surface-article .cta-box,
.aive-surface-article .box,
.aive-surface-article .tool-card,
.aive-surface-article .lead,
.aive-surface-media .aive-media-panel { border-radius: 8px !important; box-shadow: none !important; }
.aive-surface-media .aive-media-page {
  min-height: calc(100vh - 64px);
  padding-top: 104px;
}

@media (max-width: 760px) {
  .aive-site-nav .nav-menu {
    top: 64px !important;
    max-height: calc(100vh - 80px) !important;
  }
  .aive-surface-home .aive-abc-hero { padding-top: 100px !important; }
  .aive-surface-home .aive-abc-hero .hero-title { font-size: 40px !important; }
  .aive-surface-tools .tools-page,
  .aive-surface-blog .blog-page,
  .aive-surface-wechat .mp-page,
  .aive-surface-account .page { padding-top: 100px !important; }
  .aive-surface-tools .tools-page > h1,
  .aive-surface-blog .blog-page > h1,
  .aive-surface-wechat .mp-page > h1,
  .aive-surface-account .page-header h1 { font-size: 36px !important; }
  .aive-surface-image .hero h1 { font-size: 34px !important; line-height: 1.12 !important; }
  .aive-surface-article .article-page h1 { font-size: 30px !important; line-height: 1.18 !important; text-wrap: balance; }
  .aive-surface-tools .tools-grid-page,
  .aive-surface-blog .blog-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .aive-surface-auth .container { padding-top: 100px !important; }
  .aive-surface-auth .card { border-radius: 10px !important; }
  .aive-surface-article .article-page,
  .aive-surface-article > .container,
  .aive-surface-article .article-wrap,
  .aive-surface-article .article { padding-top: 100px !important; }
  body.aive-v2.aive-surface-legal { padding-top: 100px !important; }
}
