/* ===== 白色主题 - 网络验证系统首页 ===== */

:root {
    --bg: #ffffff;
    --bg2: #f8fafc;
    --card: #ffffff;
    --card2: #f1f5f9;
    --border: #e2e8f0;
    --border2: #cbd5e1;
    --text: #1e293b;
    --text2: #475569;
    --text3: #64748b;
    --accent: #3b82f6;
    --accent2: #2563eb;
    --green: #10b981;
    --purple: #8b5cf6;
    --red: #ef4444;
    --orange: #f59e0b;
    --cyan: #06b6d4;
}

* { margin: 0; padding: 0; box-sizing: border-box; caret-color: transparent; }
input, textarea, select, [contenteditable="true"] { caret-color: auto; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: default;
}

a { text-decoration: none; color: inherit; }

#particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; outline: none;
}

/* ===== 导航栏 ===== */
nav {
    position: fixed; top: 0; width: 100%; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-logo {
    font-size: 18px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 10px;
}
.nav-logo svg { width: 30px; height: 30px; }

.nav-mid { display: flex; gap: 28px; }
.nav-mid a {
    font-size: 13px; color: var(--text2); transition: color .2s; font-weight: 500;
}
.nav-mid a:hover { color: var(--accent); }

.nav-right { display: flex; gap: 10px; align-items: center; }

.btn-ghost {
    padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 500;
    color: var(--text2); border: 1px solid var(--border); transition: all .2s;
}
.btn-ghost:hover {
    color: var(--accent); border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.btn-solid {
    padding: 7px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    color: #fff; background: var(--accent); border: 1px solid var(--accent);
    transition: all .2s; box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}
.btn-solid:hover {
    background: var(--accent2);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative; height: 100vh; min-height: 700px; overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
}

.hero-glow {
    position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
    width: 1400px; height: 900px;
    background: radial-gradient(ellipse at 40% 50%, rgba(59,130,246,.12) 0%, rgba(139,92,246,.06) 30%, rgba(6,182,212,.03) 50%, transparent 70%);
    pointer-events: none; animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    display: flex; align-items: center; justify-content: center;
    padding: 80px 48px 48px;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-content {
    max-width: 1200px; width: 100%;
    display: flex; align-items: center; gap: 60px;
}
.slide-text { flex: 1; }
.slide-visual {
    flex: 0 0 400px;
    display: flex; justify-content: center; align-items: center;
}

/* Giant Shield */
.giant-shield {
    width: 320px; height: 380px; position: relative;
    animation: shieldFloat 4s ease-in-out infinite;
}
@keyframes shieldFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.giant-shield svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 20px 40px rgba(59,130,246,0.3));
}
.shield-glow {
    position: absolute; top: 50%; left: 50%;
    width: 400px; height: 400px; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    animation: shieldGlow 3s ease-in-out infinite; pointer-events: none;
}
@keyframes shieldGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* Slide Content */
.slide-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border: 1px solid var(--border); border-radius: 24px;
    font-size: 13px; color: var(--accent); margin-bottom: 24px;
    background: rgba(59,130,246,.06); font-weight: 600; letter-spacing: .5px;
}
.slide-tag .dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
    50% { box-shadow: 0 0 0 10px rgba(16,185,129,0); }
}

.slide h1 {
    font-size: 56px; font-weight: 800; letter-spacing: -2px;
    line-height: 1.15; margin-bottom: 20px; color: var(--text);
}
.slide h1 em {
    font-style: normal;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-desc {
    font-size: 18px; color: var(--text2); line-height: 1.8; margin-bottom: 32px;
}

.slide-highlights {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px;
}
.slide-highlights span {
    padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: #fff; border: 1px solid var(--border); color: var(--text2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.slide-btns { display: flex; gap: 14px; }
.slide-btns .btn-lg {
    padding: 16px 44px; border-radius: 12px; font-size: 16px; font-weight: 600;
    transition: all .3s; cursor: pointer; border: none;
}
.slide-btns .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
    box-shadow: 0 6px 30px rgba(59,130,246,.35);
}
.slide-btns .btn-primary:hover {
    box-shadow: 0 10px 40px rgba(59,130,246,.45);
    transform: translateY(-3px);
}
.slide-btns .btn-outline {
    background: #fff; color: var(--text); border: 1px solid var(--border);
}
.slide-btns .btn-outline:hover {
    border-color: var(--accent); color: var(--accent);
    background: rgba(59,130,246,0.03);
}

/* Slider dots */
.slider-dots {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 10;
}
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(59,130,246,0.2); cursor: pointer; transition: all .3s;
}
.slider-dot.active {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(59,130,246,.4);
}
.slider-dot:hover { background: rgba(59,130,246,0.4); }

/* ===== Section 通用 ===== */
.section {
    padding: 100px 48px; max-width: 1200px; margin: 0 auto;
    position: relative; z-index: 1;
}
.section-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent); margin-bottom: 12px;
}
.section-title {
    font-size: 42px; font-weight: 800; color: var(--text);
    margin-bottom: 16px; letter-spacing: -1px;
}
.section-desc {
    font-size: 16px; color: var(--text3); margin-bottom: 56px;
    max-width: 600px; line-height: 1.8;
}
.section-center { text-align: center; }
.section-center .section-desc { margin-left: auto; margin-right: auto; }

.divider {
    height: 1px; max-width: 900px; margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== Feature Grid ===== */
.feat-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feat-card {
    padding: 32px 26px; border-radius: 16px;
    border: 1px solid var(--border); background: #fff;
    transition: all .3s; position: relative; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.feat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    opacity: 0; transition: opacity .3s;
}
.feat-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.12);
}
.feat-card:hover::before { opacity: 1; }
.feat-ico { font-size: 36px; margin-bottom: 18px; }
.feat-card h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.feat-card p { font-size: 14px; color: var(--text3); line-height: 1.7; }
.feat-highlight {
    border-color: rgba(59,130,246,0.3);
    background: linear-gradient(135deg, rgba(59,130,246,0.03), #fff);
}
.feat-highlight::before { opacity: 0.6; }

/* ===== Architecture Flow ===== */
.arch-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 0; flex-wrap: wrap; margin-bottom: 40px;
}
.arch-node {
    text-align: center; padding: 20px 16px; min-width: 120px;
}
.arch-ico {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 12px;
    border: 1px solid var(--border); background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.arch-node h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.arch-node p { font-size: 11px; color: var(--text3); }
.arch-arrow { color: var(--accent); font-size: 20px; opacity: 0.5; padding: 0 4px; }

/* ===== Function Grid ===== */
.func-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.func-item {
    padding: 20px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff;
    font-size: 14px; font-weight: 500; color: var(--text2);
    display: flex; align-items: center; gap: 12px;
    transition: all .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.func-item:hover {
    border-color: var(--accent); transform: translateY(-3px);
    color: var(--accent);
    box-shadow: 0 8px 24px rgba(59,130,246,0.1);
}
.func-item span { font-size: 20px; }

/* ===== SDK List ===== */
.sdk-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.sdk-tag {
    padding: 14px 32px; border-radius: 12px;
    border: 1px solid var(--border); background: #fff;
    font-size: 15px; color: var(--text2); font-weight: 600;
    transition: all .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.sdk-tag:hover {
    border-color: var(--accent); color: var(--accent);
    background: rgba(59,130,246,0.03);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.1);
}

/* ===== Pricing ===== */
.price-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    max-width: 1000px; margin: 0 auto;
}
.price-card {
    padding: 40px 32px; border-radius: 20px;
    border: 1px solid var(--border); background: #fff;
    text-align: center; transition: all .3s; position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.price-card.pop {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(59,130,246,0.03), #fff);
}
.pop-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
    font-size: 12px; font-weight: 600; padding: 4px 18px; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.price-name { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.price-amount { font-size: 48px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.price-amount small { font-size: 16px; font-weight: 400; color: var(--text3); }
.price-desc { font-size: 14px; color: var(--text3); margin-bottom: 28px; }
.price-list { list-style: none; margin-bottom: 32px; text-align: left; }
.price-list li {
    padding: 10px 0; font-size: 14px; color: var(--text2);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border);
}
.price-list li::before { content: '✓'; color: var(--green); font-weight: 700; }
.price-btn {
    display: block; padding: 14px; border-radius: 12px;
    font-size: 15px; font-weight: 600; text-align: center; transition: all .3s;
}
.price-btn-default {
    color: var(--text2); border: 1px solid var(--border); background: #fff;
}
.price-btn-default:hover {
    color: var(--accent); border-color: var(--accent);
    background: rgba(59,130,246,0.03);
}
.price-btn-accent {
    color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); border: none;
    box-shadow: 0 6px 20px rgba(59,130,246,0.25);
}
.price-btn-accent:hover {
    box-shadow: 0 10px 30px rgba(59,130,246,0.35);
    transform: translateY(-2px);
}
.price-loading { text-align: center; padding: 80px; color: var(--text3); font-size: 15px; }

/* ===== Contact Grid ===== */
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; max-width: 900px; margin: 0 auto;
}
.contact-card {
    padding: 28px 24px; border-radius: 16px;
    border: 1px solid var(--border); background: #fff;
    text-align: center; transition: all .3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.contact-card svg { width: 40px; height: 40px; margin-bottom: 16px; }
.contact-card .label { font-size: 12px; color: var(--text3); margin-bottom: 6px; }
.contact-card .value { font-size: 18px; font-weight: 700; color: var(--text); }
.contact-card.qq:hover { border-color: var(--accent); }
.contact-card.wechat:hover { border-color: var(--green); }
.contact-card.email:hover { border-color: var(--text3); }
.contact-card.discord:hover { border-color: var(--purple); }

/* ===== Footer ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 48px 40px;
    position: relative; z-index: 1;
    background: var(--bg2);
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 60px;
}
.footer-brand { flex: 1; }
.footer-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px;
}
.footer-logo svg { width: 24px; height: 24px; }
.footer-copy { font-size: 13px; color: var(--text3); margin-bottom: 4px; }
.footer-icp { font-size: 12px; color: var(--text3); }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 {
    font-size: 13px; font-weight: 700; margin-bottom: 16px;
    color: var(--text); text-transform: uppercase; letter-spacing: 1px;
}
.footer-col a {
    display: block; font-size: 14px; color: var(--text3);
    margin-bottom: 10px; transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .func-grid { grid-template-columns: repeat(3, 1fr); }
    .price-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 768px) {
    nav { padding: 0 20px; }
    .nav-mid { display: none; }
    
    .slide-content { flex-direction: column; text-align: center; }
    .slide-visual { order: -1; }
    .giant-shield { width: 200px; height: 240px; }
    .slide h1 { font-size: 36px; }
    .slide-highlights { justify-content: center; }
    .slide-btns { justify-content: center; }
    
    .section { padding: 60px 20px; }
    .section-title { font-size: 32px; }
    
    .feat-grid, .func-grid { grid-template-columns: 1fr; }
    .arch-flow { flex-direction: column; }
    .arch-arrow { transform: rotate(90deg); }
    
    footer { padding: 40px 20px 30px; }
    .footer-inner { flex-direction: column; gap: 40px; }
    .footer-links { gap: 40px; }
}


/* ===== 新闻公告 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.news-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-date {
    font-size: 13px;
    color: var(--text3);
}

/* 新闻详情弹窗 */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.news-modal-content {
    background: var(--card);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

.news-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.news-modal-tag {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.news-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text3);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.news-modal-close:hover {
    color: var(--text);
}

.news-modal-content h2 {
    font-size: 20px;
    font-weight: 600;
    padding: 20px 24px 0;
    color: var(--text);
}

.news-modal-body {
    padding: 16px 24px 24px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text2);
}

.news-modal-body p {
    margin-bottom: 12px;
}

.news-modal-body ul, .news-modal-body ol {
    margin-left: 20px;
    margin-bottom: 12px;
}
