/* ==========================================
   V2 新闻网站公共样式
   使用 CSS 自定义属性实现多站点主题化
   ========================================== */

/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans KR", "Noto Sans SC", Arial, sans-serif);
    line-height: 1.6; color: #333; background: #f8f9fa;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; color: #1a1a2e; font-family: var(--font-heading, Georgia, serif); }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; }

/* --- Top Bar --- */
.top-bar {
    background: #1a1a2e; color: rgba(255,255,255,0.8); font-size: 13px;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .social-icons { display: flex; gap: 12px; }
.top-bar .social-icons a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.top-bar .social-icons a:hover { color: #fff; }
.top-bar .date-text { font-size: 12px; }

/* --- Header --- */
.site-header {
    background: #fff; padding: 16px 0;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 48px; width: auto; }
.site-logo .logo-text { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.site-logo .logo-tagline { font-size: 12px; color: #888; margin-top: 2px; }
.header-search { position: relative; }
.header-search input {
    border: 1px solid #ddd; border-radius: 20px; padding: 8px 36px 8px 16px;
    font-size: 14px; width: 220px; transition: border-color 0.2s;
}
.header-search input:focus { outline: none; border-color: var(--primary); }
.header-search button {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #999; cursor: pointer;
}

/* --- Navigation --- */
.main-nav {
    background: var(--nav-bg); position: sticky; top: 0; z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.main-nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav-menu { display: flex; gap: 0; }
.nav-menu a {
    color: rgba(255,255,255,0.9); padding: 14px 18px; font-size: 14px;
    font-weight: 500; transition: all 0.2s; display: block; letter-spacing: 0.3px;
}
.nav-menu a:hover, .nav-menu a.active {
    background: rgba(255,255,255,0.15); color: #fff;
}
.hamburger {
    display: none; background: none; border: none; color: #fff;
    font-size: 22px; cursor: pointer; padding: 10px;
}

/* --- Mobile Nav --- */
.mobile-nav {
    display: none; background: var(--nav-bg); flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: rgba(255,255,255,0.9); padding: 14px 24px; font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1); transition: background 0.2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* --- Hero Section (Homepage) --- */
.hero-section { margin: 28px 0; }
.hero-card {
    position: relative; border-radius: var(--radius, 12px); overflow: hidden;
    background: #1a1a2e; min-height: 360px; display: flex; align-items: flex-end;
}
.hero-card img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.6; transition: opacity 0.3s;
}
.hero-card:hover img { opacity: 0.5; }
.hero-card .hero-content {
    position: relative; z-index: 1; padding: 40px; color: #fff; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.hero-card .hero-category {
    display: inline-block; background: var(--secondary); color: #fff;
    padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
    text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px;
}
.hero-card h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.hero-card .hero-summary { font-size: 15px; opacity: 0.9; line-height: 1.5; }
.hero-card .hero-date { font-size: 13px; opacity: 0.7; margin-top: 12px; }

/* --- Category Section (Homepage) --- */
.category-section { margin-bottom: 40px; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}
.section-header h2 { font-size: 20px; font-weight: 700; color: var(--primary); }
.section-header a { font-size: 13px; color: var(--primary); font-weight: 500; }
.section-header a:hover { color: var(--secondary); }

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

/* --- Article Card --- */
.article-card {
    background: #fff; border-radius: var(--radius, 10px); overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: all 0.25s;
    display: flex; flex-direction: column;
}
.article-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); transform: translateY(-2px); }
.article-card .card-image {
    height: 180px; overflow: hidden; position: relative;
}
.article-card .card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.article-card:hover .card-image img { transform: scale(1.05); }
.article-card .card-body { padding: var(--card-pad, 16px); flex: 1; display: flex; flex-direction: column; }
.article-card .card-category {
    font-size: 11px; font-weight: 600; color: var(--secondary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.article-card h3 {
    font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card h3 a { color: #1a1a2e; }
.article-card h3 a:hover { color: var(--primary); }
.article-card .card-summary {
    font-size: 13px; color: #666; line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card .card-meta {
    font-size: 12px; color: #999; margin-top: 12px;
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px; border-top: 1px solid #f0f0f0;
}

/* --- List Card (Category Page) --- */
.article-list-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: all 0.25s;
    display: flex; margin-bottom: 16px;
}
.article-list-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.article-list-card .list-image {
    width: 280px; min-width: 280px; height: 190px; overflow: hidden;
}
.article-list-card .list-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s;
}
.article-list-card:hover .list-image img { transform: scale(1.05); }
.article-list-card .list-body {
    padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: center;
}
.article-list-card .list-category {
    font-size: 11px; font-weight: 600; color: var(--secondary);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.article-list-card h3 {
    font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 8px;
}
.article-list-card h3 a { color: #1a1a2e; }
.article-list-card h3 a:hover { color: var(--primary); }
.article-list-card .list-summary {
    font-size: 14px; color: #666; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-list-card .list-meta {
    font-size: 12px; color: #999; margin-top: 12px;
    display: flex; gap: 16px; align-items: center;
}

/* --- Load More Button --- */
.load-more-wrap { text-align: center; margin: 32px 0; }
.btn-load-more {
    background: var(--primary); color: #fff; border: none; border-radius: 8px;
    padding: 12px 40px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}
.btn-load-more:hover { background: var(--nav-bg); transform: translateY(-1px); }
.btn-load-more:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Article Detail --- */
.article-detail { max-width: 800px; margin: 32px auto; }
.article-detail .breadcrumb {
    font-size: 13px; color: #888; margin-bottom: 20px;
    display: flex; gap: 8px; align-items: center;
}
.article-detail .breadcrumb a { color: var(--primary); }
.article-detail .article-category-tag {
    display: inline-block; background: var(--secondary); color: #fff;
    padding: 4px 14px; border-radius: 4px; font-size: 12px; font-weight: 600;
    text-transform: uppercase; margin-bottom: 16px;
}
.article-detail h1 { font-size: 32px; font-weight: 800; line-height: 1.3; margin-bottom: 16px; }
.article-detail .article-meta {
    display: flex; gap: 20px; align-items: center; color: #888; font-size: 14px;
    margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #eee;
}
.article-detail .article-meta .author { font-weight: 600; color: #555; }
.article-detail .featured-image {
    margin-bottom: 24px; border-radius: var(--radius, 10px); overflow: hidden;
}
.article-detail .featured-image img,
.article-detail-a .featured-image img { width: 100%; }
/* 专业正文排版 —— 同时匹配 .article-detail 和新容器 .article-detail-a */
.article-detail .article-content,
.article-detail-a .article-content {
    font-size: 18px; line-height: 1.85; color: #2b2b2b;
    text-align: left;
}
/* 段落:用段间距区分段落(专业中文网页排版惯例,不用首行缩进——纽约时报中文/BBC中文/端传媒均如此) */
.article-detail .article-content p,
.article-detail-a .article-content p {
    margin: 0 0 1.4em; text-indent: 0;
}
/* 小标题层次:上下留白拉开,与正文区分 */
.article-detail .article-content h2, .article-detail-a .article-content h2 {
    font-size: 1.4em; font-weight: 700; margin: 1.8em 0 0.7em; line-height: 1.35;
    font-family: var(--font-heading, Georgia, serif); color: #1a1a1a;
}
.article-detail .article-content h3, .article-detail-a .article-content h3 {
    font-size: 1.2em; font-weight: 700; margin: 1.5em 0 0.6em; line-height: 1.4;
    font-family: var(--font-heading, Georgia, serif);
}
.article-detail .article-content img, .article-detail-a .article-content img {
    margin: 1.8em auto; border-radius: var(--radius, 8px); display: block;
}
/* 引用块:专业报刊引文样式 */
.article-detail .article-content blockquote, .article-detail-a .article-content blockquote {
    border-left: 4px solid var(--primary); padding: 12px 24px;
    background: #f8f9fa; margin: 1.8em 0; font-style: italic; color: #444;
    text-indent: 0; font-size: 1.05em; line-height: 1.7;
}
.article-detail .article-content blockquote p, .article-detail-a .article-content blockquote p { text-indent: 0; margin-bottom: 0.5em; }
.article-detail .article-tags {
    margin-top: 32px; padding-top: 20px; border-top: 1px solid #eee;
    display: flex; gap: 8px; flex-wrap: wrap;
}
.article-detail .article-tags span {
    background: #f0f0f0; color: #666; padding: 4px 12px;
    border-radius: 20px; font-size: 13px;
}

/* --- Related Articles --- */
.related-section { margin: 40px 0; padding: 32px 0; border-top: 2px solid #eee; }
.related-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* --- Footer --- */
/* ==========================================
   页脚:15 套骨架 × 标题装饰/分隔/社交/底色
   ------------------------------------------
   改造前 51 站页脚结构指纹只有 1 种,只换颜色,一眼看出是同一个模板。
   四个必备模块(关于我们/联系我们/分类/社交)在 _footer.html 里定义成
   macro,这里只负责"怎么摆"。骨架 class 由 dna.footer.skeleton 决定。
   ========================================== */
.site-footer { padding: 46px 0 0; margin-top: 60px; }
.site-footer .f-blk { min-width: 0; }
.site-footer .f-desc, .site-footer .f-contact p { color: inherit; }          /* grid 子项默认 min-width:auto,长词会撑破列 */
.f-desc { font-size: 13.5px; line-height: 1.75; margin: 0; }
.f-contact p { font-size: 13px; margin: 0 0 9px; }
.f-contact i { width: 18px; }
.f-nav a, .f-soc-text_links a { display: block; font-size: 13px; padding: 4px 0; }
.f-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.f-tags a { padding: 4px 11px; font-size: 12.5px; border-radius: var(--radius, 4px); }
.f-h-tags { margin-top: 20px !important; }

/* ---- 标题装饰(6 种) ---- */
.f-h { font-size: 14.5px; font-weight: 800; letter-spacing: .03em; margin: 0 0 14px; }
.f-h-underline { padding-bottom: 8px; border-bottom: 2px solid var(--accent, var(--secondary)); }
.f-h-overline  { padding-top: 8px; border-top: 3px solid var(--accent, var(--secondary)); }
.f-h-left_bar  { padding-left: 10px; border-left: 4px solid var(--accent, var(--secondary)); }
.f-h-boxed     { display: inline-block; padding: 5px 12px;
                 background: var(--accent, var(--secondary)); color: #fff; }
.f-h-dot::before { content: "\25CF "; color: var(--accent, var(--secondary)); }

/* ---- 社交样式(4 种) ---- */
.f-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.f-soc-text_links { display: block; }
.f-soc-icons_row a { margin-right: 14px; font-size: 15px; }
.f-soc-icons_boxed a, .f-soc-icons_circle a {
    width: 32px; height: 32px; display: inline-flex;
    align-items: center; justify-content: center; font-size: 13px;
}
.f-soc-icons_boxed a { border: 1px solid var(--accent, var(--secondary)); }
.f-soc-icons_circle a { border-radius: 50%; background: var(--accent, var(--secondary)); color: #fff; }

/* ---- 15 套骨架 ---- */
.f-wrap { display: grid; gap: 34px; }
.f-4col  { grid-template-columns: 2fr 1fr 1fr 1fr; }
.f-min   { grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; }
.f-3col  { grid-template-columns: 1fr 1fr 1fr; }
.f-3col-a{ grid-template-columns: 1.6fr 1fr 1fr; }
.f-2x2   { grid-template-columns: 1fr 1fr; gap: 34px 60px; }
.f-asym  { grid-template-columns: 3fr 1.4fr 1fr; }
.f-cards { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 18px; }
.f-cards > * { border: 1px solid var(--accent, var(--secondary)); padding: 20px; }

.f-2col-a { grid-template-columns: 1.15fr 1fr; }
.f-2col-a .f-sub { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }
.f-2col-a .f-span2 { grid-column: 1 / -1; }

.f-top { max-width: 900px; margin-bottom: 30px; }
.f-bot-about { margin-top: 30px; padding-top: 26px; border-top: 1px solid currentColor; opacity: .999; }
.f-inline { display: flex; flex-wrap: wrap; gap: 52px; padding-top: 22px; margin-top: 4px;
            border-top: 1px solid var(--accent, var(--secondary)); }

.f-rail-l { grid-template-columns: 190px 1fr; gap: 44px; }
.f-rail-r { grid-template-columns: 1fr 200px; gap: 44px; }
.f-rail-l .f-main, .f-rail-r .f-main { display: grid; gap: 28px; grid-template-columns: 1.5fr 1fr; }
.f-rail-l .f-rail { border-right: 1px solid var(--accent, var(--secondary)); padding-right: 22px; }
.f-rail-r .f-rail { border-left: 1px solid var(--accent, var(--secondary)); padding-left: 24px; }

/* 每条色带内部两列。四块各占整行会让右侧空一大片 */
.f-band { display: grid; grid-template-columns: 1.6fr 1fr; gap: 46px;
          padding: 22px 0; border-bottom: 1px solid var(--accent, var(--secondary)); }
.f-center { text-align: center; max-width: 760px; margin: 0 auto; }
.f-center .f-blk { margin-bottom: 24px; }
.f-center .f-soc, .f-center .f-tags { justify-content: center; }
.f-center .f-h-left_bar, .f-center .f-h-boxed { display: inline-block; }

.f-masthead { text-align: center; padding-bottom: 22px;
              border-bottom: 3px double var(--accent, var(--secondary)); margin-bottom: 26px; }
.f-masthead .f-soc, .f-masthead .f-tags { justify-content: center; }

.f-split { grid-template-columns: 1.1fr 1fr; gap: 0; }
.f-split .f-half-l { padding: 6px 34px 6px 0; }
.f-split .f-half-r { padding: 6px 0 6px 34px; border-left: 1px solid var(--accent, var(--secondary));
                     display: grid; gap: 26px; grid-template-columns: 1fr 1fr; }

/* ---- 底色调性(4 种) ---- */
/* theme.css 在 style.css 之后加载,里面有 181 条针对页脚的规则
   (.theme-N .site-footer / .footer-title / .footer-links / .footer-about /
    .footer-bottom / .footer-tags / .footer-social),权重都高于本文件。
   上一轮只给 background 加了 !important,底色抢回来了,但 theme 的
   `color:rgba(255,255,255,.7)` 还在,会继承到描述和联系方式上 ——
   首尔今日报(theme-29 + tone-paper)就是浅底配白字,整段看不见。
   这些颜色现在统一由 tone 负责,把 theme 对新页脚的着色整体清掉,
   下面再按 tone 逐项指定。不动 theme 对页面其它部分的样式。 */
.site-footer[class*="f-tone-"],
.site-footer[class*="f-tone-"] .f-h,
.site-footer[class*="f-tone-"] .f-desc,
.site-footer[class*="f-tone-"] .f-contact p,
.site-footer[class*="f-tone-"] .f-nav a,
.site-footer[class*="f-tone-"] .f-soc a,
.site-footer[class*="f-tone-"] .f-tags a,
.site-footer[class*="f-tone-"] .footer-bottom { color: inherit; }
.site-footer[class*="f-tone-"] .footer-bottom { background: transparent !important; }


/* 必须带 !important:theme.css 在 style.css 之后加载,里面有 30 条
   `.theme-N .site-footer{background:...}`,选择器权重(0,2,0)还高于
   这里的 (0,1,0),会把底色抢走、却留下这里的文字色 —— 结果就是
   theme-1(#111 黑底) 配 tone-paper(深字) = 黑底黑字,整块看不见。
   实测 51 站里有 17 站中招(黑底黑字 8 站 + 白底白字 9 站)。
   底色与文字色是成对设计的,必须一起生效,不能被单独覆盖其中一半。 */
.f-tone-ink   { background: #15171c !important; color: rgba(255,255,255,.78) !important; }
.f-tone-brand { background: var(--primary) !important; color: rgba(255,255,255,.82) !important; }
/* deep 原本用 --secondary,但很多站的 secondary 是「更亮的点缀色」
   (欧盟商业报 #ffd200 明黄、埃菲尔 #b08d57 金),白字压上去对比度只有
   1.26:1,几乎看不见。deep 的语义是「主色加深」,这里改成把主色混黑 45%,
   保证任何站都是深底,白字稳定可读。 */
.f-tone-deep  { background: color-mix(in srgb, var(--primary) 55%, #000) !important;
                color: rgba(255,255,255,.82) !important; }
/* brand 用站点主色打底,少数站主色偏亮(#00838f 等),白字会临界。
   统一叠一层 18% 黑,视觉上仍是品牌色,但对比度拉回 4.5:1 以上。 */
.f-tone-brand { background: color-mix(in srgb, var(--primary) 76%, #000) !important; }
.f-tone-paper { background: #f2f1ee !important; color: rgba(0,0,0,.72) !important; }
.f-tone-ink, .f-tone-brand, .f-tone-deep, .f-tone-paper { }
.f-tone-ink .f-h, .f-tone-brand .f-h, .f-tone-deep .f-h { color: #fff !important; }
.f-tone-paper .f-h { color: #1a1a1a !important; }
.f-tone-ink a, .f-tone-brand a, .f-tone-deep a { color: rgba(255,255,255,.75) !important; }
.f-tone-paper a { color: rgba(0,0,0,.7) !important; }
.site-footer a:hover { opacity: 1; color: var(--accent, var(--secondary)); }
.f-tone-ink .f-tags a, .f-tone-brand .f-tags a, .f-tone-deep .f-tags a { background: rgba(255,255,255,.12); }
.f-tone-paper .f-tags a { background: rgba(0,0,0,.07); }
/* boxed 标题、circle 图标是「用 accent 做底 + 文字压在上面」。
   原先无条件给白字,但 9 个站的 accent 是亮黄/金/青(#ffca28 亮度 0.64、
   #ffd54f 0.69),白字压上去几乎看不见 —— 用户反馈"部分栏目看不清"。
   改用 CSS 相对颜色:让浏览器按底色明度自动选黑字或白字,
   任何 accent 都不会翻车。不支持该语法的老浏览器退回白字(下面那条)。 */
.site-footer .f-h-boxed, .site-footer .f-soc-icons_circle a { color: #fff; }
@supports (color: contrast-color(red vs white, black)) {
    .site-footer .f-h-boxed, .site-footer .f-soc-icons_circle a {
        color: contrast-color(var(--accent, var(--secondary)) vs #fff, #111);
    }
}
/* 上面的 contrast-color() 目前浏览器支持还很有限,不能只靠它。
   这里再用 lightness 做一层兜底:accent 亮度高时,给这两处套深色文字。
   --accent-ink 由生成器按 accent 明度算好后写进 :root(见 style_dna.py)。 */
.site-footer .f-h-boxed, .site-footer .f-soc-icons_circle a {
    color: var(--accent-ink, #fff);
    /* 少数 accent 落在"中间亮度"死区(#e53935 亮度 0.198),
       黑字白字都卡在 4.5 附近过不去。按 --accent-ink 的方向再推一把:
       该配白字的就把底压暗,该配黑字的就把底提亮。 */
    background-image: linear-gradient(var(--accent-veil, rgba(0,0,0,.18)),
                                      var(--accent-veil, rgba(0,0,0,.18)));
}
/* icons_boxed 是「透明底 + accent 描边 + 文字」,文字不能用 accent 本身,
   否则亮色 accent 在浅底(paper)上同样糊掉,统一跟随页脚正文色。 */
.site-footer .f-soc-icons_boxed a { color: inherit; }
/* 标签块:paper 浅底时用深字,深底时用浅字,别继承 accent */
.f-tone-paper .f-tags a { color: rgba(0,0,0,.75) !important; }
.f-tone-ink .f-tags a, .f-tone-brand .f-tags a, .f-tone-deep .f-tags a {
    color: rgba(255,255,255,.95) !important; }
/* 标签底色也要够深,否则亮品牌色上"半透明白底 + 白字"两头都糊 */
.f-tone-brand .f-tags a, .f-tone-deep .f-tags a { background: rgba(0,0,0,.28); }
/* 版权条继承页脚色,但 theme.css 会给 .site-footer 塞 color,
   这里显式跟随 tone,避免深底上出现更深的灰字 */
.f-tone-paper .footer-bottom { color: rgba(0,0,0,.55) !important; }
.f-tone-ink .footer-bottom, .f-tone-brand .footer-bottom,
.f-tone-deep .footer-bottom { color: rgba(255,255,255,.78) !important; }

/* ---- 分隔线(4 种) ---- */
.f-dv-none .f-band, .f-dv-none .f-inline { border-bottom-style: none; border-top-style: none; }
.f-dv-dashed .f-band, .f-dv-dashed .f-inline, .f-dv-dashed .f-rail { border-style: dashed; }
.f-dv-double .f-band, .f-dv-double .f-inline, .f-dv-double .f-rail { border-style: double; border-width: 3px; }

.footer-bottom {
    margin-top: 36px; padding: 18px 0;
    border-top: 1px solid var(--accent, var(--secondary));
    text-align: center; font-size: 13px;
}

@media (max-width: 900px) {
    .f-wrap, .f-band, .f-split, .f-split .f-half-r,
    .f-rail-l .f-main, .f-rail-r .f-main { grid-template-columns: 1fr !important; }
    .f-inline { flex-direction: column; gap: 26px; }
    .f-rail-l .f-rail, .f-rail-r .f-rail { border: 0; padding: 0; }
    .f-split .f-half-l, .f-split .f-half-r { padding: 0; }
}

/* --- Page Header (Category) --- */
.page-header {
    background: var(--primary); color: #fff; padding: 32px 0; margin-bottom: 32px;
}
.page-header h1 { font-size: 28px; font-weight: 700; color: #fff; }
.page-header .breadcrumb { margin-top: 8px; font-size: 14px; opacity: 0.8; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.8); }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: block; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-list-card { flex-direction: column; }
    .article-list-card .list-image { width: 100%; height: 200px; min-width: auto; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-card { min-height: 280px; }
    .hero-card h2 { font-size: 22px; }
    .hero-card .hero-content { padding: 24px; }
    .article-detail h1 { font-size: 24px; }
    .article-detail .article-content { font-size: 16px; }
    .site-logo .logo-text { font-size: 20px; }
    .header-search input { width: 160px; }
    .site-header .container { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-card { min-height: 220px; }
    .hero-card h2 { font-size: 18px; }
    .article-detail { margin: 16px auto; }
    .article-detail h1 { font-size: 22px; }
    .header-search { display: none; }
}
