/* 柳州图灵科技 Demo — design-demo-v0.1 tokens
   navy #0B1F33 · steel #1A3A52 · panel #E8EDF2 · accent #C45C26 (铜橙)
*/

:root {
  --navy: #0b1f33;
  --steel: #1a3a52;
  --panel: #e8edf2;
  --paper: #ffffff;
  --ink: #0f172a;
  --mute: #64748b;
  --accent: #c45c26;
  --accent-hover: #a84c1f;
  --accent-soft: rgba(196, 92, 38, 0.12);
  --steel-soft: rgba(26, 58, 82, 0.08);
  --border: #d0d8e0;
  --border-strong: #b4c0cc;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: 0 8px 28px rgba(11, 31, 51, 0.12);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 64px;
  --footnote: 0.75rem;
  --leaf: #2f7d4a;
  --leaf-soft: #e8f2ec;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--panel);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--steel);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.footnote,
.demo-note {
  font-size: var(--footnote);
  color: var(--mute);
  margin-top: 0.65rem;
}

.badge-demo {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(196, 92, 38, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
}

.badge-soon {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mute);
  background: var(--steel-soft);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo:hover {
  text-decoration: none;
  color: #fff;
  opacity: 0.92;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--steel), var(--accent));
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  text-decoration: none !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
    border-radius: 6px;
  }

  .nav a:hover {
    background: var(--steel);
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--steel);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  border-color: rgba(196, 92, 38, 0.4);
}

.btn-disabled,
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.hero .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero .btn-secondary:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* —— Sections —— */
.section {
  padding: 4rem 0;
  background: var(--paper);
}

.section-alt {
  background: var(--panel);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--mute);
  max-width: 40rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

/* —— 1. Hero —— */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 82% 20%, rgba(47, 125, 74, 0.28), transparent 70%),
    radial-gradient(ellipse 70% 55% at 75% 25%, rgba(26, 58, 82, 0.85), transparent),
    radial-gradient(ellipse 40% 35% at 15% 85%, rgba(196, 92, 38, 0.12), transparent);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.hero h1::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--leaf);
  border-radius: 2px;
}

.hero-values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0;
}

.hero-values li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(232, 242, 236, 0.92);
}

.hero-values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
}

.hero-visual {
  background: var(--steel);
  border: 1px solid rgba(47, 125, 74, 0.35);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  z-index: 0;
  filter: saturate(0.85);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(11, 31, 51, 0.55) 20%, rgba(47, 125, 74, 0.22) 100%),
    linear-gradient(135deg, transparent 45%, rgba(196, 92, 38, 0.12));
  z-index: 0;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-role {
  font-size: 0.85rem;
  color: rgba(232, 242, 236, 0.78);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  max-width: 34rem;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .footnote {
  color: rgba(255, 255, 255, 0.45);
}

.hero-visual-label {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  padding: 0 1.5rem;
}

.hero-visual-code {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, monospace;
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-height: 200px;
  }
}

/* —— 2. Trust bar —— */
.trust-bar {
  padding: 1.15rem 0;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.trust-bar .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.25rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.trust-bar .footnote {
  text-align: center;
  width: 100%;
  margin-top: 0.65rem;
}

/* —— Cards —— */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

@media (max-width: 960px) {
  .cards-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-4,
  .cards-3,
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.section-alt .card {
  border-color: var(--border-strong);
  box-shadow: 0 1px 0 rgba(11, 31, 51, 0.04);
}

.card:hover {
  border-color: var(--steel);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--steel-soft);
  color: var(--steel);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.card h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--mute);
  font-size: 0.9rem;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* —— 4. Product matrix —— */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, var(--steel), var(--navy));
  border-radius: 8px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--steel);
  position: relative;
  overflow: hidden;
}

.product-thumb-code {
  font-family: ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}

.product-thumb.coming {
  background: linear-gradient(160deg, #3a4a5a, #2a3848);
  opacity: 0.85;
}

.product-thumb.coming::after {
  content: "即将发布";
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 51, 0.45);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.12em;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--mute);
  margin-bottom: 0.25rem;
}

.product-card .card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.entry-3d {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.entry-3d p {
  color: var(--mute);
  font-size: 0.9rem;
}

.entry-3d strong {
  color: var(--navy);
}

/* —— 5. Brand video —— */
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--steel), var(--navy));
  border-radius: var(--radius-lg);
  border: 1px solid var(--steel);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.video-stage.is-disabled {
  cursor: not-allowed;
}

.video-poster {
  text-align: center;
  padding: 2rem;
  color: #fff;
}

.video-poster .play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.video-stage.is-disabled .play-btn {
  opacity: 0.55;
}

.video-poster h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.video-poster p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* —— 6. Endorsement —— */
.endorsement-card .stars {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.endorsement-card .quote {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-style: italic;
}

.endorsement-card .who {
  font-size: 0.8rem;
  color: var(--mute);
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.cert-chip {
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--steel);
}

/* —— 7. KPI —— */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.kpi-item {
  padding: 1.35rem 1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.kpi-value {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.kpi-label {
  font-size: 0.85rem;
  color: var(--mute);
  margin-top: 0.3rem;
}

@media (max-width: 640px) {
  .kpi-strip {
    grid-template-columns: 1fr;
  }
}

/* —— 8. IP —— */
.ip-card {
  border-left: 3px solid var(--steel);
}

.ip-card.is-soon {
  opacity: 0.72;
  border-left-color: var(--border-strong);
}

.ip-type {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ip-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.ip-no {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: var(--mute);
}

/* —— 9. News —— */
.news-item {
  display: flex;
  gap: 1.15rem;
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.news-date {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  padding: 0.5rem;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.news-date .day {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}

.news-date .mon {
  font-size: 0.7rem;
  color: var(--mute);
  margin-top: 0.2rem;
}

.news-item h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.news-item p {
  font-size: 0.85rem;
  color: var(--mute);
}

@media (max-width: 480px) {
  .news-item {
    flex-direction: column;
  }
}

/* —— 10. CTA strip —— */
.cta-strip {
  background: var(--navy);
  border-block: 1px solid var(--steel);
  padding: 3.25rem 0;
  text-align: center;
  color: #fff;
}

.cta-strip h2 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  margin-bottom: 0.5rem;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.35rem;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-strip .hero-actions {
  justify-content: center;
}

.cta-strip .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-strip .footnote {
  color: rgba(255, 255, 255, 0.45);
}

.ai-cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  font-weight: 600;
}

/* —— Footer —— */
.site-footer {
  padding: 2.25rem 0 1.75rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

.footer-brand {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* —— Product detail —— */
.breadcrumb {
  padding: 1.15rem 0 0;
  font-size: 0.85rem;
  color: var(--mute);
}

.breadcrumb a {
  color: var(--steel);
}

.breadcrumb span {
  margin: 0 0.4rem;
}

.product-hero {
  padding: 1.75rem 0 2.75rem;
  background: var(--paper);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.stage-3d {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stage-viewport {
  aspect-ratio: 4 / 3;
  position: relative;
  background: linear-gradient(180deg, #dce4ec 0%, #c5d0db 100%);
}

.angle-panel {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 22px,
      rgba(26, 58, 82, 0.05) 22px,
      rgba(26, 58, 82, 0.05) 23px
    );
}

.angle-panel.active {
  display: flex;
}

.angle-label {
  font-size: 2rem;
  font-weight: 800;
  color: var(--steel);
  opacity: 0.45;
}

.angle-hint {
  font-size: 0.85rem;
  color: var(--mute);
  text-align: center;
  padding: 0 1rem;
}

.stage-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: var(--paper);
}

.angle-btn {
  flex: 1;
  padding: 0.55rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--mute);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
}

.angle-btn.active,
.angle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.product-info .sku {
  font-family: ui-monospace, monospace;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.product-info h1 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.product-info .lead {
  color: var(--mute);
  margin-bottom: 1.35rem;
}

.selling-points {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.selling-point {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.selling-point .num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.selling-point strong {
  display: block;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.selling-point span {
  font-size: 0.8rem;
  color: var(--mute);
}

.params-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.params-table th,
.params-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.params-table th {
  color: var(--mute);
  font-weight: 500;
  width: 40%;
  background: var(--panel);
}

.params-table td {
  font-family: ui-monospace, monospace;
  color: var(--ink);
}

.params-wrap {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* —— AI Widget (即将开通灰态) —— */
.ai-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  min-width: 56px;
  height: 56px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #6b7c8c;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(11, 31, 51, 0.25);
  font-weight: 700;
  font-size: 0.72rem;
  font-family: inherit;
  line-height: 1.15;
  text-align: center;
  opacity: 0.92;
  transition: transform 0.15s, background 0.15s;
}

.ai-fab:hover {
  transform: scale(1.04);
  background: #5a6a78;
}

.ai-fab .ai-fab-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  opacity: 0.85;
}

.ai-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 200;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(520px, calc(100vh - 8rem));
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ai-panel.open {
  display: flex;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.ai-panel-header h3 {
  font-size: 0.95rem;
  color: var(--navy);
}

.ai-panel-header .close-ai {
  background: none;
  border: none;
  color: var(--mute);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.2rem;
}

.ai-disclose {
  font-size: 0.7rem;
  color: var(--mute);
  padding: 0.55rem 1rem;
  background: #f4f6f8;
  border-bottom: 1px solid var(--border);
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 160px;
}

.ai-msg {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.ai-msg.bot {
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink);
}

.ai-msg.user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid rgba(196, 92, 38, 0.25);
  color: var(--accent);
}

.ai-faqs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1rem 0.75rem;
}

.ai-faq-btn {
  font-size: 0.72rem;
  padding: 0.35rem 0.6rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--steel);
  cursor: pointer;
  font-family: inherit;
}

.ai-faq-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ai-panel-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.ai-panel-footer input {
  flex: 1;
  background: #f1f4f7;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: var(--mute);
  font-family: inherit;
  font-size: 0.85rem;
}

.ai-panel-footer input:disabled {
  cursor: not-allowed;
}

.ai-panel-footer .send-btn,
.ai-panel-footer .human-btn {
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.ai-panel-footer .send-btn {
  background: #9aa8b5;
  color: #fff;
  cursor: not-allowed;
}

.ai-panel-footer .human-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--steel);
  white-space: nowrap;
}

.ai-panel-footer .human-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
