/* ============================================================
   达拉特旗多乐士专卖店 · 全站共享样式 v2.5
   配色提取自 dulux.com.cn 官网 | 2026-09-10 定稿
   ============================================================ */
:root {
  --dulux-teal: #00A78E;       /* 官网品牌青绿：主CTA、链接 */
  --dulux-teal-light: #2FC48D; /* 官网浅青绿：渐变、hover */
  --dulux-navy: #012169;       /* 阿克苏深蓝：标题、导航、页脚 */
  --dulux-navy-mid: #005192;   /* 官网中蓝：渐变过渡 */
  --dulux-red: #E4032F;        /* 多乐士红：Logo徽标、价格、点睛 */
  --bg-white: #FAFAFA;         /* 官网主背景：浅灰 */
  --bg-gray: #F4F4F4;          /* 官网次级背景 */
  --bg-gray2: #F1F1F1;
  --border: #E1E1E1;           /* 官网分隔线 */
  --text: #494949;             /* 官网正文灰 */
  --text-light: #959595;       /* 官网次要文字 */
  --qixin-green: #A3A793;      /* 2027年度色·栖心绿 12GY 39/101（官网真实色值） */
  --radius-card: 12px;
  --radius-btn: 26px;          /* 官网胶囊按钮风格 */
  --bottombar-h: 64px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  background: var(--bg-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  padding-bottom: var(--bottombar-h);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.section { padding: 36px 0; }
.section-title {
  font-size: 22px; font-weight: 700; color: var(--dulux-navy);
  margin-bottom: 4px; letter-spacing: 1px;
}
.section-title::after {
  content: ""; display: block; width: 36px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--dulux-teal), var(--dulux-teal-light));
  margin-top: 6px;
}
.section-sub { font-size: 13px; color: var(--text-light); margin: 10px 0 20px; }

/* ============ 顶部品牌条 ============ */
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 10px 0; position: sticky; top: 0; z-index: 90;
}
.topbar .container { display: flex; align-items: center; gap: 10px; }
.logo-badge {
  background: var(--dulux-red); color: #fff; font-weight: 800; font-size: 15px;
  padding: 4px 12px; border-radius: 6px; letter-spacing: 1px;
}
.topbar-store { font-size: 13px; color: var(--dulux-navy); font-weight: 600; }
.topbar-tel {
  margin-left: auto; color: var(--dulux-teal); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; gap: 4px;
}

/* ============ 按钮 ============ */
.btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 52px; border-radius: var(--radius-btn);
  font-size: 16px; font-weight: 700; border: none; cursor: pointer;
  transition: transform .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--dulux-teal), var(--dulux-teal-light));
  color: #fff; box-shadow: 0 4px 14px rgba(0,167,142,.45);
}
.btn-outline { background: #fff; color: var(--dulux-navy); border: 1.5px solid var(--dulux-navy); }
.btn-navy { background: var(--dulux-navy); color: #fff; }

/* ============ 首页 Hero（浅灰底版） ============ */
.hero {
  background: var(--bg-white);
  color: var(--text); padding: 30px 0 42px; position: relative;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-block; background: var(--dulux-red); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px;
  letter-spacing: 1px; margin-bottom: 16px;
}
.hero h1 {
  font-size: 30px; line-height: 1.35; font-weight: 800; margin-bottom: 12px;
  color: var(--dulux-navy);
}
.hero h1 em { font-style: normal; color: var(--dulux-teal); }
.hero p.hero-sub { font-size: 15px; color: var(--text-light); margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--text-light); }

/* ============ 内页页头（子页面通用） ============ */
.page-hero {
  background: var(--bg-white); padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 26px; font-weight: 800; color: var(--dulux-navy); margin-bottom: 6px; }
.page-hero .ph-sub { font-size: 14px; color: var(--text-light); }
.breadcrumb { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.breadcrumb a { color: var(--dulux-teal); }

/* ============ 信任条 ============ */
.trust-bar { background: #fff; padding: 20px 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.trust-item .t-icon { font-size: 24px; margin-bottom: 4px; }
.trust-item .t-num { font-size: 15px; font-weight: 800; color: var(--dulux-navy); line-height: 1.3; }
.trust-item .t-label { font-size: 11px; color: var(--text-light); }

/* ============ 年度色（栖心绿 12GY 39/101，官网真实色值 #A3A793） ============ */
.coy { background: linear-gradient(135deg, #A3A793 0%, #7C8365 100%); color: #fff; }
.coy .section-title { color: #fff; }
.coy .section-title::after { background: rgba(255,255,255,.6); }
.coy .section-sub { color: rgba(255,255,255,.85); }
.coy-card { display: flex; gap: 16px; align-items: center; }
.coy-swatch {
  width: 110px; height: 110px; border-radius: var(--radius-card); flex-shrink: 0;
  background: linear-gradient(160deg, #B4BAA2, #878E6C);
  border: 4px solid rgba(255,255,255,.4); box-shadow: 0 6px 18px rgba(0,0,0,.2);
  display: flex; align-items: flex-end; padding: 8px;
  font-size: 11px; color: #fff; font-weight: 600;
}
.coy-info h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.coy-info p { font-size: 13px; opacity: .92; margin-bottom: 12px; }
.coy-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.coy-tag {
  font-size: 11px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
  padding: 3px 10px; border-radius: 12px;
}
.coy-cta { margin-top: 18px; }
.btn-coy { background: #fff; color: #7C8365; width: 100%; }

/* ============ 施工案例 ============ */
.cases-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 12px;
  max-width: 720px; margin: 0 auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.cases-scroll::-webkit-scrollbar { display: none; }
.case-card {
  min-width: 240px; scroll-snap-align: start; background: #fff;
  border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--border);
}
.case-img { height: 150px; position: relative; display: flex; }
.case-before, .case-after { flex: 1; position: relative; }
.case-before { background: linear-gradient(135deg, #9a9a9a, #bdb8ae); }
.case-after { background: linear-gradient(135deg, #A3A793, #C4C8B4); }
.case-tag {
  position: absolute; top: 8px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; color: #fff;
}
.case-before .case-tag { left: 8px; background: rgba(0,0,0,.55); }
.case-after .case-tag { right: 8px; background: var(--dulux-teal); }
.case-vs {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: var(--dulux-red);
  box-shadow: 0 2px 8px rgba(0,0,0,.2); z-index: 2;
}
.case-body { padding: 12px 14px; }
.case-title { font-size: 14px; font-weight: 700; color: var(--dulux-navy); margin-bottom: 2px; }
.case-meta { font-size: 12px; color: var(--text-light); }
.case-real {
  display: inline-block; margin-top: 6px; font-size: 10px; color: var(--dulux-teal);
  border: 1px solid var(--dulux-teal); padding: 1px 6px; border-radius: 4px;
}

/* ============ 爆款产品 ============ */
.products { background: var(--bg-gray); }
.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-card {
  display: flex; gap: 14px; background: #fff; border-radius: var(--radius-card);
  padding: 14px; border: 1px solid var(--border); align-items: center;
}
.product-img {
  width: 84px; height: 84px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 34px;
}
.p1 { background: linear-gradient(135deg, #E4F3EE, #C9E9DF); }
.p2 { background: linear-gradient(135deg, #F3F1FA, #DEDAEF); }
.p3 { background: linear-gradient(135deg, #E8F0F7, #CBDEEE); }
.product-info { flex: 1; }
.product-name { font-size: 15px; font-weight: 700; color: var(--dulux-navy); }
.product-point { font-size: 12px; color: var(--text-light); margin: 2px 0 6px; }
.cert-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cert {
  font-size: 10px; font-weight: 600; color: var(--dulux-teal);
  background: rgba(0,167,142,.08); border: 1px solid rgba(0,167,142,.4);
  padding: 1px 7px; border-radius: 4px;
}
.product-price { text-align: right; flex-shrink: 0; }
.price-now { font-size: 18px; font-weight: 800; color: var(--dulux-red); }
.price-now small { font-size: 11px; font-weight: 600; }
.price-old { font-size: 11px; color: #aaa; text-decoration: line-through; }

/* ============ 服务流程 ============ */
.flow-steps { display: flex; flex-direction: column; }
.flow-step { display: flex; gap: 14px; position: relative; padding-bottom: 22px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before {
  content: ""; position: absolute; left: 19px; top: 42px; bottom: 2px;
  width: 2px; background: var(--border);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--dulux-navy); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.flow-step.free .flow-num { background: linear-gradient(135deg, var(--dulux-teal), var(--dulux-teal-light)); }
.flow-body h4 { font-size: 15px; font-weight: 700; color: var(--dulux-navy); }
.flow-body h4 .free-tag {
  font-size: 10px; color: var(--dulux-teal); border: 1px solid var(--dulux-teal);
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px;
}
.flow-body p { font-size: 13px; color: var(--text-light); }
.promise-bar {
  margin-top: 22px; background: var(--dulux-navy); color: #fff; border-radius: var(--radius-card);
  padding: 16px; display: flex; justify-content: space-around; text-align: center;
}
.promise-item .p-icon { font-size: 20px; }
.promise-item .p-text { font-size: 11px; margin-top: 2px; opacity: .9; }

/* ============ 评价 ============ */
.reviews { background: var(--bg-white); }
.review-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 14px; margin-bottom: 12px;
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.review-name { font-size: 13px; font-weight: 700; color: var(--dulux-navy); }
.review-loc { font-size: 11px; color: var(--text-light); }
.review-stars { margin-left: auto; color: #F5A623; font-size: 13px; letter-spacing: 2px; }
.review-text { font-size: 14px; line-height: 1.65; }
.review-text .hl { color: var(--dulux-teal); font-weight: 600; }
.review-foot { margin-top: 8px; font-size: 11px; color: var(--text-light); display: flex; gap: 12px; }

/* ============ 门店 ============ */
.store-card {
  background: #fff; border-radius: var(--radius-card); overflow: hidden;
  border: 1px solid var(--border);
}
.store-img {
  height: 150px; background: linear-gradient(135deg, #012169, #005192);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); font-size: 14px;
}
.store-body { padding: 16px; }
.store-row { display: flex; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.store-row .s-icon { flex-shrink: 0; }
.store-row .s-label { color: var(--text-light); flex-shrink: 0; font-size: 13px; }
.store-cta { display: flex; gap: 10px; margin-top: 14px; }

/* ============ 留资表单 ============ */
.booking { background: var(--bg-white); }
.booking-form {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 20px 16px;
}
.booking-form input, .booking-form select {
  width: 100%; height: 50px; border: 1.5px solid var(--border); border-radius: 25px;
  padding: 0 18px; font-size: 16px; margin-bottom: 12px; color: var(--text);
  background: var(--bg-white); font-family: inherit;
}
.booking-form input:focus, .booking-form select:focus { outline: none; border-color: var(--dulux-teal); }
.btn-submit {
  width: 100%; background: linear-gradient(135deg, var(--dulux-teal), var(--dulux-teal-light));
  color: #fff; min-height: 52px; font-size: 17px;
  box-shadow: 0 4px 14px rgba(0,167,142,.4);
}
.form-note { text-align: center; font-size: 11px; color: var(--text-light); margin-top: 10px; }
.form-success { display: none; text-align: center; padding: 30px 10px; color: var(--text); }
.form-success .ok { font-size: 44px; }
.form-success h3 { color: var(--dulux-navy); font-size: 18px; margin: 8px 0 4px; }
.form-success p { font-size: 13px; color: var(--text-light); }

/* ============ 底部悬浮栏 ============ */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  height: var(--bottombar-h); background: #fff;
  display: flex; box-shadow: 0 -2px 16px rgba(0,0,0,.12);
}
.bottom-bar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; gap: 2px;
}
.bottom-bar .b-icon { font-size: 20px; }
.bb-call { color: var(--dulux-navy); }
.bb-book {
  background: linear-gradient(135deg, var(--dulux-teal), var(--dulux-teal-light));
  color: #fff; flex: 1.3; font-size: 14px;
}
.bb-nav { color: var(--dulux-navy); }

/* ============ 全站导航条（nav.js 注入） ============ */
.mainnav {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 45px; z-index: 89;
}
.mainnav-inner {
  display: flex; gap: 2px; overflow-x: auto; padding: 0 12px;
  -webkit-overflow-scrolling: touch;
}
.mainnav-inner::-webkit-scrollbar { display: none; }
.mainnav-link {
  flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 11px 12px; border-bottom: 2.5px solid transparent;
}
.mainnav-link.active { color: var(--dulux-teal); border-bottom-color: var(--dulux-teal); }
.mainnav-link.accent {
  color: #fff; background: linear-gradient(135deg, var(--dulux-teal), var(--dulux-teal-light));
  border-radius: 14px; margin: 7px 4px; padding: 4px 14px; font-size: 12px;
}

/* ============ 页脚 ============ */
.footer {
  background: var(--dulux-navy); color: rgba(255,255,255,.65);
  text-align: center; font-size: 11px; padding: 20px 16px;
}

/* ============ 子页面组件：筛选标签 ============ */
.filter-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--text);
  background: #fff; border: 1.5px solid var(--border); border-radius: 20px;
  padding: 7px 16px; cursor: pointer;
}
.filter-tab.active {
  background: linear-gradient(135deg, var(--dulux-teal), var(--dulux-teal-light));
  color: #fff; border-color: transparent;
}

/* ============ 子页面组件：色卡 ============ */
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch-item {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden; text-align: center;
}
.swatch-color { height: 72px; }
.swatch-name { font-size: 12px; font-weight: 700; color: var(--dulux-navy); padding: 6px 4px 0; }
.swatch-code { font-size: 10px; color: var(--text-light); padding: 0 4px 8px; }
.family-block { margin-bottom: 26px; }
.family-title {
  font-size: 16px; font-weight: 700; color: var(--dulux-navy);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.family-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--border); }

/* ============ 子页面组件：服务类型选择 ============ */
.svc-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.svc-type {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius-card);
  padding: 14px 8px; text-align: center; cursor: pointer; transition: all .15s ease;
}
.svc-type .sv-icon { font-size: 26px; margin-bottom: 4px; }
.svc-type .sv-name { font-size: 13px; font-weight: 700; color: var(--dulux-navy); }
.svc-type .sv-desc { font-size: 10px; color: var(--text-light); }
.svc-type.active {
  border-color: var(--dulux-teal); background: rgba(0,167,142,.06);
  box-shadow: 0 0 0 1px var(--dulux-teal);
}

/* ============ 子页面组件：FAQ ============ */
.faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; font-size: 14px; font-weight: 700; color: var(--dulux-navy);
  background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
}
.faq-q .faq-arrow { transition: transform .2s ease; color: var(--text-light); font-size: 12px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none; padding: 0 16px 14px; font-size: 13px; color: var(--text-light); line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ============ 子页面组件：房间场景 ============ */
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.room-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden;
}
.room-img {
  height: 100px; display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.room-body { padding: 10px 12px; }
.room-name { font-size: 14px; font-weight: 700; color: var(--dulux-navy); }
.room-rec { font-size: 11px; color: var(--text-light); }

/* ============ 桌面端适配 ============ */
@media (min-width: 769px) {
  .hero h1 { font-size: 38px; }
  .section-title { font-size: 26px; }
  .page-hero h1 { font-size: 32px; }
  .swatch-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 动效克制：仅保留淡入 */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }
