:root {
  --bg: #ffffff;
  --surface: #f7f9fc;
  --border: #e4e9f1;
  --border-soft: #eef1f6;
  --text: #1b2433;
  --text-soft: #48546a;
  --muted: #7b8699;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef4ff;
  --blue-line: #d7e3fb;
  --shadow: 0 16px 36px rgba(30, 50, 90, 0.08);
  --shadow-sm: 0 4px 14px rgba(30, 50, 90, 0.05);
  --container: 1080px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--blue-line);
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.18s;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 260px at 50% -10%, rgba(37, 99, 235, 0.10), transparent 72%),
    linear-gradient(#f3f6fb 1px, transparent 1px),
    linear-gradient(90deg, #f3f6fb 1px, transparent 1px),
    #fff;
  background-size: auto, 32px 32px, 32px 32px, auto;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 62% at 50% 42%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 78%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; padding-block: 104px 112px; text-align: center; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: rgba(238, 244, 255, 0.9);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.4s infinite;
}
.hero h1 { margin-top: 26px; font-size: clamp(38px, 6vw, 62px); letter-spacing: -0.045em; }
.accent {
  background: linear-gradient(100deg, #1d4ed8, #2563eb 45%, #6f97f5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { max-width: 620px; margin: 20px auto 0; color: var(--text-soft); font-size: 17px; }
.hero-actions { margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--blue-dark);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}
.btn-arrow { font-size: 16px; line-height: 1; transition: transform 0.18s; }
.btn:hover .btn-arrow { transform: translateY(3px); }

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
  margin: 56px auto 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.status-item { padding: 16px 12px; text-align: center; }
.status-item + .status-item { border-left: 1px solid var(--border-soft); }
.status-key { display: block; color: var(--muted); font-size: 12px; }
.status-item strong { display: inline-flex; align-items: center; gap: 7px; margin-top: 4px; font-size: 14px; font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

/* ---------- 测试项目 ---------- */
.section { padding-block: 88px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { margin-bottom: 36px; }
.kicker {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.section-head h2 { margin-top: 8px; font-size: 30px; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(30, 50, 90, 0.02);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  animation: rise 0.5s backwards;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--blue), rgba(37, 99, 235, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-line); box-shadow: var(--shadow); }
.card:hover::before { transform: scaleX(1); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--blue-line);
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 17px;
}
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.running { background: var(--blue-soft); color: var(--blue); }
.status.done { background: #f0f2f5; color: #697586; }
.card h3 { font-size: 17px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 14px; }
.card-foot { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.card-index { color: #a1abbb; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; }
.progress { flex: 1; height: 3px; border-radius: 3px; background: #edf1f7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2563eb, #7aa2f7); }
.progress.p40 > span { width: 40%; }
.progress.p65 > span { width: 65%; }
.progress.p70 > span { width: 70%; }
.progress.p100 > span { width: 100%; }

/* ---------- 关于 ---------- */
.about-inner { display: grid; grid-template-columns: 210px 1fr; gap: 56px; max-width: 960px; }
.about-title h2 { margin-top: 8px; font-size: 30px; }
.about-rule { display: block; width: 34px; height: 2px; margin-top: 18px; border-radius: 2px; background: var(--blue); }
.about-body p { color: var(--text-soft); font-size: 15px; line-height: 1.95; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.about-tags li {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 13px;
}
.footer-left { display: inline-flex; align-items: center; gap: 10px; }
.footer-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--blue-line);
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.footer-icp { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.footer-icp:hover { text-decoration: underline; }
.icp-arrow { font-size: 12px; }

/* ---------- 动效 ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  70% { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
.hero-tag, .hero h1, .hero-sub, .hero-actions, .status-strip { animation: rise 0.6s backwards; }
.hero h1 { animation-delay: 0.06s; }
.hero-sub { animation-delay: 0.12s; }
.hero-actions { animation-delay: 0.18s; }
.status-strip { animation-delay: 0.24s; }
.card:nth-child(1) { animation-delay: 0.03s; }
.card:nth-child(2) { animation-delay: 0.07s; }
.card:nth-child(3) { animation-delay: 0.11s; }
.card:nth-child(4) { animation-delay: 0.15s; }
.card:nth-child(5) { animation-delay: 0.19s; }
.card:nth-child(6) { animation-delay: 0.23s; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding-block: 88px 96px; }
  .about-inner { grid-template-columns: 180px 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 36px, var(--container)); }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(30, 50, 90, 0.08);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 0; font-size: 15px; }
  .nav-link.active::after { display: none; }
  .hero-inner { padding-block: 72px 80px; }
  .hero-sub { font-size: 15px; }
  .status-strip { grid-template-columns: 1fr; margin-top: 40px; }
  .status-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; text-align: left; }
  .status-item + .status-item { border-left: 0; border-top: 1px solid var(--border-soft); }
  .status-item strong { margin-top: 0; }
  .section { padding-block: 68px; }
  .card-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
