/* ============================================================
   base.css — 设计变量 / 重置 / 版面骨架
   ============================================================ */

:root{
    /* 色彩 */
    --bg:#f5f6f8;
    --surface:#ffffff;
    --surface-2:#fbfcfd;
    --ink:#111827;
    --ink-2:#4b5563;
    --ink-3:#98a1ae;
    --line:#e9ecf1;
    --line-2:#f1f3f7;
    --accent:#2f6bff;
    --accent-2:#1f56e0;
    --accent-soft:#edf2ff;
    --warn:#e2813b;

    /* 尺寸 */
    --radius:14px;
    --radius-sm:10px;
    --max:760px;
    --gap:18px;

    /* 动效 / 阴影 */
    --ease:cubic-bezier(.22,.61,.36,1);
    --shadow:0 1px 2px rgba(17,24,39,.04);
    --shadow-hover:0 10px 24px -14px rgba(17,24,39,.30);
}

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

html{
    -webkit-text-size-adjust:100%;
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    padding:0 var(--gap);
    background:var(--bg);
    color:var(--ink);
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
    font-size:14px;
    line-height:1.55;
    letter-spacing:.1px;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* 顶部极淡光晕 */
body::before{
    content:"";
    position:fixed;
    top:0;
    left:0;
    right:0;
    height:340px;
    z-index:0;
    pointer-events:none;
    background:radial-gradient(64% 100% at 50% 0,rgba(47,107,255,.07),rgba(47,107,255,0) 72%);
}

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

a{
    color:inherit;
    -webkit-tap-highlight-color:transparent;
}

button{
    font:inherit;
    color:inherit;
    border:0;
    background:none;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
}

main{
    display:block;
}

/* ---------- 版心 ---------- */
.wrap{
    position:relative;
    z-index:1;
    flex:1;
    width:100%;
    max-width:var(--max);
    margin:0 auto;
}

/* ---------- 页头 ---------- */
.hd{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    padding:40px 2px 26px;
}

.hd-brand{
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0;
}

.hd-logo{
    flex-shrink:0;
    width:44px;
    height:44px;
    border-radius:13px;
    object-fit:cover;
    background:var(--accent-soft);
    box-shadow:0 8px 18px -10px rgba(47,107,255,.85);
}

.hd-text{
    min-width:0;
}

.hd-title{
    font-size:26px;
    font-weight:700;
    letter-spacing:-.5px;
    line-height:1.25;
    color:var(--ink);
}

.hd-sub{
    margin-top:7px;
    font-size:12.5px;
    color:var(--ink-3);
    letter-spacing:.3px;
}

.hd-refresh{
    flex-shrink:0;
    width:40px;
    height:40px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--surface);
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    color:var(--ink-2);
    transition:color .22s var(--ease),border-color .22s var(--ease),box-shadow .28s var(--ease),transform .28s var(--ease);
}

.hd-refresh svg{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hd-refresh:hover{
    color:var(--accent);
    border-color:rgba(47,107,255,.34);
    box-shadow:0 6px 16px -9px rgba(47,107,255,.75);
    transform:translateY(-1px);
}

.hd-refresh:active{
    transform:translateY(0) scale(.94);
}

.hd-refresh.is-spin svg{
    animation:spin .72s var(--ease);
}

@keyframes spin{
    from{ transform:rotate(0deg); }
    to{ transform:rotate(360deg); }
}

/* ---------- 页脚 ---------- */
.ft{
    position:relative;
    z-index:1;
    flex-shrink:0;
    width:100%;
    max-width:var(--max);
    margin:0 auto;
    padding:22px 2px 36px;
    text-align:center;
    border-top:1px solid var(--line);
}

.ft-time{
    font-size:12.5px;
    color:var(--ink-2);
    font-variant-numeric:tabular-nums;
}

.ft-note{
    margin-top:5px;
    font-size:11.5px;
    color:var(--ink-3);
    letter-spacing:.2px;
}

.noscript{
    position:relative;
    z-index:1;
    max-width:var(--max);
    margin:0 auto 30px;
    padding:14px 18px;
    border-radius:var(--radius-sm);
    background:#fff6e9;
    color:#9a5b1a;
    font-size:13px;
    text-align:center;
}

/* ---------- 无障碍 ---------- */
:focus-visible{
    outline:2px solid rgba(47,107,255,.5);
    outline-offset:2px;
}

@media (prefers-reduced-motion:reduce){
    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }
}
