/* ============================================================
   澜庭集代理商 H5 —— 东方滋补 × 精品电商 视觉
   主色：品牌红渐变 #a41623 → #c3272e ｜ 强调：金铜 #b98a3e
   底色：暖米白纸感 ｜ 展示字：宋体衬线（系统字体，零加载）
   只改视觉，全部选择器与功能规则保持不变
   ============================================================ */
:root {
  --red-deep: #a41623;      /* 品牌红·深 */
  --red: #c3272e;           /* 品牌红·主 */
  --red-soft: #fbeeec;      /* 红·浅底 */
  --gold: #b98a3e;          /* 金铜·强调 */
  --gold-soft: #f6eedd;     /* 金·浅底 */
  --ink: #2b2320;           /* 墨色正文 */
  --ink-2: #6f655e;         /* 次级文字 */
  --ink-3: #a39a91;         /* 弱文字 */
  --paper: #f6f2ec;         /* 暖米白底 */
  --card: #ffffff;
  --line: #ede6dc;          /* 暖分隔线 */
  --shadow-1: 0 1px 2px rgba(84, 55, 40, .05), 0 2px 8px rgba(84, 55, 40, .05);
  --shadow-2: 0 4px 10px rgba(84, 55, 40, .08), 0 10px 28px rgba(84, 55, 40, .07);
  --r-card: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -80px, rgba(195, 39, 46, .05), transparent 60%),
    linear-gradient(180deg, #f8f4ee 0%, var(--paper) 240px);
  color: var(--ink); font-size: 15px; line-height: 1.6;
  max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: 68px;
  -webkit-font-smoothing: antialiased;
}
/* 展示字：标题与数字用衬线，东方滋补质感 */
.header .title, .stat-row .num, .pl-price, .prod-card .p-price, .card h3 {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

/* ---------- 顶栏：暖米白浅底 + 金线 ---------- */
.header {
  background: linear-gradient(160deg, #fdfaf4 0%, #f7efe2 100%);
  color: var(--ink); padding: 18px 18px 15px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(84, 55, 40, .06);
}
.header::after {                    /* 顶栏底部金线 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(222, 186, 128, .8) 30%,
              rgba(222, 186, 128, .8) 70%, transparent);
}
.header .title { font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.header a { color: var(--red-deep); font-size: 13px; text-decoration: none; padding: 4px 2px; font-weight: 600; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; background: var(--red-soft);
  border: 1px solid #f0d0cb; color: var(--red-deep); font-weight: 600;
}
.header .back { color: var(--ink); font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; }
.header .back:active { opacity: .7; }

/* ---------- 卡片：暖白 + 分层阴影 + 入场动效 ---------- */
.card {
  background: var(--card); border: 1px solid rgba(222, 205, 180, .35);
  border-radius: var(--r-card); margin: 12px 12px 0; padding: 15px 15px 13px;
  box-shadow: var(--shadow-1);
  animation: rise .45s var(--ease) both;
}
.card:nth-of-type(2) { animation-delay: .06s; }
.card:nth-of-type(3) { animation-delay: .12s; }
.card:nth-of-type(4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card h3 { font-size: 15.5px; margin-bottom: 10px; color: var(--ink);
  display: flex; align-items: center; gap: 7px; letter-spacing: .02em; }
.card h3::before {                  /* 标题金点 */
  content: ""; width: 4px; height: 14px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, #d8b877, var(--gold));
}

/* ---------- 快捷宫格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.grid a { text-decoration: none; color: var(--ink); font-size: 12px;
  padding: 8px 2px; border-radius: 10px; transition: background .18s; }
.grid a:active { background: var(--red-soft); }
.grid .ico { font-size: 24px; margin-bottom: 4px; display: block;
  transition: transform .25s var(--ease); }
.grid a:active .ico { transform: scale(.88); }

/* ---------- 统计 ---------- */
.stat-row { display: flex; text-align: center; }
.stat-row .col { flex: 1; }
.stat-row .num { font-size: 22px; font-weight: 700; color: var(--red-deep);
  font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-row .lab { font-size: 12px; color: var(--ink-2); margin-top: 3px; }

/* ---------- 列表项 ---------- */
.item { display: flex; justify-content: space-between; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: none; }
.item .name { font-size: 14px; }
.item .sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.item .price { color: var(--red-deep); font-weight: 700;
  font-variant-numeric: tabular-nums; }
/* 购物车商品主图（09-09） */
.cart-img { display: block; flex-shrink: 0; text-decoration: none; }
.cart-img img { width: 64px; height: 64px; object-fit: cover;
  border-radius: 10px; background: #f5f2ee; display: block; }
.cart-noimg { width: 64px; height: 64px; border-radius: 10px;
  background: #f5f2ee; display: flex; align-items: center;
  justify-content: center; font-size: 26px; }

/* ---------- 表格 ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); }
th { color: var(--ink-2); font-weight: 500; background: #faf6f0; }
.price-red { color: #c0392b; font-weight: 600; }
.price-green { color: #0a7f43; font-weight: 600; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; color: #fff; border: none;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  border-radius: 10px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 10px rgba(164, 22, 35, .24);
  transition: transform .15s var(--ease), box-shadow .15s, opacity .15s;
}
.btn:active { transform: translateY(1px) scale(.985); box-shadow: 0 1px 4px rgba(164, 22, 35, .2); }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.gray { background: #efe9e1; color: var(--ink-2); box-shadow: none; }
.btn.small { padding: 6px 13px; font-size: 12px; border-radius: 8px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- 表单控件 ---------- */
input[type=text], input[type=tel], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd3c6; border-radius: 10px;
  font-size: 14px; margin: 6px 0; background: #fffdfb; color: var(--ink);
  transition: border-color .18s, box-shadow .18s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(195, 39, 46, .1);
  outline: none;
}

/* ---------- 底部导航：毛玻璃 + 金点选中 ---------- */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 10;
  background: rgba(255, 253, 250, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav a { flex: 1; text-align: center; padding: 8px 0 9px; font-size: 11px;
  color: var(--ink-2); text-decoration: none; position: relative;
  transition: color .18s; }
.nav a.on { color: var(--red-deep); font-weight: 600; }
.nav a.on .ico { transform: translateY(-1px) scale(1.08); }
.nav .ico { font-size: 20px; display: block; transition: transform .25s var(--ease); }
.nav a.on::after {                  /* 选中金点 */
  content: ""; position: absolute; bottom: 3px; left: 50%;
  transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
}

/* ---------- 提示条 ---------- */
.tip {
  background: var(--gold-soft); border: 1px solid #e8d9b8; color: #7a5b22;
  border-radius: 12px; padding: 10px 13px; font-size: 13px; margin: 12px 12px 0;
  line-height: 1.7;
}
.tip.red { background: var(--red-soft); border-color: #f0cbc7; color: #9c2a24; }

/* ---------- 标签：胶囊化 ---------- */
.tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; display: inline-block;
  font-weight: 500; }
.tag.orange { background: #fdf0dd; color: #b26a08; }
.tag.green { background: #e7f3ea; color: #17754a; }
.tag.red { background: var(--red-soft); color: #b3261e; }
.tag.blue { background: #eaf1fb; color: #2359a8; }
.tag.gray { background: #f1ece5; color: var(--ink-2); }

.login-box { max-width: 340px; margin: 60px auto; }
.field { margin-bottom: 10px; }
footer.note { text-align: center; color: var(--ink-3); font-size: 11px; padding: 22px 0; }
.admin-wrap { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.ship-form { display: flex; gap: 6px; margin-top: 6px; }
.ship-form input { margin: 0; font-size: 12px; padding: 6px; }

/* ---------- 订货页：通栏侧栏 + 图左文右 ---------- */
.cat-wrap { display: flex; gap: 0; align-items: stretch; margin: -8px -2px 0; }
.cat-side { width: 88px; flex-shrink: 0; background: #efe9df;
  border-radius: 12px 0 0 12px; display: flex; flex-direction: column; overflow: hidden; }
.cat-side button { border: none; background: transparent; padding: 18px 6px;
  font-size: 13px; color: var(--ink-2); cursor: pointer; position: relative;
  transition: background .18s, color .18s; }
.cat-side button.on { background: #fff; color: var(--ink); font-weight: 700; }
.cat-side button.on::before { content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 3px; height: 22px;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  border-radius: 0 2px 2px 0; }
.cat-wrap > div:last-child { background: #fff; border-radius: 0 12px 12px 0;
  padding: 4px 8px 4px 10px; }

/* 图左文右商品卡 */
.plist-card { display: flex; gap: 10px; padding: 12px 2px;
  border-bottom: 1px solid var(--line); }
.plist-card:last-child { border-bottom: none; }
.pl-img { display: block; flex-shrink: 0; text-decoration: none; }
.pl-img img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px;
  display: block; transition: transform .3s var(--ease); }
.pl-img:active img { transform: scale(.96); }
.pl-noimg { width: 92px; height: 92px; border-radius: 10px;
  background: linear-gradient(150deg, #f6efe4, #efe6d6);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #cfc2ab; }
.pl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-name { font-size: 14px; color: var(--ink); text-decoration: none; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-meta { margin-top: 3px; font-size: 11px; color: var(--ink-3);
  display: flex; gap: 6px; align-items: center; }
.pl-bottom { margin-top: auto; display: flex; align-items: flex-end;
  justify-content: space-between; }
.pl-price { color: var(--red-deep); font-size: 17px; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pl-rep { font-size: 10px; color: var(--ink-3); font-weight: 400; margin-left: 4px;
  font-family: -apple-system, "PingFang SC", sans-serif; }
.pl-add button { width: 32px; height: 32px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #d89a3f, #b9812f); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  box-shadow: 0 3px 8px rgba(185, 138, 62, .35);
  transition: transform .15s var(--ease); }
.pl-add button:active { transform: scale(.9); opacity: .85; }

/* ---------- 首页在售商品图卡 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.prod-grid a { text-decoration: none; color: var(--ink); }
.prod-card { background: #fff; border: 1px solid rgba(222, 205, 180, .3);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .25s var(--ease), box-shadow .25s; }
.prod-card:active { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.prod-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.prod-card .p-noimg { width: 100%; aspect-ratio: 1/1; display: flex;
  align-items: center; justify-content: center; font-size: 34px;
  background: linear-gradient(150deg, #f6efe4, #efe6d6); color: #cfc2ab; }
.prod-card .p-name { font-size: 13px; padding: 7px 9px 2px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-card .p-price { color: var(--red-deep); font-weight: 700; font-size: 14px;
  padding: 0 9px 9px; font-variant-numeric: tabular-nums; }
.prod-card .p-unit { font-weight: 400; font-size: 11px; color: var(--ink-3);
  font-family: -apple-system, "PingFang SC", sans-serif; }

/* ---------- 数量步进器 ---------- */
.qty-btn { width: 32px; height: 32px; padding: 0; line-height: 1;
  font-size: 16px; font-weight: 600; border-radius: 9px; flex: none;
  background: #f4eee6; color: var(--ink); border: 1px solid #e5dccd; }
.qty-input { width: 64px; padding: 6px 4px; text-align: center;
  font-size: 15px; font-weight: 600; margin: 0;
  font-variant-numeric: tabular-nums; }

/* ---------- 打款凭证上传框 ---------- */
.voucher-box { display: flex; flex-direction: column; align-items: center;
  justify-content: center; width: 96px; height: 96px;
  border: 1.5px dashed #cbbfae; border-radius: 12px;
  background: #fdfaf5; cursor: pointer; overflow: hidden;
  position: relative; user-select: none; -webkit-user-select: none;
  transition: border-color .18s, background .18s; }
.voucher-box:active { background: #f7f0e4; border-color: var(--gold); }
.voucher-box .vplus { font-size: 32px; line-height: 1; color: #c2b49c; font-weight: 300; }
.voucher-box .vtxt { font-size: 11px; color: var(--ink-2); margin-top: 5px; }
.voucher-box img { position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; }

/* ---------- 我的订单分类切换 ---------- */
.cat-tabs { display: flex; gap: 8px; padding: 12px 12px 2px; }
.cat-tabs a { flex: 1; text-align: center; padding: 9px 0; font-size: 13px;
  border-radius: 999px; background: #fff; color: var(--ink-2); text-decoration: none;
  border: 1px solid rgba(222, 205, 180, .4); box-shadow: var(--shadow-1);
  transition: all .18s; }
.cat-tabs a.on { background: linear-gradient(135deg, var(--red-deep), var(--red));
  color: #fff; font-weight: 600; border-color: transparent;
  box-shadow: 0 3px 10px rgba(164, 22, 35, .24); }

/* ---------- 学院页通用（materials.html 内联样式同步用变量） ---------- */
.chips a.on, .aca-tabs a.on { background: var(--red-deep); border-color: var(--red-deep); }
.copy-btn { background: linear-gradient(135deg, var(--red-deep), var(--red)) !important;
  box-shadow: 0 3px 10px rgba(164, 22, 35, .22); }
.cat-tag { background: var(--red-soft) !important; color: var(--red-deep) !important; }
.course-card, .mat-card { animation: rise .45s var(--ease) both; }
.course-card .cv { background: linear-gradient(135deg, #f7dcd8, #fbeeec) !important; color: #c98a85 !important; }

/* ---------- 降级：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 订货页悬浮购物车按钮 ---------- */
.cart-fab {
  position: fixed; right: max(16px, calc(50% - 224px)); bottom: 92px; z-index: 11;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(164, 22, 35, .32);
  text-decoration: none;
  transition: transform .18s var(--ease), box-shadow .18s;
}
.cart-fab:active { transform: scale(.92); }
.cart-fab-ico { font-size: 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.cart-fab-n {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px;
  background: linear-gradient(180deg, #d8b877, var(--gold));
  color: #fff; font-size: 12px; font-weight: 700; line-height: 20px;
  text-align: center; border: 2px solid #fff;
  font-variant-numeric: tabular-nums;
}

/* ---------- 我的页：分组栏头（东方账本式） ---------- */
.me-sec { margin: 14px 12px 0; }
.me-sec-h { display: flex; align-items: baseline; gap: 9px; padding: 0 2px 8px; }
.me-sec-h .t {
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--ink);
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.me-sec-h .t::before {           /* 栏头金点，呼应卡片 h3 */
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(180deg, #d8b877, var(--gold));
  box-shadow: 0 0 0 2.5px rgba(185, 138, 62, .14);
}
.me-sec-h .en { font-size: 10px; color: var(--ink-3); letter-spacing: .14em;
  text-transform: uppercase; }
.me-sec-h .ln { flex: 1; height: 1px; align-self: center;
  background: linear-gradient(90deg, rgba(185, 138, 62, .38), rgba(185, 138, 62, 0)); }
.me-sec .card { margin: 0; animation-delay: 0s; }
.me-sec:nth-of-type(2) .card { animation-delay: .05s; }
.me-sec:nth-of-type(3) .card { animation-delay: .1s; }
.me-sec:nth-of-type(4) .card { animation-delay: .15s; }
.me-sec .item { padding: 12.5px 0; }
.me-sec .item .name { font-size: 14.5px; letter-spacing: .01em; }

/* ---------- 数据分析板块（/analytics） ---------- */
.ana-trend { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar-lab { width: 38px; font-size: 12px; color: var(--ink-2); text-align: right; flex: none; }
.bar-track { flex: 1; height: 14px; background: #f6f1e8; border-radius: 7px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 7px;
  background: linear-gradient(90deg, var(--red), var(--red-deep));
  min-width: 0; transition: width .5s ease; }
.bar-val { width: 110px; font-size: 11.5px; color: var(--ink-2); flex: none; white-space: nowrap; }
.ana-rank { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid #f4ece0; }
.ana-rank .rank-row:last-child { border-bottom: none; }
.rk { width: 22px; height: 22px; border-radius: 6px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #9aa3ad; background: #f2f4f6; }
.rk.top { color: #fff; background: linear-gradient(135deg, var(--red), var(--red-deep)); }
.rk-main { flex: 1; min-width: 0; }
.rk-name { font-size: 13.5px; color: #26313f; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px; }
.rk-bar { height: 6px; border-radius: 3px; background: #f6f1e8; overflow: hidden; }
.rk-bar span { display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #d8b877, var(--gold)); }
.rk-num { flex: none; text-align: right; }
.rk-num b { display: block; font-size: 13.5px; color: var(--red-deep); }
.rk-num i { font-style: normal; font-size: 11px; color: #9aa3ad; }

/* ---------- 我的页：功能入口方块宫格 ---------- */
.me-grid-card { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mi-grid-item { position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 7px;
  padding: 14px 4px 12px; background: #fbf6ec; border: 1px solid #f0e6d2;
  border-radius: 12px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; }
.mi-grid-item:active { transform: scale(.95); }
.mi-ico { font-size: 22px; line-height: 1; }
.mi-txt { font-size: 12px; line-height: 1.3; color: #4a3f33; text-align: center; }
.mi-badge { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px;
  background: linear-gradient(135deg, #ff7a45, #e5532c); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 2px 6px rgba(229, 83, 44, .35); }

/* ---------- 我的页：SVG 线性图标 ---------- */
.mi-svg { width: 25px; height: 25px; color: #a63a2e; flex: none; }
.mi-grid-item { gap: 8px; }
.mi-ico { display: none; }

/* ---------- 团队云仓：成员名字链接 ---------- */
.ts-name { color: #26313f; border-bottom: 1px dashed #c9a86a; padding-bottom: 1px; }
.ts-name:active { color: var(--red-deep); }

/* ---------- 数据分析：时间维度切换条 ---------- */
.ana-tabs { display: flex; gap: 4px; background: #f6f1e8; border-radius: 9px;
  padding: 3px; margin-bottom: 12px; }
.ana-tabs a { flex: 1; text-align: center; padding: 7px 0; font-size: 13px;
  color: #6b5d4a; border-radius: 7px; text-decoration: none;
  transition: background .15s, color .15s; }
.ana-tabs a.on { background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff; font-weight: 700; box-shadow: 0 2px 6px rgba(166, 58, 46, .3); }

/* ---------- 首页公告（后台 /admin/notices 维护） ---------- */
.nt-list { display: flex; flex-direction: column; gap: 12px; }
.nt-item { border-left: 3px solid var(--red); padding-left: 10px; }
.nt-title { font-size: 13.5px; font-weight: 700; color: #26313f; }
.nt-body { font-size: 13px; color: #666; margin-top: 4px;
  white-space: pre-wrap; line-height: 1.7; }

/* ---------- 首页：系统功能说明 ---------- */
.note-body { font-size: 13px; color: #5a6675; line-height: 1.9; }

/* ---------- 首页：数据概览 / 待办提醒 ---------- */
.stat-row a.col { text-decoration: none; color: inherit; display: block; }
.stat-row a.col:active .num { opacity: .65; }
.todo-card { border-left: 3px solid var(--red-deep); }
.todo-list { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; gap: 9px; padding: 10px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  color: var(--ink); font-size: 13.5px; }
.todo-item:last-child { border-bottom: none; }
.todo-item:active { background: var(--red-soft); }
.todo-dot { width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-deep); flex: 0 0 auto; }
.todo-text { flex: 1; }
.todo-go { color: var(--ink-3); font-size: 17px; }

/* ---------- 首页公告：统一卡片尺寸 + 可点进详情 ---------- */
.nt-list { display: flex; flex-direction: column; gap: 10px; }
.nt-item { display: block; box-sizing: border-box; height: 96px; overflow: hidden;
  border-left: 3px solid var(--red); padding: 9px 11px; border-radius: 0 8px 8px 0;
  text-decoration: none; color: inherit; background: #fcfaf7; }
.nt-item:active { background: var(--red-soft); }
.nt-title { font-size: 13.5px; font-weight: 700; color: #26313f;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-body { font-size: 13px; color: #666; margin-top: 4px; line-height: 1.6;
  white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.nt-more { font-size: 12px; color: var(--red-deep); margin-top: 5px; }

/* ---------- 公告详情 ---------- */
.nt-detail-title { font-size: 16px; font-weight: 700; color: #26313f;
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif; }
.nt-detail-meta { font-size: 12px; color: var(--ink-3); margin-top: 6px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.nt-detail-body { font-size: 14px; color: #3d4756; margin-top: 12px;
  line-height: 1.9; white-space: pre-wrap; }

/* ---------- 功能说明卡：默认收起等高公告卡，点击展开 ---------- */
.note-fold summary { list-style: none; cursor: pointer; }
.note-fold summary::-webkit-details-marker { display: none; }
.note-fold summary .note-body { display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.note-fold .note-body { margin-top: 6px; }
.note-fold[open] summary .note-body,
.note-fold[open] summary .nt-more { display: none; }

/* ---------- 待办提醒卡：紧凑版 ---------- */
.todo-card { padding: 10px 13px 8px; }
.todo-card h3 { font-size: 14px; margin-bottom: 2px; }
.todo-card h3::before { height: 12px; }
.todo-item { padding: 6px 0; font-size: 13px; }
.todo-dot { width: 5px; height: 5px; }
.todo-go { font-size: 15px; }

/* ---------- 首页快捷入口：2×2 大卡片 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-grid a { display: block; padding: 13px 12px; border-radius: 12px;
  text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, #fdfaf4 0%, #f9f2e6 100%);
  border: 1px solid rgba(222, 205, 180, .5); }
.quick-grid a:active { background: var(--red-soft); }
.q-ico { font-size: 26px; line-height: 1; }
.q-t { font-size: 14.5px; font-weight: 600; margin-top: 7px; }
.q-s { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- 首页快捷入口：一行四卡（紧凑） ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-grid a { display: block; padding: 10px 3px 9px; border-radius: 12px;
  text-align: center; text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, #fdfaf4 0%, #f9f2e6 100%);
  border: 1px solid rgba(222, 205, 180, .5); }
.quick-grid a:active { background: var(--red-soft); }
.q-ico { font-size: 22px; line-height: 1.1; }
.q-t { font-size: 12px; font-weight: 600; margin-top: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-s { display: none; }
