/**
 * 安心生活服务 — 家政服务企业站样式
 * 清新绿色调 + 大圆角 + 大留白 + 温暖亲切
 * 纯原生 CSS，无框架依赖
 * 遵循 PBootCMS_AI开发规范 V3.6
 */

/* Google Fonts — 优雅中文字体 */


/* ============================================================
   CSS 变量体系
   ============================================================ */
:root {
  /* 主色系 — 清新绿 */
  --green-primary: #4A7C59;
  --green-light: #6B9A7A;
  --green-pale: #E8F5E9;
  --green-dark: #2E5A3A;
  --green-bright: #5DAE6E;

  /* 暖黄点缀 */
  --warm-yellow: #F9A826;
  --warm-yellow-light: #FFF8E7;

  /* 灰色系 */
  --gray-bg: #F7F8FA;
  --gray-light: #E8ECF1;
  --gray-border: #DDE1E7;
  --gray-text: #6B7280;
  --gray-muted: #9CA3AF;

  /* 基础色 */
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid: #4A5568;
  --text-light: #718096;

  /* 圆角 — 大圆角亲切感 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* 阴影 */
  --shadow-sm: 0 1px 8px rgba(0,0,0,0.04);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(74,124,89,0.12);
  --shadow-green: 0 4px 20px rgba(74,124,89,0.15);

  /* 间距 */
  --section-py: 80px;
  --container-max: 1200px;
  --header-h: 72px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 字体 */
  --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --font-body: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
  background: var(--white);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(74, 124, 89, 0.18);
  color: var(--green-dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: var(--green-primary); }

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

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

input::placeholder, textarea::placeholder {
  color: var(--gray-muted);
  opacity: 1;
}

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green-primary);
  background: var(--green-pale);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-text);
  max-width: 560px;
  line-height: 1.7;
}

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

.section {
  padding: var(--section-py) 0;
}

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

.section--green {
  background: var(--green-pale);
}

/* ============================================================
   Header — 白色实底+绿色点缀
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--green-primary), var(--green-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.header__logo-sub {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  font-weight: 500;
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--green-primary);
  background: var(--green-pale);
}

/* 导航下拉 (13.3: z-index) */
.header__nav-item {
  position: relative;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60; /* 13.3: 必须够高 */
}

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-mid);
  transition: all var(--duration-fast);
}

.header__dropdown a:hover {
  color: var(--green-primary);
  background: var(--green-pale);
}

/* 头部右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: var(--green-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.header__cta:hover {
  background: var(--green-dark);
  color: #fff;
  box-shadow: var(--shadow-green);
  transform: translateY(-1px);
}

/* ============================================================
   汉堡菜单 — 独立于 header__actions (13.4)
   ============================================================ */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

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

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 340px;
  background: var(--white);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
  box-shadow: 4px 0 30px rgba(0,0,0,0.1);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav__inner {
  padding: 24px;
  padding-top: 80px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--green-primary);
  background: var(--green-pale);
}

.mobile-nav__sub {
  padding-left: 16px;
  display: none;
}

.mobile-nav__sub.open {
  display: block;
}

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--gray-text);
  border-radius: var(--radius-sm);
}

.mobile-nav__sub a:hover {
  color: var(--green-primary);
}

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.mobile-nav__overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary {
  background: var(--green-primary);
  color: #fff !important;
}

.btn--primary:hover {
  background: var(--green-dark);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}

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

.btn--outline:hover {
  background: var(--green-primary);
  color: #fff !important;
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--green-primary);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  background: var(--green-pale);
  color: var(--green-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--pulse {
  animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(74,124,89,0.4); }
  70% { box-shadow: 0 0 0 14px rgba(74,124,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,124,89,0); }
}

/* ============================================================
   卡片系统 — 纯白+绿色细边框+hover上浮
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: block;
  color: inherit;
}

.card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  color: inherit;
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-bg);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img {
  transform: scale(1.06);
}

.card__body {
  padding: 20px 24px;
}

.card__tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-primary);
  background: var(--green-pale);
  border-radius: 100px;
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.card__desc {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-light);
  font-size: 0.82rem;
  color: var(--gray-muted);
}

.card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-top: 8px;
}

/* 服务分类卡片 — 图标居中 */
.card--icon {
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius-lg);
}

.card--icon .card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: var(--radius-full);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--green-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.card--icon:hover .card__icon {
  background: var(--green-primary);
  color: #fff;
  transform: scale(1.1);
}

.card--icon .card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.card--icon .card__brief {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.5;
}

/* ============================================================
   Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 520px;
  max-height: 700px;
  overflow: hidden;
  margin-top: var(--header-h);
}

.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .swiper-slide {
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.1) 40%,
    rgba(0,0,0,0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 32px;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero Swiper 分页器 */
.hero-pagination {
  position: absolute;
  bottom: 32px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-pagination .swiper-pagination-bullet {
  width: 32px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255,255,255,0.4) !important;
  opacity: 1 !important;
  transition: all var(--duration-normal);
  margin: 0 !important;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 48px !important;
  background: var(--green-primary) !important;
}

/* ============================================================
   首页 — 数据统计
   ============================================================ */
.stats-section {
  background: var(--green-pale);
  border-top: 1px solid rgba(74,124,89,0.1);
  border-bottom: 1px solid rgba(74,124,89,0.1);
  padding: 50px 0;
}

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

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--green-primary);
  font-weight: 500;
}

/* ============================================================
   首页 — 服务流程
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 32px 20px;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 48px;
  right: -12px;
  width: 24px;
  height: 2px;
  background: var(--gray-border);
}

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

.process-step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-primary);
  position: relative;
  z-index: 1;
  transition: all var(--duration-normal) var(--ease-out);
}

.process-step:hover .process-step__num {
  background: var(--green-primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: var(--shadow-green);
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.process-step__desc {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.5;
}

/* ============================================================
   首页 — 资质保障
   ============================================================ */
.guarantees {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.guarantee-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.guarantee-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.guarantee-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: var(--radius-full);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--green-primary);
  transition: all var(--duration-normal);
}

.guarantee-card:hover .guarantee-card__icon {
  background: var(--green-primary);
  color: #fff;
}

.guarantee-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.guarantee-card__desc {
  font-size: 0.84rem;
  color: var(--gray-text);
  line-height: 1.5;
}

/* ============================================================
   首页 — CTA
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
  padding: 70px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(circle at 70% 30%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-section p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 28px;
  position: relative;
}

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: var(--green-dark);
  margin-top: var(--header-h);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,90,58,0.7) 0%, rgba(46,90,58,0.5) 50%, rgba(46,90,58,0.85) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

.inner-banner__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.inner-banner__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}

/* 面包屑 */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--gray-muted);
}

.breadcrumb a {
  color: var(--gray-text);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover { color: var(--green-primary); }

.breadcrumb i {
  font-size: 0.65rem;
  color: var(--gray-muted);
}

/* ============================================================
   子栏目过滤栏
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar a {
  display: inline-flex;
  padding: 8px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid var(--gray-border);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--green-primary);
  border-color: var(--green-primary);
  background: var(--green-pale);
}

/* ============================================================
   列表网格
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.list-header {
  text-align: center;
  margin-bottom: 40px;
}

.list-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 900px;
  margin: 0 auto;
}

.detail__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.detail__title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 12px;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--gray-muted);
}

.detail__meta-row i {
  margin-right: 4px;
  color: var(--green-primary);
}

/* 详情参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.detail__param {
  padding: 18px;
  background: var(--green-pale);
  border: 1px solid rgba(74,124,89,0.12);
  border-radius: var(--radius-md);
  text-align: center;
}

.detail__param-label {
  font-size: 0.75rem;
  color: var(--green-primary);
  margin-bottom: 4px;
  font-weight: 500;
}

.detail__param-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* 服务详情 — 左图右文 */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-bg);
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-info h2 {
  margin-bottom: 16px;
}

.service-detail-info .ext-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
}

.service-detail-info .ext-item:last-child {
  border-bottom: none;
}

.ext-item__label {
  font-weight: 600;
  color: var(--green-primary);
  min-width: 80px;
  flex-shrink: 0;
}

.ext-item__value {
  color: var(--text-mid);
  line-height: 1.6;
}

/* 详情正文 */
.detail__body {
  color: var(--text-mid);
  line-height: 2;
  font-size: 0.95rem;
}

.detail__body img {
  border-radius: var(--radius-md);
  margin: 24px 0;
  max-width: 100%;
}

.detail__body p { margin-bottom: 16px; }
.detail__body h3, .detail__body h4 {
  color: var(--text-dark);
  margin-top: 24px;
  margin-bottom: 12px;
}

/* 上下篇 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-light);
  font-size: 0.88rem;
  color: var(--gray-muted);
  gap: 12px;
  flex-wrap: wrap;
}

.detail__pager a {
  color: var(--text-mid);
}

.detail__pager a:hover {
  color: var(--green-primary);
}

/* 相关推荐 */
.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 48px 0 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   团队卡片
   ============================================================ */
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

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

.team-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-bg);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.05);
}

.team-card__info {
  padding: 20px;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--green-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card__exp {
  font-size: 0.8rem;
  color: var(--gray-muted);
}

/* ============================================================
   评价卡片
   ============================================================ */
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration-normal) var(--ease-out);
}

.review-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.review-card__stars {
  color: var(--warm-yellow);
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.review-card__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.review-card__service {
  font-size: 0.8rem;
  color: var(--gray-muted);
}

/* ============================================================
   新闻列表条目
   ============================================================ */
.news-item {
  display: flex;
  gap: 20px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  margin-bottom: 12px;
}

.news-item:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-sm);
  color: inherit;
}

.news-item__thumb {
  width: 140px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-bg);
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-item__date {
  font-size: 0.8rem;
  color: var(--gray-muted);
  margin-bottom: 6px;
}

.news-item__desc {
  font-size: 0.88rem;
  color: var(--gray-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   联系我们
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: all var(--duration-fast);
}

.contact-info__item:hover {
  border-color: var(--green-light);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 0.88rem;
  color: var(--gray-text);
}

/* 联系表单卡片 */
.contact-form-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   表单样式
   ============================================================ */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-group label .required {
  color: #E53E3E;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
  background: var(--white);
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box {
  max-width: 640px;
  margin: 0 auto;
}

.search-form-row {
  display: flex;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-muted);
}

.search-input-wrap input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.1);
}

.search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  margin-bottom: 10px;
}

.search-result-item:hover {
  border-color: var(--green-light);
  color: inherit;
}

.search-result-item__thumb {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-bg);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info { flex: 1; min-width: 0; }

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__date {
  font-size: 0.78rem;
  color: var(--gray-muted);
  margin-bottom: 4px;
}

.search-result-item__desc {
  font-size: 0.85rem;
  color: var(--gray-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 0.88rem;
  color: var(--text-mid);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  background: var(--white);
}

.pagination a:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: var(--green-pale);
}

.pagination .active {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
  font-weight: 600;
}

.pagination .disabled {
  color: var(--gray-muted);
  pointer-events: none;
  opacity: 0.5;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  opacity: 0.5;
}

/* ============================================================
   Footer — 深绿底
   ============================================================ */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 0 36px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 16px 0;
  opacity: 0.7;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}

.footer__social a:hover {
  background: var(--green-light);
  color: #fff;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: #fff;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 10px;
  opacity: 0.75;
}

.footer__contact-item i {
  color: var(--green-light);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__qrcode {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #999;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  opacity: 0.6;
}

.footer__bottom a {
  color: rgba(255,255,255,0.6);
}

.footer__bottom a:hover {
  color: #fff;
}

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
}

.friend-links__label {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.friend-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--duration-fast);
}

.friend-links a:hover {
  color: #fff;
}

/* ============================================================
   在线客服按钮 — 右下角绿色圆形
   ============================================================ */
.kefu-btn {
  position: fixed;
  right: 24px;
  bottom: 100px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--green-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(74,124,89,0.35);
  transition: all var(--duration-normal) var(--ease-spring);
  border: none;
}

.kefu-btn:hover {
  background: var(--green-dark);
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(74,124,89,0.45);
}

.kefu-btn.pulse {
  animation: kefuPulse 2s infinite;
}

@keyframes kefuPulse {
  0% { box-shadow: 0 4px 20px rgba(74,124,89,0.35); }
  50% { box-shadow: 0 4px 30px rgba(74,124,89,0.6), 0 0 0 12px rgba(74,124,89,0.1); }
  100% { box-shadow: 0 4px 20px rgba(74,124,89,0.35); }
}

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 170px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--gray-light);
  color: var(--gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal);
  box-shadow: var(--shadow-sm);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: var(--green-primary);
  color: #fff;
  border-color: var(--green-primary);
  box-shadow: var(--shadow-green);
}

/* ============================================================
   关于我们页
   ============================================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gray-bg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 14px;
}

/* 资质徽章 */
.badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--green-pale);
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--green-primary);
}

.badge i {
  font-size: 1rem;
}

/* ============================================================
   预约页
   ============================================================ */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ============================================================
   动画
   ============================================================ */

/* 卡片入场动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-aos="fade-up"] {
  transition-timing-function: var(--ease-out);
}

/* 数字滚动 */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 标题入场 */
@keyframes fadeInUpShort {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  animation: fadeInUpShort 0.8s var(--ease-out) both;
}

.hero__subtitle {
  animation: fadeInUpShort 0.8s var(--ease-out) 0.15s both;
}

.hero__actions {
  animation: fadeInUpShort 0.8s var(--ease-out) 0.3s both;
}

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 56px; }

  .header__nav,
  .header__actions {
    display: none;
  }

  .hamburger { display: flex; }

  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .guarantees { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .list-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about-section { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }

  .process-step::after { display: none; }
}

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 48px; }

  body { font-size: 14px; }

  .hero {
    height: 70vh;
    min-height: 400px;
  }

  .inner-banner {
    height: 200px;
  }

  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .guarantees { grid-template-columns: 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .hero__title { font-size: 1.5rem; }
  .section-title { font-size: 1.35rem; }

  .news-item { flex-direction: column; }
  .news-item__thumb { width: 100%; height: 160px; }

  .breadcrumb { font-size: 0.78rem; }

  .detail__pager { flex-direction: column; text-align: center; }
  .detail__params { grid-template-columns: repeat(2, 1fr); }

  .search-form-row { flex-direction: column; }
  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 140px; }

  .kefu-btn { right: 16px; bottom: 80px; width: 48px; height: 48px; font-size: 1.2rem; }
  .back-top { right: 16px; bottom: 140px; }

  .contact-form-card { padding: 24px; }
}

/* ============================================================
   移动端专项修复 (2026-09-02) —— 仅作用于 <1024 布局，PC(>=1024) 不变
   ============================================================ */

/* 表单双列行容器（配合模板 .form-row 使用） */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* 首页“核心服务分类”网格：PC 保持 5 列（替代原内联样式） */
.navgrid {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1023px) {
  .navgrid { grid-template-columns: repeat(3, 1fr); }

  /* 热门服务：<1024 一律 2 列两行(前4条)，隐藏第5/6条；PC(>=1024) 保持 3 列 6 条不变 */
  .hot-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hot-grid > .card:nth-child(n+5) { display: none; }
  /* 压缩卡片：图片略矮、内边距/字号整体收窄 */
  .hot-grid .card__image { aspect-ratio: 5 / 4; }
  .hot-grid .card__body { padding: 14px 16px 16px; }
  .hot-grid .card__title { font-size: 0.95rem; margin-bottom: 4px; }
  .hot-grid .card__desc { font-size: 0.78rem; line-height: 1.5; -webkit-line-clamp: 1; }
  .hot-grid .card__price { font-size: 1rem; margin-top: 6px; }
}

@media (max-width: 767px) {
  /* 手机进一步收紧：小图、无外阴影(浅边框更轻盈) */
  .hot-grid { gap: 14px; }
  .hot-grid > .card { box-shadow: none; border: 1px solid var(--gray-light); border-radius: var(--radius-md); }
  .hot-grid .card__image { aspect-ratio: 1 / 0.9; }
  .hot-grid .card__body { padding: 10px 12px 12px; }
  .hot-grid .card__tag { font-size: 0.66rem; padding: 2px 7px; margin-bottom: 5px; }
  .hot-grid .card__title { font-size: 0.9rem; }
  .hot-grid .card__desc { font-size: 0.74rem; }
  .hot-grid .card__price { font-size: 0.95rem; }
}

@media (max-width: 767px) {
  /* 内页 Banner：强制手机端紧凑高度，覆盖模板内联高度 */
  .inner-banner { height: 200px !important; }
  .inner-banner__content { padding: 0 16px; }

  /* 表单双列 → 单列 */
  .form-row { grid-template-columns: 1fr; }

  /* 首页分类卡片 5 项 → 3 列两行(3+2)，压缩尺寸但保留简介 */
  .navgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .navgrid .card--icon { padding: 16px 8px; }
  .navgrid .card__icon { width: 46px; height: 46px; font-size: 1.1rem; margin-bottom: 8px; }
  .navgrid .card__name { font-size: 0.92rem; margin-bottom: 4px; }
  .navgrid .card__brief { font-size: 0.68rem; line-height: 1.35; }

  /* 首页统计区(轮播下 4 个方框)：手机端压缩垂直留白与字号 */
  .stats-section { padding: 26px 0; }
  .stats { gap: 14px 18px; }
  .stat-item { padding: 8px 6px; }
  .stat-item__number { font-size: 1.5rem; margin-bottom: 4px; }
  .stat-item__label { font-size: 0.78rem; }
}

/* 服务流程：<1024 手机+平板 4 步挤成一行（覆盖原始 1023→2列 / 767→1列）；PC(>=1024) 保持原 4 列不变 */
@media (max-width: 1023px) {
  .process { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .process-step { padding: 20px 6px; }
  .process-step__num { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 10px; }
  .process-step__title { font-size: 0.92rem; margin-bottom: 5px; }
  .process-step__desc { font-size: 0.72rem; }
}

@media (max-width: 767px) {
  /* 手机更窄：进一步压缩圆点/字号，标题不换行，简介最多 2 行省略 */
  .process { gap: 6px; }
  .process-step { padding: 16px 2px; }
  .process-step__num { width: 34px; height: 34px; font-size: 0.9rem; margin-bottom: 7px; }
  .process-step__title { font-size: 0.88rem; white-space: nowrap; }
  .process-step__desc { font-size: 0.62rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}

/* 服务团队：<1024 压缩（PC>=1024 保持 3 列原样）
   平板(768-1023) → 3 张一行小卡；手机(<768) → 横向"左图右文"列表卡
   文字仅保留 姓名+角色，隐藏 从业X年 */
@media (min-width: 768px) and (max-width: 1023px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .team-grid .team-card__info { padding: 16px 14px 18px; }
  .team-grid .team-card__name { font-size: 1rem; margin-bottom: 3px; }
  .team-grid .team-card__role { font-size: 0.8rem; margin-bottom: 0; }
  .team-grid .team-card__exp { display: none; }
}

@media (max-width: 767px) {
  .team-grid { grid-template-columns: 1fr; gap: 12px; }
  .team-grid .team-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: left;
  }
  /* 团队列表页(/?team/)卡片整体包在 <a> 里：让内层链接也横向排列 */
  .team-grid .team-card > a {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
  }
  .team-grid .team-card__photo {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    aspect-ratio: auto;
    border-radius: var(--radius-md);
  }
  .team-grid .team-card__info { padding: 0; text-align: left; flex: 1; min-width: 0; }
  .team-grid .team-card__name { font-size: 1rem; margin-bottom: 3px; }
  .team-grid .team-card__role { font-size: 0.78rem; margin-bottom: 0; }
  .team-grid .team-card__exp { display: none; }
}

/* 客户评价：<1024 只显示前 2 条并压缩卡片（PC>=1024 保持 3 条原样）
   平板(768-1023) → 2 列一行(恰好2条)；手机(<768) → 单列 2 条紧凑竖排 */
@media (max-width: 1023px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .review-grid > .review-card:nth-child(n+3) { display: none; }
  .review-grid .review-card { padding: 18px 20px; }
  .review-grid .review-card__stars { font-size: 0.8rem; margin-bottom: 8px; }
  .review-grid .review-card__text { font-size: 0.86rem; line-height: 1.55; margin-bottom: 12px; }
  .review-grid .review-card__author { padding-top: 10px; gap: 8px; }
  .review-grid .review-card__avatar { width: 32px; height: 32px; font-size: 0.78rem; }
}

@media (max-width: 767px) {
  .review-grid { grid-template-columns: 1fr; gap: 14px; }
  .review-grid .review-card { padding: 16px 18px; }
  .review-grid .review-card__text { font-size: 0.86rem; }
}

/* 品质保障：<1024 手机+平板 4 项挤成一行（覆盖原始 1023→2列 / 767→1列）；PC(>=1024) 保持原 4 列不变 */
@media (max-width: 1023px) {
  .guarantees { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .guarantee-card { padding: 20px 6px; }
  .guarantee-card__icon { width: 44px; height: 44px; font-size: 1.15rem; margin-bottom: 10px; }
  .guarantee-card__title { font-size: 0.92rem; margin-bottom: 4px; }
  .guarantee-card__desc { font-size: 0.7rem; line-height: 1.45; }
}

@media (max-width: 767px) {
  /* 手机更窄：进一步压缩圆点/字号，标题不换行，说明最多 2 行省略 */
  .guarantees { gap: 6px; }
  .guarantee-card { padding: 16px 2px; }
  .guarantee-card__icon { width: 34px; height: 34px; font-size: 0.95rem; margin-bottom: 7px; }
  .guarantee-card__title { font-size: 0.84rem; white-space: nowrap; }
  .guarantee-card__desc { font-size: 0.58rem; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}

/* 新闻资讯：<1024 首页只显示前 2 条并压缩（PC>=1024 保持 3 条原样）
   手机也维持横向"左图右文"卡（覆盖原始 767→纵向大图），条目变矮更紧凑 */
@media (max-width: 1023px) {
  .news-list .news-item:nth-child(n+3) { display: none; }
  .news-list .news-item { padding: 12px 14px; gap: 14px; margin-bottom: 10px; }
  .news-list .news-item__thumb { width: 108px; height: 84px; }
  .news-list .news-item__title { font-size: 0.95rem; margin-bottom: 4px; }
  .news-list .news-item__date { font-size: 0.74rem; margin-bottom: 4px; }
  .news-list .news-item__desc { font-size: 0.8rem; -webkit-line-clamp: 1; }
}

@media (max-width: 767px) {
  .news-list .news-item { flex-direction: row; padding: 10px 12px; gap: 12px; }
  .news-list .news-item__thumb { width: 92px; height: 76px; }
  .news-list .news-item__title { font-size: 0.9rem; margin-bottom: 3px; }
  .news-list .news-item__date { font-size: 0.72rem; margin-bottom: 4px; }
  .news-list .news-item__desc { font-size: 0.76rem; -webkit-line-clamp: 1; }
}

/* CTA 横幅(让专业的人做专业的事)：<1024 压缩上下留白与字号（PC>=1024 保持原 70px 大留白不变） */
@media (max-width: 1023px) {
  .cta-section { padding: 48px 0; }
  .cta-section p { font-size: 0.92rem; margin-bottom: 20px; }
}

@media (max-width: 767px) {
  .cta-section { padding: 32px 0; }
  .cta-section__title { font-size: 1.3rem; margin-bottom: 10px; }
  .cta-section p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 16px; }
}

/* 页脚快速链接：<1024 由纵向一列改横向（PC>=1024 保持原纵向一列）
   平板(768-1023) → 6 条一行(等距分排)；手机(<768) → 横向自动换行(两行排完) */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer__links { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; }
  .footer__links a { font-size: 0.86rem; line-height: 1.3; }
}

@media (max-width: 767px) {
  .footer__links { flex-direction: row; flex-wrap: wrap; column-gap: 18px; row-gap: 10px; }
  .footer__links a { font-size: 0.9rem; line-height: 1.4; }
}

/* 服务中心列表(/?services/ 及各子类共用 services.html)：<1024 一行两个并压缩卡片（PC>=1024 保持 3 列原样） */
@media (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .service-grid .card__image { aspect-ratio: 5 / 4; }
  .service-grid .card__body { padding: 14px 16px 16px; }
  .service-grid .card__title { font-size: 0.95rem; margin-bottom: 4px; }
  .service-grid .card__desc { font-size: 0.78rem; line-height: 1.5; -webkit-line-clamp: 1; }
  .service-grid .card__price { font-size: 1rem; margin-top: 6px; }
}

@media (max-width: 767px) {
  /* 手机进一步收紧（同首页热门服务手机样式） */
  .service-grid { gap: 14px; }
  .service-grid > .card { box-shadow: none; border: 1px solid var(--gray-light); border-radius: var(--radius-md); }
  .service-grid .card__image { aspect-ratio: 1 / 0.9; }
  .service-grid .card__body { padding: 10px 12px 12px; }
  .service-grid .card__tag { font-size: 0.66rem; padding: 2px 7px; margin-bottom: 5px; }
  .service-grid .card__title { font-size: 0.9rem; }
  .service-grid .card__desc { font-size: 0.74rem; }
  .service-grid .card__price { font-size: 0.95rem; }
}

/* 客户评价列表页(/?reviews/)：<1024 单列压缩 / 平板2列收窄（PC>=1024 3列原样） */
@media (max-width: 1023px) {
  .review-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .review-list .review-card { padding: 16px 18px; }
  .review-list .review-card__stars { font-size: 0.8rem; margin-bottom: 8px; }
  .review-list .review-card__text { font-size: 0.86rem; line-height: 1.55; margin-bottom: 10px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .review-list .review-card__author { padding-top: 10px; gap: 8px; }
  .review-list .review-card__avatar { width: 32px; height: 32px; font-size: 0.78rem; }
}

@media (max-width: 767px) {
  .review-list { grid-template-columns: 1fr; gap: 14px; }
  .review-list .review-card { padding: 14px 16px; }
  .review-list .review-card__text { -webkit-line-clamp: 3; }
}

/* 新闻列表页(/?news/)：<1024 全横排小卡，手机也左图右文（PC>=1024 保持原横向大卡不变） */
@media (max-width: 1023px) {
  .news-page .news-item { flex-direction: row; padding: 12px 14px; gap: 14px; margin-bottom: 10px; }
  .news-page .news-item__thumb { width: 108px; height: 84px; }
  .news-page .news-item__title { font-size: 0.95rem; margin-bottom: 4px; }
  .news-page .news-item__date { font-size: 0.74rem; margin-bottom: 4px; }
  .news-page .news-item__desc { font-size: 0.8rem; -webkit-line-clamp: 1; }
}

@media (max-width: 767px) {
  .news-page .news-item { padding: 10px 12px; gap: 12px; }
  .news-page .news-item__thumb { width: 92px; height: 76px; }
  .news-page .news-item__title { font-size: 0.9rem; margin-bottom: 3px; }
  .news-page .news-item__date { font-size: 0.72rem; margin-bottom: 4px; }
  .news-page .news-item__desc { font-size: 0.76rem; -webkit-line-clamp: 1; }
}

@media (max-width: 360px) {
  .navgrid { gap: 12px; }
}

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