/*
Theme Name: 镇江互联网协会
Theme URI: https://www.0511ia.com/
Author: 镇江市互联网协会
Description: 镇江市互联网协会官方网站新闻门户主题。
Version: 2.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zjis-news
*/

:root {
    --blue: #18558b;
    --blue-dark: #123758;
    --blue-deep: #102f4c;
    --blue-light: #edf3f8;
    --gold: #b79b66;
    --red: #b93436;
    --ink: #173650;
    --text: #3e4b5a;
    --muted: #6e7d8d;
    --line: #e3e9ee;
    --bg: #f6f8fa;
    --white: #fff;
    --radius: 4px;
    --maxw: 1440px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; }
body.is-home { background: var(--white); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; border: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; white-space: nowrap; }

/* Shared masthead and navigation */
.topbar { background: #f1f5f8; border-bottom: 1px solid #eaf0f4; color: #6a7e91; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 26px; }
.welcome { letter-spacing: 1px; }
.search-mini { display: flex; align-items: center; border: 1px solid #d8e2eb; border-radius: 20px; background: #fff; }
.search-mini:focus-within { border-color: var(--blue); }
.search-mini input { width: 174px; min-width: 0; border: 0; padding: 4px 12px; background: transparent; font-size: 11px; outline: none; }
.search-mini button { display: grid; place-items: center; width: 34px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--blue); }
.search-mini svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.masthead { background: #fff; }
.masthead-inner { min-height: 118px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 18px; flex: none; color: var(--blue-dark); }
.brand-mark { display: block; width: 61px; height: 64px; overflow: hidden; flex: none; }
.brand-mark img { display: block; width: 289px; height: 64px; max-width: none; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 31px; font-weight: 750; letter-spacing: 1.5px; line-height: 1.4; }
.brand-copy > span { font-size: 13px; letter-spacing: .65px; line-height: 1.6; }
.masthead-right { text-align: right; }
.slogan { color: var(--blue-dark); font-size: 16px; font-weight: 600; letter-spacing: 3px; }
.hotline { margin-top: 8px; font-size: 14px; color: var(--blue-dark); letter-spacing: 1px; }
.hotline > span { color: var(--gold); margin-right: 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 3px; width: 42px; height: 42px; padding: 6px; flex: none; }
.nav-toggle span { display: block; height: 2px; background: var(--blue); margin: 6px 3px; }
.mainnav { background: rgba(255,255,255,.98); border-top: 1px solid #eef1f4; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.nav-list { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); }
.nav-list a { position: relative; display: block; padding: 17px 12px; font-size: 16px; text-align: center; color: var(--blue-dark); letter-spacing: 1px; }
.nav-list a::after { content: ""; position: absolute; height: 3px; bottom: 0; left: 28%; right: 28%; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav-list a:hover, .nav-list .current a { color: var(--blue); background: #f8fafc; }
.nav-list a:hover::after, .nav-list .current a::after { transform: scaleX(1); }

/* Panoramic introduction */
.panorama { position: relative; isolation: isolate; height: clamp(430px,30vw,560px); overflow: hidden; background: #164877; color: #fff; }
.panorama-img, .panorama-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.panorama-img { object-fit: cover; object-position: center; }
.panorama-shade { background: linear-gradient(90deg,rgba(7,40,72,.78),rgba(10,48,79,.48) 35%,rgba(10,48,79,.03) 70%); }
.panorama-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 34px; padding-bottom: 54px; }
.panorama-eyebrow { font-size: 11px; letter-spacing: 3.5px; color: #d3e3ef; }
.panorama h1 { font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif; font-size: clamp(46px,3.7vw,68px); line-height: 1.35; letter-spacing: 3px; margin-top: 17px; font-weight: 700; }
.panorama h1 span { color: #e8cf98; }
.panorama-description { font-size: 17px; margin-top: 22px; color: #ecf2f7; letter-spacing: 1px; }
.mobile-break { display: none; }
.outline-link { display: inline-flex; align-items: center; gap: 36px; border: 1px solid rgba(226,209,174,.8); color: #fff; margin-top: 28px; padding: 9px 22px; font-size: 14px; transition: background .2s; }
.outline-link:hover { color: #fff; background: rgba(255,255,255,.12); }
.outline-link span { font-size: 20px; line-height: 1; color: #e8cf98; }
.panorama-note { position: absolute; right: 32px; bottom: 28px; display: flex; align-items: center; gap: 14px; font-size: 11px; color: #e6eef4; letter-spacing: 3px; }
.panorama-note > span { width: 60px; height: 1px; background: #d6bb88; }
.panorama-lines { position: absolute; width: 100%; height: 120px; bottom: 0; left: 0; fill: #8bcbeb; stroke: #72b3d5; stroke-width: .6; opacity: .48; pointer-events: none; }
.panorama-lines path { fill: none; }

/* Current announcement */
.notice-wrap { margin-top: 26px; }
.notice-bar { min-width: 0; display: flex; align-items: center; gap: 24px; min-height: 58px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; padding-right: 22px; font-size: 14px; color: var(--ink); }
.notice-label { flex: none; min-height: 56px; align-self: stretch; display: flex; align-items: center; gap: 12px; padding: 0 32px 0 24px; background: var(--blue-dark); color: #fff; clip-path: polygon(0 0,92% 0,100% 100%,0 100%); }
.notice-label svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.notice-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.notice-bar time { color: var(--muted); font-size: 12px; flex: none; }
.notice-arrow { font-size: 22px; flex: none; color: var(--blue); }

/* Editorial section headers */
.section { margin-top: 40px; margin-bottom: 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); gap: 24px; }
.section-head h2 { color: var(--ink); font-size: 25px; line-height: 1.4; padding-left: 18px; position: relative; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; }
.section-head h2::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 4px; background: var(--blue); border-radius: 1px; }
.section-head .more { font-size: 13px; color: var(--blue-dark); flex: none; }
.more span { margin-left: 12px; font-size: 19px; }
.editorial-head { border: 0; padding-bottom: 0; margin-bottom: 28px; align-items: flex-end; }
.editorial-head > div { flex: none; }
.editorial-head p { color: #8191a1; font-size: 10px; letter-spacing: 1.3px; line-height: 1.6; padding-left: 18px; margin-top: 3px; }
.section-rule { flex: 1; height: 1px; background: var(--line); margin-bottom: 7px; }
.association-section { margin-top: 46px; margin-bottom: 54px; }
.association-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 42px; }
.hero-carousel { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border-radius: 3px; background: var(--blue-deep); }
.hc-track { position: relative; flex: 1; min-height: 450px; }
.hc-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; color: #fff; }
.hc-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hc-img, .hc-slide .thumb-empty { width: 100%; height: 100%; object-fit: cover; display: flex; }
.hc-shade { position: absolute; inset: 25% 0 0; background: linear-gradient(transparent,rgba(8,28,49,.94)); }
.hc-caption { position: absolute; left: 28px; right: 28px; bottom: 68px; }
.hc-category { font-size: 11px; color: #ead3aa; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.hc-title { font-size: 22px; line-height: 1.55; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #fff; }
.hc-caption time { display: block; color: #c3d2df; font-size: 12px; margin-top: 12px; }
.hc-controls { position: absolute; bottom: 0; left: 26px; right: 26px; z-index: 3; min-height: 56px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.19); }
.hc-arrow, .hc-pause { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.3); color: #fff; background: transparent; font-size: 18px; border-radius: 50%; }
.hc-arrow:hover, .hc-pause:hover { background: rgba(255,255,255,.16); }
.hc-pause { font-size: 12px; }
.hc-dots { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.hc-dot { position: relative; display: block; width: 28px; height: 32px; border: 0; padding: 0; background: transparent; }
.hc-dot::after { content: ""; display: block; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); transition: background .2s; }
.hc-dot.is-active::after { background: #e6c78d; box-shadow: 0 0 0 3px rgba(230,199,141,.16); }
.association-list { display: flex; flex-direction: column; min-width: 0; }
.dated-news { flex: 1; border-bottom: 1px solid var(--line); }
.dated-news:last-child { border-bottom: 0; }
.dated-news a { display: grid; grid-template-columns: 74px minmax(0,1fr) 14px; align-items: center; gap: 22px; min-height: 116px; height: 100%; padding: 17px 0; }
.dated-news time { align-self: center; border-right: 1px solid #dce4ec; padding-right: 16px; text-align: center; }
.dated-news time strong { display: block; color: var(--blue); font-size: 35px; font-weight: 500; line-height: 1.15; font-family: Georgia,serif; }
.dated-news time span { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; }
.dated-news h3 { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dated-news p { color: var(--muted); font-size: 13px; margin-top: 9px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.dated-arrow { color: #8fa4b6; font-size: 17px; }
.dated-news a:hover h3, .dated-news a:hover .dated-arrow { color: var(--blue); }
.association-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px; min-height: 360px; color: #fff; background: var(--blue-dark); border-radius: 3px; }
.association-empty p { font-size: 28px; }
.association-empty span { font-size: 13px; color: #c5d4df; }
.section-empty { padding: 40px 0; color: var(--muted); }

/* Category features, with editorial artwork when a story has no landscape cover */
.insights-section { background: #f5f7f8; padding: 44px 0 48px; }
.insights-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.insight-card { min-width: 0; background: #fff; border: 1px solid #e9eef1; border-radius: 3px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.insight-card:hover { box-shadow: 0 10px 24px rgba(20,55,80,.07); transform: translateY(-3px); }
.insight-media { position: relative; }
.insight-image { display: block; overflow: hidden; aspect-ratio: 16/8.5; }
.insight-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-label { position: absolute; left: 20px; top: 0; padding: 6px 15px; background: var(--blue); color: #fff; font-size: 12px; border-radius: 0 0 2px 2px; }
.topic-label:hover { color: #fff; background: var(--blue-dark); }
.insight-body { padding: 24px; }
.insight-body h3 { min-height: 55px; font-size: 18px; line-height: 1.55; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.insight-body p { min-height: 45px; font-size: 13px; color: var(--muted); margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.insight-meta { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px; font-size: 12px; color: #77899b; }
.insight-meta a { color: var(--blue); margin-left: auto; }
.insight-meta a span { padding-left: 8px; font-size: 19px; }
.topic-cover { width: 100%; height: 100%; position: relative; display: block; overflow: hidden; color: #e6f0f7; background: radial-gradient(ellipse at 90% 20%,#397fac,transparent 65%),#164971; }
.topic-cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,transparent,transparent 29px,rgba(255,255,255,.06) 30px),repeating-linear-gradient(90deg,transparent,transparent 29px,rgba(255,255,255,.06) 30px); mask-image: linear-gradient(90deg,transparent,#000); }
.topic-cover svg { position: absolute; width: 48%; height: 85%; right: 4%; bottom: 1%; fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .75; }
.topic-en { position: absolute; left: 25px; top: 35%; font-size: 10px; letter-spacing: 2px; opacity: .7; }
.topic-cn { position: absolute; left: 25px; top: 48%; font-family: SimSun,serif; font-size: 26px; letter-spacing: 3px; }
.topic-cover-policy { background: radial-gradient(ellipse at 95% 10%,#faf7ee,transparent 65%),#e4e4dc; color: #7b704e; }
.topic-cover-policy::before { background: repeating-linear-gradient(90deg,transparent,transparent 29px,rgba(90,80,60,.05) 30px); }
.topic-cover-technology { background: radial-gradient(ellipse at 90% 20%,#235f77,transparent 65%),#0e334b; }

/* Members and association publications */
.community-section { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; margin-top: 48px; margin-bottom: 56px; }
.community-tile { position: relative; overflow: hidden; min-height: 300px; padding: 30px 32px; background: linear-gradient(110deg,#f1f6fa,#e1ebf3); border: 1px solid #e7eef3; border-radius: 3px; }
.community-copy { position: relative; z-index: 1; max-width: 84%; }
.community-tile .editorial-head { margin-bottom: 24px; }
.community-tile .editorial-head::after { content: ""; position: absolute; top: 72px; left: 18px; width: 34px; height: 2px; background: var(--gold); }
.community-copy h3 { color: var(--blue-dark); font-size: 17px; font-weight: 600; }
.community-links { margin-top: 14px; color: #5b7083; font-size: 13px; }
.community-links li { margin-top: 5px; }
.community-links a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 21px; border-bottom: 1px solid var(--gold); color: var(--blue-dark); font-size: 13px; padding-bottom: 3px; }
.member-art { position: absolute; width: 46%; height: 90%; right: -15px; bottom: -20px; fill: none; stroke: #93b2c9; stroke-width: 1; opacity: .38; }
.publications { background: linear-gradient(105deg,#f7f6f1,#eeede6); border-color: #edede6; }
.journal-art { position: absolute; right: -28px; bottom: -45px; width: 180px; height: 250px; padding: 24px 18px; transform: rotate(-16deg); background: linear-gradient(120deg,#234f73,#102f4c); box-shadow: -6px 8px 0 #cdd6dd,-12px 16px 0 rgba(135,151,160,.2); color: #fff; border-left: 5px solid #487191; }
.journal-art span { font-size: 8px; letter-spacing: 1px; display: block; opacity: .65; }
.journal-art strong { display: block; font-family: SimSun,serif; font-size: 29px; letter-spacing: 5px; margin-top: 26px; }
.journal-art i { display: block; font-size: 8px; font-style: normal; letter-spacing: 2px; color: #d9c38f; margin-top: 8px; }
.journal-art b { display: block; margin-top: 35px; height: 50px; border-top: 1px solid #6888a1; border-bottom: 1px solid #6888a1; opacity: .6; }

/* Shared placeholders for archived articles without images */
.thumb-empty { align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: linear-gradient(140deg,#28658f,#153a5b); color: #fff; }
.thumb-empty em { font-style: normal; font-family: Georgia,serif; font-weight: 500; letter-spacing: 6px; font-size: 27px; }
.thumb-empty i { font-style: normal; font-size: 12px; opacity: .75; letter-spacing: 2px; }
/* breadcrumb */
.breadcrumb { margin: 18px auto 0; font-size: 13px; color: var(--muted); padding: 0 20px; max-width: var(--maxw); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 8px; color: #c3ccd6; }
.breadcrumb em { font-style: normal; color: var(--ink); }
.breadcrumb.light, .breadcrumb.light a, .breadcrumb.light em { color: rgba(255,255,255,.86); }
.breadcrumb.light span { color: rgba(255,255,255,.45); }

/* page hero */
.page-hero { background: linear-gradient(110deg, #0f3a6b, #16508f 55%, #1e6ab5); color: #fff; padding: 26px 0 34px; }
.page-hero .breadcrumb { margin: 0 auto 16px; }
.page-hero h1 { font-size: 30px; font-weight: 700; line-height: 1.4; }
.page-hero p { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.78); max-width: 780px; }
.search-count { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.75); }

/* post list */
.post-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-intro { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 32px; margin-bottom: 24px; }
.cat-intro p { margin: 0 0 10px; font-size: 15px; line-height: 2; color: var(--text); text-indent: 2em; }
.cat-intro p:last-child { margin-bottom: 0; }
.post-item { display: flex; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.post-item:last-child { border-bottom: 0; }
.post-thumb { flex: 0 0 252px; height: 158px; border-radius: 4px; overflow: hidden; display: block; background: var(--blue-light); }
.list-img, .post-thumb .thumb-empty { width: 100%; height: 100%; object-fit: cover; display: flex; }
.post-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.post-info h2 { font-size: 19px; line-height: 1.5; font-weight: 600; color: var(--ink); }
.post-info h2 a:hover { color: var(--blue); }
.post-info p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { margin-top: 12px; display: flex; gap: 18px; font-size: 12px; color: #9aa7b4; }
.post-meta span { color: #9aa7b4; }

/* article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; margin-top: 18px; margin-bottom: 46px; }
.article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 38px 26px; }
.article-head h1 { font-size: 30px; line-height: 1.55; color: var(--ink); font-weight: 700; }
.article-meta { margin-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); }
.article-content { margin-top: 24px; font-size: 16px; line-height: 2; color: #2c3440; word-wrap: break-word; }
.article-content p { margin: 1em 0; }
.article-content img { max-width: 100% !important; height: auto !important; border-radius: 4px; }
.article-content table { max-width: 100%; overflow-x: auto; display: block; border-collapse: collapse; }
.article-content td, .article-content th { border: 1px solid var(--line); padding: 8px 10px; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.4em 0 .7em; line-height: 1.5; color: var(--ink); }
.article-content blockquote { margin: 1.2em 0; padding: 12px 18px; background: #f7f9fc; border-left: 4px solid var(--blue); color: #4b5866; }
.article-content a { color: var(--blue); text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 2em; margin: 1em 0; list-style: revert; }
.post-attach { display: flex; align-items: center; gap: 12px; margin: 1.8em 0; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 6px; background: #fbfcfe; }
.post-attach .pa-ico { flex: none; width: 44px; height: 52px; border-radius: 4px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.post-attach a { color: var(--ink); font-size: 15px; text-decoration: none; word-break: break-all; }
.post-attach a:hover { color: var(--red); }
.post-attach em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.page-links { margin-top: 24px; font-size: 14px; }
.page-links a, .page-links span { display: inline-block; padding: 4px 10px; border: 1px solid var(--line); margin: 0 4px 4px 0; border-radius: 3px; }
.article-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.share { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.share a { color: var(--blue); }
.prevnext { margin-top: 16px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.prevnext a:hover { color: var(--blue); }
.article-side { display: flex; flex-direction: column; gap: 22px; }
.side-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-block > h2 { font-size: 17px; color: var(--ink); padding-left: 12px; position: relative; margin-bottom: 12px; }
.side-block > h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--blue); border-radius: 2px; }
.side-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-thumb { display: block; flex: 0 0 92px; height: 62px; border-radius: 4px; overflow: hidden; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-title { font-size: 14px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-list time { display: block; margin-top: 4px; font-size: 12px; color: #9aa7b4; }
.cat-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-links a { display: block; padding: 8px 10px; background: #f6f8fb; border-radius: 4px; font-size: 13px; text-align: center; }
.cat-links a:hover { background: var(--blue-light); color: var(--blue); }
.article-page { padding: 28px 38px; }

/* pagination */
.pagination { margin-top: 26px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nav-links a, .nav-links span { display: inline-block; padding: 7px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: 14px; color: var(--text); }
.nav-links .current { background: var(--blue); border-color: var(--blue); color: #fff; }
.nav-links a:hover { border-color: var(--blue); color: var(--blue); }
.nav-links .dots { border: 0; background: transparent; }

/* empty / 404 */
.empty-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 60px 20px; text-align: center; color: var(--muted); }
.error-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 60px 30px; text-align: center; max-width: 640px; margin: 20px auto; }
.error-box .code { font-size: 72px; font-weight: 800; color: var(--blue-light); line-height: 1; }
.error-box h1 { font-size: 24px; margin: 10px 0 8px; }
.error-box p { color: var(--muted); }
.error-box .search-big { margin: 20px auto 16px; }

.search-big { display: flex; max-width: 560px; margin-top: 14px; }
.search-big input { flex: 1; border: 1px solid var(--line); border-right: 0; border-radius: 4px 0 0 4px; padding: 10px 14px; font-size: 14px; outline: 0; }
.search-big button { border: 0; background: var(--blue); color: #fff; padding: 0 24px; border-radius: 0 4px 4px 0; cursor: pointer; font-size: 14px; }

/* Shared footer */
.site-footer { margin-top: 0; background: linear-gradient(110deg,#143d5e,#102f4b); color: #bcccd8; }
.footer-top { padding: 38px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand { color: #fff; gap: 14px; }
.footer-brand .brand-mark { width: 48px; height: 50px; }
.footer-brand .brand-mark img { height: 50px; width: 226px; }
.footer-brand .brand-copy strong { font-size: 24px; letter-spacing: 1px; }
.footer-brand .brand-copy > span { font-size: 10px; letter-spacing: .5px; color: #c0d0dd; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 22px; font-size: 12px; }
.footer-nav a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 30px; padding-bottom: 24px; font-size: 12px; color: #a3bacb; }
.footer-contact > p:last-child { margin-left: auto; letter-spacing: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.16); padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 11px; color: #a6bdcf; }
.page-hero { background: linear-gradient(110deg,#123758,#205d87); padding-top: 32px; padding-bottom: 38px; }
.page-hero h1 { font-family: "Songti SC",SimSun,serif; }
.search-big input { min-width: 0; }
.btn { display: inline-block; margin-top: 16px; padding: 10px 24px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 14px; }
.btn:hover { background: var(--blue-dark); color: #fff; }
.article-content { overflow-wrap: anywhere; }
.article-content > * { max-width: 100%; }
.post-list, .article, .side-block, .cat-intro { box-shadow: 0 3px 18px rgba(18,55,88,.025); }

/* Responsive layouts */
@media (max-width: 1120px) {
    .brand-copy strong { font-size: 28px; }
    .slogan { font-size: 14px; letter-spacing: 2px; }
    .association-grid { gap: 28px; }
    .dated-news a { grid-template-columns: 64px minmax(0,1fr); gap: 18px; }
    .dated-arrow { display: none; }
    .hc-title { font-size: 20px; }
    .insights-grid { gap: 20px; }
    .insight-body { padding: 20px; }
    .community-tile { padding: 26px; }
    .community-copy { max-width: 90%; }
    .journal-art { opacity: .35; }
    .footer-top { align-items: flex-start; gap: 30px; }
    .footer-nav { max-width: 440px; }
    .article-layout { grid-template-columns: 1fr; }
    .article-side { flex-direction: row; }
    .article-side .side-block { flex: 1; min-width: 0; }
}
@media (max-width: 860px) {
    .container { padding-left: 24px; padding-right: 24px; }
    .masthead-inner { min-height: 98px; padding-top: 18px; padding-bottom: 18px; }
    .masthead-right { display: none; }
    .nav-toggle { display: block; }
    .mainnav > .container { padding: 0; }
    .nav-list { display: none; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 24px 16px; background: #fff; }
    .nav-open .nav-list { display: grid; }
    .nav-list a { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
    .nav-list a::after { left: 16px; right: auto; width: 32px; }
    .panorama { height: 430px; }
    .panorama h1 { font-size: 50px; }
    .panorama-description { font-size: 15px; }
    .panorama-note { right: 24px; }
    .association-grid { grid-template-columns: 1fr; gap: 22px; }
    .hc-track { min-height: 0; aspect-ratio: 16/9; }
    .dated-news a { grid-template-columns: 68px minmax(0,1fr) 16px; min-height: 110px; }
    .dated-arrow { display: block; }
    .insight-body { padding: 18px; }
    .insight-body h3 { font-size: 16px; min-height: 50px; }
    .topic-cover svg { width: 60%; right: -2%; opacity: .45; }
    .topic-cn { left: 20px; font-size: 22px; }
    .topic-en { display: none; }
    .topic-label { left: 14px; padding: 5px 10px; font-size: 11px; }
    .community-section { gap: 20px; }
    .community-tile { padding: 24px; }
    .community-copy { max-width: 100%; }
    .community-copy h3 { font-size: 16px; }
    .journal-art { opacity: .13; }
    .member-art { opacity: .2; }
    .article { padding: 26px; }
    .article-head h1 { font-size: 26px; }
    .article-side { flex-direction: column; }
    .footer-top { flex-direction: column; }
    .footer-nav { max-width: none; justify-content: flex-start; }
    .footer-contact > p:last-child { margin-left: 0; }
}
@media (max-width: 640px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .topbar-inner { min-height: 36px; gap: 8px; }
    .topbar .today { display: none; }
    .topbar .welcome { font-size: 10px; letter-spacing: 0; }
    .topbar-right { gap: 0; }
    .search-mini input { width: 116px; padding: 4px 8px; font-size: 10px; }
    .search-mini button { width: 28px; height: 26px; }
    .brand { gap: 12px; min-width: 0; }
    .brand-mark { width: 42px; height: 44px; }
    .brand-mark img { width: 199px; height: 44px; }
    .brand-copy strong { font-size: 22px; letter-spacing: .5px; }
    .brand-copy > span { font-size: 9px; letter-spacing: .1px; }
    .masthead-inner { min-height: 90px; gap: 12px; }
    .nav-toggle { width: 38px; height: 38px; }
    .panorama { height: 390px; }
    .panorama-img { object-position: 61% center; }
    .panorama-shade { background: linear-gradient(90deg,rgba(7,35,62,.87),rgba(9,43,71,.52) 60%,rgba(9,43,71,.12)); }
    .panorama-inner { padding-top: 22px; padding-bottom: 42px; }
    .panorama-eyebrow { font-size: 8px; letter-spacing: 2px; }
    .panorama h1 { font-size: 38px; line-height: 1.4; letter-spacing: 2px; margin-top: 16px; }
    .panorama-description { font-size: 14px; line-height: 1.85; letter-spacing: .5px; margin-top: 16px; }
    .mobile-break { display: block; }
    .outline-link { padding: 8px 18px; font-size: 13px; margin-top: 20px; gap: 30px; }
    .panorama-note { font-size: 9px; right: 20px; bottom: 18px; letter-spacing: 2px; gap: 10px; }
    .panorama-note > span { width: 32px; }
    .panorama-lines { height: 80px; }
    .notice-wrap { margin-top: 20px; }
    .notice-bar { min-height: 64px; gap: 12px; padding-right: 12px; font-size: 12px; }
    .notice-label { min-height: 62px; padding: 0 19px 0 12px; gap: 7px; font-size: 12px; }
    .notice-label svg { width: 17px; height: 17px; }
    .notice-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.7; }
    .notice-bar time { display: none; }
    .notice-arrow { font-size: 18px; }
    .association-section { margin-top: 36px; margin-bottom: 36px; }
    .editorial-head { gap: 15px; margin-bottom: 22px; }
    .section-head h2 { font-size: 23px; padding-left: 14px; }
    .editorial-head p { font-size: 8px; letter-spacing: .9px; padding-left: 14px; }
    .section-head .more { font-size: 11px; }
    .more span { margin-left: 6px; font-size: 17px; }
    .hc-track { aspect-ratio: 4/3; }
    .hc-caption { left: 20px; right: 20px; bottom: 65px; }
    .hc-title { font-size: 18px; }
    .hc-category { margin-bottom: 8px; font-size: 10px; }
    .hc-caption time { margin-top: 8px; font-size: 11px; }
    .hc-controls { left: 18px; right: 18px; gap: 6px; }
    .hc-dot { width: 26px; }
    .dated-news a { grid-template-columns: 55px minmax(0,1fr) 12px; gap: 15px; min-height: 105px; padding: 17px 0; }
    .dated-news time { padding-right: 12px; }
    .dated-news time strong { font-size: 30px; }
    .dated-news time span { font-size: 10px; margin-top: 6px; }
    .dated-news h3 { font-size: 15px; line-height: 1.6; }
    .dated-news p { font-size: 12px; margin-top: 7px; }
    .insights-section { padding: 32px 0; }
    .insights-grid { grid-template-columns: 1fr; gap: 20px; }
    .insight-body { padding: 20px; }
    .insight-body h3 { font-size: 17px; min-height: 0; }
    .insight-body p { min-height: 0; }
    .insight-meta { margin-top: 18px; }
    .topic-label { left: 20px; font-size: 12px; padding: 5px 14px; }
    .topic-cover svg { width: 48%; opacity: .75; right: 4%; }
    .topic-cn { font-size: 27px; left: 25px; }
    .topic-en { display: block; }
    .community-section { grid-template-columns: 1fr; margin-top: 32px; margin-bottom: 36px; }
    .community-tile { min-height: 295px; padding: 26px; }
    .community-copy { max-width: 92%; }
    .community-tile .editorial-head::after { left: 14px; top: 66px; }
    .community-copy h3 { font-size: 16px; }
    .community-links { font-size: 12px; }
    .journal-art { opacity: .25; }
    .member-art { opacity: .28; width: 55%; }
    .footer-top { padding: 30px 0 22px; gap: 25px; }
    .footer-brand .brand-mark { width: 42px; height: 44px; }
    .footer-brand .brand-mark img { width: 199px; height: 44px; }
    .footer-brand .brand-copy strong { font-size: 22px; }
    .footer-brand .brand-copy > span { font-size: 9px; }
    .footer-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); width: 100%; gap: 12px 10px; font-size: 11px; }
    .footer-contact { flex-direction: column; gap: 6px; padding-bottom: 22px; font-size: 11px; }
    .footer-contact > p:last-child { margin-top: 8px; }
    .footer-bottom { flex-direction: column; gap: 5px; font-size: 10px; }
    .post-item { flex-direction: column; gap: 14px; padding: 20px; }
    .post-thumb { flex: none; width: 100%; height: auto; aspect-ratio: 16/9; }
    .post-info h2 { font-size: 18px; }
    .post-meta { gap: 12px; flex-wrap: wrap; }
    .page-hero { padding: 24px 0 28px; }
    .page-hero h1 { font-size: 26px; }
    .cat-intro { padding: 22px; }
    .cat-intro p { font-size: 14px; }
    .article-layout { margin-top: 24px; gap: 20px; }
    .article { padding: 22px 18px; }
    .article-head h1 { font-size: 23px; }
    .article-meta { gap: 6px 16px; font-size: 12px; }
    .article-content { font-size: 15px; }
    .article-content td, .article-content th { padding: 6px; }
    .search-big button { padding: 0 18px; }
    .search-big { width: 100%; }
}
@media (max-width: 360px) {
    .brand-copy strong, .footer-brand .brand-copy strong { font-size: 19px; }
    .brand-copy > span { font-size: 8px; }
    .search-mini input { width: 90px; }
    .panorama h1 { font-size: 34px; }
    .hc-dot { width: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
