/* ==========================================================================
   云书软件开发社 — 站点结构与首页样式
   ========================================================================== */

/* ==========================================================================
   Header
   首页：透明叠 Hero，滚动后转 surface 底 + 细分割线
   内页：默认 surface 底
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    padding var(--t-fast) var(--ease);
  border-bottom: 1px solid transparent;
}

/* 内页默认就是实底 */
.site-header--solid {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  padding: 14px 0;
}

/* 首页滚过 Hero 后转实底 */
.site-header--scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.brand-mark:hover { color: var(--ink); }

.brand-logo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--spark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(15, 118, 110, .24);
}

/* 深色 Header（叠在 Hero 上时） */
.site-header--on-dark .brand-mark { color: var(--on-dark); }
.site-header--on-dark .brand-mark:hover { color: var(--on-dark); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] { color: var(--brand); }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.site-header--on-dark .site-nav a { color: rgba(245, 243, 238, .72); }
.site-header--on-dark .site-nav a:hover { color: var(--on-dark); }
.site-header--on-dark .site-nav a[aria-current="page"] { color: var(--on-dark); }
.site-header--on-dark .site-nav a::after { background: var(--spark); }

.header-cta { flex: 0 0 auto; }

/* 移动端导航 */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  place-items: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: background-color var(--t-fast) var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), top var(--t-fast) var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink) !important;
  }

  .site-nav a::after { display: none; }

  .nav-toggle { display: grid; }
  .header-cta { display: none; }

  .site-header--on-dark .nav-toggle {
    background: rgba(245, 243, 238, .1);
    border-color: rgba(245, 243, 238, .25);
  }
  .site-header--on-dark .nav-toggle span,
  .site-header--on-dark .nav-toggle span::before,
  .site-header--on-dark .nav-toggle span::after {
    background: var(--on-dark);
  }
}

/* ==========================================================================
   Hero — 渐变网格背景（墨青底叠青绿→暖橙柔光）
   ========================================================================== */

.hero {
  position: relative;
  background: var(--deep);
  color: var(--on-dark);
  padding: 168px 0 120px;
  overflow: hidden;
  isolation: isolate;
}

/* 柔光层 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 420px at 78% 12%, rgba(255, 122, 61, .30) 0%, transparent 62%),
    radial-gradient(760px 520px at 18% 88%, rgba(15, 118, 110, .42) 0%, transparent 66%),
    radial-gradient(540px 380px at 52% 42%, rgba(214, 245, 239, .08) 0%, transparent 70%);
}

/* 网格线层 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(245, 243, 238, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 243, 238, .055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 88% 72% at 50% 42%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 42%, #000 30%, transparent 100%);
}

.hero-inner { max-width: 880px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 11px;
  border-radius: var(--r-pill);
  background: rgba(245, 243, 238, .08);
  border: 1px solid rgba(245, 243, 238, .16);
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 243, 238, .88);
  margin-bottom: 28px;
}

.hero-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spark);
  box-shadow: 0 0 0 3px rgba(255, 122, 61, .22);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 122, 61, .22); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 122, 61, .05); }
}

.hero h1 {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 26px;
  color: var(--on-dark);
}

.hero h1 .accent {
  background: linear-gradient(100deg, var(--spark) 0%, #FFB07A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--spark);
}

.hero-lead {
  font-size: 19px;
  line-height: 1.65;
  color: rgba(245, 243, 238, .74);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

/* Hero 下方数据条 */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(245, 243, 238, .13);
}

.hero-stat__value {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--on-dark);
  letter-spacing: -0.02em;
}

.hero-stat__label {
  font-size: 13px;
  color: rgba(245, 243, 238, .6);
  margin-top: 5px;
}

@media (max-width: 767px) {
  .hero { padding: 120px 0 72px; }
  .hero h1 { font-size: 36px; margin-bottom: 20px; }
  .hero-lead { font-size: 16px; margin-bottom: 32px; }
  .hero-actions { margin-bottom: 44px; }
  .hero-stats { gap: 32px 40px; padding-top: 32px; }
  .hero-stat__value { font-size: 24px; }
}

/* ==========================================================================
   Bento Grid — 核心服务
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gutter);
}

.bento-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
  overflow: hidden;
}

.bento-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  z-index: 2;
}

/* 跨列规格 */
.bento-item--lg  { grid-column: span 4; }
.bento-item--md  { grid-column: span 3; }
.bento-item--sm  { grid-column: span 2; }
.bento-item--full { grid-column: span 6; }

/* 深色 Bento 卡 */
.bento-item--deep {
  background: var(--deep);
  border-color: transparent;
  color: var(--on-dark);
}

.bento-item--deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 280px at 88% 8%, rgba(255, 122, 61, .22) 0%, transparent 64%),
    radial-gradient(460px 320px at 10% 96%, rgba(15, 118, 110, .34) 0%, transparent 66%);
  pointer-events: none;
}

.bento-item--deep > * { position: relative; }

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 22px;
  flex: 0 0 46px;
}

.bento-item--deep .bento-icon {
  background: rgba(245, 243, 238, .1);
  color: var(--spark);
}

.bento-icon svg { width: 23px; height: 23px; }

.bento-item h3 {
  font-size: 21px;
  line-height: 1.35;
  color: var(--brand);
  margin-bottom: 12px;
}

.bento-item--deep h3 { color: var(--on-dark); }

.bento-item p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.bento-item--deep p { color: rgba(245, 243, 238, .72); }

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.bento-tags .chip {
  font-size: 12px;
  padding: 5px 11px;
}

.bento-item--deep .chip {
  background: rgba(245, 243, 238, .1);
  color: rgba(245, 243, 238, .85);
}

/* Bento 内的列表 */
.bento-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.bento-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--ink-muted);
}

.bento-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.bento-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 13px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item--lg,
  .bento-item--md,
  .bento-item--full { grid-column: span 2; }
  .bento-item--sm { grid-column: span 1; }
}

@media (max-width: 767px) {
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .bento-item--lg,
  .bento-item--md,
  .bento-item--sm,
  .bento-item--full { grid-column: span 1; }
  .bento-item { padding: 26px; }
}

/* ==========================================================================
   精选作品
   ========================================================================== */

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.work-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.work-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--deep);
  overflow: hidden;
  isolation: isolate;
}

.work-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(300px 200px at 76% 18%, rgba(255, 122, 61, .30) 0%, transparent 66%),
    radial-gradient(340px 240px at 16% 88%, rgba(15, 118, 110, .42) 0%, transparent 68%);
  transition: transform var(--t-mid) var(--ease);
}

.work-card:hover .work-card__media::before { transform: scale(1.08); }

/* 网格纹理 */
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(245, 243, 238, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 243, 238, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .8;
}

.work-card__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(245, 243, 238, .9);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.03em;
  z-index: 1;
}

.work-card__body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.work-card__body h3 {
  font-size: 20px;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}

.work-card:hover .work-card__body h3 { color: var(--brand); }

.work-card__body p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

/* 联系 / CTA 区块 */
.cta-panel {
  position: relative;
  background: var(--deep);
  border-radius: var(--r-panel);
  padding: 72px 64px;
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(560px 340px at 82% 10%, rgba(255, 122, 61, .26) 0%, transparent 64%),
    radial-gradient(600px 400px at 14% 92%, rgba(15, 118, 110, .38) 0%, transparent 66%);
}

.cta-panel h2 {
  font-size: 40px;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.cta-panel p {
  font-size: 17px;
  color: rgba(245, 243, 238, .74);
  max-width: 540px;
  margin: 0 auto 36px;
}

@media (max-width: 1023px) {
  .works-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 56px 40px; }
}

@media (max-width: 767px) {
  .cta-panel { padding: 44px 26px; }
  .cta-panel h2 { font-size: 28px; }
  .cta-panel p { font-size: 15px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--deep);
  color: var(--on-dark);
  padding: 72px 0 32px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245, 243, 238, .13);
}

.footer-brand .brand-mark { color: var(--on-dark); margin-bottom: 18px; }
.footer-brand .brand-mark:hover { color: var(--on-dark); }

.footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(245, 243, 238, .6);
  max-width: 340px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, .45);
  margin-bottom: 18px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(245, 243, 238, .74);
  transition: color var(--t-fast) var(--ease);
}

.footer-col a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(245, 243, 238, .5);
}

.footer-bottom a {
  color: rgba(245, 243, 238, .6);
  transition: color var(--t-fast) var(--ease);
}

.footer-bottom a:hover {
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 767px) {
  .site-footer { padding: 52px 0 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   工作室简介 — 深色底，左文右图非对称
   ========================================================================== */

.about-block {
  position: relative;
  background: var(--deep);
  color: var(--on-dark);
  border-radius: var(--r-panel);
  padding: 80px 72px;
  overflow: hidden;
  isolation: isolate;
}

.about-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 340px at 88% 10%, rgba(255, 122, 61, .20) 0%, transparent 64%),
    radial-gradient(560px 380px at 8% 94%, rgba(15, 118, 110, .34) 0%, transparent 66%);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-copy .eyebrow { color: var(--spark); }
.about-copy .eyebrow::before { background: linear-gradient(90deg, var(--spark), #FFB07A); }

.about-copy h2 {
  color: var(--on-dark);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.about-copy > p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 243, 238, .72);
  margin-bottom: 30px;
}

.about-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.about-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(245, 243, 238, .82);
  line-height: 1.6;
}

.about-points__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 122, 61, .16);
  color: var(--spark);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.about-points__icon svg { width: 13px; height: 13px; }

/* 代码编辑器视觉（抽象示意，非图库照片） */
.editor {
  border-radius: var(--r-card);
  border: 1px solid rgba(245, 243, 238, .13);
  background: rgba(245, 243, 238, .035);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--t-mid) var(--ease);
}

.editor:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.editor__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(245, 243, 238, .1);
  background: rgba(245, 243, 238, .03);
}

.editor__dots { display: flex; gap: 6px; }

.editor__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 243, 238, .18);
}

.editor__dots i:first-child { background: rgba(255, 122, 61, .65); }
.editor__dots i:nth-child(2) { background: rgba(255, 200, 120, .5); }
.editor__dots i:nth-child(3) { background: rgba(15, 150, 130, .55); }

.editor__file {
  font-size: 12px;
  color: rgba(245, 243, 238, .5);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.editor__body {
  padding: 22px 20px;
  font-family: ui-monospace, "SF Mono", Consolas, "Courier New", monospace;
  font-size: 12.5px;
  line-height: 2;
  letter-spacing: -0.01em;
}

.code-row { display: flex; gap: 14px; }

.code-no {
  color: rgba(245, 243, 238, .22);
  user-select: none;
  min-width: 14px;
  text-align: right;
}

.code-kw  { color: #FF9E6D; }
.code-fn  { color: #7DD3C0; }
.code-str { color: #FFD9A0; }
.code-cmt { color: rgba(245, 243, 238, .34); }
.code-pun { color: rgba(245, 243, 238, .55); }

@media (max-width: 1023px) {
  .about-block { padding: 56px 40px; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .editor { transform: none; }
}

@media (max-width: 767px) {
  .about-block { padding: 44px 24px; border-radius: var(--r-card); }
  .about-copy h2 { font-size: 26px; }
}

/* ==========================================================================
   开发流程 — 横向时间线，节点逐级点亮
   ========================================================================== */

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.process-track::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}

.process-track::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 10%;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--spark));
  border-radius: 2px;
  transition: width 900ms var(--ease);
}

.process-track.is-active::after { width: 80%; }

.process-step {
  position: relative;
  padding: 0 14px;
  text-align: center;
}

.process-node {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  transition:
    background-color 400ms var(--ease),
    border-color 400ms var(--ease),
    color 400ms var(--ease),
    box-shadow 400ms var(--ease),
    transform 400ms var(--ease);
}

.process-step.is-lit .process-node {
  background: linear-gradient(135deg, var(--brand), var(--spark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 122, 61, .3);
  transform: scale(1.06);
}

.process-step h3 {
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-muted);
}

@media (max-width: 1023px) {
  .process-track { grid-template-columns: 1fr; gap: 0; }
  .process-track::before,
  .process-track::after { display: none; }

  .process-step {
    text-align: left;
    padding: 0 0 28px 62px;
    position: relative;
  }

  .process-step::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 54px;
    bottom: 0;
    width: 2px;
    background: var(--line);
  }

  .process-step:last-child::before { display: none; }

  .process-node {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    width: 52px;
    height: 52px;
  }
}

/* ==========================================================================
   联系表单
   ========================================================================== */

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.form-field .req { color: var(--spark); margin-left: 2px; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: #9AA5A1; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-field textarea { resize: vertical; min-height: 132px; }

.form-hint { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }

.form-error { font-size: 13px; color: #C2410C; display: none; }

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--spark);
  box-shadow: 0 0 0 3px var(--spark-soft);
}

.form-field.has-error .form-error { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--spark-soft);
  color: #C2410C;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.form-success.is-shown { display: flex; }

.form-success svg { width: 18px; height: 18px; flex: 0 0 18px; }

@media (max-width: 767px) {
  .contact-panel { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   内页通用
   ========================================================================== */

.page-hero {
  position: relative;
  background: var(--deep);
  color: var(--on-dark);
  padding: 148px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(560px 360px at 84% 8%, rgba(255, 122, 61, .24) 0%, transparent 64%),
    radial-gradient(620px 420px at 12% 96%, rgba(15, 118, 110, .36) 0%, transparent 66%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(245, 243, 238, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 243, 238, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 84% 70% at 50% 36%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 84% 70% at 50% 36%, #000 30%, transparent 100%);
}

.page-hero h1 {
  font-size: 48px;
  color: var(--on-dark);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  max-width: 780px;
}

.page-hero .lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(245, 243, 238, .74);
  max-width: 620px;
}

.page-hero .eyebrow { color: var(--spark); }
.page-hero .eyebrow::before { background: linear-gradient(90deg, var(--spark), #FFB07A); }

/* 团队卡片 */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.team-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: var(--shadow-lg);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--spark) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.team-card h3 { font-size: 19px; margin-bottom: 6px; }

.team-role {
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
  margin-bottom: 14px;
}

.team-card p { font-size: 15px; color: var(--ink-muted); line-height: 1.7; }

/* 纵向历程时间线 */
.history {
  position: relative;
  padding-left: 36px;
}

.history::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

.history-item {
  position: relative;
  padding-bottom: 40px;
}

.history-item:last-child { padding-bottom: 0; }

.history-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease);
}

.history-item.is-lit::before {
  background: linear-gradient(135deg, var(--brand), var(--spark));
  border-color: transparent;
}

.history-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 7px;
  letter-spacing: .02em;
}

.history-item h3 { font-size: 18px; margin-bottom: 8px; }
.history-item p { font-size: 15px; color: var(--ink-muted); line-height: 1.7; }

/* 服务卡片网格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-size: 22px;
  color: var(--brand);
  margin-bottom: 14px;
}

.service-card > p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 22px;
}

.service-features {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-features li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--ink-muted);
}

.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.service-features li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* 案例筛选 */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.work-all-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.work-all-grid .work-card.is-hidden { display: none; }

.works-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* 联系页布局 */
.contact-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px;
}

.contact-card h3 { font-size: 20px; margin-bottom: 24px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child { border-bottom: none; padding-bottom: 0; }

.contact-item__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--spark-soft);
  color: #C2410C;
  display: grid;
  place-items: center;
}

.contact-item__icon svg { width: 19px; height: 19px; }

.contact-item__label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.contact-item__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-all;
}

/* 深色 CTA 区 */
.dark-cta {
  position: relative;
  background: var(--deep);
  border-radius: var(--r-panel);
  padding: 64px 56px;
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.dark-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(520px 320px at 84% 12%, rgba(255, 122, 61, .24) 0%, transparent 64%),
    radial-gradient(560px 380px at 10% 92%, rgba(15, 118, 110, .36) 0%, transparent 66%);
}

.dark-cta h2 { font-size: 34px; margin-bottom: 16px; }

.dark-cta p {
  font-size: 16px;
  color: rgba(245, 243, 238, .72);
  max-width: 520px;
  margin: 0 auto 32px;
}

@media (max-width: 1023px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .work-all-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; gap: 32px; }
  .page-hero { padding: 128px 0 64px; }
  .page-hero h1 { font-size: 38px; }
}

@media (max-width: 767px) {
  .team-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 112px 0 52px; }
  .page-hero h1 { font-size: 30px; }
  .page-hero .lead { font-size: 16px; }
  .service-card { padding: 26px; }
  .contact-card { padding: 26px; }
  .dark-cta { padding: 44px 26px; }
  .dark-cta h2 { font-size: 26px; }
  .history { padding-left: 30px; }
  .history-item::before { left: -30px; }
}
