/* ============ 新闻页专属样式（自包含，不依赖根目录 style.css） ============ */
:root {
  --navy: #0f2744;
  --blue: #1e4d8c;
  --blue-light: #3b82c4;
  --orange: #ed8936;
  --orange-dark: #dd6b20;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1a2b3c;
  --muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(15, 39, 68, 0.08);
  --shadow-hover: 0 10px 35px rgba(15, 39, 68, 0.15);
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(15, 39, 68, 0.06);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
}
.logo-img { height: 38px; display: block; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: var(--orange); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.nav-cta .btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}
.nav-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(221, 107, 32, 0.35);
}

/* ---------- 子页面 Hero ---------- */
.sub-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 50%, var(--blue-light) 100%);
  padding: 130px 24px 72px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 45%, rgba(237, 137, 54, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 55% 85%, rgba(237, 137, 54, 0.10) 0%, transparent 42%);
}
.sub-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  padding: 7px 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.1);
}
.sub-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: 1px;
}
.sub-hero p {
  opacity: 0.88;
  font-size: 1.1rem;
  margin: 0;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 26px 24px 0;
  font-size: 14px;
  color: var(--muted);
}
.breadcrumb a { color: var(--blue); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 8px; }

/* ---------- 文章列表 ---------- */
.news-list {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.news-card {
  display: flex;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.news-card-image {
  flex: 0 0 210px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.news-card-image svg { width: 60px; height: 60px; }
.news-card-body {
  padding: 30px 34px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-tag {
  align-self: flex-start;
  background: rgba(237, 137, 54, 0.12);
  color: var(--orange-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.news-card-body h2 {
  font-size: 1.32rem;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.45;
  transition: color 0.2s;
}
.news-card:hover .news-card-body h2 { color: var(--orange-dark); }
.news-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 18px;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto;
}
.read-more { color: var(--orange); font-weight: 600; }

/* ---------- 文章详情 ---------- */
.article-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.article-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}
.article-meta .cat {
  background: rgba(237, 137, 54, 0.12);
  color: var(--orange-dark);
  padding: 5px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
}
.article-cover {
  height: 300px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 32px;
}
.article-cover svg { width: 90px; height: 90px; }
.article-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow);
}
.article-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 32px 0 16px;
  line-height: 1.4;
}
.article-content h3 {
  font-size: 1.2rem;
  color: var(--blue);
  margin: 26px 0 12px;
}
.article-content p {
  color: #334155;
  line-height: 1.95;
  margin: 0 0 18px;
  font-size: 1.02rem;
}
.article-content blockquote {
  border-left: 4px solid var(--orange);
  background: rgba(237, 137, 54, 0.06);
  padding: 18px 22px;
  margin: 22px 0;
  border-radius: 0 10px 10px 0;
  color: var(--text);
  font-style: italic;
  line-height: 1.8;
}
.article-content ul,
.article-content ol {
  padding-left: 26px;
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.9;
}
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--navy); }
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 22px 0;
}
.article-footer {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-footer a {
  color: var(--blue);
  font-weight: 600;
  transition: color 0.2s;
}
.article-footer a:hover { color: var(--orange); }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 54px 24px 30px;
  margin-top: 40px;
}
.footer .container { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
}
.footer-brand p {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 420px;
}
.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 16px;
  margin: 0 0 18px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a,
.footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--orange); }
.footer-contact p { font-size: 14px; margin: 9px 0; }
.footer-bottom {
  text-align: center;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #64748b;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .sub-hero { padding: 100px 20px 56px; }
  .news-card { flex-direction: column; }
  .news-card-image { flex: none; height: 150px; }
  .news-card-body { padding: 24px; }
  .article-content { padding: 26px 22px; }
  .article-cover { height: 200px; }
  .article-cover svg { width: 64px; height: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .article-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}
