/* ===== 森淼园林 - 主样式表 ===== */
:root {
  --primary: #2d5a3d;
  --primary-dark: #1e3d29;
  --primary-light: #4a8060;
  --primary-bg: #f0f5f2;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --bg-card: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --border: #e0e8e3;
  --border-light: #eef3f0;
  --shadow: 0 2px 12px rgba(45, 90, 61, 0.08);
  --shadow-hover: 0 6px 24px rgba(45, 90, 61, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 70px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 14px; outline: none; }

/* ===== 通用容器 ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  transition: all .25s; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); border: 1px solid var(--border); }
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 顶部导航 ===== */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border-light); box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--primary); }
.logo-icon {
  width: 36px; height: 36px; background: var(--primary); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; font-weight: bold;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text small { font-size: 10px; color: var(--text-muted); font-weight: 400; letter-spacing: 1px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: 14px; color: var(--text); border-radius: 4px;
  position: relative; transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 2px; background: var(--primary); border-radius: 1px;
}
.nav .has-dropdown { position: relative; }
.nav .has-dropdown > a::after { content: ' ▾'; font-size: 10px; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 160px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 8px 16px; font-size: 13px; }
.dropdown a:hover { background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-icon-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); transition: all .2s; }
.search-icon-btn:hover { background: var(--bg-soft); color: var(--primary); }

/* 顶部展开式搜索框 */
.header-search {
  display: none;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 4px 2px 14px;
  overflow: hidden;
  animation: searchExpand .25s ease;
}
.header-search.open { display: flex; }
@keyframes searchExpand {
  from { width: 0; opacity: 0; padding-left: 0; padding-right: 0; }
  to { width: 220px; opacity: 1; }
}
.header-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 160px;
  padding: 4px 0;
}
.header-search-input::placeholder { color: var(--text-muted); }
.header-search-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  flex-shrink: 0;
  transition: background .2s;
}
.header-search-btn:hover { background: var(--primary-dark); }

.mobile-menu-btn { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: all .3s; }

/* ===== Banner ===== */
.banner {
  position: relative; min-height: 380px; background: linear-gradient(135deg, #f5ede5 0%, #e8d5c4 100%);
  overflow: hidden; display: flex; align-items: center;
}
.banner::before {
  content: ''; position: absolute; right: -5%; top: 0; width: 55%; height: 100%;
  background: linear-gradient(135deg, rgba(123,35,35,.08) 0%, transparent 70%);
}
/* 有自定义背景图时隐藏伪元素装饰 */
.banner.has-custom-bg::before {
  display: none;
}
.banner-inner { position: relative; z-index: 2; padding: 60px 0; max-width: 55%; }
.banner h1 { font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.3; }
.banner p { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }

/* 首页Banner优化 */
.home-banner::before { display: none; }
.home-banner .banner-inner { max-width: 62%; padding: 70px 0; }
.home-banner .banner-inner h1 { font-size: 40px; font-weight: 700; margin-bottom: 16px; line-height: 1.25; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.home-banner .banner-inner p { font-size: 17px; margin-bottom: 28px; line-height: 1.6; }
.banner-features { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; }
.banner-feature-item { display: flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,0.9); }
.banner-feature-icon { color: #d4a574; font-size: 12px; }
.home-banner .btn-lg { padding: 14px 36px; font-size: 15px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.banner-page { min-height: 220px; }
.banner-page .banner-inner { padding: 40px 0; max-width: 100%; }
.banner-page h1 { font-size: 28px; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== 区块通用 ===== */
.section { padding: 60px 0; }
.section-bg { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-title .deco { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.section-title .deco::before, .section-title .deco::after { content: ''; width: 30px; height: 1px; background: var(--primary); opacity: .4; }
.section-title .deco span { color: var(--primary); font-size: 14px; }
.section-title p { color: var(--text-light); font-size: 14px; }

/* ===== 卡片网格 ===== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-light); transition: all .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img {
  width: 100%; aspect-ratio: 16/10; background: linear-gradient(135deg, #d4c4b0, #a89078);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.card-img .placeholder-icon { font-size: 48px; opacity: .3; }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }
.card-price { color: var(--primary); font-weight: 700; font-size: 16px; }
.card-price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* ===== 产品卡片 ===== */
.product-card .card-img { aspect-ratio: 4/3; }
.product-card .tags { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.product-card .tag { font-size: 11px; padding: 2px 8px; background: var(--primary-bg); color: var(--primary); border-radius: 10px; }
.product-card .card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.fav-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all .2s; font-size: 16px; }
.fav-btn:hover, .fav-btn.active { color: var(--primary); background: var(--primary-bg); }

/* ===== 表单 ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.form-label .required { color: var(--primary); margin-left: 2px; }
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; transition: border-color .2s; font-size: 14px;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(123,35,35,.08); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: #e74c3c; margin-top: 4px; display: none; }
.form-group.error .form-control { border-color: #e74c3c; }
.form-group.error .form-error { display: block; }

/* 复选框/单选 */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-item {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all .2s; font-size: 13px;
}
.checkbox-item:hover { border-color: var(--primary-light); }
.checkbox-item input { accent-color: var(--primary); }
.checkbox-item.checked { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }

/* ===== 优势栏 ===== */
.advantages {
  background: var(--bg-soft); padding: 28px 0; border-top: 1px solid var(--border-light);
}
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.advantage-item { display: flex; align-items: center; gap: 12px; }
.advantage-icon {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--primary); flex-shrink: 0;
}
.advantage-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.advantage-text p { font-size: 12px; color: var(--text-muted); }

/* ===== 页脚 ===== */
.footer { background: #2a1f1a; color: rgba(255,255,255,.7); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 13px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.footer-qr { width: 90px; height: 90px; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 12px; text-align: center; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); margin-left: 16px; }

/* ===== 数据统计 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.stat-item { text-align: center; padding: 24px; background: var(--bg-soft); border-radius: var(--radius-lg); }
.stat-icon { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== 流程步骤 ===== */
.steps { display: flex; justify-content: space-between; align-items: flex-start; position: relative; margin: 30px 0; }
.steps::before {
  content: ''; position: absolute; top: 24px; left: 8%; right: 8%; height: 2px;
  background: var(--border); z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; flex: 1; }
.step-num {
  width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--primary);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700;
  margin: 0 auto 12px; font-size: 16px;
}
.step-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step-item p { font-size: 12px; color: var(--text-muted); }

/* ===== 套餐卡片 ===== */
.package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.package-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; transition: all .3s; position: relative;
}
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.package-card.featured { border-color: var(--primary); border-width: 2px; }
.package-card .badge {
  position: absolute; top: -10px; right: 20px; background: var(--primary); color: #fff;
  font-size: 11px; padding: 3px 10px; border-radius: 10px;
}
.package-card h3 { font-size: 18px; margin-bottom: 8px; }
.package-card .price { font-size: 24px; font-weight: 700; color: var(--primary); margin: 12px 0; }
.package-card .price small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.package-card ul { text-align: left; margin: 16px 0; }
.package-card ul li { font-size: 13px; padding: 5px 0; color: var(--text-light); display: flex; align-items: center; gap: 6px; }
.package-card ul li::before { content: '✓'; color: var(--primary); font-weight: bold; }

/* ===== 报价页 ===== */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.quote-main { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 24px; }
.quote-sidebar { display: flex; flex-direction: column; gap: 16px; }
.quote-summary, .quote-detail-box {
  background: var(--bg-soft); border-radius: var(--radius-lg); padding: 20px;
}
.quote-summary h3, .quote-detail-box h3 { font-size: 16px; margin-bottom: 14px; }
.quote-summary .total { font-size: 28px; font-weight: 700; color: var(--primary); margin: 10px 0; }
.quote-summary-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--text-light); }

.quote-product-row {
  display: grid; grid-template-columns: 40px 1fr 80px 80px 100px 80px; gap: 12px;
  align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.quote-product-row:last-child { border-bottom: none; }
.quote-product-row .product-thumb {
  width: 60px; height: 45px; background: linear-gradient(135deg, #d4c4b0, #a89078); border-radius: 4px;
}
.quote-product-row input[type="number"] { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; text-align: center; }
.quote-product-row .subtotal { color: var(--primary); font-weight: 600; text-align: right; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th { background: var(--bg-soft); padding: 12px; text-align: left; font-weight: 600; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data-table td { padding: 12px; border-bottom: 1px solid var(--border-light); }
table.data-table tr:hover td { background: var(--primary-bg); }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; }
.pagination button, .pagination span {
  min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: 4px; background: #fff; font-size: 13px; color: var(--text); transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; cursor: not-allowed; }

/* ===== 筛选栏 ===== */
.filter-bar { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.filter-row { display: flex; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.filter-row:last-child { border-bottom: none; }
.filter-label { width: 80px; font-size: 13px; font-weight: 500; color: var(--text-light); padding-top: 6px; flex-shrink: 0; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-options button {
  padding: 5px 14px; font-size: 13px; border-radius: 14px; border: 1px solid transparent;
  background: transparent; color: var(--text-light); transition: all .2s;
}
.filter-options button:hover { color: var(--primary); }
.filter-options button.active { background: var(--primary-bg); color: var(--primary); border-color: var(--primary); }

/* ===== 搜索框 ===== */
.search-box { display: flex; gap: 0; max-width: 600px; margin: 0 auto 24px; }
.search-box input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius); font-size: 14px;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
  padding: 12px 28px; background: var(--primary); color: #fff; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px; font-weight: 500;
}
.search-box button:hover { background: var(--primary-dark); }

/* ===== 分类图标 ===== */
.category-icons { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; margin-bottom: 40px; }
.category-icon-item {
  text-align: center; padding: 16px 8px; border-radius: var(--radius); transition: all .2s; cursor: pointer;
}
.category-icon-item:hover { background: var(--primary-bg); }
.category-icon-item .icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 8px;
  transition: all .2s;
}
.category-icon-item:hover .icon, .category-icon-item.active .icon {
  background: var(--primary); color: #fff;
}
.category-icon-item span { font-size: 13px; color: var(--text); }
.category-icon-item.active span { color: var(--primary); font-weight: 500; }

/* ===== 产品详情 ===== */
.product-detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.product-gallery .main-img {
  width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #d4c4b0, #a89078);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 64px; color: rgba(255,255,255,.4); margin-bottom: 12px;
}
.product-thumbs { display: flex; gap: 10px; }
.product-thumbs .thumb {
  width: 70px; height: 52px; background: linear-gradient(135deg, #d4c4b0, #a89078); border-radius: 6px;
  cursor: pointer; border: 2px solid transparent; transition: all .2s;
}
.product-thumbs .thumb.active { border-color: var(--primary); }
.product-info h1 { font-size: 24px; margin-bottom: 8px; }
.product-info .subtitle { color: var(--text-light); margin-bottom: 16px; font-size: 15px; }
.product-features { display: flex; gap: 24px; margin-bottom: 20px; }
.product-features .feature { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); }
.product-features .feature .icon { color: var(--primary); }
.product-price { font-size: 28px; font-weight: 700; color: var(--primary); margin: 16px 0; }
.product-specs { margin: 20px 0; }
.product-specs .spec-row { display: flex; padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 14px; }
.product-specs .spec-label { width: 80px; color: var(--text-light); }
.product-specs .spec-value { flex: 1; }
.product-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ===== 联系页面 ===== */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-card {
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 28px 20px; text-align: center; transition: all .3s;
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card .icon { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.contact-card h4 { font-size: 15px; margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-light); }
.contact-card .highlight { color: var(--primary); font-weight: 600; font-size: 16px; }

.map-box {
  width: 100%; height: 340px; background: #f0ede8;
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; margin-bottom: 30px; position: relative; overflow: hidden;
}
.map-box::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,35,35,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,35,35,.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.map-box::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, transparent 48%, #e0dbd4 48%, #e0dbd4 52%, transparent 52%),
    linear-gradient(0deg, transparent 45%, #e0dbd4 45%, #e0dbd4 49%, transparent 49%),
    linear-gradient(90deg, transparent 70%, #d8d2ca 70%, #d8d2ca 72%, transparent 72%);
  opacity: .6;
}
.map-marker {
  position: absolute; background: #fff; padding: 18px 24px; border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.15); text-align: center; z-index: 2; max-width: 280px;
}
.map-marker::after {
  content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 10px solid #fff;
}
.map-marker h4 { color: var(--primary); font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.map-marker p { font-size: 13px; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* ===== 上传区域 ===== */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 30px;
  text-align: center; cursor: pointer; transition: all .2s; background: var(--bg-soft);
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-bg); }
.upload-area .icon { font-size: 32px; color: var(--text-muted); margin-bottom: 8px; }
.upload-area p { font-size: 13px; color: var(--text-light); }
.upload-area small { font-size: 11px; color: var(--text-muted); }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 30px; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-muted);
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }
.modal h3 { font-size: 20px; margin-bottom: 20px; }

/* ===== 提示消息 ===== */
.toast {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%) translateY(-20px);
  background: var(--text); color: #fff; padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; z-index: 2000; opacity: 0; transition: all .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }

/* ===== 后台管理 ===== */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: #2a1f1a; color: rgba(255,255,255,.7); padding: 0; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; }
.admin-logo { display: flex; align-items: center; gap: 10px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 15px; }
.admin-sidebar nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; overflow-y: auto; }
.admin-sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 14px;
  color: rgba(255,255,255,.7); transition: all .2s; border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  background: rgba(255,255,255,.08); color: #fff; border-left-color: var(--primary);
}
.admin-content { padding: 0; background: var(--bg-soft); min-height: 100vh; }
.admin-header { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--border-light); margin-bottom: 0; }
.admin-header h2 { font-size: 18px; }
.admin-body { padding: 24px; }
.admin-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }
.admin-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.mobile-menu-toggle { display: none; width: 36px; height: 36px; font-size: 18px; color: var(--text); }

/* 登录页 */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--bg-soft), #e8d5c4); }
.login-box { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-hover); }
.login-box .logo { justify-content: center; margin-bottom: 24px; }
.login-box h2 { text-align: center; margin-bottom: 24px; font-size: 20px; }

/* ===== 访客中心 ===== */
.member-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.member-sidebar { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 0; height: fit-content; overflow: hidden; }
.member-info { text-align: center; padding: 24px 16px; border-bottom: 1px solid var(--border-light); }
.member-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 10px; }
.member-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.member-phone { font-size: 12px; color: var(--text-muted); }
.member-nav { padding: 12px 0; }
.member-nav a { display: flex; align-items: center; gap: 8px; padding: 10px 20px; font-size: 14px; border-radius: 0; color: var(--text); transition: all .2s; }
.member-nav a:hover, .member-nav a.active { background: var(--primary-bg); color: var(--primary); }
.member-page { min-height: 300px; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state p { font-size: 14px; }

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-10 { margin-top: 10px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; } .mb-20 { margin-bottom: 20px; } .mb-30 { margin-bottom: 30px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; } .gap-15 { gap: 15px; } .gap-20 { gap: 20px; }
.hidden { display: none !important; }

/* ===== 响应式 - 平板 ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .package-grid { grid-template-columns: repeat(2, 1fr); }
  .category-icons { grid-template-columns: repeat(4, 1fr); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .quote-layout { grid-template-columns: 1fr; }
  .product-detail-top { grid-template-columns: 1fr; gap: 24px; }
  .steps { flex-wrap: wrap; gap: 20px; }
  .steps::before { display: none; }
  .step-item { flex: 0 0 30%; }
}

/* ===== 响应式 - 手机 ===== */
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }

  /* 导航 */
  .nav { display: none; position: fixed; top: var(--header-height); left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px; gap: 0;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow); z-index: 99; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; width: 100%; border-bottom: 1px solid var(--border-light); }
  .nav a.active::after { display: none; }
  .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; padding-left: 20px; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .mobile-menu-btn { display: flex; }
  .header-actions .btn { display: none; }

  /* Banner */
  .banner { min-height: 260px; }
  .banner-inner { padding: 30px 0; max-width: 100%; }
  .banner h1 { font-size: 24px; }
  .banner p { font-size: 14px; }
  .home-banner { min-height: 300px; }
  .home-banner .banner-inner { max-width: 100%; padding: 40px 0; }
  .home-banner .banner-inner h1 { font-size: 26px; }
  .home-banner .banner-inner p { font-size: 14px; margin-bottom: 16px; }
  .banner-features { gap: 12px; margin-bottom: 20px; }
  .banner-feature-item { font-size: 12px; }
  .home-banner .btn-lg { padding: 10px 24px; font-size: 14px; }
  .banner-page { min-height: 280px; }
  .banner-page .banner-inner { max-width: 100%; padding: 40px 0; text-align: left; }
  .banner-page h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
  .banner-page p { font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
  .banner-page .banner-features { gap: 12px; margin-bottom: 20px; }
  .banner-page .banner-feature-item { font-size: 12px; }
  .banner-page .btn { padding: 10px 24px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

  /* 网格 */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .package-grid { grid-template-columns: 1fr; }
  .category-icons { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .contact-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-num { font-size: 22px; }

  /* 优势栏 */
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .advantage-item { flex-direction: column; text-align: center; }

  /* 页脚 */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* 表单 */
  .form-row, .form-row-2 { grid-template-columns: 1fr; }

  /* 报价页 */
  .quote-product-row { grid-template-columns: 30px 1fr 60px; gap: 8px; font-size: 12px; }
  .quote-product-row .product-thumb { display: none; }
  .quote-product-row .product-name { grid-column: 2; }
  .quote-product-row input[type="number"] { grid-column: 3; }
  .quote-product-row .unit-price, .quote-product-row .subtotal { display: none; }

  /* 报价表格移动端卡片化 */
  .quote-main { background: none; border: none; border-radius: 0; padding: 0; }
  .quote-table-wrap table, .quote-table-wrap thead, .quote-table-wrap tbody,
  .quote-table-wrap th, .quote-table-wrap td, .quote-table-wrap tr { display: block; }
  .quote-table-wrap thead { display: none; }
  .quote-table-wrap tbody tr {
    border: 1px solid var(--border-light); border-radius: 12px; margin-bottom: 14px;
    padding: 14px; background: #fff;
  }
  .quote-table-wrap td {
    border: none; padding: 6px 0; display: flex; justify-content: space-between;
    align-items: center; font-size: 13px;
  }
  .quote-table-wrap td::before {
    content: attr(data-label); font-weight: 600; color: var(--text-light);
    font-size: 12px; flex-shrink: 0; margin-right: 12px;
  }
  .quote-table-wrap td[data-label="选择"] { justify-content: flex-start; gap: 10px; }
  .quote-table-wrap td[data-label="选择"]::before { display: none; }
  .quote-table-wrap td[data-label="产品名称"] { flex-direction: column; align-items: stretch; gap: 6px; }
  .quote-table-wrap td[data-label="产品名称"]::before { margin-right: 0; }
  .quote-table-wrap td[data-label="单位"] select,
  .quote-table-wrap td[data-label="数量"] input { max-width: 120px; }
  .quote-table-wrap .hide-mobile { display: none !important; }

  /* 报价汇总和明细优化 */
  .quote-summary, .quote-detail-box { padding: 16px; border-radius: 12px; }
  .quote-summary .total { font-size: 24px; }
  .quote-detail-box #quoteDetailList { max-height: none; }

  /* 复选框组优化 */
  .checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .checkbox-item { font-size: 13px; padding: 8px 10px; }

  /* 联系页 */
  .contact-layout { grid-template-columns: 1fr; }
  .map-box { height: 200px; }

  /* 后台 */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; top: 0; left: -220px; width: 220px; height: 100vh; z-index: 200; transition: left .3s; }
  .admin-sidebar.open { left: 0; }
  .admin-content { padding: 0; }
  .admin-header { padding: 12px 16px; }
  .admin-body { padding: 16px; }
  .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }

  /* 会员中心 */
  .member-layout { grid-template-columns: 1fr; }
  .member-sidebar { display: flex; overflow-x: auto; gap: 0; padding: 0; }
  .member-info { display: none; }
  .member-nav { display: flex; gap: 0; padding: 0; }
  .member-nav a { white-space: nowrap; padding: 10px 16px; font-size: 13px; border-bottom: 2px solid transparent; }
  .member-nav a.active { background: none; border-bottom-color: var(--primary); }

  /* 流程 */
  .step-item { flex: 0 0 45%; }

  /* 按钮 */
  .btn-lg { padding: 12px 24px; font-size: 14px; }

  /* 表格横向滚动 */
  .table-wrap { -webkit-overflow-scrolling: touch; }

  /* 筛选 */
  .filter-row { flex-direction: column; gap: 8px; }
  .filter-label { width: auto; }

  /* 通用卡片优化 */
  .product-card, .design-card, .case-card { padding: 16px; }
  .product-card h3, .design-card h3, .case-card h3 { font-size: 15px; }
  .product-card .price, .design-card .price { font-size: 18px; }

  /* 产品详情页 */
  .product-detail-gallery .main-img { height: 240px; }
  .product-thumbs { gap: 8px; }
  .product-thumbs .thumb { width: 60px; height: 45px; }
  .product-info h1 { font-size: 22px; }
  .product-specs { font-size: 13px; }
  .product-specs tr td { padding: 8px 10px; }

  /* 方案详情页 */
  .design-detail-gallery .main-img { height: 220px; }
  .design-detail-content h2 { font-size: 18px; }
  .design-detail-content h3 { font-size: 16px; }

  /* 表单优化 */
  .form-group { margin-bottom: 14px; }
  .form-label { font-size: 13px; margin-bottom: 6px; }
  .form-control { padding: 10px 12px; font-size: 14px; }
  textarea.form-control { min-height: 100px; }

  /* 按钮组优化 */
  .btn-group { flex-direction: column; gap: 10px; }
  .btn-group .btn { width: 100%; }

  /* 弹窗优化 */
  .modal { max-width: 95vw !important; max-height: 90vh; overflow-y: auto; margin: 5vh auto; }
  .modal-body { padding: 16px; }
  .modal-header { padding: 14px 16px; }
  .modal-title { font-size: 16px; }

  /* 分页优化 */
  .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .pagination a, .pagination span { padding: 8px 12px; font-size: 13px; min-width: 36px; }

  /* 标签页优化 */
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tabs .tab { white-space: nowrap; flex-shrink: 0; padding: 10px 16px; font-size: 13px; }

  /* 关于我们页面 */
  .about-hero h1 { font-size: 24px; }
  .about-section h2 { font-size: 20px; }
  .team-card { padding: 16px; }
  .team-card .avatar { width: 70px; height: 70px; }
  .team-card h3 { font-size: 15px; }

  /* 联系我们页面 */
  .contact-info-card { padding: 16px; }
  .contact-info-card .icon { width: 44px; height: 44px; font-size: 20px; }
  .contact-info-card h3 { font-size: 15px; }
  .contact-info-card p { font-size: 13px; }

  /* 搜索结果页 */
  .search-result-item { padding: 14px; flex-direction: column; gap: 12px; }
  .search-result-item .result-img { width: 100%; height: 160px; }
  .search-result-item .result-info { flex: 1; }
  .search-stats { font-size: 13px; }
  .filter-bar { padding: 14px; }
  .filter-options button { padding: 6px 12px; font-size: 12px; }

  /* 产品详情页规格表 */
  .product-specs { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product-specs table { min-width: 280px; }

  /* 获取报价表单页 */
  .quote-form-step { padding: 16px; }
  .step-indicator { flex-wrap: wrap; gap: 8px; }
  .step-indicator .step { font-size: 12px; padding: 6px 10px; }

  /* 加载更多按钮 */
  .load-more-btn { width: 100%; padding: 12px; font-size: 14px; }

  /* 回到顶部 */
  .back-to-top { width: 44px; height: 44px; font-size: 18px; bottom: 20px; right: 20px; }

  /* 隐藏移动端元素 */
  .hide-mobile { display: none !important; }

  /* 显示移动端元素 */
  .show-mobile { display: block !important; }

  /* 获取报价表单页优化 */
  .admin-card { padding: 16px !important; }
  #styleOptions { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  #styleOptions .card div[style*="aspect-ratio"] { font-size: 24px; }
  #styleOptions .card div:last-child { padding: 8px; font-size: 12px; }
  .upload-area { padding: 30px 20px; }
  .upload-area .icon { width: 50px; height: 50px; font-size: 24px; }
  #photoPreview .photo-item { width: calc(33.333% - 7px); aspect-ratio: 1; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .category-icons { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .product-thumbs .thumb { width: 50px; height: 38px; }
  .section-title h2 { font-size: 20px; }
}
