/* 教育侠 · 间距刻度 4 / 8 / 16 / 24 / 32 / 48 / 64；字号四级 12 / 15 / 20 / 28 */
:root{--ink:#191817;--sub:#55524c;--weak:#77746d;--line:#e6e3dd;--tile:#fafafa;--cream:#fcfaee;--blue:#060daa}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{background:#fff;color:var(--ink);font-family:"PingFang SC",-apple-system,BlinkMacSystemFont,"Helvetica Neue","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;font-size:15px;line-height:24px;font-weight:400;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-feature-settings:"palt" 0}
a{color:inherit;text-decoration:none}
p,h1,h2,.meta,.name{text-wrap:pretty;line-break:strict}
:focus-visible{outline:1px solid var(--ink);outline-offset:2px}

.lab{font-size:12px;line-height:16px;letter-spacing:.5px;color:var(--sub)}
.mute{color:var(--sub)}
.meta{font-size:12px;line-height:20px;color:var(--sub)}

/* 顶栏 */
header{position:sticky;top:0;z-index:2;background:rgba(255,255,255,.96);padding:env(safe-area-inset-top) 8px 0;height:calc(48px + env(safe-area-inset-top));display:grid;grid-template-columns:88px 1fr 88px;align-items:center}
header .back{display:flex;align-items:center;height:48px;padding:0 8px;font-size:12px;color:var(--sub)}
header .logo{justify-self:center;display:flex;align-items:center;height:48px;padding:0 8px;font-size:15px;letter-spacing:2px;font-weight:500}

/* 首屏 */
.intro{padding:32px 24px 32px}
.intro h1{font-size:28px;line-height:40px;font-weight:400;letter-spacing:0;margin:16px 0}
.intro p{color:var(--sub);max-width:320px}

/* 分类条 */
.tabs{display:flex;gap:24px;padding:0 24px;margin-bottom:16px;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.tabs a{display:flex;align-items:center;height:44px;font-size:12px;letter-spacing:.5px;color:var(--weak);border-bottom:1px solid transparent}
.tabs a.on{color:var(--ink);border-bottom-color:var(--ink)}

/* 格子 */
.grid{display:grid;gap:4px;padding:0 4px}
.tile{position:relative;display:block;background:var(--tile);padding:24px 20px;transition:background-color .15s}
a.tile:active{background:#f1f0ee}
.mark{display:flex;flex-direction:column;justify-content:space-between;height:64px;margin-bottom:24px}
.mark span{font-size:12px;line-height:16px;letter-spacing:1px;color:var(--weak);font-variant-numeric:tabular-nums}
.mark i{display:block;width:24px;height:1px;background:var(--ink)}
.tile .name{font-size:20px;line-height:28px;margin-bottom:8px}
.tile .row{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}
.plus{flex:none;position:relative;width:32px;height:32px;border:1px solid var(--ink);border-radius:50%}
.plus::before,.plus::after{content:"";position:absolute;left:50%;top:50%;background:var(--ink)}
.plus::before{width:10px;height:1px;transform:translate(-50%,-50%)}
.plus::after{width:1px;height:10px;transform:translate(-50%,-50%)}
a.tile:active .plus{background:var(--ink)}
a.tile:active .plus::before,a.tile:active .plus::after{background:#fff}
div.tile .plus{display:none}
.tile.slim .name{font-size:15px;line-height:24px;margin-bottom:0}
.tile.off .name,.tile.off .meta,.tile.off .mark span{color:var(--weak)}
.tile.off .mark i{background:var(--weak)}

.pad{background:var(--tile);padding:24px 20px}
.cream{background:var(--cream);padding:48px 24px;text-align:center;margin-top:4px}
.cream p{margin-top:8px;color:var(--sub)}
.sec{padding:48px 24px}
.sec>.lab{margin-bottom:16px}

/* 按钮 */
.pill{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin-top:24px;border:1px solid var(--ink);border-radius:999px;padding:0 24px;font-size:15px;background:none;color:var(--ink);font-family:inherit;cursor:pointer;transition:background-color .15s,color .15s}
.pill:active{background:var(--ink);color:#fff}

/* 页脚 */
footer{background:var(--blue);color:#fff;margin-top:4px;padding:40px 24px calc(32px + env(safe-area-inset-bottom));font-size:12px;line-height:20px}
footer .big{font-size:15px;line-height:24px;letter-spacing:2px;font-weight:500;margin-bottom:16px}
footer nav{display:flex;gap:24px;margin:0 0 16px -0px}
footer nav a{display:flex;align-items:center;min-height:44px}
footer nav a:active{opacity:.6}
.icp{margin-top:24px;padding-top:16px;border-top:1px solid rgba(255,255,255,.24);font-size:12px;line-height:20px;color:rgba(255,255,255,.72)}
.icp a{display:inline-flex;align-items:center;min-height:44px;margin:-12px 0}
