﻿/* ============================================================
   最新消息 · News 组件样式（原站样式版 · 2026-10-09）
   本文件内容 = 站点原有内联样式（decision.html / manual 等页）
   配套：
     layout/js/news-widget-data.js  ← 文章数据（维护入口）
     layout/js/news-widget.js       ← 渲染器（自动倒序/NEW/is-old）
   页面引用：
     根目录页  <link rel="stylesheet" href="layout/css/news-widget.css">
     子目录页  <link rel="stylesheet" href="../layout/css/news-widget.css">
   组件骨架外层 class 用 .hmt-news-widget（款一：日期列表卡片）
   ============================================================ */
/* 共用變量 + 基礎：兩款最新消息卡片共享 */
.hmt-news-widget, .hmt-news-tl{
  --nw-paper:#F6F3EA; --nw-card:#FFFFFF;
  --nw-ink:#26332E; --nw-ink-soft:#5A6A63; --nw-ink-faint:#8B988F;
  --nw-teal:#2F6B5E; --nw-teal-deep:#214C42; --nw-teal-tint:#E7EFEB;
  --nw-verm:#C1522E; --nw-verm-deep:#9C3E20; --nw-verm-tint:#F7E7E0;
  --nw-line:#E5DED0; --nw-line-soft:#EFEAE0;
  font-family:"Noto Sans SC","Microsoft YaHei","PingFang TC",sans-serif;
  background:var(--nw-card); border:1px solid var(--nw-line);
  border-radius:10px; padding:16px; margin:30px 0 30px;
  color:var(--nw-ink-soft); line-height:1.6; font-size:13px;
  box-shadow:0 1px 3px rgba(38,51,46,.05);
}
.hmt-news-widget *, .hmt-news-tl *{box-sizing:border-box}
/* ── 款一：日期列表卡片（.hmt-news-widget）── */
.hmt-news-widget{padding:14px 16px}
.hmt-news-widget .nw-title{
  margin:0 0 12px; font-size:14.5px; font-weight:800; color:#fff !important;
  background:var(--nw-teal-deep);
  padding:8px 12px; border-radius:6px;
  display:flex; align-items:center; gap:7px; letter-spacing:.03em;
}
.hmt-news-widget .nw-title .nw-dot{
  width:7px;height:7px;border-radius:50%;
  background:#f4b183; box-shadow:none; flex-shrink:0;
}
.hmt-news-widget .nw-list{list-style:none;margin:0;padding:0}
.hmt-news-widget .nw-item{
  display:flex; gap:10px; align-items:flex-start;
  padding:9px 0; border-bottom:1px dashed var(--nw-line-soft);
}
.hmt-news-widget .nw-item:last-of-type{border-bottom:none}
.hmt-news-widget .nw-date{
  flex:0 0 auto; font-size:11px; font-weight:700; color:var(--nw-verm-deep);
  background:var(--nw-verm-tint); border-radius:4px;
  padding:2px 6px; margin-top:2px; white-space:nowrap;
}
.hmt-news-widget .nw-item.is-old .nw-date{
  color:var(--nw-ink-faint); background:var(--nw-line-soft);
}
.hmt-news-widget .nw-body{flex:1;min-width:0}
.hmt-news-widget .nw-body a{
  color:var(--nw-teal-deep); text-decoration:none; font-size:13px;
  line-height:1.5; display:block;
}
.hmt-news-widget .nw-body a:hover{color:var(--nw-verm-deep)}
.hmt-news-widget .nw-body a:hover::after{content:" ←";font-size:.9em}
.hmt-news-widget .nw-tag{
  display:inline-block; font-size:10px; font-weight:700; color:#fff !important;
  background:var(--nw-verm); border-radius:3px; padding:1px 5px;
  margin-right:4px; vertical-align:1px;
}
.hmt-news-widget .nw-more{
  display:block; text-align:center; margin-top:10px; padding-top:10px;
  border-top:1px solid var(--nw-line-soft);
  font-size:12px; font-weight:700; color:var(--nw-teal); text-decoration:none;
}
.hmt-news-widget .nw-more:hover{color:var(--nw-verm-deep)}
/* ── 款二：時間軸文章導航（.hmt-news-tl）── */
.hmt-news-tl .nt-title{
  margin:0 0 30px; font-size:15px; font-weight:800; color:var(--nw-teal-deep);
  padding-bottom:10px; border-bottom:2px solid var(--nw-teal-tint);
}
.hmt-news-tl .nt-list{list-style:none;margin:0;padding:0 0 0 14px;position:relative}
.hmt-news-tl .nt-list::before{
  content:""; position:absolute; left:4px; top:6px; bottom:6px;
  width:2px; background:var(--nw-teal-tint);
}
.hmt-news-tl .nt-item{position:relative; padding:0 0 14px 10px}
.hmt-news-tl .nt-item:last-child{padding-bottom:0}
.hmt-news-tl .nt-item::before{
  content:""; position:absolute; left:-14px; top:5px;
  width:10px; height:10px; border-radius:50%;
  background:#fff; border:2px solid var(--nw-teal);
}
.hmt-news-tl .nt-item.is-new::before{
  background:var(--nw-verm); border-color:var(--nw-verm);
  box-shadow:0 0 0 3px var(--nw-verm-tint);
}
.hmt-news-tl .nt-cat{
  font-size:12px; font-weight:800; color:var(--nw-verm-deep); letter-spacing:.05em;
}
.hmt-news-tl .nt-item:not(.is-new) .nt-cat{color:var(--nw-ink-faint)}
.hmt-news-tl .nt-item > a{
  display:block; margin-top:2px;
  color:var(--nw-teal-deep); text-decoration:none; font-weight:700; font-size:14.6px;
}
.hmt-news-tl .nt-item > a:hover{color:var(--nw-verm-deep)}
.hmt-news-tl .nt-sub{margin:5px 0 0; padding:0; list-style:none}
.hmt-news-tl .nt-sub li{font-size:13px; line-height:1.5; padding:2px 0}
.hmt-news-tl .nt-sub a{color:var(--nw-ink-soft); text-decoration:none}
.hmt-news-tl .nt-sub a:hover{color:var(--nw-verm-deep)}
.hmt-news-tl .nt-sub strong{color:var(--nw-teal-deep)}
.hmt-news-tl .nt-more{
  display:block; text-align:center; margin-top:12px; padding-top:10px;
  border-top:1px dashed var(--nw-line);
  font-size:12px; font-weight:700; color:var(--nw-teal); text-decoration:none;
}
.hmt-news-tl .nt-more:hover{color:var(--nw-verm-deep)}
