/* 冬山河民宿旅遊網 header / footer（本站專用，前綴 .ib-） */
:root {
  --ib-ink: #1f2d2a;
  --ib-muted: #5d6b67;
  --ib-line: #e3e8e6;
  --ib-paper: #ffffff;
  --ib-accent: #2f7a68;
  --ib-accent-ink: #ffffff;
  --ib-foot: #1d2a27;
  --ib-foot-ink: rgba(255, 255, 255, .78);
}

/* ---------- header ---------- */
.ib-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--ib-paper);
  border-bottom: 1px solid var(--ib-line);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
.ib-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ib-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ib-ink);
  text-decoration: none;
  flex-shrink: 0;
}
.ib-brand:hover, .ib-brand:focus { color: var(--ib-ink); text-decoration: none; }
.ib-brand__logo { height: 40px; width: auto; }
.ib-brand__name { font-size: 18px; font-weight: 700; letter-spacing: .02em; }

.ib-nav { margin-left: auto; }
.ib-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ib-nav__item { position: relative; }
.ib-nav__link {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ib-ink);
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.ib-nav__link:hover, .ib-nav__link:focus {
  color: var(--ib-accent);
  background: #f3eee3;
  text-decoration: none;
}
.ib-nav__toggle::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.ib-nav__link--cta {
  margin-left: 6px;
  color: var(--ib-accent-ink);
  background: var(--ib-accent);
}
.ib-nav__link--cta:hover, .ib-nav__link--cta:focus { color: var(--ib-accent-ink); background: #10294d; }

.ib-drop {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--ib-paper);
  border: 1px solid var(--ib-line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
}
.ib-drop--grid { display: grid; grid-template-columns: repeat(3, 1fr); min-width: 300px; left: auto; right: 0; }
.ib-drop a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ib-ink);
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.ib-drop a:hover, .ib-drop a:focus { color: var(--ib-accent); background: #f3eee3; text-decoration: none; }
.ib-nav__item--drop.is-open .ib-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .15s ease, transform .15s ease;
}
@media (hover: hover) and (min-width: 1200px) {
  .ib-nav__item--drop:hover .ib-drop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .15s ease, transform .15s ease;
  }
}

.ib-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.ib-burger span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ib-ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.ib-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ib-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ib-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1200px) and (max-width: 1365px) {
  .ib-header__bar { gap: 10px; }
  .ib-nav__link { padding: 10px 8px; font-size: 14px; }
  .ib-brand__name { font-size: 17px; }
}

@media (max-width: 1199px) {
  .ib-burger { display: block; }
  .ib-brand__name { font-size: 16px; }
  .ib-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--ib-paper);
    border-bottom: 1px solid var(--ib-line);
    display: none;
  }
  .ib-nav.is-open { display: block; }
  .ib-nav__list { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .ib-nav__link { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--ib-line); width: 100%; text-align: left; }
  .ib-nav__link--cta { margin: 12px 0 0; border-radius: 6px; text-align: center; border-bottom: 0; }
  .ib-drop {
    position: static;
    min-width: 0;
    display: none;
    padding: 4px 0 8px 12px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .ib-nav__item--drop.is-open .ib-drop { display: block; }
  .ib-nav__item--drop.is-open .ib-drop--grid { display: grid; }
  .ib-drop--grid { min-width: 0; }
}

/* ---------- footer ---------- */
.ib-footer {
  margin-top: 40px;
  background: var(--ib-foot);
  color: var(--ib-foot-ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  line-height: 1.8;
}
.ib-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.ib-footer__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}
.ib-footer__about p { margin: 0; }
.ib-footer__links { margin: 0; padding: 0; list-style: none; }
.ib-footer__links--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }
.ib-footer a { color: var(--ib-foot-ink); text-decoration: none; }
.ib-footer a:hover, .ib-footer a:focus { color: #ffffff; text-decoration: underline; }
.ib-footer__contact { margin: 0; font-style: normal; }
.ib-footer__bottom {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
@media (max-width: 991px) {
  .ib-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ib-footer__inner { grid-template-columns: 1fr; gap: 24px; }
}

.ib-gotop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1020;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  color: #ffffff;
  background: var(--ib-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.ib-gotop:hover, .ib-gotop:focus { color: #ffffff; background: #10294d; }
/* 捲動不到 300px 時隱藏（js/ib-nav.js 加 is-show） */
.ib-gotop { opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.ib-gotop.is-show { opacity: 1; visibility: visible; }

/* 景點寫真（首頁最下方） */
.ib-photos { background: #ffffe8; padding: 24px 0 32px; }

@media (prefers-reduced-motion: reduce) {
  .ib-drop, .ib-burger span { transition: none; }
}

/* ---------- 攻略子頁、首頁冬山河攻略（2026-12-04） ---------- */
.ib-article, .ib-guide {
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ib-ink);
}
/* 寬度對齊首頁下方 Bootstrap .container（1170px，左右 15px 內距） */
.ib-article { max-width: 1170px; margin: 0 auto; padding: 16px 15px 48px; }
.ib-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; padding: 0; list-style: none; font-size: 14px; color: var(--ib-muted); }
.ib-crumb li + li::before { content: "›"; margin-right: 6px; }
.ib-crumb a { color: var(--ib-accent); }
.ib-article h1 { font-size: 28px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.ib-article h2 { font-size: 22px; line-height: 1.4; font-weight: 700; margin: 36px 0 12px; padding-left: 10px; border-left: 4px solid var(--ib-accent); }
.ib-article h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.ib-article p, .ib-article li, .ib-article dd { font-size: 16px; line-height: 1.8; }
.ib-article ul, .ib-article ol { padding-left: 1.4em; }
.ib-article a { color: var(--ib-accent); text-decoration: underline; }
.ib-article__meta { font-size: 13px !important; color: var(--ib-muted); margin: 0 0 16px; }
.ib-article__lead { font-size: 17px !important; background: #f3eee3; border-radius: 8px; padding: 16px 18px; margin: 0 0 8px; }

.ib-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.ib-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.ib-table th, .ib-table td { border: 1px solid var(--ib-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.ib-table thead th, .ib-table th[scope="row"] { background: #f6f8f7; font-weight: 700; }
.ib-table th[scope="row"] { width: 7.5em; }

.ib-faq dl { margin: 0; }
.ib-faq dt { font-weight: 700; font-size: 16px; margin: 18px 0 4px; }
.ib-faq dt::before { content: "Q. "; color: var(--ib-accent); }
.ib-faq dd { margin: 0; color: #33423e; }

.ib-stay { margin-top: 36px; padding: 4px 20px 16px; background: #f6f8f7; border-radius: 10px; }
.ib-stay h2 { border-left: 0; padding-left: 0; }
.ib-stay__links { display: flex; flex-wrap: wrap; gap: 10px; }
.ib-btn { display: inline-block; padding: 10px 18px; border-radius: 6px; background: var(--ib-accent); color: #fff !important; text-decoration: none !important; font-weight: 700; }
.ib-btn:hover, .ib-btn:focus { background: #10294d; }
.ib-btn--ghost { background: #fff; color: var(--ib-accent) !important; border: 1px solid var(--ib-accent); }
.ib-btn--ghost:hover, .ib-btn--ghost:focus { background: #f3eee3; }

.ib-sources ul { font-size: 15px; }
.ib-sources p { font-size: 14px !important; color: var(--ib-muted); }

.ib-related ul, .ib-guide__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; list-style: none; padding: 0 !important; margin: 0; }
.ib-related a, .ib-guide__cards a { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--ib-line); border-radius: 8px; background: #fff; color: var(--ib-ink) !important; text-decoration: none !important; }
.ib-related a:hover, .ib-guide__cards a:hover, .ib-related a:focus, .ib-guide__cards a:focus { border-color: var(--ib-accent); box-shadow: 0 2px 8px rgba(28, 61, 108, .12); }
.ib-related strong, .ib-guide__cards strong { display: block; font-size: 16px; color: var(--ib-accent); margin-bottom: 4px; }
.ib-related span, .ib-guide__cards span { display: block; font-size: 14px; line-height: 1.5; color: var(--ib-muted); }

.ib-guide { background: #fff; padding: 40px 16px; }
.ib-guide__inner { max-width: 1000px; margin: 0 auto; }
.ib-guide h2 { font-size: 26px; font-weight: 700; text-align: center; margin: 0 0 16px; }
.ib-guide__def { font-size: 16px; line-height: 1.9; max-width: 820px; margin: 0 auto 24px; }
.ib-guide .ib-faq { max-width: 820px; margin: 32px auto 0; }
.ib-guide .ib-faq h2 { font-size: 22px; text-align: left; }
.ib-guide .ib-faq dd { font-size: 16px; line-height: 1.8; }
.ib-guide__note { max-width: 820px; margin: 16px auto 0; font-size: 13px; color: var(--ib-muted); }

@media (max-width: 767px) {
  .ib-article h1 { font-size: 23px; }
  .ib-article h2 { font-size: 20px; }
  .ib-guide h2 { font-size: 22px; }
}

/* ---------- 圖片（2026-12-04） ---------- */
.ib-figure { margin: 20px 0 8px; }
.ib-figure img { display: block; width: 100%; height: auto; border-radius: 8px; background: #eef2f0; }
.ib-figure figcaption { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--ib-muted); }
.ib-figure__credit { white-space: nowrap; }
.ib-guide .ib-figure { max-width: 820px; margin: 0 auto 20px; }
.ib-guide__cards a { padding: 0 0 14px; overflow: hidden; }
.ib-guide__cards img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 12px; }
.ib-guide__cards strong, .ib-guide__cards span { padding: 0 16px; }
/* 內頁加寬後，桌機圖片改 16:9 裁切，避免太高 */
@media (min-width: 768px) {
  .ib-article .ib-figure img { aspect-ratio: 16 / 9; object-fit: cover; }
}

/* ---------- 冬山河附近民宿（卡片，2026-12-04） ---------- */
#services_city.ib-bnb { background: #f6f8f7; } /* 蓋掉舊版 #services_city 背景圖 */
.ib-bnb { background: #f6f8f7; padding: 48px 0; font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; color: var(--ib-ink); }
.ib-bnb__inner { max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.ib-bnb h2 { font-size: 26px; font-weight: 700; text-align: center; margin: 0 0 12px; }
.ib-bnb__intro { max-width: 820px; margin: 0 auto 24px; font-size: 16px; line-height: 1.8; text-align: center; color: #33423e; }
.ib-bnb__tabs { display: flex; gap: 8px; justify-content: center; margin: 0 0 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ib-bnb__tabs button { flex: 0 0 auto; padding: 10px 22px; border: 1px solid var(--ib-accent); border-radius: 999px; background: #fff; color: var(--ib-accent); font-size: 16px; font-weight: 700; cursor: pointer; }
.ib-bnb__tabs button span { font-weight: 400; font-size: 14px; opacity: .8; }
.ib-bnb__tabs button[aria-selected="true"] { background: var(--ib-accent); color: #fff; }
.ib-bnb__tabs button:focus-visible { outline: 3px solid rgba(28, 61, 108, .35); outline-offset: 2px; }
.ib-bnb__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.ib-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ib-line); border-radius: 10px; overflow: hidden; }
.ib-card__photo { display: block; aspect-ratio: 4 / 3; background: #e7ecea; }
.ib-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ib-card__photo.is-empty { display: flex; align-items: center; justify-content: center; color: var(--ib-muted); font-size: 14px; text-decoration: none; }
.ib-card__photo.is-empty::after { content: "暫無照片"; }
.ib-card__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.ib-card__name { font-size: 18px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.ib-card__name a { color: var(--ib-ink); text-decoration: none; }
.ib-card__name a:hover, .ib-card__name a:focus { color: var(--ib-accent); }
.ib-card__meta { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.ib-card__meta div { display: flex; gap: 8px; margin-bottom: 4px; }
.ib-card__meta dt { flex: 0 0 auto; color: var(--ib-muted); font-weight: 400; }
.ib-card__meta dd { margin: 0; color: #33423e; }
/* 按鈕一列等寬（2 或 3 個），不換行；line-height 蓋掉舊站樣式的 28px */
.ib-card__actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: auto 0 0; }
.ib-card__actions .ib-btn { display: block; min-width: 0; padding: 8px 4px; font-size: 14px; line-height: 1.4; text-align: center; white-space: nowrap; }
.ib-bnb__more { text-align: center; margin: 24px 0 0; }
.ib-bnb__more button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.ib-bnb__cards:not(.is-open) .is-more { display: none; }
.ib-bnb__towns { margin: 40px auto 0; text-align: center; }
.ib-bnb__towns h3 { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.ib-bnb__towns ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ib-bnb__towns a { display: inline-block; padding: 8px 16px; border: 1px solid var(--ib-line); border-radius: 999px; background: #fff; color: var(--ib-ink); text-decoration: none; font-size: 15px; }
.ib-bnb__towns a:hover, .ib-bnb__towns a:focus { border-color: var(--ib-accent); color: var(--ib-accent); }
.ib-bnb__note { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--ib-muted); }
@media (max-width: 767px) {
  .ib-bnb { padding: 32px 0; }
  .ib-bnb h2 { font-size: 22px; }
  .ib-bnb__intro { text-align: left; }
  .ib-bnb__tabs { justify-content: flex-start; }
}

/* ---------- 內容深化（2026-12-04）：攻略選單分組、首頁快捷入口、地圖、行程 ---------- */
.ib-drop--guides { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 4px 12px; min-width: 700px; }
.ib-drop__group ul { list-style: none; margin: 0; padding: 0; }
.ib-drop__head { margin: 4px 10px 2px; font-size: 12px; font-weight: 700; color: var(--ib-muted); letter-spacing: .05em; }
@media (max-width: 1199px) {
  .ib-drop--guides { min-width: 0; grid-template-columns: 1fr 1fr; }
  .ib-nav__item--drop.is-open .ib-drop--guides { display: grid; }
}
.ib-quick { max-width: 1000px; margin: 0 auto 28px; text-align: center; }
.ib-quick__title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.ib-quick ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ib-quick a { display: inline-block; padding: 9px 18px; border: 1px solid var(--ib-accent); border-radius: 999px; color: var(--ib-accent); background: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.ib-quick a:hover, .ib-quick a:focus { background: var(--ib-accent); color: #fff; text-decoration: none; }
.ib-guide__more { max-width: 1000px; margin: 32px auto 0; }
.ib-guide__more h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.ib-guide__groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ib-guide__groups h4 { font-size: 15px; font-weight: 700; color: var(--ib-muted); margin: 0 0 6px; }
.ib-guide__groups ul { list-style: none; margin: 0; padding: 0; }
.ib-guide__groups li { margin: 0 0 6px; }
.ib-guide__groups a { color: var(--ib-accent); font-size: 15px; }
@media (max-width: 767px) { .ib-guide__groups { grid-template-columns: 1fr 1fr; } }

/* 冬山河景點地圖（map.php） */
.ib-rivermap { margin: 8px 0 24px; padding: 12px; background: #f6f8f7; border-radius: 10px; }
.ib-rivermap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ib-rivermap svg { display: block; width: 100%; min-width: 680px; height: auto; max-width: 900px; margin: 0 auto; }
.ib-rivermap a, .ib-rivermap a text { text-decoration: none !important; }
.ib-rivermap a:focus text, .ib-rivermap a:hover text { text-decoration: underline; }
.ib-stops { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: stop; }
.ib-stops > li { position: relative; padding: 0 0 18px 48px; border-left: 3px solid #d8cdb6; margin-left: 16px; }
.ib-stops > li:last-child { border-left-color: transparent; }
.ib-stops > li::before { counter-increment: stop; content: counter(stop); position: absolute; left: -17px; top: 0; width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; background: var(--ib-accent); color: #fff; font-weight: 700; }
.ib-stops h3 { margin: 4px 0 6px; font-size: 18px; }
.ib-stops p { margin: 0 0 6px; }
.ib-stops .ib-stops__links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }

/* 行程時間軸（itinerary.php） */
.ib-plan { list-style: none; margin: 0 0 12px; padding: 0; }
.ib-plan li { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--ib-line); }
.ib-plan time, .ib-plan .ib-plan__t { font-weight: 700; color: var(--ib-accent); }
.ib-tip { margin: 12px 0 20px; padding: 12px 16px; background: #fff8e6; border-left: 4px solid #e0b23c; border-radius: 6px; }

/* 民宿篩選（2026-12-04） */
.ib-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.ib-filter__label { font-size: 14px; color: var(--ib-muted); }
.ib-filter__chip, .ib-filter__reset { padding: 6px 14px; border: 1px solid var(--ib-line); border-radius: 999px; background: #fff; color: var(--ib-ink); font-size: 14px; cursor: pointer; }
.ib-filter__chip[aria-pressed="true"] { background: var(--ib-accent); border-color: var(--ib-accent); color: #fff; }
.ib-filter__chip:focus-visible, .ib-filter__price:focus-visible, .ib-filter__reset:focus-visible { outline: 3px solid rgba(28, 61, 108, .35); outline-offset: 2px; }
.ib-filter__price { padding: 6px 10px; border: 1px solid var(--ib-line); border-radius: 999px; background: #fff; font-size: 14px; }
.ib-filter__reset { border-style: dashed; color: var(--ib-muted); }
.ib-filter__count { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ib-accent); font-weight: 700; }
.ib-filter__count:empty { display: none; }
.ib-bnb__cards.is-filtering .is-more { display: flex; }
.ib-card[hidden] { display: none !important; }

/* 童玩節期間首頁橫幅 */
.ib-fest { background: linear-gradient(90deg, #fff4d6, #e7f4ef); border-bottom: 1px solid var(--ib-line); font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.ib-fest__inner { max-width: 1170px; margin: 0 auto; padding: 12px 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ib-fest__text { margin: 0; font-size: 16px; color: var(--ib-ink); }
.ib-fest__text strong { margin-right: 10px; font-size: 18px; color: #b5651d; }
.ib-fest__links { display: flex; gap: 8px; margin: 0; }

/* 英文、日文版 */
.ib-article__langs { margin: 0 0 6px; font-size: 14px; }
.ib-article__langs a { color: var(--ib-accent); }
.ib-intl-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin-left: auto; font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.ib-intl-nav ul { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; margin: 0; padding: 0; }
.ib-intl-nav a { color: var(--ib-ink); font-size: 15px; text-decoration: none; }
.ib-intl-nav a:hover, .ib-intl-nav a:focus, .ib-intl-nav a[aria-current] { color: var(--ib-accent); text-decoration: underline; }
.ib-intl-nav__lang { padding-left: 14px !important; border-left: 1px solid var(--ib-line); }
.ib-intl .ib-footer__bottom { line-height: 1.8; }
@media (max-width: 767px) {
  .ib-intl .ib-header__bar { flex-wrap: wrap; }
  .ib-intl-nav { margin: 6px 0 0; width: 100%; }
  .ib-intl-nav__lang { padding-left: 0 !important; border-left: 0; }
  .ib-intl .ib-brand { flex-shrink: 1; min-width: 0; }
  .ib-intl .ib-brand__name { font-size: 15px; white-space: normal; line-height: 1.3; }
}

/* 互動地圖（map.php、en-/ja-map.php；2026-12-04） */
.ib-lmap { margin: 0 0 12px; }
.ib-lmap__map { height: 460px; border-radius: 10px; border: 1px solid #dfe6e3; background: #eef3f1; z-index: 0; }
.ib-lmap figcaption { font-size: 14px; color: var(--ib-muted); margin-top: 6px; }
.ib-lmap__fallback { padding: 24px; margin: 0; }
.ib-lmap__gpx { margin: 0 0 28px; }
.ib-lmap__gpx small { color: var(--ib-muted); }
.ib-lmap .leaflet-popup-content a { margin-right: 4px; }
@media (max-width: 767px) { .ib-lmap__map { height: 360px; } }
@media (min-width: 1200px) { .ib-drop--guides { left: 50%; margin-left: -350px; } } /* 5 欄寬 700px，置中於選單項目下方，避免超出右側 */

/* =====================================================================
   2026-12 首頁改版（依使用者提供版面：深藍＋金色、襯線標題）
   header／footer 為全站；其餘以 .ib-home 或首頁專用 class 為範圍
   ===================================================================== */
:root {
  --ib-navy: #10294d;
  --ib-navy-2: #1c3d6c;
  --ib-gold: #b8924a;
  --ib-gold-l: #dcc48f;
  --ib-cream: #f8f4ec;
  --ib-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --ib-foot: #0d2241;
}
.ib-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- header（全站） ---------- */
.ib-header { background: var(--ib-navy); border-bottom: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.ib-brand, .ib-brand:hover, .ib-brand:focus { color: #fff; }
.ib-brand__logo { height: 36px; }
.ib-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.ib-brand__name { font-family: var(--ib-serif); font-size: 22px; font-weight: 700; letter-spacing: .12em; color: #fff; }
.ib-brand__en { margin-top: 3px; font-size: 10px; letter-spacing: .38em; color: var(--ib-gold-l); }
.ib-burger span { background: #fff; }
.ib-drop__towns { display: grid; grid-template-columns: repeat(4, 1fr); }
.ib-drop--stay { min-width: 300px; }
.ib-drop--stay > ul { list-style: none; margin: 0; padding: 0; }
.ib-drop--right { left: auto; right: 0; }
.ib-intl-nav a { color: #fff; }
.ib-intl-nav a:hover, .ib-intl-nav a:focus, .ib-intl-nav a[aria-current] { color: var(--ib-gold-l); }
.ib-intl-nav__lang { border-left-color: rgba(255, 255, 255, .3); }
@media (min-width: 1200px) {
  .ib-header { position: relative; }
  .ib-header__bar { flex-direction: column; gap: 0; padding: 14px 16px 0; min-height: 0; }
  .ib-brand { justify-content: center; }
  .ib-brand__logo { height: 40px; }
  .ib-brand__name { font-size: 28px; }
  .ib-nav { margin: 8px 0 0; }
  .ib-nav__list { gap: 0; }
  .ib-nav__item + .ib-nav__item::before { content: ""; position: absolute; left: 0; top: 50%; height: 14px; margin-top: -7px; border-left: 1px solid rgba(220, 196, 143, .45); }
  .ib-nav__link { position: relative; padding: 12px 34px 14px; font-size: 16px; font-weight: 700; letter-spacing: .12em; color: #fff; border-radius: 0; }
  .ib-nav__link:hover, .ib-nav__link:focus, .ib-nav__item.is-open > .ib-nav__link { color: var(--ib-gold-l); background: transparent; }
  .ib-home .ib-nav__item:first-child .ib-nav__link::after { content: ""; position: absolute; left: 26px; right: 26px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--ib-gold); }
  .ib-drop { top: calc(100% - 4px); }
  .ib-intl .ib-header__bar { padding-bottom: 12px; }
  .ib-intl-nav { margin: 10px 0 0; justify-content: center; }
}
@media (min-width: 1200px) and (max-width: 1365px) {
  .ib-nav__link { padding: 12px 26px 14px; font-size: 15px; }
  .ib-brand__name { font-size: 26px; }
}
@media (max-width: 1199px) {
  .ib-header__bar { min-height: 60px; }
  .ib-brand__en { display: none; }
  .ib-brand__name { font-size: 18px; }
  .ib-drop--stay { min-width: 0; }
  .ib-nav__item--drop.is-open .ib-drop--guides, .ib-nav__item--drop.is-open .ib-drop--stay { display: block; }
  .ib-nav__item--drop.is-open .ib-drop__towns { display: grid; }
  .ib-nav__item + .ib-nav__item::before { display: none; }
}
@media (max-width: 480px) {
  .ib-brand__logo { height: 30px; }
  .ib-brand__name { font-size: 16px; letter-spacing: .06em; }
}

/* ---------- footer（全站） ---------- */
.ib-footer { margin-top: 0; border-top: 3px solid var(--ib-gold); }
.ib-footer__title { color: var(--ib-gold-l); font-family: var(--ib-serif); }
.ib-footer__bottom { background: #091a33; letter-spacing: .1em; }

/* ---------- 首頁共用 ---------- */
body.ib-home { background: var(--ib-cream); }
.ib-home main { overflow: hidden; }
.ib-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ib-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 18px; padding-left: 14px; border-left: 5px solid var(--ib-gold); }
.ib-sec-head h2 { margin: 0; font-family: var(--ib-serif); font-size: 30px; font-weight: 700; letter-spacing: .1em; color: var(--ib-navy); line-height: 1.25; }
.ib-sec-head p { margin: 0; padding-left: 16px; border-left: 1px solid #c9c1b2; font-size: 15px; letter-spacing: .08em; color: #4c5566; }
@media (max-width: 767px) {
  .ib-wrap { padding: 0 14px; }
  .ib-sec-head h2 { font-size: 23px; }
  .ib-sec-head p { flex-basis: 100%; padding-left: 0; border-left: 0; font-size: 14px; }
}

/* ---------- 主視覺 ---------- */
.ib-hero { position: relative; background: var(--ib-navy); }
.ib-hero .carousel-inner > .item > picture > img,
.ib-hero .carousel-inner img { display: block; width: 100%; height: clamp(320px, 40vw, 600px); object-fit: cover; }
.ib-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 48, .55) 0%, rgba(8, 24, 48, .15) 45%, rgba(8, 24, 48, 0) 70%); pointer-events: none; }
.ib-hero__text { position: absolute; z-index: 2; left: max(6vw, calc((100% - 1200px) / 2 + 20px)); top: 50%; transform: translateY(-55%); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); pointer-events: none; }
.ib-hero__big { margin: 0; font-family: var(--ib-serif); font-size: clamp(54px, 7.4vw, 104px); font-weight: 700; letter-spacing: .14em; line-height: 1.1; }
.ib-hero__sub { margin: 6px 0 0 .2em; font-family: var(--ib-serif); font-size: clamp(22px, 2.8vw, 38px); letter-spacing: .3em; }
.ib-hero__tag { display: inline-block; margin: 18px 0 0 .3em; padding-top: 14px; border-top: 3px solid var(--ib-gold-l); font-size: clamp(14px, 1.3vw, 18px); letter-spacing: .25em; }
.ib-hero__dots { z-index: 3; bottom: 10px; }
@media (max-width: 767px) {
  .ib-hero .carousel-inner img { height: 300px; }
  .ib-hero::after { background: linear-gradient(90deg, rgba(8, 24, 48, .6), rgba(8, 24, 48, .1)); }
  .ib-hero__text { left: 20px; }
  .ib-hero__tag { letter-spacing: .12em; }
}

/* ---------- 旅遊＆活動 ---------- */
.ib-explore { padding: 34px 0 30px; }
.ib-explore__inner { display: flex; align-items: center; gap: 28px; }
.ib-explore__head { flex: 0 0 360px; display: flex; align-items: center; gap: 22px; }
.ib-explore__title { margin: 0; font-family: var(--ib-serif); font-size: 38px; font-weight: 700; letter-spacing: .1em; color: var(--ib-navy); white-space: nowrap; }
.ib-explore__title span { color: var(--ib-gold); }
.ib-explore__sub { margin: 0; padding-left: 20px; border-left: 2px solid var(--ib-gold); font-size: 14px; line-height: 1.9; letter-spacing: .08em; color: #4c5566; }
.ib-explore__sub strong { display: block; font-size: 16px; color: var(--ib-navy); }
.ib-explore__cards { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ib-explore__cards a, .ib-spots__grid a { position: relative; display: block; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 14px rgba(16, 41, 77, .14); text-decoration: none; }
.ib-explore__cards img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; transition: transform .35s ease; }
.ib-explore__cards span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 9px; color: #fff; font-weight: 700; letter-spacing: .08em; background: linear-gradient(transparent, rgba(8, 24, 48, .75)); }
.ib-explore__cards a:hover img, .ib-spots__grid a:hover img, .ib-promo a:hover img { transform: scale(1.05); }
@media (max-width: 991px) {
  .ib-explore__inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .ib-explore__head { flex-basis: auto; }
}
@media (max-width: 767px) {
  .ib-explore__title { font-size: 28px; }
  .ib-explore__cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ib-explore__cards span { padding: 18px 6px 6px; font-size: 13px; letter-spacing: 0; }
}

/* ---------- 廣告：主題型住宿推薦、景點推薦住宿 ---------- */
.ib-stays { padding: 18px 0 24px; }
.ib-adgrid { display: grid; gap: 14px; }
.ib-adgrid--pre { grid-template-columns: repeat(4, 1fr); }
.ib-adgrid--rec { grid-template-columns: repeat(6, 1fr); }
.ib-adgrid > a { display: block !important; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(16, 41, 77, .14); transition: transform .2s ease, box-shadow .2s ease; }
.ib-adgrid > a:hover, .ib-adgrid > a:focus { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16, 41, 77, .2); }
.ib-adgrid img { display: block; width: 100%; height: auto; }
@media (max-width: 991px) {
  .ib-adgrid--pre { grid-template-columns: repeat(2, 1fr); }
  .ib-adgrid--rec { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) { .ib-adgrid { gap: 10px; } }

/* ---------- 在地人推薦導覽橫幅 ---------- */
.ib-band { position: relative; margin-top: 16px; background: var(--ib-navy); }
.ib-band img { display: block; width: 100%; height: 240px; object-fit: cover; opacity: .85; }
.ib-band::after { content: ""; position: absolute; inset: 0; background: rgba(8, 24, 48, .35); }
.ib-band__text { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.ib-band__title { margin: 0; font-family: var(--ib-serif); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: .35em; padding-left: .35em; }
.ib-band__sub { display: flex; align-items: center; gap: 18px; margin: 10px 0 0; font-size: clamp(14px, 1.4vw, 18px); letter-spacing: .3em; }
.ib-band__sub::before, .ib-band__sub::after { content: ""; width: 60px; border-top: 2px solid var(--ib-gold-l); }
@media (max-width: 767px) { .ib-band img { height: 180px; } .ib-band__sub::before, .ib-band__sub::after { width: 24px; } }
.ib-home .ib-guide { background: transparent; }
.ib-home .ib-guide h2, .ib-home .ib-bnb h2 { font-family: var(--ib-serif); color: var(--ib-navy); letter-spacing: .1em; }

/* ---------- 廣告版位：輪播、民宿說故事、推廣卡 ---------- */
.ib-adzone { padding: 0 0 30px; background: linear-gradient(#efe7d8, var(--ib-cream) 120px); }
.ib-adzone__head { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 26px 0 20px; }
.ib-adzone__head::before, .ib-adzone__head::after { content: ""; width: 80px; border-top: 1px solid var(--ib-gold); }
.ib-adzone__head h2 { margin: 0; font-family: var(--ib-serif); font-size: 28px; font-weight: 700; letter-spacing: .3em; padding-left: .3em; color: var(--ib-gold); }
.ib-adzone__row { margin: 0 0 22px; display: flex; flex-wrap: wrap; align-items: stretch; }
.ib-adzone__row .ssbg { padding: 0; }
.ib-adzone__row::before, .ib-adzone__row::after { display: none; }
.ib-adzone__story { padding: 0 0 0 20px; background: none; }
.ib-adzone__story-h { margin: 0 0 12px; padding-left: 12px; border-left: 4px solid var(--ib-gold); font-family: var(--ib-serif); font-size: 22px; font-weight: 700; letter-spacing: .1em; color: var(--ib-navy); }
.ib-adzone__story .bnbsay { padding: 0; }
.ib-adzone__story .bnbsay a { display: block; margin: 0 0 12px; overflow: hidden; border-radius: 8px; box-shadow: 0 4px 14px rgba(16, 41, 77, .14); }
.ib-adzone__story .bnbsay img { display: block; width: 100%; height: auto; }
@media (max-width: 991px) { .ib-adzone__story { padding: 18px 0 0; } }
.ib-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; padding: 0; list-style: none; }
.ib-promo a { position: relative; display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 16px 20px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(16, 41, 77, .12); text-decoration: none; }
.ib-promo__icon { position: relative; z-index: 1; font-size: 40px; color: var(--ib-gold); }
.ib-promo__text { position: relative; z-index: 1; display: flex; flex-direction: column; max-width: 52%; }
.ib-promo__text strong { font-family: var(--ib-serif); font-size: 24px; letter-spacing: .08em; color: var(--ib-navy); }
.ib-promo__text span { margin-top: 4px; font-size: 14px; letter-spacing: .06em; color: #4c5566; }
.ib-promo img { position: absolute; top: 0; right: 0; width: 55%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); transition: transform .35s ease; }
@media (max-width: 767px) {
  .ib-adzone__head h2 { font-size: 22px; }
  .ib-promo { grid-template-columns: 1fr; gap: 12px; }
  .ib-promo__icon { font-size: 30px; }
  .ib-promo__text strong { font-size: 19px; }
}

/* ---------- 冬山河附近民宿（首頁上的樣式微調） ---------- */
.ib-home .ib-bnb { background: #fff; }

/* ---------- 冬山河周邊熱門景點 ---------- */
.ib-spots { padding: 34px 0 26px; }
.ib-spots__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ib-spots__grid a { background: #fff; }
.ib-spots__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; transition: transform .35s ease; }
.ib-spots__grid span { position: relative; display: block; padding: 8px 6px; background: #fff; text-align: center; font-size: 15px; font-weight: 700; color: var(--ib-navy); letter-spacing: .04em; }
@media (max-width: 991px) { .ib-spots__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px) { .ib-spots__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ib-spots__grid span { font-size: 14px; } }

/* ---------- 宜蘭十二鄉鎮民宿名單 ---------- */
.ib-towns12 { padding: 10px 0 40px; }
.ib-towns12__inner { display: flex; align-items: center; gap: 36px; }
.ib-towns12__head { flex: 0 0 auto; padding-left: 14px; border-left: 5px solid var(--ib-gold); }
.ib-towns12__head h2 { margin: 0; font-family: var(--ib-serif); font-size: 28px; font-weight: 700; letter-spacing: .1em; color: var(--ib-navy); }
.ib-towns12__head p { margin: 6px 0 0; font-size: 14px; letter-spacing: .08em; color: #4c5566; }
.ib-towns12__list { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.ib-towns12__list a { display: block; padding: 7px 4px; border: 1px solid var(--ib-gold-l); border-radius: 999px; background: #fff; text-align: center; font-weight: 700; letter-spacing: .1em; color: var(--ib-navy); text-decoration: none; transition: background .2s ease, color .2s ease; }
.ib-towns12__list a:hover, .ib-towns12__list a:focus { background: var(--ib-navy); border-color: var(--ib-navy); color: #fff; }
@media (max-width: 991px) {
  .ib-towns12__inner { flex-direction: column; align-items: stretch; gap: 16px; }
}
@media (max-width: 480px) { .ib-towns12__list { grid-template-columns: repeat(3, 1fr); } .ib-towns12__head h2 { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) {
  .ib-explore__cards img, .ib-spots__grid img, .ib-promo img, .ib-adgrid > a { transition: none; }
}
/* 廣告版位：輪播（舊 .ssbg 有左邊距）與民宿說故事並排；住宿廣告依數量自動排列 */
.ib-adzone__row > .ssbg { float: none; width: 58%; margin: 0 !important; padding: 0 !important; }
.ib-adzone__row > .ib-adzone__story { float: none; width: 42%; }
@media (max-width: 991px) { .ib-adzone__row > .ssbg, .ib-adzone__row > .ib-adzone__story { width: 100%; } }
.ib-adgrid--pre { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.ib-adgrid--rec { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 767px) {
  .ib-adgrid--pre { grid-template-columns: repeat(2, 1fr); }
  .ib-adgrid--rec { grid-template-columns: repeat(3, 1fr); }
}
.ib-explore__head { flex-basis: 430px; }
.ib-explore__sub { white-space: nowrap; }
@media (max-width: 991px) { .ib-explore__head { flex-basis: auto; } }
@media (max-width: 400px) { .ib-explore__head { flex-direction: column; align-items: flex-start; gap: 8px; } .ib-explore__sub { white-space: normal; } }
/* 主色由綠改為深藍，配合 2026-12 新版面（按鈕、篩選、連結） */
:root { --ib-accent: #1c3d6c; }
.ib-btn:hover, .ib-btn:focus, .ib-nav__link--cta:hover, .ib-nav__link--cta:focus { background: var(--ib-navy); }
.ib-btn--ghost:hover, .ib-btn--ghost:focus { color: #fff !important; }
.ib-drop a:hover, .ib-drop a:focus { color: var(--ib-navy); background: #f3eee3; }
.ib-home .ib-guide__cards { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .ib-home .ib-guide__cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ib-adgrid--pre { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .ib-promo a { min-height: 92px; padding: 14px 16px; }
  .ib-promo img { width: 42%; }
  .ib-promo__text { max-width: 60%; }
  .ib-promo__text strong { font-size: 18px; white-space: nowrap; }
  .ib-promo__text span { font-size: 13px; letter-spacing: 0; }
}

/* 2026-12-04 第二次調整：精選推薦移到上方、右欄改成兩張推廣卡；住宿廣告圖維持原尺寸 */
.ib-adzone { padding-bottom: 26px; }
.ib-adzone__side { width: 42%; display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0 0 0 20px; }
.ib-adzone__side li { flex: 1; display: flex; }
.ib-adzone__side a { flex: 1; min-height: 150px; }
@media (max-width: 991px) {
  .ib-adzone__side { width: 100%; padding: 16px 0 0; }
  .ib-adzone__side a { min-height: 104px; }
}
.ib-adgrid, .ib-adgrid--pre, .ib-adgrid--rec { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.ib-adgrid > a { flex: 0 0 auto; }
.ib-adgrid img { width: auto; max-width: 100%; height: auto; }
@media (max-width: 767px) { .ib-adgrid, .ib-adgrid--pre, .ib-adgrid--rec { gap: 10px; } }

/* =====================================================================
   2026-12-04 細節與動態潤飾（impeccable polish ＋ animate）
   動態原則：只有主視覺標題一個主要進場；其餘只做回饋（hover／按壓／展開），
   hover 只在有滑鼠的裝置生效，全部支援 prefers-reduced-motion。
   ===================================================================== */
:root {
  --ib-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ib-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ---------- 瀏覽器原生介面也套用品牌色 ---------- */
::selection { background: var(--ib-gold-l); color: var(--ib-navy); }
html { scrollbar-color: #9aa7bb var(--ib-cream); accent-color: var(--ib-navy-2); }
:focus-visible { outline: 2px solid var(--ib-gold); outline-offset: 3px; }
.ib-header :focus-visible, .ib-footer :focus-visible { outline-color: var(--ib-gold-l); }
.ib-article a, .ib-guide__def a, .ib-bnb__intro a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
.ib-card__meta dd { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#pre, #rec, #ads, #guide, #services_city, #spots, #towns, #explore { scroll-margin-top: 72px; }
@media (min-width: 1200px) { #pre, #rec, #ads, #guide, #services_city, #spots, #towns, #explore { scroll-margin-top: 16px; } }

/* ---------- 內頁：標題與首頁同一套字體、閱讀寬度 ---------- */
.ib-article { max-width: 880px; }
.ib-article h1, .ib-article h2, .ib-article h3 { font-family: var(--ib-serif); color: var(--ib-navy); letter-spacing: .04em; }
.ib-article h1 { font-size: 32px; line-height: 1.3; text-wrap: balance; }
.ib-article h2 { border-left: 0; padding-left: 0; margin-top: 48px; }
.ib-article h2::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: 12px; background: var(--ib-gold); }
.ib-article h3 { color: var(--ib-navy-2); }
.ib-article__body p, .ib-article__body li { line-height: 1.9; }
@media (max-width: 767px) { .ib-article h1 { font-size: 25px; } }

/* ---------- 回到頂端按鈕 ---------- */
.ib-gotop { background: var(--ib-navy); box-shadow: 0 6px 18px rgba(16, 41, 77, .28); }
.ib-gotop:hover, .ib-gotop:focus { background: var(--ib-navy-2); color: var(--ib-gold-l); }

/* ---------- 主視覺：唯一的進場動畫（標題由遮罩升起、金線由左畫出、標語淡入） ---------- */
.ib-hero__dots li { width: 10px; height: 10px; margin: 0 4px; border: 1.5px solid #fff; background: transparent; transition: width .25s var(--ib-ease-out), background-color .2s ease; }
.ib-hero__dots li.active { width: 28px; height: 10px; margin: 0 4px; border-radius: 6px; background: var(--ib-gold-l); border-color: var(--ib-gold-l); }
@media (prefers-reduced-motion: no-preference) {
  .ib-hero__big, .ib-hero__sub { animation: ib-rise .8s var(--ib-ease-out) both; }
  .ib-hero__sub { animation-delay: .12s; }
  .ib-hero__tag { animation: ib-fade .5s var(--ib-ease-out) .45s both; }
  .ib-hero__tag::before { content: ""; position: absolute; left: 0; top: -3px; width: 100%; height: 3px; background: var(--ib-gold-l); transform-origin: left center; animation: ib-draw .7s var(--ib-ease-out) .3s both; }
  .ib-hero__tag { position: relative; border-top-color: transparent; }
}
@keyframes ib-rise {
  from { opacity: 0; transform: translateY(18px); clip-path: inset(-30% -10% 100% -10%); }
  to   { opacity: 1; transform: none; clip-path: inset(-30% -10% -30% -10%); }
}
@keyframes ib-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ib-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 舊版 WOW 進場：首頁精選推薦已在第一屏，不要先隱藏再淡入 */
.ib-adzone .wow { visibility: visible !important; animation: none !important; }

/* ---------- 回饋：hover 只在滑鼠裝置、統一曲線 ---------- */
.ib-explore__cards img, .ib-spots__grid img, .ib-promo img { transition: transform .5s var(--ib-ease-out); }
.ib-adgrid > a { transition: transform .2s var(--ib-ease-out), box-shadow .2s ease; }
.ib-explore__cards a, .ib-spots__grid a, .ib-promo a { transition: box-shadow .2s ease; }
.ib-explore__cards a:hover img, .ib-spots__grid a:hover img, .ib-promo a:hover img { transform: none; }
.ib-adgrid > a:hover, .ib-adgrid > a:focus { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .ib-explore__cards a:hover img, .ib-spots__grid a:hover img, .ib-promo a:hover img { transform: scale(1.04); }
  .ib-explore__cards a:hover, .ib-spots__grid a:hover, .ib-promo a:hover { box-shadow: 0 10px 24px rgba(16, 41, 77, .2); }
  .ib-adgrid > a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 41, 77, .22); }
  .ib-spots__grid a:hover span { color: var(--ib-gold); }
}
.ib-spots__grid span { transition: color .2s ease; }
.ib-promo__icon { transition: transform .25s var(--ib-ease-out); }
@media (hover: hover) and (pointer: fine) { .ib-promo a:hover .ib-promo__icon { transform: translateX(3px); } }

/* 按壓回饋：按鈕、篩選標籤、鄉鎮按鈕 */
.ib-btn, .ib-filter__chip, .ib-filter__reset, .ib-towns12__list a, .ib-quick a, .ib-bnb__tabs button { transition: transform .12s var(--ib-ease-out), background-color .2s ease, color .2s ease, border-color .2s ease; }
.ib-btn:active, .ib-filter__chip:active, .ib-filter__reset:active, .ib-towns12__list a:active, .ib-quick a:active, .ib-bnb__tabs button:active { transform: scale(.97); }
.ib-filter__chip[aria-pressed="true"] { background: var(--ib-navy); border-color: var(--ib-navy); color: #fff; }

/* 下拉選單：由觸發處向下展開，180ms */
.ib-drop { transform-origin: top center; transform: translateY(-4px) scale(.98); transition: opacity .18s var(--ib-ease-out), transform .18s var(--ib-ease-out), visibility 0s linear .18s; }
.ib-nav__item--drop.is-open .ib-drop { transform: none; transition: opacity .18s var(--ib-ease-out), transform .18s var(--ib-ease-out); }
@media (hover: hover) and (min-width: 1200px) { .ib-nav__item--drop:hover .ib-drop { transform: none; transition: opacity .18s var(--ib-ease-out), transform .18s var(--ib-ease-out); } }
.ib-drop--right { transform-origin: top right; }
.ib-nav__toggle::after { transition: transform .2s var(--ib-ease-out); }
.ib-nav__item--drop.is-open .ib-nav__toggle::after { transform: translateY(2px) rotate(180deg); }
@media (max-width: 1199px) { .ib-drop { transform: none; } }

/* 篩選後卡片出現：短淡入，說明清單內容換了 */
@media (prefers-reduced-motion: no-preference) {
  .ib-bnb__cards.is-filtering .ib-card:not([hidden]) { animation: ib-fade .22s var(--ib-ease-out) both; }
}

@media (prefers-reduced-motion: reduce) {
  .ib-explore__cards img, .ib-spots__grid img, .ib-promo img, .ib-adgrid > a, .ib-promo__icon, .ib-drop, .ib-nav__toggle::after, .ib-hero__dots li { transition: none; }
  .ib-btn:active, .ib-filter__chip:active, .ib-filter__reset:active, .ib-towns12__list a:active, .ib-quick a:active, .ib-bnb__tabs button:active { transform: none; }
  @media (hover: hover) and (pointer: fine) {
    .ib-explore__cards a:hover img, .ib-spots__grid a:hover img, .ib-promo a:hover img, .ib-adgrid > a:hover, .ib-promo a:hover .ib-promo__icon { transform: none; }
  }
}


/* ==========================================================================
   2026-12-04 攻略索引、首頁常見問題、footer 重新設計
   ========================================================================== */

/* ---------- 更多冬山河攻略：主題索引卡 ---------- */
.ib-guide__more { max-width: 1200px; margin: 48px auto 0; }
.ib-more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid #e4dccb; }
.ib-more__head h3 { margin: 0; font-family: var(--ib-serif); font-size: 24px; font-weight: 700; color: var(--ib-navy); letter-spacing: .06em; }
.ib-more__head p { margin: 0; font-size: 14px; color: var(--ib-muted); }
.ib-more { background: #fff; border: 1px solid #e9e2d3; border-radius: 6px; box-shadow: 0 1px 2px rgba(16, 41, 77, .04); }
.ib-more__group { display: grid; grid-template-columns: 200px 1fr; gap: 0 28px; padding: 22px 28px; }
.ib-more__group + .ib-more__group { border-top: 1px solid #efe9dc; }
.ib-more__title { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding-top: 6px; font-family: var(--ib-serif); font-size: 19px; font-weight: 700; color: var(--ib-navy); letter-spacing: .08em; }
.ib-more__title .fa { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ib-cream); color: var(--ib-gold); font-size: 15px; }
.ib-more__title small { font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 12px; font-weight: 400; color: var(--ib-gold); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.ib-more__group ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; list-style: none; margin: 0; padding: 0; }
.ib-more__group li { border-bottom: 1px dashed #ebe4d5; }
.ib-more__group a { position: relative; display: block; height: 100%; padding: 12px 28px 12px 0; color: var(--ib-navy); text-decoration: none; }
.ib-more__t { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.ib-more__d { display: block; margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--ib-muted); }
.ib-more__go { position: absolute; right: 4px; top: 50%; margin-top: -7px; font-size: 13px; color: #c9b892; transition: transform .2s var(--ib-ease-out), color .2s ease; }
.ib-more__group a:focus-visible { outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .ib-more__group a:hover .ib-more__t { color: var(--ib-gold); }
  .ib-more__group a:hover .ib-more__go { color: var(--ib-gold); transform: translateX(4px); }
}
@media (max-width: 1100px) { .ib-more__group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .ib-more__head h3 { font-size: 21px; }
  .ib-more__group { grid-template-columns: 1fr; padding: 18px 16px 8px; }
  .ib-more__title { flex-direction: row; align-items: center; padding: 0 0 6px; font-size: 17px; }
  .ib-more__title small { margin-left: auto; }
  .ib-more__group ul { grid-template-columns: 1fr; }
}

/* ---------- 首頁最下方：冬山河常見問題 ---------- */
.ib-hfaq { padding: 72px 0 80px; background: #fff; border-top: 1px solid #ece5d6; }
.ib-hfaq__inner { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 56px; align-items: start; }
.ib-hfaq__head h2 { margin: 0 0 12px; font-family: var(--ib-serif); font-size: 30px; font-weight: 700; line-height: 1.35; color: var(--ib-navy); letter-spacing: .06em; text-wrap: balance; }
.ib-hfaq__head h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--ib-gold); }
.ib-hfaq__head p { margin: 0 0 8px; font-size: 15px; line-height: 1.8; color: var(--ib-muted); }
.ib-hfaq__head .ib-hfaq__note { margin-top: 16px; font-size: 13px; }
.ib-hfaq__list { border-top: 1px solid #e4dccb; }
.ib-hfaq__item { border-bottom: 1px solid #e4dccb; }
.ib-hfaq__item summary { display: flex; align-items: center; gap: 14px; padding: 20px 4px; cursor: pointer; list-style: none; color: var(--ib-navy); }
.ib-hfaq__item summary::-webkit-details-marker { display: none; }
.ib-hfaq__q { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ib-gold-l); font-family: var(--ib-serif); font-size: 14px; font-weight: 700; color: var(--ib-gold); }
.ib-hfaq__text { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.55; }
.ib-hfaq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.ib-hfaq__icon::before, .ib-hfaq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--ib-gold); transition: transform .22s var(--ib-ease-out); }
.ib-hfaq__icon::after { transform: rotate(90deg); }
.ib-hfaq__item[open] .ib-hfaq__icon::after { transform: rotate(0deg); }
.ib-hfaq__a { padding: 0 34px 22px 48px; }
.ib-hfaq__a p { margin: 0; font-size: 16px; line-height: 1.9; color: #3a4552; }
.ib-hfaq__item[open] .ib-hfaq__a { animation: ib-faq-in .22s var(--ib-ease-out); }
@keyframes ib-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (hover: hover) and (pointer: fine) {
  .ib-hfaq__item summary:hover .ib-hfaq__text { color: var(--ib-navy-2); }
  .ib-hfaq__item summary:hover .ib-hfaq__q { background: var(--ib-cream); }
}
@media (max-width: 991px) {
  .ib-hfaq__inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 767px) {
  .ib-hfaq { padding: 48px 0 56px; }
  .ib-hfaq__head h2 { font-size: 24px; }
  .ib-hfaq__text { font-size: 16px; }
  .ib-hfaq__a { padding: 0 4px 20px 44px; }
}

/* ---------- footer（2026-12-04 重新設計） ---------- */
.ib-footer { background: var(--ib-navy); color: rgba(255, 255, 255, .76); }
.ib-footer__inner { padding: 56px 20px 40px; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: 40px; }
.ib-footer__title { margin: 0 0 16px; font-size: 16px; letter-spacing: .12em; }
.ib-footer__title::after { content: ""; display: block; width: 24px; height: 1px; margin-top: 10px; background: var(--ib-gold); }
.ib-footer__brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; color: #fff !important; text-decoration: none !important; }
.ib-footer__brand img { height: 32px; width: auto; }
.ib-footer__brand span { font-family: var(--ib-serif); font-size: 19px; font-weight: 700; letter-spacing: .08em; }
.ib-footer__about p { max-width: 34em; }
.ib-footer__quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.ib-footer__quick a { display: inline-block; padding: 4px 14px; border: 1px solid rgba(220, 196, 143, .45); border-radius: 999px; font-size: 13px; color: var(--ib-gold-l) !important; text-decoration: none !important; transition: background-color .2s ease, color .2s ease; }
.ib-footer__links li { margin: 0 0 4px; }
.ib-footer a:hover, .ib-footer a:focus { color: #fff; text-decoration: none; }
.ib-footer__links a, .ib-footer__contact a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s var(--ib-ease-out), color .2s ease; }
.ib-footer__contact p { display: flex; gap: 10px; margin: 0 0 8px; }
.ib-footer__contact .fa { flex: none; width: 16px; margin-top: 6px; font-size: 13px; color: var(--ib-gold); text-align: center; }
.ib-footer__company { border-top: 1px solid rgba(255, 255, 255, .08); background: #0c2140; }
.ib-footer__company-inner { max-width: 1200px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; gap: 28px; }
.ib-footer__ete { flex: none; display: block; line-height: 0; padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, .14); }
.ib-footer__ete img { width: 120px; height: auto; }
.ib-footer__company-name { margin: 0 0 6px; font-family: var(--ib-serif); font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .1em; }
.ib-footer__company-links { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.ib-footer__company-links li + li::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: rgba(255, 255, 255, .25); vertical-align: -1px; }
.ib-footer__bottom { background: #081830; border-top: 0; color: rgba(255, 255, 255, .55); font-size: 12px; }
@media (hover: hover) and (pointer: fine) {
  .ib-footer__links a:hover, .ib-footer__contact a:hover { background-size: 100% 1px; }
  .ib-footer__quick a:hover { background: var(--ib-gold); color: var(--ib-navy) !important; }
  .ib-footer__ete img { transition: opacity .2s ease; }
  .ib-footer__ete:hover img { opacity: .85; }
}
@media (max-width: 991px) {
  .ib-footer__inner { grid-template-columns: 1fr 1fr; }
  .ib-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ib-footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px 32px; }
  .ib-footer__company-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ib-footer__ete { padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ib-more__go, .ib-hfaq__icon::before, .ib-hfaq__icon::after, .ib-footer__links a, .ib-footer__contact a { transition: none; }
  .ib-hfaq__item[open] .ib-hfaq__a { animation: none; }
}
/* 舊 main.min.css 的 #faq（浮動按鈕用）在 ≤400px 設 width:18%，會把本站問答區擠窄：一律還原 */
#faq.ib-hfaq, #faq.ib-faq { width: auto; bottom: auto; right: auto; }
@media (max-width: 600px) {
  .ib-footer__company-links { gap: 6px 18px; }
  .ib-footer__company-links li + li::before { display: none; }
}

/* ==========================================================================
   2026-12-05 姊妹站套用 dsr 版型：景點介紹、長站名主視覺
   ========================================================================== */
.ib-hero__big--long { font-size: clamp(38px, 5.4vw, 76px); letter-spacing: .1em; }

.ib-about { padding: 72px 0; background: #fff; }
.ib-about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.ib-about__kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .3em; color: var(--ib-gold); }
.ib-about__text h2 { margin: 0 0 22px; font-family: var(--ib-serif); font-size: 32px; font-weight: 700; line-height: 1.35; letter-spacing: .06em; color: var(--ib-navy); text-wrap: balance; }
.ib-about__text h2::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 16px; background: var(--ib-gold); }
.ib-about__text h3 { margin: 26px 0 8px; font-family: var(--ib-serif); font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--ib-navy-2); }
.ib-about__text p { margin: 0 0 12px; font-size: 16px; line-height: 1.95; color: #3a4552; }
.ib-about__photos { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; aspect-ratio: 5 / 4; }
.ib-about__photos li { overflow: hidden; border-radius: 8px; box-shadow: 0 6px 18px rgba(16, 41, 77, .14); }
.ib-about__photos li:first-child { grid-row: 1 / span 2; }
.ib-about__photos img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ib-ease-out); }
@media (hover: hover) and (pointer: fine) { .ib-about__photos li:hover img { transform: scale(1.04); } }
@media (max-width: 991px) {
  .ib-about__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 767px) {
  .ib-about { padding: 48px 0; }
  .ib-about__text h2 { font-size: 25px; }
  .ib-about__photos { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ib-about__photos img { transition: none; } }
