/* ===== 基础 ===== */
:root {
  --navy: #0a1b2a;
  --navy-soft: #122c42;
  --brand: #0e7490;
  --brand-bright: #0891b2;
  --accent: #f59e0b;
  --ink: #12202e;
  --muted: #5b7083;
  --line: #e2e9f0;
  --bg: #f6f9fb;
  --white: #fff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(10, 27, 42, 0.05);
  --shadow: 0 14px 40px rgba(10, 27, 42, 0.1);
  --max: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-bright); }
img, svg { max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--white);
  color: var(--navy);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand:hover { color: var(--navy); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), var(--brand-bright));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(14, 116, 144, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
  color: #33465a;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--brand);
  background: #f1f7fa;
}

.site-nav a.is-active {
  color: var(--brand);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 116, 144, 0.25);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 26px rgba(14, 116, 144, 0.32); }

.btn-ghost {
  background: #f2f7fa;
  color: var(--brand);
  border-color: #dbe7ee;
}
.btn-ghost:hover { background: #e8f2f7; color: var(--brand); }

.btn-outline {
  background: transparent;
  color: #dbeafe;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-block { width: 100%; }

/* ===== 首页 Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #e8f4fa;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(8, 145, 178, 0.5), transparent 62%),
    radial-gradient(620px 320px at 4% 116%, rgba(245, 158, 11, 0.16), transparent 62%),
    linear-gradient(160deg, #071624 0%, #0e2b40 58%, #071624 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(72% 70% at 52% 38%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
  padding: clamp(56px, 8vw, 104px) 0;
}

.hero .eyebrow { color: #7dd3e8; }

.hero h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: 0.02em;
}

.hero-lead {
  max-width: 34em;
  color: #b6cddb;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn-primary { background: var(--accent); color: #1a1204; box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3); }
.hero-actions .btn-primary:hover { background: #f7ac2c; color: #1a1204; }

.hero-points {
  display: grid;
  gap: 12px;
  padding: 0;
}

.hero-points li {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.hero-points strong {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.hero-points span {
  color: #9fbccc;
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ===== 通用区块 ===== */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-tight { padding-top: clamp(36px, 4vw, 56px); }
.section-alt { background: var(--bg); border-block: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 12px; }
.section-lead { color: var(--muted); margin: 0; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.link-more span { transition: transform 0.15s; }
.link-more:hover span { transform: translateX(3px); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #cfe0ea;
  box-shadow: var(--shadow);
}

.card h3 { margin-bottom: 8px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(140deg, #e6f4f9, #f2fafd);
  color: var(--brand);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== 下载列表 ===== */
.dl-list { display: grid; gap: 12px; }

.dl-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.dl-item:hover {
  border-color: #cfe0ea;
  box-shadow: 0 10px 26px rgba(10, 27, 42, 0.07);
}

.dl-kind {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: #eef4f8;
  color: #47657a;
  white-space: nowrap;
}

.dl-kind[data-kind="client"] { background: #e6f6fb; color: var(--brand); }
.dl-kind[data-kind="tool"] { background: #fdf3e3; color: #a2610a; }

.dl-body { flex: 1 1 auto; min-width: 0; }

.dl-title {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dl-title a { color: var(--navy); }
.dl-title a:hover { color: var(--brand); }

.dl-desc {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #8296a6;
  font-size: 0.79rem;
}

.dl-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c3d1dc;
}

.dl-btn { flex: 0 0 auto; padding: 9px 16px; font-size: 0.88rem; }

.empty-state {
  padding: 56px 24px;
  border: 1px dashed #cfdde7;
  border-radius: var(--radius);
  background: #fbfdfe;
  text-align: center;
  color: var(--muted);
}

.empty-state strong { display: block; margin-bottom: 6px; color: var(--navy); }

/* ===== 内页头部 ===== */
.page-head {
  padding: clamp(44px, 6vw, 76px) 0 clamp(28px, 3vw, 40px);
  background:
    radial-gradient(700px 260px at 90% 0%, rgba(8, 145, 178, 0.1), transparent 70%),
    linear-gradient(180deg, #f7fbfd, #fff);
  border-bottom: 1px solid var(--line);
}

.page-head h1 { margin-bottom: 12px; color: var(--navy); }
.page-lead { max-width: 46em; margin: 0; color: var(--muted); }

/* ===== 下载页工具条 ===== */
.downloads-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #43596c;
  font-size: 0.88rem;
  font-weight: 500;
}

.chip:hover { border-color: #c6dae6; color: var(--brand); }

.chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.chip em {
  font-style: normal;
  font-size: 0.75rem;
  opacity: 0.62;
}

.search { display: flex; gap: 8px; }

.search input {
  width: min(240px, 46vw);
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--ink);
}

.search input:focus {
  outline: 2px solid rgba(8, 145, 178, 0.28);
  border-color: #9fd0e0;
}

.result-hint {
  margin: 0 0 16px;
  color: #8296a6;
  font-size: 0.82rem;
}

/* ===== 解决方案 ===== */
.stack { display: grid; gap: 22px; }

.solution {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #fbfdfe, #fff 45%);
  box-shadow: var(--shadow-sm);
}

.solution-head { display: flex; gap: 18px; align-items: flex-start; }

.solution-index {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf5f9;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.solution h2 { font-size: 1.32rem; margin-bottom: 8px; }
.solution p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.check-list { display: grid; gap: 10px; align-content: start; }

.check-list li {
  position: relative;
  padding-left: 27px;
  color: #41576a;
  font-size: 0.93rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e6f6f1;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.62em;
  width: 6px;
  height: 3px;
  border-left: 1.8px solid #0f9d7a;
  border-bottom: 1.8px solid #0f9d7a;
  transform: rotate(-45deg);
}

/* ===== 关于我们 ===== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.about-copy h2 { margin-top: 32px; font-size: 1.28rem; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { color: #41576a; }
.about-copy .check-list { margin: 0 0 20px; }

.note { color: var(--muted); font-size: 0.9rem; }

.about-aside { display: grid; gap: 16px; position: sticky; top: 92px; }

.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.aside-card h3 { margin-bottom: 8px; font-size: 1rem; }
.aside-card p { color: var(--muted); font-size: 0.9rem; }
.aside-card .link-more { font-size: 0.88rem; }

.contact-lines { display: grid; gap: 8px; margin: 0; font-size: 0.9rem; }
.contact-lines div { color: #41576a; }
.contact-lines dt { display: inline; color: var(--muted); margin-right: 6px; }
.contact-lines dd { display: inline; margin: 0; overflow-wrap: anywhere; }

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 48px;
}

.contact-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow-wrap: anywhere;
}

.contact-card h3 { margin-bottom: 6px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.contact-card a { font-size: 1rem; font-weight: 600; }
.contact-card .muted-note { color: #9aabba; font-size: 0.84rem; }

.contact-note {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact-note h2 { font-size: 1.22rem; }
.contact-note p { margin: 0; color: #41576a; }

/* ===== CTA ===== */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 18px;
  background:
    radial-gradient(600px 220px at 92% 0%, rgba(8, 145, 178, 0.32), transparent 70%),
    linear-gradient(135deg, #0a1b2a, #12324a 60%, #0a1b2a);
  background-color: #0a1b2a;
  color: #d8e7f1;
}

.cta-band h2 { margin-bottom: 8px; color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.cta-band p { margin: 0; max-width: 42em; color: #a9c2d2; font-size: 0.93rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== 页脚 ===== */
.site-footer {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 56px;
  background: #081522;
  color: #93a9ba;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
}

.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-text small { color: #7f97a8; }
.brand-light .brand-mark { box-shadow: none; }

.footer-desc { margin: 18px 0 0; max-width: 32em; font-size: 0.88rem; line-height: 1.7; color: #7f97a8; }

.footer-col h4 { margin-bottom: 14px; color: #dbe8f1; font-size: 0.86rem; letter-spacing: 0.08em; }
.footer-col a,
.footer-col span {
  display: block;
  margin-bottom: 9px;
  color: #93a9ba;
  font-size: 0.89rem;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #6c8294;
}

.footer-bottom a { color: #8aa2b3; }

/* ===== 登录页 ===== */
.login-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 68px);
  padding: 48px 20px;
  background:
    radial-gradient(700px 320px at 50% -10%, rgba(8, 145, 178, 0.14), transparent 70%),
    var(--bg);
}

.login-card {
  width: min(400px, 100%);
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.login-card h1 { margin-bottom: 6px; font-size: 1.5rem; }
.login-desc { margin-bottom: 24px; color: var(--muted); font-size: 0.9rem; }
.login-card label { display: block; margin-bottom: 6px; font-size: 0.86rem; font-weight: 600; color: #33465a; }

.login-card input {
  width: 100%;
  margin-bottom: 18px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

.login-card input:focus { outline: 2px solid rgba(8, 145, 178, 0.28); border-color: #9fd0e0; }

.form-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #f2c9c9;
  border-radius: 9px;
  background: #fdf3f3;
  color: #a52626;
  font-size: 0.86rem;
}

.login-back { display: block; margin-top: 18px; text-align: center; font-size: 0.85rem; color: var(--muted); }

/* ===== 404 ===== */
.error-page { padding: clamp(72px, 12vw, 140px) 0; text-align: center; }
.error-page h1 { color: var(--navy); }
.error-page p { color: var(--muted); }

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .solution { grid-template-columns: 1fr; gap: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(10, 27, 42, 0.08);
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 10px; font-size: 1rem; }
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { background: #f1f7fa; }

  .dl-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }

  .dl-kind { order: 0; }
  .dl-body { flex: 1 1 calc(100% - 100px); }
  .dl-btn { order: 3; width: 100%; }

  .downloads-toolbar { align-items: stretch; }
  .search { width: 100%; }
  .search input { flex: 1 1 auto; width: auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-points li { grid-template-columns: 84px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
