/* ==========================================================================
   内页共用样式（关于我们 / 基础产品 / 解决方案 / 开放平台）
   ========================================================================== */

/* ---------- 页头 ---------- */
.pagehead {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 76px;
  background: var(--navy-800);
  overflow: hidden;
}
.pagehead__bg {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/bg-dark.png");
  background-size: cover;
  background-position: center;
  opacity: 0.42;
}
.pagehead__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(720px 380px at 18% 10%, rgba(0, 212, 170, 0.18), transparent 62%),
    linear-gradient(150deg, rgba(7, 26, 47, 0.5), rgba(10, 37, 64, 0.9));
}
.pagehead__inner { position: relative; z-index: 1; }

.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}
.crumb a { transition: color 0.2s var(--ease); }
.crumb a:hover { color: var(--teal-500); }
.crumb svg { width: 13px; height: 13px; opacity: 0.5; }
.crumb span { color: rgba(255, 255, 255, 0.85); }

.pagehead h1 { color: var(--white); max-width: 20ch; }
.pagehead .lede {
  margin-top: 22px;
  max-width: 62ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- 通用区块 ---------- */
.block { padding: clamp(56px, 7vw, 92px) 0; }
.block--alt { background: var(--white); }

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 关于我们 ---------- */
.about-lead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-lead p { font-size: 16.5px; line-height: 1.9; color: var(--ink-500); }
.about-lead p + p { margin-top: 18px; }

.factlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  padding: 28px 26px;
  background: var(--white);
}
.fact dt {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  color: var(--teal-600);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.fact dd {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.7;
}

/* 价值观 */
.values {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.value {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.value:hover {
  transform: translateY(-4px);
  border-color: #C7D6E4;
  box-shadow: 0 18px 38px -24px rgba(10, 37, 64, 0.28);
}
.value svg {
  width: 28px; height: 28px;
  color: var(--teal-600);
  margin-bottom: 18px;
}
.value h3 { font-size: 17px; margin-bottom: 9px; }
.value p { font-size: 14.5px; color: var(--ink-500); line-height: 1.78; }

/* 联系方式 */
.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.contact {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact:hover { background: rgba(0, 212, 170, 0.08); border-color: rgba(0, 212, 170, 0.3); }
.contact svg { width: 26px; height: 26px; color: var(--teal-500); margin-bottom: 16px; }
.contact h3 { font-size: 17px; margin-bottom: 8px; }
.contact p { font-size: 14.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.75; }
.contact a { color: var(--teal-500); font-weight: 600; }
.contact a:hover { text-decoration: underline; }

/* ---------- 产品页 ---------- */
.prod-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.prod-nav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 0;
}
.prod-nav__inner::-webkit-scrollbar { display: none; }
.prod-nav a {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-500);
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.prod-nav a:hover { background: var(--bg); color: var(--ink-900); }

.prod {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  padding: clamp(48px, 6vw, 76px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 72px);
}
.prod:last-child { border-bottom: 0; }

.prod__aside { position: sticky; top: calc(var(--nav-h) + 84px); align-self: start; }
.prod__logo {
  width: 148px; height: 148px;
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.prod__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prod__idx {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--teal-600);
  margin-bottom: 8px;
}
.prod__name { font-size: 26px; margin-bottom: 6px; }
.prod__en {
  font-size: 14.5px;
  color: var(--teal-700);
  font-weight: 600;
  margin-bottom: 18px;
}
.prod__pos {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.8;
}

.prod__main > h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 18px;
}
.prod__desc {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-500);
  margin-bottom: 32px;
  max-width: 66ch;
}

.modlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.mod {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 18px;
  border-radius: 11px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease);
}
.mod:hover { border-color: var(--teal-600); transform: translateX(3px); }
.mod__dot {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
}

.casebox {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--teal-50);
  border: 1px solid #BFE8DC;
}
.casebox__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-700);
  margin-bottom: 12px;
}
.casebox__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-600);
}
.casebox p { font-size: 15.5px; line-height: 1.85; color: var(--ink-700); }

/* ---------- 淂翼卡（DeYi） ---------- */
.prod--deyi .prod__name { color: #7A5E1E; }

.prod__logo--gold {
  background: linear-gradient(155deg, #FFFDF8, #F7F0E0);
  border-color: #E8D9B4;
}

.btn--deyi {
  margin-top: 20px;
  width: 100%;
  background: linear-gradient(135deg, #C9A961, #B08D42);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(176, 141, 66, 0.85);
}
.btn--deyi:hover {
  background: linear-gradient(135deg, #D6B972, #BC9750);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(176, 141, 66, 0.95);
}

.prod__anchor {
  color: #A8863C;
  font-weight: 600;
  border-bottom: 1px solid rgba(168, 134, 60, 0.36);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.prod__anchor:hover { color: #7A5E1E; border-bottom-color: #7A5E1E; }

.deyi-card {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  gap: 32px;
  align-items: center;
  margin: 0 0 32px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, #FFFDF8, #F8F2E4);
  border: 1px solid #E8D9B4;
}
.deyi-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 14px 30px -16px rgba(90, 70, 20, 0.5);
}
.deyi-card__meta { display: grid; gap: 9px; justify-items: start; }
.deyi-card__meta h3 { font-size: 21px; color: #6F551A; }
.deyi-card__meta p { font-size: 14.5px; color: var(--ink-500); }
.deyi-card__slogan {
  margin-top: 4px !important;
  font-size: 17px !important;
  font-weight: 700;
  color: #A8863C !important;
  letter-spacing: 0.16em;
}

.casebox--gold {
  background: #FBF6EA;
  border-color: #E8D9B4;
}
.casebox--gold .casebox__label { color: #8A6B24; }
.casebox--gold .casebox__label::before { background: #C9A961; }

.prod--deyi .mod__dot { background: #C9A961; }

/* ---------- 解决方案 ---------- */
.sol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: 28px;
  transition: box-shadow 0.34s var(--ease), border-color 0.34s var(--ease);
}
.sol:hover { box-shadow: 0 26px 54px -32px rgba(10, 37, 64, 0.3); border-color: #C7D6E4; }
.sol:nth-child(even) { direction: rtl; }
.sol:nth-child(even) > * { direction: ltr; }

.sol__visual {
  padding: 44px 40px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.sol__logo {
  width: 168px; height: 168px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sol__body { padding: 44px 40px; }
.sol__tag {
  display: inline-flex;
  align-items: center;
  height: 27px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}
.sol__body h3 { font-size: 23px; margin-bottom: 12px; }
.sol__body > p { font-size: 15.5px; line-height: 1.85; color: var(--ink-500); }

.sol__points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}
.sol__points li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-700);
}
.sol__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
}

/* 流程步骤 */
.flowsteps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.flowstep {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.flowstep::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-600);
  margin-bottom: 14px;
}
.flowstep h3 { font-size: 17px; margin-bottom: 9px; }
.flowstep p { font-size: 14.5px; color: var(--ink-500); line-height: 1.78; }

/* ---------- 开放平台 ---------- */
.doc-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 6px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  width: fit-content;
}
.doc-tab {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-500);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.doc-tab:hover { background: var(--bg); color: var(--ink-900); }
.doc-tab.is-active { background: var(--navy-800); color: var(--white); }

.doc-panel { display: none; }
.doc-panel.is-active { display: block; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.apilist {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.apigroup { background: var(--white); }
.apigroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: #FAFCFE;
  border-bottom: 1px solid var(--line);
}
.apigroup__head h3 { font-size: 16.5px; }
.apigroup__head span {
  font-size: 12.5px;
  color: var(--ink-400);
  font-family: var(--font-num);
}
.apirow {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s var(--ease);
}
.apigroup:last-child .apirow:last-child { border-bottom: 0; }
.apirow:hover { background: #FBFDFE; }
.apirow code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 14px;
  color: var(--ink-900);
  font-weight: 600;
}
.apirow p { font-size: 14px; color: var(--ink-500); margin: 0; }
.apimethod {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 9px;
  border-radius: 5px;
  font-family: var(--font-num);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.apimethod--post { background: #E4F7F1; color: #0E8F73; }
.apimethod--get  { background: #EEF3FF; color: #3457A8; }

.steps {
  counter-reset: s;
  display: grid;
  gap: 18px;
  max-width: 760px;
}
.step {
  position: relative;
  padding: 24px 28px 24px 76px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  counter-increment: s;
}
.step::before {
  content: counter(s);
  position: absolute;
  left: 26px; top: 24px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-500); line-height: 1.78; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .about-lead { grid-template-columns: 1fr; gap: 40px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prod { grid-template-columns: 240px 1fr; gap: 36px; }
  .flowsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .prod { grid-template-columns: 1fr; gap: 28px; }
  .prod__aside { position: static; }
  .prod__logo { width: 112px; height: 112px; }
  .modlist { grid-template-columns: 1fr; }
  .sol { grid-template-columns: 1fr; }
  .sol:nth-child(even) { direction: ltr; }
  .sol__visual { min-height: 200px; padding: 32px; }
  .sol__body { padding: 32px 28px; }
  .apirow { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .apirow p { grid-column: 1 / -1; }
  .deyi-card { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
}

@media (max-width: 520px) {
  .values, .flowsteps { grid-template-columns: 1fr; }
  .factlist { grid-template-columns: 1fr; }
  .step { padding: 22px 22px 22px 66px; }
  .step::before { left: 18px; top: 22px; width: 30px; height: 30px; font-size: 14px; }
}