/* =========================================================
   好来屋 · 高端定制全品类供应商 官网样式
   Palette: off-white / warm gray + brass/gold accent
   ========================================================= */

:root {
  --bg: #f7f4ef;
  --bg-alt: #efeae2;
  --ink: #2a2723;
  --ink-soft: #5c574f;
  --line: #ddd6ca;
  --brass: #a8894f;
  --brass-dark: #8a6f3c;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(42, 39, 35, 0.12);
  --radius: 4px;
  --maxw: 1200px;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brass); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.3; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: #26241f; color: #ece7dd; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #f4efe5; }
.section--dark .section-title span { color: var(--brass); }

/* --- Section headings --- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .32em;
  text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 16px;
}
.section-title { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 18px; }
.section-title span { color: var(--brass); }
.section-lead { color: var(--ink-soft); font-size: 17px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 34px; font-size: 15px; letter-spacing: .06em;
  border-radius: var(--radius); font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .28s ease; font-family: var(--sans);
}
.btn--primary { background: var(--brass); color: #fff; }
.btn--primary:hover { background: var(--brass-dark); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.main-nav ul { display: flex; gap: 34px; list-style: none; align-items: center; }
.main-nav a { font-size: 15px; font-weight: 500; letter-spacing: .02em; position: relative; }
.main-nav a.active { color: var(--brass); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brass); transition: width .28s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.header-cta { display: inline-flex; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: .3s; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease; transform: scale(1.05);
}
.hero-slide.active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,18,15,.72) 0%, rgba(20,18,15,.35) 55%, rgba(20,18,15,.15) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 680px; }
.hero .eyebrow { color: #e6c98a; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); color: #fff; margin-bottom: 22px; line-height: 1.15; }
.hero p { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.9); margin-bottom: 34px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 12px; }
.hero-dots button { width: 34px; height: 3px; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--brass); }

/* =========================================================
   Stats
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat { padding: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); color: var(--brass); }
.stat span { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 6px; }

/* =========================================================
   Intro / two-column
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split-body h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 20px; }
.split-body p { color: var(--ink-soft); margin-bottom: 18px; }
.split-body .btn { margin-top: 12px; }
.checklist { list-style: none; margin: 20px 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 12px; border: 2px solid var(--brass); border-radius: 50%; }

/* =========================================================
   Cards / solutions grid
   ========================================================= */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(42,39,35,.07); transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 26px 26px 30px; }
.card-body h3 { font-size: 21px; margin-bottom: 10px; }
.card-body p { color: var(--ink-soft); font-size: 15px; }
.card-tag { display: inline-block; font-size: 12px; letter-spacing: .18em; color: var(--brass); text-transform: uppercase; margin-bottom: 12px; }

/* --- feature list (craft) --- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { padding: 34px 28px; background: var(--white); border-radius: var(--radius); border-top: 3px solid var(--brass); box-shadow: 0 10px 30px rgba(42,39,35,.06); }
.feature h3 { font-size: 20px; margin-bottom: 12px; }
.feature p { color: var(--ink-soft); font-size: 15px; }
.feature .num { font-family: var(--serif); color: var(--brass); font-size: 15px; letter-spacing: .2em; display: block; margin-bottom: 14px; }

/* =========================================================
   Timeline
   ========================================================= */
.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding-bottom: 44px; position: relative; }
.tl-year { font-family: var(--serif); font-size: 22px; color: var(--brass); text-align: right; padding-right: 10px; }
.tl-body { position: relative; padding-left: 26px; }
.tl-body::before { content: ""; position: absolute; left: -7px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--brass); border: 3px solid var(--bg); }
.section--alt .tl-body::before { border-color: var(--bg-alt); }
.tl-body h3 { font-size: 20px; margin-bottom: 8px; }
.tl-body p { color: var(--ink-soft); font-size: 15px; }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { position: relative; padding: 110px 0; color: #fff; text-align: center; background-size: cover; background-position: center; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(26,24,20,.7); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 18px; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 620px; margin: 0 auto 30px; font-size: 17px; }

/* =========================================================
   Forms
   ========================================================= */
.form-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field label .req { color: var(--brass); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 15px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168,137,79,.14); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.form-status { margin-top: 16px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: #3e7a4c; }
.form-status.err { color: #b0453b; }

/* =========================================================
   Contact info blocks
   ========================================================= */
.info-list { list-style: none; }
.info-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-ico { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--brass); font-size: 20px; }
.info-txt h4 { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); font-weight: 500; margin-bottom: 4px; }
.info-txt p { font-size: 17px; color: var(--ink); }
.info-txt a { color: var(--brass); font-weight: 600; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero { position: relative; padding: 130px 0 96px; color: #fff; background-size: cover; background-position: center; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,18,15,.78), rgba(20,18,15,.4)); }
.page-hero .container { position: relative; z-index: 2; max-width: 760px; }
.page-hero .eyebrow { color: #e6c98a; }
.page-hero h1 { font-size: clamp(30px, 4.6vw, 52px); color: #fff; margin-bottom: 18px; }
.page-hero p { color: rgba(255,255,255,.9); font-size: 18px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 22px; letter-spacing: .05em; }
.breadcrumb a:hover { color: #fff; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: #1f1d19; color: #b7b1a6; padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { height: 46px; margin-bottom: 18px; }
.footer-brand p { color: #8f897e; line-height: 1.8; max-width: 320px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 15px; letter-spacing: .1em; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a:hover { color: #fff; }
.footer-contact p { margin-bottom: 12px; line-height: 1.7; }
.footer-contact a { color: #e6c98a; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #6f6a60; font-size: 13px; }

/* =========================================================
   Utility & reveal
   ========================================================= */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .split, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split-media { order: 0; }
  .grid, .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .section { padding: 68px 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); transform: translateY(-120%);
    transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; gap: 0; padding: 12px 24px 24px; }
  .main-nav li { width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 15px 0; }
  .main-nav a::after { display: none; }
  .grid, .grid--2, .features, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .tl-year { text-align: left; padding-right: 0; }
  .tl-body { padding-left: 0; }
  .tl-body::before { left: -30px; }
  .form-wrap { padding: 28px 22px; }
  .hero { min-height: 78vh; }
}
