/* ===========================
   中国风景文化展示平台 - 全局样式
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Cinzel:wght@400;600&display=swap');

/* CSS 变量 - 中国传统色系 */
:root {
  --primary:     #8B1A1A;   /* 中国红 */
  --primary-dark:#6B0F0F;
  --primary-light:#B22222;
  --gold:        #C9A84C;   /* 金色 */
  --gold-light:  #E8C97A;
  --ink:         #2C2C2C;   /* 墨色 */
  --ink-light:   #555555;
  --paper:       #F5F0E8;   /* 宣纸色 */
  --paper-dark:  #EDE5D0;
  --celadon:     #7BA05B;   /* 青瓷绿 */
  --water:       #4A7B9D;   /* 水蓝 */
  --white:       #FFFFFF;
  --shadow:      rgba(139,26,26,0.15);
  --font-serif:  'Noto Serif SC', 'STSong', '华文宋体', serif;
  --font-en:     'Cinzel', serif;
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s ease;
}

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-serif);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===========================
   导航栏
   =========================== */
.navbar-brand .brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--paper) !important;
  letter-spacing: 3px;
}
.navbar-brand .brand-en {
  font-family: var(--font-en);
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  display: block;
  line-height: 1;
}

.main-nav {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #6B1515 100%) !important;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  padding: 0.5rem 0;
}

.main-nav .nav-link {
  color: var(--paper) !important;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 0.5rem 1.2rem !important;
  position: relative;
  transition: color var(--transition);
}

.main-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--gold-light) !important;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { width: 80%; }

.nav-search-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 20px;
  padding: 0.3rem 1rem !important;
  font-size: 0.85rem;
}
.nav-search-btn:hover {
  background: var(--gold) !important;
  color: var(--primary-dark) !important;
}

/* ===========================
   页脚
   =========================== */
.site-footer {
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 100%);
  color: var(--paper);
  padding: 3rem 0 1.5rem;
  border-top: 3px solid var(--gold);
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(245,240,232,0.6);
  font-size: 0.85rem;
}

.footer-links h6 {
  color: var(--gold);
  font-family: var(--font-serif);
  letter-spacing: 2px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(245,240,232,0.7);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-divider {
  border-color: rgba(201,168,76,0.3);
  margin: 2rem 0 1rem;
}

.footer-bottom {
  color: rgba(245,240,232,0.5);
  font-size: 0.8rem;
  text-align: center;
}

/* ===========================
   通用卡片组件
   =========================== */
.scenic-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(201,168,76,0.2);
  height: 100%;
}

.scenic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px var(--shadow);
}

.scenic-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.scenic-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.scenic-card:hover .card-img-wrap img { transform: scale(1.08); }

.scenic-card .card-region-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(139,26,26,0.85);
  color: var(--paper);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.scenic-card .card-type-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(201,168,76,0.85);
  color: var(--ink);
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.scenic-card .card-body { padding: 1.2rem; }

.scenic-card .card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.scenic-card .card-province {
  color: var(--ink-light);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}
.scenic-card .card-province i { color: var(--primary); }

.scenic-card .card-rating {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.scenic-card .card-tags { margin-bottom: 1rem; }
.scenic-card .card-tags .tag {
  display: inline-block;
  background: var(--paper);
  color: var(--primary);
  border: 1px solid rgba(139,26,26,0.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.7rem;
  margin: 2px;
  letter-spacing: 0.5px;
}

.btn-view-detail {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--paper);
  border: none;
  border-radius: 25px;
  padding: 0.45rem 1.4rem;
  font-size: 0.85rem;
  font-family: var(--font-serif);
  letter-spacing: 1px;
  transition: all var(--transition);
  width: 100%;
}
.btn-view-detail:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  transform: scale(1.02);
}

/* ===========================
   通用标题装饰
   =========================== */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
}
.section-title h2::before,
.section-title h2::after {
  content: '◆';
  font-size: 0.7rem;
  color: var(--gold);
  position: absolute;
  top: 50%; transform: translateY(-50%);
}
.section-title h2::before { left: -2rem; }
.section-title h2::after  { right: -2rem; }

.section-title .title-en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 4px;
  display: block;
  margin-top: 0.5rem;
}

.section-divider {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 0;
}

/* ===========================
   评分星星
   =========================== */
.stars {
  color: var(--gold);
  font-size: 0.9rem;
}

/* ===========================
   响应式
   =========================== */
@media (max-width: 768px) {
  .section-title h2 { font-size: 1.5rem; letter-spacing: 2px; }
  .section-title h2::before,
  .section-title h2::after { display: none; }
}

/* ===========================
   动画
   =========================== */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(30px); }
  to   { opacity:1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}
.fade-in-up { animation: fadeInUp 0.6s ease forwards; }
.fade-in    { animation: fadeIn 0.6s ease forwards; }

/* 加载动画 */
.loading-spinner {
  text-align: center; padding: 3rem;
  color: var(--primary);
}

/* ===========================
   收藏按钮 (卡片右上角)
   =========================== */
.card-img-wrap { position: relative; }

.fav-btn {
  position: absolute;
  bottom: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.25s, background 0.25s;
  color: #ccc;
  font-size: 1rem;
}
.fav-btn:hover { transform: scale(1.15); }
.fav-btn.active { color: var(--primary); background: #fff; }
.fav-btn .bi-heart-fill { display:none; }
.fav-btn.active .bi-heart { display:none; }
.fav-btn.active .bi-heart-fill { display:inline; }

/* ===========================
   导航栏 收藏入口
   =========================== */
.nav-fav-btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 20px;
  padding: 0.3rem 1rem !important;
  font-size: 0.85rem;
  position: relative;
}
.nav-fav-btn:hover {
  background: var(--gold) !important;
  color: var(--primary-dark) !important;
}
.nav-fav-btn .fav-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-style: normal;
}

/* ===========================
   返回顶部按钮
   =========================== */
#backToTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0; pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(139,26,26,0.3);
}
#backToTop.visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
#backToTop:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

/* ===========================
   Toast 提示
   =========================== */
#toastContainer {
  position: fixed;
  bottom: 5rem; right: 2rem;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}
.toast-msg {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  border-left: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 1.8s forwards;
  display: flex; align-items: center; gap: 0.5rem;
  letter-spacing: 0.5px;
}
.toast-msg.fav-add  { border-left-color: var(--primary); }
.toast-msg.fav-remove { border-left-color: var(--ink-light); }
@keyframes toastIn  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; } to { opacity:0; } }

/* ===========================
   搜索历史下拉
   =========================== */
.search-wrap { position: relative; }
.search-history-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid rgba(139,26,26,0.2);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 200;
  overflow: hidden;
  display: none;
}
.search-history-drop.show { display: block; }
.sh-header {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--ink-light);
  font-family: var(--font-serif);
  letter-spacing: 1px;
  background: var(--paper);
  display: flex; justify-content: space-between; align-items: center;
}
.sh-clear { color: var(--primary); cursor: pointer; font-size: 0.72rem; }
.sh-clear:hover { text-decoration: underline; }
.sh-item {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-family: var(--font-serif);
  cursor: pointer;
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--ink);
  transition: background 0.15s;
}
.sh-item:hover { background: var(--paper); color: var(--primary); }
.sh-item i { color: var(--ink-light); font-size: 0.8rem; }

/* ===========================
   页面加载过渡
   =========================== */
body.page-loading { opacity: 0; }
body { transition: opacity 0.3s ease; }

/* ===========================
   收藏夹页面空状态
   =========================== */
.fav-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--ink-light);
}
.fav-empty i { font-size: 4rem; color: rgba(139,26,26,0.2); display:block; margin-bottom:1rem; }
.fav-empty p { font-family: var(--font-serif); font-size:1rem; margin-bottom:1.5rem; }
.fav-empty a {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 2rem;
  border-radius: 25px;
  font-family: var(--font-serif);
  transition: all 0.3s;
}
.fav-empty a:hover { background: var(--primary); color: var(--paper); }

/* ===========================
   上/下一个景点导航 (详情页)
   =========================== */
.detail-nav-bar {
  background: var(--white);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.detail-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  color: var(--ink);
  transition: background 0.25s, color 0.25s;
  text-decoration: none;
  min-width: 0;
}
.detail-nav-item:hover { background: var(--paper); color: var(--primary); }
.detail-nav-item.prev { border-right: 1px solid rgba(201,168,76,0.2); }
.detail-nav-item.next { flex-direction: row-reverse; text-align: right; }
.detail-nav-item .nav-label {
  font-size: 0.7rem;
  color: var(--ink-light);
  display: block;
  letter-spacing: 1px;
  font-family: var(--font-serif);
}
.detail-nav-item .nav-name {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.detail-nav-item .nav-thumb {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.detail-nav-item i { color: var(--primary); font-size: 1rem; flex-shrink: 0; }

/* ===========================
   Scroll reveal 动画
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   数字滚动动画
   =========================== */
.count-num { display: inline-block; }


/* ===========================
   移动端底部导航栏
   =========================== */
.mobile-nav-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 100%);
  border-top: 2px solid var(--gold);
  z-index: 1040;
  padding: 0.3rem 0 env(safe-area-inset-bottom, 0.3rem);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.25);
  justify-content: space-around;
  align-items: center;
}
@media (max-width: 991px) {
  .mobile-nav-bar { display: flex; }
  body { padding-bottom: 60px; }
  #backToTop { bottom: 5rem; }
  #toastContainer { bottom: 5.5rem; }
}
.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.8rem;
  color: rgba(245,240,232,0.55);
  font-family: var(--font-serif);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s;
  flex: 1;
}
.mob-nav-item i { font-size: 1.25rem; }
.mob-nav-item.active { color: var(--gold); }
.mob-nav-item:hover { color: var(--gold-light); }

/* ===========================
   深色模式
   =========================== */
:root.dark-mode {
  --paper:       #1a1a1a;
  --paper-dark:  #111111;
  --white:       #242424;
  --ink:         #e8e0d0;
  --ink-light:   #aaa;
  --shadow:      rgba(0,0,0,0.4);
}
.dark-mode body { background: #1a1a1a; color: #e8e0d0; }
.dark-mode .scenic-card,
.dark-mode .filter-sidebar,
.dark-mode .sidebar-card,
.dark-mode .content-section,
.dark-mode .info-card,
.dark-mode .tips-card,
.dark-mode .chart-card,
.dark-mode .compare-card,
.dark-mode .comment-form-wrap,
.dark-mode .cmt-item,
.dark-mode .compare-table { background: #242424; border-color: rgba(201,168,76,.15); }
.dark-mode .list-toolbar,
.dark-mode .kpi-card { background: #242424; border-color: rgba(201,168,76,.15); }
.dark-mode .search-input,
.dark-mode .cmt-input,
.dark-mode .cmt-textarea { background: #2a2a2a; color: #e8e0d0; border-color: rgba(201,168,76,.25); }
.dark-mode .form-control { background: #2a2a2a; color: #e8e0d0; border-color: rgba(201,168,76,.2); }
.dark-mode .card-title,
.dark-mode .list-card-title { color: #e8e0d0; }
.dark-mode .text-muted { color: #888 !important; }
.dark-mode .sidebar-check-list .check-item { color: #ccc; }
.dark-mode .compare-table-row.even { background: rgba(255,255,255,.04); }
.dark-mode .heritage-card { background: #242424; }
.dark-mode .province-item { background: #2a2a2a; }
.dark-mode .cloud-tag { background: rgba(255,255,255,.05) !important; }

/* 深色模式切换按钮 */
.dark-toggle-btn {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(201,168,76,.4);
  color: var(--gold);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
  transition: all .3s;
}
.dark-toggle-btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  transform: scale(1.08);
}
@media (max-width: 991px) {
  .dark-toggle-btn { bottom: 6rem; right: 1rem; width: 36px; height: 36px; font-size: .9rem; }
}

/* ===========================
   可点击标签
   =========================== */
.tag-clickable {
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s !important;
}
.tag-clickable:hover {
  background: var(--primary) !important;
  color: var(--paper) !important;
  border-color: var(--primary) !important;
  transform: scale(1.05);
}

/* ===========================
   搜索联想样式
   =========================== */
.suggest-item { gap: 0.7rem; align-items: center; }
.suggest-thumb {
  width: 40px; height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.suggest-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.suggest-name {
  font-size: .88rem;
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggest-name mark {
  background: rgba(201,168,76,.3);
  color: var(--primary);
  padding: 0;
  border-radius: 2px;
}
.suggest-sub {
  font-size: .72rem;
  color: var(--ink-light);
  font-family: var(--font-serif);
}
.suggest-arrow {
  color: var(--ink-light);
  font-size: .85rem;
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.suggest-item:hover .suggest-arrow { color: var(--primary); transform: translateX(3px); }

/* ===========================
   骨架屏动画
   =========================== */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}
.skeleton {
  background: linear-gradient(90deg,
    var(--paper-dark) 25%,
    rgba(245,240,232,0.8) 37%,
    var(--paper-dark) 63%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius);
}
.dark-mode .skeleton {
  background: linear-gradient(90deg,
    #2a2a2a 25%, #3a3a3a 37%, #2a2a2a 63%
  );
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

/* 骨架屏卡片 */
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201,168,76,.15);
  overflow: hidden;
}
.skeleton-img   { height: 200px; }
.skeleton-body  { padding: 1.2rem; }
.skeleton-line  { height: 14px; margin-bottom: 10px; }
.skeleton-line.short  { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full   { width: 100%; }
.skeleton-line.thin   { height: 10px; }

/* ===========================
   阅读进度条
   =========================== */
#readProgress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary-light));
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===========================
   关键词高亮
   =========================== */
mark.kw-highlight {
  background: rgba(201,168,76,.35);
  color: var(--primary);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}

/* ===========================
   季节主题色（body data-season）
   =========================== */
[data-season="spring"] { --season-tint: rgba(123,160,91,0.06); }
[data-season="summer"] { --season-tint: rgba(74,123,157,0.06); }
[data-season="autumn"] { --season-tint: rgba(176,106,58,0.07); }
[data-season="winter"] { --season-tint: rgba(107,78,155,0.05); }

body { background-color: var(--paper); }
[data-season] .quick-filter-section,
[data-season] .region-section { background: var(--season-tint, transparent); }

/* 季节角标 */
.season-badge {
  position: fixed;
  top: 70px; right: 0;
  background: var(--white);
  border: 1px solid rgba(201,168,76,.3);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: .4rem .7rem;
  font-family: var(--font-serif);
  font-size: .72rem;
  color: var(--ink-light);
  letter-spacing: 1px;
  z-index: 100;
  display: flex; align-items: center; gap: .3rem;
}

/* ===========================
   深色模式补全（评论/行程/地图/图表）
   =========================== */
.dark-mode .cmt-toolbar,
.dark-mode .cmt-item,
.dark-mode .comment-form-wrap { background: #2a2a2a; border-color: rgba(201,168,76,.12); }

.dark-mode .cmt-input,
.dark-mode .cmt-textarea { background: #333; color: #e8e0d0; border-color: rgba(201,168,76,.2); }

.dark-mode .cmt-sort-btn { border-color: rgba(201,168,76,.2); color: #aaa; }
.dark-mode .cmt-sort-btn.active { background: var(--primary); color: var(--paper); }
.dark-mode .cmt-page-btn { border-color: rgba(201,168,76,.2); color: #aaa; }
.dark-mode .cmt-page-btn.active { background: var(--primary); color: var(--paper); }

/* 行程规划深色 */
.dark-mode .itin-item,
.dark-mode .plan-toolbar,
.dark-mode .plan-add-section { background: #242424; border-color: rgba(201,168,76,.15); }

.dark-mode .plan-name-input,
.dark-mode .plan-date-input,
.dark-mode .itin-note,
.dark-mode .itin-days-input { background: #2a2a2a; color: #e8e0d0; border-color: rgba(201,168,76,.2); }

.dark-mode .pick-item { background: transparent; }
.dark-mode .pick-item:hover { background: rgba(255,255,255,.05); }
.dark-mode .pick-name { color: #e8e0d0; }

.dark-mode .fav-tab { color: #888; }
.dark-mode .fav-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.dark-mode .fav-tabs { border-bottom-color: rgba(201,168,76,.15); }

/* 地图页深色 */
.dark-mode .map-card,
.dark-mode .map-side-panel { background: #242424; border-color: rgba(201,168,76,.15); }

.dark-mode .map-side-header { background: #1e1e1e; }
.dark-mode .map-spot-item:hover { background: #2e2e2e; }
.dark-mode .map-spot-item.active { background: rgba(139,26,26,.15); }
.dark-mode .map-popup { background: #242424; }
.dark-mode .svg-map-wrap { background: #2a2a2a; }
.dark-mode #chinaMap { background: #2a2a2a; }

/* 统计页深色 */
.dark-mode .chart-panel { background: #2a2a2a; }
.dark-mode .panel-spot-item { color: #e8e0d0; }
.dark-mode .panel-spot-item:hover { background: #333; color: var(--gold); }
.dark-mode .footprint-stat { background: #2a2a2a; border-color: rgba(212,120,106,.15); }

/* 通用输入深色 */
.dark-mode input[type="text"],
.dark-mode input[type="email"],
.dark-mode input[type="number"],
.dark-mode input[type="date"],
.dark-mode select,
.dark-mode textarea { background: #2a2a2a !important; color: #e8e0d0 !important; border-color: rgba(201,168,76,.2) !important; }

/* ===========================
   无障碍：跳过导航链接
   =========================== */
.skip-nav-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: var(--paper);
  padding: .5rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-serif);
  font-size: .85rem;
  letter-spacing: 1px;
  text-decoration: none;
  z-index: 9999;
  transition: top .2s;
}
.skip-nav-link:focus { top: 0; }

/* 键盘导航焦点增强 */
.keyboard-nav *:focus {
  outline: 2px solid var(--gold) !important;
  outline-offset: 2px !important;
}

/* ===========================
   卡片悬停微动效（全局）
   =========================== */
.scenic-card {
  transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.28s ease !important;
}
.scenic-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 40px rgba(139,26,26,0.15) !important;
}
.scenic-card .card-img-wrap img {
  transition: transform 0.5s ease;
}
.scenic-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

/* 列表视图卡片悬停 */
.list-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.list-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(139,26,26,0.12) !important;
}

/* ===========================
   收藏徽章脉冲动画
   =========================== */
@keyframes badgePulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.45); background: var(--gold); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.fav-badge.pulse {
  animation: badgePulse 0.55s cubic-bezier(0.36,0.07,0.19,0.97) both;
}

/* ===========================
   轮播进度条
   =========================== */
.carousel-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  z-index: 10;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ===========================
   结果数量变化动画
   =========================== */
@keyframes countPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25); color: var(--primary); }
  100% { transform: scale(1); }
}
.result-info-text.pop {
  animation: countPop 0.4s ease both;
  display: inline-block;
}

/* ===========================
   时间线（about.html）
   =========================== */
.timeline {
  position: relative;
  padding: 0;
  margin: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--gold), var(--celadon));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  align-items: flex-start;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; text-align: right; }
.timeline-item:nth-child(odd) .tl-content { align-items: flex-end; }
.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--gold);
  flex-shrink: 0;
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 4px; z-index: 1;
}
.tl-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.tl-year {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.tl-title {
  font-family: var(--font-serif);
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.tl-desc {
  font-family: var(--font-serif);
  font-size: .82rem;
  color: var(--ink-light);
  line-height: 1.7;
}
@media (max-width: 768px) {
  .timeline::before { left: 16px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; text-align: left; }
  .timeline-item:nth-child(odd) .tl-content { align-items: flex-start; }
  .timeline-dot { left: 16px; }
  .tl-content { padding-left: 2.5rem; }
  .timeline-item:nth-child(odd) .tl-content { padding-left: 2.5rem; padding-right: 0; }
}
