/* ==========================================================================
   词元AI中转站 - Apple macOS & iOS 18 Liquid Glassmorphism Design System
   Crafted with VisionOS, macOS Sequoia & iOS 18 Control Center Aesthetics.
   ========================================================================== */

/* SourcesData Warm White Canvas & Clean Surfaces */
:root {
  --apple-bg: #FFFFFF;
  --apple-bg-secondary: #FAFAFA;
  --apple-bg-warm: #FDFBF7;

  /* Surfaces & Acrylic */
  --glass-bg: #FFFFFF;
  --glass-bg-hover: #F8FAFC;
  --glass-bg-active: #F1F5F9;
  --glass-header: rgba(255, 255, 255, 0.92);

  /* Soft Crisp Borders & Insets */
  --glass-border: #F1F5F9;
  --glass-border-hover: #E2E8F0;
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-inset-hover: inset 0 1px 0 rgba(255, 255, 255, 1);

  /* Warm Lift Shadows */
  --shadow-widget: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px -4px rgba(0, 0, 0, 0.05);
  --shadow-widget-hover: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 16px 32px -6px rgba(224, 169, 59, 0.14);
  --shadow-window: 0 20px 48px -12px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);

  /* Blur */
  --blur-acrylic: blur(20px) saturate(180%);
  --blur-subtle: blur(12px) saturate(150%);

  /* SourcesData Primary Warm Gold / Amber Colors */
  --sf-blue: #E0A93B;
  --sf-blue-gradient: linear-gradient(135deg, #E0A93B 0%, #C88F2A 100%);
  --sf-cyan: #D97706;
  --sf-green: #10B981;
  --sf-orange: #F59E0B;
  --sf-pink: #EC4899;
  --sf-purple: #8B5CF6;
  --sf-indigo: #6366F1;
  --sf-teal: #0D9488;

  /* Typography Colors — High-contrast slate on warm white */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #64748B;
  --text-muted: #94A3B8;

  /* Compatibility aliases */
  --text-main: var(--text-primary);
  --text-dim: var(--text-tertiary);
  --accent-cyan: var(--sf-cyan);
  --accent-cyan-bright: #F59E0B;
  --border-light: var(--glass-border);
  --radius-sm: var(--radius-squircle-sm);
  --radius-md: var(--radius-squircle-md);

  /* Typography Fonts */
  --font-sf: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Monaco, Consolas, monospace;

  /* Continuous Squircle Curves */
  --radius-squircle-2xl: 26px;
  --radius-squircle-xl: 20px;
  --radius-squircle-lg: 16px;
  --radius-squircle-md: 12px;
  --radius-squircle-sm: 8px;
  --radius-pill: 9999px;

  /* SourcesData Announcement & Warm Badges */
  --announcement-bg: #FEFCE8;
  --announcement-border: #FEF08A;
  --announcement-text: #A16207;
  --badge-warm-bg: #FEF3C7;
  --badge-warm-text: #92400E;
}

:root.dark, body.dark {
  --apple-bg: #090C15;
  --apple-bg-secondary: #0F1422;
  --apple-bg-warm: #121826;
  --glass-bg: rgba(18, 24, 38, 0.7);
  --glass-bg-hover: rgba(26, 35, 56, 0.85);
  --glass-bg-active: rgba(32, 44, 70, 0.95);
  --glass-header: rgba(12, 16, 26, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #FFFFFF;
  --text-secondary: #98A2B3;
  --text-tertiary: #798398;
  --text-muted: #64748B;
  --shadow-widget: 0 16px 36px -10px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-widget-hover: 0 22px 48px -12px rgba(0, 0, 0, 0.75), 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-window: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 4px 16px rgba(0, 0, 0, 0.5);
  --announcement-bg: #291C06;
  --announcement-border: #523908;
  --announcement-text: #FDE047;
  --badge-warm-bg: rgba(245, 158, 11, 0.15);
  --badge-warm-text: #FCD34D;
}

/* Global Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--apple-bg);
  color: var(--text-primary);
  font-family: var(--font-sf);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* SourcesData Warm Ambient Mesh Glow */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  right: -5%;
  width: 70vw;
  height: 65vh;
  background: radial-gradient(circle at 80% 20%, rgba(242, 193, 78, 0.14) 0%, rgba(224, 169, 59, 0.05) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: 2%;
  left: -5%;
  width: 55vw;
  height: 50vh;
  background: radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08) 0%, rgba(254, 243, 199, 0.04) 50%, transparent 75%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  bottom: 5%;
  right: 5%;
  width: 50vw;
  height: 50vh;
  background: radial-gradient(circle, rgba(64, 200, 224, 0.08) 0%, rgba(48, 209, 88, 0.05) 50%, transparent 80%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
  box-shadow: var(--shadow-widget);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Keyboard Focus Ring (WCAG 2.4.7 Focus Visible)
   只在键盘/辅助技术导航时出现，鼠标点击不显示，因此不改变既有观感。
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--sf-cyan);
  outline-offset: 3px;
}

/* 抑制鼠标点击时浏览器默认焦点框 */
:focus:not(:focus-visible) {
  outline: none;
}

/* 深色玻璃表面上贴边的控件留出更大让位，避免焦点环被裁切 */
.nav-container :focus-visible,
.code-header :focus-visible,
.image-studio-header :focus-visible {
  outline-offset: 2px;
}

/* Layout Container */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Keep in-page targets clear of the fixed navigation pill. */
section[id],
[id].section-title {
  scroll-margin-top: 108px;
}

/* Typography Helpers */
.gradient-text {
  color: #FFFFFF;
  font-weight: 800;
}

.gradient-text-teal,
.gradient-text-amber {
  color: #E0A93B;
  background: linear-gradient(135deg, #E0A93B 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* ==========================================================================
   Top Announcement Bar (SourcesData Style)
   ========================================================================== */
.announcement-bar {
  background: var(--announcement-bg);
  border-bottom: 1px solid var(--announcement-border);
  color: var(--announcement-text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 16px;
  text-align: center;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}

.announcement-bar a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announcement-bar a:hover {
  opacity: 0.85;
}


/* ==========================================================================
   macOS Floating Pill Navigation Bar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 14px;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  transition: top 0.2s ease;
}

body:has(.announcement-bar) .navbar {
  top: 48px;
}

@media (max-width: 640px) {
  body:has(.announcement-bar) .navbar {
    top: 42px;
  }
}

.nav-container {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  background: var(--glass-header);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-mark {
  color: var(--sf-blue);
  font-size: 1.25em;
  filter: drop-shadow(0 0 8px rgba(224, 169, 59, 0.4));
}

.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.contact-wechat-btn {
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.contact-label-compact {
  display: none;
}

/* ==========================================================================
   Mobile Nav Drawer (≤1120px)
   汉堡按钮与抽屉由 /nav-drawer.js 注入；此处仅复用既有玻璃令牌定义外观。
   桌面宽度下两者都 display:none，观感与改动前一致。
   ========================================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  margin-left: 4px;
  flex-shrink: 0;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-sm);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-toggle:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.nav-toggle[aria-expanded="true"] {
  color: var(--text-primary);
  background: var(--glass-bg-active);
  border-color: var(--glass-border-hover);
}

.nav-toggle-close,
.nav-toggle[aria-expanded="true"] .nav-toggle-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
  display: block;
}
/* 抽屉外框与胶囊导航栏左右对齐（padding 归零，只留与胶囊的 10px 间距） */
.nav-drawer-wrap {
  display: none;
  padding: 10px 0 0;
}

.nav-drawer {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  padding: 10px;
  background: var(--glass-header);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  box-shadow: var(--glass-inset), var(--shadow-window);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 收起时不用 visibility：它的过渡值要晚一帧才被子元素继承，会让展开瞬间的
   focus() 落空。可聚焦性与无障碍可见性交给 nav-drawer.js 的 inert /
   tabindex="-1" / aria-hidden 控制，纯同步、无时序依赖。 */
.nav-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
}

.nav-drawer-links a {
  display: block;
  padding: 12px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-squircle-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-drawer-links a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}
/* 遮罩层压在导航栏 (z-index:100) 之下、页面内容之上；
   关闭态必须 pointer-events:none，否则透明遮罩会吃掉整页点击 */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.35);
  transition: opacity 0.24s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.nav-drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   Apple VisionOS & iOS Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  line-height: 1.4;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--sf-blue-gradient);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(224, 169, 59, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1.5px) scale(1.02);
  background: linear-gradient(135deg, #C88F2A 0%, #B45309 100%);
  box-shadow: 0 8px 22px rgba(224, 169, 59, 0.45);
}

.btn-secondary {
  background: #FFFFFF;
  color: #C88F2A;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #F8FAFC;
  color: #B45309;
  border-color: #CBD5E1;
  transform: translateY(-1.5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
}

/* ==========================================================================
   Hero Section & iOS Control Center Widget
   ========================================================================== */
.hero {
  padding-top: 180px;
  padding-bottom: 75px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-content,
.hero-interactive-col {
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--badge-warm-bg);
  border: 1px solid rgba(224, 169, 59, 0.3);
  color: var(--badge-warm-text);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--sf-green);
  box-shadow: 0 0 10px var(--sf-green);
}

.hero-title {
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  line-height: 1.36;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 155px;
    gap: 36px;
  }
}

.hero-title-line {
  display: block;
  white-space: normal;
  word-break: break-word;
}

.hero-title-line:first-child {
  margin-bottom: 6px;
}

.hero-title-features {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
  display: block;
}

.hero-title-features .price-highlight {
  color: #D97706;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
  line-height: 1.68;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* iOS Control Center Styled Quick Widget */
.hero-quick-bar {
  margin-bottom: 28px;
}

.quick-base-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-squircle-md);
  box-shadow: var(--shadow-widget);
  flex-wrap: wrap;
}

.quick-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-base-box code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #B45309;
  font-weight: 600;
  background: #FEF3C7;
  padding: 4px 10px;
  border-radius: var(--radius-squircle-sm);
  user-select: all;
  border: 1px solid #FDE68A;
}

.btn-copy-quick {
  background: var(--sf-blue-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(10, 132, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.btn-copy-quick:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.5);
}

.btn-copy-quick.copied {
  background: linear-gradient(180deg, #30D158 0%, #248A3D 100%);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(48, 209, 88, 0.4);
}

.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   macOS Sequoia Native Window Terminal Playground
   ========================================================================== */
.code-playground {
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  box-shadow: var(--glass-inset), var(--shadow-window);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(22, 28, 44, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Authentic macOS Traffic Lights */
.terminal-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 10px;
  flex-shrink: 0;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dot-red { background: #FF5F56; border: 1px solid #E0443E; }
.dot-yellow { background: #FFBD2E; border: 1px solid #DEA123; }
.dot-green { background: #27C93F; border: 1px solid #1AAB29; }

/* iOS Segmented Switcher (分段选择胶囊) */
.code-tabs {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Mobile overflow fix: allow flex child to shrink below content width
     so the tab bar scrolls inside itself instead of overflowing the viewport */
  min-width: 0;
  flex: 1 1 auto;
}

.code-tabs::-webkit-scrollbar {
  display: none;
}

.code-tab {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sf);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.code-tab:hover {
  color: var(--text-secondary);
}

.code-tab.active {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: var(--glass-inset);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-color: var(--glass-border-hover);
}

.copy-btn .copy-label {
  white-space: nowrap;
  display: inline-block;
}

.code-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #E6EDF3;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.68;
  background: rgba(8, 11, 18, 0.95);
  min-height: 195px;
}

/* Syntax Highlighting */
.code-keyword { color: var(--sf-pink); font-weight: 600; }
.code-string { color: var(--sf-green); }
.code-function { color: var(--sf-cyan); }
.code-comment { color: #768390; font-style: italic; }

/* ==========================================================================
   iOS 18 Desktop Widgets (Platform Metrics Grid)
   ========================================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 10px;
  margin-bottom: 80px;
}

.metric-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  padding: 22px 20px;
  text-align: left;
  box-shadow: var(--glass-inset), var(--shadow-widget);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-inset-hover), var(--shadow-widget-hover);
}

/* Apple Squircle App Icon Badge */
.squircle-app-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-squircle-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.icon-purple { background: linear-gradient(135deg, #BF5AF2 0%, #8944AB 100%); }
.icon-orange { background: linear-gradient(135deg, #FF9F0A 0%, #C97200 100%); }
.icon-pink { background: linear-gradient(135deg, #FF375F 0%, #BF1A3A 100%); }
.icon-green { background: linear-gradient(135deg, #30D158 0%, #1F9C3E 100%); }
.icon-cyan { background: linear-gradient(135deg, #0A84FF 0%, #0056B3 100%); }

.metric-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 2px;
  line-height: 1.15;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.35;
}

/* ==========================================================================
   Platform Advantages (VisionOS Control Widgets)
   ========================================================================== */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 52px auto;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 95px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  padding: 24px 20px;
  box-shadow: var(--glass-inset), var(--shadow-widget);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-inset-hover), var(--shadow-widget-hover);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  border-radius: var(--radius-squircle-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
  flex-shrink: 0;
}

.feature-header h3 {
  margin-bottom: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Keep feature-card links readable on the dark glass surface while making
   their click target discoverable without the browser-default blue. */
.feature-header h3 a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(100, 210, 255, 0.62);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.feature-header h3 a:hover {
  color: var(--sf-cyan);
  text-decoration-color: var(--sf-cyan);
}

.feature-card p a {
  color: var(--sf-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(100, 210, 255, 0.72);
  text-underline-offset: 3px;
}

.feature-card p a:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.62;
}

/* ==========================================================================
   2026 Models Grid Section (Apple Card Style)
   ========================================================================== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 95px;
}

.model-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glass-inset), var(--shadow-widget);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.model-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-inset-hover), var(--shadow-widget-hover);
}

.model-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.model-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.model-name a {
  color: inherit;
  text-decoration: none;
}

.model-name a:hover {
  text-decoration: underline;
  text-decoration-color: var(--sf-cyan, #0a84ff);
  text-underline-offset: 4px;
}

.model-name-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.model-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  box-shadow: var(--glass-inset);
}

.model-tag.tag-hot {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}

.model-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.58;
  margin-bottom: 18px;
}

.model-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.model-meta strong {
  color: var(--text-primary);
}

.model-meta code {
  font-family: var(--font-mono);
  background: #F8FAFC;
  color: #D97706;
  padding: 2px 7px;
  border-radius: var(--radius-squircle-sm);
  border: 1px solid #E2E8F0;
}

/* ==========================================================================
   Admin Custom Markdown / Announcement Card
   ========================================================================== */
.custom-section {
  margin-bottom: 95px;
}

.custom-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-2xl);
  padding: 38px;
  box-shadow: var(--glass-inset), var(--shadow-widget);
}

.prose-dark {
  color: var(--text-secondary);
  line-height: 1.75;
}

.prose-dark h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.prose-dark h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 22px 0 12px 0;
}

.prose-dark p {
  margin-bottom: 16px;
}

.prose-dark strong {
  color: var(--text-primary);
}

.prose-dark ul {
  padding-left: 22px;
  margin-bottom: 20px;
}

.prose-dark li {
  margin-bottom: 6px;
}

.prose-dark .table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

.prose-dark table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.prose-dark th, .prose-dark td {
  padding: 12px 16px;
  border: 1px solid #F1F5F9;
  text-align: left;
}

.prose-dark th {
  background: #F8FAFC;
  color: var(--text-primary);
  font-weight: 600;
  border-color: #E2E8F0;
}

.prose-dark td a,
.prose-dark th a {
  color: var(--sf-cyan);
  text-decoration: underline;
  text-decoration-color: rgba(100, 210, 255, 0.72);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.prose-dark td a:hover,
.prose-dark td a:focus-visible,
.prose-dark th a:hover,
.prose-dark th a:focus-visible {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

.prose-dark td code {
  font-family: var(--font-mono);
  background: #FEF3C7;
  color: #B45309;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   FAQ Section (Apple Widget Cards)
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 95px;
}

.faq-item {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  padding: 26px;
  box-shadow: var(--glass-inset), var(--shadow-widget);
  transition: all 0.25s ease;
  /* Mobile overflow fix: grid items default to min-width:auto, letting
     unbreakable content (e.g. long code URLs) widen the card past the viewport */
  min-width: 0;
}

.faq-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}

.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sf-blue-gradient);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(224, 169, 59, 0.35);
}

.faq-a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.68;
  /* Mobile overflow fix: allow long URLs/code in answers to wrap */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-a code {
  font-family: var(--font-mono);
  background: #FEF3C7;
  color: #B45309;
  padding: 2px 6px;
  border-radius: 4px;
  /* Mobile overflow fix: wrap long Base URL / key strings inside code */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.faq-a a {
  color: var(--sf-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Footer Section (macOS Frosted Base)
   ========================================================================== */
.footer {
  border-top: 1px solid #E2E8F0;
  background: #FAFAFA;
  padding: 60px 0 30px 0;
  color: #64748B;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--sf-blue);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #E2E8F0;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   Hero Mode Switcher (iOS Segmented Control)
   ========================================================================== */
.hero-mode-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hero-mode-switcher {
  display: flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid #E2E8F0;
  box-shadow: var(--glass-inset);
  width: fit-content;
}

.hero-mode-btn {
  background: transparent;
  border: none;
  color: #64748B;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sf);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-mode-btn:hover {
  color: #FFFFFF;
}

.hero-mode-btn.active {
  background: var(--sf-blue-gradient);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Image Studio Playground Widget */
.image-playground {
  display: none;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  box-shadow: var(--glass-inset), var(--shadow-window);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
}

.image-playground.active {
  display: block;
}

.code-playground.active {
  display: block;
}

.code-playground.hidden {
  display: none;
}

.image-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(22, 28, 44, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.image-prompt-tabs {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
  flex: 1 1 auto;
}

.image-prompt-tabs::-webkit-scrollbar {
  display: none;
}

.image-prompt-tab {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sf);
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.image-prompt-tab.active {
  background: var(--sf-pink);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 55, 95, 0.4);
}

.image-studio-body {
  padding: 16px 18px;
}

.image-preview-box {
  background: radial-gradient(circle at 50% 30%, rgba(30, 42, 68, 0.8) 0%, rgba(10, 14, 24, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-squircle-lg);
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.image-visual-art {
  height: 180px;
  border-radius: var(--radius-squircle-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #080B12;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.visual-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  z-index: 1;
}

.image-visual-art > picture,
.showcase-visual > picture {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.image-visual-art > picture > img,
.showcase-visual > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-visual-art:hover .visual-bg-img {
  transform: scale(1.05);
}

.image-visual-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.15) 50%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
  pointer-events: none;
}

.art-overlay-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  pointer-events: none;
}

.art-overlay-content > * {
  pointer-events: auto;
}

.art-badge-price {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #FFD700;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.art-meta-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
}

.art-tag {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-squircle-sm);
}

.image-prompt-display {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-squircle-md);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #E2E8F0;
  line-height: 1.55;
  margin-bottom: 12px;
}

.image-prompt-display strong {
  color: #F59E0B;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: block;
  margin-bottom: 4px;
}

.image-actions-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

/* Image Showcase Section */
.image-feature-section {
  padding: 70px 0 40px 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.section-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.image-showcase-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glass-inset), var(--shadow-widget);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.image-showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-inset-hover), var(--shadow-widget-hover);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.showcase-header h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

.showcase-price-tag {
  background: var(--badge-warm-bg, #FEF3C7);
  border: 1px solid var(--badge-warm-border, #FDE68A);
  color: var(--badge-warm-text, #92400E);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.showcase-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.showcase-visual {
  height: 175px;
  border-radius: var(--radius-squircle-md);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  background: #080B12;
}

.showcase-visual .visual-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.image-showcase-card:hover .showcase-visual .visual-img {
  transform: scale(1.06);
}

.showcase-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 2;
  pointer-events: none;
}

.showcase-visual .art-tag {
  position: relative;
  z-index: 3;
}

.showcase-prompt-box {
  background: #FEFCE8;
  border: 1px solid #FEF08A;
  border-radius: var(--radius-squircle-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1E293B;
  font-family: var(--font-mono);
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: inset 0 1px 2px rgba(224, 169, 59, 0.05);
}

.showcase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #E2E8F0;
  padding-top: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.showcase-footer code {
  background: #FEF3C7;
  color: #B45309;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #FDE68A;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.showcase-footer a {
  color: var(--sf-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(217, 119, 6, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.showcase-footer a:hover,
.showcase-footer a:focus-visible {
  color: #B45309;
  text-decoration-color: #B45309;
}

/* Ecosystem Developer Cards */
.ecosystem-section {
  padding: 60px 0 40px 0;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.eco-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-acrylic);
  -webkit-backdrop-filter: var(--blur-acrylic);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-squircle-xl);
  padding: 22px;
  box-shadow: var(--glass-inset), var(--shadow-widget);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-inset-hover), var(--shadow-widget-hover);
}

.eco-icon-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.eco-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-squircle-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
  color: #FFFFFF;
}

.eco-icon.cursor { background: linear-gradient(135deg, #0A84FF 0%, #004799 100%); }
.eco-icon.claude { background: linear-gradient(135deg, #EA580C 0%, #7C2D12 100%); }
.eco-icon.codex { background: linear-gradient(135deg, #10B981 0%, #064E3B 100%); }
.eco-icon.cherry { background: linear-gradient(135deg, #F43F5E 0%, #9F1239 100%); }

.eco-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.eco-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  flex: 1;
}

.eco-steps {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-squircle-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #1E293B;
  font-family: var(--font-mono);
}

.eco-steps code {
  color: #B45309;
  font-weight: 600;
}

/* Tiered Bottom CTA Banner */
.bottom-cta-section {
  padding: 70px 0 40px 0;
}

.cta-banner-card {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FDE68A 100%);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-squircle-2xl);
  padding: 52px 36px;
  text-align: center;
  box-shadow: 0 20px 48px -12px rgba(224, 169, 59, 0.22);
  position: relative;
  overflow: hidden;
}

.cta-banner-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 12px;
}

.cta-banner-card p {
  font-size: 1.02rem;
  color: #475569;
  max-width: 640px;
  margin: 0 auto 30px auto;
  line-height: 1.68;
}

.cta-button-group {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 130px;
    gap: 36px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .eco-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 桌面版主导航实测宽度：普通页面（logo + 7 条链接 + 登录/客服）需 1059px，
   models.html 多一条「首页」共 8 条需 1120px，胶囊可用宽度要到 1121px 视口才够。
   861–1120px 这一段线上一直是溢出状态，这里整体换成抽屉，全站同一个断点。
   断点须与 nav-drawer.js 的 MOBILE_QUERY 保持一致。 */
@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-drawer-wrap {
    display: block;
  }
}

@media (max-width: 640px) {
  .navbar {
    top: 8px;
    padding: 0 12px;
  }
  .nav-container {
    height: 58px;
    padding: 0 14px;
  }
  .hero-tag {
    font-size: 0.76rem;
    padding: 6px 12px;
    line-height: 1.45;
    white-space: normal;
  }
  .hero-title {
    font-size: 1.35rem;
    line-height: 1.38;
  }
  .hero-title-line {
    white-space: normal;
    word-break: break-word;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .logo {
    font-size: 1rem;
  }
  .nav-actions .btn {
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .contact-label-full {
    display: none;
  }
  .contact-label-compact {
    display: inline;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .image-grid {
    grid-template-columns: 1fr;
  }
  .eco-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .custom-card {
    padding: 22px;
  }
  .code-header, .image-studio-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  .cta-banner-card {
    padding: 36px 20px;
  }
  .cta-banner-card h2 {
    font-size: 1.7rem;
  }
}

/* ≤460px：不加紧凑规则时胶囊内容需 ~454px（登录 + 客服全宽标签 + 汉堡），
   低于该宽度原本就会溢出，故把原先只在 ≤350px 生效的紧凑规则提前到 460px。 */
@media (max-width: 460px) {
  .logo {
    gap: 6px;
    font-size: 0.9rem;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn {
    padding: 7px 9px;
  }
  .contact-label-compact {
    font-size: 0;
  }
  .contact-label-compact::after {
    content: "微信";
    font-size: 0.72rem;
  }
  .nav-toggle {
    width: 34px;
    height: 34px;
    margin-left: 2px;
  }
}

/* ≤400px：胶囊内可用宽度只剩 294px，而品牌全称实测占 131px。带「登录账号 +
   创建 API Key / 免费注册」两个文字按钮的页面（56 页）光 .nav-actions 就要
   146–173px，加上汉堡按钮必然溢出。这里把品牌可见文字收成 island（可访问名
   仍由 .logo 的 aria-label="词元AI中转站 首页" 提供），并再压一档按钮内边距。 */
@media (max-width: 400px) {
  .logo {
    gap: 5px;
    font-size: 0.85rem;
  }
  .logo span:not(.brand-mark) {
    font-size: 0;
  }
  .logo span:not(.brand-mark)::after {
    content: "词元AI";
    font-size: 0.85rem;
  }
  .nav-actions .btn {
    padding: 6px 8px;
    font-size: 0.72rem;
  }
}

@media (max-width: 350px) {
  .nav-container {
    padding: 0 8px;
  }
  /* 极窄屏客服按钮只留图标，可访问名由 aria-label 提供 */
  .contact-label-compact {
    display: none;
  }
  .hero-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Fact provenance notes keep benchmark and pricing claims transparent. */
.fact-note,
.homepage-fact-note {
  margin: 1.25rem auto 0;
  color: var(--text-muted, #798398);
  font-size: 0.86rem;
  line-height: 1.7;
}

.homepage-fact-note {
  width: calc(100% - 48px);
  max-width: 1172px;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
}
