/* ==========================================================================
   Global Design System & Reset
   ========================================================================== */
:root {
    /* Colors */
    --color-bg-primary: #0B0C0D;       /* 沉浸式深黑背景 */
    --color-bg-secondary: #15171A;     /* 次级区块背景 */
    --color-surface: #1E2125;          /* 卡片与模块表面 */
    --color-border: #2E3238;           /* 柔和的边框线条 */
    
    --color-text-main: #F0F2F5;        /* 主要文字 */
    --color-text-muted: #8B949E;       /* 次要/辅助文字 */
    --color-highlight: #00A884;        /* WhatsApp 经典翠绿 - 强调色 */
    --color-highlight-glow: rgba(0, 168, 132, 0.2);

    /* Typography */
    --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-size-hero: clamp(2.5rem, 5vw, 4rem);
    --font-size-h1: clamp(2rem, 4vw, 3rem);
    --font-size-h2: clamp(1.75rem, 3vw, 2.25rem);
    --font-size-body: 1.05rem;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --spacing-section: clamp(4rem, 10vh, 8rem);
    --radius-card: 12px;
    --transition-base: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Accessibility Focus */
    --focus-ring: 0 0 0 3px var(--color-highlight-glow), 0 0 0 5px var(--color-highlight);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    font-family: var(--font-stack);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-section) 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 12, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo img {
    height: 32px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.nav-link:hover, .nav-link[aria-current="page"] {
    color: var(--color-highlight);
}

/* ==========================================================================
   Typography Components
   ========================================================================== */
.heading-lg {
    font-size: var(--font-size-hero);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.heading-md {
    font-size: var(--font-size-h1);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.text-body {
    color: var(--color-text-muted);
    font-size: var(--font-size-body);
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--color-highlight);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn-primary {
    background-color: var(--color-highlight);
    color: #fff;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-highlight-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-highlight);
    color: var(--color-highlight);
}

/* ==========================================================================
   Cards & Surface Elements
   ========================================================================== */
.card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: border-color var(--transition-base);
}

.card:hover {
    border-color: var(--color-highlight);
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(0, 168, 132, 0.1);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: var(--color-highlight);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-body p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th, .data-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    background-color: var(--color-surface);
    font-weight: 600;
    color: var(--color-text-main);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 1.25rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color var(--transition-base);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    color: var(--color-highlight);
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--color-highlight);
}

.faq-item .answer {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    background-color: var(--color-bg-secondary);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-highlight);
}

.copyright-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* ==========================================================================
   SVG Animation Styles
   ========================================================================== */
.svg-graphic {
    width: 100%;
    height: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.orbit-ring {
    fill: none;
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    animation: spin 20s linear infinite;
}

.orbit-pulse {
    fill: none;
    stroke-width: 1;
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse-opacity 4s ease-in-out infinite alternate;
}

.orbit-node {
    fill: var(--color-highlight);
    opacity: 0.8;
    animation: node-blink 3s ease-in-out infinite;
}

.orbit-path {
    fill: none;
    stroke: var(--color-highlight);
    stroke-width: 1.5;
    pathLength: 1;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: draw-line 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-opacity {
    from { opacity: 0.1; stroke-width: 1; }
    to { opacity: 0.6; stroke-width: 2; }
}

@keyframes node-blink {
    0%, 100% { opacity: 0.5; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes draw-line {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
}

/* Reduced Motion Support */
@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;
    }
    .orbit-ring, .orbit-pulse, .orbit-node, .orbit-path {
        animation: none;
        opacity: 0.8;
    }
}

/* ==========================================================================
   Custom Page Styles
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-graphic-container {
    position: absolute;
    right: -10%;
    top: 10%;
    width: 50%;
    height: 80%;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

.interface-mockup {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 0 auto;
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    max-width: 80%;
    font-size: 0.9rem;
}

.bubble-left {
    background: #202C33;
    color: #E9EDEF;
    border-bottom-left-radius: 2px;
}

.bubble-right {
    background: #005C4B;
    color: #E9EDEF;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}
