/* ============================================================
   门户公开层样式（B方案）
   assets/css/portal.css
   独立外壳：不与工作台 sidebar 布局耦合；品牌色沿用 portal_theme
   经典蓝三元组（primary #1d4f8c / accent #397ef0 / dark #2b3674）。
   响应式：≥960px 双栏 hero，≥720px 卡片网格，以下单列。
   ============================================================ */

:root {
    --brand-primary: #16498c;
    --brand-accent: #2f6fe0;
    --brand-dark: #0e2f5e;
    --brand-ink: #0b1f3d;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --bg-page: #eef2f8;
    --bg-card: #ffffff;
    --border-soft: #dfe6f0;
    --radius-card: 16px;
    --shadow-card: 0 2px 8px rgba(16, 40, 80, 0.06), 0 1px 3px rgba(16, 40, 80, 0.05);
    --shadow-card-hover: 0 16px 34px rgba(16, 40, 80, 0.16);
    --header-height: 66px;
    --serif: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.portal-body {
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

/* ---------- 站点头部 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

/* 顶部品牌渐变线：强化「学校主色」识别（参考高校教发中心官网的头部处理） */
.site-header::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary) 0%, var(--brand-accent) 45%, #c9a227 100%);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark svg { width: 22px; height: 22px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; color: var(--brand-dark); }
.brand-text small { font-size: 12px; color: var(--text-secondary); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    color: var(--text-main);
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link:hover { background: #eef2f7; color: var(--brand-primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-search {
    display: flex;
    align-items: center;
    background: #eef2f7;
    border-radius: 999px;
    padding: 4px 6px 4px 14px;
    transition: box-shadow 0.15s ease;
}

.site-search:focus-within {
    box-shadow: 0 0 0 2px rgba(57, 126, 240, 0.35);
    background: #fff;
}

.site-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 130px;
    color: var(--text-main);
}

.site-search button {
    border: none;
    background: var(--brand-primary);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-search button svg { width: 15px; height: 15px; }

/* 移动端菜单内搜索（桌面隐藏，窄屏展开菜单时显示） */
.nav-search { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    font-size: 14px;
    padding: 8px 16px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: filter 0.15s ease;
    white-space: nowrap;
}

.btn:hover { filter: brightness(1.08); }

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

/* 次级按钮（深色底上的描边按钮见 .about-actions .btn-outline） */
.btn-outline {
    background: #fff;
    border-color: var(--border-soft);
    color: var(--brand-primary);
    font-weight: 500;
}
.btn-outline:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    padding: 0 9px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
}

/* ---------- 主体 ---------- */

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    min-height: calc(100vh - var(--header-height) - 180px);
}

/* ---------- 首页 hero ---------- */

.hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    margin-bottom: 36px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background: var(--brand-dark);
    box-shadow: var(--shadow-card);
}

.hero-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    color: rgba(255, 255, 255, 0.5);
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 8px;
}

.hero-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.25) 55%, rgba(15, 23, 42, 0) 100%);
}

.hero-body {
    position: relative;
    z-index: 1;
    padding: 24px;
    color: #fff;
}

.hero-body h1 {
    margin: 8px 0;
    font-family: var(--serif);
    font-size: 28px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-body p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    gap: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side-item {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border-left: 3px solid var(--brand-accent);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    flex: 1;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.hero-side-item:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.hero-side-cat {
    font-size: 12px;
    color: var(--brand-accent);
}

.hero-side-item strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side-date { font-size: 12px; color: var(--text-secondary); }

/* 头条聚焦标 + 校印（装饰，叠在 hero 上） */
.hero-kicker { display: inline-block; font-size: 13px; letter-spacing: 3px; color: var(--brand-accent); border: 1px solid rgba(47,111,224,.5); padding: 3px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-seal { position: absolute; top: 22px; right: 26px; z-index: 2; width: 84px; height: 84px; opacity: .92; pointer-events: none; }

/* 栏目快捷入口条 */
.cat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 40px; }
.cat-card { background: var(--bg-card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 20px 18px; display: flex; align-items: center; gap: 14px; transition: box-shadow .15s, transform .15s, border-color .15s; border: 1px solid transparent; }
.cat-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); border-color: rgba(47,111,224,.4); }
.cat-ico { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(22,73,140,.12), rgba(14,47,94,.16)); color: var(--brand-primary); }
.cat-ico svg { width: 24px; height: 24px; }
.cat-info { min-width: 0; }
.cat-info strong { display: block; font-size: 16px; color: var(--brand-dark); }
.cat-info small { font-size: 12px; color: var(--text-secondary); }

/* 蓝色 CTA（与预览一致，门户内复用） */
.btn-gold { background: linear-gradient(135deg, #2f6fe0, #16498c); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(22,73,140,.35); }

/* ---------- 中心概况 + 教师服务（2026-10-25 美化） ---------- */

.about {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 22px;
    margin: 0 0 40px;
    align-items: stretch;
}

.about-main {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(47, 111, 224, 0.22), transparent 55%),
        linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-ink) 100%);
    border-radius: var(--radius-card);
    padding: 34px 34px 30px;
    color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
}

/* 右上角淡淡的水印式校训位，避免大面积纯色单调 */
.about-main::after {
    content: "";
    position: absolute;
    right: -40px; top: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 26px solid rgba(255, 255, 255, 0.045);
    pointer-events: none;
}

.about-kicker {
    display: inline-block;
    font-size: 12px; letter-spacing: 2px;
    color: #cfe0fb;
    background: rgba(47, 111, 224, 0.22);
    border: 1px solid rgba(47, 111, 224, 0.35);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 14px;
}

.about-title {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: 27px;
    line-height: 1.35;
    color: #fff;
    letter-spacing: 1px;
}
.about-title em {
    font-style: normal;
    display: block;
    font-size: 22px;
    color: #cfe0fb;
    margin-top: 2px;
}

.about-desc { margin: 0 0 22px; font-size: 14px; line-height: 1.9; }
.about-desc strong { color: #fff; font-weight: 600; }

.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-actions .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.about-actions .btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* 右侧：教师服务快捷入口 2×2 */
.about-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.quick-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    border-color: rgba(47, 111, 224, 0.45);
}

.quick-ico {
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(22, 73, 140, 0.1), rgba(14, 47, 94, 0.14));
    color: var(--brand-primary);
    transition: background .15s, color .15s;
}
.quick-ico svg { width: 22px; height: 22px; }
.quick-card:hover .quick-ico {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: #fff;
}

.quick-text { min-width: 0; }
.quick-text strong { display: block; font-size: 15px; color: var(--brand-dark); }
.quick-text small { font-size: 11.5px; color: var(--text-secondary); }

/* ---------- 栏目区块 ---------- */

.section { margin-bottom: 36px; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--border-soft);
    padding-bottom: 8px;
}

.section-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 22px;
    color: var(--brand-dark);
    position: relative;
    padding-left: 16px;
    letter-spacing: 1px;
}

.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(var(--brand-primary), var(--brand-accent));
}

/* 栏目英文小标（贴近高校教发中心官网的栏目呈现） */
.section-head .sec-en {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-left: 8px;
    font-weight: 500;
}

.section-more { font-size: 13px; color: var(--text-secondary); }
.section-more:hover { color: var(--brand-accent); }

/* ---------- 门户公示卡片（双师型认定等，2026-10-25 补齐） ----------
   历史问题：该区块原先使用 6 个从未定义的 st-* 占位类（st-5a3fe1f9 等），
   既没有网格也没有行布局，渲染出来是一列朴素白块。此处改用语义类并补齐样式。 */

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}

.pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.pub-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: rgba(47, 111, 224, .32);
}

.pub-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.pub-name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--brand-dark);
    word-break: break-all;
}

.pub-badge {
    flex-shrink: 0;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    background: #eef3ff;
    color: #2456c8;
}

.pub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 12.3px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.pub-meta span { position: relative; }
.pub-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: #c6cfdb;
}

.pub-count { font-size: 12.5px; color: var(--text-secondary); }

@media (max-width: 720px) {
    .pub-grid { grid-template-columns: 1fr; }
}

/* ---------- 紧凑公告列表（首个栏目用，参考高校教发中心官网的动态/公告栏） ----------
   注意：类名用 .brief-* 而非 .news-*，后者已被「新闻列表页」的卡片式列表占用
   （.news-list/.news-item 见下方「列表页」段），复用会互相覆盖。 */

.brief-list {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.brief-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid #eef2f8;
    transition: background .15s;
}
.brief-item:last-child { border-bottom: none; }
.brief-item:hover { background: #f7f9fd; }

/* 左侧序号圆点：比纯列表更有「校园官网」的节奏感 */
.brief-no {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    color: var(--brand-primary);
    background: rgba(22, 73, 140, 0.08);
    font-variant-numeric: tabular-nums;
}
.brief-item:nth-child(-n + 3) .brief-no {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
}

/* 列表项封面缩略图（2026-10-28）：有 cover_image 时展示，无则不渲染（不出现空图框）。
   与 hero/item-cover 一致靠 data-css 设置背景图（门户层由 portal.js 轻量 applyDataCss 处理）。 */
.brief-cover {
    flex-shrink: 0;
    width: 78px; height: 58px;
    border-radius: 8px;
    background-color: #eef2f8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.brief-body { flex: 1; min-width: 0; }
.brief-title {
    display: block;
    font-size: 14.5px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .15s;
}
.brief-item:hover .brief-title { color: var(--brand-accent); }

/* 摘要行（2026-10-26）：列表统一承载各栏目后补上摘要，与卡片模板信息量对齐。
   单行省略，避免长摘要把列表撑高。 */
.brief-summary {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brief-meta {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
    .brief-item { padding: 12px 14px; gap: 10px; }
    .brief-title { font-size: 13.5px; }
    .brief-meta { font-size: 12px; }
    .brief-cover { width: 64px; height: 48px; }
}

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

.news-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.news-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.card-cover {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: #e8edf3;
}

/* 无封面占位：品牌渐变 + 栏目名，保证卡片等高、不留灰块 */
.card-cover-empty,
.item-cover-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-primary));
    position: relative;
    overflow: hidden;
}
.card-cover-empty::after,
.item-cover-empty::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}
.card-cover-empty span,
.item-cover-empty span {
    position: relative;
    color: rgba(255, 255, 255, 0.72);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 4px;
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-body h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
}

.badge {
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 500;
}

.badge-top { background: #fef3c7; color: #b45309; }

/* ---------- 通用页首（列表页 / 详情页复用，与首页 .about 同源） ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 30px 32px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.86);
    background:
        radial-gradient(120% 150% at 100% 0%, rgba(47, 111, 224, 0.35), transparent 55%),
        linear-gradient(135deg, #123a6e 0%, #0b1f3d 100%);
    box-shadow: 0 8px 24px rgba(15, 39, 72, 0.18);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -46px; top: -56px;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 26px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}
.page-hero-kicker {
    display: inline-block;
    font-size: 12px; letter-spacing: 2px;
    color: #cfe0fb;
    background: rgba(47, 111, 224, 0.22);
    border: 1px solid rgba(47, 111, 224, 0.4);
    border-radius: 999px;
    padding: 4px 12px;
    margin-bottom: 12px;
}
.page-hero h1 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 26px;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1.35;
}
.page-hero p { margin: 0; font-size: 13.5px; line-height: 1.8; max-width: 700px; }

/* ---------- 列表页 ---------- */

.list-page { max-width: 980px; margin: 0 auto; }

.list-head { margin-bottom: 20px; }

.list-head h1 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: 26px;
    color: var(--brand-dark);
}

.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-tab {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    font-size: 13.5px;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.cat-tab:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

.cat-tab.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(22, 73, 140, .22);
}

.news-list { display: flex; flex-direction: column; gap: 14px; }

.news-item {
    display: flex;
    gap: 18px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    padding: 16px;
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.news-item:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: rgba(47, 111, 224, .35);
}

.item-cover {
    width: 180px;
    min-height: 110px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #e8edf3;
    flex-shrink: 0;
}

.item-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.item-body h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.item-cat { color: var(--brand-accent); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.page-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    font-size: 14px;
    transition: all 0.15s ease;
}

.page-btn:hover { border-color: var(--brand-accent); color: var(--brand-accent); }

.page-info { font-size: 13px; color: var(--text-secondary); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ---------- 详情页 ---------- */

.detail-page {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(16, 40, 80, .08);
    padding: 30px 34px 34px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.8px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--brand-accent); }

.crumb-sep { color: #c0c6cf; }

.crumb-current { color: var(--text-main); }

.detail-head h1 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: 29px;
    line-height: 1.42;
    color: var(--brand-dark);
    letter-spacing: .5px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 12.8px;
    color: var(--text-secondary);
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.detail-cover {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 12px;
    margin: 22px 0 6px;
    background-size: cover;
    background-position: center;
    background-color: #e8edf3;
}

.detail-content {
    font-size: 15.5px;
    line-height: 1.95;
    color: #33415c;
    overflow-wrap: break-word;
    padding: 6px 0 4px;
}

.detail-content h1, .detail-content h2, .detail-content h3,
.detail-content h4, .detail-content h5, .detail-content h6 {
    color: var(--brand-dark);
    line-height: 1.45;
    margin: 1.4em 0 0.65em;
    padding-left: 12px;
    border-left: 4px solid var(--brand-accent);
}

.detail-content h1 { font-size: 21px; }
.detail-content h2 { font-size: 19px; }
.detail-content h3 { font-size: 17px; }

.detail-content p { margin: 0.9em 0; }

.detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.detail-content a { color: var(--brand-accent); text-decoration: underline; }

.detail-content ul, .detail-content ol { padding-left: 1.6em; margin: 0.8em 0; }

.detail-content blockquote {
    margin: 1em 0;
    padding: 10px 16px;
    border-left: 4px solid var(--brand-accent);
    background: #f3f6fb;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}

.detail-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.detail-content code { font-family: Consolas, Monaco, "Courier New", monospace; }

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
}

.detail-content th, .detail-content td {
    border: 1px solid var(--border-soft);
    padding: 8px 12px;
    text-align: left;
}

.detail-content th { background: #f3f6fb; font-weight: 600; }

.detail-attachments {
    margin-top: 24px;
    background: #f7fafd;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 18px 22px;
}

.detail-attachments h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--brand-dark);
}

.detail-attachments ul { list-style: none; margin: 0; padding: 0; }

.detail-attachments li { border-top: 1px dashed var(--border-soft); }

.detail-attachments li:first-child { border-top: none; }

.detail-attachments a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 4px;
    font-size: 14px;
    transition: color 0.15s ease;
}

.detail-attachments a:hover { color: var(--brand-accent); }

.att-size { font-size: 12px; color: var(--text-secondary); flex-shrink: 0; }

.detail-foot { margin-top: 26px; text-align: center; }

/* 详情页 / 列表页移动端 */
@media (max-width: 720px) {
    .detail-page { padding: 20px 16px 24px; border-radius: 14px; }
    .detail-head h1 { font-size: 22px; }
    .detail-cover { aspect-ratio: 16 / 9; margin: 16px 0 4px; }
    .detail-content { font-size: 15px; line-height: 1.85; }
    .page-hero { padding: 22px 20px; border-radius: 14px; }
    .page-hero h1 { font-size: 21px; }
    .list-head h1 { font-size: 22px; }
    .news-item { gap: 12px; padding: 13px; }
    .item-cover { width: 118px; min-height: 82px; }
    .item-body h2 { font-size: 15px; }
}

/* ---------- 页脚 ---------- */

.site-footer {
    margin-top: 30px;
    border-top: 4px solid var(--brand-primary);
    background: var(--brand-ink);
    color: rgba(255, 255, 255, 0.7);
}

.footer-top { background: linear-gradient(180deg, rgba(47, 111, 224, 0.08), transparent 60%); }

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 20px 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
    gap: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col p { margin: 4px 0; }

.footer-brand strong { font-family: var(--serif); font-size: 18px; color: #fff; letter-spacing: 1px; }
.footer-brand .foot-sub { color: var(--brand-accent); margin-top: 8px; font-size: 14px; letter-spacing: 2px; }
.footer-brand .foot-desc { margin-top: 10px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); }

.footer-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-bottom: 10px;
    background: rgba(47, 111, 224, 0.18);
    border: 1px solid rgba(47, 111, 224, 0.35);
    border-radius: 10px;
}

.footer-contact-title { margin-top: 14px !important; }

.footer-col h4 { margin: 0 0 10px; font-size: 14px; color: #fff; font-weight: 600; }

.site-footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-footer a:hover { color: var(--brand-accent); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 20px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px;
    font-size: 12px; color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
    .site-main { padding: 0 16px 48px; }
    .cat-strip { grid-template-columns: repeat(2, 1fr); }
    .hero { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; }
    .about-main { padding: 28px 24px 26px; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 720px) {
    .header-inner { gap: 10px; }
    .brand-mark { width: 36px; height: 36px; }
    .brand-text strong { font-size: 14px; }
    .brand-text small { font-size: 11px; }
    .about-title { font-size: 23px; }
    .about-title em { font-size: 19px; }
    .about-quick { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 16px; }
    .site-search { display: none; }
    .header-actions { gap: 8px; }
    .btn-primary { padding: 7px 13px; font-size: 13px; }
    .nav-toggle { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-soft);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 14px;
        box-shadow: var(--shadow-card);
    }
    .site-nav.open { display: flex; }
    .site-nav.open .nav-search { display: flex; align-items: center; background: #eef2f8; border-radius: 999px; padding: 6px 6px 6px 14px; margin-bottom: 10px; }
    .nav-search input { border: none; outline: none; background: transparent; font-size: 14px; flex: 1; min-width: 0; color: var(--text-main); }
    .nav-search button { border: none; background: var(--brand-primary); color: #fff; width: 32px; height: 32px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .nav-search button svg { width: 16px; height: 16px; }
    .site-main { padding: 0 14px 44px; }
    .cat-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
    .cat-card { padding: 14px 14px; gap: 11px; }
    .cat-ico { width: 40px; height: 40px; }
    .card-grid { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .item-cover { width: 100%; min-height: 170px; }
    .hero-main { min-height: 240px; }
    .hero-seal { display: none; }
    .detail-cover { height: 180px; }
    .detail-content { padding: 18px; }
}

/* 摘要行在小屏下再收一号 */
@media (max-width: 720px) {
    .brief-summary { font-size: 12px; }
}
