/* ===================================
   CSS Variables - Brand Color System
   =================================== */
:root {
	/*version 1.17 */
  /* Primary - Fiducial Red System */
  --color-primary-deep: #cd2e26;
  --color-primary: #cd2e26;
  --color-primary-light: #cd2e26;
  --color-primary-soft: #E7646A;
  --color-primary-subtle: #F5EAEB;
  --fiducial-red: #cd2e26;
  --fiducial-red-dark: #be1e2c;

  /* Neutral - Fiducial Gray Scale */
  --color-neutral-ink: #1a1b1f;
  --color-neutral-slate: #1a1b1f;
  --color-neutral-graphite: #222;
  --color-neutral-cool: #5a5a5a;
  --color-neutral-mist: #f1f1f1;
  --color-neutral-warm: #ffffff;
  --color-neutral-stone: #ececec;
  --color-neutral-paper: #ffffff;
  --fiducial-dark: #1a1b1f;
  --fiducial-gray: #5a5a5a;
  --fiducial-light: #ececec;

  /* Accent - Removed gold/copper, use red */
  --color-accent-gold: #cd2e26;
  --color-accent-copper: #cd2e26;
  --color-accent-bronze: #cd2e26;

  /* Semantic */
  --color-success: #129E6C;
  --color-success-light: #E6F7F0;
  --color-info: #cd2e26;
  --color-info-light: #F5EAEB;
  --color-warning: #E88B2E;
  --color-warning-light: #FEF5E7;

  /* Text */
  --color-text-primary: #1a1b1f;
  --color-text-secondary: #5a5a5a;
  --color-text-muted: #5a5a5a;

  /* Background */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f1f1f1;
  --color-bg-paper: #ffffff;

  /* Shadows - Enhanced hierarchy system */
  --shadow-subtle: 0 1px 3px rgba(31, 34, 39, 0.08), 0 1px 2px rgba(31, 34, 39, 0.06);
  --shadow-card: 0 4px 12px rgba(31, 34, 39, 0.12), 0 2px 4px rgba(31, 34, 39, 0.08);
  --shadow-elevated: 0 10px 25px rgba(31, 34, 39, 0.15), 0 4px 10px rgba(31, 34, 39, 0.1);
  --shadow-dramatic: 0 20px 40px rgba(31, 34, 39, 0.2), 0 8px 16px rgba(31, 34, 39, 0.12);
  --shadow-brand: 0 8px 20px rgba(205, 46, 38, 0.25), 0 3px 8px rgba(205, 46, 38, 0.15);

  /* Spacing Scale - 8px base unit */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-12: 6rem;    /* 96px */
}

/* ===================================
   Base Styles & Typography
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    letter-spacing: -0.011em;
}

.font-serif {
    font-family: 'Lora', Georgia, serif;
}

/* ===================================
   Custom Scrollbar
   =================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-neutral-cool);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-deep);
}

/* ===================================
   Smooth Scroll
   =================================== */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable both-edges;
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    max-width: 900px;
    padding-top: 4rem;
    padding-bottom: 5rem;
    margin: 0 auto;
}

/* ===================================
   Prose Styling for Article Content
   =================================== */
.prose {
    color: var(--color-text-primary);
    margin: 0 auto;
}

.prose h2,
.prose h3 {
    color: var(--color-text-secondary);
}

.prose strong {
    color: var(--color-text-secondary);
}

/* H2标题 - 添加红色装饰线 */
.prose h2,
h2.text-3xl {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 1.5rem;
}

.prose h2::before,
h2.text-3xl::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #cd2e26 0%, #be1e2c 100%);
    border-radius: 2px;
}

.prose h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 0;
    list-style: none;
}

.prose li {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    padding-left: 2rem;
    position: relative;
}

/* 红色bullet points */
.prose li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #cd2e26 0%, #be1e2c 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(205, 46, 38, 0.15);
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   Modern Navigation Header
   =================================== */
.nav-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-header.scrolled {
    background-color: rgba(249, 246, 242, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--color-neutral-stone);
    box-shadow: var(--shadow-card);
}

.nav-container {
    display: flex;
    height: 3.5rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

/* Logo & Left Section */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 4px 8px rgba(140, 28, 42, 0.2));
}

.nav-logo .logo-img {
    height: 2rem;
    width: 2rem;
    transition: filter 0.3s;
}

.nav-logo .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-dropdown-trigger:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary-deep);
}

.nav-dropdown-trigger .chevron {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown Content */
.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    min-width: 28rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-grid {
    background: var(--color-neutral-paper);
    border: 1px solid var(--color-neutral-stone);
    border-radius: 0.75rem;
    padding: 0.5rem;
    box-shadow: var(--shadow-elevated);
    display: grid;
    gap: 0.5rem;
}

.dropdown-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--color-bg-secondary);
}

.item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-neutral-stone);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-subtle);
}

.item-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-text-primary);
}

.item-title {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-primary);
    margin-bottom: 0.125rem;
}

.item-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-neutral-cool);
}

.dropdown-footer {
    padding: 0.75rem;
    font-size: 0.875rem;
    color: var(--color-neutral-cool);
    border-top: 1px solid var(--color-neutral-stone);
}

.dropdown-footer a {
    color: var(--color-primary-deep);
    font-weight: 600;
    text-decoration: none;
}

.dropdown-footer a:hover {
    text-decoration: underline;
}

/* Direct Links */
.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: var(--color-bg-secondary);
    color: var(--color-primary-deep);
}

/* Right Section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-toggle {
    padding: 0.5rem;
    border: 1px solid var(--color-neutral-stone);
    border-radius: 0.375rem;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: var(--color-bg-secondary);
}

/* Responsive */
@media (prefers-reduced-motion: reduce) {
    .nav-header,
    .nav-dropdown-trigger,
    .dropdown-item {
        transition: none;
    }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
    color: var(--color-neutral-paper);
    box-shadow: var(--shadow-brand);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--fiducial-red) 0%, transparent 50%);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--fiducial-red-dark) 100%);
    box-shadow:
        0 12px 24px rgba(205, 46, 38, 0.35),
        0 0 20px rgba(205, 46, 38, 0.2);
    transform: translateY(-2px);
    border-color: var(--fiducial-red-dark);
}

.btn-primary:hover::before {
    opacity: 0.2;
}

.btn-primary:active {
    transform: translateY(0px) scale(0.98);
    box-shadow:
        0 6px 12px rgba(205, 46, 38, 0.25),
        0 0 10px rgba(205, 46, 38, 0.2);
}

.btn-primary:focus {
    outline: 3px solid var(--fiducial-red);
    outline-offset: 3px;
}

.btn-secondary {
    background-color: var(--color-neutral-paper);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-neutral-stone);
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
    border-color: var(--fiducial-red);
    box-shadow: 0 4px 12px rgba(205, 46, 38, 0.15);
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0px) scale(0.98);
}

.btn-secondary:focus {
    outline: 2px solid var(--fiducial-red);
    outline-offset: 2px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===================================
   Hero Section - Enhanced Depth & Overlay
   =================================== */
/* Base hero styles in critical.css, enhancements below */

/* Hero::before 已在 critical.css 中定义为右下角 logo，此处移除重复定义 */

/* Ensure hero content is above overlay */
.hero-content {
  position: relative;
  z-index: 2;
}

/* Hero文字白色 - 仅限hero区域内 */
.hero h1,
.hero h2,
.hero h3 {
  color: #ffffff !important;
}

.hero > .container > .hero-grid > .hero-content p,
.hero .hero-description {
  color: rgba(255, 255, 255, 0.85);
}

.hero > .container > .hero-grid > .hero-content a {
  color: #ffffff;
}

/* 确保hero外的内容不受影响 */
main:not(.hero) h1,
main:not(.hero) h2,
main:not(.hero) h3,
main:not(.hero) p {
  color: inherit;
}

/* Hero badge with subtle glass effect */
.hero-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

/* Multi-layer hero card stacking for enhanced depth */
.hero-cards-container {
  position: relative;
}

.hero-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(250, 245, 245, 0.85) 100%);
  border-radius: 0.75rem; /* 与主卡片圆角一致 */
  border: 1px solid rgba(205, 46, 38, 0.08);
  transition: all 0.4s ease;
}

.hero-card-bg-1 {
  z-index: 1;
  transform: translateY(12px) scale(0.96);
  opacity: 0.25;
  box-shadow: 0 4px 8px rgba(31, 34, 39, 0.08);
}

.hero-card-bg-2 {
  z-index: 2;
  transform: translateY(6px) scale(0.98);
  opacity: 0.45;
  box-shadow: 0 6px 12px rgba(31, 34, 39, 0.1);
}

.hero-card-bg-3 {
  z-index: 3;
  transform: translateY(3px) scale(0.99);
  opacity: 0.65;
  box-shadow: 0 8px 16px rgba(31, 34, 39, 0.12);
}

.hero-card-active,
.hero-card {
  position: relative;
  z-index: 4;
  background: #ffffff;
  border-radius: 0.75rem;
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Optional: Red accent lines for key sections */
.section-accent::before {
  content: '';
  display: block;
  width: 46px;
  height: 2px;
  background-color: #cd2e26;
  margin-bottom: 20px;
}

/* ===================================
   Stats Cards
   =================================== */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

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

.stat-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid;
    text-align: center;
}

.stat-card.blue {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-neutral-stone);
    border-top: 3px solid var(--color-primary-deep);
}

.stat-card.green {
    background-color: var(--color-success-light);
    border-color: var(--color-success);
    border-top: 3px solid var(--color-success);
}

.stat-card.purple {
    background-color: var(--color-primary-subtle);
    border-color: var(--color-primary-soft);
    border-top: 3px solid var(--fiducial-red);
}

.stat-card.gray {
    background-color: var(--color-bg-secondary);
    border-color: var(--color-neutral-stone);
    border-top: 3px solid var(--color-neutral-cool);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-value.blue { color: var(--fiducial-red); }
.stat-value.green { color: var(--color-success); }
.stat-value.purple { color: var(--fiducial-red); }
.stat-value.dark { color: var(--color-text-primary); }

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===================================
   Table of Contents
   =================================== */
.table-of-contents {
    margin: 3rem 0;
    padding: 1.5rem;
    background: var(--color-bg-secondary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--fiducial-red);
    box-shadow: var(--shadow-subtle);
}

.table-of-contents h3 {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.table-of-contents ol {
    display: grid;
    gap: 0.5rem;
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.table-of-contents a {
    color: var(--color-primary-deep);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.table-of-contents a:hover {
    color: var(--fiducial-red);
    text-decoration: underline;
}

/* ===================================
   Tables
   =================================== */
.table-container {
    overflow-x: auto;
    margin: 3rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
}

thead {
    background: linear-gradient(135deg, var(--color-neutral-slate) 0%, var(--color-neutral-ink) 100%);
    color: var(--color-neutral-paper);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border: 1px solid #d1d5db;
}

td {
    padding: 1rem;
    border: 1px solid #d1d5db;
}

tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

td.font-semibold {
    font-weight: 600;
}

/* ===================================
   Case Study Cards
   =================================== */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

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

.case-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.case-card.risk {
    background: linear-gradient(to bottom right, #fef2f2, #fee2e2);
    border-color: #fecaca;
}

.case-card.opportunity {
    background: linear-gradient(to bottom right, #f0fdf4, #dcfce7);
    border-color: #bbf7d0;
}

.case-badge {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.case-badge.risk { color: #dc2626; }
.case-badge.opportunity { color: #16a34a; }

.case-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.case-subtitle {
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.75rem;
}

.case-metric {
    font-size: 1.875rem;
    font-weight: 700;
}

.case-metric.risk { color: #dc2626; }
.case-metric.opportunity { color: #16a34a; }

.case-description {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ===================================
   Checklist / Feature List
   =================================== */
.checklist {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-neutral-stone);
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 3rem 0;
    border-left: 4px solid var(--color-primary-deep);
    box-shadow: var(--shadow-subtle);
}

.checklist h3 {
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checklist-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.checklist-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.125rem;
}

.checklist-icon svg {
    width: 100%;
    height: 100%;
    color: var(--color-success);
}

.checklist-content {
    flex: 1;
}

.checklist-title {
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.checklist-description {
    font-size: 0.875rem;
    color: #374151;
}

/* ===================================
   Main Content Visual Rhythm
   =================================== */
/* 为长内容区域添加微妙的视觉分隔 */
.prose section {
    padding: 3rem 2rem;
    position: relative;
}

/* 每隔一个section添加浅色背景 */
.prose section:nth-of-type(even) {
    background: linear-gradient(135deg,
        rgba(249, 249, 249, 0.5) 0%,
        rgba(255, 255, 255, 0.3) 100%);
    border-radius: 8px;
}

/* 为section分隔添加微妙的装饰 */
.prose section + section {
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 3rem;
}

/* 移除第一个section的上边框 */
.prose section:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* 确保主内容区域文字是深色 */
.main-content,
.main-content p,
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6,
.main-content li {
    color: inherit; /* 继承默认深色 */
}

/* 明确设置prose区域文字颜色 */
.prose {
    color: var(--color-text-primary);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    color: var(--color-text-secondary);
}

/* ===================================
   Callout / Tip Boxes
   =================================== */
.callout {
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

/* 添加微妙的渐变左边框 */
.callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--fiducial-red);
}

.callout.info {
    background: linear-gradient(135deg,
        rgba(245, 234, 235, 0.5) 0%,
        rgba(255, 250, 250, 0.8) 100%);
    border: 1px solid rgba(205, 46, 38, 0.15);
}

.callout.info::before {
    background: linear-gradient(180deg,
        #cd2e26 0%,
        #be1e2c 100%);
}

.callout.warning {
    background: linear-gradient(135deg,
        rgba(254, 245, 231, 0.5) 0%,
        rgba(255, 250, 245, 0.8) 100%);
    border: 1px solid rgba(232, 139, 46, 0.15);
}

.callout.warning::before {
    background: linear-gradient(180deg,
        var(--color-warning) 0%,
        #d67a1e 100%);
}

.callout.tip {
    background: linear-gradient(135deg,
        rgba(245, 234, 235, 0.6) 0%,
        rgba(255, 250, 250, 0.9) 100%);
    border: 1px solid rgba(205, 46, 38, 0.2);
}

.callout.tip::before {
    background: linear-gradient(180deg,
        #cd2e26 0%,
        #be1e2c 100%);
    width: 5px;
}

.callout h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text-secondary);
}

.callout p {
    font-size: 0.875rem;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.6;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-section {
    background-color: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 3rem 4rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-subtle);
}

.faq-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1b1f;
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.3;
    padding-left: 2rem;
    padding-right: 3rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    padding-bottom: 2rem;
    padding-left: 2rem;
    border-bottom: 1px solid #ececec;
    position: relative;
}

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

.faq-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1b1f;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    position: relative;
    padding-left: 1.25rem;
}

/* 添加红色bullet point to h4 */
.faq-item h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #cd2e26;
    border-radius: 50%;
}

.faq-item p {
    font-size: 1rem;
    color: #5a5a5a;
    line-height: 1.7;
    margin: 0;
    padding-left: 1.25rem;
    padding-right: 3rem;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 2rem 2rem;
    }

    .faq-section h3 {
        font-size: 1.5rem;
        padding-left: 1.5rem;
        padding-right: 1rem;
    }

    .faq-item h4 {
        font-size: 1.125rem;
        padding-left: 1rem;
    }

    .faq-item {
        padding-left: 1.5rem;
    }

    .faq-item p {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===================================
   FAQ Section - ETF Education Page
   =================================== */
.faq-section-etf {
    background-color: #f9f9f9;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 3rem 4rem;
    margin-top: 4rem;
    box-shadow: var(--shadow-subtle);
}

.faq-section-etf h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1b1f;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.faq-section-etf .faq-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2rem; /* Added padding to align with other sections */
}

.faq-section-etf .faq-item {
    padding-bottom: 2rem;
    padding-left: 2rem;
    border-bottom: 1px solid #ececec;
    position: relative;
}

.faq-section-etf .faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Move bullet point to h4 instead of .faq-item */
.faq-section-etf .faq-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1b1f;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
}

.faq-section-etf .faq-item h4::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background-color: #cd2e26;
    border-radius: 50%;
}

.faq-section-etf .faq-item p {
    font-size: 1rem;
    color: #5a5a5a;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-section-etf {
        padding: 2rem 2rem;
    }

    .faq-section-etf h3 {
        font-size: 1.5rem;
    }

    .faq-section-etf .faq-items {
        padding-left: 1.5rem;
    }

    .faq-section-etf .faq-item h4 {
        font-size: 1.125rem;
    }

    .faq-section-etf .faq-item {
        padding-left: 1.5rem;
    }

    .faq-section-etf .faq-item h4::before {
        left: -0.75rem;
    }
}

/* ===================================
   Rating Section
   =================================== */
.rating-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #d1d5db;
}

.rating-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.5rem;
}

.star-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--fiducial-red);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.star-button:hover {
    transform: scale(1.25) rotate(15deg);
    filter: drop-shadow(0 4px 6px rgba(253, 186, 77, 0.4));
    color: var(--color-primary-deep);
}

.star-button:active {
    transform: scale(1.15) rotate(0deg);
}

.star-button:focus {
    outline: 2px solid var(--fiducial-red);
    outline-offset: 4px;
    border-radius: 4px;
}

.star-button svg {
    width: 1.75rem;
    height: 1.75rem;
    fill: currentColor;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    position: relative;
    margin-top: 5rem;
    padding: 2.75rem;
    background: linear-gradient(130deg,
        rgba(36, 52, 74, 0.95) 0%,
        rgba(140, 28, 42, 0.92) 55%,
        rgba(215, 174, 99, 0.35) 100%);
    color: var(--color-neutral-paper);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* CTA Background pattern */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 85% 20%, rgba(215, 174, 99, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 20% 85%, rgba(255, 255, 255, 0.1) 0%, transparent 45%);
    mix-blend-mode: screen;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        transparent 65%);
    pointer-events: none;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 3.25rem;
    }
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-section h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .cta-section h3 {
        font-size: 2.25rem;
    }
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.92;
    max-width: 42rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.cta-section .btn-secondary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-neutral-paper);
    border: none;
    box-shadow: var(--shadow-brand);
}

.cta-section .btn-secondary:hover {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-soft) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 16px 32px rgba(140, 28, 42, 0.35),
        0 0 30px rgba(215, 174, 99, 0.3);
}

.cta-section .btn-secondary:active {
    transform: translateY(0px) scale(1.0);
}

/* ===================================
   Related Articles
   =================================== */
.related-section {
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.related-section h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

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

.related-card {
    padding: 2rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: var(--color-primary-deep);
    box-shadow: var(--shadow-brand);
    transform: translateY(-4px) scale(1.01);
    background: linear-gradient(to bottom, #ffffff 0%, var(--color-bg-secondary) 100%);
}

.related-card:active {
    transform: translateY(-2px) scale(1.0);
}

.related-badge {
    font-size: 0.75rem;
    color: var(--color-primary-deep);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.related-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s;
    color: var(--color-text-secondary);
}

.related-card:hover .related-title {
    color: var(--color-primary-deep);
}

.related-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ===================================
   Decorative Divider
   =================================== */
.content-divider {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
}

.content-divider .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        var(--color-neutral-stone) 20%,
        var(--fiducial-red) 50%,
        var(--color-neutral-stone) 80%,
        transparent);
    opacity: 0.5;
}

.divider-ornament {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--color-primary-deep) 0%,
        var(--fiducial-red) 100%);
    border-radius: 50%;
    box-shadow:
        0 4px 12px rgba(140, 28, 42, 0.2),
        0 0 20px rgba(215, 174, 99, 0.15);
    animation: pulse-glow 3s ease-in-out infinite;
}

.divider-ornament svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-neutral-paper);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 4px 12px rgba(140, 28, 42, 0.2),
            0 0 20px rgba(215, 174, 99, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 6px 16px rgba(140, 28, 42, 0.3),
            0 0 30px rgba(215, 174, 99, 0.25);
        transform: scale(1.05);
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .divider-ornament {
        animation: none;
    }
}

/* ===================================
   Footer - Modern Card Design
   =================================== */
.footer-modern {
    margin-top: 2rem;
    padding: 2rem 0 3rem;
    background-color: var(--color-bg-primary);
}

.footer-card {
    position: relative;
    background: var(--color-neutral-paper);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-elevated);
    overflow: visible;
}

@media (min-width: 768px) {
    .footer-card {
        padding: 3rem 4rem;
    }
}

/* Decorative Tape Elements */
.tape-decoration {
    position: absolute;
    width: 80px;
    height: 36px;
    display: none;
}

@media (min-width: 768px) {
    .tape-decoration {
        display: block;
    }

    .tape-left {
        top: -1rem;
        left: -2rem;
        transform: scale(0.75);
    }

    .tape-right {
        top: -1rem;
        right: -2rem;
        transform: rotate(90deg) scale(0.75);
    }
}

/* Footer Content */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: start;
    }
}

/* Brand Section */
.footer-brand-section {
    flex: 1;
    max-width: 24rem;
}

.footer-brand-section .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-neutral-cool);
    line-height: 1.6;
    font-weight: 500;
}

/* Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    flex: 1;
}

@media (min-width: 768px) {
    .footer-links-grid {
        gap: 3rem;
        margin-left: 2rem;
    }
}

.footer-column-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-neutral-cool);
    margin-bottom: 1rem;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links-list a {
    font-size: 0.875rem;
    color: var(--color-neutral-cool);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--color-primary-deep);
    transform: translateX(4px);
}

/* Footer Bottom Bar */
.footer-bottom-bar {
    margin-top: 2rem;
    padding: 1.5rem 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .footer-bottom-bar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-copyright-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .footer-copyright-section {
        flex-direction: row;
        gap: 2rem;
        align-items: center;
    }
}

.footer-copyright-section p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    white-space: nowrap;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.footer-legal-links a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--color-primary-deep);
}

.footer-legal-links .separator {
    color: var(--color-neutral-stone);
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-social-icon:hover {
    background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--fiducial-red) 100%);
    color: var(--color-neutral-paper);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 20px rgba(140, 28, 42, 0.3);
}

.footer-social-icon:active {
    transform: scale(1.05) rotate(0deg);
}

.footer-social-icon:focus {
    outline: 2px solid var(--fiducial-red);
    outline-offset: 3px;
}

/* ===================================
   Images & Media
   =================================== */
.image-container {
    margin: 3rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

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

/* Text Colors */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }

/* Text Sizes */
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75;
}

/* Font Styles */
.italic { font-style: italic; }
.font-bold { font-weight: 700; }

/* Logo & Brand */
.logo-img {
    height: 2rem;
    width: 2rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Buttons & Icons */
.mobile-menu-btn {
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}

/* Layout */
.max-w-6xl {
    max-width: 72rem;
}

/* Lists */
.list-decimal {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-top: 0.75rem;
}

.list-disc {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Spacing */
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* ===================================
   Responsive Utilities
   =================================== */
@media (max-width: 767px) {
    .hide-mobile { display: none; }
}

@media (min-width: 768px) {
    .hide-desktop { display: none; }
}

/* ===================================
   Performance Optimizations
   =================================== */

/* Content-visibility for long articles */
article section {
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

/* Prevent layout shifts during image loading */
img {
    max-width: 100%;
    height: auto;
}

/* GPU acceleration - only apply during interaction */
.hero-card:hover,
.hero-card-bg:hover,
.btn:hover,
.stat-card:hover,
.related-card:hover {
    transform: translateZ(0);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   Maintenance Mode Overlay
   =================================== */
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
