/* =========================================
   各城市考点分布详解 — 晨曦·暖阳活力风
   目标用户：考研人
   ========================================= */

/* ===== Reset & Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

/* ===== 主题1: 晨曦·暖阳活力风 (默认) ===== */
:root, [data-theme="dawn"] {
  --brand:#e8634a;
  --brand-dark:#c94a32;
  --brand-light:rgba(232,99,74,0.08);
  --brand-glow:rgba(232,99,74,0.15);
  --accent:#ffc857;
  --accent-light:rgba(255,200,87,0.2);
  --bg:#fef9f4;
  --card-bg:#fff;
  --text:#3d2c2a;
  --text-secondary:#8a7068;
  --text-muted:#c4b0a6;
  --border:#f0e4dc;
  --border-hover:#e8d4c8;
  --gradient:linear-gradient(135deg,#f2784b,#e8634a 40%,#d94e5e);
  --radius-sm:10px;
  --radius:14px;
  --radius-lg:18px;
  --shadow:0 2px 12px rgba(232,99,74,.08);
  --shadow-hover:0 4px 20px rgba(232,99,74,.14);
  --safe-bottom:env(safe-area-inset-bottom,12px);
}

/* ===== 主题2: 深海·静谧蓝调 ===== */
[data-theme="ocean"] {
  --brand:#2563eb;
  --brand-dark:#1d4ed8;
  --brand-light:rgba(37,99,235,0.08);
  --brand-glow:rgba(37,99,235,0.15);
  --accent:#38bdf8;
  --accent-light:rgba(56,189,248,0.2);
  --bg:#f5f8ff;
  --card-bg:#fff;
  --text:#1e293b;
  --text-secondary:#64748b;
  --text-muted:#94a3b8;
  --border:#e2e8f0;
  --border-hover:#cbd5e1;
  --gradient:linear-gradient(135deg,#3b82f6,#2563eb 40%,#6366f1);
  --radius-sm:10px;
  --radius:14px;
  --radius-lg:18px;
  --shadow:0 2px 12px rgba(37,99,235,.08);
  --shadow-hover:0 4px 20px rgba(37,99,235,.14);
  --safe-bottom:env(safe-area-inset-bottom,12px);
}

/* ===== 主题3: 竹林·清新自然风 ===== */
[data-theme="forest"] {
  --brand:#059669;
  --brand-dark:#047857;
  --brand-light:rgba(5,150,105,0.08);
  --brand-glow:rgba(5,150,105,0.15);
  --accent:#facc15;
  --accent-light:rgba(250,204,21,0.2);
  --bg:#f6fbf8;
  --card-bg:#fff;
  --text:#1a2e1a;
  --text-secondary:#5a7a5a;
  --text-muted:#8aaa8a;
  --border:#dceae0;
  --border-hover:#c0dcc8;
  --gradient:linear-gradient(135deg,#10b981,#059669 40%,#047857);
  --radius-sm:10px;
  --radius:14px;
  --radius-lg:18px;
  --shadow:0 2px 12px rgba(5,150,105,.08);
  --shadow-hover:0 4px 20px rgba(5,150,105,.14);
  --safe-bottom:env(safe-area-inset-bottom,12px);
}

html{font-size:16px;-webkit-text-size-adjust:100%}

body{
  font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Helvetica Neue','Microsoft YaHei',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  padding-bottom:var(--safe-bottom);
}

a{color:inherit;text-decoration:none}
button{border:none;background:none;cursor:pointer;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
[v-cloak]{display:none}
img{max-width:100%;display:block}
input{font:inherit}

/* ===== App Container ===== */
.app-container{
  max-width:480px;
  margin:0 auto;
  min-height:100vh;
  position:relative;
  background:var(--bg);
}

/* ===== Top Header ===== */
.top-header{
  background:var(--gradient);
  color:#fff;
  padding:20px 18px 18px;
  border-radius:0 0 24px 24px;
  position:sticky;
  top:0;
  z-index:100;
}

.header-title-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:4px;
}

.header-icon{
  width:38px;
  height:38px;
  background:rgba(255,255,255,.2);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex-shrink:0;
}

.header-text-wrap{flex:1}

.header-title{
  font-size:20px;
  font-weight:700;
  letter-spacing:.3px;
}

.header-subtitle{
  font-size:11px;
  opacity:.75;
  margin-top:1px;
  letter-spacing:.5px;
}

/* ===== Search Box ===== */
.search-wrap{margin-top:14px}

.search-box{
  background:rgba(255,255,255,.22);
  border-radius:24px;
  display:flex;
  align-items:center;
  padding:10px 14px;
  gap:8px;
  transition:background .2s;
}

.search-box:focus-within{background:rgba(255,255,255,.32)}

.search-icon{
  font-size:15px;
  opacity:.5;
  flex-shrink:0;
}

.search-box input{
  flex:1;
  background:none;
  border:none;
  color:#fff;
  font-size:14px;
  outline:none;
  min-width:0;
}

.search-box input::placeholder{color:rgba(255,255,255,.48)}

.search-clear{
  color:rgba(255,255,255,.45);
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:14px;
  flex-shrink:0;
  cursor:pointer;
  visibility:hidden;
}

.search-clear.visible{visibility:visible}
.search-clear:active{background:rgba(255,255,255,.15)}

/* ===== Announcement Bar ===== */
.announce-bar{
  background:rgba(255,255,255,.18);
  border-radius:14px;
  margin-top:10px;
  padding:8px 12px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  overflow:hidden;
}

.announce-tag{
  background:rgba(255,255,255,.25);
  border-radius:10px;
  padding:2px 8px;
  font-size:10px;
  flex-shrink:0;
  font-weight:500;
}

.announce-marquee{
  flex:1;
  overflow:hidden;
  white-space:nowrap;
}

.announce-marquee span{
  display:inline-block;
  animation:marquee linear infinite;
  animation-duration:var(--marquee-speed, 14s);
}

@keyframes marquee{
  0%{transform:translateX(100%)}
  100%{transform:translateX(-100%)}
}

/* ===== Countdown ===== */
.countdown-card{
  background:var(--card-bg);
  margin:14px 16px 0;
  border-radius:var(--radius);
  padding:16px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:var(--shadow);
}

.countdown-icon{
  width:50px;
  height:50px;
  background:var(--brand-light);
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:26px;
  flex-shrink:0;
}

.countdown-info{flex:1;min-width:0}

.countdown-title{
  font-size:14px;
  font-weight:600;
  color:var(--text);
}

.countdown-date{
  font-size:11px;
  color:var(--text-secondary);
  margin-top:2px;
}

.countdown-digits{
  display:flex;
  gap:4px;
  align-items:center;
  flex-shrink:0;
}

.countdown-digit{
  background:var(--brand);
  color:#fff;
  border-radius:8px;
  padding:7px 2px;
  min-width:36px;
  text-align:center;
  font-size:18px;
  font-weight:700;
  line-height:1.1;
}

.countdown-digit-label{
  font-size:9px;
  font-weight:400;
  opacity:.8;
  display:block;
  margin-top:1px;
}

.countdown-sep{
  color:var(--brand);
  font-size:16px;
  font-weight:700;
}

/* ===== Content Area ===== */
.content-area{
  padding:12px 16px 32px;
}

/* ===== Province Card ===== */
.province-card{
  background:var(--card-bg);
  border-radius:var(--radius);
  margin-bottom:12px;
  overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.03);
}

.province-header{
  background:var(--gradient);
  color:#fff;
  padding:10px 14px;
  font-size:14px;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
}

.province-pin{
  width:22px;
  height:22px;
  background:rgba(255,255,255,.2);
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  flex-shrink:0;
}

.province-count{
  margin-left:auto;
  font-size:11px;
  font-weight:400;
  opacity:.75;
}

.province-count strong{font-weight:600}

/* ===== City Grid ===== */
.city-grid{
  padding:10px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
}

.city-item{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:12px 4px;
  text-align:center;
  font-size:13px;
  color:var(--text);
  cursor:pointer;
  transition:all .15s ease;
  user-select:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:2px;
}

.city-item:active{
  background:var(--brand-light);
  border-color:var(--brand);
  color:var(--brand);
  transform:scale(.96);
}

.city-name{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:100%;
}

.city-badge{
  font-size:10px;
  color:var(--brand);
  background:var(--brand-light);
  border-radius:8px;
  padding:1px 7px;
  font-weight:500;
}

/* ===== Empty State ===== */
.empty-state{
  text-align:center;
  padding:50px 20px;
  color:var(--text-muted);
}

.empty-icon{font-size:52px;opacity:.35;margin-bottom:10px}
.empty-text{font-size:14px;margin-bottom:4px}
.empty-hint{font-size:11px;color:var(--text-secondary)}

/* ===== No Result ===== */
.no-result{
  text-align:center;
  padding:40px 20px;
  color:var(--text-muted);
}

.no-result-icon{font-size:44px;margin-bottom:8px;opacity:.4}
.no-result-text{font-size:14px}

/* ===== Back to Top ===== */
.back-to-top{
  position:fixed;
  right:12px;
  bottom:40px;
  width:38px;
  height:38px;
  background:var(--card-bg);
  border-radius:50%;
  box-shadow:0 2px 10px rgba(0,0,0,.1);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-secondary);
  font-size:18px;
  z-index:50;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:all .2s ease;
}

.back-to-top.show{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.back-to-top:active{background:var(--bg)}

/* ===== Article Page ===== */
.article-overlay{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:var(--bg);
  z-index:200;
  overflow-y:auto;
  overscroll-behavior:contain;
  transform:translateX(100%);
  transition:transform .32s cubic-bezier(.4,0,.2,1);
  max-width:480px;
  margin:0 auto;
  -webkit-overflow-scrolling:touch;
}

.article-overlay.open{transform:translateX(0)}

/* 悬浮返回按钮 */
.article-float-back{
  position:fixed;
  top:16px;
  left:16px;
  z-index:210;
  width:36px;
  height:36px;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:18px;
  transition:all .2s;
}
.article-float-back:active{background:rgba(0,0,0,.55);transform:scale(.93)}

.article-float-back-icon{line-height:1}

/* 文章头部 Hero */
.article-hero{
  background:var(--gradient);
  color:#fff;
  padding:50px 20px 28px;
  position:relative;
  border-radius:0 0 28px 28px;
}

.article-hero-badge{
  display:inline-block;
  background:rgba(255,255,255,.2);
  border-radius:12px;
  padding:4px 12px;
  font-size:11px;
  font-weight:500;
  margin-bottom:12px;
}

.article-hero-title{
  font-size:20px;
  font-weight:700;
  line-height:1.4;
  letter-spacing:.3px;
}

.article-hero-meta{
  margin-top:8px;
  font-size:11px;
  opacity:.65;
  display:flex;
  align-items:center;
  gap:6px;
}

.article-hero-dot{opacity:.5}

/* ===== 文章标签入口 ===== */
.article-tag-links{
  margin:8px 0 15px;
  display:flex;
  justify-content:center;
  gap:4em;
  position:relative;
  z-index:1;
}
.tag-btn{
  flex:1;
  max-width:160px;
  padding:10px 8px;
  border-radius:8px;
  text-align:center;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  background:#fff;
  -webkit-tap-highlight-color:transparent;
}
.tag-btn--mentor{
  border:none;
  color:#1e3a5f;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
.tag-btn--exam{
  border:none;
  color:#1e3a5f;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}
.tag-btn:active{opacity:.7}

/* 文章正文 */
.article-body{
  padding:20px 18px 40px;
  font-size:15px;
  line-height:1.9;
  color:var(--text);
  letter-spacing:.2px;
}

.article-h3{
  font-size:17px;
  font-weight:700;
  color:var(--brand);
  margin:24px 0 12px;
  padding-left:12px;
  border-left:3px solid var(--brand);
  line-height:1.4;
}

.article-p{
  margin-bottom:14px;
  text-align:justify;
}

.article-p strong{color:var(--text);font-weight:600}

.article-img{
  width:100%;
  border-radius:var(--radius-sm);
  margin:8px 0 16px;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}

/* 小程序跳转卡片 */
.article-mp-wrap{margin:16px 0}
.article-mp-card{
  display:flex;align-items:center;gap:12px;
  background:linear-gradient(135deg,#f0faf4,#e6f7ee);
  border:1px solid #b7ebce;border-radius:12px;
  padding:14px 16px;position:relative;overflow:hidden;
  cursor:pointer;transition:all .2s;
}
.article-mp-card:active{transform:scale(.98);background:#e0f5e9}
.article-mp-card--nowx{cursor:pointer}
.article-mp-icon{font-size:28px;flex-shrink:0;line-height:1}
.article-mp-info{flex:1;min-width:0}
.article-mp-title{font-size:15px;font-weight:600;color:#07c160;margin-bottom:2px}
.article-mp-hint{font-size:11px;color:#999}
.article-mp-arrow{font-size:18px;color:#07c160;opacity:.5;flex-shrink:0}

.article-p em{
  color:var(--text-muted);
  font-style:normal;
  font-size:13px;
  display:block;
  background:var(--brand-light);
  border-radius:var(--radius-sm);
  padding:10px 14px;
  margin-top:8px;
}

/* 文章底部 */
.article-footer{
  text-align:center;
  padding:30px 0 10px;
}

.article-footer-line{
  width:40px;
  height:2px;
  background:var(--border);
  margin:0 auto 16px;
  border-radius:1px;
}

.article-footer-text{
  font-size:12px;
  color:var(--text-muted);
  margin-bottom:4px;
}

.article-footer-hint{
  font-size:11px;
  color:var(--text-muted);
  opacity:.6;
}

/* 文章未收录 */
.article-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:60vh;
  text-align:center;
  padding:20px;
}
.article-empty-icon{font-size:56px;opacity:.2;margin-bottom:16px}
.article-empty-title{font-size:17px;font-weight:600;color:var(--text);margin-bottom:8px}
.article-empty-hint{font-size:13px;color:var(--text-secondary);line-height:1.7;max-width:260px}
.article-empty-btn{
  margin-top:24px;
  padding:12px 32px;
  background:var(--gradient);
  color:#fff;
  border-radius:24px;
  font-size:14px;
  font-weight:500;
}
.article-empty-btn:active{opacity:.85;transform:scale(.97)}

/* 文章底部返回栏 */
.article-bottom-bar{
  padding:0 18px 28px;
}
.article-bottom-btn{
  width:100%;
  padding:14px;
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  color:var(--brand);
  font-size:14px;
  font-weight:500;
  text-align:center;
  transition:all .15s;
}
.article-bottom-btn:active{background:var(--brand-light);border-color:var(--brand)}

/* 推荐阅读（V1 文章页底部） */
.recommend-reading{
  margin:24px 0 0;
  padding:20px;
  background:var(--card-bg);
  border:1px solid rgba(232,99,74,.18);
  border-radius:14px;
  box-shadow:0 2px 12px rgba(232,99,74,.06);
}
.recommend-reading-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  font-weight:700;
  color:var(--text);
  margin-bottom:14px;
}
.recommend-reading-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;height:28px;
  background:var(--gradient);
  border-radius:8px;
  font-size:14px;
  color:#fff;
}
.recommend-reading-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.recommend-reading-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  background:rgba(232,99,74,.04);
  border-radius:10px;
  text-decoration:none;
  color:var(--text);
  font-size:14px;
  transition:all .18s;
}
.recommend-reading-item:active{
  background:rgba(232,99,74,.1);
  transform:translateX(2px);
}
.recommend-reading-dot{
  width:6px;height:6px;
  background:var(--brand);
  border-radius:50%;
  flex-shrink:0;
}
.recommend-reading-text{
  flex:1;
  line-height:1.5;
}
.recommend-reading-arrow{
  color:var(--text-secondary);
  font-size:13px;
  flex-shrink:0;
}

/* ===== Responsive ===== */
@media(max-width:480px){
  .app-container,.article-overlay{max-width:100%}
}

/* ===== 图片预览模态框 ===== */
.image-preview-overlay{
  position:fixed;
  top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,.92);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  animation:imgPreviewFadeIn .25s ease;
}
@keyframes imgPreviewFadeIn{
  from{opacity:0}
  to{opacity:1}
}
.image-preview-container{
  position:relative;
  max-width:95vw;
  max-height:95vh;
  display:flex;
  align-items:center;
  justify-content:center;
}
.image-preview-img{
  max-width:95vw;
  max-height:90vh;
  object-fit:contain;
  border-radius:4px;
  box-shadow:0 8px 40px rgba(0,0,0,.5);
}
.image-preview-close{
  position:fixed;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:none;
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:22px;
  border-radius:50%;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10001;
  transition:background .15s;
  -webkit-tap-highlight-color:transparent;
}
.image-preview-close:active{
  background:rgba(255,255,255,.3);
}
