/* 在大理爱上生活 - 全站样式 v2 (高端感升级版) */

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

:root {
  --primary: #2d5a3d;      /* 苍山绿 */
  --accent: #c8956d;        /* 暖驼色 */
  --bg: #faf8f4;            /* 米白 */
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --border: #e5e1d8;
  --max-width: 1200px;

  /* 大理色 + 衬线字体 */
  --cangshan-green: #2d5a3d;
  --erhai-blue: #4a7a8c;
  --zharan-blue: #3d5a80;
  --dali-sand: #c8956d;
  --paper: #faf6f0;
}

body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Serif SC", "Noto Serif CJK SC", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ===== 顶部导航 ===== */
.site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
  backdrop-filter: blur(10px);
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", serif;
  letter-spacing: 0.5px;
}
.logo small {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
  margin-top: 2px;
  letter-spacing: 2px;
  font-family: -apple-system, sans-serif;
}
.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary);
}
.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* ===== 主容器 ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Hero — 真实摄影感 ===== */
.hero {
  background:
    linear-gradient(135deg, rgba(45, 90, 61, 0.55) 0%, rgba(74, 122, 140, 0.45) 100%),
    url('/assets/img/hero-dali.jpg') center/cover;
  background-color: #2d5a3d;
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.hero h1 {
  font-size: 52px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.95);
  max-width: 720px;
  margin: 0 auto 32px;
  position: relative;
  line-height: 1.8;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero .breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  position: relative;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero .breadcrumb a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* 内页柔和 hero */
.hero-soft {
  background: var(--paper);
  padding: 60px 24px 40px;
  color: var(--text);
}
.hero-soft h1 {
  color: var(--primary);
  text-shadow: none;
  font-size: 40px;
}
.hero-soft p {
  color: var(--text-light);
  text-shadow: none;
}
.hero-soft .breadcrumb {
  color: var(--text-light);
}
.hero-soft .breadcrumb a {
  color: var(--primary);
  border-bottom-color: var(--border);
}

/* ===== 区块 ===== */
section {
  padding: 60px 0;
}
.section-paper {
  background: var(--paper, #faf6f0);
  padding: 60px 0;
  border-top: 1px solid var(--border, #e5e1d8);
  border-bottom: 1px solid var(--border, #e5e1d8);
}
.section-title {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", serif;
  font-weight: 600;
  letter-spacing: 1px;
}
.section-subtitle {
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  font-size: 15px;
  letter-spacing: 1px;
}

/* ===== 卡片网格 ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(45, 90, 61, 0.18);
  border-color: var(--accent);
}
.list-card { box-shadow: 0 2px 8px rgba(45, 90, 61, 0.06); }
.card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--accent) 0%, #b08560 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%);
}
.card-content {
  padding: 20px 24px 24px;
}
.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", serif;
  color: var(--primary);
}
.card-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.card-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}
.card-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
  transition: letter-spacing 0.2s;
}
.card-link:hover { letter-spacing: 0.5px; }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg);
  color: var(--text-light);
  font-size: 12px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 500;
}
.tag.featured {
  background: var(--accent);
  color: white;
}

/* ===== 文章/正文样式 ===== */
.article, .story {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 24px;
}
.article h1, .story h1 {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 12px;
  font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
}
.article h2, .story h2 {
  font-size: 24px;
  color: var(--primary);
  margin: 40px 0 16px;
  font-family: "Source Han Serif SC", serif;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.article h3, .story h3 {
  font-size: 19px;
  color: var(--cangshan-green);
  margin: 24px 0 10px;
  font-weight: 600;
}
.article p, .story p {
  margin: 14px 0;
  line-height: 1.85;
  color: var(--text);
  font-size: 16px;
}
.article ul, .article ol, .story ul, .story ol {
  margin: 14px 0 14px 28px;
  line-height: 1.85;
}
.article li, .story li {
  margin: 6px 0;
}
.article blockquote, .story blockquote {
  border-left: 3px solid var(--accent);
  background: var(--paper);
  padding: 12px 20px;
  margin: 20px 0;
  color: var(--text-light);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}
.article-meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin: 16px 0 8px;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ===== 推荐块 ===== */
.recommend-box {
  background: linear-gradient(135deg, var(--paper) 0%, #f0e9d8 100%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 32px 36px;
  margin: 40px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(200, 149, 109, 0.1);
}
.recommend-box h3 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 12px;
  font-family: "Source Han Serif SC", serif;
}
.recommend-box p {
  color: var(--text);
  line-height: 1.8;
  margin: 8px 0 16px;
}
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
  font-size: 15px;
}
.btn:hover {
  background: #1e3f2a;
  transform: translateY(-1px);
}

/* ===== 评分显示 ===== */
.rating { color: var(--accent); font-weight: 600; }
.stars { color: var(--accent); letter-spacing: 1px; }

/* ===== 故事板块专用 ===== */
.story-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
  padding: 16px 20px;
  background: var(--paper);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-light);
}
.story-type, .story-room, .story-date, .story-rating {
  padding-right: 16px;
  border-right: 1px solid var(--border);
}
.story-rating { border-right: none; color: var(--accent); font-weight: 600; }
.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.story-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.2s;
}
.story-gallery img:hover { transform: scale(1.02); }
.story-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
}
.story-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--cangshan-green);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 16px;
  font-family: "Source Han Serif SC", serif;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--dali-sand); }
.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}
.copyright {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== 表格 ===== */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--cangshan-green);
  color: white;
  font-weight: 600;
  font-size: 14px;
}
tr:nth-child(even) { background: var(--paper); }

/* ===== 图片缩略图 / 旅居卡片 ===== */
.img-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
  display: block;
  background: #eee;
}
.img-hero {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 16px 0;
}
.luju-callout {
  background: linear-gradient(135deg, #2d5a3d 0%, #4a7a5d 100%);
  color: white;
  padding: 36px;
  border-radius: 10px;
  margin: 32px 0;
  text-align: center;
}
.luju-callout h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: white;
}
.luju-callout p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto 16px;
}
.luju-callout .btn {
  background: white;
  color: var(--primary);
  font-weight: 600;
}
.luju-pill {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  margin: 4px 4px 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 16px; }
  .section-title { font-size: 26px; }
  .article h1, .story h1 { font-size: 30px; }
  .nav-menu { gap: 14px; }
  .nav-menu a { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== 列表卡片特殊样式 ===== */
.card-img-real {
  position: relative;
  background-color: var(--cangshan-green);
}
.card-img-real::after {
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
}
.emoji-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.tag-sm {
  display: inline-block;
  padding: 2px 8px;
  background: var(--paper);
  color: var(--primary);
  font-size: 12px;
  border-radius: 3px;
  font-weight: 500;
}
.price { color: var(--accent); font-weight: 600; }
.list-card .card-img { transition: transform 0.3s; }
.list-card:hover .card-img { transform: scale(1.03); }
