/* v07 · catalog-density — 产品目录密度（列表页观感） */

:root {
  --ink: #202124;
  --sub: #5F6368;
  --blue: #1A73E8;
  --wash: #F1F3F4;
  --line: #DADCE0;
  --white: #FFFFFF;
  --on-dark-sub: #9AA0A6;
  --r: 8px;
  --container: 1320px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

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

.svgicon { display: inline-block; vertical-align: -2px; flex: none; }

/* ---------- 顶部导航 56px ---------- */

.nav {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  white-space: nowrap;
}

.nav-links a:hover { background: var(--wash); }

.nav-utility {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin-left: auto;
  white-space: nowrap;
}

.nav-utility a {
  font-size: 14px;
  color: var(--sub);
}

.nav-utility a:hover { color: var(--ink); }

.nav-utility .console { color: var(--blue); font-weight: 500; }

.menu-btn {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- 48px 浅灰工具条 ---------- */

.toolbar {
  height: 48px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
}

.toolbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 340px;
  height: 32px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.searchbox input::placeholder { color: var(--sub); }
.searchbox input:focus { outline: none; }
.searchbox:focus-within { border-color: var(--blue); }

.filters {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.filters .filter-label { color: var(--sub); margin-right: 6px; }

.filters a {
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--sub);
}

.filters a:hover { background: #E8EAED; color: var(--ink); }
.filters a[aria-current] { color: var(--blue); font-weight: 600; }

/* ---------- 首屏压缩 180px ---------- */

.hero {
  height: 180px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-copy { min-width: 0; }

.eyebrow {
  font-size: 13px;
  color: var(--sub);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-sub {
  margin-top: 8px;
  font-size: 15px;
  color: var(--sub);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1765CC; }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--wash); }

/* ---------- 区块标题 ---------- */

.section { padding: 44px 0 52px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.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;
}

/* ---------- 四条业务线：4 列深色紧凑卡 180px ---------- */

.biz { padding: 20px 0 32px; }

.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.biz-card {
  height: 180px;
  padding: 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.biz-card h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.biz-card .biz-lead {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: #E8EAED;
}

.biz-card p {
  margin-top: auto;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-sub);
}

/* ---------- 为什么是端侧：通栏色块 + 三列文字 ---------- */

.why {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.why-grid h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.why-grid .why-lead { color: var(--blue); font-weight: 400; }

.why-grid p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--sub);
}

/* ---------- 产品：4 列 1px 边框紧凑卡（4+2） ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.product-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product-card:hover { border-color: #BDC1C6; }

.product-tag {
  font-size: 13px;
  color: var(--blue);
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.product-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--sub);
}

/* ---------- 案例：3 列紧卡片 ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.case-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-width: 0;
}

.case-card:hover { border-color: #BDC1C6; }

.case-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

.case-lead { color: var(--ink); }

.case-card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--sub);
}

/* ---------- 白皮书：表格化列表 ---------- */

.paper-table { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

.paper-row {
  display: grid;
  grid-template-columns: 5fr 7fr 44px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.paper-row:last-child { border-bottom: 0; }

.paper-head {
  background: var(--wash);
  padding: 8px 20px;
  font-size: 13px;
  color: var(--sub);
}

.paper-row:not(.paper-head) { padding: 16px  20px; }

.paper-row:not(.paper-head):hover { background: #FAFBFC; }

.paper-title { font-size: 15px; font-weight: 600; line-height: 1.5; }

.paper-desc { font-size: 15px; color: var(--sub); line-height: 1.6; }

.paper-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--sub);
}

.paper-row:hover .paper-arrow { color: var(--blue); background: #E8F0FE; }

/* ---------- CTA：160px 深色窄条 ---------- */

.cta { padding: 0 0 56px; }

.cta-bar {
  min-height: 160px;
  background: var(--ink);
  border-radius: var(--r);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-copy h2 {
  color: var(--white);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.cta-copy p {
  margin-top: 8px;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--on-dark-sub);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
  flex: none;
}

.btn-light:hover { background: var(--wash); }

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
}

.footer-links a {
  font-size: 14px;
  color: var(--sub);
}

.footer-links a:hover { color: var(--ink); }

.footer-legal {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 14px 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  list-style: none;
}

.legal-links a { font-size: 13px; color: var(--sub); }
.legal-links a:hover { color: var(--ink); }

.lang { position: relative; }

.lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--sub);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover { color: var(--ink); background: var(--wash); }

.lang-menu {
  position: absolute;
  right: 0;
  bottom: 28px;
  min-width: 120px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px;
  list-style: none;
}

.lang-menu a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--ink);
  border-radius: 4px;
}

.lang-menu a:hover { background: var(--wash); }

.copyright {
  font-size: 13px;
  color: var(--sub);
  margin-top: 8px;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }

  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-card { height: auto; min-height: 150px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .toolbar { height: auto; }
  .toolbar-inner { flex-wrap: wrap; padding: 8px 0; row-gap: 6px; }
  .searchbox { flex: 1 1 100%; width: auto; }

  .why-grid { grid-template-columns: 1fr; gap: 24px; }

  .paper-row { grid-template-columns: 1fr 24px; }
  .paper-head .paper-desc-head { display: none; }
  .paper-head { grid-template-columns: 1fr; }
  .paper-row:not(.paper-head) {
    grid-template-rows: auto auto;
    row-gap: 4px;
  }
  .paper-row:not(.paper-head) .paper-desc { grid-column: 1; }
  .paper-row:not(.paper-head) .paper-arrow { grid-row: 1; }
}

@media (max-width: 680px) {
  .hero { height: auto; padding: 28px 0; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero h1 { font-size: 36px; }
  .hero-actions { width: 100%; flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .biz-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }

  .section { padding: 32px 0 40px; }

  .cta-bar { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .btn-light { width: 100%; }

  .nav-utility a:not(.console) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
