/* =============================================================================
 *  04-modules.css — 内容模块专用样式（首页路径卡、亮点、词汇表、路线卡等）
 * ========================================================================== */

/* ------------------------------------------------------- 首页：三条「从哪里开始」 */
.paths { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.path {
  position: relative; overflow: hidden;
  border-radius: var(--radius); padding: 22px;
  background: var(--paper-2); border: 1px solid var(--line);
}
.path::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.path h3 { font-size: 18px; margin-bottom: 6px; }
.path p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.path .path-emoji { font-size: 26px; }

/* ------------------------------------------------------- 首页：为什么看这个站 */
.why { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.why-item { background: var(--paper-3); border-radius: var(--radius); padding: 18px; }
.why-item b { display: block; font-size: 16px; margin-bottom: 4px; font-family: var(--font-display); }
.why-item p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.why-num {
  font-family: var(--font-display); font-size: 30px; color: var(--accent);
  opacity: .35; display: block; line-height: 1; margin-bottom: 6px;
}

/* ------------------------------------------------------- 首页：精选大卡 */
.featured {
  display: grid; gap: 0; grid-template-columns: 1fr;
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper-2);
}
.featured .f-text { padding: 26px; }
.featured .f-visual {
  min-height: 190px; display: grid; place-items: center; font-size: 60px;
  background: linear-gradient(140deg, var(--accent-soft), var(--paper-3));
}
.featured h3 { font-size: 20px; }
.featured ul { margin: 12px 0 16px; }

/* ------------------------------------------------------- 亮点数字条 */
.stat-strip {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--paper-3); border-radius: var(--radius); padding: 18px; margin: 24px 0;
}
.stat-strip div b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--accent-2); }
.stat-strip div span { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------- 签证：资格速查卡 */
.elig {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 18px 0;
}
.elig-item { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px; background: var(--paper-2); }
.elig-item .q { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.elig-item .a { font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------- 流程条（出发前→回国） */
.flow {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 22px 0 8px;
}
.flow-step {
  text-align: center; padding: 14px 10px; border-radius: var(--radius-s);
  background: var(--paper-2); border: 1px solid var(--line); font-size: 14px;
}
.flow-step b { display: block; font-size: 15px; font-family: var(--font-display); }
.flow-step .fnum {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; margin-bottom: 6px;
}

/* ------------------------------------------------------- 词汇表 */
.glossary { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.gloss-item { border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.gloss-item b { font-size: 16px; }
.gloss-item .py { color: var(--accent-2); font-size: 13.5px; margin-inline-start: 6px; }
.gloss-item p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------- 路线卡 */
.route {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2); padding: 20px; margin-bottom: 16px;
}
.route-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; }
.route-head h3 { margin: 0; font-size: 19px; }
.route-head .days { font-size: 13px; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.route ol { margin: 12px 0 0; padding-inline-start: 20px; font-size: 15px; }
.route ol li { margin-bottom: 6px; }

/* ------------------------------------------------------- 民族卡 */
.ethnic-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.ethnic-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.ethnic-card h3 { font-size: 17px; margin-bottom: 2px; }
.ethnic-card .where { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ethnic-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------- 目的地卡 */
.dest-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.dest-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dest-card .dest-emoji {
  height: 96px; display: grid; place-items: center; font-size: 40px;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper-3));
}
.dest-card .dest-body { padding: 16px; }
.dest-card h3 { font-size: 17.5px; margin-bottom: 4px; }
.dest-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ------------------------------------------------------- 引用 / 出处 */
.sources { font-size: 14px; color: var(--muted); }
.sources ul { padding-inline-start: 18px; }
.disclaimer {
  margin-top: 26px; padding: 14px 16px; font-size: 13.5px; color: var(--muted);
  background: var(--paper-3); border-radius: var(--radius-s);
}

/* ------------------------------------------------------- 相关阅读 */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 30px; }
.related a {
  display: block; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: var(--paper-2); font-size: 14.5px; font-weight: 600;
}
.related a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-2); }

/* ================================================================ 目的地详情页 */
.dest-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.dest-head-emoji {
  flex: 0 0 auto; font-size: 46px; line-height: 1;
  width: 74px; height: 74px; display: grid; place-items: center;
  border-radius: var(--radius); background: linear-gradient(135deg, var(--accent-soft), var(--paper-3));
}
.dest-head h1 { margin-bottom: 4px; }

.back-link-wrap { margin: 0 0 16px; }
.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* 可点击的目的地卡片 */
a.dest-card {
  display: block; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.dest-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.10); }
a.dest-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dest-go { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
a.dest-card:hover .dest-go { text-decoration: underline; }

/* 速览事实框 */
.facts {
  list-style: none; margin: 16px 0 0; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper-2); overflow: hidden;
}
.facts li {
  display: grid; grid-template-columns: 148px 1fr; gap: 12px;
  padding: 11px 14px; font-size: 14.5px; border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 0; }
.fact-k { color: var(--muted); font-weight: 600; }
.fact-v { color: var(--ink-2); }

/* 打勾清单（景点等） */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 24px; font-size: 15px; color: var(--ink-2); }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.ticks li b { color: var(--ink); }

/* 底部「更多目的地」 */
#dest-more { margin-top: 28px; }
.strip-title { font-size: 17px; margin: 0 0 10px; }
.dest-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); gap: 10px; margin-bottom: 24px; }
.dest-chip {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper-2); text-decoration: none; color: inherit;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.dest-chip:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.dest-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dest-chip-emoji { font-size: 22px; line-height: 1.1; }
.dest-chip-name { font-size: 14.5px; font-weight: 600; }
.dest-chip-native { font-size: 12.5px; color: var(--muted); }
