/* 列表页 / 文章页样式，沿用主站的设计变量与组件，避免两套视觉 */
:root {
  --ink: #0f1a2b;
  --ink-2: #33415a;
  --muted: #64718a;
  --muted-2: #8b96a9;
  --line: #e4e9f1;
  --line-2: #eef1f6;
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --brand: #0d3b66;
  --brand-2: #1565a8;
  --brand-soft: #eaf2fa;
  --wrap: 1160px;
  --r: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 26, 43, 0.05), 0 8px 24px -14px rgba(15, 26, 43, 0.16);
  --shadow-md: 0 2px 4px rgba(15, 26, 43, 0.04), 0 18px 44px -22px rgba(15, 26, 43, 0.24);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #cfe4f7; color: var(--ink); }

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

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); }

a { color: var(--brand-2); }

/* ================= 顶栏 ================= */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(15,26,43,0.02), 0 8px 24px -20px rgba(15,26,43,0.4); }

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px;
  display: block;
  flex-shrink: 0;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.brand-desc { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-links a.active { color: var(--brand); font-weight: 600; }

.nav-links a.lang {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 7px;
  margin-left: 8px;
}
.nav-links a.lang:hover { color: var(--brand); border-color: #cfdcea; background: #fff; }

.nav .btn { padding: 10px 20px; font-size: 14.5px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}
.menu-toggle span { display: block; width: 16px; height: 1.6px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.6px;
  background: currentColor; transition: transform 0.26s ease;
}
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* ================= 组件 ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.4;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.24s ease, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: #cfd8e5; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: #0a3055; border-color: #0a3055; box-shadow: 0 10px 24px -12px rgba(13, 59, 102, 0.7); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-2); border-radius: 2px; }

/* ================= 页头 ================= */
.page-head { padding: 132px 0 44px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.028em; }
.page-head p { color: var(--muted); font-size: 16px; max-width: 620px; margin-top: 14px; line-height: 1.8; }

.list-body { padding-bottom: 104px; }

/* ================= 列表卡片 ================= */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd8e5; }
.news-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-alt); }
.news-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted-2); }
.news-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-2);
  background: var(--brand-soft);
  padding: 3px 9px;
  border-radius: 20px;
}
.news-title { font-size: 17px; line-height: 1.5; letter-spacing: -0.01em; }
.news-sum { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.news-more { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--brand-2); }
.news-empty { padding: 8px 0 0; color: var(--muted); font-size: 15px; }
.news-empty[hidden] { display: none; }

/* ================= 文章页 ================= */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 124px 28px 104px; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 30px;
}
.article-back:hover { color: var(--brand); }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-2); margin-bottom: 16px; }
.article-title { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.3; letter-spacing: -0.026em; }
.article-lead { margin-top: 18px; font-size: 17px; color: var(--ink-2); line-height: 1.85; }
.article-cover { margin: 32px 0 0; }
.article-cover img { width: 100%; border-radius: 12px; display: block; }
.article-prose { margin-top: 40px; font-size: 16.5px; line-height: 1.9; color: var(--ink-2); }
.article-prose p { margin: 0 0 22px; }
.article-prose h2 { font-size: 22px; margin: 40px 0 14px; }
.article-prose h3 { font-size: 18px; margin: 30px 0 12px; }
.article-prose ul { margin: 0 0 22px; padding-left: 22px; }
.article-prose li { margin-bottom: 8px; }
.article-prose figure { margin: 28px 0; }
.article-prose img { width: 100%; border-radius: 10px; display: block; }
.article-prose figcaption { font-size: 13px; color: var(--muted-2); margin-top: 8px; text-align: center; }
.article-fallback { padding: 30px 0; color: var(--muted); }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.article-nav[hidden] { display: none; }
.an-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.24s, box-shadow 0.24s;
}
.an-item:hover { border-color: #cfd8e5; box-shadow: var(--shadow-sm); }
.an-item span { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.an-item b { font-size: 15px; line-height: 1.5; font-weight: 600; }

.article-cta {
  margin-top: 48px;
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.article-cta h3 { font-size: 17px; margin-bottom: 8px; }
.article-cta p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }

/* ================= 页脚 ================= */
footer { background: #0a2a48; color: rgba(255, 255, 255, 0.6); padding: 26px 0; font-size: 13px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-links { display: flex; gap: 20px; }

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

@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .menu-toggle { display: flex; }
  header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 72px; left: 14px; right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
  }
  header.menu-open .nav-links a { padding: 12px 14px; font-size: 15px; }
  header.menu-open .nav-links a.lang { margin: 6px 0 0; text-align: center; }
  header.menu-open .menu-toggle span { background: transparent; }
  header.menu-open .menu-toggle span::before { transform: translateY(5px) rotate(45deg); }
  header.menu-open .menu-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

  .news-grid { grid-template-columns: 1fr; }
  .page-head { padding: 108px 0 34px; }
  .list-body { padding-bottom: 72px; }
  .article-wrap { padding: 104px 24px 80px; }
  .article-nav { grid-template-columns: 1fr; }
  .foot { flex-direction: column; align-items: flex-start; }
  .article-prose { font-size: 16px; }
}
