Files
hesu-JT/css/news-detail.css
T
2026-08-27 11:54:26 +08:00

109 lines
2.7 KiB
CSS

/* ============================================================
News Detail — article page (light theme)
============================================================ */
.nd-main {
background: #ffffff;
/* banner = .nw-hero (same as news.html, loads from news.css) — it handles the top spacing */
}
/* ---- body ---- */
.nd-body {
max-width: 1200px;
margin: 0 auto;
padding: 0 32px 120px;
}
.nd-back {
display: inline-block;
font-family: var(--font-display); font-weight: 600;
font-size: 0.88rem; letter-spacing: 0.04em;
color: var(--text-mid);
margin-bottom: 48px;
padding-top: 40px;
transition: color .2s;
}
.nd-back:hover { color: var(--orange-500); }
/* meta */
.nd-meta {
display: flex; align-items: center; gap: 20px;
margin-bottom: 24px;
}
.nd-meta__cat {
font-family: var(--font-display); font-weight: 700;
font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase;
color: var(--orange-500);
border: 1px solid rgba(255,138,30,0.4);
padding: 4px 12px; border-radius: 4px;
}
/* title */
.nd-title {
font-family: var(--font-display);
font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15;
letter-spacing: -0.01em;
color: var(--text-dark);
margin-bottom: 48px;
}
/* article */
.nd-article p {
font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.9;
color: var(--text-mid);
margin-bottom: 28px;
}
/* inline article images (text-image alternating) */
.nd-figure {
margin: 8px 0 36px;
}
.nd-figure img {
display: block;
width: 80%;
height: auto;
margin: 0 auto;
}
.nd-article blockquote {
border-left: 3px solid var(--orange-500);
padding: 16px 24px; margin: 40px 0;
background: #f6f8fb;
border-radius: 0 8px 8px 0;
}
.nd-article blockquote p {
font-size: 1.05rem; font-style: italic;
color: var(--text-mid); margin-bottom: 0;
}
/* prev / next */
.nd-nav {
display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
margin-top: 80px;
padding-top: 40px;
border-top: 1px solid var(--line);
}
.nd-nav__item {
display: flex; flex-direction: column; gap: 8px;
padding: 20px 24px;
border: 1px solid var(--line);
border-radius: 10px;
transition: border-color .25s, background .25s;
}
.nd-nav__item:hover { border-color: rgba(255,138,30,0.5); background: rgba(255,138,30,0.05); }
.nd-nav__next { text-align: right; }
.nd-nav__label {
font-family: var(--font-display); font-weight: 600;
font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
color: #9aa4b0;
}
.nd-nav__title {
font-family: var(--font-display); font-weight: 600;
font-size: 0.98rem; color: var(--text-dark);
}
/* responsive */
@media (max-width: 680px) {
.nd-body { padding: 0 20px 80px; }
.nd-nav { grid-template-columns: 1fr; }
.nd-nav__next { text-align: left; }
}