/* ============================================================
   keira · 预览 v2
   红 / 紫粉 / 青绿混色极光；文字与数字取消像素化
   叠加在 style.css 之后加载
   ============================================================ */

:root {
  /* 墨色：深墨绿代替深棕 */
  --ink: #0B3B36;
  --ink-2: #2F6B63;
  --ink-3: #6E9E94;

  /* 纸：带一点薄荷的奶白 */
  --paper: #F7FFFC;
  --paper-2: #E2FAF0;
  --paper-3: #C9F1E1;

  /* 天 */
  --sky: #67E8F9;
  --sky-2: #A5F3FC;
  --sky-3: #E0FBFF;

  /* 主强调：淡紫（按钮 / dock 选中底） */
  --sun: #C4B5FD;
  --sun-2: #7C3AED;
  --sun-3: #EDE9FE;

  /* 草 */
  --green: #34D399;
  --green-2: #047857;

  /* 强调色 */
  --red: #F43F5E;    /* 逾期 / 考试 / 倒计时：玫红 */
  --blue: #0891B2;   /* 上课：青蓝 */
}

/* ---------- 文字：全部改用系统字体，不再像素化 ---------- */
body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: #BE123C;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: auto;
  text-rendering: optimizeLegibility;
}

/* 标题：加粗、去掉像素字体的字距 */
.brand { font-size: 23px; font-weight: 800; letter-spacing: 0; }
.hero__title, .page-head h1 { font-size: 34px; font-weight: 700; letter-spacing: 0; line-height: 1.2; }
.card__head h2, .ddl-group__head h2 { font-size: 20px; font-weight: 700; letter-spacing: 0; }

/* 大数字：表格数字，等宽稳定 */
.count__num, .gpa-strip__num, .gpa-hero__num {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
}

/* 正文统一放大到 13px（原来 12px 的像素字看着更大） */
.topbar__meta, .btn, .link, .kicker, .hero__sub,
.count__label, .count__name, .count__place, .count__date, .count__num small,
.goal__label, .goal__value, .goal__note,
.bubble__text, .row__title, .row__sub, .row__right,
.gpa-strip__label, .gpa-strip__note, .gpa-strip__num small,
.page-head__sub, .addbar__hint,
.thing__title, .thing__due, .thing__right,
.done__toggle, .done__row, .done__note, .empty,
.day__date, .day__left,
.event__start, .event__end, .event__title, .event__meta, .event__cd,
.gpa-hero__label, .gpa-hero__note, .gpa-hero__num small,
.subject__credit, .subject__meta, .comp, .subject__need,
.gpa-foot__title, .gpa-foot__main, .scale__toggle, .scale__cell,
.footer__meta, .dock__btn, .mascot__hint,
.chat__who b, .chat__who span, .msg, .chat__chip { font-size: 13px; }

/* ---------- 背景：红 / 紫粉 / 青绿 三层极光 + 斜向光带 ---------- */
body::before {
  background:
    radial-gradient(42% 34% at 4% 0%, rgba(225, 29, 72, .60), transparent 72%),
    radial-gradient(30% 26% at 42% 2%, rgba(251, 113, 133, .40), transparent 70%),
    radial-gradient(44% 38% at 97% 4%, rgba(139, 92, 246, .60), transparent 72%),
    radial-gradient(46% 40% at 90% 96%, rgba(124, 58, 237, .55), transparent 74%),
    radial-gradient(38% 34% at 6% 88%, rgba(45, 212, 191, .45), transparent 72%),
    linear-gradient(118deg, transparent 36%, rgba(255, 255, 255, .16) 45%, transparent 54%),
    linear-gradient(72deg, transparent 58%, rgba(251, 113, 133, .22) 69%, transparent 80%),
    linear-gradient(160deg,
      #FB7185 0%,
      #E11D48 11%,
      #BE185D 22%,
      #7C3AED 38%,
      #0D9488 62%,
      #10B981 78%,
      #4C1D95 100%);
}
body::after {
  opacity: .25;
  background-image:
    radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px),
    radial-gradient(rgba(6, 78, 74, .18) 1px, transparent 1px);
  background-size: 5px 5px, 5px 5px;
  background-position: 0 0, 2px 2px;
}

/* 顶部文字压在亮色背景上：白字更清楚 */
.topbar__meta { color: rgba(255, 255, 255, .92); text-shadow: 0 1px 0 rgba(122, 13, 40, .45); }
.brand { color: #fff; text-shadow: 2px 2px 0 rgba(122, 13, 40, .45); }

/* ---------- 背景装饰：星星 / 光点 / 圆环 ---------- */
.bg-art {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.scene { display: block; }
.scene__sun, .scene__cloud { display: none; }

/* 两层像素星：3px 亮星 + 5px 暖星，位置随机 */
.scene::before,
.scene::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 3px;
  background: transparent;
  animation: starPulse 6s ease-in-out infinite;
}
.scene::before {
  box-shadow:
     120px  70px 0 0 rgba(255, 255, 255, .85),
     310px 190px 0 0 rgba(255, 255, 255, .50),
     520px  90px 0 0 rgba(253, 230, 138, .75),
     760px 230px 0 0 rgba(255, 255, 255, .55),
     980px 120px 0 0 rgba(255, 255, 255, .80),
    1240px 200px 0 0 rgba(251, 207, 232, .80),
    1470px 110px 0 0 rgba(255, 255, 255, .60),
    1380px 420px 0 0 rgba(253, 230, 138, .55),
    1590px 320px 0 0 rgba(255, 255, 255, .45),
      80px 520px 0 0 rgba(255, 255, 255, .55),
     260px 700px 0 0 rgba(255, 255, 255, .45),
     430px 420px 0 0 rgba(251, 207, 232, .60),
     640px 620px 0 0 rgba(255, 255, 255, .40),
     880px 520px 0 0 rgba(153, 246, 228, .65),
    1080px 700px 0 0 rgba(255, 255, 255, .50),
    1320px 640px 0 0 rgba(255, 255, 255, .40),
    1550px 760px 0 0 rgba(253, 230, 138, .55),
     180px 880px 0 0 rgba(255, 255, 255, .35),
     560px 900px 0 0 rgba(251, 207, 232, .45),
    1020px 900px 0 0 rgba(255, 255, 255, .35);
}
.scene::after {
  width: 5px;
  height: 5px;
  opacity: .8;
  animation-delay: -2.4s;
  box-shadow:
     390px 130px 0 0 rgba(255, 255, 255, .55),
     900px 330px 0 0 rgba(253, 230, 138, .45),
    1180px  90px 0 0 rgba(255, 255, 255, .40),
    1420px 560px 0 0 rgba(251, 207, 232, .45),
     160px 330px 0 0 rgba(153, 246, 228, .50),
     700px 780px 0 0 rgba(255, 255, 255, .35);
}
@keyframes starPulse {
  0%, 100% { opacity: .9; }
  50% { opacity: .55; }
}

/* hero 天空条：红 → 粉 → 紫 → 青绿 */
.hero__sky {
  height: 56px;
  background: linear-gradient(100deg, #FB7185 0%, #F43F5E 22%, #C026D3 46%, #818CF8 66%, #2DD4BF 100%);
  border-bottom: var(--bd);
}
.hero__sky .hero__sun,
.hero__sky .hero__cloud { display: none; }
.hero__sky::before,
.hero__sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 62%);
}
.hero__sky::before { width: 150px; height: 150px; left: -46px; top: -88px; }
.hero__sky::after { width: 96px; height: 96px; right: 16%; top: -58px; opacity: .8; }

/* ---------- 重点色块：倒计时牌改成玫红 ---------- */
.count {
  background: linear-gradient(150deg, #FB7185, #F43F5E 55%, #E11D48);
  color: #fff;
}
.count__num, .count__name { color: #fff; }
.count__place { color: rgba(255, 255, 255, .85); border-top-color: rgba(255, 255, 255, .35); }
.count__date { color: rgba(255, 255, 255, .85); }
.count__label::before { background: #FDE68A; border-color: rgba(255, 255, 255, .55); }
.brand__mark { background: #FDE68A; }
.footer__meta { color: rgba(255, 255, 255, .85); }

/* dock 选中：玫红底白字，换掉一片紫 */
.dock__btn.is-active { background: var(--red); color: #fff; }

/* ---------- 描边 / 分隔线统一成墨绿色调 ---------- */
.row { border-top-color: rgba(11, 59, 54, .16); }
.goals { border-top-color: rgba(11, 59, 54, .2); }
.done { border-top-color: rgba(11, 59, 54, .18); }
.done__row { border-bottom-color: rgba(11, 59, 54, .12); }
.ddl-group__rule, .day__rule { background: rgba(11, 59, 54, .12); }
.gpa-strip__sep { background: rgba(11, 59, 54, .18); }
.dock__btn { border-right-color: rgba(11, 59, 54, .16); }
.event__time { border-right-color: rgba(11, 59, 54, .2); }
.subject__foot { border-top-color: rgba(11, 59, 54, .16); }
.scale { border-top-color: rgba(11, 59, 54, .18); }
.chat { box-shadow: 8px 8px 0 rgba(11, 59, 54, .85); }

/* ---------- 状态色微调到新色系 ---------- */
.thing--overdue { background: #FFF1F4; }
.thing--checked { background: #EAFDF4; }
.subject--done { background: #EEFCF6; }
.goal { background: #FCFFFE; }
.btn:hover { background: #D8CCFF; }
.btn--green:hover { background: #5EEAD4; }
.link:hover { border-bottom-color: var(--sun-2); }
.check:hover { background: var(--sun-3); }
.dock__btn.is-active { color: #fff; }

/* 滚动条（桌面）顺一下色 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(11, 59, 54, .35); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
