/* 画风：像素平台游戏风（原创），收敛版。
   原则：花纹只放在边缘（顶部天空 + 云、导航底部一条砖块），内容区干净；
   粗黑框只给卡片和主要按钮，其他小东西细边、不加阴影；像素字只用在标题和大数字。
   只在 body.t-pixel 时生效；拿掉这个 class 就回到简洁画风。 */
body.t-pixel{
  --bg:#EAF1FF; --surface:#FFFFFF; --sunk:#F3F6FC; --line:#D5DCEA;
  --ink:#1B1B1B; --muted:#55607A; --faint:#8A93A8;
  --accent:#1F8A3B; --accent-soft:#DDF3DF; --accent-ink:#FFFFFF;
  --jr:#2245D8; --jr-soft:#E1E8FF; --js:#9A2C78; --js-soft:#F7E1F0;
  --warn:#A85006; --warn-soft:#FFEFD2; --bad:#C81E1E; --bad-soft:#FFE1DC;
  --scrim:rgba(20,24,50,.5);
  --sky:#6B8CFF; --gold:#F7B500; --gold-hi:#FFE27A; --gold-lo:#B07400; --brick:#B44614;
  --f-pixel:"Press Start 2P","Noto Sans SC",monospace;
  color-scheme:light;
  /* 顶部一段天空（带两朵云），往下变成很淡的蓝，内容区不受干扰 */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='150' shape-rendering='crispEdges'%3E%3Cg fill='%23fff'%3E%3Crect x='620' y='34' width='24' height='8'/%3E%3Crect x='612' y='42' width='48' height='8'/%3E%3Crect x='596' y='50' width='96' height='16'/%3E%3Crect x='652' y='34' width='16' height='16'/%3E%3Crect x='800' y='86' width='16' height='8'/%3E%3Crect x='792' y='94' width='40' height='8'/%3E%3Crect x='780' y='102' width='68' height='12'/%3E%3C/g%3E%3C/svg%3E") right 360px top/900px 150px no-repeat,
    linear-gradient(var(--sky) 0 150px,#A9BEFF 150px,var(--bg) 320px) no-repeat,
    var(--bg);
}
body.t-pixel ::selection{background:var(--gold);color:#000}

/* ---- 顶部：白字在天空上 ---- */
body.t-pixel .top h1{font-family:var(--f-pixel);font-size:clamp(18px,4vw,24px);color:#fff;text-shadow:3px 3px 0 rgba(0,0,0,.55);line-height:1.4;letter-spacing:0}
body.t-pixel .top h1 span{color:var(--gold-hi)}
body.t-pixel .top p,body.t-pixel #whoName{color:#fff;text-shadow:1px 1px 0 rgba(0,0,0,.45)}

/* ---- 卡片：只有卡片有粗黑框 + 硬阴影 ---- */
body.t-pixel .card{border:3px solid #1B1B1B;border-radius:0;box-shadow:5px 5px 0 rgba(27,27,27,.18)}
body.t-pixel .card>h2{font-weight:700}
body.t-pixel .banner{border:2px solid currentColor;border-radius:0}
body.t-pixel .kpi{border-radius:0;border-left:4px solid var(--gold)}
body.t-pixel .kpi:first-child{border-left-color:var(--js)}
body.t-pixel .kpi:nth-child(2){border-left-color:var(--jr)}
body.t-pixel .kpi:nth-child(4){border-left-color:var(--warn)}
body.t-pixel .kpi b{font-family:var(--f-pixel);font-size:clamp(14px,2.2vw,18px);line-height:1.8}
/* 金币：只放在「合计 Total」一个地方 */
body.t-pixel .kpi:nth-child(3) .l::before{content:"";display:inline-block;width:10px;height:14px;vertical-align:-2px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='14' shape-rendering='crispEdges'%3E%3Crect x='2' width='6' height='14' fill='%23000'/%3E%3Crect y='2' width='10' height='10' fill='%23000'/%3E%3Crect x='2' y='1' width='6' height='12' fill='%23F7B500'/%3E%3Crect x='1' y='3' width='8' height='8' fill='%23F7B500'/%3E%3Crect x='4' y='3' width='2' height='8' fill='%23FFE27A'/%3E%3C/svg%3E") no-repeat}

/* ---- 按钮：只有主要按钮是金色方块，其他保持安静 ---- */
body.t-pixel .btn{border-radius:0}
body.t-pixel .btn:not(.ghost):not(.danger){border:2px solid #1B1B1B;background:var(--gold);color:#1B1B1B;
  box-shadow:inset -3px -3px 0 var(--gold-lo),inset 3px 3px 0 var(--gold-hi)}
body.t-pixel .btn:not(.ghost):not(.danger):active{transform:translateY(1px)}
body.t-pixel .fab{box-shadow:inset -3px -3px 0 var(--gold-lo),inset 3px 3px 0 var(--gold-hi),4px 4px 0 rgba(0,0,0,.3)!important}
body.t-pixel .top .btn.ghost{background:rgba(255,255,255,.92);border-color:transparent}
body.t-pixel .chip,body.t-pixel .mini,body.t-pixel .tab,body.t-pixel .type,body.t-pixel .tag{border-radius:0}
body.t-pixel .chip.on{background:#1B1B1B;border-color:#1B1B1B}

/* ---- 进度条：一格一格（唯一保留的游戏感细节之一） ---- */
body.t-pixel .bar,body.t-pixel .tbar{border-radius:0;height:8px}
body.t-pixel .bar i,body.t-pixel .tbar i{border-radius:0;background:repeating-linear-gradient(90deg,var(--accent) 0 6px,transparent 6px 8px)}
body.t-pixel .bar:not(.done) i{background:repeating-linear-gradient(90deg,var(--js) 0 6px,transparent 6px 8px)}

/* ---- 12 个月走势：方块柱子 ---- */
body.t-pixel .trend .c i{border-radius:0;background:var(--brick);opacity:.45}
body.t-pixel .trend .c.on i{opacity:1}

/* ---- 输入框、编辑面板 ---- */
body.t-pixel .search,body.t-pixel .f input,body.t-pixel .f select,body.t-pixel .f textarea,body.t-pixel .paste textarea,body.t-pixel .report,body.t-pixel .tgt{border-radius:0}
body.t-pixel .sheet{border-left:3px solid #1B1B1B}
body.t-pixel .sh-head{background:var(--sky);color:#fff;border-bottom:3px solid #1B1B1B}
body.t-pixel .sh-head h3{text-shadow:2px 2px 0 rgba(0,0,0,.45)}
body.t-pixel .sh-head .btn.ghost{background:#fff;border-color:transparent}
body.t-pixel .part{border-radius:0}
body.t-pixel .issues,body.t-pixel .pv,body.t-pixel .toast{border-radius:0}

/* ---- 导航：深色底，只在边上一条砖块 ---- */
body.t-pixel .nav2{background:#1C2340;color:#fff}
body.t-pixel .nav2::after{content:"";position:absolute;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='16' shape-rendering='crispEdges'%3E%3Crect width='32' height='16' fill='%23B44614'/%3E%3Cg fill='%236E2408'%3E%3Crect y='14' width='32' height='2'/%3E%3Crect x='14' width='2' height='7'/%3E%3Crect y='7' width='32' height='2'/%3E%3Crect x='30' y='9' width='2' height='5'/%3E%3C/g%3E%3Cg fill='%23DE7A44'%3E%3Crect x='1' y='1' width='10' height='1'/%3E%3Crect x='17' y='10' width='10' height='1'/%3E%3C/g%3E%3C/svg%3E") repeat-x}
body.t-pixel .nav2 .brand{font-family:var(--f-pixel);font-size:15px;line-height:1.6}
body.t-pixel .nav2 i{border-radius:0}
body.t-pixel .nav2 button.on i{background:var(--gold);color:#1B1B1B}
body.t-pixel .nav2 b{border-radius:0;font-family:var(--f-pixel);font-size:8px;line-height:15px}
@media (min-width:900px){
  body.t-pixel .nav2::after{left:0;right:0;bottom:0;height:16px}
  body.t-pixel .nav2 button.on{background:rgba(255,255,255,.1);border-radius:0}
}
@media (max-width:899px){
  body.t-pixel .nav2{padding-top:10px}
  body.t-pixel .nav2::after{left:0;right:0;top:0;height:4px;background-size:32px 16px;background-position:0 -2px}
}
