/* ==========================================================================
   news_chinared — 国潮红金风 (Chinese Traditional Red & Gold)
   Pure CSS, no frameworks, no JS dependency.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
	--red-deep:       #a80000;
	--red-accent:     #c9302c;
	--red-dark:       #7a0000;
	--gold:           #d4af37;
	--gold-light:     #e9d38a;
	--gold-dark:      #a9822a;
	--cream:          #fdf6e8;
	--cream-alt:      #f6ead0;
	--paper:          #fffdf6;
	--border-gold:    rgba(212, 175, 55, .5);
	--border-gold-soft: rgba(212, 175, 55, .28);
	--text:           #33210c;
	--text-muted:     #7a6142;
	--text-faint:     #a4906c;
	--radius:         2px;
	--font-serif:     "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", "PMingLiU", Georgia, "Times New Roman", serif;
	--wrap-width:     1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-accent); }
table { border-collapse: collapse; width: 100%; }
button, input, textarea { font-family: inherit; }

body {
	font-family: var(--font-serif);
	font-size: 15px;
	line-height: 1.8;
	color: var(--text);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: var(--wrap-width);
	margin: 0 auto;
	padding: 0 24px;
}

h1, h2, h3 { font-weight: 700; line-height: 1.4; color: var(--text); }

/* ---------- Reusable motifs ---------- */

/* Corner-bracket ornament, evokes a traditional picture-frame corner */
.ornate-frame { position: relative; }
.ornate-frame::before,
.ornate-frame::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid var(--gold);
	pointer-events: none;
}
.ornate-frame::before { top: -7px; left: -7px; border-right: none; border-bottom: none; }
.ornate-frame::after { bottom: -7px; right: -7px; border-left: none; border-top: none; }

/* Diamond divider: thin gold gradient line with a rotated square at its centre */
.divider-diamond {
	position: relative;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	margin: 28px 0;
}
.divider-diamond::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	background: var(--cream);
	border: 2px solid var(--gold);
	transform: translate(-50%, -50%) rotate(45deg);
}

/* Seal-stamp badge, mimics a small red 印章 chop */
.seal-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: var(--red-deep);
	color: var(--gold-light);
	border: 2px solid var(--gold);
	border-radius: 3px;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	transform: rotate(-6deg);
	box-shadow: 1px 2px 4px rgba(122, 0, 0, .3);
	flex-shrink: 0;
}
.seal-badge-lg { width: 58px; height: 58px; font-size: 27px; border-width: 3px; border-radius: 4px; }
.seal-badge-sm { width: 22px; height: 22px; font-size: 11px; border-width: 1px; margin-right: 6px; vertical-align: -5px; }

/* Diamond bullet before list links */
.diamond-bullet { display: inline-flex; align-items: baseline; }
.diamond-bullet::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--gold);
	transform: rotate(45deg);
	margin-right: 9px;
	flex-shrink: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	background: var(--paper);
	border-bottom: 4px double var(--red-deep);
}

.header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	padding-top: 26px;
	padding-bottom: 22px;
}

.brand { display: inline-block; }
.brand img { display: block; }

.header-top-tag {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--text-muted);
	letter-spacing: .04em;
}

.site-nav {
	background: linear-gradient(180deg, var(--red-accent), var(--red-deep));
	border-top: 1px solid var(--gold);
	border-bottom: 2px solid var(--gold);
}

.site-nav-inner { position: relative; }

.nav-list {
	display: flex;
	flex-wrap: wrap;
}

.nav-item a {
	position: relative;
	display: block;
	padding: 13px 20px;
	color: var(--cream);
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: .05em;
	border-right: 1px solid rgba(212, 175, 55, .3);
	transition: background .15s ease, color .15s ease;
}

.nav-item:first-child a { border-left: 1px solid rgba(212, 175, 55, .3); }

.nav-item a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 6px;
	width: 0;
	height: 2px;
	background: var(--gold-light);
	transform: translateX(-50%);
	transition: width .15s ease;
}

.nav-item a:hover,
.nav-item a:focus {
	background: rgba(0, 0, 0, .15);
	color: var(--gold-light);
}

.nav-item a:hover::after,
.nav-item a:focus::after { width: 24px; }

.nav-item-home a { font-weight: 700; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.home-main { padding: 44px 24px 56px; }

.home-intro {
	display: flex;
	align-items: center;
	gap: 22px;
	padding: 10px 6px 26px;
}

.home-intro-title {
	font-size: 27px;
	color: var(--red-deep);
	margin-bottom: 8px;
	letter-spacing: .02em;
}

.home-intro-desc {
	color: var(--text-muted);
	font-size: 14px;
	max-width: 760px;
}

.home-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.channel-block {
	position: relative;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--border-gold-soft);
	padding: 22px 24px 24px;
	box-shadow: 0 1px 3px rgba(122, 0, 0, .06);
}

/* small triangular corner ribbon, festive accent */
.channel-block::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 0 30px 30px 0;
	border-color: transparent var(--gold) transparent transparent;
	opacity: .9;
}

.channel-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.channel-block-title {
	display: inline-block;
	padding: 4px 14px 5px;
	background: var(--red-deep);
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	transform: rotate(-1deg);
	box-shadow: 1px 2px 4px rgba(122, 0, 0, .28);
	font-size: 15.5px;
}

.channel-block-title a { color: var(--gold-light); font-weight: 700; letter-spacing: .04em; }
.channel-block-title a:hover { color: #fff; }

.channel-block-more {
	font-size: 12px;
	color: var(--text-faint);
	white-space: nowrap;
}

.channel-block-more:hover { color: var(--red-accent); }

.channel-block-item {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--border-gold-soft);
}

.channel-block-item:last-child { border-bottom: none; }

.channel-block-link {
	display: flex;
	align-items: baseline;
	font-size: 14px;
	color: var(--text);
	overflow: hidden;
	flex: 1;
	min-width: 0;
}

.channel-block-link span,
.channel-block-link { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }

.channel-block-link::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	background: var(--gold);
	transform: rotate(45deg);
	margin-right: 9px;
	flex-shrink: 0;
}

.channel-block-date {
	font-size: 12px;
	color: var(--text-faint);
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Layout: list / show pages (content + sidebar)
   ========================================================================== */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 40px;
	padding: 32px 24px 56px;
	align-items: start;
}

.breadcrumb {
	font-size: 13px;
	color: var(--text-faint);
	margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--red-accent); }
.breadcrumb-sep { margin: 0 6px; }
.breadcrumb-current { color: var(--text-muted); }

/* ---------- List page ---------- */
.list-head {
	display: flex;
	align-items: center;
	gap: 10px;
	border-bottom: 2px solid var(--red-deep);
	padding-bottom: 14px;
	margin-bottom: 18px;
}

.list-head-title { font-size: 22px; }

.article-list-item {
	padding: 18px 0;
	border-bottom: 1px solid var(--border-gold-soft);
}

.article-list-item:first-child { padding-top: 0; }

.article-list-item-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.article-list-item-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

.article-list-item-title:hover { color: var(--red-accent); }

.article-list-item-date {
	font-size: 12px;
	color: var(--text-faint);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.article-list-item-info {
	font-size: 13.5px;
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: 8px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.article-list-item-meta {
	font-size: 12px;
	color: var(--text-faint);
	display: flex;
	gap: 16px;
}

/* ---------- Pagination ---------- */
.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--border-gold-soft);
}

.pagination a {
	display: inline-block;
	min-width: 34px;
	padding: 6px 11px;
	text-align: center;
	font-size: 13px;
	color: var(--text-muted);
	background: var(--paper);
	border: 1px solid var(--border-gold);
	border-radius: var(--radius);
}

.pagination a:hover {
	border-color: var(--red-accent);
	color: #fff;
	background: var(--red-accent);
}

/* ---------- Sidebar ---------- */
.layout-sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-block {
	background: var(--paper);
	border: 1px solid var(--border-gold);
}

.sidebar-block-title {
	font-size: 14px;
	color: var(--gold-light);
	background: linear-gradient(180deg, var(--red-accent), var(--red-deep));
	padding: 11px 16px;
	letter-spacing: .06em;
	border-bottom: 1px solid var(--gold);
}

.sidebar-block-list { padding: 6px 16px; }

.sidebar-block-list li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--border-gold-soft);
}

.sidebar-block-list li:last-child { border-bottom: none; }

.sidebar-block-list a {
	display: flex;
	align-items: baseline;
	font-size: 13.5px;
	color: var(--text);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	flex: 1;
	min-width: 0;
}

.sidebar-block-list a:hover { color: var(--red-accent); }

.sidebar-block-date {
	font-size: 11.5px;
	color: var(--text-faint);
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}

.sidebar-block-list-ranked li { counter-increment: rank; }
.sidebar-block-list-ranked { counter-reset: rank; }
.sidebar-block-list-ranked li a::before {
	content: counter(rank);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 17px;
	height: 17px;
	margin-right: 9px;
	font-size: 10.5px;
	color: var(--text-faint);
	border: 1px solid var(--border-gold);
	border-radius: 2px;
	flex-shrink: 0;
}
.sidebar-block-list-ranked li:nth-child(-n+3) a::before {
	color: var(--gold-light);
	background: var(--red-deep);
	border-color: var(--gold);
}

/* ==========================================================================
   Article (show) page
   ========================================================================== */
.article { padding: 4px; }

.article-head {
	border-bottom: 1px solid var(--border-gold-soft);
	padding-bottom: 18px;
	margin-bottom: 20px;
}

.article-title {
	font-size: 25px;
	line-height: 1.55;
	margin-bottom: 14px;
	color: var(--text);
}

.article-info {
	font-size: 12.5px;
	color: var(--text-faint);
	display: flex;
	align-items: center;
	gap: 18px;
}

.article-info-source { display: inline-flex; align-items: center; }

.summary {
	background: var(--cream-alt);
	border-left: 3px solid var(--gold);
	padding: 14px 18px;
	font-size: 13.5px;
	color: var(--text-muted);
	margin-bottom: 26px;
}

.article-body {
	font-size: 15.5px;
	line-height: 1.95;
	color: var(--text);
}

.article-body p { margin: 0 0 1.2em; }
.article-body img { margin: 1em auto; border: 1px solid var(--border-gold-soft); }
.article-body h2, .article-body h3 { margin: 1.6em 0 .8em; color: var(--red-deep); }
.article-body a { color: var(--red-accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
	margin: 1.2em 0;
	padding: 10px 16px;
	background: var(--cream-alt);
	border-left: 3px solid var(--border-gold);
	color: var(--text-muted);
}
.article-body table { margin: 1.2em 0; border: 1px solid var(--border-gold); font-size: 14px; }
.article-body table th, .article-body table td { border: 1px solid var(--border-gold-soft); padding: 8px 10px; }
.article-body table th { background: var(--cream-alt); }

.article-pager {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid var(--border-gold-soft);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.article-pager-item { font-size: 13.5px; overflow: hidden; }
.article-pager-next { text-align: right; }

.article-pager-label {
	display: block;
	font-size: 11.5px;
	color: var(--text-faint);
	margin-bottom: 4px;
}

.article-pager-item a {
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
}

.article-pager-item a:hover { color: var(--red-accent); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--cream-alt);
	border-top: 3px double var(--red-deep);
	margin-top: 24px;
	padding: 36px 0 26px;
}

.footer-links-title {
	font-size: 13px;
	color: var(--text-muted);
	letter-spacing: .06em;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.footer-links-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
}

.footer-links-list a {
	font-size: 13px;
	color: var(--text-muted);
}

.footer-links-list a:hover { color: var(--red-accent); }

.footer-bottom { text-align: center; }

.footer-copyright {
	font-size: 12.5px;
	color: var(--text-faint);
	line-height: 2;
}

.footer-copyright a { color: var(--text-muted); }
.footer-copyright a:hover { color: var(--red-accent); }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 992px) {
	.home-grid { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; }
	.layout-sidebar { flex-direction: row; flex-wrap: wrap; }
	.layout-sidebar .sidebar-block { flex: 1 1 260px; }
}

@media (max-width: 768px) {
	.wrap { padding: 0 16px; }
	body { font-size: 14px; }

	.header-top { padding-top: 18px; padding-bottom: 16px; }
	.header-top-tag { display: none; }

	.nav-list { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
	.nav-item a { padding: 12px 15px; white-space: nowrap; }

	.home-main { padding: 26px 16px 36px; }
	.home-intro { gap: 14px; }
	.home-intro-title { font-size: 21px; }
	.seal-badge-lg { width: 44px; height: 44px; font-size: 20px; }
	.home-grid { grid-template-columns: 1fr; gap: 16px; }

	.layout { padding: 20px 16px 36px; gap: 28px; }
	.layout-sidebar { flex-direction: column; }

	.article-title { font-size: 20px; }
	.article-list-item-head { flex-direction: column; gap: 4px; }
	.article-pager { grid-template-columns: 1fr; }
	.article-pager-next { text-align: left; }

	.ornate-frame::before, .ornate-frame::after { width: 14px; height: 14px; }
}

@media (max-width: 480px) {
	.channel-block-date,
	.sidebar-block-date { display: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
	.site-header, .site-nav, .layout-sidebar, .site-footer, .pagination, .article-pager { display: none; }
	body { font-size: 12pt; color: #000; background: #fff; }
	.article-body a { color: #000; text-decoration: underline; }
	a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
	.seal-badge, .channel-block-title { background: #fff !important; color: #000 !important; box-shadow: none !important; }
}
