/* ===== 宁城山水 H5 移动端站点 ===== */
:root {
  --primary: #0e7c66;
  --primary-dark: #0a5a4a;
  --secondary: #1f6f9e;
  --accent: #e8a33d;
  --dark: #0c2b2b;
  --ink: #1f2d2b;
  --muted: #5d6f6b;
  --line: #e3ebe8;
  --bg: #f4f8f6;
  --bg-soft: #eef4f1;
  --white: #ffffff;
  --shadow: 0 6px 18px rgba(14, 60, 50, .10);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  padding-bottom: 76px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.h5-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.h5-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 16px;
}
.h5-header .brand { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.h5-header .menu-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: none; color: #fff;
  font-size: 20px; display: grid; place-items: center;
}

/* Mobile nav drawer */
.h5-nav {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: .25s;
}
.h5-nav.open { opacity: 1; pointer-events: auto; }
.h5-nav .drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 78%; max-width: 300px;
  background: #fff; transform: translateX(100%); transition: .3s;
  display: flex; flex-direction: column;
}
.h5-nav.open .drawer { transform: translateX(0); }
.h5-nav .drawer-head {
  background: var(--primary); color: #fff; padding: 20px 18px;
  font-size: 18px; font-weight: 700;
}
.h5-nav .drawer-close {
  position: absolute; top: 10px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none; color: #fff; font-size: 18px;
}
.h5-nav a {
  display: block; padding: 16px 18px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink); font-weight: 500;
}
.h5-nav a.active { color: var(--primary); background: var(--bg-soft); }
.h5-nav .drawer-foot {
  margin-top: auto; padding: 16px; font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Hero */
.h5-hero {
  position: relative; height: 240px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.h5-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 60%);
}
.h5-hero .txt {
  position: relative; z-index: 2; padding: 20px 16px; color: #fff;
}
.h5-hero .tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.4);
  font-size: 12px; margin-bottom: 8px;
}
.h5-hero h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.h5-hero p { font-size: 14px; opacity: .9; }

/* Carousel dots */
.h5-carousel { position: relative; overflow: hidden; }
.h5-carousel .slides { display: flex; transition: transform .4s ease; }
.h5-carousel .slide { min-width: 100%; height: 220px; background-size: cover; background-position: center; }
.h5-carousel .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.h5-carousel .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.h5-carousel .dot.active { background: #fff; }

/* Sections */
.h5-section { padding: 22px 16px; }
.h5-section.bg-soft { background: var(--bg-soft); }
.h5-section-title { font-size: 20px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.h5-section-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* Cards */
.h5-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.h5-card:last-child { margin-bottom: 0; }
.h5-card h3 { font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.h5-card p { font-size: 14px; color: var(--muted); }

/* Core scenic cards */
.h5-scenic-card {
  display: flex; gap: 14px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.h5-scenic-card .pic { width: 110px; min-height: 110px; background-size: cover; background-position: center; flex-shrink: 0; }
.h5-scenic-card .info { padding: 14px; flex: 1; }
.h5-scenic-card .info h3 { font-size: 17px; color: var(--dark); margin-bottom: 6px; }
.h5-scenic-card .info p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Essence horizontal scroll */
.h5-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.h5-scroll::-webkit-scrollbar { display: none; }
.h5-scroll-card {
  flex: 0 0 160px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.h5-scroll-card .thumb { height: 110px; background-size: cover; background-position: center; }
.h5-scroll-card .body { padding: 10px; }
.h5-scroll-card .body h4 { font-size: 14px; color: var(--dark); margin-bottom: 4px; }
.h5-scroll-card .body p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* News list */
.h5-news-item {
  display: flex; gap: 12px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px;
}
.h5-news-item .date {
  flex: 0 0 46px; text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 8px 0;
}
.h5-news-item .date b { display: block; font-size: 18px; color: var(--primary); line-height: 1; }
.h5-news-item .date span { font-size: 11px; color: var(--muted); }
.h5-news-item h4 { font-size: 15px; color: var(--dark); line-height: 1.4; }

/* Info table */
.h5-info-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.h5-info-row:last-child { border-bottom: none; }
.h5-info-row span { color: var(--muted); }
.h5-info-row b { color: var(--ink); font-weight: 600; text-align: right; max-width: 60%; }

/* Spot cards */
.h5-spot-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.h5-spot-card .thumb { height: 160px; background-size: cover; background-position: center; }
.h5-spot-card .body { padding: 14px; }
.h5-spot-card .body h3 { font-size: 16px; color: var(--dark); margin-bottom: 6px; }
.h5-spot-card .body p { font-size: 13px; color: var(--muted); }

/* Buttons */
.h5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; width: 100%;
}
.h5-btn-primary { background: var(--primary); color: #fff; }
.h5-btn-accent { background: var(--accent); color: #fff; }
.h5-btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }

/* Map tabs */
.h5-map-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.h5-map-tab { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 14px; font-weight: 600; }
.h5-map-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.h5-map-panel { display: none; }
.h5-map-panel.active { display: block; }

/* Price table */
.h5-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.h5-price-row:last-child { border-bottom: none; }
.h5-price-row .price { color: var(--accent); font-size: 17px; font-weight: 800; }

/* Notice list */
.h5-notice li { padding: 10px 0 10px 22px; position: relative; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.h5-notice li:last-child { border-bottom: none; }
.h5-notice li::before { content: "•"; position: absolute; left: 6px; color: var(--primary); font-size: 16px; }

/* Itinerary */
.h5-step { display: flex; gap: 12px; margin-bottom: 12px; }
.h5-step .n { flex: 0 0 56px; text-align: center; background: var(--primary); color: #fff; border-radius: 8px; font-size: 12px; font-weight: 700; padding: 5px 0; align-self: flex-start; }
.h5-step h4 { font-size: 15px; color: var(--dark); }
.h5-step p { font-size: 13px; color: var(--muted); }

/* Bottom nav */
.h5-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 0 8px;
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.h5-bottom a { text-align: center; font-size: 11px; color: var(--muted); padding: 0 8px; }
.h5-bottom a.active { color: var(--primary); }
.h5-bottom .ico { font-size: 20px; display: block; line-height: 1; margin-bottom: 2px; }

/* Footer */
.h5-footer { background: var(--dark); color: #cfe3dd; padding: 22px 16px; text-align: center; font-size: 12px; }
.h5-footer p { margin-bottom: 6px; }

/* Utility */
.mt { margin-top: 14px; }
.mb { margin-bottom: 14px; }
.text-center { text-align: center; }

/* ===== 微信分享 / 小程序入口（H5） ===== */
.share-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.18); border: none; color: #fff;
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  cursor: pointer; margin-right: 8px;
}
.h5-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: rgba(12,43,43,.92); color: #fff; font-size: 13px; padding: 10px 16px;
  border-radius: 999px; z-index: 9999; opacity: 0; pointer-events: none; transition: .25s;
  max-width: 80%; text-align: center;
}
.h5-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.h5-share-mask {
  position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.55);
  display: flex; flex-direction: column; align-items: flex-end; padding: 16px 14px;
}
.h5-share-mask .arrow { font-size: 32px; color: #fff; margin-right: 26px; line-height: 1; }
.h5-share-mask .tip { color: #fff; font-size: 14px; margin: 6px 22px 14px 0; max-width: 220px; text-align: right; }
.h5-share-mask .card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-right: 8px; max-width: 260px; }
.h5-share-mask .card .ttl { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.h5-share-mask .card .dsc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.h5-share-mask .close { margin: 16px auto 0; display: block; background: #fff; color: var(--ink); border: none; border-radius: 999px; padding: 9px 28px; font-size: 14px; font-weight: 600; }

/* 小程序卡片（H5 门票页） */
.h5-mini-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 14px; text-align: center;
}
.h5-mini-card .head { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.h5-mini-card .badge { background: rgba(26,173,25,.12); color: #1aad19; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.h5-mini-card .head h3 { font-size: 17px; color: var(--dark); }
.h5-mini-card .desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.h5-mini-card .qr { width: 150px; height: 150px; margin: 0 auto 12px; border-radius: 10px; overflow: hidden; background: #f3f3f3; display: flex; align-items: center; justify-content: center; }
.h5-mini-card .qr img { width: 100%; height: 100%; object-fit: contain; }
.h5-mini-card .qr .ph { color: #aaa; font-size: 12px; text-align: center; }
.h5-mini-card .qr .ph small { display: block; margin-top: 4px; }
.h5-mini-btn {
  width: 100%; background: #1aad19; color: #fff; border: none; border-radius: 999px;
  padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.h5-mini-btn:active { background: #159413; }
.h5-mini-card .tip { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.wx-launch { display: block; width: 100%; }
