/* ============================================
   苏州汇能木结构科技 - 主样式表
   清新自然风：森林绿 + 木色 + 暖米底
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
  --color-primary: #2d5a3a;
  --color-primary-light: #3a6b48;
  --color-primary-dark: #1f3f28;
  --color-wood: #a67c52;
  --color-wood-light: #c4a578;
  --color-wood-dark: #8b6840;
  --color-accent: #7d9471;
  --color-cream: #f5f2eb;
  --color-cream-dark: #e8e0d5;
  --color-bg: #faf8f3;
  --color-text: #2c2c2a;
  --color-text-light: #5f5e5a;
  --color-text-muted: #888780;
  --color-border: #d4c9b5;
  --color-border-light: #e8e0d5;
  --color-white: #ffffff;
  --color-success: #2d8a4e;
  --color-warning: #d97706;
  --color-danger: #d85a30;

  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.btn-group .btn { flex: 1 1 200px; min-width: 0; }
@media (max-width: 480px) {
  .btn-group { flex-direction: column; gap: 10px; }
  .btn-group .btn { width: 100%; flex: 1 1 auto; }
}

.btn-primary {
  background: var(--color-wood);
  color: var(--color-white);
  border-color: var(--color-wood);
}

.btn-primary:hover {
  background: var(--color-wood-dark);
  border-color: var(--color-wood-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

/* Hero 区域按钮适配白色背景 */
.hero-content .btn-primary {
  background: var(--color-wood);
  color: var(--color-white);
  border-color: var(--color-wood);
  font-weight: 600;
}
.hero-content .btn-ghost {
  color: #1a4023;
  border-color: #1a4023;
  background: rgba(255,255,255,0.5);
  font-weight: 600;
}
.hero-content .btn-ghost:hover {
  background: #1a4023;
  color: var(--color-white);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-en {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin-top: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-menu a:hover {
  color: var(--color-primary);
  background: var(--color-cream);
}

.nav-menu a.active {
  color: var(--color-primary);
  background: var(--color-cream);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
}

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

/* ===== 首页 HERO 轮播 ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  background: var(--color-primary-dark);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-text);
  padding: 32px 48px;
  max-width: 720px;
  width: 90%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #1a4023;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
}

.hero-subtitle {
  font-size: 28px;
  color: #2d5a3a;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.5);
}

.hero-desc {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 28px;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dot.active {
  background: var(--color-white);
  transform: scale(1.3);
}

/* ===== 通用区段 ===== */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32px;
  height: 1px;
  background: var(--color-wood);
}

.section-title::before {
  right: calc(100% + 16px);
}

.section-title::after {
  left: calc(100% + 16px);
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.section-action {
  text-align: center;
  margin-top: 32px;
}

/* ===== 三大服务 ===== */
.services {
  padding: 60px 0;
  background: var(--color-white);
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  padding: 40px 24px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.service-card:hover {
  background: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

.service-card-icon {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  display: block;
  transition: transform var(--transition);
}

.service-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

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

.service-card h3 {
  font-size: 18px;
  color: var(--color-primary);
  margin: 0;
  white-space: nowrap;
}

.service-card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.service-card-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.service-page-sub {
  font-size: 13px;
  color: var(--color-wood);
  margin-bottom: 12px;
  font-weight: 500;
}

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

/* ===== 产品 + 设计参考 ===== */
.products-reference {
  padding: 60px 0;
  background: var(--color-cream);
}

.pr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pr-block {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-lg);
}

.pr-block-title {
  font-size: 18px;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
}

.pr-icon {
  font-size: 20px;
}

.pr-list {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pr-list::-webkit-scrollbar { display: none; }

.pr-item {
  flex: 0 0 calc((100% - 12px) / 2);
  display: block;
  text-align: center;
  color: var(--color-text);
  scroll-snap-align: start;
}

.pr-item:hover {
  color: var(--color-primary);
}

.pr-item-thumb {
  aspect-ratio: 4/3;
  background: var(--color-cream);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--color-wood);
  margin-bottom: 8px;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.pr-item:hover .pr-item-thumb {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.pr-item span {
  font-size: 14px;
  font-weight: 500;
}

.pr-more {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--color-wood);
  font-weight: 500;
}

.pr-more:hover {
  color: var(--color-wood-dark);
}

/* ===== 精选案例 ===== */
.featured-cases {
  padding: 60px 0;
  background: var(--color-white);
}

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

.case-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  color: var(--color-text);
}

.case-image {
  position: relative;
  height: 180px;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
}

.case-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  font-weight: 500;
}

.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.case-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-wood);
  color: var(--color-white);
  font-size: 11px;
  border-radius: var(--radius-sm);
}

.case-title {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
}

/* ===== 页面内通用 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: 32px;
  color: var(--color-white);
  margin-bottom: 8px;
  letter-spacing: 4px;
}

.page-hero p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
}

.page-section {
  padding: 48px 0;
  background: var(--color-bg);
}

.page-section + .page-section {
  padding-top: 0;
}

.empty-tip {
  text-align: center;
  padding: 24px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  margin-top: 24px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ===== 服务页面 ===== */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 60px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.service-item-reverse {
  direction: rtl;
}

.service-item-reverse > * {
  direction: ltr;
}

.service-item-image {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 80px;
  overflow: hidden;
}

.service-item-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-wood);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  z-index: 2;
}

.service-item-placeholder {
  font-size: 80px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.service-item-content h2 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.service-item-content > p {
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.service-features {
  margin-bottom: 20px;
  list-style: none;
}

.service-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--color-text-light);
  font-size: 14px;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.service-subcategories {
  margin-bottom: 20px;
}

.subcategory {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.subcat-tag {
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
}

.subcat-tag-default {
  background: var(--color-cream);
  color: var(--color-primary);
}

.subcat-tag-accent {
  background: var(--color-wood);
  color: var(--color-white);
}

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

/* ===== 时间线 ===== */
.process-timeline {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.process-timeline h3 {
  text-align: center;
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.timeline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  gap: 4px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
}

.timeline-num {
  width: 36px;
  height: 36px;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.timeline-step.active .timeline-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(45, 90, 58, 0.1);
}

.timeline-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.timeline-step.active .timeline-label {
  color: var(--color-primary);
  font-weight: 500;
}

/* ===== 产品页面 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.product-image {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--color-cream);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 40px;
}

.product-image-placeholder {
  font-size: 50px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.product-info {
  padding: 20px;
}

.product-category {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: var(--color-cream);
  color: var(--color-wood);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.product-name {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.product-cta {
  font-size: 13px;
  color: var(--color-wood);
  font-weight: 500;
  display: inline-block;
}

.product-cta:hover {
  color: var(--color-wood-dark);
}

/* ===== 案例页面 ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-cream);
  color: var(--color-text-light);
  border-radius: 20px;
  font-size: 13px;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: var(--color-cream-dark);
  color: var(--color-primary);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.filter-btn-accent {
  background: var(--color-wood);
  color: var(--color-white);
}

.filter-btn-accent:hover {
  background: var(--color-wood-dark);
  color: var(--color-white);
}

.filter-btn-accent.active {
  background: var(--color-wood-dark);
}

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

.case-card-full {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.case-card-large {
  grid-column: span 2;
}

.case-image-full {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
}

.case-image-full .case-image-placeholder {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
}

.case-overlay-full {
  position: absolute;
  top: 12px;
  left: 12px;
}

.case-tag-full {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-wood);
  color: var(--color-white);
  font-size: 12px;
  border-radius: var(--radius-sm);
}

.case-info-full {
  padding: 16px;
}

.case-info-full h3 {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.case-info-full p {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== 设计参考 ===== */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.reference-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.reference-image {
  position: relative;
  aspect-ratio: 4/3;
  background-color: var(--color-cream);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-wood);
  font-size: 32px;
}

.reference-placeholder {
  font-size: 40px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}

.reference-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
}

.reference-type {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  font-size: 11px;
  border-radius: var(--radius-sm);
}

.reference-info {
  padding: 12px;
}

.reference-info h3 {
  font-size: 13px;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 500;
  margin-bottom: 4px;
}

.reference-info p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.reference-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.reference-tag {
  font-size: 10px;
  padding: 1px 6px;
  background: var(--color-cream);
  color: var(--color-wood);
  border-radius: 3px;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 32px;
  padding: 12px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-link {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  color: var(--color-text-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all var(--transition);
}

.page-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.page-link.active {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

.page-dots {
  padding: 0 4px;
  color: var(--color-text-muted);
}

.page-info {
  margin-left: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ===== 关于我们 ===== */
.about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.about-logo {
  width: 100%;
  max-width: 200px;
}

.about-text h2 {
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.7;
}

.about-philosophy,
.about-features,
.about-contact {
  margin-bottom: 40px;
}

.block-title {
  font-size: 22px;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 24px;
  font-family: var(--font-serif);
}

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

.philosophy-card {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.philosophy-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.philosophy-card h4 {
  color: var(--color-primary);
  margin-bottom: 8px;
}

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

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

.feature-item {
  background: var(--color-white);
  padding: 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.feature-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--color-wood);
  margin-bottom: 8px;
}

.feature-item h4 {
  color: var(--color-primary);
  font-size: 16px;
  margin-bottom: 6px;
}

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

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

.contact-card {
  background: var(--color-white);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.contact-card h4 {
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact-card a,
.contact-card p {
  font-size: 13px;
  color: var(--color-text-light);
  word-break: break-all;
}

.contact-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contact-qr {
  width: 90px;
  height: 90px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 3px;
}

/* ===== 木结构介绍模块（会呼吸的房子） ===== */
.wood-intro {
  position: relative;
  padding: 60px 0;
  background: var(--color-primary-dark);
  color: var(--color-white);
  overflow: hidden;
}

.wood-intro-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  opacity: 0.95;
}

.wood-intro-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.wood-intro-title {
  font-size: 30px;
  color: var(--color-white);
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 2px;
}

.wood-intro-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.wood-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.wood-intro-stat {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform var(--transition);
}

.wood-intro-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.wood-intro-num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--color-wood-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.wood-intro-num small {
  font-size: 18px;
  color: var(--color-wood-light);
  margin-left: 2px;
}

.wood-intro-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.wood-intro-quote {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
  font-style: italic;
}

.wood-intro-text-block {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.wood-intro-text-block p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
  line-height: 1.8;
}

.wood-intro-text-block p:last-child {
  margin-bottom: 0;
}

.wood-intro-text-block strong {
  color: var(--color-wood-light);
  font-weight: 500;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--color-cream);
  border-top: 1px solid var(--color-border-light);
}

.footer-bottom {
  background: var(--color-cream-dark);
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.footer-bottom p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-divider {
  color: var(--color-border);
  margin: 0 8px;
}

.footer-admin {
  color: var(--color-wood);
}

.footer-admin:hover {
  color: var(--color-wood-dark);
}

/* ===== 图片画廊 ===== */
.gallery-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.gallery-overlay.open { display: flex; }
.gallery-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 48px;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10;
  transition: background var(--transition);
}
.gallery-nav:hover { background: rgba(255,255,255,0.3); }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
}
.gallery-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.gallery-dots {
  position: absolute;
  bottom: 20px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition);
}
.gallery-dot.active { background: var(--color-white); }
.gallery-dot:hover { background: rgba(255,255,255,0.7); }

.gallery-bottom {
  position: absolute;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.gallery-counter {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.gallery-play-btn {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
  line-height: 1;
}
.gallery-play-btn:hover { background: rgba(255,255,255,0.3); }

/* ===== 多图徽标（前台） ===== */
.case-img-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1.4;
  z-index: 3;
}

/* ===== 右侧浮窗 ===== */
.floating-widget {
  position: fixed;
  right: 16px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 90;
}

.fw-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border-light);
  color: var(--color-primary);
  font-size: 11px;
  transition: all var(--transition);
  cursor: pointer;
}

.fw-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.fw-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.fw-label {
  font-size: 10px;
  font-weight: 500;
}

.fw-btn-phone {
  background: var(--color-primary);
  color: var(--color-white);
}

.fw-btn-phone:hover {
  background: var(--color-primary-dark);
}

.fw-btn-book {
  background: var(--color-wood);
  color: var(--color-white);
}

.fw-btn-book:hover {
  background: var(--color-wood-dark);
}

.fw-btn-wechat {
  background: var(--color-primary-light);
  color: var(--color-white);
}

.fw-btn-wechat:hover {
  background: var(--color-primary-dark);
}

.fw-btn-top {
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: var(--color-white);
  color: var(--color-text-light);
}

.fw-btn-top.show {
  display: flex;
  opacity: 1;
}

/* ===== 浮窗弹层 ===== */
.fw-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fw-popup.active {
  display: flex;
}

.fw-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  display: none;
  backdrop-filter: blur(2px);
}

.fw-mask.active {
  display: block;
}

.fw-popup-content {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fwPopupIn 0.3s ease;
  position: relative;
  z-index: 201;
}

@keyframes fwPopupIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fw-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
}

.fw-popup-close {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fw-popup-body {
  padding: 20px;
}

.fw-popup-tip {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.fw-popup-phone-btn {
  display: block;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  border-radius: var(--radius-md);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.fw-popup-phone-btn:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.fw-popup-time {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
}

.fw-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fw-form-row input,
.fw-form-row select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
}

.fw-form-row input:focus,
.fw-form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}

.fw-form-submit {
  padding: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
}

.fw-form-submit:hover {
  background: var(--color-primary-dark);
}

.fw-form-tip {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 4px;
}

.fw-form-success {
  text-align: center;
  padding: 20px 0;
}

.fw-success-icon {
  width: 60px;
  height: 60px;
  background: var(--color-success);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 12px;
}

.fw-form-success p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.fw-success-tip {
  font-size: 13px;
  color: var(--color-text-muted);
}

.fw-wechat-info {
  background: var(--color-bg);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  text-align: center;
}

.fw-qr-img {
  width: 160px;
  height: 160px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 4px;
  margin: 0 auto 8px;
  display: block;
}

.fw-wechat-info p {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.fw-wechat-info strong {
  color: var(--color-primary);
}

/* ===== 错误页 ===== */
.error-page {
  padding: 80px 0;
}

.error-content {
  text-align: center;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 24px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.error-content p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .service-cards {
    grid-template-columns: 1fr;
  }
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reference-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .philosophy-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .wood-intro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  .nav-container {
    padding: 10px 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    flex-direction: column;
    align-items: stretch;
    padding: 64px 0 16px;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 200;
  }

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

  .nav-close {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
    line-height: 36px;
    text-align: center;
  }
  .nav-close:hover { color: var(--color-text); }

  .nav-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .nav-menu-overlay.open { display: block; }

  .nav-menu a {
    display: block;
    padding: 14px 20px;
    border-radius: 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 15px;
    color: var(--color-text);
  }

  .nav-menu a:hover {
    background: var(--color-cream) !important;
  }

  .nav-menu a.active {
    background: var(--color-cream) !important;
    border-left: 3px solid var(--color-primary);
    color: var(--color-primary);
  }

  .hero {
    height: 60vh;
    min-height: 360px;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .section-title {
    font-size: 22px;
  }

  .section-title::before,
  .section-title::after {
    display: none;
  }

  .services,
  .products-reference,
  .featured-cases,
  .page-section {
    padding: 40px 0;
  }

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

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

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

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

  .case-card-large {
    grid-column: span 1;
  }

  .service-item,
  .service-item-reverse {
    grid-template-columns: 1fr;
    padding: 20px;
    direction: ltr;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }

  .about-logo {
    margin: 0 auto;
  }

  .philosophy-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .wood-intro-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .wood-intro-title {
    font-size: 22px;
  }

  .wood-intro-stat {
    padding: 16px;
  }

  .wood-intro-num {
    font-size: 28px;
  }

  .wood-intro-text-block {
    padding: 20px;
  }

  .page-hero {
    padding: 40px 0 24px;
  }

  .page-hero h1 {
    font-size: 24px;
    letter-spacing: 2px;
  }

  .floating-widget {
    right: 8px;
    bottom: 80px;
  }

  .fw-btn {
    width: 50px;
    height: 50px;
  }

  .fw-icon {
    font-size: 18px;
  }

  .footer-container {
    text-align: center;
  }

  .timeline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-step {
    flex: 0 0 30%;
  }

  .filter-bar {
    padding: 8px;
  }

  .filter-btn {
    font-size: 12px;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .wood-intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 24px;
  }

  .pagination {
    font-size: 12px;
  }

  .floating-widget {
    right: 4px;
  }

  .fw-btn {
    width: 44px;
    height: 44px;
  }

  .fw-label {
    display: none;
  }
}

/* ===== 腻子施工详情 ===== */
.plastering-detail {
  margin: 24px 0;
  padding: 24px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-wood);
}

.plastering-title {
  font-size: 20px;
  color: var(--color-primary);
  margin-bottom: 4px;
  font-family: var(--font-serif);
}

.plastering-desc {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  font-size: 13px;
}

.plastering-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.plastering-type {
  background: var(--color-white);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.plastering-type h4 {
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.plastering-type p {
  font-size: 12px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.plastering-compare {
  margin-bottom: 20px;
}

.plastering-compare h4,
.plastering-scenes h4,
.plastering-price h4,
.plastering-process h4 {
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-family: var(--font-serif);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compare-item {
  padding: 16px;
  border-radius: var(--radius-md);
  text-align: center;
}

.compare-bad {
  background: rgba(216, 90, 48, 0.08);
  border: 1px solid rgba(216, 90, 48, 0.15);
}

.compare-good {
  background: rgba(45, 138, 78, 0.08);
  border: 1px solid rgba(45, 138, 78, 0.15);
}

.compare-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}

.compare-stats {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.compare-good .compare-stats {
  color: var(--color-success);
}

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

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scene-tag {
  padding: 6px 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--color-text-light);
}

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

.price-item {
  background: var(--color-white);
  padding: 14px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--color-border-light);
}

.price {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-wood);
  margin-bottom: 4px;
}

.price-free {
  color: var(--color-success);
}

.price-label {
  font-size: 12px;
  color: var(--color-text-muted);
}

.price-note {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 8px;
  text-align: center;
}

.p-process-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.p-step {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-white);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-text-light);
  border: 1px solid var(--color-border-light);
}

.p-step-num {
  width: 28px;
  height: 28px;
  background: var(--color-wood);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.plastering-guarantee {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.guarantee-item {
  background: rgba(45, 138, 78, 0.08);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--color-success);
}

/* ===== 服务页大图 ===== */
.service-item-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-cream);
}
.service-item-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== 下拉菜单关闭按钮 ===== */
/* 桌面端隐藏关闭按钮 */
@media (min-width: 769px) {
  .nav-close { display: none; }
}

@media (max-width: 768px) {
  .gallery-prev { left: 4px; }
  .gallery-next { right: 4px; }
  .gallery-nav { font-size: 28px; padding: 4px 10px; }
  .gallery-close { font-size: 32px; top: 10px; right: 10px; }
}

@media (max-width: 768px) {
  .plastering-types {
    grid-template-columns: 1fr;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .p-process-steps {
    flex-direction: column;
  }
}

/* ===== 底部导航（手机端） ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 4px 0 env(safe-area-inset-bottom, 6px);
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 4px;
  cursor: pointer;
  text-decoration: none;
  color: #888;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.bottom-nav-item.active { color: var(--color-primary); }
.bottom-nav-item:hover { color: var(--color-primary); }
.bottom-nav-icon { display: block; width: 22px; height: 22px; }
.bottom-nav-label { font-size: 10px; line-height: 1.3; margin-top: 1px; }

/* 联系弹窗 */
.contact-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
}
.contact-popup-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
}
.contact-popup-content {
  position: absolute;
  bottom: 72px;
  left: 16px;
  right: 16px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.contact-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.contact-popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.contact-popup-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.contact-popup-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.contact-popup-btn:active { transform: scale(0.98); }
.contact-popup-phone {
  background: var(--color-wood, #a67c52);
  color: #fff;
}
.contact-popup-wechat {
  background: #f0f0f0;
  color: var(--color-text);
}
.contact-popup-icon { font-size: 22px; }
.contact-popup-text { font-weight: 600; }
.contact-popup-desc { margin-left: auto; font-size: 12px; opacity: 0.7; }

/* 手机端显示底部栏 */
@media (max-width: 768px) {
  .bottom-nav { display: flex; }
  body { padding-bottom: 56px; }
  .footer { padding-bottom: 64px; }
}

/* ===== B端合作引导 ===== */
.b2b-guide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
  padding: 24px;
  background: var(--color-bg, #f5f2eb);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}
.b2b-guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary, #555);
}
.b2b-guide-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.b2b-guide-item strong { color: var(--color-text, #333); }

/* ===== 六大优势 ===== */
.advantages {
  padding: 60px 0;
  background: var(--color-bg, #f5f2eb);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.advantage-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s;
}
.advantage-card:hover { transform: translateY(-2px); }
.adv-icon { font-size: 32px; margin-bottom: 12px; }
.advantage-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--color-primary-dark);
}
.advantage-card p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  color: var(--color-text-secondary, #555);
}
@media (max-width: 768px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .advantage-card { padding: 20px 14px; }
  .adv-icon { font-size: 26px; }
}
@media (max-width: 480px) {
  .advantages-grid { grid-template-columns: 1fr; }
}

/* ===== 产品+参考（与案例同款卡片） ===== */
.cases-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .cases-grid-mini { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ===== B端合作引导卡片（与首页服务卡同款）===== */
.b2b-guide-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.b2b-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}
.b2b-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.b2b-icon {
  background: var(--color-bg, #f5f2eb) !important;
  font-size: 36px !important;
  padding: 20px;
  text-align: center;
}
.b2b-card .service-card-header { padding: 16px 20px 20px; }
.b2b-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--color-primary-dark); }
.b2b-card .service-card-sub { font-size: 13px; line-height: 1.5; color: #666; }
@media (max-width: 768px) {
  .b2b-guide-cards { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== B端引导 - 纯文字卡片 ===== */
.b2b-plain-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.b2b-plain-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.b2b-plain-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.b2b-plain-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary-dark, #1f3f28);
  margin: 0 0 8px;
}
.b2b-plain-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}
@media (max-width: 768px) {
  .b2b-plain-cards { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== 关于页 - 六大优势卡片3列 ===== */
.adv-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.adv-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s;
}
.adv-card:hover { transform: translateY(-2px); }
.adv-card-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary, #2d5a3a);
  opacity: 0.3;
  margin-bottom: 8px;
  line-height: 1;
}
.adv-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark, #1f3f28);
  margin: 0 0 6px;
}
.adv-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  margin: 0;
}
@media (max-width: 768px) {
  .adv-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .adv-cards { grid-template-columns: 1fr; }
}
