/* 易历 · 观时 —— 国风浅色界面 */
:root {
  --paper: #F5F1E8;
  --paper-2: #FBF8F1;
  --card: #FFFDF8;
  --ink: #26221D;
  --ink-2: #5B5348;
  --ink-3: #908676;
  --line: #E6DDCA;
  --line-2: #D6C8AF;
  --red: #A63E2E;
  --red-2: #C25B45;
  --red-soft: #F7EBE6;
  --gold: #AC8848;
  --gold-soft: #F6EEDF;
  --green: #3E6A5E;
  --green-soft: #E9F0EC;
  --blue: #3C5A6C;
  --blue-soft: #EAF0F3;
  --shadow: 0 2px 3px rgba(64, 48, 28, .03), 0 10px 28px rgba(64, 48, 28, .055);
  --serif: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--paper);
  background-image: radial-gradient(rgba(120, 100, 65, .055) .7px, transparent .7px);
  background-size: 7px 7px;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: #E8D9BE; }

/* ---------- 顶栏 ---------- */
.topbar {
  height: 74px; display: flex; align-items: center; gap: 22px; padding: 0 30px;
  background: rgba(255, 253, 248, .92); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.seal {
  width: 42px; height: 42px; border-radius: 5px; background: var(--red);
  display: grid; place-items: center; color: #FFF6EC; font-family: var(--serif);
  font-size: 24px; line-height: 1; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), 0 2px 8px rgba(166,62,46,.22);
  position: relative;
}
.seal::after { content: ''; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.42); border-radius: 3px; }
.brand-txt h1 { margin: 0; font-family: var(--serif); font-size: 19px; letter-spacing: 3px; font-weight: 600; }
.brand-txt p { margin: 2px 0 0; font-size: 10.5px; color: var(--ink-3); letter-spacing: 2.2px; }
.top-meta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top-date { text-align: right; line-height: 1.5; }
.top-date b { font-family: var(--serif); font-size: 15px; letter-spacing: 1px; font-weight: 600; }
.top-date span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  display: grid; place-items: center; font-size: 16px; color: var(--ink-2); transition: .18s;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--red); background: #fff; transform: translateY(-1px); }
.icon-btn.on { background: var(--red-soft); border-color: #E8C9BE; color: var(--red); }
.pill-user {
  height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); transition: .18s;
}
.pill-user:hover { border-color: var(--line-2); color: var(--red); }
.pill-user .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.pill-user.no .dot { background: var(--line-2); }

/* ---------- 布局 ---------- */
.layout { display: flex; align-items: flex-start; min-height: calc(100vh - 74px); }
.sidebar {
  width: 218px; flex-shrink: 0; padding: 26px 14px 24px 22px; border-right: 1px solid var(--line);
  position: sticky; top: 74px; height: calc(100vh - 74px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(255,253,248,.55), rgba(255,253,248,0));
}
.nav-label { font-size: 10px; letter-spacing: 3px; color: var(--ink-3); padding: 0 12px 12px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px;
  color: var(--ink-2); font-size: 13.5px; text-align: left; transition: .18s; position: relative;
}
.nav-item .nav-ic {
  width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 15px; background: #F0EADD; color: var(--ink-2); flex-shrink: 0;
}
.nav-item small { display: block; font-size: 10px; color: var(--ink-3); margin-top: 2px; letter-spacing: .5px; }
.nav-item:hover { background: rgba(230, 221, 202, .5); color: var(--ink); }
.nav-item.active { background: var(--card); color: var(--red); box-shadow: var(--shadow); font-weight: 600; }
.nav-item.active .nav-ic { background: var(--red); color: #fff; }
.nav-item.active::before { content: ''; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--red); }
.side-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--line); }
.side-foot p { font-size: 10.5px; line-height: 1.8; color: var(--ink-3); margin: 0; }
.side-foot .vert { font-family: var(--serif); font-size: 13px; color: var(--line-2); letter-spacing: 5px; writing-mode: vertical-rl; float: right; margin-left: 8px; }
.main { flex: 1; min-width: 0; padding: 30px 34px 60px; max-width: 1400px; }
.view { display: none; animation: fade .3s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* ---------- 通用 ---------- */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.eyebrow { font-size: 10px; letter-spacing: 3px; color: var(--red); margin: 0 0 7px; text-transform: uppercase; }
.view-head h2 { font-family: var(--serif); font-size: 27px; letter-spacing: 3px; margin: 0; font-weight: 600; }
.view-head p.desc { color: var(--ink-3); font-size: 12.5px; margin: 7px 0 0; letter-spacing: .5px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn {
  padding: 8px 15px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card);
  font-size: 12.5px; color: var(--ink-2); transition: .18s; display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--gold); color: var(--red); background: #fff; }
.btn.primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn.primary:hover { background: #8E3325; color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 11px; font-size: 11.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 20px 22px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.card-title { font-family: var(--serif); font-size: 16px; letter-spacing: 2px; margin: 0; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.card-title::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--red); display: block; }
.card-sub { font-size: 11px; color: var(--ink-3); letter-spacing: .5px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); }
.g-hero { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); }
.divider { height: 1px; background: var(--line); margin: 16px 0; position: relative; }
.divider::after { content: '◆'; position: absolute; left: 50%; top: -8px; transform: translateX(-50%); background: var(--card); padding: 0 8px; color: var(--line-2); font-size: 9px; }
.muted { color: var(--ink-3); }
.tiny { font-size: 11px; }
.serif { font-family: var(--serif); }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 5px;
  font-size: 11px; background: #F2ECDF; color: var(--ink-2); border: 1px solid var(--line);
}
.tag.red { background: var(--red-soft); color: var(--red); border-color: #EED4CA; }
.tag.green { background: var(--green-soft); color: var(--green); border-color: #D3E3DB; }
.tag.gold { background: var(--gold-soft); color: #8C6A2E; border-color: #EADFC4; }
.tag.blue { background: var(--blue-soft); color: var(--blue); border-color: #D6E2E9; }
.empty { text-align: center; padding: 42px 20px; color: var(--ink-3); }
.empty .big { font-family: var(--serif); font-size: 40px; color: var(--line-2); margin-bottom: 12px; }
.empty h4 { font-family: var(--serif); font-size: 16px; color: var(--ink-2); margin: 0 0 8px; letter-spacing: 1px; }
.empty p { font-size: 12px; line-height: 1.9; margin: 0 0 18px; }

/* ---------- 今日 · Hero ---------- */
.hero {
  background: linear-gradient(118deg, #FFFDF8 0%, #FBF6EA 62%, #F5ECDC 100%);
  border: 1px solid var(--line-2); border-radius: 15px; padding: 26px 30px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); display: flex; justify-content: space-between; gap: 24px; align-items: center;
}
.hero::before {
  content: '易'; position: absolute; right: 168px; top: -46px; font-family: var(--serif); font-size: 250px;
  color: rgba(172, 136, 72, .055); line-height: 1; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}
.hero-l { position: relative; z-index: 1; min-width: 0; }
.hero-date { font-family: var(--serif); font-size: 40px; letter-spacing: 3px; margin: 0; line-height: 1.25; }
.hero-date em { font-style: normal; font-size: 19px; color: var(--ink-2); margin-left: 10px; letter-spacing: 1px; }
.hero-lunar { font-family: var(--serif); font-size: 15px; color: var(--red); letter-spacing: 2px; margin: 8px 0 16px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.hero-quote { font-family: var(--serif); font-size: 14px; color: var(--ink-2); letter-spacing: 1px; border-left: 2px solid var(--line-2); padding-left: 12px; line-height: 1.8; max-width: 560px; }
.hero-r { position: relative; z-index: 1; text-align: center; flex-shrink: 0; }
.score-ring { width: 158px; height: 158px; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .ring-bg { fill: none; stroke: #EADFCB; stroke-width: 9; }
.score-ring .ring-fg { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.score-center { position: absolute; inset: 0; display: grid; place-content: center; }
.score-center b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--red); font-weight: 600; }
.score-center span { font-size: 11px; color: var(--ink-3); letter-spacing: 2px; margin-top: 5px; }
.score-level { margin-top: 8px; font-family: var(--serif); font-size: 17px; letter-spacing: 4px; color: var(--ink); }

/* 宜忌 / 运势 */
.yiji-list { display: flex; flex-wrap: wrap; gap: 8px; }
.yiji-item {
  padding: 7px 12px; border-radius: 7px; font-size: 13px; font-family: var(--serif); letter-spacing: 1px;
  background: var(--red-soft); color: #8F3626; border: 1px solid #EFD8CE;
}
.yiji-item.no { background: #F1F0EC; color: #5F5B53; border-color: #E2E0D9; }
.dim-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dim-row:last-child { margin-bottom: 0; }
.dim-name { width: 52px; font-size: 12.5px; color: var(--ink-2); flex-shrink: 0; display: flex; gap: 5px; align-items: center; }
.dim-name i { color: var(--gold); font-style: normal; }
.bar { flex: 1; height: 7px; border-radius: 5px; background: #EFE9DC; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #C9A468, var(--red)); transition: width .7s ease; }
.dim-val { width: 34px; text-align: right; font-family: var(--serif); font-size: 15px; color: var(--red); }
.lucky-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lucky-cell { background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.lucky-cell small { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 5px; }
.lucky-cell b { font-family: var(--serif); font-size: 15px; letter-spacing: 1px; font-weight: 600; }
.color-chip { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.gua-mini { display: flex; gap: 16px; align-items: center; }
.gua-lines { display: flex; flex-direction: column; gap: 5px; }
.gua-lines i { display: block; width: 46px; height: 6px; background: var(--ink); border-radius: 1px; }
.gua-lines i.yin { background: none; position: relative; height: 6px; }
.gua-lines i.yin::before, .gua-lines i.yin::after { content: ''; position: absolute; top: 0; width: 19px; height: 6px; background: var(--ink); border-radius: 1px; }
.gua-lines i.yin::before { left: 0; } .gua-lines i.yin::after { right: 0; }
.gua-mini-txt b { font-family: var(--serif); font-size: 19px; letter-spacing: 2px; display: block; }
.gua-mini-txt small { font-size: 11px; color: var(--ink-3); display: block; margin: 5px 0 10px; line-height: 1.7; }

/* 黄历详情表 */
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.info-cell { background: var(--card); padding: 13px 15px; }
.info-cell small { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: 1px; margin-bottom: 6px; }
.info-cell b { font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.hour-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.hour-cell { border: 1px solid var(--line); border-radius: 8px; padding: 9px 6px; text-align: center; background: var(--paper-2); }
.hour-cell.good { background: var(--green-soft); border-color: #D5E4DC; }
.hour-cell b { font-family: var(--serif); font-size: 13px; display: block; }
.hour-cell small { font-size: 10px; color: var(--ink-3); display: block; margin-top: 3px; }
.hour-cell.good small { color: var(--green); }

/* ---------- 万年历 ---------- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-wd { background: #F1EADB; text-align: center; padding: 11px 0; font-size: 11.5px; color: var(--ink-2); letter-spacing: 1px; }
.cal-wd:first-child, .cal-wd:last-child { color: var(--red); }
.cal-day {
  background: var(--card); min-height: 88px; padding: 9px 10px; text-align: left; position: relative; transition: .15s;
  border: 2px solid transparent;
}
.cal-day:hover { background: #FBF5E9; }
.cal-day.out { opacity: .36; }
.cal-day .d { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.cal-day .l { font-size: 10px; color: var(--ink-3); margin-top: 3px; display: block; }
.cal-day .m { font-size: 9.5px; margin-top: 6px; display: block; letter-spacing: .5px; }
.cal-day .m.ji { color: var(--green); } .cal-day .m.xiong { color: var(--red); } .cal-day .m.ping { color: var(--ink-3); }
.cal-day .term { color: var(--red); font-weight: 600; }
.cal-day.today .d { color: var(--red); }
.cal-day.today::after { content: '今'; position: absolute; top: 8px; right: 8px; font-size: 9px; color: #fff; background: var(--red); border-radius: 3px; padding: 1px 4px; }
.cal-day.sel { border-color: var(--red); background: #FDF3EA; }

/* ---------- 表单 / 八字 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field label { display: block; font-size: 11.5px; color: var(--ink-2); margin-bottom: 6px; letter-spacing: .5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px;
  background: var(--paper-2); outline: none; transition: .18s; font-size: 13px;
}
.field input:focus, .field select:focus { border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(166,62,46,.08); }
.field .hint { font-size: 10px; color: var(--ink-3); margin-top: 5px; }
.form-foot { display: flex; gap: 9px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pillar {
  text-align: center; background: linear-gradient(180deg, #FFFDF8, #F8F2E5);
  border: 1px solid var(--line-2); border-radius: 11px; padding: 16px 8px 13px; position: relative;
}
.pillar small { font-size: 10px; color: var(--ink-3); letter-spacing: 2px; }
.pillar .gz { font-family: var(--serif); font-size: 27px; letter-spacing: 3px; margin: 9px 0 7px; color: var(--ink); }
.pillar .wx { font-size: 11px; }
.pillar.day { border-color: var(--red); box-shadow: 0 0 0 2px rgba(166,62,46,.07); }
.pillar.day::after { content: '日主'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 9px; padding: 2px 8px; border-radius: 4px; letter-spacing: 1px; }
.wx-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.wx-bar .nm { width: 44px; font-family: var(--serif); font-size: 14px; }
.wx-bar .track { flex: 1; height: 9px; background: #F0EADC; border-radius: 5px; overflow: hidden; }
.wx-bar .track span { display: block; height: 100%; border-radius: 5px; transition: width .7s; }
.wx-bar .pct { width: 40px; text-align: right; font-size: 11.5px; color: var(--ink-3); }
.note-box { background: var(--gold-soft); border: 1px solid #EADFC4; border-radius: 9px; padding: 12px 14px; font-size: 11.5px; line-height: 1.8; color: #7A6237; }

/* ---------- 起卦 ---------- */
.tabs { display: inline-flex; gap: 3px; background: #F0E9DA; padding: 4px; border-radius: 9px; }
.tabs button { padding: 7px 15px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); transition: .18s; }
.tabs button.active { background: var(--card); color: var(--red); box-shadow: 0 1px 4px rgba(0,0,0,.06); font-weight: 600; }
.cast-panel { min-height: 150px; }
.coin-row { display: flex; gap: 12px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.coin {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line-2);
  background: radial-gradient(circle at 35% 30%, #FFF9EC, #E9DCC0); display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; color: #8B7444; box-shadow: 0 3px 8px rgba(90,70,40,.1);
}
.coin.yang { border-color: var(--red); color: var(--red); background: radial-gradient(circle at 35% 30%, #FFF6F1, #F0DACE); }
.coin.spin { animation: coinspin .55s ease; }
@keyframes coinspin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(540deg) scale(1.15); } 100% { transform: rotateY(720deg) scale(1); } }
.cast-lines { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cast-lines .ln { width: 130px; height: 12px; position: relative; display: flex; justify-content: space-between; }
.cast-lines .ln i { display: block; height: 12px; width: 100%; background: var(--ink); border-radius: 2px; }
.cast-lines .ln.yin i { width: 44%; background: var(--ink); }
.cast-lines .ln.move i { background: var(--red); box-shadow: 0 0 0 3px rgba(166,62,46,.1); }
.cast-lines .ln .idx { position: absolute; left: -30px; top: -1px; font-size: 10px; color: var(--ink-3); }
.gua-result { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.gua-title { font-family: var(--serif); font-size: 27px; letter-spacing: 3px; margin: 0 0 6px; }
.gua-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.read-p { font-size: 13px; line-height: 2; color: var(--ink-2); margin: 0 0 10px; }
.bian-box { background: var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 0 9px 9px 0; padding: 13px 16px; margin: 14px 0; }
.bian-box b { font-family: var(--serif); letter-spacing: 1px; }
.history-item { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; }
.history-item:last-child { border: 0; }
.history-item b { font-family: var(--serif); font-size: 14px; }

/* ---------- 学习 ---------- */
.lesson-item {
  display: flex; gap: 15px; align-items: center; padding: 15px 17px; border: 1px solid var(--line);
  border-radius: 11px; background: var(--card); margin-bottom: 10px; transition: .18s; text-align: left; width: 100%;
}
.lesson-item:hover { border-color: var(--line-2); transform: translateX(3px); box-shadow: var(--shadow); }
.lesson-no {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 9px; background: #F1E9D8; color: var(--gold);
  display: grid; place-items: center; font-family: var(--serif); font-size: 19px;
}
.lesson-item.done .lesson-no { background: var(--green-soft); color: var(--green); }
.lesson-item h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 15px; letter-spacing: 1px; font-weight: 600; }
.lesson-item p { margin: 0; font-size: 11.5px; color: var(--ink-3); }
.lesson-item .arrow { margin-left: auto; color: var(--line-2); font-size: 18px; }
.progress-track { height: 8px; background: #EDE5D5; border-radius: 5px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 5px; transition: width .5s; }
.point-list { list-style: none; padding: 0; margin: 0; }
.point-list li { font-size: 13px; line-height: 1.9; color: var(--ink-2); padding-left: 20px; position: relative; margin-bottom: 8px; }
.point-list li::before { content: '◈'; position: absolute; left: 0; color: var(--gold); font-size: 11px; top: 2px; }
.quiz-q { font-family: var(--serif); font-size: 15px; margin: 0 0 12px; letter-spacing: .5px; }
.quiz-opt {
  display: block; width: 100%; text-align: left; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: 8px; margin-bottom: 8px; font-size: 12.5px; background: var(--paper-2); transition: .18s;
}
.quiz-opt:hover { border-color: var(--gold); }
.quiz-opt.right { background: var(--green-soft); border-color: #BFD8CC; color: var(--green); }
.quiz-opt.wrong { background: var(--red-soft); border-color: #E9C8BC; color: var(--red); }
.quiz-note { font-size: 11.5px; line-height: 1.8; color: var(--ink-3); margin-top: 8px; }

/* ---------- 知识库 ---------- */
.search-row { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input {
  width: 100%; padding: 10px 14px 10px 36px; border: 1px solid var(--line-2); border-radius: 9px;
  background: var(--card); outline: none; font-size: 13px;
}
.search-box input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(166,62,46,.07); }
.search-box span { position: absolute; left: 12px; top: 9px; color: var(--ink-3); font-size: 15px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 6px 13px; border-radius: 20px; border: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2); background: var(--card); transition: .18s; }
.chip:hover { border-color: var(--gold); }
.chip.active { background: var(--red); color: #fff; border-color: var(--red); }
.know-item { border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 9px; overflow: hidden; }
.know-head { padding: 14px 17px; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.know-head:hover { background: #FCF8EF; }
.know-head b { font-family: var(--serif); font-size: 14.5px; letter-spacing: .6px; }
.know-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.know-head .cat { margin-left: auto; flex-shrink: 0; }
.know-body { padding: 0 17px 16px; border-top: 1px dashed var(--line); display: none; }
.know-item.open .know-body { display: block; }
.know-body p { font-size: 12.5px; line-height: 2; color: var(--ink-2); margin: 14px 0 12px; }
.know-tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 提醒 ---------- */
.switch { width: 46px; height: 26px; border-radius: 20px; background: #DCD5C6; position: relative; transition: .2s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch.on { background: var(--red); }
.switch.on::after { left: 23px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.set-row:last-child { border: 0; }
.set-row h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; }
.set-row p { margin: 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.check-item { display: flex; gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; background: var(--paper-2); }
.check-item input { accent-color: var(--red); width: 15px; height: 15px; }
.time-input { padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper-2); font-size: 15px; font-family: var(--serif); }

/* ---------- 浮层 / 提示 ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #FFF9EE; padding: 11px 20px; border-radius: 9px; font-size: 12.5px;
  opacity: 0; pointer-events: none; transition: .3s; z-index: 100; box-shadow: 0 8px 26px rgba(0,0,0,.18);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notice-bar {
  background: var(--gold-soft); border: 1px solid #EADFC4; border-radius: 9px; padding: 11px 15px;
  font-size: 11.5px; color: #7A6237; line-height: 1.7; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start;
}
.notice-bar b { color: var(--red); white-space: nowrap; }
.foot-note { text-align: center; font-size: 10.5px; color: var(--ink-3); line-height: 1.9; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

/* 账号 / 云端同步弹层 */
.modal { position: fixed; inset: 0; background: rgba(38, 34, 29, .44); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 80; padding: 18px; }
.modal.open { display: flex; }
.modal-card { background: var(--card); border: 1px solid var(--line-2); border-radius: 15px; width: min(452px, 100%); max-height: 88vh; overflow: auto; padding: 26px; box-shadow: 0 24px 70px rgba(40, 30, 18, .24); position: relative; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 28px; height: 28px; border-radius: 7px; color: var(--ink-3); font-size: 18px; line-height: 1; }
.modal-close:hover { background: var(--paper); color: var(--red); }
.modal-eyebrow { font-size: 10px; letter-spacing: 3px; color: var(--red); margin: 0 0 7px; }
.modal-card h3 { font-family: var(--serif); font-size: 21px; letter-spacing: 2px; margin: 0 0 8px; font-weight: 600; }
.modal-card .lead { font-size: 12px; color: var(--ink-3); line-height: 1.8; margin: 0 0 18px; }
.auth-tabs { display: flex; gap: 4px; background: #F0E9DA; padding: 4px; border-radius: 9px; margin-bottom: 16px; }
.auth-tabs button { flex: 1; padding: 7px 6px; border-radius: 7px; font-size: 12px; color: var(--ink-2); }
.auth-tabs button.active { background: var(--card); color: var(--red); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.auth-row { display: flex; gap: 8px; }
.auth-row .field { flex: 1; min-width: 0; }
.auth-error { font-size: 11.5px; color: var(--red); line-height: 1.7; min-height: 18px; margin: 8px 0; }
.auth-note { font-size: 11px; color: var(--ink-3); line-height: 1.8; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sync-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.sync-line:last-of-type { border-bottom: 0; }
.sync-line b { font-weight: 600; }
.wechat-btn { width: 100%; padding: 11px; border-radius: 9px; background: #3E6A5E; color: #fff; font-size: 13px; letter-spacing: 1px; }
.wechat-btn:hover { background: #34584E; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .g-main, .g-hero { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .main { padding: 26px 24px 50px; }
}
@media (max-width: 900px) {
  .topbar { padding: 0 16px; height: 66px; gap: 12px; }
  .brand-txt p, .top-date span { display: none; }
  .sidebar {
    position: static; width: 100%; height: auto; padding: 10px 12px; border-right: 0;
    border-bottom: 1px solid var(--line); flex-direction: row; overflow-x: auto;
  }
  .nav-label, .side-foot { display: none; }
  .nav { flex-direction: row; gap: 4px; }
  .nav-item { white-space: nowrap; padding: 8px 11px; }
  .nav-item small, .nav-item.active::before { display: none; }
  .layout { flex-direction: column; }
  .main { width: 100%; padding: 22px 16px 46px; }
  .g-2, .g-3, .form-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .hero-r { align-self: center; }
  .hero::before { right: -30px; }
  .gua-result { grid-template-columns: 1fr; }
  .hour-grid { grid-template-columns: repeat(4, 1fr); }
  .cal-day { min-height: 68px; padding: 6px; }
  .cal-day .d { font-size: 15px; } .cal-day .l { font-size: 9px; } .cal-day .m { display: none; }
}
@media (max-width: 560px) {
  .top-meta { gap: 8px; } .top-date { display: none; }
  .hero-date { font-size: 30px; } .hero-date em { font-size: 15px; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .hour-grid { grid-template-columns: repeat(3, 1fr); }
  .check-grid { grid-template-columns: 1fr; }
  .view-head h2 { font-size: 22px; }
}

/* ---------- 白话化：术语标注 / 卡片小结 ---------- */
.card-hint { display: flex; gap: 9px; align-items: flex-start; background: var(--green-soft); border: 1px solid #D8E5DE; border-radius: 8px; padding: 9px 12px; margin: 2px 0 16px; font-size: 11.5px; line-height: 1.75; color: #3D5B50; }
.card-hint b { flex-shrink: 0; background: var(--green); color: #fff; border-radius: 5px; padding: 2px 7px; font-size: 10px; letter-spacing: 1px; font-weight: 600; }
.term { border-bottom: 1px dashed var(--red-2); cursor: pointer; padding-bottom: 1px; }
.term:hover { color: var(--red); background: var(--red-soft); border-bottom-color: var(--red); }
.term-modal-card { width: min(480px, 100%); }
.term-short { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: var(--red); background: var(--red-soft); border-radius: 9px; padding: 13px 15px; margin: 4px 0 16px; }
.term-detail { font-size: 13px; line-height: 2; color: var(--ink-2); margin: 0; }
.term-rel { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 11.5px; color: var(--ink-3); }
.notice-bar.ok { background: var(--green-soft); border-color: #D8E5DE; color: #3D5B50; }
.yiji-item { display: inline-flex; flex-direction: column; gap: 2px; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0; line-height: 1.4; }
.yiji-item small { font-size: 10px; opacity: .7; font-family: var(--serif); letter-spacing: .5px; }

/* ---------- 给你的建议 ---------- */
.personal-card { border: 1px solid #E7D6B8; background: linear-gradient(180deg, #FFFBF2, #FFFDF8); }
.p-headline { font-family: var(--serif); font-size: 16px; line-height: 1.85; color: var(--ink); letter-spacing: .5px; }
.p-summary { font-size: 12.5px; color: var(--red); line-height: 1.9; margin-top: 6px; }
.p-label { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--ink); margin-bottom: 10px; border-left: 3px solid var(--red); padding-left: 9px; }
.p-label small { font-weight: 400; color: var(--ink-3); font-size: 10.5px; letter-spacing: 0; margin-left: 5px; }
.p-tips { list-style: none; padding: 0; margin: 0; }
.p-tips li { position: relative; padding: 7px 0 7px 20px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.p-tips li:last-child { border-bottom: 0; }
.p-tips li::before { content: '·'; position: absolute; left: 6px; color: var(--red); font-weight: 700; }
.p-focus { margin-bottom: 10px; }
.p-focus b { font-size: 12.5px; color: var(--red); }
.p-focus p { margin: 4px 0 0; font-size: 12px; line-height: 1.85; color: var(--ink-2); }
.p-caution { margin-top: 14px; background: var(--gold-soft); border: 1px solid #EADFC4; border-radius: 9px; padding: 11px 14px; font-size: 11.5px; color: #7A6237; line-height: 1.8; }
.p-caution b { color: var(--red); }
.p-caution p { margin: 4px 0 0; }
.why-box { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.why-box summary { cursor: pointer; font-size: 11.5px; color: var(--red); letter-spacing: .5px; }
.why-box p { font-size: 11.5px; line-height: 1.85; color: var(--ink-2); margin: 8px 0 0; }
.gua-ci { font-size: 11px; color: var(--ink-3); line-height: 1.8; margin: 6px 0; font-family: var(--serif); }

/* ---------- 知识库：术语表 / 典籍书库 ---------- */
.know-tabs { display: flex; gap: 5px; background: #F0E9DA; padding: 5px; border-radius: 10px; margin-bottom: 16px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.know-tabs button { padding: 8px 18px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); }
.know-tabs button.active { background: var(--card); color: var(--red); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.term-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 9px; }
.term-card { text-align: left; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2); padding: 12px 13px; transition: .18s; }
.term-card:hover { border-color: var(--gold); background: var(--card); transform: translateY(-1px); }
.term-card b { display: block; font-family: var(--serif); font-size: 14px; letter-spacing: .5px; }
.term-card small { display: block; font-size: 10px; color: var(--gold); margin: 3px 0 7px; }
.term-card p { margin: 0; font-size: 11.5px; color: var(--ink-2); line-height: 1.75; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.book-card { text-align: left; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2); padding: 13px; transition: .18s; }
.book-card:hover { border-color: var(--gold); background: var(--card); }
.book-card.active { border-color: var(--red); background: var(--red-soft); }
.book-card b { display: block; font-family: var(--serif); font-size: 14px; letter-spacing: .5px; }
.book-card small { display: block; font-size: 10px; color: var(--gold); margin: 4px 0 7px; }
.book-card p { margin: 0; font-size: 11px; color: var(--ink-3); line-height: 1.7; }
.book-about { font-size: 12.5px; line-height: 1.95; color: var(--ink-2); }
.book-lead { background: var(--green-soft); border: 1px solid #D8E5DE; color: #3D5B50; border-radius: 8px; padding: 10px 13px; font-size: 11.5px; line-height: 1.85; margin-top: 12px; }
.book-lead b { color: var(--green); }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; margin: 12px 0; max-height: 260px; overflow: auto; padding: 2px; }
.chapter-cell { border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px; font-size: 11.5px; color: var(--ink-2); background: var(--card); text-align: left; }
.chapter-cell:hover { border-color: var(--gold); }
.chapter-cell.active { background: var(--red); color: #fff; border-color: var(--red); }
.chapter-nav { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.chapter-nav select { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--card); font-size: 12px; max-width: 230px; }
.classic-hits { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--ink-3); margin: 8px 0; }
.classic-hits b { color: var(--red); }
.classic-paras { margin-top: 16px; }
.classic-paras p { font-size: 15.5px; line-height: 2.15; letter-spacing: .6px; margin: 0 0 13px; text-align: justify; }
.classic-read { background: linear-gradient(180deg, #FFFDF7, #FFFDF8); }
.extra-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.extra-card { border: 1px solid var(--line); border-radius: 9px; padding: 12px 13px; background: var(--paper-2); }
.extra-card b { font-family: var(--serif); font-size: 14px; }
.extra-card small { display: block; font-size: 10px; color: var(--gold); margin: 3px 0 8px; }
.extra-card p { font-size: 11.5px; line-height: 1.8; color: var(--ink-2); margin: 0 0 9px; }
.jing-box { margin: 14px 0; border: 1px dashed var(--line-2); border-radius: 9px; padding: 10px 13px; background: var(--paper-2); }
.jing-box summary { cursor: pointer; font-size: 12px; color: var(--red); }
.jing-ci { font-size: 15px; line-height: 2; margin: 12px 0 0; }
.jing-yao { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.jing-yao div { font-family: var(--serif); font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 档案新增字段 ---------- */
.focus-field { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.focus-label { font-size: 11.5px; color: var(--ink-2); letter-spacing: .5px; margin-bottom: 9px; }
.focus-label span { color: var(--ink-3); font-size: 10px; margin-left: 6px; }

/* ---------- 参访名录 ---------- */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rule-card { border: 1px solid var(--line); border-radius: 9px; background: var(--paper-2); padding: 12px 14px; }
.rule-card b { font-family: var(--serif); font-size: 13.5px; color: var(--red); letter-spacing: .5px; }
.rule-card ul { margin: 8px 0 0; padding-left: 17px; }
.rule-card li { font-size: 11.5px; line-height: 1.85; color: var(--ink-2); margin-bottom: 5px; }
.filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 2px; }
.filter-row .field label { font-size: 11px; }
.filter-row select { width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); font-size: 12.5px; }
.visit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 11px; }
.visit-card { border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; transition: .18s; }
.visit-card.open { border-color: var(--gold); box-shadow: var(--shadow); }
.visit-head { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 13px 14px 8px; text-align: left; }
.visit-head b { font-family: var(--serif); font-size: 15px; letter-spacing: .5px; }
.visit-loc { font-size: 10.5px; color: var(--ink-3); margin-top: 5px; }
.visit-loc .tag { margin-left: 5px; font-size: 9.5px; padding: 1px 6px; }
.visit-head .arrow { color: var(--gold); font-size: 18px; line-height: 1; }
.visit-wishes { display: flex; gap: 5px; flex-wrap: wrap; padding: 0 14px; }
.visit-wishes .tag { font-size: 10px; padding: 2px 7px; }
.visit-about { font-size: 11.5px; line-height: 1.8; color: var(--ink-2); margin: 9px 14px 13px; }
.visit-detail { border-top: 1px dashed var(--line); padding: 12px 14px 15px; background: var(--paper-2); }
.visit-detail > div { margin-bottom: 11px; }
.visit-detail b { font-size: 11.5px; color: var(--red); letter-spacing: .5px; }
.visit-detail p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.85; color: var(--ink-2); }

/* 定位信息（精简） */
.site-loc { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; }
.site-loc > b { font-size: 11px; color: var(--red); }
.site-loc > span { font-size: 11.5px; color: var(--ink); }
.site-loc code { font-size: 10px; background: var(--gold-soft); padding: 1px 5px; border-radius: 4px; color: var(--ink-2); }
.site-loc .loc-map, .site-loc .loc-official { font-size: 10.5px; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); white-space: nowrap; }
.site-loc .loc-official { color: var(--green); border-color: var(--green-soft); }
.site-loc .no-coord { font-size: 10px; color: var(--ink-3); }
.site-loc .coord-note { flex-basis: 100%; font-size: 9.5px; color: var(--ink-3); }
.site-brief { margin: 8px 0 10px; }
.site-brief > b { display: block; font-size: 11px; color: var(--ink); margin-bottom: 3px; }
.site-brief p { margin: 0; font-size: 11.5px; line-height: 1.8; color: var(--ink-2); }

/* 权威详情：详细介绍 / 特色 / 传说 / 来历 */
.site-authoritative { background: var(--paper); border: 1px solid var(--gold-soft); border-left: 3px solid var(--gold); border-radius: 8px; padding: 11px 12px; margin-bottom: 12px; }
.site-authoritative .auth-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; flex-wrap: wrap; }
.site-authoritative .auth-head b { font-size: 11px; color: var(--ink); letter-spacing: .5px; }
.auth-badge { display: inline-block; font-size: 9px; padding: 1px 6px; border-radius: 4px; background: var(--gold-soft); color: var(--ink); }
.auth-badge.is-osm { background: var(--green-soft); color: var(--green); }
.auth-badge.is-sara { background: #e8f2ea; color: #1e6b3a; }
.auth-badge.is-web { background: #eef2f7; color: #4a5b6e; }
.auth-badge.is-gaz { background: #f3ede0; color: #8a6d3b; }
.auth-sec { margin-bottom: 9px; }
.auth-sec:last-of-type { margin-bottom: 6px; }
.auth-sec > b { display: block; font-size: 11px; color: var(--red); margin-bottom: 3px; }
.auth-sec p { margin: 0; font-size: 11.5px; line-height: 1.85; color: var(--ink-2); }
.auth-sec ul { margin: 3px 0 0; padding-left: 16px; }
.auth-sec li { font-size: 11px; line-height: 1.7; color: var(--ink-2); margin-bottom: 2px; }
.auth-source { display: inline-block; font-size: 10px; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); margin-top: 2px; }
.auth-source.is-gov { color: var(--green); border-color: var(--green-soft); }
.sara-block { margin: 8px 0; padding: 8px 10px; background: #f6faf7; border: 1px solid #d9e9de; border-radius: 6px; font-size: 11px; color: var(--ink); line-height: 1.7; }
.sara-block > b { display: block; font-size: 11px; color: #1e6b3a; margin-bottom: 3px; }
.sara-block .auth-source { margin-top: 5px; }
.auth-more { margin-top: 8px; }
.auth-more > summary { font-size: 10.5px; color: var(--gold); cursor: pointer; list-style: none; padding: 4px 0; }
.auth-more > summary::before { content: '▸ '; }
.auth-more[open] > summary::before { content: '▾ '; }
.auth-more[open] > summary { margin-bottom: 6px; }
.site-noauth { background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.site-noauth b { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.site-noauth p { margin: 0; font-size: 11px; line-height: 1.7; color: var(--ink-3); }
.site-noauth small { display: block; margin-top: 5px; font-size: 9.5px; color: var(--ink-3); opacity: .8; }

@media (max-width: 900px) {
  .filter-row { grid-template-columns: 1fr; }
  .term-grid, .book-grid, .visit-grid, .rules-grid, .extra-grid { grid-template-columns: 1fr; }
  .classic-paras p { font-size: 14.5px; }
  .know-tabs { width: 100%; }
  .know-tabs button { flex: 1; padding: 8px 6px; }
}

/* ---------- 多成员档案 ---------- */
.member-bar {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.member-bar-label { font-size: 11.5px; color: var(--ink-3); letter-spacing: 1px; white-space: nowrap; }
.member-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.member-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2);
  font-size: 12px; color: var(--ink-2); transition: .18s;
}
.member-chip:hover { border-color: var(--gold); background: #fff; }
.member-chip.active { border-color: var(--red); background: var(--red-soft); color: var(--red); box-shadow: 0 0 0 2px rgba(166,62,46,.06); }
.member-chip small { font-size: 10px; color: var(--ink-3); }
.member-chip.active small { color: var(--red-2); }
.member-chip.guest { padding: 6px 13px; }
.member-chip.add { padding: 6px 11px; font-size: 15px; color: var(--gold); border-style: dashed; }
.mc-av {
  width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0;
  display: inline-grid; place-items: center; background: #EDE4D0; color: var(--gold);
  font-family: var(--serif); font-size: 13px; font-weight: 600;
}
.member-chip.active .mc-av { background: var(--red); color: #fff; }
.mc-av.big { width: 36px; height: 36px; font-size: 17px; }
.member-list { display: flex; flex-direction: column; gap: 8px; }
.member-row {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2);
}
.member-row.current { border-color: var(--red); background: var(--red-soft); }
.member-meta { min-width: 0; flex: 1; }
.member-meta b { font-family: var(--serif); font-size: 14.5px; letter-spacing: .5px; display: block; }
.member-meta small { font-size: 10.5px; color: var(--ink-3); display: block; margin-top: 3px; }
.member-ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.btn.danger { color: var(--red); border-color: #E8C9BE; }
.btn.danger:hover { background: var(--red-soft); }

/* ---------- 相处分析 ---------- */
.bond-picker { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.bond-picker .field { min-width: 0; }
.bond-swap { height: 37px; width: 40px; justify-content: center; padding: 0; font-size: 17px; color: var(--gold); }
.bond-hero { display: flex; align-items: center; gap: 28px; background: linear-gradient(118deg, #FFFDF8, #FBF6EA 62%, #F5ECDC); border-color: var(--line-2); }
.bond-score { width: 150px; height: 150px; position: relative; flex-shrink: 0; }
.bond-score svg { transform: rotate(-90deg); }
.bond-score .ring-bg { fill: none; stroke: #EADFCB; stroke-width: 9; }
.bond-score .ring-fg { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.bond-score .score-center b { font-size: 38px; }
.bond-title { font-family: var(--serif); font-size: 21px; letter-spacing: 2px; margin: 0 0 7px; font-weight: 600; }
.bond-sub { font-size: 12.5px; color: var(--red); line-height: 1.8; margin: 0 0 11px; }
.bond-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.bond-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.bond-row:last-of-type { border-bottom: 0; }
.bond-k { color: var(--ink-3); }
.bond-row b { font-family: var(--serif); font-size: 14px; }
.bond-fav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.bond-fav > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.bond-fav small { display: block; font-size: 10.5px; color: var(--ink-3); margin-bottom: 7px; }
.bond-fav b { display: flex; gap: 5px; flex-wrap: wrap; }
.bond-daily { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bd-col { border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); padding: 14px; }
.bd-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.bd-head b { font-family: var(--serif); font-size: 14px; }
.bd-head em { margin-left: auto; font-style: normal; font-family: var(--serif); font-size: 19px; color: var(--red); }
.bd-col p { font-size: 12px; line-height: 1.85; color: var(--ink-2); margin: 11px 0 6px; }
.p-tips.good li::before { content: '✓'; color: var(--green); }
.p-tips.caution li::before { content: '!'; color: var(--red); }

@media (max-width: 900px) {
  .member-bar { align-items: flex-start; flex-direction: column; gap: 9px; }
  .bond-picker { grid-template-columns: 1fr; }
  .bond-swap { width: 100%; }
  .bond-hero { flex-direction: column; text-align: center; padding: 22px; }
  .bond-tags { justify-content: center; }
  .bond-daily, .bond-fav { grid-template-columns: 1fr; }
  .member-row { flex-wrap: wrap; }
  .member-ops { width: 100%; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .member-chip small { display: none; }
}

/* ---------- 分类型详细参拜指南 ---------- */
.guide-panel { margin-top: 14px; }
.guide-panel-head { display: flex; align-items: center; gap: 13px; padding: 13px 15px; background: linear-gradient(118deg, #FFFDF8, #FBF6EA 62%, #F5ECDC); border: 1px solid var(--line-2); border-radius: 10px; }
.guide-badge { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-size: 20px; box-shadow: 0 3px 10px rgba(166,62,46,.22); }
.guide-panel-head h4 { font-family: var(--serif); font-size: 15.5px; letter-spacing: 1px; margin: 0 0 4px; }
.guide-panel-head p { margin: 0; font-size: 11.5px; line-height: 1.75; color: var(--ink-2); }
.guide-cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 13px; }
.guide-block { margin-bottom: 13px; }
.guide-block h5 { font-size: 11.5px; color: var(--red); letter-spacing: .6px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.guide-block p { font-size: 11.5px; line-height: 1.85; color: var(--ink-2); margin: 0; }
.guide-steps { list-style: none; padding: 0; margin: 0; counter-reset: gs; }
.guide-steps li { position: relative; padding: 0 0 11px 30px; font-size: 11.5px; line-height: 1.7; color: var(--ink-2); counter-increment: gs; }
.guide-steps li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: #8C6A2E; font-family: var(--serif); font-size: 11px; font-weight: 600; }
.guide-steps li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 21px; bottom: 3px; width: 1px; background: var(--line-2); }
.guide-steps li b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.guide-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-pills span { font-size: 10.5px; padding: 4px 10px; border-radius: 20px; background: var(--green-soft); color: var(--green); border: 1px solid #D3E3DB; }
.guide-pills.bad span { background: var(--red-soft); color: var(--red); border-color: #EED4CA; }
.visit-guide-quick { background: var(--gold-soft); border: 1px solid #EADFC4; border-radius: 9px; padding: 11px 13px; }
.visit-guide-quick .guide-lead { font-size: 11px; color: var(--ink-2); }
.guide-mini-steps { margin: 8px 0 10px; padding-left: 18px; }
.guide-mini-steps li { font-size: 11px; line-height: 1.7; color: var(--ink-2); margin-bottom: 4px; }
.guide-mini-steps li b { color: var(--red); }

@media (max-width: 900px) {
  .guide-cols { grid-template-columns: 1fr; }
}
