/* 宜蘭景點網 最新消息 — uses the shared tokens from /mob/css/scenic-shell.css */
.news-page { color: var(--text); background: var(--surface); font: 16px/1.75 var(--body); padding-bottom: 8px; }
.news-page *, .news-page *::before, .news-page *::after { box-sizing: border-box; }
.news-page [hidden] { display: none !important; }
.news-page a { color: inherit; text-decoration: none; }
.news-page button, .news-page input, .news-page select { font: inherit; }
.news-page a:focus-visible, .news-page button:focus-visible, .news-page input:focus-visible, .news-page select:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.news-page h1, .news-page h2, .news-page p { margin: 0; }
.news-container { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.news-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* hero */
.news-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--ink); }
.news-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/images/og/toucheng.jpg") center 55% / cover no-repeat; }
.news-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(8 28 46 / 88%), rgb(12 36 58 / 55%) 55%, rgb(10 32 52 / 20%)); }
.news-hero-inner { display: flex; align-items: center; min-height: 230px; padding: 40px 0; }
.news-page h1 { color: #fff; font: 900 clamp(34px, 4.6vw, 50px)/1.2 var(--display); letter-spacing: .06em; margin-bottom: 10px; }
.news-hero-lead { max-width: 36em; color: #e4eef7; font-size: 17px; line-height: 1.7; }

/* toolbar */
.news-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0 22px; }
.news-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.news-filters a:hover { background: var(--leaf); border-color: var(--green); }
.news-filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.news-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.news-page input, .news-page select { min-height: 42px; max-width: 100%; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); font-size: 14px; }
.news-page input { width: 220px; }
.news-page input:focus, .news-page select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgb(29 95 148 / 15%); }
.news-apply, .news-page .news-apply:visited { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--clay); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.news-apply:hover { background: var(--clay-strong); color: #fff; }

/* layout */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding-bottom: 36px; }
.news-results { min-width: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 2px rgb(17 50 77 / 5%); transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.news-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 18px 18px; }
.news-card time { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.news-card h2 { margin: 0 0 8px; color: var(--ink); font: 700 18px/1.5 var(--display); }
.news-card h2 a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.news-card-body > p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.news-read { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 40px; margin-top: auto; color: var(--green) !important; font-size: 14px; font-weight: 700; }
.news-read:hover { color: var(--green-strong) !important; text-decoration: underline; text-underline-offset: 4px; }

/* featured (pinned) */
.news-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 18px; }
.news-featured .news-card-body { justify-content: center; padding: 26px 30px; }
.news-featured h2 { font-size: clamp(20px, 2.2vw, 26px); }
.news-featured .news-card-body > p { -webkit-line-clamp: 4; font-size: 15px; }

/* photo */
.news-photo { position: relative; flex-shrink: 0; overflow: hidden; aspect-ratio: 16 / 10; background: var(--leaf); }
.news-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.news-card:hover .news-photo img { transform: scale(1.04); }
.news-photo-empty { background: linear-gradient(135deg, var(--ink), var(--ink-soft)); }
.news-cover-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; color: #dbe7f1; text-align: center; }
.news-cover-placeholder span { font-size: 12px; letter-spacing: .18em; opacity: .75; }
.news-cover-placeholder svg { width: 96px; height: auto; opacity: .7; }
.news-cover-placeholder strong { color: #fff; font: 700 17px/1.3 var(--display); letter-spacing: .06em; }
.news-badge { position: absolute; top: 12px; left: 12px; padding: 3px 11px; border-radius: 999px; background: rgb(255 255 255 / 94%); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-1); }

/* list footer */
.news-empty { padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--paper); text-align: center; }
.news-empty h2 { margin-bottom: 8px; color: var(--ink); font: 700 22px/1.4 var(--display); }
.news-empty p { margin-bottom: 18px; color: var(--muted); }
.news-list-bottom { margin-top: 22px; color: var(--muted); font-size: 14px; }
.news-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.news-pagination a, .news-pagination span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-pagination a:hover { background: var(--leaf); border-color: var(--green); }
.news-pagination span[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 700; }

/* sidebar */
.news-sidebar { display: grid; align-content: start; gap: 18px; }
.news-panel, .news-inspiration { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.news-panel-heading h2, .news-inspiration h2 { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink); font: 700 18px/1.3 var(--display); }
.news-panel > p { color: var(--muted); font-size: 14px; }
.news-popular { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.news-popular li + li { margin-top: 4px; }
.news-popular a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 0; color: var(--text); font-size: 14px; line-height: 1.55; }
.news-popular a:hover { color: var(--green); }
.news-rank { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf); color: var(--green-strong); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.news-popular li:first-child .news-rank { background: var(--clay); color: #fff; }
.news-category-links { display: grid; }
.news-category-links a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 600; }
.news-category-links a::after { content: "→"; color: var(--green); }
.news-category-links a:last-child { border-bottom: 0; }
.news-category-links a:hover { color: var(--green); }
.news-inspiration { background: var(--ink); border-color: var(--ink); color: #dbe7f1; }
.news-inspiration h2 { color: #fff; border-color: rgb(255 255 255 / 15%); }
.news-inspiration p { margin-bottom: 16px; font-size: 14px; line-height: 1.7; }

/* benefits strip */
.news-benefits { padding: 28px 0; border-top: 1px solid var(--line); background: var(--paper); }
.news-benefits .news-container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.news-benefits a { display: flex; align-items: center; min-height: 72px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: background .2s, border-color .2s; }
.news-benefits a:hover { background: var(--leaf); border-color: var(--leaf-strong); }
.news-benefits strong, .news-benefits small { display: block; }
.news-benefits strong { color: var(--ink); font-size: 16px; }
.news-benefits small { color: var(--muted); font-size: 13px; }

/* detail */
.news-detail-container { max-width: 860px; margin-top: 28px; margin-bottom: 36px; padding: 28px clamp(18px, 4vw, 48px) 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-1); }
.news-detail-container h1 { margin: 10px 0 12px; color: var(--ink); font: 900 clamp(26px, 3.6vw, 38px)/1.35 var(--display); letter-spacing: .01em; text-wrap: balance; }
.news-detail-crumb { color: var(--muted); font-size: 14px; }
.news-detail-crumb a { color: var(--muted); }
.news-detail-crumb a:hover { color: var(--green); text-decoration: underline; }
.news-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.news-detail-category { padding: 2px 11px; border-radius: 999px; background: var(--leaf); color: var(--green-strong); font-weight: 700; }
.news-detail-cover { display: block; width: 100%; height: auto; margin: 0 0 22px; border-radius: var(--radius); }
.news-detail-summary { margin-bottom: 24px !important; padding: 16px 20px; border: 1px solid var(--leaf-strong); border-radius: var(--radius); background: var(--leaf); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.8; }
.news-detail-content { font-size: 16px; line-height: 1.85; }
.news-detail-content > * + * { margin-top: 1em; }
.news-detail-content h2 { margin-top: 1.8em; color: var(--ink); font: 700 23px/1.4 var(--display); }
.news-detail-content h3 { margin-top: 1.5em; color: var(--ink); font-size: 19px; }
.news-detail-content a { color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.news-detail-content ul, .news-detail-content ol { padding-inline-start: 1.4em; }
.news-detail-content li::marker { color: var(--green); }
.news-detail-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.news-detail-content blockquote { margin: 1.2em 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.news-detail-content table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.news-detail-content th, .news-detail-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.news-detail-content thead { background: var(--leaf); }
.news-detail-related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.news-detail-related h2 { margin-bottom: 10px; color: var(--ink); font: 700 20px/1.4 var(--display); }
.news-detail-related ul { margin: 0 0 20px; padding-inline-start: 1.2em; }
.news-detail-related li + li { margin-top: 6px; }
.news-detail-related a { color: var(--green); }
.news-detail-related small { color: var(--muted); }

@media (max-width: 1080px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-featured { grid-template-columns: 1fr; }
    .news-featured .news-card-body { padding: 18px; }
}
@media (max-width: 680px) {
    .news-container { width: calc(100% - 32px); }
    .news-hero-inner { min-height: 180px; padding: 30px 0; }
    .news-tools { width: 100%; margin-left: 0; }
    .news-page input { flex: 1 1 100%; width: 100%; }
    .news-grid { grid-template-columns: 1fr; }
    .news-benefits .news-container { grid-template-columns: 1fr; }
    .news-detail-container { margin-top: 16px; padding: 20px 18px 28px; border-radius: var(--radius); }
}
@media (prefers-reduced-motion: reduce) {
    .news-card, .news-photo img { transition: none; }
    .news-card:hover, .news-card:hover .news-photo img { transform: none; }
}
