@charset "UTF-8";
/* ==========================================================================
   花蓮包棟民宿網 /news/ 最新消息版面
   --------------------------------------------------------------------------
   來源：2026-09-17 的最新消息設計稿（原 news/styles.css，備份在
         project/backup/2026-09-21-news-template/）。配色、字型層級與版面比例
         照設計稿：深藍綠 #07536b、金色點綴 #b68b46、襯線標題＋無襯線內文、
         滿版頁首、分類頁籤、精選大卡、四欄文章卡、右側欄、頁尾橫幅。

   與設計稿的差異（都是為了能放進正式站）：
   1. 設計稿的樣式沒有作用域（直接寫 body、a、img、button、.hero、.sidebar…），
      放進正式站會蓋到全站選單與站尾。這裡全部改成 .hln- 前綴並收在 .hln 容器內。
   2. 設計稿自帶的頁首與頁尾不採用，改用全站共用頁框（inc/hl_head.php／hl_foot.php）。
   3. 分類頁籤由 JavaScript 篩選改成一般連結（?cat=），不開 JavaScript 也能用。
   4. 圖示改用站上已載入的 Font Awesome 4／5，不另外載入第 6 版。
   5. 新增設計稿沒有的兩塊：分頁、文章內頁。

   【掛載】main.css → header/css/*.css →（Google Fonts）→ 本檔，由 news/index.php 與
   news/detail.php 透過 $pg['css'] 帶入。
   【回退】本檔只被 /news/ 底下兩個頁面引用，刪掉不影響站上其他頁面。
   ========================================================================== */

.hln {
	--hln-ink: #15384a;
	--hln-muted: #667984;
	--hln-teal: #07536b;
	--hln-teal-dark: #043d50;
	--hln-gold: #8a6526;          /* 設計稿的 #b68b46 在白底對比不足，承載文字時用加深版 */
	--hln-gold-deco: #b68b46;     /* 純裝飾（徽章底色、排名數字）用原色 */
	--hln-line: #dfe5e8;
	--hln-mist: #f4f6f6;
	--hln-shadow: 0 8px 24px rgba(18, 52, 67, .08);
	--hln-serif: "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif;
	--hln-sans: "Noto Sans TC", "Microsoft JhengHei", "微軟正黑體", Arial, sans-serif;
	color: var(--hln-ink);
	font-family: var(--hln-sans);
	font-size: 15px;
	line-height: 1.8;
	letter-spacing: 0;
	text-align: left;
}
.hln, .hln *, .hln *::before, .hln *::after { box-sizing: border-box; }
.hln img { display: block; max-width: 100%; height: auto; }
.hln a { color: inherit; text-decoration: none; }
.hln a:focus-visible, .hln button:focus-visible, .hln select:focus-visible { outline: 3px solid var(--hln-gold-deco); outline-offset: 2px; }
.hln p { margin: 0; text-align: left; }   /* 權重 0,1,1：要蓋過頁框的段落預設；下面凡是直接套在 <p> 上、又要自訂 margin 的類別，都要寫成 .hln .xxx 才贏得過這一條 */
.hln ul, .hln ol { margin: 0; padding: 0; }

/* 頁框容器：最新消息的內容區比一般內頁寬一點，和設計稿的 1180px 一致 */
.gyp.hln-frame { max-width: 1220px; }

/* --------------------------------------------------------------------------
   1. 頁首（列表頁）
   -------------------------------------------------------------------------- */
.hln-hero { position: relative; height: 340px; overflow: hidden; color: #fff; background: #0b3f50; text-align: left; }
.hln-hero > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 48%; }
.hln-hero-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(90deg, rgba(6, 41, 56, .72), rgba(6, 41, 56, .12) 72%); }
.hln-hero-copy { position: absolute; left: 6%; right: 6%; top: 50%; max-width: 640px; transform: translateY(-50%); }
.hln-hero-kicker { margin: 0 0 8px; color: #fff; font-family: Georgia, serif; font-size: 12px; line-height: 1.6; letter-spacing: 3px; }
.hln-hero h1 { margin: 0 0 14px; padding: 0; border: 0; color: #fff; font-family: "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif; font-size: 46px; font-weight: 600; line-height: 1.2; letter-spacing: 2px; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.hln-hero-sub { margin: 0; color: #fff; font-family: "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif; font-size: 18px; font-weight: 500; line-height: 1.8; }
.hln-hero-note { position: absolute; right: 6%; bottom: 34px; display: flex; flex-direction: column; color: #fff; font-family: "Noto Serif TC", "Noto Serif CJK TC", "PMingLiU", serif; text-align: right; transform: rotate(-5deg); text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.hln-hero-note strong { font-size: 22px; font-weight: 500; line-height: 1.4; }
.hln-hero-note span { margin-top: 6px; font-size: 14px; line-height: 1.4; }

/* --------------------------------------------------------------------------
   2. 分類頁籤
   -------------------------------------------------------------------------- */
.hln-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 14px 0 20px; padding: 0 0 17px; border-bottom: 1px solid var(--hln-line); }
.hln .hln-tab { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; border: 1px solid #edf0f1; border-radius: 3px; background: #f4f5f5; color: var(--hln-ink); font-size: 15px; font-weight: 500; line-height: 1.4; text-align: center; white-space: nowrap; transition: background .2s, border-color .2s, color .2s; }
.hln .hln-tab:hover, .hln .hln-tab:focus-visible, .hln .hln-tab.is-active { border-color: var(--hln-teal); background: var(--hln-teal); color: #fff; }

/* --------------------------------------------------------------------------
   3. 兩欄骨架
   -------------------------------------------------------------------------- */
.hln-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin: 0 0 42px; }
.hln-main { min-width: 0; }

/* --------------------------------------------------------------------------
   4. 精選大卡
   -------------------------------------------------------------------------- */
.hln-featured { display: grid; grid-template-columns: 58% 42%; border: 1px solid var(--hln-line); background: #fff; box-shadow: var(--hln-shadow); }
.hln .hln-featured-media { position: relative; display: block; min-height: 270px; overflow: hidden; background: var(--hln-mist); }
.hln-featured-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .4s ease; }
.hln-featured-media:hover img { transform: scale(1.03); }
.hln-badge { position: absolute; top: 16px; left: 16px; padding: 6px 16px; border-radius: 3px; background: var(--hln-gold); color: #fff; font-size: 13px; line-height: 1.5; }
.hln-featured-body { padding: 24px; }
.hln-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; color: #5f6f78; font-size: 12px; line-height: 1.6; }
.hln-meta i { margin-right: 3px; }
.hln-featured-body h2 { margin: 0 0 14px; padding: 0; border: 0; color: #183d51; font-family: var(--hln-serif); font-size: 25px; font-weight: 700; line-height: 1.45; letter-spacing: 0; }
.hln-featured-body h2 a:hover, .hln-card-title a:hover, .hln-popular a:hover { color: var(--hln-teal); text-decoration: underline; }
.hln-featured-body p { margin: 0 0 18px; color: var(--hln-muted); font-size: 15px; line-height: 1.8; }
.hln .hln-more { display: inline-flex; align-items: center; gap: 10px; color: var(--hln-ink); font-size: 13px; font-weight: 700; line-height: 1.6; }
.hln .hln-more:hover { color: var(--hln-teal); }

/* --------------------------------------------------------------------------
   5. 文章卡片
   -------------------------------------------------------------------------- */
.hln-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.hln-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.hln-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--hln-line); background: #fff; transition: box-shadow .2s, transform .2s; }
.hln-card:hover { box-shadow: var(--hln-shadow); transform: translateY(-2px); }
.hln .hln-card-media { display: block; overflow: hidden; background: var(--hln-mist); }
.hln-card-media img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.hln-card-body { display: flex; flex: 1; flex-direction: column; padding: 13px 14px 16px; }
.hln-card-body .hln-meta { margin-bottom: 8px; }
.hln .hln-card-title { margin: 0 0 8px; padding: 0; border: 0; color: #183d51; font-family: var(--hln-serif); font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.hln-card-body p { flex: 1 1 auto; margin: 0 0 14px; color: var(--hln-muted); font-size: 13px; line-height: 1.75; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

.hln-empty { padding: 50px 20px; border: 1px solid var(--hln-line); color: var(--hln-muted); text-align: center; }
.hln-empty h1, .hln-empty h2 { margin: 0 0 10px; padding: 0; border: 0; color: var(--hln-ink); font-family: var(--hln-serif); font-size: 22px; line-height: 1.5; }
.hln-empty p { text-align: center; }
.hln .hln-empty a { color: var(--hln-teal); text-decoration: underline; }

/* --------------------------------------------------------------------------
   6. 分頁（設計稿沒有，沿用頁籤的語彙）
   -------------------------------------------------------------------------- */
.hln-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; }
.hln .hln-pages a, .hln-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--hln-line); border-radius: 3px; background: #fff; color: var(--hln-ink); font-size: 15px; line-height: 1; }
.hln .hln-pages a:hover { border-color: var(--hln-teal); color: var(--hln-teal); }
.hln-pages span.is-active { border-color: var(--hln-teal); background: var(--hln-teal); color: #fff; }

/* --------------------------------------------------------------------------
   7. 側欄
   -------------------------------------------------------------------------- */
.hln-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hln-panel { border: 1px solid var(--hln-line); background: #fff; }
.hln-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 0 16px; border-bottom: 1px solid var(--hln-line); }
.hln-panel-head h2 { margin: 0; padding: 0; border: 0; color: var(--hln-ink); font-family: var(--hln-serif); font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.hln .hln-panel-head a { color: var(--hln-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hln .hln-panel-head a:hover { color: var(--hln-teal); }

.hln-popular { margin: 0; padding: 8px 14px; list-style: none; }
.hln-popular li { display: grid; grid-template-columns: 22px 70px minmax(0, 1fr); align-items: center; gap: 9px; margin: 0; padding: 10px 0; border-bottom: 1px solid #edf0f1; list-style: none; }
.hln-popular li:last-child { border-bottom: 0; }
.hln-rank { color: var(--hln-gold-deco); font-family: Georgia, serif; font-size: 26px; font-style: italic; line-height: 1; }
.hln-popular img { width: 70px; height: 48px; object-fit: cover; }
.hln .hln-popular a { color: var(--hln-ink); font-family: var(--hln-serif); font-size: 13px; font-weight: 600; line-height: 1.45; }
.hln-popular small { display: block; margin-top: 5px; color: #6c7a82; font-family: var(--hln-sans); font-size: 11px; font-weight: 400; }

.hln-find { padding: 13px; }
.hln-find label { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 9px; padding: 8px 10px; border: 1px solid var(--hln-line); border-radius: 3px; font-weight: 400; cursor: pointer; }
.hln-find label > i { color: var(--hln-teal); font-size: 16px; text-align: center; }
.hln-find label span { min-width: 0; }
.hln-find b { display: block; margin-bottom: 2px; color: var(--hln-ink); font-size: 12px; line-height: 1.5; }
.hln-find select { display: block; width: 100%; min-width: 0; height: 26px; padding: 0; border: 0; background: transparent; color: #4f6069; font: inherit; font-size: 13px; line-height: 1.5; outline: none; cursor: pointer; }
.hln-find button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border: 0; border-radius: 3px; background: var(--hln-teal); color: #fff; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.4; cursor: pointer; transition: background .2s; }
.hln-find button:hover { background: var(--hln-teal-dark); }
.hln .hln-find-note { margin: 10px 0 0; color: var(--hln-muted); font-size: 12px; line-height: 1.6; }

.hln-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
.hln .hln-topics a { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 55px; padding: 6px 10px; border: 1px solid var(--hln-line); background: #fff; color: var(--hln-ink); font-size: 13px; line-height: 1.4; transition: background .2s, border-color .2s; }
.hln .hln-topics a:hover { border-color: var(--hln-teal); background: var(--hln-mist); }
.hln-topics i { flex: 0 0 auto; width: 20px; color: var(--hln-teal); font-size: 18px; text-align: center; }

/* --------------------------------------------------------------------------
   8. 頁尾橫幅
   -------------------------------------------------------------------------- */
.hln-banner { position: relative; z-index: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; min-height: 150px; margin: 0 0 10px; padding: 24px 5%; overflow: hidden; color: var(--hln-ink); }
.hln-banner > img { position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hln-banner::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background: rgba(255, 255, 255, .62); }
.hln .hln-banner-title { margin: 0 0 8px; color: var(--hln-ink); font-family: var(--hln-serif); font-size: 23px; font-weight: 700; line-height: 1.5; }
.hln-banner-copy p:last-child { color: #2f4a57; font-size: 13px; line-height: 1.7; }
.hln .hln-banner-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 28px; border-radius: 3px; background: var(--hln-teal); color: #fff; font-size: 14px; line-height: 1.4; white-space: nowrap; transition: background .2s; }
.hln .hln-banner-cta:hover { background: var(--hln-teal-dark); color: #fff; }

/* --------------------------------------------------------------------------
   9. 文章內頁（設計稿沒有，依同一套語彙補上）
   -------------------------------------------------------------------------- */
.hln--detail { margin-top: 14px; }
.hln-article { padding: 30px 34px 28px; border: 1px solid var(--hln-line); background: #fff; box-shadow: var(--hln-shadow); }
.hln .hln-article-cat { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 3px; background: var(--hln-teal); color: #fff; font-size: 13px; line-height: 1.6; }
.hln-article-head h1 { margin: 0 0 14px; padding: 0; border: 0; color: #183d51; font-family: var(--hln-serif); font-size: 32px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.hln-article-head .hln-meta { margin-bottom: 0; font-size: 13px; }
.hln-article-cover { margin: 22px 0 0; }
.hln-article-cover img { width: 100%; max-height: 360px; object-fit: cover; }
.hln .hln-article-summary { margin: 22px 0 0; padding: 16px 20px; border-left: 4px solid var(--hln-gold-deco); background: var(--hln-mist); color: #2f4a57; font-size: 16px; line-height: 1.9; }
.hln-article-body { margin-top: 24px; color: #2b3f4a; font-size: 16px; line-height: 2; overflow-wrap: break-word; }
.hln-article-body p { margin: 0 0 18px; text-align: justify; }
.hln-article-body h2 { margin: 34px 0 14px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--hln-line); color: #183d51; font-family: var(--hln-serif); font-size: 23px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.hln-article-body h3 { margin: 26px 0 10px; padding: 0; color: var(--hln-teal); font-family: var(--hln-serif); font-size: 19px; font-weight: 700; line-height: 1.6; }
.hln-article-body h4 { margin: 20px 0 8px; color: #183d51; font-size: 17px; font-weight: 700; line-height: 1.6; }
.hln-article-body ul, .hln-article-body ol { margin: 0 0 18px; padding-left: 1.6em; }
.hln-article-body ul { list-style: disc; }
.hln-article-body ol { list-style: decimal; }
.hln-article-body li { margin: 0 0 8px; list-style: inherit; }
.hln .hln-article-body a { color: var(--hln-teal); text-decoration: underline; text-underline-offset: 3px; }
.hln .hln-article-body a:hover { color: var(--hln-gold); }
.hln-article-body blockquote { margin: 0 0 18px; padding: 14px 20px; border-left: 4px solid var(--hln-teal); background: #eef5f7; color: #2f4a57; font-size: 15px; line-height: 1.9; }
.hln-article-body blockquote p:last-child { margin-bottom: 0; }
.hln-article-body img { margin: 6px auto 18px; border-radius: 3px; }
.hln-article-body figure { margin: 0 0 18px; }
.hln-article-body figcaption { color: var(--hln-muted); font-size: 13px; line-height: 1.7; text-align: center; }
.hln-article-body table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 15px; line-height: 1.7; }
.hln-article-body th, .hln-article-body td { padding: 10px 12px; border: 1px solid var(--hln-line); text-align: left; vertical-align: top; }
.hln-article-body th { background: var(--hln-mist); color: #183d51; white-space: nowrap; }
.hln-article-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hln-line); }
.hln-related { margin-top: 28px; }
.hln-related > h2 { margin: 0 0 14px; padding: 0; border: 0; color: var(--hln-ink); font-family: var(--hln-serif); font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: 0; }

/* --------------------------------------------------------------------------
   10. 響應式（斷點照設計稿）
   -------------------------------------------------------------------------- */
/* 本站內頁外框是視窗的 90%，內容欄比設計稿（1440px 滿版）窄；四欄卡片只在夠寬時使用 */
@media (max-width: 1480px) {
	.hln-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
	.hln-grid { grid-template-columns: minmax(0, 1fr) 275px; }
	.hln-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hln-tabs { gap: 8px; }
	.hln .hln-tab { font-size: 14px; }
}
@media (max-width: 900px) {
	.hln-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.hln-hero { height: 300px; }
	.hln-hero h1 { font-size: 36px; }
	.hln-hero-sub { font-size: 16px; }
	.hln-hero-note { display: none; }
	.hln-tabs { display: flex; gap: 8px; margin-right: -15px; padding-right: 15px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.hln-tabs::-webkit-scrollbar { display: none; }
	.hln .hln-tab { flex: 0 0 auto; min-width: 104px; padding: 0 14px; }
	.hln-grid { grid-template-columns: minmax(0, 1fr); }
	.hln-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hln-sidebar > .hln-panel:first-child { grid-column: 1 / -1; }
	.hln-banner { grid-template-columns: minmax(0, 1fr); min-height: 190px; padding: 24px; }
	.hln .hln-banner-cta { justify-self: start; }
	.hln-article { padding: 24px 22px; }
	.hln-article-head h1 { font-size: 27px; }
}
@media (max-width: 580px) {
	.hln-hero { height: 250px; }
	.hln-hero-copy { left: 20px; right: 20px; }
	.hln-hero h1 { font-size: 28px; letter-spacing: 1px; }
	.hln-hero-sub { font-size: 15px; line-height: 1.65; }
	.hln-featured { grid-template-columns: minmax(0, 1fr); }
	.hln .hln-featured-media { min-height: 200px; }
	.hln-featured-body { padding: 20px; }
	.hln-featured-body h2 { font-size: 21px; }
	.hln-cards, .hln-cards--3 { grid-template-columns: minmax(0, 1fr); }
	.hln-sidebar { grid-template-columns: minmax(0, 1fr); }
	.hln-sidebar > .hln-panel:first-child { grid-column: auto; }
	.hln-banner-title { font-size: 19px; }
	.hln-article { padding: 20px 16px; }
	.hln-article-head h1 { font-size: 23px; }
	.hln-article-body { font-size: 15.5px; line-height: 1.95; }
	.hln-article-body h2 { font-size: 20px; }
	.hln-article-body table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.hln *, .hln-hero * { transition: none !important; }
	.hln-card:hover { transform: none; }
	.hln-featured-media:hover img { transform: none; }
}
