:root {
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --fg: #1a1d24;
    --fg-soft: #525a66;
    --border: #e5e8ee;
    --accent: #3a6df0;
    --accent-soft: rgba(58, 109, 240, 0.1);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --max-width: 880px;
}

[data-theme="dark"] {
    --bg: #0f1218;
    --bg-alt: #161a22;
    --fg: #e6e8ec;
    --fg-soft: #9aa3b2;
    --border: #232834;
    --accent: #6d96ff;
    --accent-soft: rgba(109, 150, 255, 0.15);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s ease;
}

a:hover {
    opacity: 0.75;
}

code {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .nav {
    background: rgba(15, 18, 24, 0.85);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fg);
    letter-spacing: -0.01em;
}

.dot {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--fg-soft);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--fg);
    opacity: 1;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Hero */
.hero {
    padding: 96px 0 72px;
    text-align: center;
}

.hero-greeting {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 18px;
}

.hero-subtitle {
    color: var(--fg-soft);
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.15s ease, background-color 0.15s ease,
        border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--fg);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.card p + p {
    margin-top: 12px;
}

.card.placeholder {
    text-align: center;
    color: var(--fg-soft);
    font-style: italic;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.feature {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.feature p {
    color: var(--fg-soft);
    font-size: 0.95rem;
}

/* Contact */
.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.contact-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--fg);
    font-size: 0.95rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--fg-soft);
}

.footer-icp a {
    color: var(--fg-soft);
}

.footer-icp a:hover {
    color: var(--accent);
    opacity: 1;
}

/* Responsive */
@media (max-width: 600px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 64px 0 48px;
    }

    .section {
        padding: 56px 0;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }
}
