/* ZovdaHub 官网 —— 共享样式（科技蓝，响应式，零外部依赖） */
:root {
  --brand: #dc2626;
  --brand-700: #b91c1c;
  --brand-300: #fca5a5;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --bg-dark: #0b1220;
  --line: #e6ebf2;
  --radius: 14px;
  --maxw: 1140px;
  --shadow: 0 8px 30px rgba(15, 35, 95, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
img { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .4em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 700; }
p { color: var(--ink-2); margin: 0 0 1em; }
.lead { font-size: 19px; color: var(--ink-2); }
.center { text-align: center; }
.muted { color: var(--ink-3); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: .2s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.brand .logo { width: 32px; height: 32px; border-radius: 8px; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-toggle { background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.lang-toggle:hover { border-color: var(--brand-300); color: var(--brand); }
.nav-burger { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(900px 420px at 80% -10%, rgba(252, 165, 165, .35), transparent 60%),
  radial-gradient(700px 380px at 0% 0%, rgba(220, 38, 38, .10), transparent 55%); }
.hero .container { padding-top: 86px; padding-bottom: 86px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-grid .hero-art { width: 100%; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 58ch; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.badge { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font-size: 13px; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow); }
.badge b { color: var(--brand); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .n { font-size: 34px; font-weight: 800; color: var(--brand); }
.stat .l { color: var(--ink-2); font-weight: 600; }

/* grids & cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-300); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 26px; height: 26px; display: block; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 15px; }

/* steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; }
.step .num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; }
.step h3 { margin: 4px 0 4px; }

/* feature blocks */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature:nth-child(even) .feature-media { order: -1; }
.feature ul { margin: 0; padding-left: 0; list-style: none; }
.feature li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-2); }
.feature li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.feature-media { background: linear-gradient(135deg, var(--bg-soft), #fff); border: 1px solid var(--line);
  border-radius: 18px; display: grid; place-items: center; overflow: hidden;
  padding: 20px; box-shadow: var(--shadow); }
.feature-media svg, .hero-art svg { width: 100%; height: auto; display: block; }

/* cta band */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-700)); color: #fff; border-radius: 22px;
  padding: 54px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); }
.cta-band .btn-primary { background: #fff; color: var(--brand-700); }
.cta-band .btn-primary:hover { background: #eef4ff; color: var(--brand-700); }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .2s; color: var(--ink); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-300); color: var(--ink); }
.post-card h3 { margin-bottom: 8px; }
.post-card p { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; margin-top: 12px; }
.post-meta .tag { background: var(--bg-soft); color: var(--brand); border-radius: 999px; padding: 2px 10px; font-weight: 600; }
.article { max-width: 760px; }
.blog-back { display: inline-block; margin-bottom: 16px; }
.md-body { font-size: 17px; line-height: 1.8; color: #1f2937; }
.md-body h1 { font-size: 30px; margin: 0 0 16px; }
.md-body h2 { font-size: 24px; margin: 32px 0 12px; }
.md-body h3 { font-size: 19px; margin: 24px 0 10px; }
.md-body p { margin: 0 0 16px; }
.md-body ul, .md-body ol { margin: 0 0 16px; padding-left: 24px; }
.md-body li { margin: 6px 0; }
.md-body a { color: var(--brand); text-decoration: underline; }
.md-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: 14px; }
.md-body pre { background: #0b1220; color: #e2e8f0; padding: 16px; border-radius: 10px; overflow: auto; }
.md-body pre code { background: none; color: inherit; padding: 0; }
.md-body blockquote { margin: 0 0 16px; padding: 8px 18px; border-left: 4px solid var(--brand-300); background: var(--bg-soft); color: var(--ink-2); }
.md-body hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }

/* contact */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); }

/* footer */
.site-footer { background: var(--bg-dark); color: #c7d2e3; padding: 56px 0 28px; }
.site-footer a { color: #c7d2e3; }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { padding: 5px 0; font-size: 14px; }
.foot-brand .brand { color: #fff; }
.foot-brand p { color: #8ca0bd; font-size: 14px; max-width: 36ch; }
.foot-bottom { border-top: 1px solid #1e2a40; margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7e90ac; }
.placeholder { outline: 1px dashed #f0a; outline-offset: 2px; }

/* responsive */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 14px 24px; border-bottom: 1px solid var(--line); gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-burger { display: block; }
  .grid-2, .grid-3, .stats, .hero-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-art { max-width: 460px; margin: 0 auto; }
  .stats { gap: 28px; }
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 36px 22px; }
}

/* 可访问性：跳到主内容（键盘/读屏可见，鼠标用户隐藏） */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700; }
.skip-link:focus { left: 0; color: #fff; }
