/* ==========================================================
   公共样式（全站复用）
   页面独有样式请写在各自页面的 <style> 中
   ========================================================== */

:root {
    --primary: #1e5eff;
    --primary-dark: #0b3fbf;
    --accent: #38c6f4;
    --ink: #0e1b33;
    --text: #44516b;
    --muted: #7a869d;
    --line: #e6ebf5;
    --bg: #f6f9ff;
    --white: #ffffff;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(16, 42, 105, 0.10);
    --shadow-sm: 0 8px 24px rgba(16, 42, 105, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4b8bff);
    color: #fff;
    box-shadow: 0 10px 24px rgba(30, 94, 255, .32);
}

.btn-primary:hover {
    box-shadow: 0 14px 30px rgba(30, 94, 255, .42);
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .18);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(230, 235, 245, .8);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 74px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    box-shadow: 0 8px 18px rgba(30, 94, 255, .3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand-text strong {
    font-size: 16px;
    color: var(--ink);
    letter-spacing: .5px;
}

.brand-text small {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    color: var(--text);
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    transition: color .2s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transition: width .25s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ---------- Section basics ---------- */
section {
    padding: 88px 0;
    scroll-margin-top: 86px;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 48px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 34px);
    color: var(--ink);
    letter-spacing: 1px;
    line-height: 1.35;
}

.section-head p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 15.5px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #081226;
    color: #8595b3;
    padding: 34px 0;
    font-size: 13.5px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

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

.footer-links a:hover {
    color: #fff;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.footer-meta .icp {
    color: inherit;
    text-decoration: none;
}

.footer-meta .icp:hover {
    color: #fff;
}

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

@media (max-width: 640px) {
    .nav {
        height: 66px;
    }

    .brand-text small {
        display: none;
    }

    section {
        padding: 64px 0;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
