﻿/* ============================================================
   家电维修引流网站 - 全站共享样式（高端精修版）
   设计语言：Fluent 精修风 + 磨砂玻璃 + 层次化渐变 + 微动效
   适配人群：中老年用户（大字号、高对比、大按钮），移动端优先

   【修改指南】
   - 改主色调：只改下面 :root 里的 --color-primary / --accent 等变量
   - 改字号：改 :root 里的 --fs-* 变量
   - 页面文字/图片请到对应 HTML 文件修改（均有 ✏️ 注释）
   ============================================================ */

/* ---------- 1. 全局变量 ---------- */
:root {
  /* 主色：精修蓝（带紫调，更显高端） */
  --color-primary: #1565ff;
  --color-primary-2: #00b4ff;   /* 渐变辅助色 */
  --color-primary-dark: #0a48c4;
  --accent: #ff7a00;            /* 强调橙：电话/紧急按钮 */
  --accent-dark: #e05f00;
  --accent-glow: rgba(255, 122, 0, 0.35);

  --ink: #0c1a2b;               /* 深墨蓝：替代纯黑，更柔和高级 */
  --text: #1a2733;              /* 正文文字 */
  --text-secondary: #5b6b7a;    /* 次要文字 */
  --bg: #ffffff;
  --bg-soft: #f4f7fb;           /* 浅蓝灰背景区块 */
  --border: #e4ebf3;
  --white: #ffffff;
  --card-shadow: 0 10px 30px -12px rgba(13, 40, 80, 0.18);
  --card-shadow-hover: 0 22px 48px -16px rgba(13, 40, 80, 0.30);

  --fs-base: 18px;
  --fs-lg: 22px;
  --fs-h3: 24px;
  --fs-h2: 34px;
  --fs-hero: 46px;

  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);  /* 高级缓动 */
}

/* ---------- 2. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
ul { list-style: none; }

/* ---------- 3. 通用工具类 ---------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }

/* 小标签（eyebrow）：分区标题上方的精致引导词 */
.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(21,101,255,0.10), rgba(0,180,255,0.10));
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-title {
  font-size: var(--fs-h2);
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, var(--ink), #2b4a7a 70%, var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  margin-bottom: 48px;
}

/* 按钮：大尺寸，圆角，精致阴影 */
.btn {
  display: inline-block;
  padding: 15px 40px;
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  text-align: center;
  min-height: 54px;
  line-height: 1.2;
  font-family: inherit;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #2f86ff);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(21,101,255,0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(21,101,255,0.65); }

.btn-phone {
  background: linear-gradient(135deg, var(--accent), #ff9a3d);
  color: var(--white);
  box-shadow: 0 10px 26px -8px var(--accent-glow);
}
.btn-phone:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -10px var(--accent-glow); }

.btn-outline {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
}
.btn-outline:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }

/* ---------- 4. 顶部导航栏（磨砂玻璃） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(228,235,243,0.9);
}

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

/* 🔰 品牌区：logo 图片 + 完整品牌文字组合（移动端折叠菜单同样使用此组合） */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo {
  height: 32px;
  width: auto;
  border-radius: 6px;
  display: block;
}
.brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}
/* 🖼️ [后台可编辑] 品类图标图片：由 js/bind.js 按 site-config.js 注入，加载失败保留 emoji */
.category-icon-img { width: 44px; height: 44px; object-fit: contain; }

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

.nav-links a {
  position: relative;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  padding: 8px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2));
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-phone {
  display: inline-block;
  border: none;
  font-family: inherit;
  cursor: pointer;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #ff9a3d);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 8px 20px -8px var(--accent-glow);
  transition: transform .2s var(--ease);
}
.nav-phone:hover { transform: translateY(-2px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ---------- 5. Hero 首屏（层次化渐变 + 光晕 + 网格） ---------- */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0,180,255,0.35), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(21,101,255,0.30), transparent 55%),
    linear-gradient(135deg, #0b1f3a 0%, #103a6b 55%, #1565ff 120%);
  color: var(--white);
}
/* 网格底纹 */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 80%);
}
/* 漂浮光晕球 */
.hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(0,180,255,0.55), transparent 70%);
  filter: blur(20px);
  animation: floatOrb 9s ease-in-out infinite;
}
@keyframes floatOrb {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(28px) scale(1.08); }
}

.hero-content { position: relative; z-index: 2; max-width: 660px; padding: 90px 0; }

/* 首屏顶部徽标小药丸 */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
  padding: 8px 18px; border-radius: 999px;
  font-size: 16px; font-weight: 600; margin-bottom: 22px;
}
.hero-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.3); }

.hero-kicker { font-size: 19px; opacity: .9; margin-bottom: 10px; font-weight: 600; letter-spacing: 1px; }
.hero-title { font-size: var(--fs-hero); font-weight: 800; line-height: 1.22; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-desc { font-size: var(--fs-lg); margin-bottom: 34px; opacity: .95; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 6. 特色保障（玻璃卡片） ---------- */
.features { padding: 80px 0; background: var(--bg-soft); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.feature-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 22px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-item:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.feature-icon {
  width: 76px; height: 76px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(21,101,255,0.12), rgba(0,180,255,0.12));
}
/* 服务优势真人图片：填满原有 76×76 圆角区域，object-fit:cover 保证不变形、不溢出 */
.feature-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; }
.feature-item h3 { font-size: 21px; margin-bottom: 8px; color: var(--ink); }
.feature-item p { color: var(--text-secondary); font-size: 16px; }

/* ---------- 7. 卡片网格（渐变描边玻璃感） ---------- */
.cards-section { padding: 84px 0; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 26px;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); border-color: rgba(21,101,255,0.4); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 84px; height: 84px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(21,101,255,0.10), rgba(0,180,255,0.10));
}
.card h3 { font-size: var(--fs-h3); margin-bottom: 10px; color: var(--ink); font-weight: 700; }
.card p { color: var(--text-secondary); margin-bottom: 18px; }
.card-link {
  font-weight: 700; color: var(--color-primary);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .25s var(--ease);
}
.card:hover .card-link { gap: 12px; }

.bg-gray { background: var(--bg-soft); }

/* ---------- 7.1 维修内容·图文缩略卡（数据驱动渲染） ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }

.service-thumb-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-thumb-card:hover { transform: translateY(-8px); box-shadow: var(--card-shadow-hover); border-color: rgba(21,101,255,0.4); }

.stc-media {
  position: relative;
  width: 100%; aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(21,101,255,0.12), rgba(0,180,255,0.12));
  overflow: hidden;
}
/* 缩略图绝对覆盖在容器之上；图加载失败自动隐藏，露出浅蓝渐变底 */
.stc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.stc-body { padding: 22px 22px 26px; }
.stc-body h3 { font-size: var(--fs-h3); color: var(--ink); font-weight: 700; margin-bottom: 10px; }
.stc-body p { color: var(--text-secondary); font-size: 17px; line-height: 1.7; }

/* ---------- 8. 步骤流程 ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step-item {
  position: relative;
  text-align: center; padding: 32px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-item:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: var(--white); font-size: 26px; font-weight: 800;
  margin-bottom: 16px; box-shadow: 0 10px 22px -8px rgba(21,101,255,0.6);
}
.step-item h3 { font-size: 21px; margin-bottom: 8px; color: var(--ink); }
.step-item p { color: var(--text-secondary); font-size: 16px; }

/* ---------- 9. 电话 CTA 横幅 ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(0,180,255,0.25), transparent 60%),
    linear-gradient(135deg, #0b1f3a, #123a6b);
  color: var(--white); padding: 72px 0; text-align: center;
}
.cta-banner h2 { font-size: var(--fs-h2); margin-bottom: 12px; font-weight: 800; }
.cta-banner p { font-size: var(--fs-lg); margin-bottom: 26px; opacity: .92; }
.cta-phone-number {
  font-size: 40px; font-weight: 800; color: #ffc24b;
  letter-spacing: 2px; text-shadow: 0 6px 26px rgba(255,194,75,0.35);
}

/* ---------- 10. 报修表单页 ---------- */
.form-page { padding: 72px 0; }
.form-wrapper {
  position: relative;
  max-width: 660px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 44px 36px;
  overflow: hidden;
}
.form-wrapper::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2), var(--accent));
}

.form-group { margin-bottom: 26px; }
.form-group label { display: block; font-size: 18px; font-weight: 700; margin-bottom: 9px; color: var(--ink); }
.form-group label .required { color: var(--accent); margin-left: 4px; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 15px 18px; font-size: 18px; font-family: inherit;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-height: 54px; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-primary); background: var(--white);
  box-shadow: 0 0 0 4px rgba(21,101,255,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 15px; color: var(--text-secondary); margin-top: 7px; }

.form-group input.error, .form-group select.error { border-color: var(--accent); background: #fff6ef; }
.error-msg { display: none; color: var(--accent-dark); font-size: 15px; margin-top: 7px; font-weight: 600; }
.error-msg.show { display: block; }

.form-submit { width: 100%; font-size: 21px; }

.form-success {
  display: none; background: linear-gradient(135deg, #e9f9ee, #d6f5e3);
  border: 2px solid #46c46a; color: #207a3c;
  border-radius: var(--radius); padding: 30px; text-align: center; font-size: 18px; margin-top: 20px;
}
.form-success.show { display: block; animation: popIn .4s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }

/* ---------- 10.5 报修表单：三级联动 / 两级联动 布局 ---------- */
/* 省市区三级联动：三列并排，移动端自动换行 */
.region-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.region-selects select {
  flex: 1 1 30%; min-width: 120px; width: auto;
  padding: 15px 14px; font-size: 16px; font-family: inherit;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft); min-height: 54px; color: var(--text);
}
.region-selects select:focus {
  outline: none; border-color: var(--color-primary); background: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12);
}
.region-selects select:disabled { opacity: .55; cursor: not-allowed; }
.region-selects select.error { border-color: var(--accent); background: #fff6ef; }

/* 服务类型两级联动：两列并排 */
.category-row { display: flex; gap: 10px; flex-wrap: wrap; }
.category-row select {
  flex: 1 1 45%; min-width: 140px; width: auto;
  padding: 15px 14px; font-size: 16px; font-family: inherit;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft); min-height: 54px; color: var(--text);
}
.category-row select:focus {
  outline: none; border-color: var(--color-primary); background: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12);
}
.category-row select:disabled { opacity: .55; cursor: not-allowed; }
.category-row select.error { border-color: var(--accent); background: #fff6ef; }

/* 「其他」自定义输入框容器（选中其他项时展开） */
.other-input-wrap { margin-top: 12px; }
.other-input-wrap input {
  width: 100%; padding: 15px 18px; font-size: 18px; font-family: inherit;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft); min-height: 54px; color: var(--text);
}
.other-input-wrap input:focus {
  outline: none; border-color: var(--color-primary); background: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 101, 255, 0.12);
}
.other-input-wrap input.error { border-color: var(--accent); background: #fff6ef; }

/* 选填标签 */
.form-optional { color: var(--text-secondary); font-size: 14px; font-weight: 500; margin-left: 6px; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  background: linear-gradient(180deg, #0b1f3a, #07131f);
  color: #c5d2e0; padding: 58px 0 32px; font-size: 16px;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-bottom: 34px; }
.footer-grid h4 { color: var(--white); font-size: 19px; margin-bottom: 16px; }
.footer-grid a { color: #c5d2e0; display: block; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; color: #8aa0b8; font-size: 15px; }

/* ---------- 12. 返回顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 92px;
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: var(--white); font-size: 22px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px -8px rgba(21,101,255,0.6); z-index: 99;
  transition: transform .2s var(--ease);
}
.back-top.show { display: flex; }
.back-top:hover { transform: translateY(-3px); }

/* ---------- 13. 手机端悬浮电话条 ---------- */
.mobile-call-bar { display: none; }

/* ---------- 14. 滚动渐显（高端微动效） ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 900px) {
  .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  :root { --fs-hero: 30px; --fs-h2: 27px; --fs-lg: 20px; }

  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px); padding: 14px 22px 24px; gap: 2px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 15px 0; font-size: 19px; border-bottom: 1px solid var(--border); }
  .nav-links a::after { display: none; }
  .nav-phone { display: none; }
  .float-call { display: none !important; } /* 移动端强制隐藏右下角小圆浮窗，仅保留底部通栏大按钮 */

  .hero { text-align: center; min-height: 460px; }
  .hero-content { padding: 64px 0; margin: 0 auto; }
  .hero-btns { justify-content: center; }

  .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-wrapper { padding: 30px 20px; }

  .mobile-call-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 98; }
  .mobile-call-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 17px 0; font-size: 20px; font-weight: 800; color: var(--white);
    background: linear-gradient(135deg, var(--accent), #ff9a3d);
  }
  body { padding-bottom: 64px; }

  /* 右下角悬浮报修按钮：手机端缩为 48×48，距右下各 20px，不遮挡正文/表单/底部模块 */
  .float-call { right: 20px; bottom: 20px; gap: 0; }
  .float-call .float-call-icon { width: 48px; height: 48px; }
  .float-call .float-call-icon svg { width: 23px; height: 23px; }
  .float-call .float-call-label { display: none; }
}

/* ---------- 16. 尊重无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   17. 科普文章：列表页 + 详情页（数据驱动渲染）
   ============================================================ */

/* ----- 列表页 ----- */
.article-list-page { padding: 40px 0 60px; }
.article-list { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }

.article-card {
  display: flex; gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

/* 缩略图：有图显示图，无图显示渐变占位块（带品类文字，避免破图） */
.article-thumb {
  flex: 0 0 160px; width: 160px; height: 110px;
  border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  display: flex; align-items: center; justify-content: center;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb--ph span { color: #fff; font-size: 15px; padding: 6px 10px; text-align: center; }

.article-card-body { flex: 1; min-width: 0; }
.article-card-title { font-size: var(--fs-h3); margin: 0 0 8px; line-height: 1.4; }
.article-card-title a { color: var(--ink); text-decoration: none; }
.article-card-title a:hover { color: var(--color-primary); }
.article-card-summary { color: var(--text-secondary); font-size: var(--fs-base); line-height: 1.6; margin: 0 0 10px; }
.article-card-meta { color: var(--text-secondary); font-size: 15px; margin: 0; }

/* ----- 详情页 ----- */
.article-detail-page { padding: 36px 0 60px; }
.article-detail {
  max-width: 760px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  box-shadow: var(--card-shadow);
}
.article-title { font-size: var(--fs-h2); line-height: 1.35; margin: 0 0 12px; color: var(--ink); }
.article-date { color: var(--text-secondary); font-size: 16px; margin: 0 0 18px; }
.article-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 20px; }

/* 正文排版：舒适行高，H2/H3 层级清晰（SEO 友好） */
.article-body { font-size: var(--fs-base); line-height: 1.9; color: var(--text); }
.article-body p { margin: 0 0 16px; }
.article-body h2 {
  font-size: var(--fs-lg); margin: 30px 0 12px; color: var(--ink);
  border-left: 4px solid var(--color-primary); padding-left: 12px;
}
.article-body h3 { font-size: 20px; margin: 22px 0 10px; color: var(--ink); }
.article-body a { color: var(--color-primary); }
/* 正文配图：自适应宽度、圆角，避免溢出破坏排版 */
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 16px 0; display: block; }

/* 内链预留位 + 相关文章（强化站内链接与 SEO） */
.article-inlinks, .article-related {
  margin-top: 28px; padding: 18px 20px;
  background: var(--bg-soft); border-radius: var(--radius-sm);
}
.article-inlinks h3, .article-related h3 { font-size: 20px; margin: 0 0 10px; color: var(--ink); }
.article-inlinks ul, .article-related ul { margin: 0; padding-left: 20px; }
.article-inlinks li, .article-related li { margin: 6px 0; }
.article-inlinks a, .article-related a { color: var(--color-primary); text-decoration: none; }
.article-inlinks a:hover, .article-related a:hover { text-decoration: underline; }
.article-back { margin-top: 26px; }
.article-back a { color: var(--color-primary); text-decoration: none; }
.article-empty { text-align: center; padding: 40px; color: var(--text-secondary); }
.article-empty a { color: var(--color-primary); }

/* ----- 分页 ----- */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.pager-btn, .pager-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--white); color: var(--text); text-decoration: none; font-size: 16px;
}
.pager-num.is-active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pager-btn:hover, .pager-num:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pager-btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* 文章页移动端适配 */
@media (max-width: 768px) {
  .article-card { flex-direction: column; }
  .article-thumb { width: 100%; flex-basis: auto; height: 170px; }
  .article-detail { padding: 22px 18px; }
  .article-title { font-size: 26px; }
}

/* 后台接口读取失败时的可见提示（绝不被 .reveal 隐藏，确保运营能看见问题） */
.api-notice {
  background: #fff4e5;
  border: 1px solid #ffb900;
  color: #7a4b00;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 全站右下角悬浮「一键报修」按钮（注入自 js/call-modal.js，复用弹窗） ---------- */
.float-call {
  position: fixed; right: 24px; bottom: 24px; z-index: 9999;  /* 右下角内侧，高于正文/导航/返回顶部；弹窗遮罩 10000 在其之上 */
  display: flex; align-items: center; gap: 10px;
  padding: 0; border: none; cursor: pointer;
  background: transparent;                                      /* 容器透明，仅圆形图标上色 */
  font-family: inherit;
}
.float-call-icon {
  width: 56px; height: 56px; border-radius: 50%;                /* 橙色圆形按钮 56×56 */
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff7a1a, #ff9a3d);
  color: #fff;                                                  /* 内部白色电话图标 */
  flex: 0 0 auto;
  box-shadow: 0 12px 28px -8px rgba(255, 122, 26, 0.6);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.float-call:hover .float-call-icon { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(255, 122, 26, 0.7); }
.float-call:active .float-call-icon { transform: translateY(0); }
.float-call-icon svg { display: block; }
.float-call-label {
  font-size: 13px; font-weight: 700; letter-spacing: .5px;      /* 较小的“一键报修”提示 */
  color: #fff; background: rgba(26, 26, 26, 0.82);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   首页「一键打电话报修」弹窗（纯前端，无后端依赖）
   配色/圆角/字体沿用全站 :root 变量，与网站设计语言保持一致
   ============================================================ */
.call-modal-mask {
  position: fixed; inset: 0; z-index: 10000;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(8, 18, 33, 0.55);   /* 半透明黑色遮罩 */
  backdrop-filter: blur(2px);
  padding: 20px;                         /* 移动端左右安全边距 */
  opacity: 0; transition: opacity .22s ease;
}
.call-modal-mask.is-open { display: flex; opacity: 1; }

.call-modal {
  position: relative;
  width: 100%; max-width: 380px;
  background: var(--white);
  border-radius: var(--radius);          /* 白色圆角卡片 */
  box-shadow: 0 30px 70px -20px rgba(8, 18, 33, 0.5);
  padding: 34px 28px 28px;
  text-align: center;
  transform: translateY(12px) scale(.96);
  transition: transform .24s var(--ease);
}
.call-modal-mask.is-open .call-modal { transform: translateY(0) scale(1); }

.call-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: none; background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 24px; line-height: 1; cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.call-modal-close:hover { background: var(--border); color: var(--ink); }

.call-modal-title {
  margin: 0 0 14px;
  font-size: 20px; font-weight: 700; color: var(--ink);
}
.call-modal-number {
  margin: 0 0 26px;
  font-size: clamp(30px, 9vw, 40px);     /* 移动端自适应放大，醒目易读 */
  font-weight: 800; letter-spacing: 1px;
  color: var(--accent);                  /* 品牌橙突出 */
  word-break: break-all;
}

.call-modal-actions {
  display: flex; gap: 12px;
}
.call-modal-btn {
  flex: 1;
  min-height: 54px;                       /* PC/移动端点击高度均 ≥48px */
  padding: 0 18px;
  font-size: 17px; font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.call-modal-btn:active { transform: scale(.97); }

/* 主按钮：品牌橙填充（复制号码） */
.call-modal-btn--primary {
  background: linear-gradient(135deg, var(--accent), #ff9a3d);
  color: var(--white);
  border: none;
  box-shadow: 0 10px 24px -8px var(--accent-glow);
}
.call-modal-btn--primary:hover { transform: translateY(-2px); }

/* 次按钮：浅灰边框 + 深色文字（直接拨打） */
.call-modal-btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--border);
}
.call-modal-btn--ghost:hover { background: var(--bg-soft); }

@media (max-width: 768px) {
  .call-modal { padding: 30px 20px 22px; }
  .call-modal-btn { min-height: 50px; font-size: 16px; }  /* 移动端点击高度 ≥48px，避免误触 */
}

/* ---------- 品类图标：真人维修师傅图（替换 emoji） ---------- */
/* 保留原浅蓝渐变图标容器；图片 80×80 居中覆盖，失败回退 emoji */
.card-icon { position: relative; overflow: hidden; }
.card-icon .category-icon-img { position: relative; z-index: 1; width: 80px; height: 80px; object-fit: cover; border-radius: 12px; display: block; }
/* 列表页动态卡片同样使用真人图（.stc-img 已绝对覆盖 emoji 兜底） */
.stc-media .category-icon-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
