/* ==========================================================================
   MIKI KOUTSU - 深度旅游详情页统一样式表
   ========================================================================== */
.dd-page {
  width: 100%;
  background: #fff;
  color: var(--dd-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.9;
  overflow: hidden;
}

.dd-page *, .dd-page *::before, .dd-page *::after { box-sizing: border-box; }
.dd-page img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dd-page a { color: inherit; text-decoration: none; }
.dd-page h1, .dd-page h2, .dd-page h3, .dd-page p { margin-top: 0; }
.dd-page h1, .dd-page h2, .dd-page h3 { color: var(--dd-ink); font-weight: 500; line-height: 1.5; letter-spacing: .045em; }

/* 公共容器：限制内容最大宽度并居中 */
.dd-container { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }
.dd-label { margin-bottom: 20px; color: var(--dd-brand); font-size: 11px; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; }

/* 1. Hero 主视觉 (保留全宽) */
.dd-hero { position: relative; display: flex; align-items: center; min-height: 650px; height: min(78vh, 800px); overflow: hidden; background: #72776a; color: #fff; }
.dd-hero-photo { position: absolute; inset: 0; }
.dd-hero-photo img { object-position: center 52%; }
.dd-hero-shade { position: absolute; inset: 0; background: var(--dd-hero-overlay); }
.dd-hero-inner { position: relative; z-index: 1; width: min(1100px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0; }
.dd-hero .dd-label { color: rgba(255,255,255,.82); margin-bottom: 25px; }
.dd-hero h1 { margin-bottom: 25px; color: #fff; font-size: clamp(40px, 5.6vw, 66px); font-weight: 400; line-height: 1.45; letter-spacing: .07em; }
.dd-hero-text { margin-bottom: 32px; color: rgba(255,255,255,.9); font-size: 14px; line-height: 2.2; }

/* 2. 引言 (保留全宽背景，内容居中) */
.dd-intro { padding: 110px 24px 104px; background: #fff; text-align: center; }
.dd-intro-inner { max-width: 760px; margin: 0 auto; }
.dd-intro h2 { margin-bottom: 26px; font-size: clamp(29px, 3.5vw, 42px); line-height: 1.75; }
.dd-intro-copy { max-width: 650px; margin: 0 auto; color: var(--dd-muted); font-size: 14px; line-height: 2.3; }

/* 3. 图文分栏 (核心调整：限制宽度并加圆角留白) */
.dd-split { 
  display: grid; 
  grid-template-columns: 1.08fr .92fr; 
  align-items: stretch; 
  background: var(--dd-bg); 
  
  /* 限制最大宽度，自动居中，产生左右留白 */
  max-width: 1200px;
  margin: 80px auto; /* 上下留白 */
  border-radius: 12px; /* 圆角 */
  overflow: hidden;    /* 确保图片不超出圆角 */
  box-shadow: 0 10px 40px rgba(0,0,0,0.04); /* 加一点微弱的阴影增加质感 */
}

.dd-split-image { min-height: 500px; overflow: hidden; background: #e6e8e8; }
.dd-split-copy { align-self: center; max-width: 540px; padding: 60px clamp(35px, 5vw, 70px); }
.dd-split-copy h2 { margin-bottom: 26px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.7; }
.dd-split-copy > p { margin-bottom: 17px; color: var(--dd-muted); font-size: 14px; line-height: 2.2; }

/* 民宿页专属：夜晚倒序图文的调整 */
.theme-homestay .dd-split.reverse { grid-template-columns: .88fr 1.12fr; }
.theme-homestay .dd-split.reverse .dd-split-copy { order: 1; }
.theme-homestay .dd-split.reverse .dd-split-image { order: 2; }

/* 4. 列表项 (限制宽度与容器对齐) */
.dd-list { padding: 90px 0 100px; background: var(--dd-bg); }
.dd-list-inner { border-top: 1px solid var(--dd-line); max-width: 900px; margin: 0 auto; }
.dd-list-item { display: grid; grid-template-columns: 70px 1fr 40px; align-items: center; gap: 25px; padding: 32px 8px; border-bottom: 1px solid var(--dd-line); transition: padding .25s ease; }
.dd-list-item:hover { padding-right: 0; padding-left: 16px; }
.dd-list-no { align-self: start; padding-top: 4px; color: var(--dd-brand); font-family: Georgia, serif; font-size: 25px; }
.dd-list-main h3 { margin-bottom: 8px; font-size: 25px; }
.dd-list-main p { margin-bottom: 0; color: var(--dd-muted); font-size: 13px; line-height: 2; }
.dd-list-arrow { color: var(--dd-brand); font-size: 22px; transition: transform .25s ease; }

/* 民宿三列卡片 (限制宽度) */
.theme-homestay .stay-together { padding: 100px 24px; background: #fff; }
.theme-homestay .stay-together-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dd-line); max-width: 1100px; margin: 0 auto; }
.theme-homestay .stay-together-item { padding: 27px 25px 0 0; }
.theme-homestay .stay-together-item + .stay-together-item { padding-left: 25px; border-left: 1px solid var(--dd-line); }

/* 5. 底部 CTA (保留全宽) */
.dd-cta { position: relative; display: flex; min-height: 480px; align-items: center; justify-content: center; padding: 90px 24px; background: var(--dd-bg-dark); color: #fff; text-align: center; }
.dd-cta-image { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 55%; background-image: var(--dd-cta-img); }
.dd-cta-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(22, 27, 20, .6); }
.dd-cta-content { position: relative; z-index: 2; width: min(700px, 100%); margin: 0 auto; }
.dd-cta h2 { margin-bottom: 20px; color: #fff; font-size: clamp(32px, 4.3vw, 48px); font-weight: 400; line-height: 1.7; }
.dd-cta p { margin-bottom: 32px; color: rgba(255,255,255,.88); font-size: 14px; line-height: 2.2; }
.dd-cta-btn { display: inline-flex; min-width: 220px; min-height: 54px; align-items: center; justify-content: center; gap: 26px; padding: 14px 24px; border: 1px solid rgba(255,255,255,.8); color: #fff; font-size: 13px; letter-spacing: .08em; transition: background .25s ease, color .25s ease; }
.dd-cta-btn:hover { background: #fff; color: var(--dd-ink); }

/* ==========================================================================
   专属皮肤颜色定义
   ========================================================================== */
.theme-skiing {
  --dd-ink: #181818; --dd-muted: #777; --dd-brand: #181818;
  --dd-line: #e8e8e8; --dd-bg: #fafafa;
  --dd-bg-dark: #25282b;
  --dd-hero-overlay: linear-gradient(180deg, rgba(0,0,0,.02) 20%, rgba(0,0,0,.12) 48%, rgba(0,0,0,.62) 100%);
  --dd-cta-img: url('https://www.mikikoutsu.com/wp-content/uploads/2026/10/suki01.webp');
}

.theme-homestay {
  --dd-ink: #292c25; --dd-muted: #74776d; --dd-brand: #68745a;
  --dd-line: #e3e2d9; --dd-bg: #faf9f6;
  --dd-bg-dark: #42483b;
  --dd-hero-overlay: linear-gradient(90deg, rgba(20, 25, 19, .64) 0%, rgba(20, 25, 19, .38) 43%, rgba(20, 25, 19, .04) 100%);
  --dd-cta-img: url('https://mikikoutsu.com/wp-content/uploads/2025/04/mikikoutsu-homestay001.webp');
}

/* ================= 移动端适配 ================= */
@media (max-width: 768px) {
  /* 手机端图文分栏变成单列，去掉左右宽留白 */
  .dd-split, .theme-homestay .dd-split.reverse { 
    grid-template-columns: 1fr; 
    max-width: calc(100% - 32px);
    margin: 40px auto; 
    border-radius: 8px;
  }
  
  .dd-split-image, .theme-homestay .dd-split.reverse .dd-split-image { 
    min-height: 0; 
    aspect-ratio: 5 / 4; 
  }
  
  .dd-split-copy { 
    max-width: none; 
    padding: 40px 24px 50px; 
  }
  
  .dd-split-copy h2 {
    font-size: 26px;
  }

  .dd-list-item { grid-template-columns: 36px 1fr 20px; gap: 12px; padding: 25px 0; }
  .dd-list-main h3 { font-size: 22px; }
  
  .theme-homestay .stay-together-grid { grid-template-columns: 1fr; }
  .theme-homestay .stay-together-item, .theme-homestay .stay-together-item + .theme-homestay .stay-together-item { padding: 23px 0; border-left: 0; border-bottom: 1px solid var(--dd-line); }
}

@media (prefers-reduced-motion: reduce) {
  .dd-page *, .dd-page *::before, .dd-page *::after { transition: none !important; animation: none !important; }
}