/* 雲頂天湖露營區 */
:root {
  --pine: #1f3d2b;
  --pine-deep: #142a1d;
  --moss: #4a6b53;
  --mist: #f6f5ef;
  --cloud: #ffffff;
  --sand: #d9c9a3;
  --gold: #c9a04e;
  --ink: #24312a;
  --muted: #6b7a70;
  --danger: #b4432f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 42, 29, .12);
  --font: 'Noto Sans TC', -apple-system, 'PingFang TC', sans-serif;
  --serif: 'Noto Serif TC', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); color: var(--ink); background: var(--mist); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(20, 42, 29, .92); backdrop-filter: blur(10px); box-shadow: 0 2px 16px rgba(0,0,0,.25); }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 900; font-size: 20px; }
.brand-mark { font-size: 26px; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 4px; opacity: .8; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: #fff; font-weight: 500; font-size: 15px; opacity: .9; }
.nav-links a:hover { opacity: 1; }
.nav-cta { background: var(--gold); padding: 8px 18px; border-radius: 999px; opacity: 1 !important; font-weight: 700; }
.nav-burger { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.05); }
.hero-slide.is-active { opacity: 1; transform: scale(1); transition: opacity 1.4s ease, transform 7s linear; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,30,21,.55) 0%, rgba(15,30,21,.25) 45%, rgba(15,30,21,.65) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 100px 20px 60px; }
.hero-eyebrow { letter-spacing: 6px; font-size: 14px; opacity: .9; margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(30px, 5.2vw, 54px); font-weight: 900; line-height: 1.4; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.hero-sub { margin-top: 16px; font-size: clamp(15px, 2vw, 19px); opacity: .95; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.hero-dots button.on { background: #fff; }

.btn { display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 16px; cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 6px 20px rgba(201,160,78,.4); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* sections */
section { padding: 84px 0; }
.sec-title { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 36px); color: var(--pine); text-align: center; font-weight: 900; }
.sec-title::after { content: ''; display: block; width: 46px; height: 3px; background: var(--gold); margin: 14px auto 0; border-radius: 2px; }
.sec-sub { text-align: center; color: var(--muted); margin: 14px 0 44px; }

/* features */
.features { background: var(--mist); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: var(--cloud); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); text-align: center; transition: transform .2s; }
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { font-size: 34px; margin-bottom: 10px; }
.feature-card h3 { color: var(--pine); font-size: 18px; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: 14px; }

/* gallery */
.gallery { padding: 0; background: var(--pine-deep); }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery-track img { height: 240px; width: 100%; object-fit: cover; scroll-snap-align: start; }

/* zones */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.zone-card { background: var(--cloud); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.zone-card img { height: 180px; object-fit: cover; width: 100%; }
.zone-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.zone-body h3 { color: var(--pine); font-size: 19px; }
.zone-price { color: var(--gold); font-weight: 900; font-size: 17px; margin: 6px 0 10px; }
.zone-price small { color: var(--muted); font-weight: 400; font-size: 12px; }
.zone-body ul { list-style: none; color: var(--muted); font-size: 13.5px; flex: 1; }
.zone-body li { padding-left: 18px; position: relative; margin-bottom: 4px; }
.zone-body li::before { content: '✦'; position: absolute; left: 0; color: var(--sand); }
.zone-book { margin-top: 14px; align-self: flex-start; font-size: 14px; padding: 9px 20px; background: var(--pine); color: #fff; }
.zone-map { margin-top: 48px; text-align: center; }
.zone-map h3 { color: var(--pine); margin-bottom: 18px; font-size: 20px; }
.zone-map img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; max-width: 760px; width: 100%; }

/* booking */
.booking { background: linear-gradient(180deg, var(--pine-deep), var(--pine)); }
.booking .sec-title, .booking .sec-sub { color: #fff; }
.booking .sec-sub { opacity: .8; }
.booking-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.cal-panel, .form-panel { background: var(--cloud); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-weight: 900; color: var(--pine); font-size: 18px; }
.cal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #e2e0d5; background: #fff; font-size: 20px; cursor: pointer; color: var(--pine); }
.cal-nav:hover { background: var(--mist); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-week div { text-align: center; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; border: 2px solid transparent; background: var(--mist); position: relative; }
.cal-day .d { font-weight: 700; }
.cal-day .r { font-size: 10px; color: var(--muted); }
.cal-day.blank { background: none; cursor: default; }
.cal-day.closed { background: #eceae2; color: #b3b0a4; cursor: not-allowed; }
.cal-day.closed .r { color: #b3b0a4; }
.cal-day.full { background: #f3ded9; color: var(--danger); cursor: not-allowed; }
.cal-day.few { background: #fdf3dd; }
.cal-day.open { background: #e7f0e7; }
.cal-day.past { opacity: .35; cursor: not-allowed; }
.cal-day.selected { border-color: var(--gold); background: #fff8ea; }
.cal-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.lg-open { background: #e7f0e7; border: 1px solid #c6d8c6; }
.lg-few { background: #fdf3dd; border: 1px solid #ecd9a8; }
.lg-full { background: #f3ded9; border: 1px solid #ddb4a9; }
.lg-closed { background: #eceae2; border: 1px solid #d8d5c8; }

.day-hint { color: var(--muted); text-align: center; padding: 30px 0; }
.picked-date { font-weight: 900; color: var(--pine); font-size: 18px; margin-bottom: 14px; }
.f-label { display: block; font-size: 13px; font-weight: 700; color: var(--pine); margin: 14px 0 6px; }
.zone-options { display: grid; gap: 8px; }
.zone-opt { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border: 2px solid #e2e0d5; border-radius: 10px; cursor: pointer; font-size: 14px; }
.zone-opt.on { border-color: var(--gold); background: #fff8ea; }
.zone-opt.off { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.zone-opt .zo-price { color: var(--gold); font-weight: 700; }
.zone-opt .zo-left { font-size: 12px; color: var(--muted); }
.f-row { display: flex; gap: 12px; }
.f-col { flex: 1; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 2px solid #e2e0d5; border-radius: 10px; font-family: var(--font); font-size: 15px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--moss); }
.price-line { margin: 18px 0 14px; text-align: right; color: var(--muted); font-size: 14px; }
.price-line strong { color: var(--pine); font-size: 20px; margin-left: 6px; }
.form-msg { margin-top: 10px; font-size: 14px; color: var(--danger); text-align: center; min-height: 1em; }
.book-done { text-align: center; padding: 30px 10px; }
.done-icon { font-size: 46px; }
.book-done h3 { color: var(--pine); font-size: 24px; margin: 8px 0; }
.done-code { margin: 12px 0; }
.done-code strong { font-size: 26px; color: var(--gold); letter-spacing: 2px; }
.done-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.book-done .btn-ghost { color: var(--pine); border-color: var(--pine); }
.booking-notice { margin-top: 26px; text-align: center; color: rgba(255,255,255,.75); font-size: 13.5px; }

/* rules */
.rule-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule-card { background: var(--cloud); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.rule-card h3 { color: var(--pine); font-size: 17px; margin-bottom: 12px; }
.rule-card ul { list-style: none; color: var(--muted); font-size: 13.5px; }
.rule-card li { padding-left: 16px; position: relative; margin-bottom: 7px; }
.rule-card li::before { content: '・'; position: absolute; left: 0; color: var(--gold); }

/* traffic */
.traffic { background: var(--mist); }
.traffic-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: stretch; }
.traffic-info { background: var(--cloud); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.traffic-info p { margin-bottom: 18px; color: var(--muted); }
.traffic-info strong { color: var(--pine); }
.traffic-info a.btn { margin-top: 6px; }
.traffic-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* footer */
.footer { background: var(--pine-deep); color: rgba(255,255,255,.85); padding: 48px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner p { font-size: 14px; opacity: .8; margin-top: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a { opacity: .8; }
.footer-links a:hover { opacity: 1; }
.footer-copy { text-align: center; font-size: 12px; opacity: .5; margin-top: 34px; }

/* rwd */
@media (max-width: 900px) {
  .feature-grid, .zone-grid, .rule-cards { grid-template-columns: repeat(2, 1fr); }
  .booking-wrap, .traffic-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .feature-grid, .zone-grid, .rule-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(20,42,29,.97); flex-direction: column; padding: 20px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .f-row { flex-direction: column; gap: 0; }
  section { padding: 60px 0; }
}
