/* 桥之乡·绍兴 - 全站样式 v20 (浅米国风主题) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "STSong", "Songti SC", serif;
  color: #2c3e50;
  background: linear-gradient(180deg, #fdfbf6 0%, #f5ecd9 50%, #f0e3c8 100%);
  line-height: 1.7;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
a:hover { color: #8b4513; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ========== 顶部导航栏 ========== */
.site-header {
  background: rgba(253, 251, 246, 0.95);
  padding: 0.8rem 0;
  box-shadow: 0 2px 12px rgba(139, 69, 19, 0.12);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(139, 69, 19, 0.08);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.4rem; font-weight: 700; color: #5a3a1a;
}
.brand-logo:hover { color: #8b4513; }
.logo-icon { font-size: 1.8rem; filter: drop-shadow(0 2px 4px rgba(139,69,19,0.2)); }
.logo-text small { font-size: 0.8rem; color: #a08660; margin-left: 0.3rem; font-weight: 400; }

.main-nav { display: flex; gap: 0.5rem; align-items: center; }
.nav-link {
  padding: 0.6rem 1.1rem; border-radius: 8px;
  font-weight: 500; color: #5a4a3a; font-size: 1rem;
  position: relative;
}
.nav-link:hover {
  background: rgba(139, 69, 19, 0.08);
  color: #8b4513;
  transform: translateY(-1px);
}
.nav-link.active {
  background: linear-gradient(135deg, #8b4513, #a0562d);
  color: #fff8ee;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}
.nav-link.active:hover { color: #fff8ee; transform: translateY(-1px); }
.nav-toggle {
  display: none;
  background: none; border: none; font-size: 1.6rem;
  color: #5a3a1a; cursor: pointer; padding: 0.3rem 0.6rem;
}

/* ========== 首页 Hero 区域 ========== */
.hero {
  padding: 3rem 1rem 2rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.04) 0%, transparent 50%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 2rem;
}
.hero-text { text-align: center; }
.hero-eyebrow {
  font-size: 0.9rem; color: #a08660; letter-spacing: 0.3em;
  text-transform: uppercase; margin-bottom: 0.5rem;
  font-weight: 500;
}
.hero-title {
  font-size: 3.5rem; color: #5a3a1a; font-weight: 800;
  margin-bottom: 1rem; letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(139,69,19,0.08);
}
.hero-subtitle {
  font-size: 1.15rem; color: #6a5a4a; max-width: 700px;
  margin: 0 auto 1.8rem; line-height: 1.9;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* 数据统计模块 */
.hero-stats {
  background: linear-gradient(135deg, #f8f1e0 0%, #f0e3c8 100%);
  border-radius: 20px; padding: 1.8rem 1rem;
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(139, 69, 19, 0.12);
}
.stat-item { text-align: center; min-width: 100px; flex: 1; }
.stat-num {
  font-size: 2.6rem; font-weight: 800; color: #8b4513;
  line-height: 1.1; display: flex; align-items: baseline; justify-content: center; gap: 0.1rem;
}
.stat-plus, .stat-unit {
  font-size: 1.3rem; color: #a0562d; font-weight: 600;
}
.stat-label {
  font-size: 0.95rem; color: #6a5a4a;
  margin-top: 0.3rem; letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(139,69,19,0.25), transparent);
}

/* ========== 通用按钮 ========== */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.8rem 1.6rem; border-radius: 30px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #8b4513, #a0562d);
  color: #fff8ee;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.35);
  color: #fff8ee;
}
.btn-ghost {
  background: transparent; color: #8b4513;
  border-color: #8b4513;
}
.btn-ghost:hover {
  background: rgba(139, 69, 19, 0.08);
  transform: translateY(-2px);
}

/* ========== Section 通用 ========== */
.section { padding: 3rem 1rem; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-title {
  font-size: 2rem; color: #5a3a1a; font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, transparent, #8b4513, transparent);
  margin: 0.8rem auto 0; border-radius: 2px;
}
.section-desc {
  font-size: 1rem; color: #7a6a5a;
  max-width: 700px; margin: 0 auto;
}
.section-footer { text-align: center; margin-top: 2.5rem; }

/* ========== 三大栏目卡片 ========== */
.grid-functions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px; margin: 0 auto; padding: 0;
}
.func-card {
  background: white;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 24px rgba(139, 69, 19, 0.08);
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(139, 69, 19, 0.06);
  position: relative; overflow: hidden;
}
.func-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--card-accent, linear-gradient(90deg, #8b4513, #a0562d));
}
.func-bridges { --card-accent: linear-gradient(90deg, #4a7c8c, #6ba3b3); }
.func-culture { --card-accent: linear-gradient(90deg, #b3553c, #d4795c); }
.func-guide { --card-accent: linear-gradient(90deg, #7c8c4a, #a3b56b); }
.func-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(139, 69, 19, 0.18);
}
.func-icon {
  font-size: 3.5rem; margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(139,69,19,0.15));
  transition: transform 0.35s;
}
.func-card:hover .func-icon { transform: scale(1.1) rotate(-5deg); }
.func-card h3 {
  font-size: 1.4rem; color: #5a3a1a;
  margin-bottom: 0.8rem; font-weight: 700;
}
.func-card p {
  font-size: 0.95rem; color: #6a5a4a;
  margin-bottom: 1.2rem; line-height: 1.6;
}
.func-arrow {
  display: inline-block;
  color: #8b4513; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.3s;
}
.func-card:hover .func-arrow { transform: translateX(6px); }

/* ========== 6宫格古桥卡片 ========== */
.grid-bridges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px; margin: 0 auto; padding: 0;
}
.bridge-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(139, 69, 19, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(139, 69, 19, 0.06);
  display: block;
}
.bridge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(139, 69, 19, 0.18);
}
.bridge-img {
  height: 180px;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.bridge-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.2));
}
.bridge-img-bazi { background-image: linear-gradient(135deg, #5a8a9a 0%, #2c4a5a 100%); }
.bridge-img-guangning { background-image: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.bridge-img-baozhu { background-image: linear-gradient(135deg, #8a6a4a 0%, #4a3a2a 100%); }
.bridge-img-xiegong { background-image: linear-gradient(135deg, #7a8a5a 0%, #3a4a2a 100%); }
.bridge-img-feiyi { background-image: linear-gradient(135deg, #c87a9a 0%, #6a3a5a 100%); }
.bridge-img-yinshan { background-image: linear-gradient(135deg, #9a8a7a 0%, #5a4a3a 100%); }
.bridge-content { padding: 1.3rem; }
.bridge-content h3 {
  font-size: 1.3rem; color: #2c3e50; margin-bottom: 0.6rem; font-weight: 700;
}
.bridge-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem; border-radius: 12px;
  font-size: 0.75rem; font-weight: 500;
}
.tag-era { background: #f0e0c0; color: #8b4513; }
.tag-type { background: #d0e0e8; color: #2c5a6a; }
.tag-level { background: #f8d8d8; color: #a03535; }
.bridge-content p {
  font-size: 0.9rem; color: #6a5a4a; line-height: 1.5;
}

/* ========== 桥乡简介容器 ========== */
.intro-box {
  background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(248,241,224,0.5) 100%);
  border-radius: 20px; padding: 2.5rem 2rem;
  max-width: 900px; margin: 0 auto;
  border: 1px solid rgba(139, 69, 19, 0.1);
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.06);
}
.intro-box p {
  font-size: 1.05rem; color: #4a4a4a;
  margin-bottom: 1.2rem; line-height: 1.9;
  text-align: justify; text-indent: 2em;
}
.intro-cta { text-align: center; margin-top: 1.5rem; }

/* ========== 悬浮功能按钮 ========== */
.floating-actions {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  z-index: 50;
}
.fab {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b4513, #a0562d);
  color: #fff8ee; border: none;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
  opacity: 0; pointer-events: none;
}
.fab.show { opacity: 1; pointer-events: auto; }
.fab:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.45);
}
.fab-back-top.show { opacity: 1; pointer-events: auto; }

/* ========== 通用网格（兼容旧版） ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px; margin: 0 auto; padding: 0 1rem 2rem;
}
.card {
  background: white; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.15);
}
.card-link { display: block; }
.card-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.card-img .emoji { font-size: 4rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.card-content { padding: 1.2rem; }
.card-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #2c3e50; }
.card-content p { color: #7a6a5a; font-size: 0.9rem; }

/* ========== 文章样式（详情页通用） ========== */
article { max-width: 800px; margin: 2rem auto; padding: 2rem; background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08); }
article h1 { text-align: left; padding: 0 0 1rem; border-bottom: 2px solid #e8dcc4; }
article h2 { color: #5a4a3a; margin: 1.5rem 0 0.8rem; font-size: 1.4rem; }
article p { margin-bottom: 1rem; color: #4a4a4a; }
article ul, article ol { margin: 1rem 0 1rem 2rem; color: #4a4a4a; }
article li { margin-bottom: 0.5rem; }

/* ========== 页脚 ========== */
.footer { background: #2c2418; color: #d4c4a8; padding: 3rem 1rem 1.5rem; margin-top: 4rem; }
.footer-desc { text-align: center; max-width: 800px; margin: 0 auto 2rem; padding-bottom: 2rem; border-bottom: 1px solid #4a3a28; }
.footer-desc h4 { font-size: 1.5rem; margin-bottom: 0.5rem; color: #f0e0c0; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.footer-grid h4 { color: #f0e0c0; margin-bottom: 1rem; font-size: 1rem; }
.footer-grid a { display: block; padding: 0.3rem 0; color: #a89878; font-size: 0.9rem; }
.footer-grid a:hover { color: #f0e0c0; }
.footer-bottom { text-align: center; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid #4a3a28; color: #8a7a58; font-size: 0.85rem; }
.footer-bottom p { margin: 0.3rem 0; }

/* ========== 移动端响应式 ========== */
@media (max-width: 1024px) {
  .grid-bridges { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.8rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0.3rem;
    background: rgba(253, 251, 246, 0.98);
    padding: 1rem; box-shadow: 0 4px 12px rgba(139,69,19,0.15);
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 0.7rem 1rem; text-align: center; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-stats { padding: 1.2rem 0.5rem; }
  .stat-num { font-size: 1.9rem; }
  .stat-divider { display: none; }
  .stat-item { min-width: 80px; }
  .grid-bridges { grid-template-columns: 1fr; }
  .grid-functions { grid-template-columns: 1fr; }
  .section { padding: 2rem 1rem; }
  .section-title { font-size: 1.6rem; }
  .intro-box { padding: 1.8rem 1.2rem; }
  .floating-actions { right: 1rem; bottom: 1rem; }
  .fab { width: 42px; height: 42px; font-size: 1.1rem; }
  .grid { grid-template-columns: 1fr; }
  article { margin: 1rem; padding: 1.5rem; }
  /* 手机端侧栏：只保留"📤 分享收藏"块 */
  .side-nav .hide-mobile { display: none; }

  /* 隐藏「快速入口」模块 - 手机端（用户指定 2026-06-27） */
  section:has(.quick-links) { display: none; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* ============ 桥之乡扩展样式（county-card / info-box / nav-back 等） ============ */
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.county-card { background: #fff; border: 1px solid #d4b896; border-radius: 8px; padding: 16px; transition: transform 0.2s, box-shadow 0.2s; }
.county-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(139,69,19,0.2); }
.county-card h3 { color: #8b4513; margin: 0 0 8px 0; font-size: 1.1rem; }
.county-card .num { font-size: 2em; font-weight: bold; color: #5c2e0a; }
.county-card a { color: #5c2e0a; text-decoration: none; display: block; padding: 6px 0; font-size: 0.92rem; }
.county-card a:hover { color: #8b4513; text-decoration: underline; }

.info-box { background: #f5ebe0; border-left: 4px solid #8b4513; padding: 16px 20px; margin: 20px 0; border-radius: 4px; }
.info-box p { margin: 8px 0; line-height: 1.7; }
.info-box strong { color: #5c2e0a; }

.nav-back { display: inline-block; padding: 8px 16px; background: #8b4513; color: #fff !important; border-radius: 4px; text-decoration: none; margin: 16px 0; }
.nav-back:hover { background: #5c2e0a; text-decoration: none; }

.bridge-list { columns: 2; column-gap: 24px; list-style: none; padding: 0; }
.bridge-list li { padding: 4px 0; border-bottom: 1px dashed #e8d8c0; }
.bridge-list a { color: #5c2e0a; text-decoration: none; }
.bridge-list a:hover { color: #8b4513; text-decoration: underline; }

.stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.stat-item { background: #fff; padding: 16px 24px; border-radius: 8px; border: 1px solid #d4b896; flex: 1; min-width: 150px; text-align: center; }
.stat-item .num { font-size: 2.5em; font-weight: bold; color: #8b4513; line-height: 1; }
.stat-item .label { color: #666; margin-top: 4px; font-size: 0.9rem; }

.hero-card { background: linear-gradient(135deg, #8b4513 0%, #5c2e0a 100%); color: #fff5e6; padding: 32px; border-radius: 12px; margin: 24px 0; }
.hero-card h1 { color: #fff; border: none; margin: 0 0 8px 0; font-size: 2.2rem; }
.hero-card p { color: rgba(255,245,230,0.92); font-size: 1.05rem; margin: 8px 0; }
