/* ==== RTC Chain 官网样式（响应式：PC + 手机 H5） ==== */

:root {
    --bg: #060a15;
    --bg-alt: #0a1122;
    --surface: rgba(20, 30, 54, 0.72);
    --surface-solid: #111a2e;
    --border: rgba(120, 160, 230, 0.16);
    --text: #e8eefc;
    --muted: #93a4c6;
    --primary: #22d3ee;
    --primary-2: #3b82f6;
    --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #8b5cf6 100%);
    --radius: 16px;
    --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans KR", "Noto Sans JP", Roboto, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid transparent; border-radius: 999px;
    padding: 13px 26px; font-size: 15px; font-weight: 600; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #04121d; box-shadow: 0 10px 30px rgba(34, 211, 238, .25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(59, 130, 246, .35); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; margin-top: 18px; }

/* ---------- 导航 ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    backdrop-filter: blur(14px);
    background: rgba(6, 10, 21, .72);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease;
}
.nav.scrolled { background: rgba(6, 10, 21, .92); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .5px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
    color: #04121d; display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; font-size: 17px; }
.brand-text small { font-size: 9px; color: var(--muted); letter-spacing: 3px; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .18s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-dapp { color: #04121d; margin-left: 6px; }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* 语言切换 */
.lang { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
    background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
    color: var(--text); border-radius: 999px; padding: 8px 14px; font-size: 13px;
}
.lang-btn:hover { background: rgba(255, 255, 255, .09); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 160px;
    background: var(--surface-solid); border: 1px solid var(--border); border-radius: 12px;
    padding: 6px; list-style: none; display: none; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
.lang-menu.open { display: block; }
.lang-menu li { padding: 9px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--muted); }
.lang-menu li:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-menu li.active { color: var(--primary); font-weight: 700; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(900px 460px at 50% -10%, rgba(59, 130, 246, .30), transparent 70%),
        radial-gradient(700px 420px at 85% 10%, rgba(139, 92, 246, .22), transparent 70%),
        radial-gradient(600px 380px at 10% 20%, rgba(34, 211, 238, .16), transparent 70%);
}
.hero-bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(120, 160, 230, .07) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(120, 160, 230, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 25%, #000 0%, transparent 72%);
}
.hero-inner { text-align: center; }
.badge {
    display: inline-block; font-size: 13px; color: var(--primary);
    border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08);
    padding: 7px 18px; border-radius: 999px; margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(38px, 7vw, 74px); line-height: 1.08; font-weight: 900; letter-spacing: -1px;
    background: linear-gradient(180deg, #fff 20%, #93b4e8 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: clamp(15px, 2.2vw, 18px); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    margin-top: 66px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
    background: var(--border);
}
.stat { background: rgba(10, 17, 34, .8); padding: 26px 14px; text-align: center; }
.stat b { display: block; font-size: clamp(19px, 3vw, 27px); font-weight: 800;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--muted); margin-top: 12px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; transition: transform .2s ease, border-color .2s ease, background .2s ease;
    display: block;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .45); background: rgba(24, 36, 62, .85); }
.card h3 { font-size: 17px; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-center { text-align: center; }
.card-center b { display: block; }
.card-center span { color: var(--muted); font-size: 14px; }
.ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    font-size: 22px; margin-bottom: 16px; background: rgba(34, 211, 238, .1); border: 1px solid var(--border);
}
.big {
    font-size: clamp(24px, 4vw, 34px); font-weight: 900; margin-bottom: 6px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 900px; margin: 36px auto 0; color: var(--muted); text-align: center; font-size: 15px; }
.note {
    max-width: 860px; margin: 30px auto 0; padding: 18px 22px; font-size: 14px; color: var(--muted);
    background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .22); border-radius: 12px;
}

/* ---------- 链参数 ---------- */
.params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.param { background: rgba(10, 17, 34, .8); padding: 22px 24px; display: flex; justify-content: space-between; gap: 12px; }
.param span { color: var(--muted); font-size: 14px; }
.param b { font-weight: 700; text-align: right; }

/* ---------- 节点档位 ---------- */
.price-tag {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    max-width: 420px; margin: 0 auto 40px; padding: 15px 24px;
    border: 1px solid rgba(34, 211, 238, .3); border-radius: 999px;
    background: rgba(34, 211, 238, .07); font-size: 15px;
}
.price-tag span { color: var(--muted); }
.price-tag b { font-size: 18px; color: var(--primary); }
.tier { position: relative; overflow: hidden; }
.tier::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; }
.tier-super::before { background: linear-gradient(90deg, #f59e0b, #f43f5e); }
.tier-big::before { background: linear-gradient(90deg, #22d3ee, #3b82f6); }
.tier-small::before { background: linear-gradient(90deg, #8b5cf6, #22d3ee); }

/* ---------- 路线图 ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(139, 92, 246, .2)); }
.tl-item { position: relative; padding: 0 0 34px 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item i {
    position: absolute; left: -34px; top: 2px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--grad); color: #04121d; display: grid; place-items: center;
    font-size: 12px; font-weight: 900; font-style: normal;
}
.tl-item h3 { font-size: 17px; margin-bottom: 6px; }
.tl-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA 横幅 ---------- */
.cta-band { padding: 80px 0; text-align: center;
    background: radial-gradient(700px 320px at 50% 0%, rgba(59, 130, 246, .22), transparent 70%), var(--bg-alt); }
.cta-band h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; }
.cta-band p { color: var(--muted); margin: 14px 0 28px; }

/* ---------- 联系 ---------- */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact .card { padding: 26px 20px; }
.contact b { font-size: 16px; margin-bottom: 4px; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 13.5px; }

/* ---------- 移动端 ---------- */
@media (max-width: 980px) {
    .grid-3, .params, .contact { grid-template-columns: repeat(2, 1fr); }
    .nav-links { gap: 18px; font-size: 14px; }
}

@media (max-width: 760px) {
    .burger { display: block; }
    .nav-links {
        position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
        gap: 0; margin: 0; padding: 12px 20px 22px; background: rgba(6, 10, 21, .98);
        border-bottom: 1px solid var(--border); display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 13px 4px; border-bottom: 1px solid rgba(120, 160, 230, .08); }
    .nav-links a.nav-dapp { margin: 14px 0 0; justify-content: center; border: 0; }

    .hero { padding: 120px 0 66px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .params, .contact { grid-template-columns: 1fr; }
    .param { flex-direction: column; gap: 4px; }
    .param b { text-align: left; }
    .section { padding: 66px 0; }
    .btn { padding: 12px 22px; font-size: 14.5px; }
    .hero-cta .btn { flex: 1 1 auto; }
}
