/* 最新消息：入口站首頁區塊（sections/news.php）與標題清單頁（news/index.php）。
   入口站只列標題：日期、鄉鎮、分類、標題，點了連到鄉鎮民宿網的文章。 */
.news-section {
  padding-block:var(--section-gap) 0;
}

.news-list {
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid #dfdfd5;
}

.news-list li {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:4px 14px;
  padding:15px 4px;
  border-bottom:1px solid #dfdfd5;
  line-height:1.75;
}

.news-list time {
  color:var(--muted);
  font-size:13.5px;
  font-variant-numeric:tabular-nums;
  min-width:5.6em;
}

.news-list .news-town {
  font:700 15px/1.75 var(--serif);
  letter-spacing:.06em;
  color:var(--orange-text);
  min-width:3.6em;
}

.news-list .news-cat {
  font-size:12.5px;
  color:#4c666c;
  border:1px solid var(--line);
  border-radius:999px;
  padding:0 10px;
  white-space:nowrap;
}

.news-list a {
  flex:1 1 320px;
  font-size:16px;
  font-weight:700;
  color:var(--ink);
}

.news-list a:hover {
  color:var(--orange-text);
  text-decoration:underline;
}

.news-more {
  margin:16px 0 0;
  font-size:13px;
}

.news-more a {
  display:inline-block;
  padding:7px 20px;
  border:1px solid var(--ink);
  border-radius:999px;
  font-weight:700;
}

.news-more a:hover {
  background:var(--ink);
  color:#fff;
}

/* ── 標題清單頁 ── */
.news-top {
  background:#fffefb;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:30;
}

.news-top-inner {
  max-width:1376px;
  margin:auto;
  padding:14px 32px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 28px;
}

.news-top nav {
  display:flex;
  flex-wrap:wrap;
  gap:6px 22px;
  margin-left:auto;
  font-size:14px;
  font-weight:600;
}

.news-top nav>a {
  padding:6px 0;
  border-bottom:2px solid transparent;
}

.news-top nav>a:hover,.news-top nav>a.active {
  border-bottom-color:var(--orange);
}

/* 鄉鎮民宿選單（面板樣式在 header.css）：這一頁用 details 開合，面板貼在頁首下方 */
.news-top .nav-towns {
  display:block;
}

.news-top .nav-towns-button {
  padding:6px 0 8px;
  list-style:none;
  cursor:pointer;
}

.news-top .nav-towns-button::-webkit-details-marker {
  display:none;
}

.news-page {
  padding:30px 0 50px;
}

.news-crumb {
  font-size:12px;
  color:var(--muted);
  margin-bottom:14px;
}

.news-crumb a {
  text-decoration:underline;
}

.news-page h1 {
  margin:0 0 8px;
  font:700 30px/1.45 var(--serif);
  letter-spacing:.04em;
}

.news-lead {
  margin:0 0 22px;
  color:#4c666c;
  font-size:14px;
}

.news-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 10px;
  align-items:center;
  font-size:13px;
}

.news-filters b {
  min-width:3em;
  color:var(--muted);
  font-weight:600;
}

.news-filters a {
  padding:3px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
}

.news-filters a.on,.news-filters a:hover {
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}

.news-list-full {
  margin-top:18px;
}

.news-empty {
  padding:30px 4px;
  color:var(--muted);
}

.news-pager {
  margin-top:26px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.news-pager a,.news-pager span {
  min-width:36px;
  padding:5px 10px;
  text-align:center;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
}

.news-pager span {
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}

.news-foot {
  border-top:1px solid var(--line);
  background:#fffefb;
  padding:22px 0 28px;
  font-size:12.5px;
  color:#4c666c;
  line-height:1.9;
}

.news-foot a {
  text-decoration:underline;
}

@media (max-width:1150px) {
  .news-top .towns-menu-inner {
    width:calc(100% - 40px);
    gap:22px 20px;
    padding-top:24px;
  }

  .news-top .towns-menu-zone li a {
    flex-direction:column;
    gap:0;
    padding:6px 0;
  }
}

@media (max-width:700px) {
  .news-top .towns-menu {
    max-height:calc(100dvh - 130px);
    overflow-y:auto;
  }

  .news-top .towns-menu-inner {
    width:calc(100% - 32px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 16px;
    padding:18px 0 16px;
  }

  .news-top-inner {
    padding:12px 16px;
  }

  .news-top nav {
    margin-left:0;
    width:100%;
  }

  .news-page h1 {
    font-size:24px;
  }

  .news-list a {
    flex-basis:100%;
    font-size:14.5px;
  }
}
