/* ============================================
   时光修复师 - 老照片AI修复
   全局样式 · 温暖复古色调 · 响应式
   ============================================ */

/* --- CSS 变量 --- */
:root {
  --color-cream: #fdf6ed;
  --color-warm: #f5e6d3;
  --color-gold: #c8963e;
  --color-gold-dark: #a67c2e;
  --color-brown: #5c3d2e;
  --color-brown-light: #8b6f55;
  --color-text: #2c2c2c;
  --color-text-light: #6b5e53;
  --color-white: #ffffff;
  --color-bg: #fefaf5;
  --color-card: #ffffff;
  --color-border: #e8ddd0;
  --color-accent: #d4a853;
  --color-success: #5a8f3d;
  --color-error: #c0392b;
  --color-tag-bg: #fdf0dc;

  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;

  --shadow-sm: 0 2px 8px rgba(92, 61, 46, 0.08);
  --shadow-md: 0 4px 20px rgba(92, 61, 46, 0.12);
  --shadow-lg: 0 8px 40px rgba(92, 61, 46, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- 导航栏 --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 250, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brown);
  letter-spacing: 1px;
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

/* 导航内联二维码（尺寸 ≤ 1.5× 字体高度 = 30px） */
.nav-qr-trigger {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  line-height: 0;
  margin-left: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-qr-trigger:hover { transform: scale(1.08); opacity: 0.9; }
.nav-qr-trigger:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.nav-qr-img {
  height: 42px;   /* 已按需求放大（原 30px） */
  width: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

/* 扫码弹窗 */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.qr-modal.is-open { display: flex; }
.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.62);
  backdrop-filter: blur(2px);
}
.qr-modal-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px 24px;
  width: 320px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: qrPop 0.22s ease-out;
}
@keyframes qrPop {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.qr-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #999;
  cursor: pointer;
}
.qr-modal-close:hover { color: #555; }
.qr-modal-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brown);
}
.qr-modal-sub {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}
.qr-modal-img {
  width: 280px;
  height: 280px;
  margin: 18px auto 16px;
  display: block;
  border-radius: 10px;
  border: 1px solid #eee;
  background: #fff;
}
.qr-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.qr-btn {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--color-gold);
  background: #fff;
  color: var(--color-brown);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.qr-btn:hover { background: #faf3e6; }
.qr-btn-primary {
  background: var(--color-gold);
  color: #2b2118;
}
.qr-btn-primary:hover { background: var(--color-accent); color: #fff; }
.qr-modal-tip {
  font-size: 12px;
  color: #aaa;
  margin-top: 14px;
}

/* Toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: rgba(43, 33, 24, 0.92);
  color: #fff;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  z-index: 3000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  animation: toastIn 0.25s ease;
  max-width: 88vw;
  text-align: center;
}
.toast.error { background: rgba(180, 50, 40, 0.94); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--color-text-light);
  transition: all 0.25s;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-brown);
  background: var(--color-warm);
}

.nav-cta {
  background: var(--color-gold) !important;
  color: white !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--color-gold-dark) !important;
  color: white !important;
}

/* 移动端汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-brown);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- 主内容 --- */
.main {
  flex: 1;
  margin-top: var(--nav-height);
}

/* --- Section 通用 --- */
.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: var(--color-tag-bg);
  color: var(--color-gold-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- 按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  font-family: var(--font-body);
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  color: white;
  box-shadow: 0 4px 16px rgba(200, 150, 62, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  box-shadow: 0 6px 24px rgba(200, 150, 62, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-brown);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-warm);
  border-color: var(--color-gold-dark);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 14px;
}

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

/* --- Hero 区域 --- */
.hero {
  padding: 100px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--color-brown);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
  text-align: justify;
  text-justify: inter-character;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero 对比图区域 */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-compare {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3/4;
  background: var(--color-brown);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-compare img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-compare .before-img {
  z-index: 1;
}

.hero-compare .after-img {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.01s;
}

.hero-compare .slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.hero-compare .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  cursor: ew-resize;
  font-size: 18px;
  color: var(--color-brown);
}

.hero-compare .label {
  position: absolute;
  bottom: 16px;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  z-index: 5;
  pointer-events: none;
}

.hero-compare .label.before {
  left: 16px;
  background: rgba(0,0,0,0.5);
  color: white;
}

.hero-compare .label.after {
  right: 16px;
  background: rgba(200,150,62,0.9);
  color: white;
}

/* --- 信任条 --- */
.trust-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--color-text-light);
}

.trust-item .icon {
  font-size: 24px;
}

.trust-item strong {
  color: var(--color-brown);
}

/* --- 卡片网格 --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* 核心优势区：6项 = 上下各3项对称布局 */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* 增值服务区：flex 居中排列，最后一行（不足4项）自动居中，10项呈 4+4+2 */
.value-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.value-grid .card {
  flex: 0 0 calc(25% - 18px);
  max-width: calc(25% - 18px);
}

.card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
  text-align: center;
}

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

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--color-tag-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-brown);
  margin-bottom: 10px;
  font-weight: 700;
}

.card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- 流程步骤 --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--color-text-light);
}

.step::after {
  content: '→';
  position: absolute;
  right: -24px;
  top: 18px;
  font-size: 22px;
  color: var(--color-gold);
  font-weight: 700;
}

.step:last-child::after {
  display: none;
}

/* --- 案例对比卡片 --- */
.case-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.case-compare {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--color-brown);
  overflow: hidden;
  cursor: ew-resize;
}

.case-compare img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-compare .before-img {
  z-index: 1;
}

.case-compare .after-img {
  z-index: 2;
}

.case-compare .slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: white;
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.case-compare .slider-handle {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  pointer-events: none;
  font-size: 16px;
  color: var(--color-brown);
}

.case-compare .label {
  position: absolute;
  bottom: 20px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 5;
  pointer-events: none;
}

.case-compare .label.before {
  left: 20px;
  background: rgba(0,0,0,0.55);
  color: white;
}

.case-compare .label.after {
  right: 20px;
  background: rgba(200,150,62,0.92);
  color: white;
}

.case-info {
  padding: 28px 32px;
}

.case-info h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.case-info .case-story {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.case-info .case-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.case-tag {
  background: var(--color-tag-bg);
  color: var(--color-gold-dark);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

/* --- 上传区域 --- */
.upload-section {
  max-width: 720px;
  margin: 0 auto;
}

.upload-zone {
  border: 2px dashed var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  background: var(--color-tag-bg);
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 32px;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--color-gold-dark);
  background: #fdf0dc;
  transform: scale(1.01);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.upload-zone h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.upload-zone p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.upload-zone .hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 16px;
}

.upload-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- 表单 --- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  transition: all 0.25s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200,150,62,0.1);
}

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

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

/* --- 定价卡片 --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pricing-card.featured {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.04) translateY(-3px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: white;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--color-brown);
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-light);
}

.pricing-unit {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: #c4c4c4;
}

.pricing-features li.disabled::before {
  content: '—';
  color: #ccc;
}

/* --- 关于页 --- */
.about-hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 720px;
  margin: 0 auto;
}

.about-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-brown);
  margin-bottom: 24px;
}

.about-hero p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.9;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.about-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  text-align: center;
}

.about-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-brown);
  margin-bottom: 10px;
}

.about-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--color-brown);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: white;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 12px;
}

/* 工信部备案号链接 */
.footer-bottom .beian {
  display: inline-block;
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-bottom .beian:hover,
.footer-bottom .beian:focus-visible {
  color: #fff;
  text-decoration: underline;
}

/* --- Toast 提示 --- */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-success);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: none;
}

.toast.error {
  background: var(--color-error);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* --- 品牌素材样式（SVG矢量图标） --- */
.nav-logo-img {
  height: 20px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
  opacity: 0.9;
}

.footer-logo-mark {
  width: 80px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-wordmark {
  display: block;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #F2EAD9;
  margin-bottom: 10px;
}

.qr-img {
  max-width: 160px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* ─── 视频见证区样式 ─── */
.video-showcase {
  text-align: center;
}
.video-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-brown);
  margin-bottom: 6px;
}
.video-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}
.video-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(92, 61, 46, 0.12);
  background: #000;
}
.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
/* 超宽视频容器（修复流程 2.016:1）*/
.video-wide {
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 1280 / 635;
}
.video-wide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 对比视频并列网格 */
.video-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.video-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(92, 61, 46, 0.18);
}
.video-card .video-wrapper {
  aspect-ratio: 4 / 3;
  box-shadow: none;
  border-radius: 0;
}
.video-card .video-wrapper video {
  border-radius: 0;
}
.video-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-brown);
  padding: 14px 18px 4px;
  margin: 0;
}
.video-card-desc {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 0 18px 16px;
  margin: 0;
}

/* --- 响应式 --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 60px 24px 50px;
  }

  .hero-desc { max-width: none; }
  .hero-actions { justify-content: center; }

  .hero-compare { max-width: 380px; margin: 0 auto; }

  .trust-bar { gap: 32px; }

  .steps { gap: 24px; }
  .step::after { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-card.featured {
    transform: none;
  }
  .pricing-card.featured:hover {
    transform: translateY(-3px);
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 90px 24px 24px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: right 0.3s;
    z-index: 999;
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
  }

  .nav-toggle { display: flex; }

  .hero { padding: 40px 20px 30px; }

  .section { padding: 48px 20px; }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* --- 页面遮罩（移动端菜单） --- */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 998;
}

.nav-overlay.open { display: block; }

/* ═════════════════ 移动端增强响应式 ═════════════════ */

/* --- 平板优化 (≤900px) 补充 --- */
@media (max-width: 900px) {
  /* 案例滑块：稍高以适配横屏平板 */
  .case-compare { aspect-ratio: 4/3; }
  .hero-compare { max-width: 420px; }
  /* 联系卡片内边距缩减 */
  #contact .card { padding: 24px 18px; }
  /* 增值服务区：平板改为2列 */
  .value-grid .card { flex-basis: calc(50% - 12px); max-width: calc(50% - 12px); }
  /* 核心优势区：平板改为2列 */
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  /* 视频区：平板微调 */
  .video-compare-grid { gap: 20px; }
  .video-wide { max-width: 100%; }
  /* 导航内联二维码：放大（原 24px） */
  .nav-qr-img { height: 34px; }
}

/* --- 手机端 (≤640px) 全面优化 --- */
@media (max-width: 640px) {
  /* ① 导航Logo缩小 */
  .nav-logo { font-size: 16px; gap: 8px; }
  .nav-logo-img { height: 16px; }

  /* ② 章节标题字号缩减 */
  .section-title { font-size: 24px !important; }
  .section-subtitle { font-size: 14px; }

  /* ③ 案例滑块：更高比例 + 触控友好手柄 */
  .case-compare { aspect-ratio: 4/3; }
  .case-compare .slider-handle,
  .hero-compare .slider-handle {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  /* 标签字号缩小 */
  .case-compare .label,
  .hero-compare .label {
    font-size: 12px;
    padding: 3px 10px;
    bottom: 12px;
  }

  /* ④ 案例信息区内边距与字号 */
  .case-info { padding: 20px 16px; }
  .case-info h3 { font-size: 19px; }
  .case-info .case-story { font-size: 14px; }
  .case-card { margin-bottom: 36px; }

  /* ⑤ Footer品牌区缩小 */
  .footer-brand h3 { font-size: 18px; }
  .footer-logo-mark { width: 64px; }
  .footer-wordmark { font-size: 15px; letter-spacing: 1px; }
  .footer-logo-full { max-width: 140px; }  /* 兼容旧引用 */

  /* ⑥ 联系卡片堆叠 + 缩小 */
  #contact .card-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  #contact .card { padding: 20px 14px; }
  .qr-img { max-width: 120px; }

  /* ⑦ 按钮touch-friendly */
  .btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
  }
  .btn-lg { padding: 14px 28px; font-size: 16px; }

  /* ⑧ Hero区域微调 */
  .hero-compare { max-width: 100%; }

  /* ⑨ Pricing卡片间距 */
  .pricing-grid { gap: 16px; }

  /* ⑩ 表单元素触控优化 */
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  select,
  textarea {
    min-height: 44px;
    font-size: 16px;  /* 防止iOS缩放 */
  }

  /* ⑪ 增值服务区：手机改为2列 */
  .value-grid { gap: 16px; }
  .value-grid .card { flex-basis: calc(50% - 8px); max-width: calc(50% - 8px); }
  /* 视频区：手机改为单列堆叠 */
  .video-compare-grid { grid-template-columns: 1fr; gap: 24px; }
  .video-title { font-size: 17px; }
  .video-showcase { margin-bottom: 32px; }
}

/* --- 超小屏 (≤480px) 兜底 --- */
@media (max-width: 480px) {
  .nav-logo { font-size: 14px; }
  .nav-logo-img { height: 14px; }
  /* 导航内联二维码：放大（原 21px） */
  .nav-qr-img { height: 30px; }
  .section-title { font-size: 22px !important; }
  .section-tag { font-size: 11px; padding: 4px 10px; }
  .case-info h3 { font-size: 17px; }
  .case-info .case-story { font-size: 13px; }
  .case-tags { flex-wrap: wrap; }
  .case-tag { font-size: 11px; padding: 3px 8px; }
  .footer-col { text-align: center; }
  .value-grid .card { flex-basis: 100%; max-width: 100%; }
  /* 核心优势区：超小屏改为单列 */
  .advantage-grid { grid-template-columns: 1fr; }
  /* 视频区超小屏 */
  .video-card-title { font-size: 14px; padding: 10px 14px 2px; }
  .video-card-desc { font-size: 12px; padding: 0 14px 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   体验升级 · 滚动揭示 / 无障碍降级 / 微交互 / 回到顶部 / 滚动进度 / FAQ手风琴 / 案例筛选 / Hero氛围
   ═══════════════════════════════════════════════════════════════ */

/* --- 滚动揭示：仅当 <html>.js 时隐藏，JS 失败则内容天然可见（渐进增强）--- */
.js .reveal-on-scroll {
  opacity: 0;
}
.js .reveal-on-scroll.is-visible {
  animation: revealUp .7s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes revealUp {
  from { opacity: 0; translate: 0 26px; }
  to   { opacity: 1; translate: 0 0; }
}

/* --- 无障碍：尊重「减少动态效果」系统偏好 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal-on-scroll { opacity: 1 !important; translate: 0 0 !important; animation: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- 导航链接下划线微交互 --- */
.nav-links a { position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: 6px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).active::after { transform: scaleX(1); }

/* --- 按钮按压反馈 --- */
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary:active { transform: translateY(1px) scale(.985); }
.btn-outline:active { transform: translateY(1px) scale(.985); }

/* --- 顶部滚动进度条 --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  z-index: 1100;
  transition: width .12s linear;
}
@media (max-width: 640px) { .scroll-progress { height: 2px; } }

/* --- 回到顶部 --- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-gold);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .2s ease;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-gold-dark); }
.back-to-top:active { transform: scale(.94); }
@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 18px; }
}

/* --- 定价页 FAQ 手风琴 --- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item + .faq-item { margin-top: 14px; }
.faq-item.open { border-color: var(--color-gold); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-brown);
}
.faq-q .faq-icon {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--color-gold);
  transition: transform .3s ease;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a-inner {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.85;
}

/* --- 案例筛选标签 --- */
.case-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}
.case-filter button {
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-light);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .25s ease;
}
.case-filter button:hover { border-color: var(--color-gold); color: var(--color-brown); }
.case-filter button.active { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }
.case-card.hide { display: none; }

/* --- Hero 氛围光与向下提示（轻量视觉增强）--- */
.hero { position: relative; }
.hero-compare::after {
  content: '';
  position: absolute;
  inset: -8% -8% auto -8%;
  height: 62%;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 150, 62, .20), transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-text-light);
  font-size: 12px;
  letter-spacing: 2px;
  opacity: .7;
  animation: cueBob 1.8s ease-in-out infinite;
  pointer-events: none;
}
.scroll-cue .arrow { font-size: 18px; }
@keyframes cueBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: none; } }
@media (max-width: 900px) { .scroll-cue { display: none; } }
