/* ===== 申论备考平台专用样式（浅色简约版） ===== */

/* ===== 2026 editorial visual system ===== */
:root {
  --editorial-ink: #172033;
  --editorial-navy: #172033;
  --editorial-navy-2: #202d49;
  --editorial-paper: #f3f0e9;
  --editorial-warm: #fffdf8;
  --editorial-line: rgba(23,32,51,.12);
  --editorial-gold: #c39b61;
  --editorial-blue: #2c5ce6;
  --editorial-muted: #7f8999;
}

body { background: var(--editorial-paper); color: var(--editorial-ink); }
.main-content { background: var(--editorial-paper); }
.content-wrapper { max-width: 1480px; margin: 0 auto; padding: 34px 42px 72px; }
.top-bar { background: rgba(243,240,233,.84); border-bottom-color: rgba(23,32,51,.09); }
.top-bar .breadcrumb .current { color: var(--editorial-ink); }
.top-bar .breadcrumb a { color: #7a8495; }
.top-bar .breadcrumb a:hover { color: var(--editorial-blue); }
.login-btn { background: var(--editorial-ink); border-color: var(--editorial-ink); color: #fff; }
.login-btn:hover { background: #2d3d60; color: #fff; box-shadow: 0 8px 24px rgba(23,32,51,.25); }
.theme-btn,.fontsize-btn,.user-btn { background: rgba(255,253,248,.78); border-color: var(--editorial-line); }
.sidebar { background: var(--editorial-navy); }
.sidebar-header { padding: 28px 22px 22px; }
.sidebar-header h2 { font-size: 17px; letter-spacing: .8px; }
.sidebar-header .subtitle { letter-spacing: .2px; }
.sidebar-nav { padding: 18px 0; }
.nav-section { margin-bottom: 14px; }
.nav-section-title { letter-spacing: 1.8px; padding: 8px 12px 6px; }
.nav-item { border-radius: 8px; padding: 11px 12px; letter-spacing: .2px; }
.nav-item.active::before { left: -12px; width: 2px; }
.nav-badge.hot { background: rgba(195,155,97,.16) !important; color: #e7c98f !important; }

/* 首页：杂志式 / 电影感工作台 */
.editorial-home { max-width: 1320px; margin: 0 auto; }
.editorial-hero { min-height: 500px; position: relative; overflow: hidden; display: flex; align-items: stretch; justify-content: space-between; padding: 58px 58px 52px; border-radius: 2px; color: #fff; background: #24314a; isolation: isolate; }
.editorial-hero-bg,.editorial-hero-overlay { position: absolute; inset: 0; pointer-events: none; }
.editorial-hero-bg { z-index: -2; background: url('/static/images/背景图.webp') center 44% / cover no-repeat; transform: scale(1.04); animation: editorialDrift 18s ease-in-out infinite alternate; }
.editorial-hero-overlay { z-index: -1; background: linear-gradient(90deg, rgba(10,18,33,.86) 0%, rgba(15,24,40,.58) 47%, rgba(15,24,40,.1) 100%), linear-gradient(0deg, rgba(9,15,28,.56), transparent 42%); }
.editorial-hero-copy { max-width: 660px; align-self: center; }
.editorial-kicker { display: flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: 2.5px; color: rgba(255,255,255,.68); text-transform: uppercase; }
.editorial-kicker span { width: 26px; height: 1px; background: var(--editorial-gold); }
.editorial-hero h1 { margin: 24px 0 18px; font-size: clamp(38px, 5.1vw, 72px); line-height: 1.12; letter-spacing: -.045em; font-weight: 500; text-shadow: 0 4px 26px rgba(0,0,0,.2); }
.editorial-hero h1 em { color: #ead29e; font-style: normal; }
.editorial-hero-copy > p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; letter-spacing: .08em; }
.editorial-hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.editorial-primary { display: inline-flex; align-items: center; gap: 20px; padding: 13px 18px 13px 22px; border-radius: 1px; background: #e6c98d; color: #1c273d; text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .25s, background .25s; }
.editorial-primary span { font-size: 18px; line-height: 12px; }
.editorial-primary:hover { transform: translateY(-2px); background: #f2dba6; }
.editorial-text-link { color: rgba(255,255,255,.8); font-size: 12px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; }
.editorial-text-link:hover { color: #fff; border-bottom-color: #fff; }
.editorial-countdown { align-self: center; width: 200px; padding-left: 28px; border-left: 1px solid rgba(255,255,255,.35); }
.countdown-year { font-size: 18px; letter-spacing: .16em; color: #fff; }
.countdown-date { margin: 3px 0 22px; font-size: 32px; letter-spacing: .1em; color: #ead29e; font-variant-numeric: tabular-nums; }
.countdown-date b { font-weight: 300; color: rgba(255,255,255,.5); }
.countdown-caption { color: rgba(255,255,255,.65); font-size: 11px; letter-spacing: .2em; }
.countdown-days { margin-top: 7px; font-size: 58px; line-height: 1; font-weight: 300; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.countdown-days small { margin-left: 7px; font-size: 14px; letter-spacing: .1em; }
.countdown-rule { width: 100%; height: 1px; margin: 22px 0 12px; background: rgba(255,255,255,.2); }
.countdown-micro { color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.7; }

.editorial-data-strip { display: grid; grid-template-columns: repeat(4,1fr); border-bottom: 1px solid var(--editorial-line); margin: 0 0 54px; }
.editorial-data-item { min-height: 146px; padding: 24px 22px 20px; border-right: 1px solid var(--editorial-line); color: inherit; text-decoration: none; transition: background .25s; }
.editorial-data-item:first-child { border-left: 1px solid var(--editorial-line); }
.editorial-data-item:hover,.editorial-data-item.data-link:hover { background: rgba(255,253,248,.75); }
.data-label { display: block; color: var(--editorial-muted); font-size: 11px; letter-spacing: .08em; }
.editorial-data-item strong { display: inline-block; margin-top: 12px; font-size: 42px; line-height: .9; font-weight: 400; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.editorial-data-item small { margin-left: 8px; color: var(--editorial-muted); font-size: 10px; letter-spacing: .1em; }
.data-note { margin-top: 13px; color: #9b8c71; font-size: 11px; }
.editorial-data-item.featured strong { color: var(--editorial-blue); }

.mission-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(280px,.72fr); gap: 42px; margin-bottom: 78px; }
.editorial-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 20px; }
.editorial-section-head > div > span { color: var(--editorial-gold); font-size: 10px; letter-spacing: .16em; }
.editorial-section-head h2 { margin: 8px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.editorial-section-head > a { color: var(--editorial-blue); font-size: 11px; text-decoration: none; white-space: nowrap; }
.mission-list { border-top: 1px solid var(--editorial-line); }
.mission-row { display: flex; align-items: center; gap: 17px; min-height: 78px; border-bottom: 1px solid var(--editorial-line); color: inherit; text-decoration: none; transition: padding .25s, background .25s; }
.mission-row:hover { padding-left: 10px; background: rgba(255,253,248,.7); }
.mission-dot { width: 10px; height: 10px; border: 1px solid #9da7b7; border-radius: 50%; flex: 0 0 auto; }
.mission-dot.accent { border-color: var(--editorial-gold); box-shadow: inset 0 0 0 3px var(--editorial-paper); background: var(--editorial-gold); }
.mission-copy { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.mission-copy b { font-size: 14px; font-weight: 500; }
.mission-copy small { color: var(--editorial-muted); font-size: 11px; }
.mission-meta { color: #9b8c71; font-size: 11px; }
.mission-meta i { margin-left: 7px; color: var(--editorial-blue); font-size: 15px; font-style: normal; }
.editorial-quote-panel { position: relative; min-height: 326px; overflow: hidden; background: var(--editorial-navy); color: #fff; }
.quote-image,.quote-overlay { position: absolute; inset: 0; }
.quote-image { background: url('/static/images/login-bg.webp') center / cover; opacity: .5; filter: saturate(.65); }
.quote-overlay { background: linear-gradient(140deg, rgba(14,24,43,.9), rgba(22,35,59,.38)); }
.quote-content { position: relative; padding: 30px; z-index: 1; }
.quote-content > span { color: #d6bd87; font-size: 10px; letter-spacing: .16em; }
.quote-content p { margin: 44px 0 30px; font-size: 25px; line-height: 1.5; letter-spacing: -.04em; }
.quote-content p em { color: #ecd39d; font-style: normal; }
.quote-content a { color: rgba(255,255,255,.75); font-size: 11px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 5px; }

.learning-editorial { margin-bottom: 76px; }
.learning-feature-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.learning-feature { min-height: 235px; position: relative; display: flex; overflow: hidden; color: inherit; text-decoration: none; background: var(--editorial-warm); border-top: 1px solid var(--editorial-line); border-bottom: 1px solid var(--editorial-line); }
.learning-feature .feature-copy { position: relative; z-index: 1; padding: 28px; }
.learning-feature .feature-copy > span { color: var(--editorial-gold); font-size: 11px; letter-spacing: .12em; }
.learning-feature h3 { margin: 24px 0 26px; font-size: 24px; line-height: 1.38; font-weight: 500; letter-spacing: -.05em; }
.learning-feature b { color: var(--editorial-blue); font-size: 11px; font-weight: 500; }
.feature-image { flex: 1; min-width: 40%; background-position: center; background-size: cover; transition: transform .5s; }
.learning-feature:hover .feature-image { transform: scale(1.04); }
.feature-mountain { order: 2; background-image: linear-gradient(135deg, rgba(38,55,83,.1), rgba(198,154,89,.15)), url('/static/images/背景图.webp'); }
.feature-paper { background-image: linear-gradient(135deg, rgba(248,238,215,.25), rgba(32,45,73,.12)), url('/static/images/login-bg.webp'); }
.secondary-feature { background: #ece8df; }
.learning-links { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 1px; border-top: 1px solid var(--editorial-line); border-bottom: 1px solid var(--editorial-line); }
.learning-links a { position: relative; display: block; padding: 18px 20px; border-right: 1px solid var(--editorial-line); color: inherit; text-decoration: none; }
.learning-links a:last-child { border-right: 0; }.learning-links a:hover { background: var(--editorial-warm); }.learning-links span,.learning-links small { display: block; }.learning-links span { font-size: 14px; }.learning-links small { margin-top: 6px; color: var(--editorial-muted); font-size: 10px; }.learning-links b { position: absolute; top: 19px; right: 20px; color: var(--editorial-blue); font-weight: 400; }

.checkin-editorial,.recent-editorial { margin-bottom: 76px; }.editorial-checkin { padding: 9px 16px; font-size: 11px; border-radius: 0; box-shadow: none; background: var(--editorial-ink); }.editorial-checkin:hover { box-shadow: none; }.editorial-checkin.done { background: transparent; color: var(--editorial-muted); border: 1px solid var(--editorial-line); }.checkin-editorial-grid { display: grid; grid-template-columns: .95fr 1.5fr; min-height: 180px; border-top: 1px solid var(--editorial-line); border-bottom: 1px solid var(--editorial-line); }.checkin-mantra { display: flex; align-items: center; padding: 28px; background: var(--editorial-navy); color: #fff; font-size: 22px; line-height: 1.6; letter-spacing: -.03em; }.checkin-mantra em { color: #e6c98d; font-style: normal; }.checkin-calendar-wrap { padding: 28px 32px; }.calendar-week { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; max-width: 500px; margin: 0 auto 7px; color: var(--editorial-muted); font-size: 10px; }.calendar-week span { text-align: center; }.checkin-calendar { display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; max-width: 500px; margin: 0 auto; }.checkin-day { border-radius: 2px; aspect-ratio: 1.45; background: rgba(255,253,248,.72); border: 1px solid var(--editorial-line); color: var(--editorial-muted); font-size: 11px; }.checkin-day.done { color: var(--editorial-blue); background: #e9eefc; border-color: #c9d5fb; }.checkin-day.today { color: var(--editorial-ink); border-color: var(--editorial-gold); box-shadow: inset 0 0 0 1px var(--editorial-gold); }
.recent-list { border-top: 1px solid var(--editorial-line); }.recent-row { display: flex; align-items: center; min-height: 68px; gap: 18px; border-bottom: 1px solid var(--editorial-line); color: inherit; text-decoration: none; }.recent-row:hover { padding-left: 10px; background: var(--editorial-warm); }.recent-index { color: var(--editorial-gold); font-size: 11px; }.recent-title { display: flex; flex: 1; flex-direction: column; gap: 5px; font-size: 13px; }.recent-title small { color: var(--editorial-muted); font-size: 10px; }.recent-score { font-size: 22px; font-variant-numeric: tabular-nums; }.recent-score small { margin-left: 4px; color: var(--editorial-muted); font-size: 10px; }

@keyframes editorialDrift { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.08) translate3d(-1%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 1000px) { .content-wrapper { padding: 24px; }.editorial-hero { min-height: 460px; padding: 42px; }.editorial-countdown { width: 165px; }.editorial-data-item { padding-left: 16px; padding-right: 16px; }.mission-layout { gap: 24px; }.learning-feature h3 { font-size: 20px; } }
@media (max-width: 720px) { .content-wrapper { padding: 16px; }.editorial-hero { min-height: 560px; padding: 30px 24px; display: block; }.editorial-hero h1 { font-size: 43px; }.editorial-countdown { position: absolute; right: 24px; bottom: 28px; width: 180px; padding: 0 0 0 18px; border-left: 1px solid rgba(255,255,255,.32); }.countdown-date { margin-bottom: 10px; font-size: 25px; }.countdown-days { font-size: 42px; }.countdown-rule { margin: 12px 0 8px; }.editorial-data-strip { grid-template-columns: repeat(2,1fr); margin-bottom: 44px; }.editorial-data-item:nth-child(2n) { border-right: 0; }.editorial-data-item:nth-child(n+3) { border-top: 1px solid var(--editorial-line); }.mission-layout,.learning-feature-row,.checkin-editorial-grid { grid-template-columns: 1fr; }.editorial-quote-panel { min-height: 300px; }.learning-feature { min-height: 220px; }.learning-links { grid-template-columns: repeat(2,1fr); }.learning-links a:nth-child(2) { border-right: 0; }.learning-links a:nth-child(n+3) { border-top: 1px solid var(--editorial-line); }.editorial-section-head { align-items: flex-start; flex-direction: column; }.editorial-section-head > a,.editorial-checkin { align-self: flex-start; }.checkin-mantra { min-height: 150px; font-size: 20px; }.checkin-calendar-wrap { padding: 22px 12px; } }
@media (max-width: 420px) { .editorial-hero { min-height: 590px; }.editorial-hero h1 { font-size: 37px; }.editorial-hero-actions { gap: 14px; flex-wrap: wrap; }.editorial-countdown { left: 24px; right: auto; bottom: 26px; }.editorial-data-item strong { font-size: 34px; }.mission-copy b { font-size: 13px; }.mission-meta { font-size: 10px; }.learning-feature { display: block; }.learning-feature .feature-image { height: 115px; }.secondary-feature .feature-image { order: 2; }.feature-copy { padding: 22px !important; }.learning-feature h3 { margin: 16px 0 18px; font-size: 21px; } }

/* ===== 首页参考稿：完全对齐第四张参考图 ===== */
.welcome-page { position: fixed; inset: 0; overflow: hidden; background: #d9d9d6; }
.welcome-page-bg { position: absolute; inset: 0; background: url('/static/images/背景图.webp') center / cover no-repeat; filter: saturate(.82) brightness(.94); }
.welcome-page-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,25,39,.22), rgba(16,25,39,.06) 45%, rgba(16,25,39,.23)); }
.ref-home { max-width: 1450px; margin: 0 auto; }
.ref-hero { min-height: 430px; position: relative; overflow: hidden; color: #fff; background: #20344f; }
.ref-hero-image,.ref-hero-shade { position: absolute; inset: 0; }
.ref-hero-image { background: url('/static/images/hero-mountain-reference.webp') center / cover no-repeat; }
.ref-hero-shade { background: linear-gradient(90deg, rgba(7,24,50,.6), rgba(7,24,50,.14) 64%, rgba(7,24,50,.18)); }
.ref-hero-copy { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-left: 58px; max-width: 720px; }
.ref-start { display: inline-flex; align-items: center; gap: 24px; padding: 12px 18px; color: #24334b; background: #f5d894; text-decoration: none; font-size: 12px; font-weight: 700; border-radius: 22px; }.ref-start b { font-size: 18px; font-weight: 400; }
.ref-exam { position: absolute; z-index: 1; right: 46px; top: 48px; width: 165px; padding-left: 22px; border-left: 1px solid rgba(255,255,255,.46); }.ref-exam strong,.ref-exam b,.ref-exam em { display: block; font-weight: 400; }.ref-exam strong { font-size: 23px; letter-spacing: .1em; }.ref-exam b { margin: 3px 0 22px; color: #f4d68d; font-size: 31px; letter-spacing: .08em; }.ref-exam b i { color: rgba(255,255,255,.72); font-style: normal; }.ref-exam span { color: rgba(255,255,255,.78); font-size: 11px; }.ref-exam em { margin-top: 5px; font-size: 46px; line-height: 1; font-style: normal; }.ref-exam em small { margin-left: 5px; font-size: 12px; }.ref-exam hr { margin: 20px 0 12px; border: 0; border-top: 1px solid rgba(255,255,255,.26); }.ref-exam p { margin: 0; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.7; }
.ref-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 12px 0; }.ref-stat { min-height: 120px; padding: 18px 22px; background: #fffdfa; border: 1px solid rgba(23,32,51,.08); box-shadow: 0 4px 18px rgba(23,32,51,.04); text-decoration: none; }.ref-stat span { display: block; color: #8390a2; font-size: 11px; }.ref-stat strong { display: inline-block; margin-top: 10px; color: #2d5ee7; font-size: 31px; font-weight: 500; }.ref-stat strong small { margin-left: 4px; color: #7d8ba1; font-size: 10px; }.ref-stat p { margin: 6px 0 0; color: #a08c6a; font-size: 10px; }.ref-stat p i { color: #ef8e55; font-style: normal; }.stat-green strong { color: #28b874; }.stat-violet strong { color: #5d67e8; }.stat-orange strong { color: #ef8550; }
.ref-middle { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 12px; }.ref-feature { aspect-ratio: 2048 / 762; min-height: 0; position: relative; overflow: hidden; color: #172033; text-decoration: none; background: #d8c5aa; }.ref-feature-image { position: absolute; inset: 0; background: url('/static/images/feature-study-reference.webp') center / cover no-repeat; filter: none; }
.ref-right-stack { display: grid; gap: 12px; }.ref-mini-quote,.ref-mission { position: relative; overflow: hidden; background: #fffdfa; }.ref-mini-quote { min-height: 126px; color: #fff; }.ref-mini-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,25,22,.76), rgba(26,25,22,.15)), url('/static/images/login-bg.webp') center / cover; }.ref-mini-quote > div:last-child { position: relative; padding: 18px 20px; }.ref-mini-quote span { color: #e9d59f; font-size: 9px; letter-spacing: .14em; }.ref-mini-quote p { margin: 16px 0 0; font-size: 17px; line-height: 1.45; }.ref-mini-quote p em { color: #f3d998; font-style: normal; }.ref-mini-quote small { position: absolute; right: 18px; bottom: 13px; color: rgba(255,255,255,.76); font-size: 9px; }
.ref-mission { padding: 17px 18px 15px; }.ref-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }.ref-card-head span { color: #172033; font-size: 15px; font-weight: 700; }.ref-card-head small { color: #a9b0bb; font-size: 8px; letter-spacing: .08em; }.ref-mission a { display: flex; align-items: center; gap: 9px; min-height: 31px; color: #536174; text-decoration: none; font-size: 10px; }.ref-mission a:hover { color: #2d5ee7; }.ref-mission a b { margin-left: auto; color: #8c98aa; font-size: 9px; font-weight: 400; }.task-check { display: grid; place-items: center; width: 15px; height: 15px; color: #8d9aae; border-radius: 50%; font-style: normal; }.task-check.done { color: #fff; background: #4f73e8; }.task-check.green { background: #2ebd79; }.ref-mission > p { margin: 12px 0 0; padding-top: 9px; border-top: 1px solid rgba(23,32,51,.08); color: #96876f; font-size: 9px; }
.ref-learning { margin-top: 18px; }.ref-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }.ref-section-title span { color: #24334b; font-size: 14px; font-weight: 700; }.ref-section-title a { color: #8090a3; text-decoration: none; font-size: 10px; }.ref-module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.ref-module { min-height: 84px; position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 14px 18px; color: #26344b; text-decoration: none; border: 1px solid rgba(23,32,51,.06); background: #fffdfa; }.ref-module::after { content:""; position: absolute; width: 150px; height: 150px; right: -40px; bottom: -80px; border-radius: 50%; background: currentColor; opacity: .08; }.ref-module > i { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; color: #fff; background: currentColor; font-style: normal; }.ref-module > div { position: relative; z-index: 1; }.ref-module b,.ref-module small,.ref-module em { display: block; }.ref-module b { font-size: 12px; }.ref-module small { margin-top: 4px; color: #8591a2; font-size: 9px; }.ref-module em { margin-top: 7px; color: currentColor; font-size: 9px; font-style: normal; }.module-red { color: #e5575f; background: #fff7f4; }.module-blue { color: #4c79e8; background: #f4f7ff; }.module-green { color: #2aaa76; background: #f2fbf5; }.module-purple { color: #8756d9; background: #faf4ff; }.module-orange { color: #e77b39; background: #fff7ed; }.module-cyan { color: #35a7c9; background: #effafd; }
.ref-bottom { display: grid; grid-template-columns: 1fr 315px; gap: 12px; margin-top: 18px; }.ref-quote-wide { min-height: 120px; padding: 28px 32px; color: #fff; background: linear-gradient(110deg,#202d49,#344d70); font-size: 22px; line-height: 1.55; }.ref-quote-wide em { color: #e9cb8e; font-style: normal; }.ref-checkin { padding: 17px 20px; background: #fffdfa; }.ref-checkin > strong { display: block; margin: 4px 0 12px; color: #2d5ee7; font-size: 34px; font-weight: 500; }.ref-checkin > strong small { color: #7e8ca0; font-size: 10px; }.ref-checkin .checkin-btn { padding: 8px 14px; border-radius: 18px; font-size: 10px; }
@media (max-width: 900px) { .ref-hero-copy { padding-left: 34px; }.ref-exam { right: 24px; }.ref-middle { grid-template-columns: 1fr; }.ref-right-stack { grid-template-columns: 1fr 1fr; }.ref-bottom { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .ref-hero { min-height: 560px; }.ref-hero-copy { padding-left: 24px; }.ref-exam { top: auto; bottom: 28px; left: 24px; right: auto; }.ref-stats { grid-template-columns: repeat(2,1fr); }.ref-stat { padding: 15px; }.ref-stat strong { font-size: 27px; }.ref-right-stack,.ref-module-grid { grid-template-columns: 1fr; }.ref-feature-copy span { font-size: 22px; }.ref-quote-wide { font-size: 19px; } }
@media (max-width: 650px) { .ref-feature { aspect-ratio: 2048 / 762; } }

/* 侧边栏 */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: var(--sidebar-bg, #ffffff);
  border-right: 1px solid var(--sidebar-border, #e6e8eb);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background 0.4s ease;
}

.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--card-border, #eef0f2);
}

.sidebar-header h2 {
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent, #2563eb), var(--accent-light, #60a5fa));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-header .subtitle {
  font-size: 11px;
  color: var(--text-muted, #8f959e);
  margin-top: 4px;
  padding-left: 4px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, rgba(37,99,235,0.3));
  border-radius: 4px;
}

.nav-section {
  padding: 0 12px;
  margin-bottom: 4px;
}

.nav-section-title {
  font-size: 10px;
  color: var(--text-muted, #9aa0a6);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 8px 4px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--nav-color, #5f6672);
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: var(--card-bg-hover, #f3f5f7);
  color: var(--nav-hover, #1f2329);
}

.nav-item.active {
  background: var(--nav-active-bg, #edf3ff);
  color: var(--nav-active-color, #2563eb);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent, #2563eb), var(--accent-light, #60a5fa));
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-muted, #9aa0a6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item.active .nav-icon {
  color: var(--accent, #2563eb);
}

.nav-item .nav-badge {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(37,99,235,0.1);
  color: var(--accent, #2563eb);
  font-weight: 600;
}

.nav-item .nav-badge.hot {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

/* SVG 图标统一尺寸 */
.nav-icon svg { width: 16px; height: 16px; display: block; }
.logo-ico { width: 20px; height: 20px; flex-shrink: 0; }
.user-avatar svg { width: 18px; height: 18px; display: block; }
.dropdown-item svg { flex-shrink: 0; }

/* 主内容区 */
.main-content {
  margin-left: 240px;
  min-height: 100vh;
  padding: 0;
}

/* 顶部栏 */
.top-bar {
  background: var(--topbar-bg, rgba(255,255,255,0.82));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--topbar-border, rgba(15,23,42,0.06));
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.4s ease;
}

.top-bar .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--breadcrumb-color, #8f959e);
}

.top-bar .breadcrumb a {
  color: var(--text-secondary, #646a73);
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar .breadcrumb a:hover {
  color: var(--accent, #2563eb);
}

.top-bar .breadcrumb .current {
  color: var(--text-primary, #1f2329);
  font-weight: 500;
}

.top-bar .top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar .top-actions .back-home {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--btn-outline-border, #d8dbe0);
  color: var(--btn-outline-color, #5f6672);
  text-decoration: none;
  transition: all 0.25s;
}

.top-bar .top-actions .back-home:hover {
  background: var(--card-bg-hover, #f3f5f7);
  color: var(--text-primary, #1f2329);
}

/* ===== 登录按钮 ===== */
.login-btn {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--accent, #2563eb);
  background: var(--accent-soft, #edf3ff);
  color: var(--accent, #2563eb);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s;
  white-space: nowrap;
}
.login-btn:hover {
  background: var(--accent, #2563eb);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}

/* ===== 用户菜单 ===== */
.user-menu {
  position: relative;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid var(--btn-outline-border, #d8dbe0);
  background: var(--btn-outline-bg, #ffffff);
  color: var(--text-primary, #1f2329);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  white-space: nowrap;
}
.user-btn:hover {
  background: var(--card-bg-hover, #f3f5f7);
}
.user-avatar {
  font-size: 18px;
  color: var(--accent, #2563eb);
  display: flex;
  align-items: center;
}
.user-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--theme-picker-bg, #fff);
  border: 1px solid var(--theme-picker-border, #e6e8eb);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  min-width: 160px;
  padding: 8px;
  display: none;
  z-index: 200;
  animation: fadeInUp 0.2s ease;
}
.user-dropdown.show {
  display: block;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-primary, #1f2329);
  text-decoration: none;
  transition: all 0.2s;
}
.dropdown-item:hover {
  background: var(--card-bg, #f3f5f7);
}
.dropdown-divider {
  height: 1px;
  background: var(--card-border, #e6e8eb);
  margin: 6px 8px;
}
.dropdown-item.logout {
  color: var(--danger, #ef4444);
}
.dropdown-item.logout:hover {
  background: rgba(239,68,68,0.08);
}

/* ===== 登录弹窗 ===== */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-modal-overlay.hidden {
  display: none;
}
.login-modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 36px 36px;
  width: 400px;
  max-width: 100%;
  border: 1px solid var(--card-border, #e6e8eb);
  box-shadow: 0 30px 80px rgba(15,23,42,0.18);
  animation: fadeInUp 0.35s ease-out;
  position: relative;
}
.login-modal-card .modal-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-modal-card .modal-logo h2 {
  font-size: 22px;
  background: linear-gradient(135deg, var(--accent, #2563eb), var(--accent-light, #60a5fa));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.login-modal-card .modal-logo p {
  font-size: 13px;
  color: var(--text-muted, #8f959e);
}
.login-modal-card .form-group {
  margin-bottom: 18px;
}
.login-modal-card .form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary, #646a73);
  margin-bottom: 6px;
  font-weight: 500;
}
.login-modal-card .form-group input {
  width: 100%;
  height: 46px;
  background: #f7f8fa;
  border: 1.5px solid var(--input-border, #d8dbe0);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-primary, #1f2329);
  outline: none;
  transition: all 0.3s;
}
.login-modal-card .form-group input::placeholder {
  color: var(--placeholder-color, #9aa0a6);
}
.login-modal-card .form-group input:focus {
  border-color: var(--accent, #2563eb);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.login-modal-card .modal-error {
  text-align: center;
  color: var(--danger, #ef4444);
  font-size: 13px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: rgba(239,68,68,0.08);
  border-radius: 10px;
  border: 1px solid rgba(239,68,68,0.15);
  display: none;
}
.login-modal-card .modal-error.show {
  display: block;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%,100%{transform: translateX(0)}
  25%{transform: translateX(-6px)}
  75%{transform: translateX(6px)}
}
.login-modal-card .modal-btns {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.login-modal-card .modal-btns .btn {
  flex: 1;
  height: 46px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login-modal-card .btn-primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.login-modal-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.4);
}
.login-modal-card .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.login-modal-card .btn-secondary {
  background: #f3f5f7;
  color: var(--text-secondary, #646a73);
  border: 1px solid var(--input-border, #d8dbe0);
}
.login-modal-card .btn-secondary:hover {
  background: #eef0f2;
  color: var(--text-primary, #1f2329);
}
.login-modal-card .modal-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted, #8f959e);
}
.login-modal-card .modal-switch a {
  color: var(--text-secondary, #646a73);
  text-decoration: none;
  cursor: pointer;
}
.login-modal-card .modal-switch a:hover {
  color: var(--accent, #2563eb);
}
.login-modal-card .modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted, #8f959e);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}
.login-modal-card .modal-close-btn:hover {
  color: var(--text-primary, #1f2329);
}

/* 响应式弹窗 */
@media (max-width: 480px) {
  .login-modal-card {
    padding: 32px 24px 28px;
    border-radius: 20px;
  }
  .login-modal-card .modal-btns {
    flex-direction: column;
  }
}

/* 内容容器 — 全宽自适应 */
.content-wrapper {
  max-width: 100%;
  margin: 0;
  padding: 28px 32px;
}

/* 页面标题 */
.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary, #1f2329);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.page-header p {
  color: var(--text-secondary, #646a73);
  font-size: 14px;
}

/* 统计卡片网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, #e6e8eb);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.25s;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover, rgba(37,99,235,0.35));
  box-shadow: 0 10px 24px rgba(15,23,42,0.08);
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft, #edf3ff);
  color: var(--accent, #2563eb);
  font-size: 22px;
  margin-bottom: 12px;
}

.stat-card .stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary, #1f2329);
  margin-bottom: 4px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary, #646a73);
}

.stat-card .stat-trend {
  font-size: 11px;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
}

.stat-card .stat-trend.up {
  background: rgba(22,163,74,0.1);
  color: #16a34a;
}

.stat-card .stat-trend.down {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

/* 功能卡片网格 */
.func-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.func-card {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, #e6e8eb);
  border-radius: 14px;
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}

.func-card:hover {
  transform: translateY(-3px);
  border-color: var(--card-border-hover, rgba(37,99,235,0.35));
  box-shadow: 0 12px 28px rgba(15,23,42,0.1);
}

.func-card .func-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft, #edf3ff);
  color: var(--accent, #2563eb);
  font-size: 26px;
  margin-bottom: 14px;
}

.func-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1f2329);
  margin-bottom: 6px;
}

.func-card p {
  font-size: 12px;
  color: var(--text-secondary, #646a73);
  line-height: 1.6;
}

.func-card .func-tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 10px;
  background: var(--accent-soft, #edf3ff);
  color: var(--accent, #2563eb);
  font-weight: 500;
}

/* 板块标题 */
.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #1f2329);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-light, #60a5fa), var(--accent, #2563eb));
  flex-shrink: 0;
}

.section-title .more-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--accent, #2563eb);
  text-decoration: none;
  font-weight: 400;
}

.section-title .more-link:hover {
  color: var(--accent-light, #60a5fa);
}

/* 列表样式 */
.item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item-row {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, #e6e8eb);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15,23,42,0.03);
}

.item-row:hover {
  background: var(--card-bg-hover, #fafbfd);
  border-color: var(--card-border-hover, rgba(37,99,235,0.35));
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
  transform: translateX(3px);
}

.item-row .item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft, #edf3ff);
  color: var(--accent, #2563eb);
  font-size: 20px;
  border-radius: 10px;
  flex-shrink: 0;
}

.item-row .item-info {
  flex: 1;
  min-width: 0;
}

.item-row .item-info h4 {
  font-size: 14px;
  color: var(--text-primary, #1f2329);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-row .item-info p {
  font-size: 12px;
  color: var(--text-muted, #8f959e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-row .item-meta {
  font-size: 11px;
  color: var(--text-muted, #8f959e);
  text-align: right;
  flex-shrink: 0;
}

/* 占位页面 */
.placeholder-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.placeholder-page .placeholder-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.placeholder-page h2 {
  font-size: 20px;
  color: var(--text-primary, #1f2329);
  margin-bottom: 8px;
}

.placeholder-page p {
  font-size: 14px;
  color: var(--text-secondary, #646a73);
  max-width: 400px;
  line-height: 1.8;
}

.placeholder-page .feature-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.placeholder-page .feature-item {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, #e6e8eb);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.placeholder-page .feature-item .fi-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.placeholder-page .feature-item h4 {
  font-size: 13px;
  color: var(--text-primary, #1f2329);
  margin-bottom: 4px;
}

.placeholder-page .feature-item p {
  font-size: 11px;
  color: var(--text-muted, #8f959e);
  max-width: none;
}

/* 打卡日历 */
.checkin-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  max-width: 400px;
  margin: 20px auto;
}

.checkin-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-muted, #8f959e);
  background: var(--card-bg, #f7f8fa);
  border: 1px solid var(--card-border, #e6e8eb);
}

.checkin-day.done {
  background: var(--accent-soft, #edf3ff);
  border-color: rgba(37,99,235,0.25);
  color: var(--accent, #2563eb);
  font-weight: 600;
}

.checkin-day.today {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 1px var(--accent, #2563eb) inset;
  font-weight: 600;
}

/* 打卡按钮 */
.checkin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  background: linear-gradient(135deg, var(--accent, #2563eb), var(--accent-light, #60a5fa));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,0.25);
}

.checkin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

.checkin-btn:active {
  transform: translateY(0);
}

.checkin-btn.done {
  background: var(--card-bg-hover, #f3f5f7);
  box-shadow: none;
  color: var(--text-muted, #8f959e);
  border: 1px solid var(--card-border, #e6e8eb);
  cursor: default;
}

.checkin-btn.done:hover {
  transform: none;
}

/* 进度条 */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--card-bg, #eef0f2);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent, #2563eb), var(--accent-light, #60a5fa));
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
  background: var(--input-bg, #ffffff);
  border: 1px solid var(--input-border, #d8dbe0);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--text-primary, #1f2329);
  font-size: 13px;
  outline: none;
  transition: all 0.25s;
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.filter-bar select option {
  background: var(--theme-picker-bg, #ffffff);
  color: var(--text-primary, #1f2329);
}

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  background: var(--input-bg, #ffffff);
  border: 1px solid var(--input-border, #d8dbe0);
  border-radius: 10px;
  padding: 0 14px;
  transition: all 0.25s;
}

.search-box:focus-within {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.search-box input {
  background: none;
  border: none;
  padding: 8px 8px;
  color: var(--text-primary, #1f2329);
  font-size: 13px;
  outline: none;
  width: 180px;
}

.search-box .search-icon {
  font-size: 14px;
  color: var(--text-muted, #8f959e);
}

/* 标签 */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(37,99,235,0.1);
  color: var(--accent, #2563eb);
}

.tag.green {
  background: rgba(22,163,74,0.1);
  color: #16a34a;
}

.tag.orange {
  background: rgba(245,158,11,0.12);
  color: #d97706;
}

.tag.red {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.tag.blue {
  background: rgba(37,99,235,0.1);
  color: #2563eb;
}

/* 通用按钮基线（各页面可自行覆盖） */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.3);
}
.btn-outline {
  background: #ffffff;
  border-color: var(--input-border, #d8dbe0);
  color: var(--text-secondary, #646a73);
}
.btn-outline:hover {
  border-color: var(--accent, #2563eb);
  color: var(--accent, #2563eb);
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.pulse {
  animation: pulse 0.6s ease;
}

/* 移动端侧边栏遮罩层 */
.sidebar-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-mask.show {
  opacity: 1;
  visibility: visible;
}

/* 响应式 */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  /* 顶栏：窄屏时面包屑收省略号，右侧按钮收紧 */
  .top-bar .breadcrumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }
  .top-actions {
    gap: 6px;
  }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary, #646a73);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  align-items: center;
}

@media (max-width: 600px) {
  .content-wrapper {
    padding: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .func-grid {
    grid-template-columns: 1fr;
  }
  .page-header h1 {
    font-size: 20px;
  }
  .page-header p {
    font-size: 12px;
  }
  .top-bar {
    padding: 10px 12px;
  }
  .top-bar .breadcrumb {
    max-width: 36vw;
    font-size: 12px;
  }
  .top-actions {
    gap: 4px;
  }
  /* 筛选/搜索栏换行不溢出 */
  .search-box {
    flex-wrap: wrap;
    gap: 8px;
  }
  .search-box input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
  /* 列表行内元信息换行 */
  .item-row {
    flex-wrap: wrap;
  }
  .item-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
  /* 页面标题与副标题不换行挤爆 */
  .page-header {
    flex-wrap: wrap;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .top-actions .fontsize-btn,
  .top-actions .theme-btn {
    padding: 5px 9px;
    font-size: 12px;
  }
  /* 用户菜单窄屏只显示头像 */
  .user-menu .u-name {
    display: none;
  }
  .fontsize-panel {
    right: -60px;
    width: 180px;
  }
}

/* 性能监控指示器 */
#perf-indicator {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(15,23,42,0.6);
  color: rgba(255,255,255,0.8);
  pointer-events: none;
  display: none;
}

#perf-indicator.warning {
  color: #f59e0b;
  background: rgba(245,158,11,0.2);
}

#perf-indicator.error {
  color: #ef4444;
  background: rgba(239,68,68,0.2);
}

/* ===== 主题切换器 ===== */
.theme-switcher {
  position: relative;
}

.theme-btn {
  background: var(--btn-outline-bg, #ffffff);
  border: 1px solid var(--btn-outline-border, #d8dbe0);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  color: var(--text-secondary, #646a73);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-btn:hover {
  background: var(--card-bg-hover, #f3f5f7);
  color: var(--accent, #2563eb);
  transform: scale(1.05);
}

.theme-picker {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--theme-picker-bg, #ffffff);
  border: 1px solid var(--theme-picker-border, #e6e8eb);
  border-radius: 14px;
  padding: 16px;
  width: 300px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  display: none;
  z-index: 200;
  transition: background 0.4s ease;
}
.theme-picker.show {
  display: block;
  animation: fadeInUp 0.2s ease;
}

.theme-picker-title {
  font-size: 12px;
  color: var(--text-secondary, #646a73);
  margin-bottom: 14px;
  font-weight: 500;
}

.theme-group {
  margin-bottom: 14px;
}
.theme-group:last-child {
  margin-bottom: 0;
}

.theme-group-title {
  font-size: 11px;
  color: var(--text-secondary, #646a73);
  margin-bottom: 8px;
  font-weight: 500;
}

.theme-options {
  display: flex;
  gap: 8px;
}

.theme-option {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
}
.theme-option:hover {
  transform: scale(1.15);
  border-color: var(--accent-light, #60a5fa);
}
.theme-option.active {
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 12px rgba(37,99,235,0.25);
}
.theme-option.active::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: var(--accent, #2563eb);
  font-weight: 700;
}

@media (max-width: 600px) {
  .theme-picker {
    right: -40px;
    width: 260px;
  }
  .theme-options {
    gap: 6px;
  }
  .theme-option {
    width: 30px;
    height: 30px;
  }
}
/* ===== 规范化表达弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--card-border, #e6e8eb);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(15,23,42,0.18);
  animation: fadeInUp 0.25s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--card-border, #e6e8eb);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary, #1f2329);
  margin: 0;
}

.modal-close {
  background: var(--btn-outline-bg, #f3f5f7);
  border: 1px solid var(--btn-outline-border, #d8dbe0);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary, #646a73);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.3);
}

.modal-toolbar {
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--card-border, #e6e8eb);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary, #646a73);
}

.filter-group select {
  background: var(--input-bg, #ffffff);
  border: 1px solid var(--input-border, #d8dbe0);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-primary, #1f2329);
  outline: none;
  cursor: pointer;
  min-width: 160px;
}

.filter-group select:focus {
  border-color: var(--accent, #2563eb);
}

.result-count {
  font-size: 12px;
  color: var(--text-muted, #8f959e);
  margin-left: auto;
  white-space: nowrap;
}

.modal-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, rgba(37,99,235,0.3));
  border-radius: 4px;
}

/* 表达条目 */
.expr-item {
  background: var(--input-bg, #fafbfd);
  border: 1px solid var(--card-border, #e6e8eb);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.expr-item:hover {
  border-color: var(--card-border-hover, rgba(37,99,235,0.35));
  box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.expr-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.expr-cat {
  font-size: 11px;
}

.expr-id {
  font-size: 11px;
  color: var(--text-muted, #8f959e);
}

.expr-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.expr-body label {
  font-size: 12px;
  color: var(--text-muted, #8f959e);
  font-weight: 600;
  margin-right: 6px;
}

.expr-original {
  font-size: 13px;
  color: var(--text-secondary, #646a73);
  line-height: 1.6;
}

.expr-standard {
  font-size: 14px;
  color: var(--accent, #2563eb);
  font-weight: 600;
  line-height: 1.6;
}

/* 加载/空/错误状态 */
.loading, .empty-msg, .error-msg {
  text-align: center;
  padding: 40px 20px;
  font-size: 14px;
  color: var(--text-muted, #8f959e);
}

.error-msg {
  color: #ef4444;
}

/* 响应式 */
@media (max-width: 600px) {
  .modal-content {
    max-height: 90vh;
    border-radius: 16px;
  }
  .modal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-group {
    flex-wrap: wrap;
  }
  .filter-group select {
    flex: 1;
    min-width: 0;
  }
  .result-count {
    margin-left: 0;
  }
  .modal-header, .modal-toolbar, .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
}
