/*
Theme Name: 深蓝宸邦 SLCBCW
Theme URI: https://www.slcbcw.com
Author: SLCBCW
Description: 厦门深蓝宸邦船务有限公司 - 企业官网主题
Version: 1.0.0
Text Domain: slcbcw
*/

:root {
	--brand: #0b3d68;
	--brand-dark: #072c4c;
	--brand-light: #14568f;
	--accent: #f2994a;
	--ink: #1c2b36;
	--muted: #64748b;
	--line: #e3e9ef;
	--bg: #ffffff;
	--bg-soft: #f5f8fb;
	--radius: 12px;
	--shadow: 0 6px 24px rgba(11, 61, 104, 0.10);
	--maxw: 1200px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.75;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--brand-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	z-index: 100;
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 20px;
	font-weight: 700;
	color: var(--brand);
	letter-spacing: 1px;
}
.brand:hover { color: var(--brand); }
.brand-mark {
	width: 36px; height: 36px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; font-weight: 700;
	flex: 0 0 auto;
}
.brand-sub {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--muted);
	letter-spacing: 0;
	line-height: 1.2;
}

.primary-nav ul,
.slcbcw-fallback-menu {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	gap: 28px;
	align-items: center;
}
.primary-nav a {
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	padding: 8px 0;
	display: inline-block;
	position: relative;
}
.primary-nav a:hover { color: var(--brand-light); }
.primary-nav a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%; bottom: 0;
	height: 2px;
	background: var(--accent);
	transition: right .25s ease;
}
.primary-nav a:hover::after { right: 0; }

.header-cta {
	display: flex;
	align-items: center;
	gap: 16px;
}
.header-phone {
	font-size: 15px;
	font-weight: 600;
	color: var(--brand);
	white-space: nowrap;
}
.btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand); color: #fff; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	font-size: 14px;
	color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
	background:
		linear-gradient(120deg, rgba(7,44,76,.92) 0%, rgba(11,61,104,.86) 55%, rgba(20,86,143,.80) 100%),
		#0b3d68;
	color: #fff;
	padding: 96px 0 88px;
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute;
	right: -140px; bottom: -180px;
	width: 520px; height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(242,153,74,.28), rgba(242,153,74,0) 70%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-title {
	font-size: 40px;
	line-height: 1.35;
	margin: 0 0 18px;
	font-weight: 700;
	letter-spacing: 1px;
}
.hero-sub {
	font-size: 18px;
	color: rgba(255,255,255,.88);
	margin: 0 0 12px;
}
.hero-desc {
	font-size: 16px;
	color: rgba(255,255,255,.72);
	margin: 0 0 32px;
	max-width: 640px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tags {
	display: flex;
	gap: 14px;
	margin-top: 40px;
	flex-wrap: wrap;
}
.hero-tag {
	font-size: 15px;
	color: rgba(255,255,255,.92);
	border: 1px solid rgba(255,255,255,.45);
	border-radius: 999px;
	padding: 8px 18px;
	background: rgba(255,255,255,.06);
	white-space: nowrap;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-title {
	font-size: 30px;
	font-weight: 700;
	color: var(--brand);
	margin: 0 0 12px;
	letter-spacing: .5px;
}
.section-desc { color: var(--muted); margin: 0; font-size: 16px; }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 32px 28px;
	transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
	width: 52px; height: 52px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(20,86,143,.12), rgba(242,153,74,.16));
	color: var(--brand);
	display: flex; align-items: center; justify-content: center;
	font-size: 24px; font-weight: 700;
	margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; font-size: 19px; color: var(--brand); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-tag {
	display: inline-block;
	margin-top: 16px;
	font-size: 13px;
	color: var(--accent);
	font-weight: 600;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 30px 26px 26px;
}
.step::before {
	counter-increment: step;
	content: "0" counter(step);
	position: absolute;
	top: -18px; left: 26px;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 15px;
}
.step h4 { margin: 18px 0 8px; font-size: 17px; color: var(--brand); }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Features list ---------- */
.feature-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px 0;
	border-bottom: 1px dashed var(--line);
}
.feature-item:last-child { border-bottom: 0; }
.feature-dot {
	flex: 0 0 auto;
	width: 22px; height: 22px;
	border-radius: 50%;
	background: rgba(242,153,74,.18);
	color: var(--accent);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700;
	margin-top: 4px;
}
.feature-item div strong { display: block; color: var(--brand); font-size: 16px; }
.feature-item div span { font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
	background: linear-gradient(120deg, var(--brand-dark), var(--brand-light));
	color: #fff;
	padding: 64px 0;
	text-align: center;
}
.cta-band h2 { margin: 0 0 12px; font-size: 28px; }
.cta-band p { margin: 0 0 28px; color: rgba(255,255,255,.82); }

/* ---------- Content pages ---------- */
.page-hero {
	background: var(--bg-soft);
	border-bottom: 1px solid var(--line);
	padding: 44px 0;
}
.page-hero h1 { margin: 0 0 6px; font-size: 28px; color: var(--brand); }
.page-hero p { margin: 0; color: var(--muted); font-size: 15px; }

.entry { padding: 56px 0; }
.entry-body { max-width: 860px; }
.entry-body h2 { color: var(--brand); font-size: 22px; margin: 32px 0 12px; }
.entry-body h3 { color: var(--brand); font-size: 18px; margin: 26px 0 10px; }
.entry-body p { color: var(--ink); }
.entry-body ul { padding-left: 22px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--brand-dark);
	color: rgba(255,255,255,.75);
	padding: 56px 0 28px;
	font-size: 14px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	margin-bottom: 36px;
}
.footer-title {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 14px;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-brand {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}
.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 13px;
}
.footer-icp a { color: rgba(255,255,255,.8); }

.footer-topics-row {
	border-top: 1px solid rgba(255,255,255,.12);
	padding-top: 18px;
	margin-bottom: 4px;
}
.footer-topics-row .footer-title { margin-bottom: 10px; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-tag {
	display: inline-block; padding: 4px 12px;
	border: 1px solid rgba(255,255,255,.25); border-radius: 16px;
	font-size: 13px; color: rgba(255,255,255,.75); text-decoration: none;
}
.ft-tag:hover { border-color: var(--accent); color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.nav-toggle { display: block; }
	.primary-nav {
		display: none;
		width: 100%;
		order: 3;
		padding: 12px 0 20px;
		border-top: 1px solid var(--line);
	}
	.site-header .wrap { flex-wrap: wrap; min-height: 64px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul, .slcbcw-fallback-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	.header-phone { display: none; }
	.hero { padding: 64px 0 56px; }
	.hero-title { font-size: 28px; }
	.hero-tags { gap: 10px; margin-top: 28px; }
	.grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
	.section { padding: 56px 0; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.section-title { font-size: 24px; }
}
/* ---------- Knowledge list ---------- */
.kb-post { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; align-items: flex-start; }
.kb-post:last-child { border-bottom: 0; }
.kb-thumb { flex: 0 0 190px; border-radius: 10px; overflow: hidden; }
.kb-thumb img { border-radius: 10px; transition: transform .3s ease; }
.kb-thumb:hover img { transform: scale(1.04); }
.kb-main { flex: 1 1 auto; min-width: 0; }
.kb-title { margin: 0 0 6px; font-size: 20px; }
.kb-title a { color: var(--brand); }
.kb-title a:hover { color: var(--accent); }
.kb-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.kb-excerpt { color: var(--ink); margin: 0; }
.kb-more { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--accent); font-weight: 600; }

@media (max-width: 720px) {
	.kb-post { flex-direction: column; }
	.kb-thumb { flex: none; width: 100%; }
}

/* ---------- Banner overlays (photo headers) ---------- */
.page-hero.has-banner {
	color: #fff;
	padding: 88px 0;
	position: relative;
}
.page-hero.has-banner h1 { color: #fff; }
.page-hero.has-banner p { color: rgba(255,255,255,.85); }

/* ---------- Article helpers ---------- */
.kb-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.kb-table th, .kb-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.kb-table th { background: var(--bg-soft); color: var(--brand); }
.kb-table tbody tr:nth-child(even) { background: #fafcfe; }
.kb-note {
	font-size: 13px; color: var(--muted);
	background: var(--bg-soft); border-left: 3px solid var(--accent);
	padding: 12px 16px; margin: 24px 0; border-radius: 0 8px 8px 0;
}
.entry-body blockquote {
	border-left: 4px solid var(--brand); margin: 20px 0;
	padding: 8px 18px; color: var(--ink); background: var(--bg-soft);
	border-radius: 0 8px 8px 0;
}

/* ---------- FAQ (details/summary) ---------- */
.entry-body details {
	border: 1px solid var(--line); border-radius: 10px;
	padding: 14px 18px; margin: 12px 0; background: #fff;
}
.entry-body summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.entry-body details[open] { background: var(--bg-soft); }
.entry-body details p { margin: 12px 0 0; }

/* ---------- Contact card ---------- */
.contact-card {
	background: var(--bg-soft); border: 1px solid var(--line);
	border-radius: 14px; padding: 32px; max-width: 720px; margin: 8px auto 0;
}
.contact-card h3 { margin: 0 0 20px; color: var(--brand); font-size: 22px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
	display: flex; gap: 16px; padding: 12px 0;
	border-bottom: 1px dashed var(--line); font-size: 16px;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list .c-label { flex: 0 0 72px; color: var(--muted); font-weight: 600; }
.contact-list .c-value { color: var(--ink); }
.contact-list .c-value a { color: var(--brand); }

/* ---------- QR (WeChat) block ---------- */
.qr-block { max-width: 720px; margin: 36px auto 0; text-align: center; }
.qr-title { color: var(--brand); font-size: 22px; margin: 0 0 20px; }
.qr-grid { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.qr-box {
	width: 200px; height: 200px; border: 2px dashed var(--line);
	border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: #fff; color: var(--muted); font-size: 14px; line-height: 1.6; text-align: center;
	padding: 12px;
}
.qr-box img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb-wrap { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--brand); }
.breadcrumb .sep { margin: 0 8px; color: #cbd5e1; }
.breadcrumb .current { color: var(--ink); }

/* ---------- Related posts ---------- */
.related { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.related-title { font-size: 20px; color: var(--brand); margin: 0 0 18px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rel-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .2s; }
.rel-card:hover { box-shadow: 0 6px 18px rgba(7,44,76,.12); transform: translateY(-2px); }
.rel-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.rel-name { display: block; padding: 12px 14px; font-size: 15px; color: var(--ink); line-height: 1.5; }

/* ---------- Topbar ---------- */
.topbar {
	background: var(--brand-dark);
	color: rgba(255,255,255,.85);
	font-size: 13px;
}
.topbar .wrap {
	display: flex; align-items: center; justify-content: space-between;
	min-height: 36px; gap: 16px;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: var(--accent); }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Header search ---------- */
.header-search {
	display: none;
	background: var(--bg-soft);
	border-top: 1px solid var(--line);
	padding: 16px 0;
}
.header-search.is-open { display: block; }
.search-form { display: flex; gap: 10px; }
.search-form input {
	flex: 1 1 auto; padding: 11px 14px; font-size: 15px;
	border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--brand-light); }
.search-form button {
	padding: 11px 26px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
}
.search-form button:hover { background: var(--brand-light); }
.icon-btn {
	background: none; border: 1px solid var(--line); border-radius: 8px;
	padding: 8px 12px; cursor: pointer; font-size: 13px; color: var(--muted);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Content layout with sidebar ---------- */
.entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.entry-main { min-width: 0; }
.sidebar { position: sticky; top: 120px; }
.widget {
	background: var(--bg-soft); border: 1px solid var(--line);
	border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.widget-title {
	margin: 0 0 14px; font-size: 16px; color: var(--brand);
	padding-left: 10px; border-left: 3px solid var(--accent); line-height: 1.2;
}
.widget-contact { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-light) 100%); border: 0; color: #fff; }
.widget-contact .widget-title { color: #fff; border-left-color: rgba(255,255,255,.6); }
.widget-contact-name { margin: 0 0 6px; font-size: 15px; color: rgba(255,255,255,.9); }
.widget-tel {
	display: block; font-size: 21px; font-weight: 700; color: #fff !important;
	margin-bottom: 4px; letter-spacing: .5px;
}
.widget-tel:hover { color: var(--accent) !important; }
.widget-line { margin: 4px 0; font-size: 13px; color: rgba(255,255,255,.85); }
.widget-contact .btn-block {
	display: block; text-align: center; margin-top: 14px;
	background: #fff; color: var(--brand); border-color: #fff;
}
.widget-contact .btn-block:hover { background: rgba(255,255,255,.9); color: var(--brand); }

.widget-posts { list-style: none; margin: 0; padding: 0; }
.widget-posts li { border-bottom: 1px solid var(--line); }
.widget-posts li:last-child { border-bottom: 0; }
.widget-posts a { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.wp-thumb { flex: 0 0 60px; }
.wp-thumb img { width: 60px; height: 44px; object-fit: cover; border-radius: 6px; }
.wp-txt { display: block; min-width: 0; }
.wp-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
	overflow: hidden; font-size: 14px; color: var(--ink); line-height: 1.5;
}
.widget-posts a:hover .wp-title { color: var(--accent); }
.wp-date { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.widget-links { list-style: none; margin: 0; padding: 0; }
.widget-links li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.widget-links li:last-child { border-bottom: 0; }
.widget-links a { font-size: 14px; }

/* ---------- Post meta / tags / nav ---------- */
.post-meta-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-meta-line .dot { opacity: .6; }
.post-tags-box { margin: 32px 0 8px; font-size: 14px; }
.tag-label { color: var(--muted); margin-right: 8px; }
.tag-item {
	display: inline-block; padding: 4px 12px; margin: 0 8px 8px 0;
	background: var(--bg-soft); border: 1px solid var(--line);
	border-radius: 20px; font-size: 13px; color: var(--brand);
}
.tag-item:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.post-nav-item {
	border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
	font-size: 14px; color: var(--ink); background: #fff;
}
.post-nav-item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.post-nav-item:hover { border-color: var(--brand); }
.post-nav-item.next { text-align: right; }

.post-cta {
	background: var(--bg-soft); border-left: 4px solid var(--accent);
	border-radius: 0 12px 12px 0; padding: 20px 24px; margin: 28px 0 0;
}
.post-cta strong { display: block; color: var(--brand); font-size: 17px; margin-bottom: 6px; }
.post-cta span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 14px; }

/* ---------- Pager ---------- */
.pager { margin-top: 32px; text-align: center; }
.pager .page-numbers {
	display: inline-block; padding: 8px 14px; margin: 0 4px;
	border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--brand); background: #fff;
}
.pager .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pager .page-numbers:hover:not(.current) { border-color: var(--brand); background: var(--bg-soft); }

/* ---------- Homepage: advantages / news / faq brief ---------- */
.advantages { counter-reset: adv; }
.advantage {
	background: #fff; border: 1px solid var(--line); border-radius: 12px;
	padding: 24px 22px; transition: .2s;
}
.advantage:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.advantage h4 { margin: 0 0 10px; font-size: 17px; color: var(--brand); }
.advantage p { margin: 0; font-size: 14px; color: var(--muted); }

.news-card {
	display: block; background: #fff; border: 1px solid var(--line);
	border-radius: 12px; overflow: hidden; transition: .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb.rel-thumb-empty { display: flex; align-items: center; justify-content: center; }
.news-body { padding: 18px 20px 20px; }
.news-date { font-size: 12px; color: var(--muted); }
.news-title { margin: 6px 0 10px; font-size: 17px; color: var(--brand); line-height: 1.5; }
.news-excerpt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--accent); font-weight: 600; }

.faq-brief {
	background: var(--bg-soft); border: 1px solid var(--line);
	border-radius: 12px; padding: 20px 22px;
}
.faq-brief h4 { margin: 0 0 8px; font-size: 16px; color: var(--brand); }
.faq-brief p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.7; }

.section-more { text-align: center; margin-top: 40px; }

/* ---------- Tag filter (knowledge list) ---------- */
.tag-filter {
	display: flex; flex-wrap: wrap; gap: 10px;
	padding-bottom: 20px; margin-bottom: 4px;
	border-bottom: 1px solid var(--line);
}
.tag-chip {
	padding: 6px 16px; border: 1px solid var(--line); border-radius: 20px;
	font-size: 14px; color: var(--muted); background: #fff;
}
.tag-chip:hover { border-color: var(--brand-light); color: var(--brand-light); }
.tag-chip.is-active {
	background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}

/* ---------- HTML sitemap ---------- */
.sitemap-list { list-style: none; margin: 0 0 28px; padding: 0; }
.sitemap-list li {
	border-bottom: 1px dashed var(--line); padding: 10px 0;
	display: flex; gap: 16px; align-items: baseline; justify-content: space-between;
}
.sitemap-list li:last-child { border-bottom: 0; }
.sitemap-list a { font-size: 15px; color: var(--brand); }
.sitemap-list a:hover { color: var(--accent); }
.sm-date { font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.sitemap-posts li { justify-content: flex-start; }
.sitemap-posts .sm-date { margin-left: auto; }

/* ---------- Pre-footer ---------- */
.pre-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 32px 0; }
.pre-footer-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; flex-wrap: wrap;
}
.pre-footer-inner strong { display: block; font-size: 20px; color: var(--brand); margin-bottom: 4px; }
.pre-footer-inner span { font-size: 15px; color: var(--muted); }
.pre-footer-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer additions ---------- */
.footer-fullname { font-size: 13px; color: rgba(255,255,255,.7); margin: 4px 0 10px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.7); font-size: 13px; }
.footer-scope li { font-size: 14px; color: rgba(255,255,255,.72); }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
	display: none;
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
	background: #fff; border-top: 1px solid var(--line);
	box-shadow: 0 -2px 12px rgba(7,44,76,.08);
}
.mobile-bar a {
	flex: 1 1 0; text-align: center; padding: 13px 6px;
	font-size: 14px; color: var(--brand);
}
.mobile-bar a + a { border-left: 1px solid var(--line); }
.mobile-bar a:first-child { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- To top ---------- */
.to-top {
	position: fixed; right: 20px; bottom: 84px; z-index: 95;
	width: 42px; height: 42px; border: 0; border-radius: 50%;
	background: var(--brand); color: #fff; font-size: 18px; cursor: pointer;
	opacity: 0; visibility: hidden; transition: .25s;
	box-shadow: 0 4px 14px rgba(7,44,76,.25);
}
.to-top.is-show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--brand-light); }

/* ---------- Lightbox ---------- */
.img-overlay {
	position: fixed; inset: 0; z-index: 200; display: none;
	background: rgba(4,20,36,.92); align-items: center; justify-content: center; padding: 40px;
}
.img-overlay.is-open { display: flex; }
.img-overlay img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.img-overlay-close {
	position: absolute; top: 20px; right: 28px; font-size: 34px;
	color: #fff; cursor: pointer; line-height: 1;
}

/* ---------- 404 / search empty ---------- */
.notfound { text-align: center; }
.notfound-code { font-size: 72px; font-weight: 700; color: var(--brand-light); margin: 0 0 10px; line-height: 1; }
.notfound ul { text-align: left; display: inline-block; padding-left: 22px; }
.notfound-search { margin: 28px auto 0; max-width: 520px; }
.search-empty { font-size: 17px; color: var(--brand); }

/* ---------- Message form ---------- */
.msg-form {
	background: var(--bg-soft); border: 1px solid var(--line);
	border-radius: 14px; padding: 28px; max-width: 720px; margin: 0 auto;
}
.msg-form h3 { margin: 0 0 6px; color: var(--brand); font-size: 21px; }
.msg-form .msg-tip { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.msg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.msg-field { margin-bottom: 16px; }
.msg-field label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; font-weight: 600; }
.msg-field label .req { color: #e0533d; }
.msg-field input, .msg-field select, .msg-field textarea {
	width: 100%; padding: 11px 13px; font-size: 15px; font-family: inherit;
	border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.msg-field input:focus, .msg-field select:focus, .msg-field textarea:focus {
	outline: none; border-color: var(--brand-light);
}
.msg-field textarea { min-height: 110px; resize: vertical; }
.msg-submit { text-align: center; margin-top: 10px; }
.msg-submit button {
	padding: 13px 48px; border: 0; border-radius: 8px; cursor: pointer;
	background: var(--brand); color: #fff; font-size: 16px; font-weight: 600;
}
.msg-submit button:hover { background: var(--brand-light); }
.msg-ok {
	background: #eef7f0; border: 1px solid #b6ddc2; color: #20714a;
	border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; text-align: center;
}
.msg-fail {
	background: #fdf0ee; border: 1px solid #f0c4bb; color: #a8392a;
	border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; text-align: center;
}

/* ---------- Responsive: new blocks ---------- */
@media (max-width: 980px) {
	.entry-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; margin-top: 8px; }
	.pre-footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
	.topbar .wrap { justify-content: center; }
	.topbar-txt { display: none; }
	.rel-grid { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-item.next { text-align: left; }
	.msg-row { grid-template-columns: 1fr; }
	.mobile-bar { display: flex; }
	.to-top { bottom: 72px; }
	body { padding-bottom: 56px; }
	.footer-bottom { padding-bottom: 8px; }
}
