/* ============================================================
   纸核（JectX）官网样式 —— 现代浅色科技风 v2
   设计语言：浅色底 + 靛蓝→青绿渐变主色 + 玻璃拟态 + 柔和大圆角
   ============================================================ */
:root {
    --bg: #f7f8fd;
    --bg-alt: #f1f3fa;
    --panel: #ffffff;
    --panel2: #f4f6fc;
    --line: #e4e8f4;
    --ink: #131a30;
    --sub: #5e6a88;
    --a1: #4f6bff;          /* 主渐变起点（靛蓝） */
    --a2: #14b892;          /* 主渐变终点（青绿） */
    --grad: linear-gradient(120deg, var(--a1), var(--a2));
    --grad-soft: linear-gradient(120deg, rgba(79,107,255,.12), rgba(20,184,146,.12));
    --shadow: 0 6px 28px rgba(19, 26, 48, .08);
    --shadow-lg: 0 14px 48px rgba(19, 26, 48, .13);
    --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 800px; }
::selection { background: rgba(79, 107, 255, .18); }

/* ---------- 背景装饰 ---------- */
.bg-deco { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
    position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
    animation: drift 16s ease-in-out infinite alternate;
}
.blob-a { width: 560px; height: 560px; left: -160px; top: -180px;
    background: radial-gradient(circle, rgba(79,107,255,.35), transparent 65%); }
.blob-b { width: 520px; height: 520px; right: -140px; top: 16%;
    background: radial-gradient(circle, rgba(20,184,146,.30), transparent 65%);
    animation-delay: -8s; }
.grid-lines {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(19,26,48,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19,26,48,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes drift {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* ---------- 导航（玻璃拟态） ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 248, 253, .72);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid rgba(228, 232, 244, .8);
}
.nav-in { display: flex; align-items: center; gap: 30px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: 2px; }
.brand-en {
    font-size: 11.5px; font-weight: 700; color: var(--a1); letter-spacing: 1px;
    background: rgba(79, 107, 255, .09); border-radius: 999px; padding: 2px 10px;
}
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { color: var(--sub); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.links a:hover { color: var(--ink); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block; padding: 13px 32px; border-radius: 12px;
    background: var(--grad); background-size: 160% 100%;
    color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
    box-shadow: 0 8px 22px rgba(79, 107, 255, .32);
    transition: transform .15s ease, box-shadow .15s ease, background-position .3s ease;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 12px 30px rgba(20, 184, 146, .34); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; border-radius: 10px; }
.btn.ghost {
    background: var(--panel); border: 1px solid var(--line); color: var(--ink);
    box-shadow: var(--shadow);
}
.btn.ghost:hover { box-shadow: var(--shadow-lg); }
.btn.ghost .arr { margin-left: 8px; font-style: normal; transition: transform .15s; }
.btn.ghost:hover .arr { transform: translateX(4px); }
.btn.wide { display: block; text-align: center; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 80px; text-align: center; position: relative; }
.badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
    padding: 7px 18px; font-size: 13px; font-weight: 600; color: var(--sub);
    box-shadow: var(--shadow);
}
.dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--a2); box-shadow: 0 0 0 0 rgba(20, 184, 146, .5);
    animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(20, 184, 146, .45); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(20, 184, 146, 0); }
}
.hero h1 {
    margin: 26px 0 18px;
    font-size: clamp(34px, 6vw, 58px); font-weight: 900;
    letter-spacing: 1px; line-height: 1.22;
}
.t-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub {
    max-width: 620px; margin: 0 auto;
    font-size: 16.5px; color: var(--sub);
}
.cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* 数据条 */
.stats {
    display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px);
    margin: 46px auto 0; flex-wrap: wrap;
}
.stat b {
    display: block; font-size: 30px; font-weight: 900; letter-spacing: .5px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat b i { font-style: normal; }
.stat span { font-size: 13px; color: var(--sub); }

/* 实时处理流程 */
.flow {
    max-width: 860px; margin: 44px auto 0;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line); border-radius: 20px;
    padding: 22px 26px 26px; text-align: left;
    box-shadow: var(--shadow-lg);
}
.flow-head {
    display: flex; align-items: center; gap: 9px;
    font-size: 12.5px; font-weight: 700; color: var(--sub);
    letter-spacing: 1px; margin-bottom: 18px;
}
.pulse {
    width: 9px; height: 9px; border-radius: 50%; background: var(--a2); position: relative;
}
.pulse::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    background: rgba(20, 184, 146, .35); animation: beat 1.6s ease-out infinite;
}
@keyframes beat { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-step {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 18px 10px 14px; border-radius: 14px;
    background: var(--panel2); border: 1px solid var(--line);
    animation: flowIn 3.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * .55s);
}
@keyframes flowIn {
    0%, 100% { border-color: var(--line); box-shadow: none; }
    18% { border-color: rgba(20, 184, 146, .65); box-shadow: 0 0 0 3px rgba(20, 184, 146, .12); }
    40% { border-color: var(--line); box-shadow: none; }
}
.flow-step .ic { width: 22px; height: 22px; fill: var(--a1); }
.flow-step b { font-size: 14.5px; }
.flow-state {
    font-size: 11.5px; font-weight: 700; color: var(--a2);
    background: rgba(20, 184, 146, .1); border-radius: 999px; padding: 1px 10px;
}
.flow-line {
    position: absolute; top: 50%; right: -14px; width: 14px; height: 2px;
    background: linear-gradient(90deg, var(--line), var(--a2));
}

/* ---------- 区块通用 ---------- */
.section { padding: 88px 0; }
.section.alt {
    background: linear-gradient(180deg, rgba(241, 243, 250, 0), var(--bg-alt) 18%, var(--bg-alt) 82%, rgba(241, 243, 250, 0));
}
.kicker {
    font-size: 12px; font-weight: 800; letter-spacing: 3.5px;
    color: var(--a1); text-transform: uppercase; margin-bottom: 8px;
}
.section h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: 1px; }
.sec-sub { color: var(--sub); margin-top: 8px; font-size: 15.5px; }

/* ---------- 功能卡片 ---------- */
.grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px; margin-top: 34px;
}
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
    padding: 26px 26px 24px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 107, 255, .45);
}
.card-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 13px;
    background: var(--grad-soft); margin-bottom: 16px;
}
.card-ic svg { width: 24px; height: 24px; fill: var(--a1); }
.card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 7px; }
.card p { font-size: 14px; color: var(--sub); }

/* ---------- 交付流程 ---------- */
.wsteps {
    list-style: none; margin-top: 40px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.wstep { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.wstep-no {
    flex: none; width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad); color: #fff; font-weight: 900; font-size: 17px;
    box-shadow: 0 8px 20px rgba(79, 107, 255, .3);
}
.wstep:not(:last-child)::after {
    content: ""; position: absolute; top: 22px; left: 56px; right: -8px; height: 2px;
    background: linear-gradient(90deg, rgba(79,107,255,.5), rgba(20,184,146,.18));
    border-radius: 2px;
}
.wstep-body h3 { font-size: 16px; font-weight: 800; margin: 2px 0 4px; }
.wstep-body p { font-size: 13.5px; color: var(--sub); }

/* ---------- 界面预览（横向滚动 + 指示点） ---------- */
.shots {
    display: flex; gap: 20px; margin-top: 36px; padding: 8px 4px 26px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
.shot {
    flex: 0 0 auto; width: 268px; scroll-snap-align: start;
    background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
    padding: 12px 12px 14px; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot img {
    display: block; width: 100%; border-radius: 12px;
}
.shot figcaption {
    margin-top: 11px; text-align: center;
    font-size: 13.5px; font-weight: 700; color: var(--sub);
}
.shots-dots { display: flex; gap: 8px; justify-content: center; }
.shots-dots span {
    width: 7px; height: 7px; border-radius: 999px; background: var(--line);
    cursor: pointer; transition: all .2s;
}
.shots-dots span.on { width: 22px; background: var(--grad); }

/* ---------- 公告时间线 ---------- */
.timeline { margin-top: 36px; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--a1), var(--a2)); opacity: .3; border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 26px 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
    content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--grad);
    box-shadow: 0 0 0 4px rgba(79, 107, 255, .14);
}
.tl-date {
    font-size: 12.5px; font-weight: 700; color: var(--a1);
    background: rgba(79, 107, 255, .09); border-radius: 999px; padding: 2px 12px;
}
.tl-card {
    margin-top: 10px; background: var(--panel); border: 1px solid var(--line);
    border-radius: 15px; padding: 18px 22px; box-shadow: var(--shadow);
}
.tl-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 5px; }
.tl-card p { font-size: 14px; color: var(--sub); }

/* ---------- 下载卡 ---------- */
.dl-card {
    margin-top: 36px;
    background: var(--panel);
    border: 1px solid transparent; border-radius: 22px;
    background-clip: padding-box;
    position: relative;
    box-shadow: var(--shadow-lg);
    padding: 30px 32px;
}
.dl-card::before {
    content: ""; position: absolute; inset: -1px; z-index: -1;
    border-radius: 23px; background: var(--grad); opacity: .55;
}
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-name { font-size: 19px; font-weight: 900; }
.dl-meta { font-size: 13px; color: var(--sub); margin-top: 2px; }
.dl-notes {
    list-style: none; margin-top: 18px; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 20px;
}
.dl-notes li {
    position: relative; padding-left: 22px; font-size: 14px; color: var(--sub);
}
.dl-notes li::before {
    content: ""; position: absolute; left: 2px; top: .62em;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--grad);
}
.dl-tip { margin-top: 16px; font-size: 12.5px; color: var(--sub); }

/* ---------- 友链 ---------- */
.friends {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px; margin-top: 34px;
}
.friend {
    display: block; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--r); padding: 22px 24px; text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.friend:hover { transform: translateY(-4px); border-color: rgba(20, 184, 146, .5); box-shadow: var(--shadow-lg); }
.friend b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.friend span { color: var(--sub); font-size: 13.5px; line-height: 1.65; }

/* ---------- 页脚 ---------- */
.foot {
    border-top: 1px solid var(--line);
    padding: 34px 0 40px; background: var(--panel2);
}
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 1px; }
.foot-brand .logo { width: 26px; height: 26px; }
.foot-line { font-size: 13px; color: var(--sub); }
.foot-line a { color: var(--sub); }

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .blob, .flow-step, .dot, .pulse::after { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .flow-steps { grid-template-columns: repeat(2, 1fr); }
    .flow-step:nth-child(2) .flow-line { display: none; }
    .wsteps { grid-template-columns: repeat(2, 1fr); }
    .wstep:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
    .links { display: none; }
    .hero { padding: 72px 0 56px; }
    .section { padding: 64px 0; }
    .stats { gap: 22px 34px; }
    .stat b { font-size: 24px; }
    .flow-steps { grid-template-columns: repeat(2, 1fr); }
    .flow-line { display: none; }
    .wsteps { grid-template-columns: 1fr; }
    .shot { width: 232px; }
    .dl-card { padding: 24px 20px; }
}
