/* ============================================================
   程序员 Allen 个人品牌官网 · 全局样式
   风格：暖色亲和个人风（关怀青 + 暖橙 + 暖米白，圆润卡片）
   策略：移动端优先，≥768px / ≥1024px 两档断点
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --color-primary: #0d9488;
  --color-primary-dark: #134e4a;
  --color-primary-soft: #ccfbf1;
  --color-accent: #ea580c;
  --color-accent-hover: #c2410c;
  --color-bg: #fffbf7;
  --color-bg-section: #f0fdfa;
  --color-card: #ffffff;
  --color-text: #1f2937;
  --color-text-muted: #64748b;
  --color-border: #f1f5f9;
  --radius-card: 20px;
  --radius-btn: 999px;
  --shadow-card: 0 8px 30px rgba(13, 148, 136, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(13, 148, 136, 0.16);
  --container: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px; /* 锚点跳转时避开固定导航 */
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--color-primary-dark);
  line-height: 1.3;
  font-weight: 800;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* 键盘可访问性：清晰的焦点环 */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 800px;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--color-bg-section);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(234, 88, 12, 0.38);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.btn-ghost:hover {
  background: var(--color-primary-soft);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--color-accent);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* ---------- 区块标题 ---------- */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 4px 14px;
  border-radius: var(--radius-btn);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(24px, 4.5vw, 34px);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 16px;
}

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-icon-lg {
  width: 58px;
  height: 58px;
  border-radius: 18px;
}

.card-icon-lg svg {
  width: 30px;
  height: 30px;
}

.card-icon-accent {
  color: var(--color-accent);
  background: #ffedd5;
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #14b8a6);
  color: #fff;
}

.logo-mark svg {
  width: 22px;
  height: 22px;
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.logo-text strong {
  color: var(--color-primary);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--color-primary);
}

.nav-cta .btn {
  color: #fff;
}

/* 汉堡按钮：移动端显示 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-primary-dark);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Hero 首屏 ---------- */
.hero {
  padding: 48px 0 56px;
  background: radial-gradient(
      ellipse 600px 360px at 85% 10%,
      rgba(20, 184, 166, 0.12),
      transparent
    ),
    radial-gradient(
      ellipse 500px 320px at 10% 90%,
      rgba(234, 88, 12, 0.08),
      transparent
    );
  overflow: hidden;
}

.hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 单栏居中：限制内容最大宽度，保证长标题在大屏上不撑得太散 */
.hero-content {
  text-align: center;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(36px, 7.5vw, 60px);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* 标题第二行：与首行拉开间距，字号略小 */
.hero-title .hero-line2 {
  display: block;
  margin-top: 0.18em;
  font-size: 0.72em;
  line-height: 1.4;
}

.hero-title .hl {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: var(--color-accent);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

/* ---------- 数据条 ---------- */
.stats {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  color: #5eead4;
  line-height: 1.2;
}

.stat-num em {
  font-style: normal;
  font-size: 0.55em;
  margin-left: 2px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- 业务范围 ---------- */
.service-group {
  margin-bottom: 44px;
}

.service-group:last-child {
  margin-bottom: 0;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(19px, 3.5vw, 23px);
  margin-bottom: 22px;
}

.group-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #14b8a6);
  flex-shrink: 0;
}

.group-icon-accent {
  background: linear-gradient(135deg, var(--color-accent), #f97316);
}

.group-icon svg {
  width: 25px;
  height: 25px;
}

.service-grid {
  grid-template-columns: 1fr;
}

.service-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.service-card h4 {
  font-size: 17px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
}

.service-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1px dashed var(--color-primary);
  border-radius: 14px;
  font-size: 14px;
  color: var(--color-primary-dark);
}

.service-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary);
}

/* ---------- 三大优势 ---------- */
.advantage-grid {
  grid-template-columns: 1fr;
}

.advantage-card {
  padding: 30px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.advantage-card h3 {
  font-size: 19px;
}

.advantage-card p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- 合作流程 ---------- */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.process-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 44px;
  font-weight: 800;
  color: var(--color-primary-soft);
  line-height: 1;
}

.process-step h3 {
  font-size: 18px;
}

.process-step p {
  font-size: 14.5px;
  color: var(--color-text-muted);
}

/* ---------- 精选案例 ---------- */
/* ---------- 项目案例（横向大卡片） ---------- */
.case-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.case-card-v {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.case-card-v .case-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-primary-soft);
}

.case-card-v .case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.case-card-v:hover .case-cover img {
  transform: scale(1.05);
}

.case-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: var(--radius-btn);
}

.case-demo-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(31, 41, 55, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-btn);
  backdrop-filter: blur(2px);
}

.case-card-v .case-body {
  padding: 24px 26px 28px;
}

.case-card-v .case-body h3 {
  font-size: 19px;
  margin-bottom: 14px;
}

.case-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.case-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.case-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
}

.case-points li strong {
  color: var(--color-text);
  font-weight: 800;
}

/* ---------- 三大承诺 ---------- */
.guarantee-grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

.guarantee-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.guarantee-item h3 {
  font-size: 18px;
}

.guarantee-item p {
  font-size: 14.5px;
  color: var(--color-text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary-dark);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-right: 2.5px solid var(--color-primary);
  border-bottom: 2.5px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: -4px;
}

.faq-item[open] .faq-arrow {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ---------- 联系转化区 ---------- */
.contact {
  padding-bottom: 72px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: 44px 28px;
  display: grid;
  gap: 36px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(19, 78, 74, 0.3);
}

.contact-card .section-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #5eead4;
}

.contact-title {
  color: #fff;
  font-size: clamp(23px, 4.5vw, 32px);
  margin-bottom: 14px;
}

.contact-desc {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 24px;
  font-size: 15.5px;
}

.contact-qr {
  text-align: center;
}

.qr-box {
  display: inline-block;
  background: #fff;
  padding: 14px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.qr-box img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
}

.qr-caption {
  margin-top: 14px;
  font-weight: 700;
  font-size: 15px;
}

.wechat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wechat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.wechat-id {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  color: #5eead4;
  letter-spacing: 0.04em;
}

.btn-white.copied {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

/* ---------- Hero 承诺条 ---------- */
.hero-promises {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  margin-top: 22px;
}

.hero-promises li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.hero-promises svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ---------- 关于我 ---------- */
.about-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* 三条规矩：三列卡片网格，复用 .card 设计语言 */
.about-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-points li {
  background: var(--color-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  display: flex;
  gap: 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.about-points li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.about-point-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.about-point-icon svg {
  width: 22px;
  height: 22px;
}

.about-points h3 {
  font-size: 17px;
  margin-bottom: 6px;
  font-weight: 700;
}

.about-points p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* ---------- 场景标签 ---------- */
.scene-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 34px;
  padding: 18px 20px;
  background: var(--color-card);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-card);
}

.scene-label {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-right: 4px;
}

.scene-chip {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  border-radius: var(--radius-btn);
  padding: 7px 16px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scene-chip:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- 客户评价 ---------- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.review-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-stars {
  display: flex;
  gap: 3px;
}

.review-stars svg {
  width: 18px;
  height: 18px;
  color: #f59e0b;
}

.review-card blockquote p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #0f766e);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.review-meta strong {
  display: block;
  font-size: 14.5px;
}

.review-meta small {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ---------- 中段 CTA 横幅 ---------- */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 44px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: #fff;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.28);
}

.cta-band h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

.cta-band p {
  font-size: 15.5px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
}

.cta-band p strong {
  color: #fff;
}

/* ---------- 移动端吸底 CTA ---------- */
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4);
  transform: translateY(140%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-cta.show {
  transform: translateY(0);
}

.mobile-cta svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

/* ---------- 页脚 ---------- */
.footer {
  background: #0f2f2d;
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  font-size: 14px;
  margin-top: 10px;
}

.footer .logo-text {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 14px;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #5eead4;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

/* ---------- 滚动渐入动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   响应式：≥768px 平板
   ============================================================ */
@media (min-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 64px 0 72px;
  }

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

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

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

  .advantage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-points {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .guarantee-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 中段 CTA 横幅：平板以上改为左文案、右按钮横向排布 */
  .cta-band {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 44px 48px;
  }

  .cta-band p {
    margin-bottom: 0;
  }

  .cta-band .btn {
    flex-shrink: 0;
  }

  .nav-toggle {
    display: none;
  }
}

/* ============================================================
   响应式：≥1024px 桌面
   ============================================================ */
@media (min-width: 1024px) {
  .section {
    padding: 96px 0;
  }

  /* 桌面端 hero 内边距加大，呼吸感 */
  .hero {
    padding: 80px 0 88px;
  }

  .service-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .process-list {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 案例大卡片：桌面端封面居左、文案居右 */
  .case-card-v {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .case-card-v .case-cover {
    aspect-ratio: auto;
  }

  .case-card-v .case-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 36px 40px;
  }

  /* 客户评价：桌面端三列 */
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 60px 56px;
    gap: 48px;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-brand {
    flex: 1 1 280px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .footer-copy {
    flex: 1 1 100%;
  }
}

/* ============================================================
   移动端导航展开（仅 <768px）
   ============================================================ */
@media (max-width: 767px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 30px rgba(13, 148, 136, 0.12);
    padding: 8px 20px 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a:not(.btn) {
    display: block;
    padding: 14px 4px;
    font-size: 16px;
  }

  .nav-cta {
    padding-top: 14px;
  }

  .nav-cta .btn {
    width: 100%;
  }

  .navbar.menu-open .icon-menu {
    display: none;
  }

  .navbar.menu-open .icon-close {
    display: block;
  }

  /* 场景标签：移动端缩小字号与内边距，减少篇幅占用 */
  .scene-bar {
    gap: 10px;
    padding: 14px;
  }

  .scene-row {
    gap: 8px;
  }

  .scene-label {
    font-size: 13px;
  }

  .scene-chip {
    font-size: 12.5px;
    padding: 5px 12px;
  }

  /* 吸底 CTA 仅在移动端显示 */
  .mobile-cta {
    display: flex;
  }

  /* 为吸底 CTA 预留空间，避免页脚内容被遮挡 */
  body {
    padding-bottom: 84px;
  }
}

/* ============================================================
   无障碍：尊重系统"减少动态效果"设置
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   开发流程详解页（process.html）专属样式
   不影响首页已有样式
   ============================================================ */

/* ---------- 流程概览（横向流程链） ---------- */
.stage-overview {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 8px;
  justify-content: center;
}

.stage-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-width: 140px;
}

.stage-chip:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

.stage-chip-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), #14b8a6);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.stage-chip-text strong {
  display: block;
  font-size: 15px;
  color: var(--color-primary-dark);
  font-weight: 800;
  line-height: 1.3;
}

.stage-chip-text small {
  display: block;
  font-size: 12.5px;
  color: var(--color-text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.stage-connector {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

/* 小屏隐藏箭头，节省空间 */
@media (max-width: 640px) {
  .stage-connector {
    display: none;
  }
}

/* ---------- 阶段详解卡片 ---------- */
.stage-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 32px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.22s ease;
  scroll-margin-top: 84px;
}

.stage-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.stage-card:last-child {
  margin-bottom: 0;
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
}

.stage-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-accent);
  background: #ffedd5;
  padding: 4px 14px;
  border-radius: var(--radius-btn);
  letter-spacing: 0.04em;
}

.stage-head h3 {
  font-size: clamp(20px, 3.5vw, 24px);
  color: var(--color-primary-dark);
}

.stage-time {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-primary-soft);
  padding: 4px 12px;
  border-radius: var(--radius-btn);
}

.stage-intro {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* 双列：Allen 做什么 / 客户做什么 */
.stage-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.stage-col {
  background: #fffbf7;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 22px 22px 24px;
}

.stage-col h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.stage-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.stage-icon svg {
  width: 20px;
  height: 20px;
}

.stage-icon-accent {
  background: #ffedd5;
  color: var(--color-accent);
}

.stage-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-col ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.stage-col ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.stage-col-client .stage-col ul li::before {
  background: var(--color-accent);
}

/* 交付物条 */
.stage-deliverable {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  padding: 16px 20px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: 16px;
  font-size: 14.5px;
}

.stage-deliverable strong {
  flex-shrink: 0;
  font-weight: 800;
}

.stage-deliverable span {
  color: rgba(255, 255, 255, 0.92);
}

.stage-deliverable-ongoing {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
}

/* ============================================================
   响应式：流程详解页 专属
   ============================================================ */
@media (min-width: 768px) {
  .stage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stage-chip {
    min-width: 160px;
  }
}

@media (min-width: 1024px) {
  .stage-card {
    padding: 40px 44px;
  }
}

/* ============================================================
   自用接单手册（playbook.html）专属样式
   内部文档风格：侧边目录 + 文档主体，不影响官网
   ============================================================ */
.playbook-body {
  background: #f5f6f8;
  color: #1f2937;
}

/* 顶部内部标识条 */
.pb-banner {
  background: #111827;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pb-banner a {
  color: #fff;
  font-weight: 600;
}

/* 整体布局 */
.pb-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  max-width: 1180px;
  margin: 0 auto;
  gap: 32px;
  padding: 32px 24px 64px;
  align-items: start;
}

/* 侧边目录 */
.pb-sidebar {
  position: sticky;
  top: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pb-sidebar-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 10px;
}

.pb-sidebar nav {
  display: flex;
  flex-direction: column;
}

.pb-sidebar nav a {
  font-size: 13.5px;
  color: #4b5563;
  padding: 6px 10px;
  border-radius: 8px;
  line-height: 1.4;
}

.pb-sidebar nav a:hover {
  background: #f3f4f6;
  color: #0f766e;
}

/* 话术库独立页：目录项较多，侧边栏限高滚动 */
.scripts-body .pb-sidebar {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.scripts-body .pb-sidebar nav a {
  font-size: 13px;
  padding: 5px 10px;
}

/* 主体 */
.pb-main {
  min-width: 0;
}

.pb-header h1 {
  font-size: clamp(26px, 4vw, 34px);
  color: #111827;
  margin-bottom: 10px;
}

.pb-lead {
  font-size: 15.5px;
  color: #6b7280;
  line-height: 1.8;
}

/* 章节 */
.pb-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 28px 32px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 24px;
}

.pb-section h2 {
  font-size: 22px;
  color: #111827;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 2px solid #14b8a6;
}

.pb-section h3 {
  font-size: 17px;
  color: #0f766e;
  margin: 26px 0 10px;
  scroll-margin-top: 24px;
}

.pb-text {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.8;
}

/* 列表 */
.pb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.pb-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #374151;
}

.pb-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14b8a6;
}

/* 编号步骤 */
.pb-steplist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0;
  counter-reset: step;
}

.pb-steplist li {
  position: relative;
  padding-left: 44px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #374151;
  min-height: 32px;
}

.pb-steplist li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 提示块 */
.pb-callout {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #065f46;
  margin: 14px 0;
}

.pb-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: #92400e;
  margin: 14px 0;
}

/* 公式 */
.pb-formula {
  background: #f0fdfa;
  border: 1px dashed #5eead4;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #0f766e;
  text-align: center;
  margin: 12px 0;
}

/* 表格 */
.pb-table-wrap {
  overflow-x: auto;
  margin: 14px 0;
}

.pb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.pb-table th,
.pb-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: left;
  line-height: 1.6;
}

.pb-table th {
  background: #f9fafb;
  font-weight: 700;
  color: #111827;
}

.pb-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* 催款时间线 */
.pb-timeline {
  position: relative;
  margin: 16px 0;
  padding-left: 8px;
}

.pb-tl-item {
  position: relative;
  padding: 0 0 20px 28px;
}

.pb-tl-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: -2px;
  width: 2px;
  background: #e5e7eb;
}

.pb-tl-item:last-child::before {
  display: none;
}

.pb-tl-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #14b8a6;
  border: 3px solid #ccfbf1;
}

.pb-tl-item strong {
  display: block;
  font-size: 15px;
  color: #111827;
  margin-bottom: 4px;
}

.pb-tl-item p {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.7;
}

/* 话术卡片 */
.pb-script {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 12px 0;
  position: relative;
}

.pb-script p {
  font-size: 14.5px;
  line-height: 1.85;
  color: #374151;
}

.pb-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #0d9488;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ========== 话术库增强：使用指南 ========== */
.pb-guide {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.pb-guide-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 8px;
}

.pb-guide ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pb-guide li {
  font-size: 13.5px;
  line-height: 1.9;
  color: #374151;
  padding-left: 16px;
  position: relative;
}

.pb-guide li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: #0d9488;
  font-weight: 700;
}

/* 占位符样式 */
.pb-ph {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12.5px;
  padding: 1px 6px;
  border-radius: 5px;
}

/* 快速检索索引 */
.pb-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.pb-index a {
  font-size: 13px;
  color: #0d9488;
  background: #fff;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  padding: 5px 12px;
  text-decoration: none;
  transition: all .15s ease;
}

.pb-index a:hover {
  background: #0d9488;
  color: #fff;
}

/* 阶段分组标题 */
.pb-phase-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #0d9488, #14b8a6);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 36px 0 6px;
}

/* 对象/风格标签 */
.pb-tag-obj { background: #6366f1; }
.pb-tag-style { background: #8b5cf6; }
.pb-tag-channel { background: #0ea5e9; }

/* 场景说明 */
.pb-scene-desc {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.8;
  background: #f9fafb;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 6px 0 12px;
}

.pb-scene-desc strong { color: #374151; }

/* 注意事项 */
.pb-note {
  display: block;
  font-size: 13px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 14px;
  margin: 10px 0 4px;
  line-height: 1.75;
}

.pb-note strong { color: #78350f; }

/* 话术卡片左侧强调条（轻量） */
.pb-script { transition: box-shadow .15s ease; }
.pb-script:hover { box-shadow: 0 4px 14px rgba(15, 118, 110, .08); }

/* 话术库子标题锚点偏移 */
#scripts h3,
#scripts h4 { scroll-margin-top: 20px; }

#scripts h4 {
  font-size: 15px;
  color: #111827;
  font-weight: 700;
  margin: 20px 0 6px;
}

/* 页脚 */
.pb-footer {
  text-align: center;
  font-size: 13px;
  color: #9ca3af;
  margin-top: 32px;
}

/* ============================================================
   playbook 响应式：窄屏侧边目录隐藏
   ============================================================ */
@media (max-width: 860px) {
  .pb-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px 14px 48px;
  }

  .pb-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .pb-section {
    padding: 22px 18px 26px;
  }
}

/* ---------- 侧边目录：阶段分组标题 ---------- */
.pb-nav-group {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0d9488;
  margin: 14px 0 4px;
  padding: 0 10px;
}

.pb-nav-group:first-child {
  margin-top: 0;
}

/* ---------- 勾选式检查清单 ---------- */
.pb-checklist {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 12px 0;
}

.pb-checklist li {
  font-size: 14.5px;
  line-height: 1.7;
  color: #374151;
}

.pb-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
}

.pb-checklist input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  accent-color: #0d9488;
  cursor: pointer;
}

.pb-checklist input[type="checkbox"]:checked + span {
  color: #9ca3af;
  text-decoration: line-through;
}
