/* ===== Hunan Travel Guide 样式表 ===== */

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

:root {
  --dark: #2b2b2b;
  --cream: #f2f0ec;
  --card: #ffffff;
  --accent: #b8a24a;
  --accent-hover: #a08c3a;
  --text: #3a3a3a;
}

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }

/* ===== Header nav bar ===== */
.topbar {
  background: #6b6b6b;
  padding: 10px 12px;
}
.topbar .bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #6e7d0c;
  border-radius: 0;
  padding: 6px 10px;
}
.topbar .brand {
  background: #3d3d3d;
  color: #cfcfcf;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; letter-spacing: 2px;
  padding: 10px 26px; border-radius: 30px;
}
.topbar .menu { position: relative; display: flex; align-items: center; gap: 36px; }
.topbar .menu .item {
  position: relative; z-index: 2;
  text-decoration: none; font-size: 0.95rem; color: #fff;
  padding: 10px 40px; border-radius: 30px;
}

/* ===== Intro strip under header ===== */
.intro {
  background: #6b6b6b;
  padding: 90px 120px;
}
.intro p {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }

/* ===== 黄色按钮 ===== */
.btn {
  display: inline-block; margin-top: 18px;
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: 30px;
  text-decoration: none; font-size: 0.8rem; letter-spacing: 1px;
  transition: all .25s ease;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(184,162,74,.4);
}

/* ===== 通用卡片 ===== */
.card {
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  margin: 36px 0;
  overflow: hidden;
}
.card .media img { width: 100%; height: 260px; object-fit: cover; display: block; }
.card .body { padding: 40px 48px; }
.card h2 { font-size: 1.5rem; margin-bottom: 18px; color: #222; }
.card h3 { font-size: 1rem; margin: 18px 0 6px; color: #222; }
.card p { font-size: 0.92rem; margin-bottom: 12px; color: #444; }
.card .btn { float: right; }

.card.flip .inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; align-items: stretch; }
.card.flip .media img { height: 100%; min-height: 320px; }

/* 普通左右布局：左图右文 */
.card .inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; align-items: stretch; }
.card .inner .media img { height: 100%; min-height: 320px; }

.card.circle .inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 40px 48px; gap: 40px; }
.card.circle .media img {
  width: 320px; height: 320px; border-radius: 50%; object-fit: cover;
  margin: 0 auto; display: block;
}

/* ===== 板块一：深色底 + 左侧半椭圆图片 ===== */
.card.featured {
  background: #2b2b2b;
  overflow: visible;
  position: relative;
  border-radius: 6px;
}
.card.featured .photo {
  position: absolute;
  top: -30px; bottom: 0; left: 0;
  width: 52%;
  overflow: hidden;
  border-top-right-radius: 50% 100%;
  border-bottom-right-radius: 50% 100%;
}
.card.featured .photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card.featured .body {
  margin-left: 50%;
  padding: 40px 48px;
  overflow: hidden;
}
.card.featured h2 {
  color: #fff; font-size: 1.5rem;
  text-transform: uppercase; text-align: center; margin-bottom: 18px;
}
.card.featured h3 {
  color: #fff; font-size: 0.9rem; margin: 18px 0 6px;
}
.card.featured p { color: #e8e8e8; font-size: 0.8rem; line-height: 1.7; margin-bottom: 12px; }
.card.featured .btn {
  background: var(--accent); color: #222; float: right; margin-top: 50px;
}

/* ===== 板块二：上图下文，标题左按钮右 ===== */
.card.topcard .top-photo { margin: 30px 48px 0; }
.card.topcard .top-photo img {
  width: 100%; height: 320px; object-fit: cover; border-radius: 10px;
}
.card.topcard .head-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; gap: 20px;
}
.card.topcard .head-row h2 { color: #b5b5b5; margin-bottom: 0; }
.card.topcard .head-row .btn {
  float: none; margin-top: 0;
  background: var(--accent); color: #222; white-space: nowrap;
}

/* ===== 板块三：左文右图（右半圆），按钮右下 ===== */
.card.basin { position: relative; }
.card.basin .body { width: 52%; padding-top: 80px; padding-bottom: 40px; }
.card.basin .body h2 { color: #b5b5b5; }
.card.basin .half-photo {
  position: absolute; top: 50px; right: -10%;
  width: 60%; height: 75%;
  border-radius: 50%;
  overflow: hidden;
}
.card.basin .half-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.basin .btn {
  position: absolute; right: 70px; bottom: 45px;
  float: none; margin: 0;
  background: var(--accent); color: #222;
}

/* ===== 板块四：左文右图竖长图，按钮左下对齐 ===== */
.card.mountain { display: grid; grid-template-columns: 1.25fr 1fr; }
.card.mountain .body { padding: 70px 48px 60px; }
.card.mountain .body h2 { color: #b5b5b5; }
.card.mountain .side-photo {
  margin: 20px 20px 20px 0;
  border-radius: 10px; overflow: hidden;
}
.card.mountain .side-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.card.mountain .btn {
  float: none; display: block; width: fit-content;
  margin: 30px 0 0;
  background: var(--accent); color: #222;
}

/* ===== 代表性植物小卡片 ===== */
.entry-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
}
/* 两个小卡片时：两列并排，总宽等于一个大板块 */
.entry-wrap.duo { grid-template-columns: repeat(2, 1fr); }
.entry {
  background: var(--card);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.entry .entry-img { min-height: 0; }
.entry .entry-img img { width: 100%; height: 180px; object-fit: cover; display: block; }
.entry .entry-body { padding: 24px 26px; }
.entry .entry-body h3 { font-size: 1.05rem; color: #222; margin-bottom: 10px; }
.entry .entry-body .lead { font-size: 0.85rem; color: #444; line-height: 1.65; margin-bottom: 10px; }
.entry .entry-body h4 { font-size: 0.88rem; color: #b5b5b5; margin: 12px 0 4px; font-family: 'Playfair Display', Georgia, serif; }
.entry .entry-body p { font-size: 0.83rem; color: #444; line-height: 1.65; margin-bottom: 8px; }

/* ===== About / Contact / Footer ===== */
.about { background: var(--dark); color: #ccc; }
.about .wrap { max-width: 900px; padding: 60px 24px; }
.about h2 { color: #fff; font-size: 1.6rem; margin-bottom: 16px; }
.about p { font-size: 0.9rem; color: #aaa; }

.contact .wrap { max-width: 900px; }
.contact h2 { font-size: 1.6rem; margin-bottom: 20px; }
.contact .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact p { font-size: 0.9rem; color: #555; margin-bottom: 8px; }
.foot { text-align: center; padding: 24px; font-size: 0.85rem; color: #888; border-top: 1px solid #ddd; }

/* ===== 响应式 ===== */
@media (max-width: 820px) {
  .topbar .bar { flex-direction: column; gap: 12px; }
  .topbar .menu { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .topbar .menu .item { padding: 8px 20px; }
  .intro { padding: 50px 28px; }
  .wrap { padding: 24px 14px; }
  .card { margin: 24px 0; }
  .card .inner, .card.flip .inner, .card.circle .inner, .card.mountain,
  .about .wrap, .contact .cols { grid-template-columns: 1fr; }
  .card .body { padding: 28px 24px; }
  .card .btn { float: none; margin-top: 20px; }

  .card.circle .media img { width: 220px; height: 220px; }

  /* 板块一 */
  .card.featured { min-height: 0; }
  .card.featured .photo {
    position: relative; top: 0; left: 0;
    width: 100%; height: 260px;
    border-radius: 0;
    border-bottom-right-radius: 50% 100%;
  }
  .card.featured .body { margin-left: 0; padding: 30px 24px; }

  /* 板块二 */
  .card.topcard .top-photo { margin: 20px 20px 0; }
  .card.topcard .top-photo img { height: 220px; }
  .card.topcard .head-row { flex-direction: column; align-items: flex-start; }

  /* 板块三：图片移到上方，按钮回归文档流 */
  .card.basin .body { width: 100%; padding-top: 30px; padding-bottom: 24px; }
  .card.basin .half-photo {
    position: relative; top: auto; right: auto;
    width: auto; height: 240px;
    margin: 20px 20px 0;
    border-radius: 10px;
  }
  .card.basin .btn {
    position: static; right: auto; bottom: auto;
    float: none; margin: 20px 0 0;
  }

  /* 板块四 */
  .card.mountain .side-photo { margin: 0 20px 20px; height: 240px; }
  .card.mountain .body { padding: 40px 24px 24px; }
  .card.mountain .btn { margin: 20px auto 0; }

  /* 植物小卡片：窄屏变单列 */
  .entry-wrap, .entry-wrap.duo { grid-template-columns: 1fr; }
}

/* ===== 手机端适配（≤480px） ===== */
@media (max-width: 480px) {
  .topbar { padding: 8px; }
  .topbar .brand { font-size: 0.85rem; padding: 8px 18px; }
  .topbar .menu { gap: 8px; }
  .topbar .menu .item { padding: 6px 14px; font-size: 0.88rem; }

  .intro { padding: 36px 18px; }
  .intro p { font-size: 0.95rem; line-height: 1.7; }

  .wrap { padding: 18px 10px; }
  .card { margin: 18px 0; border-radius: 4px; }
  .card .body { padding: 22px 18px; }
  .card h2 { font-size: 1.25rem; margin-bottom: 12px; }
  .card h3 { font-size: 0.92rem; margin: 14px 0 4px; }
  .card p { font-size: 0.88rem; line-height: 1.6; margin-bottom: 10px; }
  .btn { padding: 10px 22px; font-size: 0.75rem; }

  /* 板块一 */
  .card.featured .photo { height: 200px; }
  .card.featured .body { padding: 24px 18px; }

  /* 板块二 */
  .card.topcard .top-photo { margin: 14px 14px 0; }
  .card.topcard .top-photo img { height: 170px; border-radius: 8px; }
  .card.topcard .head-row h2 { font-size: 1.15rem; }

  /* 板块三 */
  .card.basin .half-photo { height: 190px; margin: 14px 14px 0; }

  /* 板块四 */
  .card.mountain .side-photo { height: 190px; margin: 0 14px 14px; }

  /* 植物小卡片 */
  .entry-wrap { gap: 14px; margin: 24px 0; }
  .entry .entry-img img { height: 140px; }
  .entry .entry-body { padding: 18px 16px; }
  .entry .entry-body h3 { font-size: 0.98rem; }
  .entry .entry-body .lead { font-size: 0.83rem; }
  .entry .entry-body p { font-size: 0.81rem; }

  /* About / Contact */
  .about .wrap { padding: 40px 18px; }
  .about h2, .contact h2 { font-size: 1.35rem; }
  .contact .cols { gap: 24px; }
  .foot { padding: 18px; font-size: 0.8rem; }
}
