/* Design Tokens & Variables */
:root {
    /* Colors */
    --color-dark: #21163C;
    --color-paper: #F4F3F7;
    --color-text: #191523;
    --color-brand: #5214EB;
    --color-accent: #ED926E;
    
    /* Spacing & Layout */
    --radius-card: 20px;
    --radius-btn: 12px;
    --card-border: 0;
    --card-shadow: 0 10px 28px -14px rgba(25, 21, 35, 0.3);
    --section-y: clamp(5rem, 10vw, 9rem);
    --gap: clamp(1.5rem, 3vw, 2.5rem);
    --content-max: 960px;
    
    /* Typography */
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-paper);
    color: var(--color-text);
    line-height: 1.75;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

.bg-dark {
    background-color: var(--color-dark);
    color: var(--color-paper);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 1.25rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1.5rem;
    max-width: 70ch;
}

.text-center {
    text-align: center;
}

/*眉标 (Eyebrow)*/
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-brand);
}

.bg-dark .eyebrow {
    color: var(--color-accent);
}

.hl {
    color: var(--color-brand);
}

.bg-dark .hl {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 52px;
    padding: 0 24px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 4px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 146, 110, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.bg-dark .btn-secondary {
    color: var(--color-paper);
    border-color: var(--color-paper);
}

.btn-secondary:hover {
    background-color: rgba(25, 21, 35, 0.05);
}

.bg-dark .btn-secondary:hover {
    background-color: rgba(244, 243, 247, 0.1);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(244, 243, 247, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(25, 21, 35, 0.05);
    padding: 16px 0;
}

.bg-dark ~ .site-header {
    background-color: rgba(33, 22, 60, 0.9);
    border-bottom-color: rgba(244, 243, 247, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-text);
}

.bg-dark .logo {
    color: var(--color-paper);
}

.logo img {
    height: 32px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 24px;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

nav a:hover, nav a[aria-current="page"] {
    background-color: rgba(82, 20, 235, 0.08);
    color: var(--color-brand);
}

.bg-dark nav a {
    color: var(--color-paper);
}

.bg-dark nav a:hover, .bg-dark nav a[aria-current="page"] {
    background-color: rgba(237, 146, 110, 0.15);
    color: var(--color-accent);
}

@media (max-width: 640px) {
    nav ul {
        display: none; /* Simplified mobile nav for this output */
    }
    .header-btn {
        display: none;
    }
}

/* Cards */
.card {
    background-color: white;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px -12px rgba(25, 21, 35, 0.4);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--gap);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--gap);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 32px;
    border-left: 2px solid var(--color-brand);
    margin-left: 16px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 6px;
    width: 16px;
    height: 16px;
    background-color: var(--color-paper);
    border: 4px solid var(--color-brand);
    border-radius: 50%;
}

.bg-dark .timeline {
    border-left-color: var(--color-accent);
}

.bg-dark .timeline-item::before {
    background-color: var(--color-dark);
    border-color: var(--color-accent);
}

.time-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 0.5rem;
}

.bg-dark .time-tag {
    color: var(--color-accent);
}

/* Tabs (CSS Only) */
.tabs-wrapper {
    margin-top: 2rem;
}

.tab-radio {
    display: none;
}

.tab-labels {
    display: flex;
    gap: 16px;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(25, 21, 35, 0.1);
    overflow-x: auto;
    padding-bottom: 2px;
}

.tab-label {
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-text);
    opacity: 0.6;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-label:hover {
    opacity: 1;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

/* Active Tab Styles */
#tab1:checked ~ .tab-labels label[for="tab1"],
#tab2:checked ~ .tab-labels label[for="tab2"],
#tab3:checked ~ .tab-labels label[for="tab3"],
#tab4:checked ~ .tab-labels label[for="tab4"] {
    opacity: 1;
    color: var(--color-brand);
    border-bottom: 2px solid var(--color-brand);
    margin-bottom: -2px;
}

#tab1:checked ~ .tab-panels .panel-1,
#tab2:checked ~ .tab-panels .panel-2,
#tab3:checked ~ .tab-panels .panel-3,
#tab4:checked ~ .tab-panels .panel-4 {
    display: block;
}

.bg-dark .tab-label {
    color: var(--color-paper);
}

.bg-dark .tab-labels {
    border-bottom-color: rgba(244, 243, 247, 0.2);
}

.bg-dark #tab1:checked ~ .tab-labels label[for="tab1"],
.bg-dark #tab2:checked ~ .tab-labels label[for="tab2"],
.bg-dark #tab3:checked ~ .tab-labels label[for="tab3"],
.bg-dark #tab4:checked ~ .tab-labels label[for="tab4"] {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* FAQ Details */
details {
    background-color: white;
    border-radius: var(--radius-card);
    margin-bottom: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

summary {
    padding: 24px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-right: 48px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-brand);
    transition: transform 0.3s;
}

details[open] summary::after {
    content: '-';
    color: var(--color-brand);
}

.details-content {
    padding: 0 24px 24px 24px;
    color: var(--color-text);
    opacity: 0.9;
}

.bg-dark details {
    background-color: rgba(244, 243, 247, 0.05);
}

.bg-dark summary::after {
    color: var(--color-accent);
}

.bg-dark details[open] summary::after {
    color: var(--color-accent);
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    counter-reset: step-counter;
}

.step-item {
    position: relative;
    padding: 24px;
    background: rgba(255,255,255,0.5);
    border-radius: var(--radius-card);
    counter-increment: step-counter;
}

.step-item::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-weight: 800;
    border-radius: 10px;
    margin-bottom: 16px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

th, td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(25, 21, 35, 0.05);
}

th {
    background-color: rgba(82, 20, 235, 0.05);
    font-weight: 700;
    color: var(--color-brand);
}

td strong {
    color: var(--color-text);
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-paper);
    padding: 64px 0 32px;
    margin-top: var(--section-y);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(244, 243, 247, 0.1);
    padding-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Animations */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.anim-star {
    animation: twinkle 4s infinite ease-in-out;
}

.anim-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: dash 3s infinite linear;
}

.anim-float {
    animation: float 6s infinite ease-in-out;
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
