:root {
    --bg-color: #f5f5f2;
    --card-bg: #ffffff;
    --accent: #0f172a;
    --text-muted: #6b7280;
    --border: rgba(0, 0, 0, 0.06);
    --panel: rgba(255, 255, 255, 0.7);
    --button-bg: #111827;
    --button-text: #f8fafc;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.08);
    --shadow-card: 
        0 10px 20px rgba(0,0,0,0.02),
        0 6px 6px rgba(0,0,0,0.03),
        0 0 100px rgba(0,0,0,0.01);
}

[data-theme="dark"] {
    --bg-color: #0b1021;
    --card-bg: #121724;
    --accent: #f8fafc;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --panel: rgba(18, 23, 36, 0.7);
    --button-bg: #f8fafc;
    --button-text: #0b1021;
    --shadow-soft: 0 20px 60px rgba(0,0,0,0.45);
    --shadow-card: 
        0 20px 40px rgba(0,0,0,0.35),
        0 10px 30px rgba(0,0,0,0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--accent);
    min-height: 100vh;
    display: block;
    overflow-x: hidden;
    cursor: none;
}

.page {
    width: min(1100px, 92vw);
    margin: 0 auto;
    padding: 32px 0 64px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Background Texture (添加噪点纹理增加质感) */
.bg-texture {
    position: fixed;
    inset: 0;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.06;
    pointer-events: none;
    z-index: -1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.brand {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ghost-btn {
    background: var(--button-bg);
    color: var(--button-text);
    border: none;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.14);
}

.hero {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero .eyebrow {
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero h1 {
    font-size: clamp(42px, 7vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero h1 span {
    display: inline-flex;
    padding: 6px 10px;
    margin-right: 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(17,24,39,0.08), rgba(17,24,39,0));
    border: 1px solid var(--border);
}

.hero p {
    font-size: 16px;
    max-width: 600px;
    color: var(--text-muted);
}

.section-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    display: grid;
    gap: 12px;
}

.section-block h3 {
    font-size: 18px;
    font-weight: 700;
}

.section-block p {
    color: var(--text-muted);
    line-height: 1.6;
}

.bullet-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.bullet-list li {
    padding-left: 14px;
    position: relative;
    color: var(--text-muted);
}

.bullet-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--accent);
    position: absolute;
    left: 0;
    top: 9px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    perspective: 1200px;
}

/* Card Styling (卡片设计) */
.card {
    position: relative;
    width: 100%;
    min-height: 360px;
    background: var(--card-bg);
    border-radius: 12px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
    border: 1px solid var(--border);
}

.card-inner {
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none; /* 让 JS 处理外层卡片的 3D */
}

/* Hover Effect (悬停效果) */
.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.08),
        0 10px 20px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.15);
}

.card-id {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.card h2 {
    font-size: 26px;
    font-weight: 500;
    color: var(--accent);
    line-height: 1.2;
}

.card h2 span {
    display: block;
    font-size: 16px;
    color: var(--text-muted);
    margin-top: 5px;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 15px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.card:hover p {
    opacity: 1;
    transform: translateY(0);
}

.card-arrow {
    font-size: 20px;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.card:hover .card-arrow {
    transform: translateX(10px);
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: difference; /* 颜色反转效果 */
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor {
        display: none;
    }

    .topbar {
        padding: 12px 14px;
    }

    .hero {
        gap: 14px;
    }
}