:root {
    --bg: #000000;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(10, 10, 10, 0.8);
    --text: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 24px;
    --radius-sm: 12px;
    --transition: 180ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
    width: 100dvw;
}

/* 导航 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: auto;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    min-width: 48px;
    text-align: center;
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    min-width: 44px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.lang-toggle:hover {
    color: var(--text);
    border-color: var(--text-secondary);
}

.nav-cta {
    background: var(--accent);
    color: var(--bg);
    padding: 8px 20px;
    width: 140px;
    text-align: center;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity var(--transition);
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-cta:hover {
    opacity: 0.9;
}

/* 主视觉 */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 24px 120px;
    position: relative;
}

.hero-inner {
    max-width: 720px;
    text-align: center;
}

.hero-title {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -3px;
    margin-bottom: 40px;
}

.hero-line {
    display: block;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-line.accent {
    background: linear-gradient(90deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}

.hero-sub {
    font-size: 28px;
    color: var(--text-tertiary);
    margin-bottom: 64px;
    letter-spacing: 6px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.hero-browser-hint {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-dim, rgba(255,255,255,0.5));
    text-align: center;
    line-height: 1.6;
}

.btn {
    padding: 16px 40px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition);
}

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

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

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

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

.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.node-graph {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 90vmin);
    height: min(600px, 90vmin);
    opacity: 0.2;
}

/* 区块 */
.section {
    padding: 120px 24px;
}

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

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 64px;
}

/* 协议卡片 */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.protocol-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: all var(--transition);
}

.protocol-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.protocol-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.protocol-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.protocol-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* 节点类型 */
.node-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.node-type {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
}

.node-type:hover {
    transform: translateY(-2px);
    border-color: var(--text-tertiary);
}

.node-badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    margin-bottom: 20px;
}

.node-type h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.node-type p {
    color: var(--text-secondary);
    font-size: 14px;
}

.node-type-custom {
    border-style: dashed;
}

/* 身份对比 */
.identity-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
}

.identity-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.identity-card-featured {
    border-color: var(--accent);
    position: relative;
}

.identity-card-featured::before {
    content: '推荐';
    position: absolute;
    top: -12px;
    left: 40px;
    background: var(--accent);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.identity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.identity-tag {
    font-size: 18px;
    font-weight: 600;
}

.identity-price {
    font-size: 14px;
    color: var(--text-tertiary);
}

.identity-features {
    list-style: none;
}

.identity-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 15px;
}

.identity-features li:last-child {
    border-bottom: none;
}

/* 底部 */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 24px 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

.footer-tagline {
    color: var(--text-tertiary);
    font-size: 14px;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--text);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 13px;
}

/* 下载 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.download-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

.download-card:hover {
    transform: translateY(-2px);
    border-color: var(--text-tertiary);
    background: var(--bg-card-hover);
}

.download-card-soon {
    opacity: 0.5;
    cursor: default;
}

.download-card-soon:hover {
    transform: none;
    border-color: var(--border);
    background: var(--bg);
}

.download-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.download-card h3.accent-pulse {
    color: #00ff41;
    animation: accent-breathe 2.4s ease-in-out infinite;
}

@keyframes accent-breathe {
    0%, 100% {
        opacity: 0.7;
        text-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 16px rgba(0, 255, 65, 0.5);
    }
}

.download-card p {
    color: var(--text-secondary);
    font-size: 13px;
    font-family: 'SF Mono', Monaco, monospace;
    margin-bottom: 12px;
    word-break: break-all;
}

.download-size {
    color: var(--text-tertiary);
    font-size: 13px;
}

.download-checksum {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-family: 'SF Mono', Monaco, monospace;
    color: var(--text-tertiary);
    opacity: 0.5;
    cursor: help;
}

/* 响应式 */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }
    
    .nav-link {
        display: none;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 80px 24px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 40px;
    }
}
