/* 动设备文献情报 - 复刻归档站 UI */
:root {
  --paper: #faf9f6;
  --ink: #1e2b29;
  --deep: #0e2a28;
  --green: #1c8a67;
  --green-dark: #14664d;
  --amber: #b45309;
  --muted: #7a7568;
  --line: #e9e4d8;
  --card: #ffffff;
  --eng-bg: #eaf4ef;
  --warn-bg: #fdf6e9;
  --warn-ink: #92400e;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.75; }
.layout { display: flex; min-height: 100vh; }

/* ---- 侧栏：日期归档 ---- */
.sidebar {
  width: 300px; flex-shrink: 0; background: #fff;
  border-right: 1px solid var(--line); padding: 22px 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { font-weight: 700; font-size: 17px; margin-bottom: 20px; }
.side-head {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.date-card {
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 10px;
  text-decoration: none; color: inherit;
}
.date-card:hover { background: #f3f1ea; }
.date-card.active { background: var(--deep); color: #fff; }
.dc-date { font-family: var(--serif); font-weight: 700; font-size: 22px; white-space: nowrap; }
.dc-body { display: flex; flex-direction: column; min-width: 0; }
.dc-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-deck { font-size: 12px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 主区 ---- */
main { flex: 1; min-width: 0; max-width: 1080px; }
.hero { display: flex; gap: 28px; padding: 48px 48px 36px; align-items: flex-start; }
.date-badge {
  border-top: 5px solid var(--green); padding-top: 10px;
  display: flex; flex-direction: column; align-items: center; min-width: 110px;
}
.db-date { font-family: var(--serif); font-weight: 800; font-size: 44px; line-height: 1.1; }
.db-year { font-size: 14px; color: var(--muted); }
.eyebrow { color: var(--green-dark); font-weight: 600; font-size: 14px; margin: 0 0 10px; }
.hero h1 { font-family: var(--serif); font-size: 40px; line-height: 1.35; margin: 0 0 14px; font-weight: 700; }
.deck { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.coverage { font-size: 13px; color: var(--muted); margin: 0; }

/* ---- 本期判断 ---- */
.judgment { display: flex; gap: 28px; padding: 8px 48px 36px; border-bottom: 1px solid var(--line); }
.j-label { color: var(--amber); font-weight: 700; font-size: 14px; white-space: nowrap; padding-top: 6px; }
.j-body h2 { font-size: 19px; margin: 0 0 12px; }
.takeaway { font-family: var(--serif); font-size: 21px; line-height: 1.8; margin: 0 0 14px; }
.scope { font-size: 13px; color: var(--muted); margin: 0; }

/* ---- 深读推荐（深色区） ---- */
.deep { background: var(--deep); color: #f2efe6; padding: 44px 48px; }
.deep-eyebrow { color: #7fd6b5; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.deep-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 14px; margin-bottom: 8px; }
.deep-head h2 { font-family: var(--serif); font-size: 30px; margin: 0; font-weight: 600; }
.deep-head p { font-size: 13px; opacity: .65; margin: 0; }
.deep-item { display: flex; gap: 26px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.deep-item:last-child { border-bottom: none; }
.deep-num { color: #7fd6b5; font-family: var(--serif); font-weight: 700; font-size: 17px; padding-top: 4px; }
.deep-body h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 10px; font-weight: 600; }
.deep-body p { font-size: 15px; opacity: .92; margin: 0 0 10px; }
.focus-label { font-size: 13px; opacity: .6; margin: 14px 0 6px; }
.deep-body ul { font-size: 14px; opacity: .85; margin: 0 0 10px; padding-left: 20px; }
.caveat-dark { background: rgba(255,255,255,.08); border-radius: 6px; padding: 8px 12px; font-size: 13px; }

/* ---- 普通章节 ---- */
.sec { padding: 36px 48px; }
.sec-eyebrow { color: var(--green-dark); font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.sec h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 14px 0; }
.card h3 { font-size: 18px; margin: 0 0 10px; color: var(--ink); }
.card p { font-size: 15px; margin: 8px 0; }
.eng { background: var(--eng-bg); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin: 10px 0; }
.meta { font-size: 13px; color: var(--muted); }
.caveat { background: var(--warn-bg); color: var(--warn-ink); padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.src { color: var(--green-dark); font-size: 14px; text-decoration: none; font-weight: 600; }
.src:hover { text-decoration: underline; }
.extra-tag { font-size: 12px; color: var(--green-dark); font-weight: 700; margin: 0 0 6px; }
.reason { font-size: 14px; }
ul.gaps { font-size: 15px; }
ul.gaps li { margin-bottom: 6px; }
footer { text-align: center; font-size: 13px; color: var(--muted); padding: 26px; border-top: 1px solid var(--line); }

/* ---- 手机 ---- */
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line); padding: 14px; }
  .side-head { margin-bottom: 8px; }
  .date-card { margin-bottom: 6px; }
  .hero { padding: 28px 20px; gap: 18px; }
  .hero h1 { font-size: 28px; }
  .db-date { font-size: 32px; }
  .judgment, .sec { padding-left: 20px; padding-right: 20px; }
  .deep { padding: 32px 20px; }
  .takeaway { font-size: 18px; }
  .deep-head { flex-direction: column; gap: 6px; }
}
