/* ==========================================================================
   罗店.cn 本地门户站 · 共享样式
   题材：江南水乡古镇 × 北欧湖畔小镇
   色板：墨青 / 黛蓝 / 暖纸白 / 砖红 / 灯笼金
   ========================================================================== */

:root {
  --ink: #2b2b28;
  --ink-soft: #5c5a54;
  --navy: #1f3a4d;
  --navy-light: #33505e;
  --navy-deep: #162c3b;
  --paper: #faf7f2;
  --paper-deep: #f1ebe1;
  --brick: #b0522f;
  --brick-deep: #94401f;
  --gold: #c9a227;
  --line: #e3dccf;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 58, 77, 0.10);
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brick); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--navy-light));
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--brick), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 900; font-size: 20px; color: var(--white);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.18);
}
.brand-name { font-family: var(--font-serif); font-size: 21px; font-weight: 900; letter-spacing: .5px; }
.brand-sub { display: block; font-size: 11px; font-weight: 400; opacity: .75; letter-spacing: 2px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.82); font-size: 15px; padding: 8px 14px; border-radius: 8px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: var(--white); }
.main-nav a.active { background: var(--brick); color: var(--white); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px; color: var(--white);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ===================== Hero 区 ===================== */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,44,59,.35), rgba(22,44,59,.78));
}
.hero-inner {
  position: relative; z-index: 1; padding: 76px 0 64px;
  max-width: 820px; margin: 0 auto; text-align: center;
}
.hero-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--gold);
  border: 1px solid rgba(201,162,39,.55); border-radius: 999px; padding: 5px 16px; margin-bottom: 18px;
}
.hero h1 { font-family: var(--font-serif); font-size: 44px; font-weight: 900; line-height: 1.3; margin-bottom: 16px; }
.hero p { font-size: 17px; color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto 26px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brick); color: var(--white); box-shadow: 0 6px 18px rgba(176,82,47,.35); }
.btn-primary:hover { background: var(--brick-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

/* 页面 hero（内页） */
.page-hero { background: linear-gradient(135deg, var(--navy-deep), var(--navy-light)); color: var(--white); padding: 52px 0 44px; }
.page-hero h1 { font-family: var(--font-serif); font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.82); font-size: 15px; max-width: 720px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 10px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--gold); }

/* ===================== 通用区块 ===================== */
.section { padding: 56px 0; }
.section-alt { background: var(--paper-deep); }
.section-head { margin-bottom: 32px; }
.section-kicker { font-size: 13px; letter-spacing: 3px; color: var(--brick); font-weight: 600; margin-bottom: 8px; }
.section-title { font-family: var(--font-serif); font-size: 28px; font-weight: 900; color: var(--navy); }
.section-desc { color: var(--ink-soft); margin-top: 8px; max-width: 640px; }

/* ===================== 卡片栅格 ===================== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-deep); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--navy); }
.card-text { font-size: 14px; color: var(--ink-soft); flex: 1; }
.card-link { font-size: 14px; font-weight: 600; color: var(--brick); display: inline-flex; align-items: center; gap: 4px; }
.card-link:hover { color: var(--brick-deep); }
.card-link svg { width: 14px; height: 14px; }

/* 图标卡片（首页栏目入口） */
.icon-card { align-items: flex-start; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--navy-light), var(--navy));
  color: var(--gold);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-card:nth-child(2n) .icon-badge { background: linear-gradient(145deg, var(--brick), var(--brick-deep)); color: var(--white); }
.icon-card:nth-child(3n) .icon-badge { background: linear-gradient(145deg, #7a8f4e, #5f7440); color: var(--white); }

/* ===================== 商家列表 ===================== */
.shop-list { display: grid; gap: 18px; }
.shop-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 24px; display: flex; gap: 18px; align-items: flex-start;
  transition: box-shadow .2s;
}
.shop-item:hover { box-shadow: var(--shadow); }
.shop-avatar {
  flex: 0 0 64px; height: 64px; border-radius: 12px;
  background: linear-gradient(145deg, var(--paper-deep), var(--paper));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--navy-light);
}
.shop-avatar svg { width: 30px; height: 30px; }
.shop-main { flex: 1; }
.shop-name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--navy); }
.shop-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; }
.tag {
  font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: var(--paper-deep); color: var(--navy-light); border: 1px solid var(--line);
}
.tag.free { background: rgba(122,143,78,.12); color: #5f7440; border-color: rgba(122,143,78,.3); }
.shop-meta { font-size: 14px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 2px; }
.shop-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--brick); }

/* ===================== 提示条 / 引用 ===================== */
.notice {
  background: var(--white); border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 14px; color: var(--ink-soft);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.notice strong { color: var(--navy); }
.notice.warn { border-left-color: var(--brick); }

/* ===================== 正文排版 ===================== */
.prose { max-width: 760px; }
.prose h2 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: var(--navy);
  margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--brick);
}
.prose h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--navy); margin: 26px 0 10px; }
.prose p { margin-bottom: 14px; color: #3f3e3a; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--navy); }

/* ===================== 时间轴 ===================== */
.timeline { display: grid; gap: 0; margin: 28px 0; }
.timeline-row {
  display: grid; grid-template-columns: 110px 34px 1fr;
  gap: 14px; align-items: start; padding-bottom: 26px;
}
.timeline-row:last-child { padding-bottom: 0; }
.timeline-year { text-align: right; font-family: var(--font-serif); font-weight: 900; color: var(--brick); font-size: 16px; padding-top: 2px; }
.timeline-axis { position: relative; height: 100%; display: flex; justify-content: center; }
.timeline-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--white);
  border: 4px solid var(--brick); z-index: 1; justify-self: center; margin-top: 6px;
}
.timeline-axis::after {
  content: ""; position: absolute; top: 22px; bottom: -8px; width: 2px;
  background: linear-gradient(var(--brick), var(--line)); left: 50%; transform: translateX(-50%);
}
.timeline-row:last-child .timeline-axis::after { display: none; }
.timeline-body h3 { font-family: var(--font-serif); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.timeline-body p { font-size: 14px; color: var(--ink-soft); }

/* ===================== 表格 ===================== */
.table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--white); }
table caption { text-align: left; font-size: 13px; color: var(--ink-soft); padding: 10px 14px; background: var(--paper); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th { background: var(--navy); color: var(--white); font-weight: 600; }
tr:last-child td { border-bottom: none; }
td a { color: var(--brick); font-weight: 600; }

/* ===================== CTA 条 ===================== */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-light));
  color: var(--white); text-align: center; padding: 48px 24px; border-radius: var(--radius);
  margin: 12px 0 0;
}
.cta-band h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 22px; }

/* ===================== 页脚 ===================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); margin-top: 56px; padding: 44px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 900; color: var(--white); margin-bottom: 10px; }
.footer-col h4 { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 8px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.5);
}

/* ===================== 响应式 ===================== */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-deep); flex-direction: column; padding: 12px 16px 18px;
    gap: 2px; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 24px rgba(0,0,0,.25);
  }
  .main-nav.open { display: flex; }
  .main-nav a { display: block; padding: 12px 14px; }
  .hero h1 { font-size: 32px; }
  .hero-inner { padding: 56px 0 48px; }
  .page-hero h1 { font-size: 26px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 24px; }
  .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; }
  .shop-item { flex-direction: column; }
  .timeline-row { grid-template-columns: 84px 30px 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; }
}
