/* 知了保 · 专业信息站（收敛装饰，偏资讯排版） */
:root {
  --navy: #0B3D5C;
  --navy-deep: #062436;
  --teal: #2F6F8F;
  --gold: #B8923F;
  --ink: #1A2B36;
  --muted: #5A6F7C;
  --line: #D5DEE5;
  --line-soft: #E8EEF2;
  --paper: #F2F5F8;
  --white: #FFFFFF;
  --max: 1080px;
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--navy-deep);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 4px 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 6px;
  background: #fff;
}
.brand-logo {
  height: 34px;
  width: auto;
  max-width: min(190px, 48vw);
  display: block;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.78);
}
.nav-links > li > a,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-drop-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-links > li > a.is-active {
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
}
.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
  margin-top: 1px;
}
.nav-dropdown {
  position: relative;
}
.nav-drop-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(6, 36, 54, 0.12);
  z-index: 60;
}
.nav-dropdown.is-open .nav-drop-menu,
.nav-dropdown:hover .nav-drop-menu {
  display: block;
}
.nav-dropdown.is-open .nav-drop-btn,
.nav-dropdown:hover .nav-drop-btn {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.nav-drop-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--ink);
}
.nav-drop-menu a:hover {
  background: #F4F7FA;
  color: var(--navy);
}
.nav-drop-menu a.is-active {
  color: var(--navy);
  font-weight: 600;
  background: #EEF3F7;
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.16);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  z-index: 2;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
}

/* Hero — flat professional */
.hero {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  padding: 52px 0 56px;
  border-bottom: 2px solid var(--gold);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
}
.hero-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.hero-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 32em;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.btn-primary {
  margin-top: 8px;
  background: var(--gold);
  color: #1F1808;
}
.btn-primary:hover { background: #C9A24A; }
.btn-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* News feed — denser news list */
.news { padding: 48px 0 40px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--navy);
}
.section-head h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}
.section-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.section-count {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  padding-bottom: 2px;
  font-variant-numeric: tabular-nums;
}

.article-feed {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
}
.article-feed > li + li .article-row {
  border-top: 1px solid var(--line-soft);
}
.article-row {
  display: block;
  padding: 16px 18px 15px;
  background: var(--white);
  transition: background 0.12s;
}
.article-row:hover { background: #F7FAFC; }
.article-row:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.article-rail { display: none; }
.article-body { min-width: 0; padding: 0; }
.article-row.featured {
  background: #FBF8F1;
  border-left: 3px solid var(--gold);
  padding-left: 15px;
}
.article-row.featured:hover { background: #F7F3E8; }

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.article-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.article-meta-row time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.article-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 650;
}
.article-row.featured h3 {
  font-size: 17px;
  font-weight: 700;
}
.article-row:hover h3 { color: var(--teal); }
.article-excerpt {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.article-stats {
  font-size: 12px;
  color: var(--muted);
}
.article-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
}
.article-more::after { content: " ›"; }

/* Contact */
.contact { padding: 0 0 48px; }
.contact-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 30px;
}
.contact h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
  font-weight: 700;
}
.contact p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.contact a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-soft);
}
.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong {
  color: var(--muted);
  font-weight: 600;
  min-width: 2.8em;
}
.contact-list span { text-align: right; word-break: break-all; }
.contact-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Inner pages */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 36px 0 32px;
  border-bottom: 2px solid var(--gold);
}
.page-hero h1 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}
.page-hero p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  max-width: 40em;
}
.page-body {
  padding: 36px 0 48px;
}
.prose {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px 30px;
}
.prose h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--navy);
}
.prose h2 + p,
.prose p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}
.prose p:last-child { margin-bottom: 0; }
.prose ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.75;
}
.prose .note {
  margin-top: 18px;
  padding: 12px 14px;
  background: #F7FAFC;
  border-left: 3px solid var(--teal);
  font-size: 13px;
  color: var(--muted);
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 0;
}
.partner-card {
  border: 1px solid var(--line);
  padding: 16px;
  background: #FAFBFC;
}
.partner-card strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 4px;
}
.partner-card span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 32px 0 36px;
  font-size: 12px;
}
.footer-brand-row { margin-bottom: 14px; }
.footer-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 70vw);
  display: block;
  padding: 6px 10px;
  background: #fff;
  border-radius: 4px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 14px;
  font-size: 13px;
}
.footer-nav a { color: rgba(255,255,255,0.72); }
.footer-nav a:hover { color: #fff; }
.disclaimer {
  margin: 0;
  max-width: 62em;
  line-height: 1.7;
  color: rgba(255,255,255,0.48);
  font-size: 12px;
}
.footer-meta {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.36);
}

.article-feed-empty {
  list-style: none;
  padding: 32px 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: none;
}

@media (max-width: 900px) {
  .contact-row { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .partner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav { min-height: 54px; }
  .brand { padding: 4px 8px; }
  .brand-logo { height: 30px; max-width: min(160px, 52vw); }
  .nav-burger { display: flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 0 12px;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-toggle:checked ~ .nav-panel { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links > li > a,
  .nav-drop-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 0;
  }
  /* Mobile: accordion only when .is-open; disable hover open */
  .nav-dropdown:hover .nav-drop-menu { display: none; }
  .nav-dropdown.is-open .nav-drop-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(0,0,0,0.2);
    min-width: 0;
    padding: 0 0 6px;
  }
  .nav-drop-menu a {
    color: rgba(255,255,255,0.85);
    padding: 10px 16px 10px 28px;
  }
  .nav-drop-menu a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
  }
  .nav-drop-menu a.is-active {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }

  .hero { padding: 40px 0 44px; }
  .hero h1 { font-size: 26px; }
  .news { padding: 36px 0 28px; }
  .article-row { padding: 14px 14px 13px; }
  .article-row.featured { padding-left: 11px; }
  .article-row h3 { font-size: 15px; }
  .article-row.featured h3 { font-size: 16px; }
  .article-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .contact { padding: 0 0 36px; }
  .page-body { padding: 28px 0 36px; }
  .prose { padding: 20px 18px; }
  .site-footer { padding: 28px 0 32px; }
}


@media (max-width: 420px) {
  .wrap { width: calc(100% - 24px); }
  .hero h1 { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .article-row { padding: 13px 12px 12px; }
  .article-row.featured { padding-left: 10px; }
  .article-row h3 { font-size: 15px; }
  .btn { min-height: 44px; padding: 11px 16px; }
  .page-hero h1 { font-size: 22px; }
  .prose { padding: 16px 14px; font-size: 14px; }
  .footer-nav { gap: 10px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav-links a, .nav-drop-btn, .article-row { transition: none !important; }
}
