/* ============================================================
   誉才岛门户 - 设计系统
   品牌色取自 logo: 深靛蓝 #2B2E83 + 浅蓝 #8FC1EE
   主题: 浅色锁定(信任优先 B2B), 合规保障段为唯一的深色品牌带
   圆角体系: 按钮/胶囊 999px, 卡片 16px, 面板 24px, 图标底座 12px
   ============================================================ */

:root {
  --brand: #2B2E83;
  --brand-hover: #232684;
  --brand-deep: #1F2265;
  --sky: #8FC1EE;
  --sky-soft: #EAF2FB;
  --tint: #F1F3FA;
  --ink: #1A1D45;
  --slate: #565B86;
  --line: #E2E5F1;
  --paper: #FAFBFD;
  --white: #FFFFFF;
  --radius-card: 16px;
  --radius-panel: 24px;
  --radius-chip: 12px;
  --shadow-sm: 0 1px 2px rgba(31, 34, 101, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(31, 34, 101, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

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

ul, ol { list-style: none; }

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

::selection { background: var(--brand); color: var(--white); }

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

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--brand);
  color: var(--white);
  border-radius: 999px;
  font-size: 14px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), transform 0.15s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-hover); }

.btn-ghost {
  color: var(--brand);
  border-color: rgba(43, 46, 131, 0.35);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--brand); background: var(--white); }

.btn-light { background: var(--white); color: var(--brand); }
.btn-light:hover { background: var(--sky-soft); }

.btn-sm { height: 38px; padding: 0 20px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand-logo { height: 40px; width: auto; }

.site-nav {
  display: flex;
  gap: 28px;
  margin-inline: auto;
}
.site-nav a {
  font-size: 15px;
  color: var(--slate);
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--brand); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-chip);
  background: var(--white);
  color: var(--brand);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px clamp(20px, 5vw, 32px) 24px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 4px; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--tint); }
.mobile-nav-actions { display: flex; gap: 12px; margin-top: 16px; }
.mobile-nav-actions .btn { flex: 1; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vh, 88px) 0 clamp(56px, 8vh, 96px);
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(143, 193, 238, 0.22), transparent 60%),
    radial-gradient(700px 420px at -8% 108%, rgba(43, 46, 131, 0.06), transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--sky); }

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin-top: 20px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--slate);
  max-width: 32em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  background: var(--sky-soft);
  border-radius: var(--radius-panel);
}
.hero-visual img {
  position: relative;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* ---------- 数据带 ---------- */
.stats-band {
  background: var(--tint);
  padding: clamp(36px, 5vw, 52px) 0;
  border-block: 1px solid var(--line);
}

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

.stat { text-align: center; }
.stat-num {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.stat-label { font-size: 14px; color: var(--slate); margin-top: 6px; }

/* ---------- 通用区块 ---------- */
.section { padding-block: clamp(72px, 9vw, 112px); }

.section-tint { background: var(--tint); }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head h2,
.compliance-intro h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}
.section-head p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--slate);
}

/* 图标底座 */
.cell-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-chip);
  background: var(--sky-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 平台服务: 便当格 ---------- */
.bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

.bento-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
}
.bento-cell h3 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.bento-cell > p { font-size: 14.5px; color: var(--slate); }

.cell-brand {
  background: linear-gradient(135deg, #2C2F8A, var(--brand-deep));
  border-color: transparent;
  color: var(--white);
}
.cell-brand h3 { color: var(--white); }
.cell-brand > p { color: rgba(255, 255, 255, 0.78); }
.cell-brand .cell-icon { background: rgba(143, 193, 238, 0.18); color: var(--sky); }

.cell-tint { background: var(--tint); }

.cell-line { border-top: 3px solid var(--sky); }

.bento-wide { grid-column: span 2; display: flex; gap: 24px; align-items: flex-start; }
.bento-wide h3 { margin-top: 0; }

.check-list { margin-top: 18px; display: grid; gap: 10px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--slate);
}
.cell-brand .check-list li { color: rgba(255, 255, 255, 0.85); }
.check-list .icon { width: 19px; height: 19px; color: var(--brand); }
.cell-brand .check-list .icon { color: var(--sky); }

/* ---------- 行业方案: 横向滑动 ---------- */
.industry-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 232px;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  scrollbar-width: thin;
  scrollbar-color: rgba(86, 91, 134, 0.4) transparent;
}
.industry-card {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.industry-card:hover { border-color: rgba(43, 46, 131, 0.4); transform: translateY(-3px); }
.industry-card h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; }
.industry-card p { font-size: 13.5px; color: var(--slate); }

/* ---------- 合作流程 ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 29px;
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  border-top: 2px dashed rgba(43, 46, 131, 0.22);
}
.process-step { position: relative; }
.step-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.process-step .icon { width: 26px; height: 26px; }
.process-step h3 { font-size: 17px; font-weight: 700; margin: 18px 0 6px; }
.process-step p { font-size: 14px; color: var(--slate); }

/* ---------- 合规保障: 深色品牌带 ---------- */
.section-dark {
  background: linear-gradient(135deg, #26297B 0%, var(--brand-deep) 100%);
  color: var(--white);
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.compliance-intro p:not(.eyebrow) {
  margin-top: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 30em;
}

.compliance-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 24px;
}
.feature .cell-icon { background: rgba(143, 193, 238, 0.16); color: var(--sky); }
.feature h3 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; }
.feature p { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); }

/* ---------- 关于 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.about-visual { position: relative; }
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(-14px, 14px);
  background: var(--sky-soft);
  border-radius: var(--radius-panel);
}
.about-visual img {
  position: relative;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.about-copy p {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--slate);
}
.about-motto {
  color: var(--brand) !important;
  font-weight: 700;
  font-size: 17px !important;
  border-left: 3px solid var(--sky);
  padding-left: 14px;
}

/* ---------- 联系面板 ---------- */
.contact-panel {
  background: linear-gradient(135deg, #2C2F8A, var(--brand-deep));
  border-radius: var(--radius-panel);
  padding: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 4vw, 48px);
  align-items: center;
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.contact-copy p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15.5px;
}
.contact-info { display: grid; gap: 18px; }
.contact-info li {
  display: grid;
  grid-template-columns: 22px 76px 1fr;
  align-items: center;
  gap: 12px;
}
.contact-info .icon { width: 20px; height: 20px; color: var(--sky); }
.contact-label { font-size: 13.5px; color: rgba(255, 255, 255, 0.62); }
.contact-info a,
.contact-info li > span:last-child {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
}
.contact-info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-btn { margin-top: 30px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.footer-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-chip);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-mark img { width: 34px; height: auto; }
.footer-word { font-size: 21px; font-weight: 700; color: var(--white); letter-spacing: 0.06em; }

.footer-brand p { font-size: 14px; max-width: 30em; }

.footer-col h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}
.footer-col a,
.footer-col span {
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- 滚动显现(仅 js 加载且未偏好减少动效时) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }

  html.js .bento .reveal:nth-child(2),
  html.js .process-grid .reveal:nth-child(2),
  html.js .compliance-features .reveal:nth-child(2) { transition-delay: 0.08s; }
  html.js .bento .reveal:nth-child(3),
  html.js .process-grid .reveal:nth-child(3),
  html.js .compliance-features .reveal:nth-child(3) { transition-delay: 0.16s; }
  html.js .bento .reveal:nth-child(4),
  html.js .process-grid .reveal:nth-child(4),
  html.js .compliance-features .reveal:nth-child(4) { transition-delay: 0.24s; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: flex; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }

  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; flex-direction: column; gap: 0; }
  .bento-wide h3 { margin-top: 18px; }

  .process-grid { grid-template-columns: 1fr; gap: 8px; }
  .process-grid::before {
    top: 76px;
    bottom: 76px;
    left: 28px;
    right: auto;
    border-top: none;
    border-left: 2px dashed rgba(43, 46, 131, 0.22);
  }
  .process-step { display: grid; grid-template-columns: 58px 1fr; column-gap: 20px; }
  .process-step h3 { margin-top: 14px; }
  .process-step p { grid-column: 2; margin-top: -2px; }

  .compliance-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; max-width: 560px; }
  .contact-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .contact-info li { grid-template-columns: 22px 1fr; }
  .contact-info li > :nth-child(3) { grid-column: 2; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
