/* ============================================================
   ChinaMazing · 景区详情页升级样式（v1.2 · 纵向左右布局）
   ------------------------------------------------------------
   ・四板块可切换（Discover / Get There & Stay / Eat / Tips）
   ・S1 Discover 与 S3 Eat：纵向卡片，左图轮播 + 右文/价格
   ・主色调 token 由 <html data-accent="emerald|vermilion|ocean"> 驱动
   ============================================================ */

/* ---------- 景区主色 token ---------- */
html[data-accent="emerald"] {
  --accent:      #2E8B57;
  --accent-deep: #1E4D3B;
  --accent-soft: rgba(46, 139, 87, 0.10);
}
html[data-accent="vermilion"] {
  --accent:      #C0392B;
  --accent-deep: #7B1E1A;
  --accent-soft: rgba(192, 57, 43, 0.10);
}
html[data-accent="ocean"] {
  --accent:      #1E88A8;
  --accent-deep: #124E63;
  --accent-soft: rgba(30, 136, 168, 0.10);
}

/* 详情页范围变量（依赖主色 + 中性 token） */
.attr-page {
  --ink:       #121714;
  --ink-soft:  #4A564F;
  --paper:     #FAFAF7;
  --card:      #FFFFFF;
  --line:      #E4E9E4;
  --mountain:  linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  --shadow-1:  0 6px 20px rgba(18, 23, 20, 0.06);
  --shadow-2:  0 22px 50px rgba(18, 23, 20, 0.13);
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, sans-serif;
}

.attr-page {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 面包屑导航（hero 内 · 借鉴 visitfinland 习惯） ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--cinnabar); border-bottom-color: var(--cinnabar); }
.breadcrumb .sep { opacity: 0.55; }
.breadcrumb [aria-current="page"] { color: #fff; opacity: 0.95; }

/* ---------- 板块贴顶导航 ---------- */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.section-nav .container {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 20px;
}
.section-nav .container::-webkit-scrollbar { display: none; }
.section-nav button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 16px 18px;
  min-height: 48px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}
.section-nav button::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 10px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.section-nav button.is-active { color: var(--ink); }
.section-nav button.is-active::after { transform: scaleX(1); }

/* ---------- 板块面板 ---------- */
.attr-panel { display: none; }
.attr-panel.is-active {
  display: block;
  animation: panelIn 0.55s ease both;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.attr-head {
  padding: 56px 20px 12px;
  max-width: 1120px;
  margin: 0 auto;
}
.attr-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}
.attr-h {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  margin: 10px 0 10px;
}
.attr-sub { color: var(--ink-soft); max-width: 640px; }

/* ============================================================
   S1 · Discover 纵向卡片（左图轮播 + 右文/价格）
   ============================================================ */
.spot-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.spot-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.spot-item:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.spot-item:nth-child(even) .spot-media { order: 2; }
.spot-item:nth-child(even) .spot-info  { order: 1; }

/* --- 媒体（轮播） --- */
.spot-media {
  position: relative;
  min-height: 320px;
  aspect-ratio: 16 / 10;
  background: var(--accent-deep);
  overflow: hidden;
}
.spot-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.spot-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spot-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 3;
  pointer-events: none;
}
.spot-arrows button {
  pointer-events: auto;
  appearance: none;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.spot-item:hover .spot-arrows button,
.spot-media:focus-within .spot-arrows button {
  opacity: 1;
  transform: translateY(0);
}
.spot-arrows button:active { background: var(--accent); color: #fff; }
.spot-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.spot-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: all 0.3s ease;
}
.spot-dots i.is-on {
  background: #fff;
  width: 24px;
  border-radius: 99px;
}
/* 触摸时始终显示箭头（移动端） */
@media (hover: none) {
  .spot-arrows button { opacity: 0.9; transform: none; }
}

/* --- 信息区 --- */
.spot-info {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spot-count {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.spot-name {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  margin: 0 0 14px;
}
.spot-zh { color: var(--accent); font-size: 13px; letter-spacing: 2px; font-weight: 600; }
.spot-desc { color: var(--ink-soft); margin: 0 0 20px; max-width: 460px; }
.spot-fee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}
.spot-fee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.spot-fee b { font-size: 16px; }

/* ============================================================
   S2 · 信息卡片网格（交通/住宿）
   ============================================================ */
.info-grid { padding: 0 20px 40px; max-width: 1120px; margin: 0 auto; }
.info-kind {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
  margin: 34px 0 16px;
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 18px 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--accent);
}
.info-card h4 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 6px;
}
.info-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.info-card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 14px; }
.fee {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  margin-top: 6px;
}

/* ============================================================
   S3 · Eat 纵向卡片（左图轮播 + 右文）—— 同 Discover 布局
   ============================================================ */
.eat-list {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 44px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.eat-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.eat-item:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.eat-item:nth-child(even) .eat-media { order: 2; }
.eat-item:nth-child(even) .eat-info  { order: 1; }
.eat-media {
  position: relative;
  min-height: 280px;
  aspect-ratio: 4 / 3;
  background: var(--accent-deep);
  overflow: hidden;
}
.eat-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.eat-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eat-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  z-index: 3;
  pointer-events: none;
}
.eat-arrows button {
  pointer-events: auto;
  appearance: none;
  border: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.eat-item:hover .eat-arrows button,
.eat-media:focus-within .eat-arrows button { opacity: 1; transform: translateY(0); }
.eat-arrows button:active { background: var(--accent); color: #fff; }
@media (hover: none) {
  .eat-arrows button { opacity: 0.9; transform: none; }
}
.eat-dots {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.eat-dots i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: all 0.3s ease;
}
.eat-dots i.is-on {
  background: #fff;
  width: 24px;
  border-radius: 99px;
}
.eat-info {
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eat-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.eat-info h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 0 0 4px;
}
.eat-cn { color: var(--accent); font-size: 13px; letter-spacing: 2px; font-weight: 600; margin-bottom: 12px; }
.eat-info p { color: var(--ink-soft); margin: 0; max-width: 460px; }

/* ---------- 详情入口按钮（价格行右下角 / Eat 右下角） ---------- */
.spot-fee-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}
.detail-btn {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 38px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.detail-btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,0.22); }

/* ============================================================
   详情弹层对话框（大画幅 · 纵向滚动 · 一行一图配描述）
   ============================================================ */
.detail-dialog {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 16, 14, 0.62);
  backdrop-filter: blur(6px);
}
.detail-dialog.is-open { display: flex; animation: dialogIn 0.35s ease both; }
@keyframes dialogIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.detail-card {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  max-width: min(940px, 94vw);
  width: 100%;
  height: min(920px, 92vh); /* 明确高度，配合内部绝对定位滚动 */
  box-shadow: var(--shadow-2);
}
.detail-close {
  appearance: none;
  border: 0;
  position: absolute;
  top: 14px; right: 14px;
  z-index: 6;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.detail-close:hover { background: #fff; color: var(--accent); }
.detail-scroll {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 40px 46px;
}
.dhead { margin-bottom: 8px; }
.dhead h3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  margin: 0 0 6px;
}
.detail-zh { color: var(--accent); font-size: 13px; letter-spacing: 2px; font-weight: 600; }

/* 一行 = 一张图片 + 一段描述 */
.detail-block { margin: 26px 0 0; }
.detail-block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: var(--shadow-1);
}
.detail-block figcaption {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 720px;
}
.detail-block figcaption b { color: var(--ink); font-weight: 600; }

/* 移动端：弹层更紧凑 */
@media (max-width: 700px) {
  .detail-dialog { padding: 10px; }
  .detail-card { height: min(900px, 94vh); border-radius: 16px; }
  .detail-scroll { padding: 10px 20px 34px; }
  .detail-block img { aspect-ratio: 4 / 3; }
  .spot-fee-row { flex-wrap: wrap; }
}

/* ============================================================
   S4 · Tips 双栏
   ============================================================ */
.tips-grid {
  padding: 0 20px 40px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 22px;
}
.tip-col { border-radius: 16px; border: 1px solid var(--line); padding: 24px; }
.tip-col.is-save { background: var(--accent-soft); border-color: var(--accent); }
.tip-col.is-cave { background: var(--card); }
.tip-col h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tip-col.is-cave h4 { color: var(--accent); }
.tip-col ul { margin: 0; padding-left: 20px; }
.tip-col li { margin: 10px 0; font-size: 15px; color: var(--ink-soft); }
.tip-col li b { color: var(--ink); }

/* ---------- 页脚分隔（山脉主色渐变） ---------- */
.detail-footer {
  border-top: 0;
  background: var(--accent-deep);
  color: #fff;
  margin-top: 20px;
  padding: 44px 20px 36px;
}

/* ---------- 移动端 ---------- */
@media (max-width: 820px) {
  .spot-item,
  .eat-item {
    grid-template-columns: 1fr;
  }
  .spot-item:nth-child(even) .spot-media { order: 0; }
  .spot-item:nth-child(even) .spot-info  { order: 0; }
  .eat-item:nth-child(even) .eat-media { order: 0; }
  .eat-item:nth-child(even) .eat-info  { order: 0; }
  .spot-media { min-height: 240px; aspect-ratio: 16 / 10; }
  .eat-media { min-height: 220px; aspect-ratio: 4 / 3; }
  .spot-info, .eat-info { padding: 22px 22px 26px; }
  .spot-arrows button, .eat-arrows button { opacity: 0.9; transform: none; }
}
@media (max-width: 700px) {
  .attr-head { padding-top: 40px; }
  .section-nav button { padding: 14px 14px; font-size: 13px; }
  .section-nav button::after { left: 14px; right: 14px; }
}