/* =========================================================
   校內外新聞 news.html 專用樣式（搭配 home.css 的色彩與字體）
   ========================================================= */
.news-page .n-intro { padding-bottom: 72px; }
.n-stats { display: flex; gap: 0; margin: 0; border-top: 1px solid var(--ink); }
.n-stats div { padding: 14px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--line); }
.n-stats div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.n-stats dt { font-family: var(--serif); font-size: 38px; font-weight: 900; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.n-stats dd { margin: 8px 0 0; font-size: 12.5px; letter-spacing: .08em; color: var(--ink-3); }

/* 頭條 */
.n-feat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--paper); }
.n-feat-img { position: relative; display: block; overflow: hidden; min-height: 380px; background: var(--bg-2); }
.n-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.n-feat:hover .n-feat-img img { transform: scale(1.04); }
.n-new { position: absolute; left: 0; top: 0; background: var(--ink); color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 11px; letter-spacing: .24em; padding: 10px 16px; display: inline-flex; align-items: center; gap: 8px; }
.n-new::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.n-feat-bd { padding: 44px 44px 40px; display: flex; flex-direction: column; }
.news-page .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; letter-spacing: .12em; color: var(--ink-3); }
.news-page .meta .c { font-family: var(--sans); letter-spacing: .06em; color: var(--gold); }
.news-page .meta .s { font-family: var(--sans); letter-spacing: .04em; }
.n-feat-bd h3 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.45; font-weight: 900; }
.n-feat-bd h3 a { color: var(--ink) !important; }
.n-feat-bd .ex { margin: 18px 0 0; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.n-feat-links { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.n-feat-links a { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border: 1px solid var(--ink); color: var(--ink) !important; font-size: 14px; font-weight: 500; letter-spacing: .06em; border-radius: 2px; transition: background .3s, color .3s; }
.n-feat-links a i { font-size: 12px; transition: transform .3s var(--ease); }
.n-feat-links a:hover { background: var(--ink); color: #fff !important; }
.n-feat-links a:hover i { transform: translateX(4px); }
.n-feat-links a.pri { background: var(--ink); color: #fff !important; }
.n-feat-links a.pri:hover { background: #000; }

/* 工具列 */
.n-list { padding: 0 0 120px; }
.n-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.n-tools .h-filter { margin: 0; border-bottom: 0; }
.n-tools-r { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; flex-wrap: wrap; }
.n-sel { position: relative; margin: 0; font-weight: 400; }
.n-sel select { appearance: none; -webkit-appearance: none; height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; font: 500 14px/1 var(--sans); color: var(--ink); cursor: pointer; }
.n-sel i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-3); }
.n-search { position: relative; margin: 0; font-weight: 400; }
.n-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 13px; }
.n-search input { height: 42px; width: 300px; max-width: 100%; padding: 0 14px 0 38px; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; font: 400 14px/1 var(--sans); color: var(--ink); outline: 0; transition: border-color .2s; }
.n-search input:focus { border-color: var(--ink); }
.n-count { margin: 14px 0 0; min-height: 1em; font-size: 13px; color: var(--ink-3); letter-spacing: .04em; }

/* 年份區塊 */
.n-year { margin-top: 56px; }
.n-year-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.n-year-head h3 { margin: 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 900; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.n-year-head span { font-size: 13px; color: var(--ink-3); letter-spacing: .06em; }
.n-year-head span b { font-weight: 500; color: var(--ink); }
.n-year-head::after { content: ""; flex: 1; height: 1px; background: var(--line); align-self: center; }
.n-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 28px; }

/* 卡片 */
.n-card { display: flex; flex-direction: column; color: var(--ink) !important; }
.n-card .th { position: relative; aspect-ratio: 3 / 2; background: var(--bg-2); overflow: hidden; }
.n-card .th img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1.1s var(--ease), filter .6s; }
.n-card:hover .th img { transform: scale(1.05); filter: none; }
.n-card .th.noimg::after, .n-card .th:empty::after { content: "DVCD NEWS"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: .1em; color: rgba(22, 23, 26, .14); }
.n-card .bd { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.n-card h3 { margin: 0; font-size: 16.5px; line-height: 1.7; font-weight: 500; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .3s; }
.n-card:hover h3 { color: var(--gold); }
.n-card .src { margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); }
.n-card.off, .n-year.off { display: none; }
.n-empty { text-align: center; padding: 64px 20px; color: var(--ink-3); border: 1px dashed var(--line); margin-top: 40px; }
.n-note { margin-top: 64px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 991px) {
	.n-feat { grid-template-columns: 1fr; }
	.n-feat-img { min-height: 0; aspect-ratio: 16 / 10; }
	.n-feat-bd { padding: 32px 28px; }
	.n-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.n-tools-r { width: 100%; }
	.n-search { flex: 1; }
	.n-search input { width: 100%; }
}
@media (max-width: 560px) {
	.news-page .n-intro { padding-bottom: 48px; }
	.n-stats div { padding-right: 16px; margin-right: 16px; }
	.n-stats dt { font-size: 28px; }
	.n-feat-bd { padding: 26px 20px; }
	.n-grid { grid-template-columns: 1fr; gap: 0; }
	.n-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
	.n-card .th { aspect-ratio: 1 / 1; }
	.n-card .th.noimg::after, .n-card .th:empty::after { font-size: 13px; }
	.n-card .bd { padding-top: 0; gap: 6px; }
	.n-card h3 { font-size: 15px; line-height: 1.6; }
	.n-card .src { border-top: 0; padding-top: 0; font-size: 11.5px; }
	.n-year-head { margin-bottom: 8px; }
	.n-tools .h-filter { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
	.n-tools .h-filter::-webkit-scrollbar { display: none; }
	.n-tools .h-filter button { flex: none; }
	.n-sel { flex: none; }
}

/* 點擊回饋：取消瀏覽器藍色外框，改為按壓動態 */
.news-page a, .news-page button, .news-page select, .news-page input { -webkit-tap-highlight-color: transparent; }
.news-page a:focus, .news-page button:focus { outline: none; }
.news-page a:focus-visible, .news-page button:focus-visible { outline: 1px solid var(--gold); outline-offset: 6px; }
.n-card { transition: transform .45s var(--ease); }
.n-card:active { transform: scale(.975); transition-duration: .12s; }
.n-card .th::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(22, 23, 26, 0); transition: background .4s; pointer-events: none; }
.n-card:hover .th::before { background: rgba(22, 23, 26, .08); }
.n-card:active .th::before { background: rgba(22, 23, 26, .18); transition-duration: .1s; }
.n-card .th::after { z-index: 2; }
.n-card h3 { background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; }
.n-card.is-going h3 { color: var(--gold); }
.n-card.is-going .th img { transform: scale(1.1); transition-duration: .6s; }
.n-feat-img:active img { transform: scale(1.02); transition-duration: .15s; }
.n-feat-links a:active, .n-cats button:active { transform: scale(.96); }
.n-feat-links a, .n-cats button { transition: background .3s, color .3s, transform .15s; }
