/* =====================================================
   四川变色龙家居艺术 · 全新改版
   设计语言：墨绿 × 香槟金 × 米白 | 精美 · 大气 · 专业 · 实用
   ===================================================== */
:root {
  --ink: #16302b;            /* 墨绿主色 */
  --ink-2: #1f4239;
  --gold: #c8a35f;           /* 香槟金 */
  --gold-2: #b3894a;
  --cream: #faf7f1;          /* 米白底 */
  --paper: #ffffff;
  --text: #2c2c2c;
  --text-2: #6b6f6d;
  --line: #e8e2d6;
  --shadow: 0 10px 40px rgba(22, 48, 43, .10);
  --shadow-lg: 0 24px 60px rgba(22, 48, 43, .16);
  --radius: 14px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部公告条 ---------- */
.topbar {
  background: var(--ink);
  color: #d8cfc0;
  font-size: 13px;
  padding: 7px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--gold); }
.topbar .tb-contact { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 6px 24px rgba(22,48,43,.08); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  letter-spacing: 1px; box-shadow: inset 0 0 0 1px rgba(200,163,95,.4);
}
.logo-text { line-height: 1.25; }
.logo-text strong { font-size: 19px; color: var(--ink); font-family: var(--font-serif); letter-spacing: 2px; }
.logo-text span { display: block; font-size: 11px; color: var(--text-2); letter-spacing: 1px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 10px 16px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--ink); transition: all .25s;
}
.nav-links a:hover, .nav-links a.active { background: var(--ink); color: var(--gold); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #fff !important; font-weight: 600;
  padding: 11px 22px !important; border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(200,163,95,.4); transition: transform .25s;
}
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); border-radius: 2px;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 13px; color: var(--text-2); padding: 18px 0 0; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--gold-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #c5bfb2; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,30,26,.92) 0%, rgba(13,30,26,.62) 45%, rgba(13,30,26,.25) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0; max-width: 640px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(200,163,95,.55); color: var(--gold);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; letter-spacing: 3px; margin-bottom: 26px;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(34px, 5vw, 56px);
  line-height: 1.25; letter-spacing: 2px; margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 17px; color: rgba(255,255,255,.85); max-width: 540px; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 999px; font-size: 16px; font-weight: 600;
  transition: all .25s; cursor: pointer; border: 0;
}
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 10px 26px rgba(200,163,95,.45); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat b { font-size: 34px; font-family: var(--font-serif); color: var(--gold); display: block; }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.75); letter-spacing: 1px; }

/* ---------- 区块通用 ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .kicker {
  color: var(--gold-2); letter-spacing: 5px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px;
}
.section-head .kicker::before, .section-head .kicker::after {
  content: ""; width: 36px; height: 1px; background: var(--gold);
}
.section-head h2 {
  font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 38px);
  color: var(--ink); letter-spacing: 2px; margin: 14px 0 12px;
}
.section-head p { color: var(--text-2); }

/* ---------- 服务卡片 ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: all .35s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 19px; color: var(--ink); margin-bottom: 10px; font-family: var(--font-serif); letter-spacing: 1px; }
.card-body p { color: var(--text-2); font-size: 14.5px; flex: 1; }
.card-more { margin-top: 18px; color: var(--gold-2); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.card-more:hover { gap: 10px; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 24px;
}

/* ---------- 关于/特色 ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-media .badge-float {
  position: absolute; bottom: -24px; right: -12px;
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 22px 28px; box-shadow: var(--shadow-lg); text-align: center;
}
.split-media .badge-float b { display: block; font-family: var(--font-serif); font-size: 30px; color: var(--gold); }
.split-media .badge-float span { font-size: 12px; color: rgba(255,255,255,.8); letter-spacing: 2px; }
.check-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list li::before {
  content: "✓"; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(200,163,95,.16); color: var(--gold-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 5px;
}

/* ---------- 数字统计 ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 64px 0; }
.stats-band .grid-4 { gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat b { font-family: var(--font-serif); font-size: 42px; color: var(--gold); display: block; line-height: 1.2; }
.stat b i { font-style: normal; font-size: 22px; }
.stat span { font-size: 14px; color: rgba(255,255,255,.72); letter-spacing: 2px; }

/* ---------- 案例筛选 ---------- */
.filter-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter-bar button {
  padding: 9px 24px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--text); font-size: 14px; cursor: pointer; transition: all .25s;
}
.filter-bar button.active, .filter-bar button:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.case-item { position: relative; }
.case-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(22,48,43,.88); color: var(--gold); font-size: 12px;
  padding: 5px 14px; border-radius: 999px; letter-spacing: 1px;
}

/* ---------- 新闻 ---------- */
.news-card .card-body time { color: var(--gold-2); font-size: 12.5px; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.news-card .card-body h3 { font-size: 17px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-sans);
}
.faq-q::after { content: "+"; font-size: 22px; color: var(--gold-2); transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 22px; color: var(--text-2); font-size: 15px; }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; text-align: center; padding: 80px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 80% 20%, rgba(200,163,95,.22), transparent);
}
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); letter-spacing: 2px; margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 30px; position: relative; }
.cta-band .btn { position: relative; }
.cta-band .cta-phone { display: block; margin-top: 22px; font-size: 22px; color: var(--gold); font-family: var(--font-serif); letter-spacing: 2px; position: relative; }

/* ---------- 页脚 ---------- */
.footer { background: #102420; color: #9fb0a8; font-size: 14px; padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer h4 { color: #fff; font-size: 15px; letter-spacing: 2px; margin-bottom: 20px; font-weight: 600; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer .logo-text strong { color: #fff; }
.footer .logo-text span { color: #8fa096; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact b { color: #d5cfc4; font-weight: 500; }
.footer-contact .tel { color: var(--gold); font-size: 18px; font-family: var(--font-serif); letter-spacing: 1px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #77897f;
}
.footer-bottom a:hover { color: var(--gold); }

/* ---------- 浮动客服 ---------- */
.float-bar {
  position: fixed; right: 18px; bottom: 90px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.float-bar a, .float-bar button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--gold); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all .25s; text-decoration: none;
}
.float-bar a:hover, .float-bar button:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
#backTop { opacity: 0; pointer-events: none; }
#backTop.show { opacity: 1; pointer-events: auto; }
.floating-phone {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--ink); color: #fff; display: none;
  padding: 12px 18px; align-items: center; justify-content: space-between;
}
.floating-phone .tel { color: var(--gold); font-size: 18px; font-weight: 700; }

/* ---------- 页面内页头 ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff; padding: 70px 0 60px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 260px at 85% 15%, rgba(200,163,95,.18), transparent);
}
.page-hero .breadcrumb { position: relative; z-index: 2; color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero h1 { position: relative; z-index: 2; font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); letter-spacing: 3px; margin-top: 14px; }
.page-hero .page-desc { position: relative; z-index: 2; color: rgba(255,255,255,.72); max-width: 640px; margin-top: 10px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-card h3 { font-family: var(--font-serif); color: var(--ink); margin-bottom: 18px; font-size: 20px; }
.info-card .footer-contact b { color: var(--text-2); }
.info-card .footer-contact .tel { color: var(--gold-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--cream); transition: border .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.form-tip { font-size: 13px; color: var(--text-2); margin-top: 14px; }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 28px; background: var(--paper); }
.map-box .map-embed { width: 100%; min-height: 320px; border: 0; display: block; }

/* ---------- 服务详情页 ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.service-block:nth-child(even) { direction: rtl; }
.service-block > * { direction: ltr; }
.service-block h3 { font-family: var(--font-serif); font-size: 26px; color: var(--ink); letter-spacing: 1px; margin-bottom: 14px; }
.service-block .svc-idx { color: var(--gold-2); font-family: var(--font-serif); font-size: 15px; letter-spacing: 3px; display: block; margin-bottom: 10px; }
.service-block img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.service-block p { color: var(--text-2); margin-bottom: 18px; }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
}
@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; display: none; box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; border-radius: 8px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .hero { min-height: 560px; }
  .hero-stats { gap: 28px; }
  .topbar .tb-slogan { display: none; }
  .float-bar { display: none; }
  .floating-phone { display: flex; }
  body { padding-bottom: 58px; }
  .form-grid { grid-template-columns: 1fr; }
}
