@charset "utf-8";
/* ==========================================================================
   泰达平台 Taida Platform — 全站样式表
   设计目标：移动优先、首屏性能优先、百度抓取友好（结构清晰 / 零第三方依赖）
   ========================================================================== */

:root {
  --brand: #2f6bff;
  --brand-dark: #1f4fd8;
  --brand-soft: #eaf0ff;
  --accent: #7c5cff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e5e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-dark: #0b1224;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 40px rgba(15, 23, 42, .09);
  --container: 1180px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.18; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
h4 { font-size: 17px; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { color: var(--ink); font-weight: 600; }

:focus-visible {
  outline: 3px solid rgba(47, 107, 255, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }
.section--dark { background: var(--bg-dark); color: #c8d2e4; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--ink-3); font-size: 17px; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
}
.section--dark .eyebrow { color: #9db4ff; background: rgba(47, 107, 255, .16); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.logo__sub {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .1em;
  line-height: 1;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a {
  display: block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 9px;
}
.site-nav a:hover { color: var(--brand-dark); background: var(--brand-soft); }
.site-nav a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 24px rgba(47, 107, 255, .28);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 107, 255, .34); }
.btn--ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn--ghost:hover { color: var(--brand-dark); border-color: #c9d6f8; background: var(--brand-soft); }
.btn--light { color: var(--ink); background: #fff; }
.btn--light:hover { color: var(--brand-dark); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(900px 420px at 82% -8%, rgba(124, 92, 255, .16), transparent 62%),
    radial-gradient(760px 380px at 8% 6%, rgba(47, 107, 255, .14), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 78%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { max-width: 560px; margin-bottom: 32px; font-size: 17px; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-3);
}
.hero__meta li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.hero__panel {
  position: relative;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}
.panel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f4; }
.panel-bar i:first-child { background: #ff6b6b; }
.panel-bar i:nth-child(2) { background: #ffc94d; }
.panel-bar i:nth-child(3) { background: #35d07f; }
.panel-bar span { margin-left: auto; font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }

.panel-flow { display: grid; gap: 12px; }
.flow-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  background: var(--bg-soft);
  border: 1px solid #eef2f9;
  border-radius: 12px;
}
.flow-step b { font-size: 14px; color: var(--ink); display: block; }
.flow-step small { font-size: 12.5px; color: var(--ink-3); }
.flow-step__idx {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 8px;
}

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats__item { padding: 26px 22px; background: #fff; text-align: center; }
.stats__num {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.02em;
}
.stats__num small { font-size: 15px; font-weight: 600; margin-left: 2px; color: var(--brand); }
.stats__label { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); }

/* ---------- 卡片 ---------- */
.card {
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #d3ddf6; box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-3); }
.card p:last-child { margin-bottom: 0; }

.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 12px;
}
.card__icon svg { width: 22px; height: 22px; }

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.card__more::after { content: "→"; transition: transform .18s ease; }
.card:hover .card__more::after { transform: translateX(4px); }

.card--link { display: flex; flex-direction: column; color: inherit; }
.card--link:hover { color: inherit; }
.card--link > .card__more { margin-top: auto; padding-top: 16px; }

/* 特性列表 */
.feature-list { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-3); }
.feature-list li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand);
  opacity: .7;
}

/* ---------- 分栏内容 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }

.media-card {
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(160deg, #f2f6ff, #fbf8ff);
  border: 1px solid var(--line);
}
.kv-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin: 0;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid #eef2f9;
  border-radius: 10px;
}
.kv-list span { color: var(--ink-3); }
.kv-list b { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* ---------- 流程 / 时间线 ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  position: relative;
  padding: 22px 24px 22px 68px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand);
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

.timeline { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0 0 30px; padding-left: 4px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.timeline time { display: block; font-size: 13px; font-weight: 700; color: var(--brand-dark); letter-spacing: .04em; }
.timeline b { display: block; margin: 2px 0 4px; color: var(--ink); font-size: 16px; }
.timeline p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

/* ---------- 资讯列表 ---------- */
.post-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.post-item {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.post-item:hover { border-color: #d3ddf6; box-shadow: var(--shadow-sm); }
.post-item time {
  flex: none;
  width: 74px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}
.post-item time b { display: block; font-size: 22px; color: var(--ink); line-height: 1.2; }
.post-item h3 { font-size: 18px; margin-bottom: 6px; }
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--brand-dark); }
.post-item p { margin: 0; font-size: 14.5px; color: var(--ink-3); }

.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 999px;
}

/* ---------- 正文页 ---------- */
.page-head {
  padding: 56px 0 44px;
  background: linear-gradient(180deg, #f7f9ff, #fff);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin-bottom: 14px; }
.page-head p { max-width: 760px; margin: 0; font-size: 17px; color: var(--ink-3); }

.breadcrumb { padding: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; margin: 0; }
.breadcrumb li + li::before { content: "/"; color: #cbd5e1; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--brand-dark); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }

.article { max-width: 760px; }
.article h2 { margin: 40px 0 14px; font-size: 26px; }
.article h3 { margin: 28px 0 10px; font-size: 19px; }
.article p, .article li { color: var(--ink-2); }
.article ul, .article ol { padding-left: 1.35em; }
.article blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  font-size: 15.5px;
  color: var(--ink-2);
  background: var(--bg-soft);
  border-left: 3px solid var(--brand);
  border-radius: 0 10px 10px 0;
}
.article blockquote p:last-child { margin-bottom: 0; }
.article figure { margin: 26px 0; }
.article figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-3); text-align: center; }
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 22px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.article__foot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

.sidebar { position: sticky; top: 96px; display: grid; gap: 20px; }
.sidebar__box { padding: 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.sidebar__box h2, .sidebar__box h3 { font-size: 16px; margin-bottom: 14px; }
.sidebar__list { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.sidebar__list li { margin-bottom: 10px; }
.sidebar__list a { color: var(--ink-2); }
.sidebar__list a:hover { color: var(--brand-dark); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
caption { padding: 12px 16px; font-size: 13.5px; color: var(--ink-3); text-align: left; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--bg-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.faq summary {
  position: relative;
  padding-right: 28px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -.1em;
  font-size: 20px;
  font-weight: 400;
  color: var(--brand);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; font-size: 15px; color: var(--ink-3); }

/* ---------- CTA ---------- */
.cta-band {
  padding: 72px 0;
  color: #dbe4f7;
  background:
    radial-gradient(700px 320px at 78% 0%, rgba(124, 92, 255, .35), transparent 62%),
    radial-gradient(620px 300px at 12% 100%, rgba(47, 107, 255, .38), transparent 60%),
    var(--bg-dark);
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 640px; margin: 0 auto 30px; color: #a9b7d0; }
.cta-band .hero__actions { justify-content: center; margin-bottom: 0; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .14);
}
.field small { font-size: 12.5px; color: var(--ink-3); }
.form-note { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- 页脚 ---------- */
.site-footer { padding: 64px 0 28px; color: #94a3b8; background: #0b1224; font-size: 14.5px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.site-footer .logo { color: #fff; }
.site-footer .logo__sub { color: #7d8bab; }
.footer-about { max-width: 340px; margin: 18px 0 0; color: #8b9ab4; font-size: 14px; }
.footer-col h3 { margin-bottom: 16px; font-size: 14px; color: #fff; letter-spacing: .04em; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 26px;
  font-size: 13px;
  color: #6e7d99;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #8b9ab4; }

/* ---------- 浮动工具 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(47, 107, 255, .34);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 动效 ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .btn--primary:hover, .btn--light:hover { transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 12px 24px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 12px 14px; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .post-item { flex-direction: column; gap: 10px; }
  .post-item time {
    display: flex;
    align-items: baseline;
    gap: 6px;
    width: auto;
    padding: 0;
    border: 0;
  }
  .post-item time b { font-size: 15px; }
  .stats__item { padding: 20px 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .page-head { padding: 40px 0 32px; }
  .cta-band { padding: 52px 0; }
}

@media print {
  .site-header, .site-footer, .to-top, .cta-band, .sidebar { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
