/* 頁尾（首頁、消息清單頁、關於我們共用；窄螢幕規則也在這裡，responsive.css 與 news-page.css 不再寫頁尾）
   2026-10-22 重新編排：上排品牌＋站內導覽＋公司資訊三欄、下排鄉鎮入口＋相關網站兩欄並排、版權一行，整體高度約減半 */
footer {
  background:#133842;
  color:#e2e9e5;
  padding:36px 0 16px;
  margin-top:0;
}

footer h3 {
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  color:#f8f3e8;
  margin:0 0 8px;
}

footer a:hover {
  text-decoration:underline;
}

/* ── 上排：品牌｜探索台東｜公司資訊｜回頂端 ── */
.footer-main {
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(0,1fr) minmax(0,1.25fr) auto;
  gap:36px;
  align-items:start;
}

.footer-main .brand {
  font-size:20px;
}

.footer-main .brand:hover {
  text-decoration:none;
}

.footer-main .brand-mark {
  font-size:34px;
}

.footer-trust {
  font-size:13px;
  line-height:1.8;
  margin:12px 0 0;
  color:#c0cfce;
  max-width:34em;
}

.footer-trust strong {
  color:#f8f3e8;
  font-weight:600;
}

.footer-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.footer-actions a {
  font-size:13px;
  font-weight:600;
  line-height:1;
  color:#f8f3e8;
  border:1px solid #a9c2c5;
  border-radius:24px;
  padding:8px 15px;
  white-space:nowrap;
  transition:background .2s,color .2s;
}

.footer-actions a:hover {
  background:#f8f3e8;
  color:#133842;
  text-decoration:none;
}

/* 探索台東：兩欄排列，六個連結只佔三行 */
.footer-nav {
  display:grid;
  grid-template-columns:repeat(2,max-content);
  column-gap:22px;
  align-content:start;
}

.footer-nav h3 {
  grid-column:1/-1;
}

.footer-col>a,.footer-col>button,.footer-contact address>* {
  display:block;
  padding:0;
  font-size:13px;
  color:#c0cfce;
  line-height:1.9;
  text-align:left;
}

.footer-col>button {
  background:none;
  border:0;
  cursor:pointer;
  font-family:inherit;
}

.footer-col>button:hover {
  text-decoration:underline;
}

.footer-contact address {
  font-style:normal;
}

.footer-contact address>span:first-child {
  color:#f8f3e8;
}

.footer-contact b {
  font-weight:400;
  color:#8fa9ab;
  margin-right:9px;
}

.back-top {
  width:35px;
  height:35px;
  border:1px solid #a9c2c5;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:20px;
}

.back-top:hover {
  text-decoration:none;
  background:#ffffff14;
}

/* ── 下排：鄉鎮民宿入口｜相關網站（並排） ── */
.footer-links {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:36px;
  border-top:1px solid #ffffff19;
  margin-top:24px;
  padding-top:18px;
}

.footer-row {
  display:grid;
  grid-template-columns:7em minmax(0,1fr);
  gap:10px;
  font-size:13px;
  line-height:1.85;
}

.footer-row strong {
  font-weight:400;
  color:#8fa9ab;
  letter-spacing:.04em;
}

.footer-row span {
  display:flex;
  flex-wrap:wrap;
  column-gap:16px;
}

.footer-row a {
  color:#dbe7e3;
  white-space:nowrap;
}

.footer-related .footer-row a {
  color:#c0cfce;
}

.footer-related .footer-row+.footer-row {
  margin-top:4px;
}

/* 「相關網站」用 details：桌機一律展開、標題不可點；手機預設收合，點標題展開 */
.footer-fold>summary {
  list-style:none;
  cursor:pointer;
}

.footer-fold[open]>summary {
  pointer-events:none;
}

.footer-fold>summary::-webkit-details-marker {
  display:none;
}

/* ── 版權列 ── */
.footer-bottom {
  border-top:1px solid #ffffff19;
  margin-top:18px;
  padding-top:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:12px;
  color:#a7bdbe;
  gap:8px 20px;
  flex-wrap:wrap;
}

.footer-bottom span a {
  text-decoration:underline;
}

.footer-webview {
  flex:none;
  margin-left:auto;
  transition:opacity .2s;
}

.footer-webview:hover {
  opacity:.75;
}

.footer-webview img {
  width:64px;
  height:auto;
}

/* ── 窄螢幕 ── */
@media (max-width:1100px) {
  .footer-main {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
    gap:24px 30px;
  }
  .footer-main .footer-brand {
    grid-column:1/-1;
  }
  .footer-main .back-top {
    grid-column:3;
    grid-row:2;
  }
  .footer-trust {
    max-width:none;
  }
}

@media (max-width:860px) {
  .footer-links {
    grid-template-columns:1fr;
    gap:14px;
  }
}

@media (max-width:640px) {
  footer {
    padding:26px 0 14px;
  }
  .footer-main {
    grid-template-columns:1fr;
    gap:16px;
    position:relative;
  }
  .footer-main .back-top {
    position:absolute;
    right:0;
    top:0;
  }
  .footer-main .brand {
    font-size:18px;
  }
  .footer-main .brand-mark {
    font-size:30px;
  }
  .footer-trust {
    font-size:12.5px;
    line-height:1.75;
    margin-top:10px;
  }
  .footer-actions {
    margin-top:12px;
  }
  .footer-actions a {
    padding:8px 13px;
    font-size:12.5px;
  }
  footer h3 {
    margin-bottom:4px;
  }
  /* 站內導覽與公司資訊改成整行換行排列，不再一行一個 */
  .footer-nav {
    display:flex;
    flex-wrap:wrap;
    column-gap:16px;
  }
  .footer-nav h3 {
    flex-basis:100%;
  }
  .footer-contact address {
    display:flex;
    flex-wrap:wrap;
    column-gap:14px;
  }
  .footer-contact address>span:first-child {
    flex-basis:100%;
  }
  .footer-col>a,.footer-col>button,.footer-contact address>* {
    font-size:12.5px;
    line-height:1.8;
  }
  .footer-contact b {
    margin-right:5px;
  }
  .footer-links {
    margin-top:16px;
    padding-top:14px;
  }
  .footer-row {
    grid-template-columns:6.4em minmax(0,1fr);
    gap:6px;
    font-size:12.5px;
    line-height:1.75;
  }
  .footer-row strong {
    font-size:11.5px;
    white-space:nowrap;
    letter-spacing:0;
  }
  .footer-row span {
    column-gap:12px;
  }
  .footer-bottom {
    font-size:11.5px;
    line-height:1.6;
    margin-top:14px;
    gap:4px 12px;
  }
  .footer-en {
    display:none;
  }
  .footer-fold>summary,.footer-fold[open]>summary {
    pointer-events:auto;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:8px;
  }
  .footer-fold>summary h3 {
    margin:0;
  }
  .footer-fold>summary::after {
    content:"";
    width:7px;
    height:7px;
    border-right:1.5px solid #a9c2c5;
    border-bottom:1.5px solid #a9c2c5;
    transform:rotate(45deg) translateY(-2px);
    transition:transform .2s;
  }
  .footer-fold[open]>summary::after {
    transform:rotate(-135deg) translateY(-1px);
  }
  .footer-fold[open]>summary {
    margin-bottom:6px;
  }
  .footer-bottom {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
  }
  .footer-bottom>span {
    grid-column:1;
  }
  .footer-webview {
    grid-column:2;
    grid-row:1/span 2;
  }
  .footer-webview img {
    width:52px;
  }
}
