/* 民革门户 v1 —— 庄重政务风 */
:root {
  --navy: #1a3a6b;
  --navy-deep: #12294d;
  --gold: #c9a45c;
  --gold-light: #e6cf9f;
  --ink: #2b2b2b;
  --muted: #6b7280;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e2e5ea;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--navy); text-decoration: none; }

/* Header */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 40px; height: 40px; color: var(--gold); flex: none; }
.brand-name { font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: 1px; }
.brand-name em { font-style: normal; font-size: 15px; color: var(--gold-light); }
.site-nav { display: flex; gap: 8px; }
.site-nav a {
  color: #e8ecf3;
  padding: 8px 16px;
  font-size: 16px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav a.active { background: var(--navy); color: var(--gold-light); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #2c4f8f 100%);
  color: #fff;
  text-align: center;
  padding: 96px 20px 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(201,164,92,.18) 0%, transparent 45%),
              radial-gradient(circle at 10% 85%, rgba(201,164,92,.12) 0%, transparent 40%);
}
.hero h1 {
  position: relative;
  font-size: clamp(24px, 4.2vw, 42px);
  letter-spacing: 6px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p {
  position: relative;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--gold-light);
  letter-spacing: 10px;
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: #eef1f6; }
.section-title {
  font-size: 26px;
  color: var(--navy-deep);
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 10px;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}
.section-note { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.about-grid p { margin-bottom: 14px; text-align: justify; text-indent: 2em; }
.more-link { text-align: center; margin-top: 24px; }
.more-link a { color: var(--navy); font-size: 15px; }
.more-link a:hover { color: var(--gold); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 6px;
  padding: 24px 22px;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 22px rgba(18,41,77,.12); transform: translateY(-3px); }
.card h3 { font-size: 18px; color: var(--navy-deep); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card-live { border-top-color: var(--gold); }
.card-todo { opacity: .82; }
.card-article p { text-indent: 0; }
.badge {
  display: inline-block;
  margin-top: 14px;
  font-size: 12.5px;
  padding: 3px 12px;
  border-radius: 999px;
}
.badge-live { background: rgba(201,164,92,.15); color: #9a7731; border: 1px solid var(--gold); }
.badge-todo { background: #eef1f6; color: var(--muted); border: 1px solid var(--line); }

/* Timeline */
.timeline { max-width: 780px; margin: 32px auto 0; border-left: 3px solid var(--navy); padding-left: 28px; }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy);
}
.tl-year { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.tl-body h3 { font-size: 16.5px; color: var(--navy-deep); margin-bottom: 4px; }
.tl-body p { color: var(--ink); font-size: 14.5px; text-align: justify; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #b9c3d4;
  text-align: center;
  padding: 30px 20px;
  border-top: 3px solid var(--gold);
  font-size: 14px;
  line-height: 2;
}

/* Responsive: tablet <= 900px, mobile <= 600px */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .section { padding: 44px 0; }
  .hero { padding: 70px 20px 64px; }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.15);
    gap: 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .cards { grid-template-columns: 1fr; }
  .brand-name { font-size: 14px; }
  .brand-name em { font-size: 12.5px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-inner { min-height: 62px; }
  .timeline { padding-left: 20px; }
  .tl-item::before { left: -29px; }
}
