/* 武界麒帆如花園民宿 — 共用樣式
   設計原則:大字體、大按鈕、高對比,方便年長客人閱讀操作 */

:root {
  --ink: #2b3a42;        /* 深墨色:主文字 */
  --pine: #3e5c50;       /* 山林綠:主色 */
  --pine-dark: #2e463c;
  --wood: #a67c52;       /* 原木棕:點綴 */
  --sun: #d9a441;        /* 日出金:強調 */
  --cloud: #f7f6f2;      /* 雲白:背景 */
  --white: #ffffff;
  --line-green: #06c755; /* LINE 官方綠 */
  --danger: #c0392b;     /* 價格紅 */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cloud);
}

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

a { color: var(--pine); }

h1, h2, h3 { font-family: "Noto Serif TC", "Noto Sans TC", serif; line-height: 1.4; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== 頁首導覽 ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--pine);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: "Noto Serif TC", serif; font-weight: 700; font-size: 1.25rem; color: var(--pine-dark); }
.brand-sub { display: block; font-size: .8rem; color: var(--wood); font-family: "Noto Sans TC", sans-serif; letter-spacing: .18em; }

.main-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 500;
  padding: 10px 14px; border-radius: 8px; font-size: 1.02rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--cloud); color: var(--pine-dark); }
.main-nav a.active { background: var(--pine); color: var(--white); }
.main-nav a.nav-cta { background: var(--sun); color: var(--white); font-weight: 700; }

/* ===== 主視覺 ===== */
.hero {
  position: relative; color: var(--white);
  background: var(--pine-dark) center/cover no-repeat;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20,35,30,.25), rgba(20,35,30,.55));
}
.hero-content { position: relative; z-index: 1; padding: 70px 20px; max-width: 820px; }
.hero h1 { font-size: 2.5rem; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.hero p { font-size: 1.3rem; margin-top: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.hero .btn-row { margin-top: 30px; }

/* 內頁小型頁首橫幅 */
.page-hero { min-height: 300px; }
.page-hero h1 { font-size: 2rem; }

/* ===== 按鈕 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 28px; border-radius: 10px;
  font-size: 1.15rem; font-weight: 700; text-decoration: none;
  border: none; cursor: pointer; transition: transform .1s, opacity .2s;
}
.btn:hover { opacity: .92; transform: translateY(-1px); }
.btn-phone { background: var(--pine); color: var(--white); }
.btn-line { background: var(--line-green); color: var(--white); }
.btn-gold { background: var(--sun); color: var(--white); }
.btn-outline { background: var(--white); color: var(--pine-dark); border: 2px solid var(--pine); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== 區塊 ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-title { text-align: center; font-size: 1.9rem; color: var(--pine-dark); margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--wood); font-size: 1.05rem; margin-bottom: 36px; }

/* ===== 卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.card {
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(43,58,66,.1);
  display: flex; flex-direction: column;
}
.card img { height: 230px; width: 100%; object-fit: cover; }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { font-size: 1.35rem; color: var(--pine-dark); }
.card-body p { flex: 1; }
.card-price { font-size: 1.05rem; color: var(--danger); font-weight: 700; }
.card .btn { align-self: flex-start; }

/* ===== 價格表 ===== */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 16px rgba(43,58,66,.08); }
.price-table caption { caption-side: top; text-align: left; font-size: 1.3rem; font-weight: 700; color: var(--pine-dark); padding: 0 0 12px; font-family: "Noto Serif TC", serif; }
.price-table th, .price-table td { padding: 16px 18px; text-align: center; border-bottom: 1px solid #e8e6df; font-size: 1.1rem; }
.price-table thead th { background: var(--pine); color: var(--white); font-size: 1.05rem; }
.price-table td.room-name { font-weight: 700; text-align: left; }
.price-table .price { color: var(--danger); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.price-note { margin-top: 12px; color: #666; font-size: .98rem; }
.table-wrap { overflow-x: auto; }

/* ===== 相簿 ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { height: 190px; width: 100%; object-fit: cover; transition: transform .25s; }
.gallery a:hover img { transform: scale(1.04); }

/* ===== 行程時間軸 ===== */
.timeline { list-style: none; border-left: 4px solid var(--sun); padding-left: 26px; margin: 20px 0 20px 8px; }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -36px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sun); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--sun);
}
.timeline .time { font-weight: 700; color: var(--pine-dark); margin-right: 10px; }
.timeline .detail { color: #555; font-size: 1rem; }

/* ===== 特色列表 ===== */
.feature-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.feature-list li {
  background: var(--white); border-radius: 10px; padding: 14px 18px;
  border-left: 5px solid var(--sun); box-shadow: 0 2px 8px rgba(43,58,66,.06);
}

/* ===== 資訊框 ===== */
.info-box {
  background: #fdf8ec; border: 2px solid var(--sun); border-radius: 12px;
  padding: 22px 26px; margin: 24px 0;
}
.info-box h3 { color: var(--wood); margin-bottom: 10px; font-size: 1.2rem; }
.info-box ul { padding-left: 24px; }

/* ===== 評論徽章 ===== */
.review-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--white); border-radius: 14px; padding: 18px 30px;
  box-shadow: 0 4px 16px rgba(43,58,66,.1); text-decoration: none;
}
.review-badge .stars { color: var(--sun); font-size: 1.6rem; letter-spacing: 2px; }
.review-badge .score { font-size: 2rem; font-weight: 700; color: var(--ink); }
.review-badge .count { color: #666; font-size: 1rem; }

/* ===== CTA 區 ===== */
.cta-band { background: var(--pine-dark); color: var(--white); text-align: center; padding: 48px 20px; }
.cta-band h2 { font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { opacity: .9; margin-bottom: 24px; }

/* ===== 頁尾 ===== */
.site-footer { background: var(--ink); color: #cfd8dc; padding: 44px 0 90px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.site-footer h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 12px; }
.site-footer a { color: #cfd8dc; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.copyright { text-align: center; margin-top: 34px; padding-top: 18px; border-top: 1px solid #45565f; font-size: .9rem; color: #90a4ae; }

/* ===== 手機底部快速聯絡列 ===== */
.quick-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: none; grid-template-columns: 1fr 1fr;
  box-shadow: 0 -2px 10px rgba(0,0,0,.2);
}
.quick-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 58px; font-size: 1.15rem; font-weight: 700;
  color: var(--white); text-decoration: none;
}
.quick-bar .q-phone { background: var(--pine); }
.quick-bar .q-line { background: var(--line-green); }

/* ===== 響應式 ===== */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1.1rem; }
  .hero { min-height: 400px; }
  .header-inner { justify-content: center; }
  .main-nav { justify-content: center; }
  .main-nav a { padding: 8px 10px; font-size: .95rem; }
  .quick-bar { display: grid; }
  .section { padding: 40px 0; }
}
