/**
 * Audio Tools - Coder.com Style Design System v2.0
 * Complete redesign inspired by Coder.com & Fastly-AI Frontend
 * Dark Tech Aesthetic with Neon Gradients
 */

/* ===== Geist Font Import ===== */
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.2.0/dist/fonts/geist-mono/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== CSS Custom Properties (Design Tokens) ===== */
:root {
  /* Background Layers - Deep Ocean Theme (Midnight Blue to Charcoal Blue) */
  --bg-page: #0A1628;              /* Deepest - Midnight Blue (almost black) */
  --bg-secondary: #0D1B2A;         /* Section background - Deep Ocean */
  --bg-tertiary: #1B2838;          /* Card background - Charcoal Blue */
  --bg-elevated: #243447;          /* Elevated elements - Slate Blue */
  --bg-card: rgba(27, 40, 56, 0.85);  /* Glassmorphism card */
  --bg-card-hover: rgba(36, 52, 71, 0.9);

  /* Accent Colors - Champagne Gold System (Luxurious & Professional) */
  --accent-primary: #D4AF37;       /* Champagne Gold - Primary */
  --accent-secondary: #C9A961;     /* Rich Gold - Secondary */
  --accent-tertiary: #E5D5A1;      /* Light Platinum Gold */
  --accent-ember: #B8964F;         /* Deep Antique Gold */

  /* Accent Transparency Variants */
  --accent-bg: rgba(212, 175, 55, 0.08);
  --accent-bg-hover: rgba(212, 175, 55, 0.12);
  --accent-border: rgba(212, 175, 55, 0.3);
  --accent-purple-bg: rgba(201, 169, 97, 0.08);
  --accent-purple-border: rgba(201, 169, 97, 0.3);
  --accent-pink-bg: rgba(229, 213, 161, 0.08);

  /* Text Colors - Mist White System (High Contrast & Elegant) */
  --text-primary: #F5F7FA;         /* Near pure white - main headings */
  --text-secondary: #C5D2E0;       /* Mist White (Blue-gray) - body text for readability */
  --text-muted: #94A3B8;           /* Blue-gray - secondary info (optimized contrast) */
  --text-disabled: #5A5650;        /* Disabled state */

  /* Border Colors - Refined for Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.1);  /* Slightly more visible for cards */
  --border-hover: rgba(212, 175, 55, 1);       /* Champagne gold on hover */
  --border-accent: rgba(212, 175, 55, 0.5);

  /* Semantic Colors */
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --success-border: rgba(34, 197, 94, 0.3);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);

  /* Typography */
  --font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', Consolas, monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;              /* 12px */
  --text-sm: 0.875rem;             /* 14px */
  --text-base: 1rem;               /* 16px */
  --text-lg: 1.125rem;             /* 18px */
  --text-xl: 1.25rem;              /* 20px */
  --text-2xl: 1.5rem;              /* 24px */
  --text-3xl: 1.875rem;            /* 30px */
  --text-4xl: 2.25rem;             /* 36px */
  --text-5xl: 3rem;                /* 48px */
  --text-hero: clamp(2.5rem, 6vw, 4.5rem);

  /* Letter Spacing */
  --letter-tight: -0.03em;
  --letter-normal: -0.01em;
  --letter-wide: 0.1em;

  /* Line Heights */
  --line-tight: 1.1;
  --line-snug: 1.15;
  --line-normal: 1.5;
  --line-relaxed: 1.7;

  /* Spacing Scale */
  --space-1: 0.25rem;              /* 4px */
  --space-2: 0.5rem;               /* 8px */
  --space-3: 0.75rem;              /* 12px */
  --space-4: 1rem;                 /* 16px */
  --space-5: 1.25rem;              /* 20px */
  --space-6: 1.5rem;               /* 24px */
  --space-8: 2rem;                 /* 32px */
  --space-10: 2.5rem;              /* 40px */
  --space-12: 3rem;                /* 48px */
  --space-16: 4rem;                /* 64px */
  --space-20: 5rem;                /* 80px */
  --space-24: 6rem;                /* 96px */

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;           /* Pill */

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.35), 0 8px 10px rgba(0, 0, 0, 0.2);

  /* Glow Shadows - Champagne Gold Metallic Glow (Subtle & Luxurious) */
  --glow-blue: 0 0 15px rgba(212, 175, 55, 0.3), 0 0 30px rgba(212, 175, 55, 0.15);
  --glow-blue-lg: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2);
  --glow-purple: 0 0 15px rgba(201, 169, 97, 0.3), 0 0 30px rgba(201, 169, 97, 0.15);
  --glow-pink: 0 0 15px rgba(229, 213, 161, 0.3), 0 0 30px rgba(229, 213, 161, 0.15);

  /* Gradients */
  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.12) 0%, transparent 50%);
  --gradient-hero-alt: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(184, 150, 79, 0.10) 0%, rgba(212, 175, 55, 0.06) 40%, transparent 70%);

  /* Deep Ocean & Champagne Gold - Luxurious Gradients */
  --gradient-hero-coder: radial-gradient(
    ellipse 100% 60% at 50% -10%,
    rgba(212, 175, 55, 0.15) 0%,
    rgba(201, 169, 97, 0.10) 30%,
    rgba(184, 150, 79, 0.05) 50%,
    rgba(10, 22, 40, 0) 80%
  );
  --gradient-section-purple: radial-gradient(
    circle at 20% 30%,
    rgba(212, 175, 55, 0.08) 0%,
    transparent 60%
  );
  --gradient-section-pink: radial-gradient(
    circle at 80% 20%,
    rgba(201, 169, 97, 0.06) 0%,
    transparent 50%
  );

  --gradient-card-hover: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(184, 150, 79, 0.04) 100%);
  --gradient-cta: linear-gradient(90deg, #D4AF37 0%, #F3E6C4 100%);  /* Button gold gradient */
  --gradient-cta-full: linear-gradient(135deg, #D4AF37 0%, #C9A961 50%, #E5D5A1 100%);  /* Full Gold Gradient */
  --gradient-text: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 40%, #C59D24 60%, #F3E6C4 100%);  /* Liquid metal gold - platinum highlight, pure gold, shadow, reflection */
  --gradient-accent-line: linear-gradient(90deg, transparent 0%, var(--accent-primary) 50%, transparent 100%);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --header-height: 64px;
}

/* ===== Animation Keyframes ===== */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: var(--glow-blue);
  }
  50% {
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.5), 0 0 60px rgba(30, 144, 255, 0.3);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes neon-pulse {
  0%, 100% {
    box-shadow:
      0 0 10px rgba(30, 144, 255, 0.3),
      0 0 20px rgba(30, 144, 255, 0.2),
      inset 0 0 10px rgba(30, 144, 255, 0.1);
    border-color: rgba(30, 144, 255, 0.5);
  }
  50% {
    box-shadow:
      0 0 15px rgba(30, 144, 255, 0.5),
      0 0 30px rgba(30, 144, 255, 0.3),
      inset 0 0 15px rgba(30, 144, 255, 0.15);
    border-color: rgba(30, 144, 255, 0.7);
  }
}

@keyframes pulse-dot-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow:
      0 0 6px rgba(30, 144, 255, 0.8),
      0 0 12px rgba(30, 144, 255, 0.6);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.3);
    box-shadow:
      0 0 10px rgba(30, 144, 255, 1),
      0 0 20px rgba(30, 144, 255, 0.8);
  }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes underline-glow {
  0%, 100% {
    opacity: 0.8;
    box-shadow: 0 0 4px rgba(30, 144, 255, 0.4);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(30, 144, 255, 0.6);
  }
}

@keyframes dots-connect {
  0% {
    background-size: 0% 100%;
    opacity: 0.6;
  }
  50% {
    background-size: 100% 100%;
    opacity: 1;
  }
  100% {
    background-size: 0% 100%;
    opacity: 0.6;
  }
}

@keyframes badge-breathe {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
  }
}

@keyframes dot-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

/* Animation Utility Classes */
.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
  opacity: 0;
}
.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
  opacity: 0;
}
.animate-fade-in-down {
  animation: fade-in-down 0.6s ease-out forwards;
  opacity: 0;
}
.animate-slide-in-left {
  animation: slide-in-left 0.5s ease-out forwards;
  opacity: 0;
}
.animate-scale-in {
  animation: scale-in 0.3s ease-out forwards;
  opacity: 0;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}
.animate-glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ===== Global Layout - Prevent Horizontal Scroll ===== */
html, body {
  overflow-x: hidden;  /* 强制隐藏横向滚动条 - 专业网页不应有横向滚动 */
  width: 100%;
}

/* ===== Base Page Styles - Clean Deep Space (极简深空) ===== */
.coder-page {
  font-family: var(--font-sans);

  /* 1. 基础底色 */
  background-color: #050A14;

  /* 2. 线性渐变 (从上到下) - 极简过渡 */
  /* 顶部稍微亮一点点(深靛蓝)，是为了让黑色导航栏能看清边界 */
  /* 底部完全黑(午夜蓝)，为了沉浸感 */
  background-image: linear-gradient(
    to bottom,
    #0F172A 0%,  /* 顶部：稍微带点灰蓝的深色 */
    #050A14 40%, /* 中部：迅速过渡到主底色 */
    #020408 100% /* 底部：接近纯黑 */
  );

  background-attachment: fixed; /* 固定背景 */
  color: var(--text-secondary);
  line-height: var(--line-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* ===== Typography ===== */

/* Hero Title */
.heading-hero {
  font-size: var(--text-hero);
  font-weight: 500;
  letter-spacing: var(--letter-tight);
  line-height: var(--line-tight);
  color: var(--text-primary);
}

/* Section Title */
.heading-section {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: var(--line-snug);
  color: var(--text-primary);
}

/* Card Title */
.heading-card {
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: var(--letter-normal);
  line-height: 1.3;
  color: var(--text-primary);
}

/* Small Heading */
.heading-sm {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Body Text */
.body-lg {
  font-size: var(--text-lg);
  line-height: var(--line-relaxed);
  color: var(--text-secondary);
}

.body {
  font-size: var(--text-base);
  line-height: var(--line-relaxed);
  color: var(--text-secondary);
}

.body-sm {
  font-size: var(--text-sm);
  line-height: var(--line-normal);
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-mono {
  font-family: var(--font-mono);
}

/* ===== Buttons - Pill Shape ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button - Light (White) */
.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-page);
}

.btn-primary:hover:not(:disabled) {
  background-color: #e4e4e7;
  transform: scale(0.98);
}

/* Accent Button - Premium Gold Metal */
.btn-accent {
  background: linear-gradient(90deg, #D4AF37 0%, #F3E6C4 50%, #D4AF37 100%);
  background-size: 200% auto;
  color: #050A14;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.btn-accent:hover:not(:disabled) {
  background-position: right center;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
  transform: translateY(-1px);
}

/* Secondary Button - Ghost/Transparent */
.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover:not(:disabled) {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.btn-ghost:hover:not(:disabled) {
  background-color: var(--accent-bg);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn-xl {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

/* Icon Button */
.btn-icon {
  padding: 0.75rem;
  width: 48px;
  height: 48px;
}

.btn-icon-sm {
  padding: 0.5rem;
  width: 36px;
  height: 36px;
}

/* ===== Cards - Premium Glassmorphism ===== */
.card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-6);
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.1);
}

.card-glow:hover {
  box-shadow: var(--shadow-xl), var(--glow-blue-lg);
}

/* Solid Card Variant */
.card-solid {
  background: var(--bg-tertiary);
  backdrop-filter: none;
}

/* Bento Card - Feature Grid */
.bento-card {
  position: relative;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-accent-line);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.bento-card:hover::before {
  opacity: 1;
}

/* Large Bento Card */
.bento-card-lg {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-card-lg {
    grid-column: span 1;
  }
}

/* ===== Bento Grid Layout ===== */
.bento-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== Upload Area ===== */
.upload-zone {
  position: relative;
  min-height: 280px;
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8);
}

.upload-zone:hover {
  border-color: var(--border-hover);
  background: var(--bg-tertiary);
}

.upload-zone.drag-over {
  border-color: var(--accent-primary);
  border-style: solid;
  background: var(--accent-bg);
  box-shadow: inset 0 0 30px var(--accent-bg), var(--glow-blue);
}

/* Upload Icon Container */
.upload-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  transition: all var(--transition-base);
}

.upload-zone:hover .upload-icon {
  transform: scale(1.05);
  box-shadow: var(--glow-blue);
}

.upload-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

/* ===== Section Label - Orbital Animation ===== */
.section-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: none; /* Hide border */
  border-radius: 50px;
  padding: 0; /* Remove padding */
  position: relative;
}

/* Hide badge text but keep wave animation visible */
.section-label > span[data-i18n] {
  display: none;
}

/* Remove underline */
.section-label::after {
  display: none;
}

/* Orbiting Dot */
.pulse-dot {
  display: none; /* Hidden per user request */
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.5);
  offset-path: inset(0 round 50px);
  offset-distance: 0%;
  offset-rotate: 0deg;
  animation: orbit 8s linear infinite;
}

/* Orbital animation using offset-distance */
@keyframes orbit {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

/* ===== AI Decode Animation - JS Driven (深海鎏金版) ===== */

/* Container Layout */
.hero-anim-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  position: relative;
  margin-bottom: 1.5rem;
}

/* Phase 1: Gold Audio Wave */
.audio-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 50px;
}

.audio-wave span {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 50px;
  /* 香槟金渐变 */
  background: linear-gradient(to top, #D4AF37, #F3E6C4);
  /* 金色辉光 */
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6), 0 0 20px rgba(243, 230, 196, 0.3);
  /* 默认高度 10%，通过动画拉伸 */
  transform: scaleY(0.1);
  animation: wave-move 1.2s infinite ease-in-out;
}

/* 给每个条加不同延迟，制造起伏感 */
.audio-wave span:nth-child(1) { animation-delay: 0.1s; }
.audio-wave span:nth-child(2) { animation-delay: 0.3s; }
.audio-wave span:nth-child(3) { animation-delay: 0.6s; }
.audio-wave span:nth-child(4) { animation-delay: 0.2s; }
.audio-wave span:nth-child(5) { animation-delay: 0.5s; }
.audio-wave span:nth-child(6) { animation-delay: 0.3s; }
.audio-wave span:nth-child(7) { animation-delay: 0.7s; }
.audio-wave span:nth-child(8) { animation-delay: 0.4s; }
.audio-wave span:nth-child(9) { animation-delay: 0.2s; }
.audio-wave span:nth-child(10) { animation-delay: 0.5s; }

@keyframes wave-move {
  0%, 100% { transform: scaleY(0.1); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 隐藏声波 */
.audio-wave.hidden {
  display: none;
}

/* Phase 2 & 3: Decode Text */
.hero-decode-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin: 0;
  opacity: 0;
  white-space: nowrap;

  /* 最终态：液态金属渐变 */
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 40%, #C59D24 60%, #F3E6C4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  transition: opacity 0.3s;
}

/* 解码过程中的样式（黑客感） */
.hero-decode-text.decoding {
  opacity: 1;
  font-family: 'Courier New', var(--font-mono), monospace;
  color: #D4AF37;
  -webkit-text-fill-color: #D4AF37;
  background: none;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(243, 230, 196, 0.4);
  /* 收紧字间距，防止字体切换时宽度跳变 */
  letter-spacing: 0.08em;
}

/* 解码完成后的样式 */
.hero-decode-text.visible {
  opacity: 1;
  cursor: pointer; /* 提示可互动 */
}

/* ===== SEO Content Typography Optimization ===== */
.seo-content-section {
  max-width: 800px;
  margin: 0 auto;
}

.seo-content-section p {
  line-height: 1.7;
}

/* ===== TAAFT Badge - Dark Mode Invert ===== */
.taaft-badge img {
  filter: invert(1) hue-rotate(180deg);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.taaft-badge img:hover {
  opacity: 1;
}

/* ===== Why Choose Description - Enhanced Readability ===== */
.why-choose-section .text-sm.text-muted {
  color: #94A3B8; /* 雾霾灰，提亮对比度 */
}

/* ===== Legacy support (keep old classes working) ===== */
.wave-to-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 320px;
  height: 50px;
  margin: 0 auto;
}

.wave-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: text-lifecycle 5s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes text-lifecycle {
  0%, 50% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  90% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  /* Stay hidden (90-100% = 0.5s) */
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

/* ===== Feature Pills ===== */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--space-8);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: #F1F5F9;
  transition: all var(--transition-fast);
}

.pill:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

/* ===== AI Badge ===== */
.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.75rem;
  background: var(--gradient-cta);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Step Numbers (Mono) ===== */
.step-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: var(--letter-wide);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

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

/* Step Card */
.step-card {
  position: relative;
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.step-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
}

.step-card-icon .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 8rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 600px;
  background: radial-gradient(ellipse,
    rgba(124, 58, 237, 0.15) 0%,
    rgba(37, 99, 235, 0.1) 30%,
    transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 500;
  line-height: var(--line-tight);
  letter-spacing: var(--letter-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-relaxed);
}

@media (max-width: 768px) {
  .hero {
    padding: 5rem 0 3rem;
  }
}

/* ===== Progress Bar - 液态金能量传输管 (Enhanced) ===== */
.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden; /* Contain all animations within track */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 -1px 2px rgba(255, 255, 255, 0.05);
  position: relative;
}

.progress-bar {
  height: 100%;
  min-width: 8px; /* Minimum visible width */
  background: linear-gradient(90deg,
    #B8860B 0%,
    #FFD700 25%,
    #FFF8DC 50%,
    #FFD700 75%,
    #B8860B 100%
  );
  background-size: 200% auto;
  border-radius: var(--radius-full);
  box-shadow:
    0 0 15px rgba(255, 215, 0, 0.7),
    0 0 30px rgba(255, 215, 0, 0.4),
    0 0 5px rgba(255, 255, 255, 0.8) inset;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden; /* Contain shimmer within progress bar */
  animation: gold-flow 1.5s linear infinite;
}

/* Leading edge spark - 进度条头部亮点 */
.progress-bar::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow:
    0 0 6px #FFFFFF,
    0 0 10px #FFD700;
  animation: spark-pulse 0.8s ease-in-out infinite alternate;
}

/* Shimmer sweep animation - contained within progress bar */
.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 100%
  );
  animation: progress-shimmer-contained 1.5s ease-in-out infinite;
  border-radius: var(--radius-full);
}

/* 液态金流动动画 */
@keyframes gold-flow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 头部亮点脉冲 */
@keyframes spark-pulse {
  0% {
    opacity: 0.7;
    transform: translateY(-50%) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
  }
}

/* 扫光动画 - 在进度条内部移动 */
@keyframes progress-shimmer-contained {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* ===== Form Inputs ===== */
.input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.input:hover {
  border-color: var(--border-hover);
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.input::placeholder {
  color: var(--text-muted);
}

/* Select */
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

/* Toggle Card */
.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-card:hover {
  border-color: var(--accent-border);
  background: var(--accent-bg);
}

.toggle-card.active,
.toggle-card:has(input:checked) {
  border-color: var(--accent-primary);
  background: var(--accent-bg);
}

/* Toggle Card Highlight - for recommended options */
.toggle-card-highlight {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent-border);
}

.toggle-card-highlight:hover {
  background: rgba(37, 99, 235, 0.15);
}

/* Checkbox */
.checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* ===== Header - Frosted Glass Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 10, 20, 0.4);  /* Deep ocean with transparency */
  backdrop-filter: blur(12px);  /* Always frosted glass */
  -webkit-backdrop-filter: blur(12px);  /* Safari support */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);  /* Subtle divider */
  transition: all 0.3s ease-in-out;
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header.header-scrolled {
  background: rgba(10, 22, 40, 0.85);  /* Midnight blue, more opaque when scrolled */
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);  /* Gold accent on scroll */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);  /* Subtle depth */
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-height);
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.header-logo:hover {
  opacity: 0.8;
}

.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

.header-logo-text {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* Override gradient-text for logo - pure white for clarity */
.header-logo-text.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #FFFFFF;
  background-clip: unset;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: #F3E6C4;
}

.header-nav a.active {
  color: #FFFFFF;
  font-weight: 600;
}

/* Active indicator - gold dot */
.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-primary);
}

/* ===== FAQ Accordion ===== */
.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  padding: var(--space-6);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .material-symbols-outlined {
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.faq-item[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
}

.faq-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: var(--line-relaxed);
}

/* ===== Feature Card ===== */
.feature-card {
  padding: var(--space-6);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  margin-bottom: var(--space-4);
}

.feature-icon .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

/* Icon Variants */
.feature-icon-purple {
  background: var(--accent-purple-bg);
  border-color: var(--accent-purple-border);
}

.feature-icon-purple .material-symbols-outlined {
  color: #a78bfa;
}

.feature-icon-pink {
  background: var(--accent-pink-bg);
  border-color: rgba(236, 72, 153, 0.3);
}

.feature-icon-pink .material-symbols-outlined {
  color: #f472b6;
}

/* ===== Feature Grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

/* ===== Tools Group Layout ===== */
.tools-group {
  margin-bottom: 2rem;
}

.tools-group-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.tools-group-title .material-symbols-outlined {
  font-size: 18px;
  color: var(--accent-primary);
}

/* ===== Tool Cards Grid - Premium Crystal Glassmorphism ===== */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;

  /* 磨砂水晶质感 - 极淡渐变填充 */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* 默认边框 - 隐约的灰白色 */
  border: 1px solid rgba(255, 255, 255, 0.08);

  /* 磨砂玻璃效果 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 16px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;

  /* 丝滑动画 - 物理回弹感 */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 微妙的金色光效层 */
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover状态 - 注入灵魂 */
.tool-card:hover {
  /* 1. 磁悬浮上浮效果 */
  transform: translateY(-6px);

  /* 2. 边框点亮为香槟金 */
  border-color: rgba(212, 175, 55, 0.6);

  /* 3. 背景增亮 - 模拟光照 */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* 4. 辉光投影 - 底部金色漫反射 + 内发光 */
  box-shadow:
    0 12px 30px -10px rgba(212, 175, 55, 0.15),
    inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.tool-card:hover::before {
  opacity: 1;
}

/* 图标容器 */
.tool-card-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  margin-bottom: 16px;

  /* 图标独立动画 */
  transition: all 0.4s ease;
}

/* Hover时图标变化 */
.tool-card:hover .tool-card-icon {
  /* 放大并上浮 */
  transform: scale(1.1) translateY(-3px);
  /* 金色辉光 */
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* 图标颜色 */
.tool-card-icon .material-symbols-outlined {
  font-size: 28px;
  color: #8A9BB3;  /* 默认低调的灰蓝色 */
  transition: all 0.4s ease;
}

/* Hover时图标变金色并发光 */
.tool-card:hover .tool-card-icon .material-symbols-outlined {
  color: #D4AF37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 卡片标题 */
.tool-card-title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  color: #F5F7FA;
  margin-bottom: 4px;
  text-align: center;
  transition: color 0.3s ease;
}

/* Hover时标题变浅金色 */
.tool-card:hover .tool-card-title {
  color: #F3E6C4;
}

/* 卡片描述 */
.tool-card-desc {
  position: relative;
  z-index: 1;
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
}

/* AI PRO 胶囊标签 - 精致版 */
.tool-card .badge-ai {
  position: absolute;
  top: 12px;
  right: 12px;

  /* 黑底金字，极显质感 */
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: #D4AF37;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 20px;  /* 胶囊形状 */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  z-index: 2;
  pointer-events: none;  /* 不干扰卡片点击 */
}

/* AI Tool Card Variant - Subtle Gold Accent */
.tool-card-ai {
  border-color: rgba(212, 175, 55, 0.15);
}

.tool-card-ai .tool-card-icon {
  border-color: rgba(212, 175, 55, 0.4);
}

.tool-card-ai .tool-card-icon .material-symbols-outlined {
  color: var(--accent-primary);
}

/* ===== Content Section - Magazine Layout Optimization ===== */

/* SEO Text Content - Narrower for Comfortable Reading */
.card-inner {
  max-width: 100%;
}

/* Gold Bullet Lists - Premium Feel */
.card-inner ul.list-disc,
.card-inner ol.list-decimal {
  list-style: none;
  padding-left: 0;
}

.card-inner ul.list-disc li,
.card-inner ol.list-decimal li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Gold Checkmark Bullets */
.card-inner ul.list-disc li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #D4AF37;
  font-weight: bold;
  font-size: 16px;
}

/* Gold Numbers for Ordered Lists */
.card-inner ol.list-decimal {
  counter-reset: item;
}

.card-inner ol.list-decimal li {
  counter-increment: item;
}

.card-inner ol.list-decimal li::before {
  content: counter(item) '.';
  position: absolute;
  left: 0;
  color: #D4AF37;
  font-weight: 600;
  font-size: 14px;
}

/* Privacy & Security - Enhanced Trust Signal */
.card-inner:has(h3:first-child) {
  position: relative;
  border-left: 2px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.03) 0%, transparent 100%);
  padding-left: 24px !important;
}

/* Privacy Section Icon Enhancement */
.heading-sm {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== What You Can Do Section - Glass Cards Upgrade ===== */

/* Feature Cards - Premium Glassmorphism (Consistent with Tool Cards) */
.feature-card {
  position: relative;
  padding: var(--space-6);

  /* 磨砂水晶质感 - 统一风格 */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* 默认边框 */
  border: 1px solid rgba(255, 255, 255, 0.08);

  /* 磨砂玻璃效果 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: var(--radius-xl);
  overflow: hidden;

  /* 丝滑动画 */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 微妙的金色光效层 */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Hover状态 - 金色微光 */
.feature-card:hover {
  /* 轻微上浮 */
  transform: translateY(-4px);

  /* 边框点亮为香槟金 */
  border-color: rgba(212, 175, 55, 0.6);

  /* 背景增亮 */
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);

  /* 金色辉光 */
  box-shadow:
    0 8px 20px -8px rgba(212, 175, 55, 0.15),
    inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Feature Card Icons - Enhanced */
.feature-card .feature-icon {
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.feature-card .feature-icon .material-symbols-outlined {
  transition: all 0.4s ease;
}

.feature-card:hover .feature-icon .material-symbols-outlined {
  color: #D4AF37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Feature Card Title */
.feature-card .heading-sm {
  transition: color 0.3s ease;
}

.feature-card:hover .heading-sm {
  color: #F3E6C4;
}

/* ===== Footer - Elegant Gold Divider ===== */
.footer {
  position: relative;
  margin-top: calc(var(--space-24) * 1.5);  /* Extra spacing above footer */
  border-top: none;  /* Remove default border */
  background: var(--bg-secondary);
  padding-top: var(--space-16);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;  /* Centered, not full width for elegance */
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.2) 20%, rgba(212, 175, 55, 0.5) 50%, rgba(212, 175, 55, 0.2) 80%, transparent 100%);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-primary);
}

.footer-heading {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Footer heading icon - Gold gradient */
.footer-heading .material-symbols-outlined {
  font-size: 20px;
  background: linear-gradient(135deg, #F3E6C4, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-disabled);
  transition: background var(--transition-fast);
}

.footer-link:hover .footer-dot {
  background: var(--accent-primary);
}

/* Social Icon - Minimal Ghost Style */
.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* TAAFT Badge - Dark Mode Integration */
.footer img[alt*="TAAFT"],
.footer img[alt*="Featured"] {
  filter: invert(1) grayscale(1) brightness(1.2);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.footer img[alt*="TAAFT"]:hover,
.footer img[alt*="Featured"]:hover {
  opacity: 0.9;
  filter: invert(1) grayscale(0.5) brightness(1.3);
}

/* Link Card */
.link-card {
  display: block;
  padding: var(--space-6);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.link-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Gradient Line */
.gradient-line {
  background: var(--gradient-accent-line);
}

/* ===== Window Simulator (macOS Style) ===== */
.window {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.window-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-default);
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dot-red { background: #ff5f57; }
.window-dot-yellow { background: #febc2e; }
.window-dot-green { background: #28c840; }

.window-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide);
}

.window-content {
  padding: var(--space-6);
}

/* ===== Modal ===== */
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  background: var(--gradient-cta);
  padding: var(--space-6);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* ===== Utility Classes ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: calc(var(--space-24) * 1.5) 0;  /* Increased spacing for luxury feel */
}

.section-sm {
  padding: calc(var(--space-12) * 1.3) 0;  /* More breathing room */
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing */
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

/* Padding */
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Width */
.w-full { width: 100%; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  :root {
    --text-hero: 2.5rem;
  }

  .upload-zone {
    min-height: 220px;
    padding: var(--space-6);
  }

  .upload-icon {
    width: 64px;
    height: 64px;
  }

  .upload-icon .material-symbols-outlined {
    font-size: 2rem;
  }

  .section {
    padding: var(--space-16) 0;
  }

  .header-nav {
    display: none;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-pills {
    gap: 0.5rem;
  }

  .pill {
    padding: 0.375rem 0.75rem;
    font-size: var(--text-xs);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Scrollbar Styling - Deep Sea Invisible Gold ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;  /* 保留 8px，以防横向滚动 */
}

::-webkit-scrollbar-track {
  background: #050A14;  /* 和网页背景色一致，深海色 */
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);  /* 默认低调半透明 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #D4AF37;  /* 香槟金 - hover时才显现 */
}

/* ===== Selection ===== */
::selection {
  background: var(--accent-bg);
  color: var(--text-primary);
}

/* ===== Link Styling ===== */
.link {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.link:hover {
  color: #60a5fa;
}

/* ===== Accent Card ===== */
.card-accent {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(124, 58, 237, 0.06) 50%, rgba(37, 99, 235, 0.06) 100%);
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow-lg);
}

/* ===== Why Choose Section - Unboxed Design ===== */
.why-choose-section {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.why-choose-section .grid {
  max-width: 1100px;
  margin: 0 auto;
}

.why-choose-section .highlight-icon {
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-choose-section .highlight-icon .material-symbols-outlined {
  font-size: 48px;
  line-height: 1;
  background: linear-gradient(135deg, #F3E6C4, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.why-choose-section .text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-choose-section .text-center p {
  max-width: 240px;
  text-align: center;
}

/* ===== Format Tag Pills ===== */
.format-tag {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: rgba(27, 40, 56, 0.5);
  transition: all 0.3s ease;
}

.format-tag:hover {
  border-color: var(--accent-primary);
  color: #F3E6C4;
  background: rgba(212, 175, 55, 0.1);
}

/* ===== Highlight Icon ===== */
.highlight-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
}

.highlight-icon .material-symbols-outlined {
  color: var(--accent-primary);
}

/* ===== Success State ===== */
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.75rem;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--success);
}

/* ===== Error State ===== */
.error-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.375rem 0.75rem;
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--error);
}

/* ===== Use Case Cards ===== */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .use-case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.use-case-card {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.use-case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ===== Format Grid ===== */
.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-4);
}

.format-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.format-item:hover {
  border-color: var(--accent-border);
  background: var(--accent-bg);
}

.format-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.format-name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ===== Related Tools Section ===== */
.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.related-tool-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.related-tool-card:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
}

.related-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.related-tool-icon .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--accent-primary);
}

.related-tool-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== Divider ===== */
.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-8) 0;
}

.divider-glow {
  background: var(--gradient-accent-line);
}

/* ===== Backdrop ===== */
.backdrop {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ===== Z-Index System ===== */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* ===== Visibility ===== */
.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ===== Opacity ===== */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

/* ===== Pointer Events ===== */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* ===== Overflow ===== */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* ===== Position ===== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }

/* ===== Border Utilities ===== */
.border { border: 1px solid var(--border-default); }
.border-accent { border-color: var(--accent-border); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* ===== Background Utilities ===== */
.bg-page { background-color: var(--bg-page); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-tertiary { background-color: var(--bg-tertiary); }
.bg-elevated { background-color: var(--bg-elevated); }
.bg-accent { background-color: var(--accent-bg); }

/* ===== Text Color Utilities ===== */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent-primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }

/* ===== Cursor ===== */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* ===== Transition ===== */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

/* ===== Hover Effects ===== */
.hover\:scale-98:hover { transform: scale(0.98); }
.hover\:scale-102:hover { transform: scale(1.02); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:translate-y-up:hover { transform: translateY(-4px); }
.hover\:glow:hover { box-shadow: var(--glow-blue); }

/* ===== Focus States ===== */
.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-bg);
}

/* ===== Screen Reader Only ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* ===== BENTO GRID LAYOUT (Coder.com Style) ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  grid-auto-rows: minmax(140px, auto);
  width: 100%;
}

/* Large Cards - AI Tools (2x2) */
.bento-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Medium Cards (2x1) */
.bento-card-medium {
  grid-column: span 2;
  grid-row: span 1;
}

/* Small Cards - Regular Tools (1x1) */
.bento-card {
  grid-column: span 1;
  grid-row: span 1;
}

/* Responsive Bento Grid */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-card-large {
    grid-column: span 2;
    grid-row: span 2;
  }
  .bento-card-medium {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  .bento-card-medium {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card,
  .bento-card-large,
  .bento-card-medium {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ===== TERMINAL CARD (Coder.com Style) ===== */
.terminal-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-family: var(--font-mono);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.terminal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  padding-top: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
}

.terminal-dot.red {
  background: #ef4444;
}

.terminal-dot.yellow {
  background: #f59e0b;
}

.terminal-dot.green {
  background: #22c55e;
}

.terminal-content {
  position: relative;
  z-index: 1;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.terminal-prompt {
  color: var(--accent-primary);
  user-select: none;
}

.terminal-command {
  color: var(--text-primary);
}

/* ===== ENHANCED BUTTONS (Coder.com Style) ===== */
.btn-coder-primary {
  background: var(--gradient-cta-full);
  background-size: 200% 200%;
  color: #0A1628;  /* Deep ocean blue text on gold background */
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3),
              0 2px 6px rgba(201, 169, 97, 0.2);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-coder-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);  /* Changed from gradient to solid overlay */
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-coder-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4),
              0 4px 10px rgba(201, 169, 97, 0.3),
              var(--glow-blue-lg);
}

.btn-coder-primary:hover::before {
  opacity: 1;
}

.btn-coder-primary:active {
  transform: translateY(0);
}

/* Secondary Coder Button */
.btn-coder-secondary {
  background: transparent;
  color: var(--text-primary);
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: all var(--transition-base);
}

.btn-coder-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-border);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

/* ===== HERO ENHANCEMENTS (Coder.com Style) ===== */
.hero-coder {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-top: var(--header-height);
}

/* Removed hero-specific gradients for unified background */

.hero-coder-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-title-xl {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: var(--letter-tight);
  line-height: var(--line-tight);
  margin-bottom: var(--space-6);
}

.hero-subtitle-xl {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  line-height: var(--line-relaxed);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

/* ===== ENHANCED TOOL CARDS ===== */
.tool-card-enhanced {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.tool-card-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.tool-card-enhanced:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
}

.tool-card-enhanced:hover::before {
  opacity: 1;
}

.tool-card-enhanced.large {
  padding: var(--space-8);
}

.tool-card-enhanced.large .tool-card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-5);
}

.tool-card-enhanced.large .tool-card-icon .material-symbols-outlined {
  font-size: 3rem;
}

.tool-card-enhanced.large .tool-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.tool-card-enhanced.large .tool-card-desc {
  font-size: var(--text-base);
}

/* ===== FEATURE SHOWCASE (3-Column Layout) ===== */
.feature-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.feature-showcase-item {
  text-align: center;
  padding: var(--space-6);
}

.feature-showcase-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: var(--accent-bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.feature-showcase-item:hover .feature-showcase-icon {
  transform: scale(1.05);
  box-shadow: var(--glow-blue);
}

.feature-showcase-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

.feature-showcase-title {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-showcase-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--line-relaxed);
}

/* ===== SECTION BACKGROUNDS ===== */
.section-purple-glow {
  position: relative;
}

.section-purple-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-section-purple);
  pointer-events: none;
  z-index: -1;
}

.section-pink-glow {
  position: relative;
}

.section-pink-glow::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-section-pink);
  pointer-events: none;
  z-index: -1;
}

/* ===== Converter Console - 功能页操作台样式 ===== */

/* 玻璃控制台容器 */
.converter-console {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 24px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 60px -20px rgba(212, 175, 55, 0.1);
  text-align: center;
  position: relative;
}

.converter-console::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

/* 幽灵面包屑 - Ghost Breadcrumbs */
.ghost-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.ghost-breadcrumbs .crumb-link {
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: all 0.3s ease;
}

.ghost-breadcrumbs .crumb-link:hover {
  color: #D4AF37;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.ghost-breadcrumbs .crumb-separator {
  color: rgba(255, 255, 255, 0.12);
  font-size: 10px;
}

.ghost-breadcrumbs .crumb-current {
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* 控制台金色标题 */
.console-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 50%, #C59D24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.console-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* 上传区域 - 能量场风格 */
.upload-console {
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  padding: 48px 32px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-console:hover {
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.upload-console.dragover {
  border-color: #D4AF37;
  background: rgba(212, 175, 55, 0.1);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.3);
}

/* 上传图标 - 金色 + 呼吸动画 */
.upload-console-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.upload-console-icon .material-symbols-outlined {
  font-size: 56px;
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* 呼吸动画 - 等待投喂 */
  animation: gold-breath 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

/* 呼吸动画关键帧 */
@keyframes gold-breath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
  }
}

/* 悬停时加速呼吸 - 准备好了！ */
.upload-console:hover .upload-console-icon .material-symbols-outlined {
  animation-duration: 1s;
  filter: drop-shadow(0 0 25px rgba(243, 230, 196, 0.9));
}

/* 金色主按钮 - 液态金条 */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 40px;
  background: linear-gradient(90deg, #D4AF37 0%, #F3E6C4 50%, #D4AF37 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 12px;
  color: #050A14;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.5);
  transition: all 0.4s ease;
}

.btn-gold:hover {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px -10px rgba(212, 175, 55, 0.7);
}

.btn-gold:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px -8px rgba(212, 175, 55, 0.6);
}

.btn-gold .material-symbols-outlined {
  font-size: 22px;
}

/* 金色大按钮 */
.btn-gold-xl {
  padding: 18px 52px;
  font-size: 1.125rem;
  border-radius: 14px;
  letter-spacing: 0.03em;
}

/* 全宽金色按钮 */
.btn-gold-full {
  width: 100%;
  padding: 18px;
  font-size: 1.125rem;
}

/* 信任徽章 - 精致版 + 呼吸感 */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 36px;
  padding-top: 8px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.trust-badge-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.trust-badge-icon .material-symbols-outlined {
  font-size: 34px;
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.trust-badge-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.trust-badge-desc {
  font-size: 0.8rem;
  color: #94A3B8; /* 雾霾灰，提亮 */
  text-align: center;
  max-width: 130px;
  line-height: 1.4;
}

/* 选项卡片 - 控制台风格 */
.option-card-console {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.option-card-console:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.option-card-console .material-symbols-outlined.accent-text {
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 进度条 - 液态金高级版 (Enhanced) */
.progress-bar-gold {
  min-width: 8px;
  background: linear-gradient(90deg,
    #B8860B 0%,
    #FFD700 25%,
    #FFF8DC 50%,
    #FFD700 75%,
    #B8860B 100%
  );
  background-size: 200% auto;
  box-shadow:
    0 0 15px rgba(255, 215, 0, 0.7),
    0 0 30px rgba(255, 215, 0, 0.4),
    0 0 5px rgba(255, 255, 255, 0.8) inset;
  animation: gold-flow 1.5s linear infinite;
  position: relative;
  border-radius: 50px;
  overflow: hidden; /* Contain shimmer */
}

/* Leading spark for gold version */
.progress-bar-gold::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 1px;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow:
    0 0 6px #FFFFFF,
    0 0 10px #FFD700;
  animation: spark-pulse 0.8s ease-in-out infinite alternate;
}

/* Shimmer for gold version - contained */
.progress-bar-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: progress-shimmer-contained 1.5s ease-in-out infinite;
  border-radius: 50px;
}

/* 进度容器 - 玻璃凹槽 (Enhanced) */
.progress-container-gold {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  overflow: hidden; /* Contain all animations */
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 -1px 2px rgba(255, 255, 255, 0.05);
  height: 10px;
  position: relative;
}

/* 进度状态文字 - 金色 (Enhanced) */
.progress-status-gold {
  font-size: 14px;
  color: #FFD700;
  font-weight: 600;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* 功能页 Hero - 更聚焦 */
.hero-focused {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 0;
}

.hero-focused .hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-focused .hero-subtitle {
  max-width: 600px;
  margin: 0 auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .converter-console {
    padding: 32px 20px;
    margin: 0 16px;
  }

  .console-title {
    font-size: 1.5rem;
  }

  .trust-badges {
    flex-wrap: wrap;
    gap: 24px;
  }

  .btn-gold-xl {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* ===== SEO MAGAZINE LAYOUT - 去盒化杂志风格 ===== */
.seo-magazine {
  /* 无边框，纯内容流 */
}

/* 主标题 - 金色渐变 */
.seo-title {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 50%, #C59D24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* 小标题 - 金色系 */
.seo-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #F3E6C4;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* 更小的标题 */
.seo-subtitle-sm {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(243, 230, 196, 0.85);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

/* 金色标记列表 */
.seo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  space-y: 0.5rem;
}

.seo-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.seo-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 0;
  color: #D4AF37;
  font-size: 0.75rem;
  line-height: 1.6;
  opacity: 0.8;
}

.seo-list li strong {
  font-weight: 600;
}

/* 金色分割线 */
.seo-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 20%,
    rgba(212, 175, 55, 0.5) 50%,
    rgba(212, 175, 55, 0.3) 80%,
    transparent 100%
  );
  margin: 2rem 0;
}

/* FAQ 列表容器 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* FAQ 单项 - 玻璃卡片 */
.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item strong {
  font-size: 0.9375rem;
  font-weight: 600;
}

.faq-item span {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* SEO Magazine 响应式 */
@media (max-width: 768px) {
  .seo-title {
    font-size: 1.75rem;
  }

  .seo-subtitle {
    font-size: 1rem;
  }

  .seo-list li {
    font-size: 0.875rem;
  }
}

/* ===== GOLDEN TIMELINE - 鎏金时间轴 ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* 连接线 */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.5), rgba(212, 175, 55, 0.1));
}

/* 金边镂空圆 */
.timeline-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1.5px solid #D4AF37;
  color: #D4AF37;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
  background: #050A14;
  position: relative;
  z-index: 2;
}

.timeline-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===== GLASS CARD - 深海玻璃卡片 ===== */
.card-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card-glass:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.08);
}

/* 玻璃卡片内的图标容器 */
.card-glass .highlight-icon {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ===== LANGUAGE CHIPS - 语言胶囊 ===== */
.lang-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.lang-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.lang-chip:hover {
  border-color: rgba(212, 175, 55, 0.5);
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.lang-chip .flag {
  font-size: 1.5rem;
  line-height: 1;
}

.lang-chip .name {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

.lang-chip:hover .name {
  color: #F3E6C4;
}

/* ===== UNBOXED SECTION - 去盒化区域 ===== */
.section-unboxed {
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 金色渐变标题 - 小号 */
.heading-gold {
  background: linear-gradient(135deg, #F3E6C4 0%, #D4AF37 50%, #C59D24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tips 区域样式 */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tips-grid .tip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tips-grid .tip-item .material-symbols-outlined {
  color: #D4AF37;
  font-size: 1.25rem;
  margin-top: 0.125rem;
}

.tips-grid .tip-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

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

  .lang-chips {
    gap: 0.75rem;
  }

  .lang-chip {
    padding: 0.625rem 1rem;
  }
}

/* ===== FAQ ACCORDION - 玻璃折叠面板 ===== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-accordion details {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  transition: all 0.3s ease;
}

.faq-accordion details:hover {
  border-color: rgba(212, 175, 55, 0.2);
}

.faq-accordion details[open] {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.03);
}

.faq-accordion summary {
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary .material-symbols-outlined {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq-accordion details[open] summary .material-symbols-outlined {
  transform: rotate(180deg);
  color: #D4AF37;
}

.faq-accordion .faq-answer {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ===== LINK CARD GLASS - 玻璃链接卡片 ===== */
.link-card-glass {
  display: block;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.link-card-glass:hover {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.link-card-glass .card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.link-card-glass .card-title .material-symbols-outlined {
  color: #D4AF37;
  font-size: 1.25rem;
}

.link-card-glass .card-title span:last-child {
  font-weight: 600;
  color: var(--text-primary);
}

.link-card-glass .card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== Premium Breadcrumb Navigation (玻璃态胶囊) ===== */
.ac-breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ac-breadcrumb-nav li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ac-breadcrumb-nav a {
  color: #999;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.ac-breadcrumb-nav a:hover {
  color: #D4AF37;
}

.ac-breadcrumb-nav .ac-breadcrumb-separator {
  color: rgba(212, 175, 55, 0.5);
  font-size: 0.75rem;
}

.ac-breadcrumb-nav .ac-breadcrumb-current {
  color: #D4AF37;
  font-weight: 500;
  font-size: 0.875rem;
}

/* ===== 移动端全局溢出修复 ===== */
@media (max-width: 767px) {
  html, body, .coder-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  main, section, article, .container {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Bento Grid 单列布局 */
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 1rem !important;
  }

  .bento-card, .bento-card-lg {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* SEO 内容区域 */
  .seo-section, .seo-content, .seo-magazine {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Feature 卡片 */
  .feature-grid {
    grid-template-columns: 1fr !important;
    padding: 0 1rem !important;
  }

  .feature-card, .link-card-glass {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 文字换行 */
  h1, h2, h3, h4, p, span, li {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* Hero 区域 */
  .hero-section, .section-header {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 页面标题 */
  .page-title, .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  .hero-subtitle, .page-subtitle {
    font-size: 1rem !important;
  }
}
