/* ============================================================
   山野之间 · 全局样式表 (前端统一品牌样式)
   覆盖: index / activities / booking / dining / guide / activity-detail
   自包含页面(about/rooms/room-detail/contact)内联样式优先, 本表不冲突
   品牌色: 陶土棕 #C68E5B / 松石绿 #2F4F4F / 米色 #FDF8F3 / 暖橙 #E8A87C
   ============================================================ */

:root {
  --c-primary: #C68E5B;
  --c-primary-dark: #B07A4A;
  --c-deep: #2F4F4F;
  --c-cream: #FDF8F3;
  --c-accent: #E8A87C;
  --c-text: #3D3D3D;
  --c-muted: #666;
  --c-line: #EADFD2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(47, 79, 79, 0.10);
  --maxw: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background: var(--c-cream);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, h4 { font-family: Georgia, "Songti SC", serif; color: var(--c-deep); line-height: 1.3; }

/* ---------- 通用布局 ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--c-cream); }
.text-center { text-align: center; }

.section-title { font-size: 34px; color: var(--c-deep); margin-bottom: 18px; }
.section-subtitle { font-size: 18px; color: var(--c-muted); margin-bottom: 48px; }

/* ---------- 按钮 ---------- */
.btn-primary, .btn-enroll, .btn-book {
  display: inline-block; background: var(--c-primary); color: #fff;
  border: none; border-radius: 10px; padding: 13px 28px; font-size: 15px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .3s, transform .2s;
}
.btn-primary:hover, .btn-enroll:hover, .btn-book:hover { background: var(--c-primary-dark); transform: translateY(-2px); }

.btn-outline, .btn-secondary {
  display: inline-block; background: transparent; color: var(--c-primary);
  border: 2px solid var(--c-primary); border-radius: 10px; padding: 11px 24px;
  font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: all .3s;
}
.btn-outline:hover, .btn-secondary:hover { background: var(--c-primary); color: #fff; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-block; background: rgba(198, 142, 91, .12); color: var(--c-primary);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; margin: 4px 6px 4px 0;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.glass-effect { background: rgba(255, 255, 255, .85) !important; backdrop-filter: blur(12px); }
.logo { font-family: Georgia, serif; font-size: 24px; color: var(--c-primary); font-weight: bold; text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--c-text); font-weight: 500; transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--c-primary); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--c-deep); }

/* ---------- 首页 Hero (CSS 渐变, 不依赖图片) ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 70% 20%, rgba(232, 168, 124, .55), transparent 60%),
    linear-gradient(135deg, #2F4F4F 0%, #3d6b5f 45%, #C68E5B 130%);
}
.hero-content { position: relative; text-align: center; color: #fff; padding: 0 20px; max-width: 760px; }
.hero-title { font-size: 56px; color: #fff; margin-bottom: 16px; text-shadow: 0 2px 16px rgba(0,0,0,.25); }
.hero-subtitle { font-size: 20px; opacity: .92; margin-bottom: 36px; }

.booking-card {
  background: rgba(255, 255, 255, .95); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow); text-align: left; max-width: 520px; margin: 0 auto;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--c-muted); margin-bottom: 6px; }
.form-group input, .form-group select, .form-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--c-line);
  border-radius: 10px; font-size: 14px; background: #fff; color: var(--c-text);
}

/* ---------- 品牌故事 ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story-text .lead { font-size: 18px; color: var(--c-primary); font-weight: 500; margin-bottom: 18px; }
.story-heading { font-size: 26px; margin-bottom: 14px; }
.story-desc { color: var(--c-muted); margin-bottom: 20px; }
.story-tags { margin-top: 18px; }
.story-image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.story-highlights { display: flex; gap: 36px; margin-top: 28px; flex-wrap: wrap; }
.highlight-item { text-align: center; }
.highlight-number { display: block; font-size: 34px; font-weight: bold; color: var(--c-primary); }
.highlight-label { font-size: 14px; color: var(--c-muted); }

/* ---------- 房型 (首页列表) ---------- */
.room-types, .activities, .reviews { }
.room-grid, .activity-grid, .review-grid {
  display: grid; gap: 28px;
}
.room-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.room-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.room-card:hover { transform: translateY(-8px); box-shadow: 0 12px 36px rgba(47,79,79,.16); }
.room-image, .room-image img { width: 100%; height: 240px; object-fit: cover; }
.room-image { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; position: relative; }
.badge-warning { position: absolute; top: 12px; left: 12px; background: #E8A87C; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.room-info { padding: 22px; }
.room-name { font-size: 22px; margin-bottom: 8px; }
.room-desc { color: var(--c-muted); margin-bottom: 14px; font-size: 14px; }
.room-features { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; color: var(--c-muted); font-size: 14px; }
.room-price { font-size: 26px; color: var(--c-accent); font-weight: bold; }
.room-price .price, .price { font-size: 26px; color: var(--c-accent); font-weight: bold; }
.price-unit { font-size: 14px; color: var(--c-muted); font-weight: normal; }
.room-actions { display: flex; gap: 10px; margin-top: 16px; }
.room-actions .btn-outline, .room-actions .btn-primary { flex: 1; text-align: center; }

/* ---------- 活动 (首页卡片) ---------- */
.activity-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.activity-card { background: #fff; padding: 30px 24px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); transition: transform .3s; }
.activity-card:hover { transform: translateY(-6px); }
.activity-icon { font-size: 44px; margin-bottom: 14px; }
.activity-card h3 { font-size: 19px; margin-bottom: 8px; }
.activity-card p { color: var(--c-muted); font-size: 14px; }

/* ---------- 客户评价 ---------- */
.review-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.review-card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar, .review-header .avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--c-line); }
.review-header h4 { font-size: 16px; }
.review-meta { color: var(--c-muted); font-size: 13px; margin: 2px 0 0; }
.review-content { color: #555; font-size: 15px; }

/* ---------- 页脚 (两种结构兼容) ---------- */
.footer { background: var(--c-deep); color: #fff; padding: 60px 0 28px; margin-top: 60px; }
.footer-grid, .footer-content { display: grid; gap: 40px; margin-bottom: 36px; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-content { grid-template-columns: 2fr 1fr 1fr; }
.footer-brand h3, .footer-section h3 { font-size: 24px; margin-bottom: 12px; color: var(--c-primary); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-contact p { color: rgba(255,255,255,.82); margin-bottom: 6px; }
.footer-social h4 { color: var(--c-primary); margin-bottom: 12px; }
.social-icons { display: flex; gap: 14px; font-size: 20px; }
.social-icons a { text-decoration: none; }
.footer-bottom { text-align: center; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.6); font-size: 14px; }

/* ---------- 在线咨询浮窗 ---------- */
.consult-float { position: fixed; right: 24px; bottom: 24px; z-index: 200; }
.consult-btn { background: var(--c-primary); color: #fff; border: none; border-radius: 30px; padding: 14px 22px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); }
.consult-options { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); text-align: center; }
.consult-option { display: block; padding: 8px 10px; color: var(--c-text); text-decoration: none; border-radius: 8px; }
.consult-option:hover { background: var(--c-cream); }

/* ---------- 内页 Hero / Banner ---------- */
.page-hero, .page-banner, .guide-hero, .dining-hero, .activity-hero {
  background: linear-gradient(rgba(47,79,79,.45), rgba(47,79,79,.55)),
    linear-gradient(135deg, var(--c-deep), var(--c-primary));
  color: #fff; text-align: center; padding: 90px 20px; margin-top: 0;
}
.page-hero h1, .page-banner h1, .guide-hero h1, .dining-hero h1, .activity-hero h1 { color: #fff; font-size: 44px; }
.banner-content, .hero-content p { font-size: 19px; opacity: .92; }
.activity-hero { height: 50vh; display: flex; align-items: center; justify-content: center; }

/* ---------- 设计理念 / 团队 / 荣誉 (about) ---------- */
.philosophy-grid, .team-grid, .awards-grid { display: grid; gap: 28px; }
.philosophy-grid { grid-template-columns: repeat(4, 1fr); }
.philosophy-card { background: #fff; padding: 30px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); transition: transform .3s; }
.philosophy-card:hover { transform: translateY(-5px); }
.card-icon { font-size: 46px; margin-bottom: 14px; }
.philosophy-card h3 { font-size: 19px; margin-bottom: 10px; }
.philosophy-card p { color: var(--c-muted); font-size: 14px; }

.team-grid { grid-template-columns: repeat(3, 1fr); }
.team-card { text-align: center; }
.team-avatar { width: 140px; height: 140px; margin: 0 auto 18px; border-radius: 50%; overflow: hidden; background: var(--c-line); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 21px; margin-bottom: 4px; }
.team-role { color: var(--c-primary); font-weight: 500; margin-bottom: 10px; }
.team-desc { color: var(--c-muted); font-size: 14px; }

.awards-grid { grid-template-columns: repeat(3, 1fr); }
.award-item { background: #fff; padding: 30px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.award-icon { font-size: 46px; margin-bottom: 12px; }
.award-item h3 { font-size: 19px; margin-bottom: 6px; }
.award-item p { color: var(--c-muted); font-size: 14px; }

/* ---------- 活动列表页 (activities) ---------- */
.filter-section { padding: 30px 0; }
.filter-tabs { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.filter-tab { padding: 9px 22px; border: 2px solid var(--c-primary); background: transparent; color: var(--c-primary); border-radius: 22px; cursor: pointer; transition: all .3s; }
.filter-tab.active, .filter-tab:hover { background: var(--c-primary); color: #fff; }
.activities-list { padding: 20px 0 70px; }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.activity-card[data-category] { text-align: left; }
.activity-card[data-category] .activity-icon { font-size: 40px; }

/* ---------- 预订流程页 (booking) ---------- */
.booking-container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.progress-bar { display: flex; justify-content: space-between; margin-bottom: 36px; position: relative; }
.step { text-align: center; flex: 1; position: relative; }
.step-number { width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--c-line); margin: 0 auto 8px; font-weight: bold; color: var(--c-muted); }
.step.active .step-number { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.step-label { font-size: 14px; color: var(--c-muted); }
.step.active .step-label { color: var(--c-primary); font-weight: 600; }
.form-section { display: none; background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-section.active { display: block; }
.form-row { display: flex; gap: 18px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 200px; }
.room-selection { display: grid; gap: 14px; margin: 18px 0; }
.room-option { border: 2px solid var(--c-line); border-radius: 10px; padding: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: border-color .3s; }
.room-option.selected, .room-option:hover { border-color: var(--c-primary); }
.room-option .price { font-size: 18px; }
.addon-list { display: grid; gap: 12px; }
.addon-item { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--c-line); border-radius: 10px; padding: 14px 16px; }
.addon-price { color: var(--c-accent); font-weight: 600; }
.order-summary { background: var(--c-cream); border-radius: 10px; padding: 18px; margin: 14px 0; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--c-line); font-size: 14px; }

/* ---------- 餐饮页 (dining) ---------- */
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.dish-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dish-image { width: 100%; height: 200px; overflow: hidden; }
.dish-image img { width: 100%; height: 100%; object-fit: cover; }
.dish-info { padding: 18px; }
.dish-info h3 { font-size: 18px; margin-bottom: 8px; }
.dish-price { color: var(--c-accent); font-weight: 700; }
.chef-section { background: #fff; border-radius: var(--radius); padding: 30px; margin-top: 40px; box-shadow: var(--shadow); }
.chef-grid { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; }
.reservation-form { max-width: 520px; margin: 0 auto; background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- 周边指南页 (guide) ---------- */
.spots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.spot-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spot-image { height: 170px; background: linear-gradient(135deg, var(--c-deep), var(--c-primary)); }
.spot-info { padding: 18px; }
.spot-name { font-size: 19px; margin-bottom: 6px; }
.spot-distance { color: var(--c-primary); font-size: 14px; margin-bottom: 8px; }
.spot-desc { color: var(--c-muted); font-size: 14px; }
.spot-tags { margin-top: 10px; }
.map-section { margin-top: 40px; }
.map-placeholder { position: relative; height: 380px; border-radius: var(--radius); background: linear-gradient(135deg, #dfeee8, #f3e7da); overflow: hidden; }
.map-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--c-primary); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(198,142,91,.25); }
.map-label { position: absolute; transform: translate(-50%, -50%); background: #fff; padding: 4px 10px; border-radius: 8px; font-size: 13px; box-shadow: var(--shadow); white-space: nowrap; }
.routes-section { margin-top: 40px; }
.route-card { background: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow); }
.route-title { font-size: 20px; margin-bottom: 14px; }
.route-stops { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--c-muted); }
.route-stops .stop { background: var(--c-cream); border: 1px solid var(--c-line); padding: 6px 12px; border-radius: 8px; font-size: 14px; }
.route-stops .arrow { color: var(--c-primary); font-weight: bold; }

/* ---------- 详情页通用 (room-detail / activity-detail) ---------- */
.detail-container, .content { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.detail-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.detail-main { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-sidebar { position: sticky; top: 100px; }
.price-tag { font-size: 36px; color: var(--c-accent); font-weight: bold; margin-bottom: 6px; }
.info-item { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.info-label { color: var(--c-muted); font-size: 14px; margin-bottom: 4px; }
.info-value { color: var(--c-text); font-size: 16px; }
.schedule-list { list-style: none; }
.schedule-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; }
.content-text { line-height: 1.8; color: #555; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.gallery-grid img { width: 100%; border-radius: 8px; }

/* room-detail 专属 */
.gallery { position: relative; height: 520px; overflow: hidden; border-radius: 0 0 var(--radius) var(--radius); margin-top: 64px; }
.gallery-main { width: 100%; height: 100%; position: relative; }
.gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.gallery-slide.active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.gallery-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.gallery-dot.active { background: #fff; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(255,255,255,.82); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 22px; color: var(--c-deep); }
.gallery-arrow.prev { left: 18px; } .gallery-arrow.next { right: 18px; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.room-info h1 { font-size: 34px; margin-bottom: 8px; }
.room-subtitle { color: var(--c-muted); margin-bottom: 24px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 14px; background: #fff; border-radius: 12px; }
.feature-icon { width: 38px; height: 38px; background: var(--c-cream); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.feature-text { font-size: 14px; }
.description { line-height: 1.8; color: #555; margin: 26px 0; }
.booking-panel { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 100px; }
.form-label { display: block; font-size: 14px; color: var(--c-muted); margin-bottom: 6px; }
.trust-tips { margin-top: 14px; font-size: 12px; color: var(--c-muted); text-align: center; }
.detail-section { margin-top: 50px; }
.detail-section h2 { font-size: 26px; margin-bottom: 16px; }
.detail-content { line-height: 1.8; color: #555; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.error-code { font-size: 96px; color: var(--c-primary); font-family: Georgia, serif; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .hero-title { font-size: 38px; }
  .page-hero h1, .page-banner h1, .guide-hero h1, .dining-hero h1, .activity-hero h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
  .story-grid, .detail-container, .content-grid, .chef-grid { grid-template-columns: 1fr; }
  .philosophy-grid, .team-grid, .awards-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 24px; }
  .mobile-menu-btn { display: block; }
  .gallery { height: 300px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
