/* ===== 景迈山专题页 ===== */
.jingmai-page {
  --jm-primary: #2d5016;
  --jm-primary-light: #e8f5e0;
  --jm-accent: #8b6914;
  --jm-hero-overlay: linear-gradient(135deg, rgba(20, 40, 10, 0.85) 0%, rgba(45, 80, 22, 0.75) 50%, rgba(60, 100, 30, 0.65) 100%);
}

.jm-header {
  background: rgba(255, 255, 255, 0.95);
}

.jm-header .logo {
  color: var(--jm-primary);
  text-decoration: none;
}

.jm-nav .nav-link:hover {
  color: var(--jm-primary);
}

.jm-nav .btn-outline {
  color: var(--jm-primary);
  border-color: var(--jm-primary);
}

.jm-nav .btn-outline:hover {
  background: var(--jm-primary-light);
}

/* 英雄区 */
.jm-hero {
  position: relative;
  margin-top: var(--header-h);
  padding: 72px 0 56px;
  overflow: hidden;
}

.jm-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--jm-hero-overlay),
    url('https://images.unsplash.com/photo-1564890369478-c89ca6d9cde9?w=1600&q=80') center/cover;
  z-index: 0;
}

.jm-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  max-width: 720px;
}

.jm-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}

.jm-hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.jm-hero-desc {
  font-size: 17px;
  opacity: 0.92;
  line-height: 1.7;
  margin-bottom: 32px;
}

.jm-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.jm-stat {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  backdrop-filter: blur(4px);
}

.jm-stat strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.jm-stat span {
  font-size: 12px;
  opacity: 0.85;
}

/* 区块 */
.jm-section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin: -16px auto 32px;
  max-width: 560px;
}

.jm-section-alt {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* 交通卡片 */
.jm-transport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.jm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.jm-card-highlight {
  grid-column: 1 / -1;
  border-color: #a3c987;
  background: linear-gradient(135deg, #fafff7 0%, var(--jm-primary-light) 100%);
}

.jm-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.jm-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--jm-primary);
}

.jm-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.65;
}

.jm-card p strong {
  color: var(--text);
}

.jm-list {
  margin: 12px 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.jm-list li {
  margin-bottom: 4px;
}

/* 景点列表 */
.jm-spots-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.jm-spot {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}

.jm-spot:hover {
  box-shadow: var(--shadow-lg);
}

.jm-spot-num {
  width: 48px;
  height: 48px;
  background: var(--jm-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.jm-spot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.jm-spot-header h3 {
  font-size: 20px;
  color: var(--text);
}

.jm-tag {
  padding: 3px 10px;
  background: var(--jm-primary-light);
  color: var(--jm-primary);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.jm-spot-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.jm-spot-body > p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.jm-spot-tips {
  font-size: 13px;
  color: #92400e;
  background: var(--accent-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin-bottom: 10px;
}

/* 时间线行程 */
.jm-timeline {
  position: relative;
  padding-left: 32px;
  margin-bottom: 32px;
}

.jm-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--jm-primary), #6b8e4e);
}

.jm-time-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.jm-time-item::before {
  content: '';
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--jm-primary);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--jm-primary-light);
}

.jm-time {
  font-size: 14px;
  font-weight: 700;
  color: var(--jm-primary);
  padding-top: 2px;
}

.jm-time-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.jm-time-content h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.jm-time-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.jm-notice {
  background: var(--jm-primary-light);
  border: 1px solid #a3c987;
  border-radius: var(--radius);
  padding: 24px;
}

.jm-notice h4 {
  font-size: 16px;
  color: var(--jm-primary);
  margin-bottom: 12px;
}

.jm-notice ul {
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.jm-notice li {
  margin-bottom: 6px;
}

/* 摘要卡片 */
.jm-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.jm-summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.jm-summary-card h4 {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--jm-primary);
}

.jm-summary-card ul {
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.jm-summary-card li {
  margin-bottom: 6px;
}

.jm-footer {
  background: var(--jm-primary);
}

.jm-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.jm-footer a:hover {
  text-decoration: underline;
}

/* 手机端 */
.is-mobile .jm-nav {
  display: none;
}

.is-mobile .jm-hero-stats {
  grid-template-columns: repeat(2, 1fr);
}

.is-mobile .jm-transport-grid,
.is-mobile .jm-summary-grid {
  grid-template-columns: 1fr;
}

.is-mobile .jm-card-highlight {
  grid-column: auto;
}

.is-mobile .jm-spot {
  grid-template-columns: 1fr;
  gap: 12px;
}

.is-mobile .jm-spot-num {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.is-mobile .jm-time-item {
  grid-template-columns: 1fr;
  gap: 6px;
  padding-left: 0;
}

.is-mobile .jm-timeline {
  padding-left: 24px;
}

.is-mobile .jm-time-item::before {
  left: -17px;
}

.is-mobile body.jingmai-page {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom));
}

@media (max-width: 768px) {
  .jm-hero {
    padding: 48px 0 36px;
  }

  .jm-hero h1 {
    font-size: 24px;
  }
}
