/* =========================================================
   广州豪享福门窗科技有限公司 · 官网样式
   设计体系：曜石黑 #0A1119 / 深空蓝 #101A24 / 香槟金 #C8A96A
   说明：全站零外链字体与第三方资源，保证国内访问速度与稳定性
   ========================================================= */

:root {
  --ink: #0A1119;
  --navy: #101A24;
  --navy-2: #16202B;
  --gold: #C8A96A;
  --gold-dark: #8E7A4C;
  --mist: #F4F6F8;
  --line: #E3E7EB;
  --text: #2A3540;
  --muted: #6E7C8A;
  --soft: #9FB0BE;
  --max: 1200px;
  --radius: 4px;

  --font-cn: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Han Serif CN", "Songti SC", "SimSun", Georgia, serif;
  --font-num: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* 键盘可访问性：保留可见焦点 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--ink);
}

p { margin: 0; }

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

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}

.section-title { font-size: 34px; margin-bottom: 16px; }
.section-desc { color: var(--muted); max-width: 720px; }
.section--dark .section-desc, .section--ink .section-desc { color: var(--soft); }

.section-head { margin-bottom: 48px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50; /* z-index 仅在定位元素上生效，此处已 sticky */
  background: rgba(10, 17, 25, 0.96);
  border-bottom: 1px solid rgba(200, 169, 106, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { flex: none; }
.brand__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}
.brand__slogan {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  color: var(--gold);
  font-weight: 400;
}

.nav__menu { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 15px;
  color: #C9D2DA;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

.nav__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-num);
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background .2s;
}
.nav__tel:hover { background: #D9BC81; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 4px auto;
  background: #fff;
}

/* ---------- 首屏 ---------- */
.hero {
  background: linear-gradient(120deg, #0A1119 0%, #16202B 55%, #1E2A36 100%);
  color: #fff;
  padding: 104px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* 品牌 H 门形底纹：纯 CSS，无图片请求 */
  content: "";
  position: absolute;
  right: -80px;
  top: 40px;
  width: 420px;
  height: 480px;
  background:
    linear-gradient(to bottom, transparent 46%, rgba(200,169,106,.16) 46%, rgba(200,169,106,.16) 50%, transparent 50%),
    linear-gradient(to right, rgba(200,169,106,.1) 1.5px, transparent 1.5px) 0 0 / 140px 100%;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  color: #fff;
  font-size: 46px;
  line-height: 1.35;
  margin-bottom: 22px;
}
.hero__desc { color: var(--soft); font-size: 16px; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #D9BC81; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy-2); }

/* ---------- 数据条 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 44px 0;
  border-top: 1px solid rgba(200, 169, 106, .35);
  margin-top: 56px;
}
.stat__num {
  font-family: var(--font-num);
  font-size: 40px;
  color: var(--gold);
  line-height: 1.1;
}
.stat__label { font-size: 13px; color: var(--soft); margin-top: 8px; }

/* ---------- 卡片网格 ---------- */
.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: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(10, 17, 25, .06); }
.card__index {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }

.card--dark {
  background: var(--navy-2);
  border-color: rgba(255, 255, 255, .08);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--soft); }

/* ---------- 图片占位（替换真图时把 .ph 换成 <img>） ---------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(200, 169, 106, .85);
  background: linear-gradient(135deg, #4C5763 0%, #1F2A35 100%);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--tall { aspect-ratio: 3 / 4; }

/* ---------- 真实产品图 ---------- */
.product__pic {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EDEFF2;
}
.product__pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product:hover .product__pic img { transform: scale(1.045); }
.product__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,17,25,0) 55%, rgba(10,17,25,.28) 100%);
  opacity: .9;
  pointer-events: none;
}

/* ---------- 产品区 ---------- */
.product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 80px;
  z-index: 20;
}
.product-nav a {
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  transition: all .2s;
}
.product-nav a:hover { border-color: var(--gold); color: var(--gold); }

.cat { padding: 56px 0 8px; }
.cat__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 8px; }
.cat__title { font-size: 26px; }
.cat__count { font-family: var(--font-num); color: var(--gold); font-size: 15px; }
.cat__desc { color: var(--muted); margin-bottom: 28px; }

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.product:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(10, 17, 25, .08);
}
.product__body { padding: 18px 20px 22px; }
.product__name { font-size: 17px; font-family: var(--font-serif); font-weight: 700; color: var(--ink); }
.product__meta { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ---------- 关于页 ---------- */
.about-hero {
  background: linear-gradient(120deg, #0A1119 0%, #16202B 100%);
  color: #fff;
  padding: 88px 0 72px;
}
.about-hero__inner {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 72px;
  align-items: center;
}
.about-hero h1 { color: #fff; font-size: 42px; margin-bottom: 20px; }
.about-hero p { color: var(--soft); font-size: 16px; }
.about-hero__stats {
  display: flex;
  gap: 72px;
  padding-top: 32px;
  margin-top: 48px;
  border-top: 1px solid rgba(200, 169, 106, .35);
}
.about-hero__stats .stat__num { font-size: 34px; }

.timeline { border-left: 2px solid var(--line); padding-left: 28px; }
.timeline__item { position: relative; padding-bottom: 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline__year { font-family: var(--font-num); color: var(--gold); font-size: 15px; }
.timeline__item h3 { font-size: 19px; margin: 6px 0 8px; }
.timeline__item p { color: var(--muted); }

/* ---------- 品牌墙 ---------- */
.brand-wall__main {
  background: var(--navy-2);
  text-align: center;
  padding: 72px 24px;
  border-radius: var(--radius);
}
.brand-wall__main .brand__name { font-size: 40px; letter-spacing: 10px; }
.brand-wall__main .brand__en {
  font-family: var(--font-num);
  letter-spacing: 6px;
  color: var(--gold);
  font-size: 13px;
  margin-top: 10px;
}
.brand-wall__rule {
  width: 180px;
  height: 1px;
  background: rgba(200, 169, 106, .45);
  margin: 26px auto;
}
.brand-wall__slogan { font-size: 20px; color: var(--gold); letter-spacing: 4px; }
.brand-wall__tag { font-size: 13px; color: var(--soft); letter-spacing: 3px; margin-top: 8px; }

.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.swatch__chip { height: 120px; }
.swatch__body { padding: 14px 16px 18px; background: #fff; }
.swatch__name { font-family: var(--font-num); font-size: 13px; font-weight: 600; }
.swatch__use { font-size: 12px; color: var(--muted); margin-top: 4px; }

.slogan-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 8px;
  border-radius: var(--radius);
}
.slogan-bar--dark { background: var(--ink); color: var(--gold); }
.slogan-bar--gold { background: var(--gold); color: var(--ink); }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  background: #fff;
}
.info-card h3 { font-size: 18px; margin-bottom: 10px; }
.info-card__value { font-size: 20px; font-family: var(--font-num); color: var(--ink); }
.info-card__value a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.info-card__note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.form { background: var(--mist); padding: 36px; border-radius: var(--radius); }
.form__row { margin-bottom: 18px; }
.form label { display: block; font-size: 13px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.form textarea { min-height: 110px; resize: vertical; }
.form button { width: 100%; border: none; }
.form__tip { font-size: 12px; color: var(--muted); margin-top: 12px; }
.form__msg {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(200, 169, 106, .14);
  color: var(--gold-dark);
  font-size: 14px;
}
.form__msg.is-show { display: block; }

.map-ph {
  height: 320px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(200, 169, 106, .85);
  background: linear-gradient(135deg, #4C5763 0%, #1F2A35 100%);
  font-size: 13px;
  padding: 20px;
}

/* ---------- 转化区 ---------- */
.cta {
  background: linear-gradient(120deg, #0A1119 0%, #16202B 100%);
  color: #fff;
  padding: 76px 0;
  text-align: center;
}
.cta h2 { color: #fff; font-size: 32px; margin-bottom: 14px; }
.cta p { color: var(--soft); }
.cta__tel {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 36px;
  color: var(--gold);
  margin: 26px 0 8px;
  letter-spacing: 2px;
}
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: var(--soft); padding: 64px 0 28px; font-size: 14px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer__title { color: #fff; font-size: 16px; margin-bottom: 16px; font-family: var(--font-serif); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 10px; }
.footer__list a:hover { color: var(--gold); }
.footer__slogan { color: var(--gold); font-size: 13px; letter-spacing: 1.6px; margin-top: 12px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6E7C8A;
}

/* ---------- 移动端底部拨号条 ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--ink);
  border-top: 1px solid rgba(200, 169, 106, .3);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  color: var(--gold);
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 600;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .about-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__toggle { display: block; }
  .site-header.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: var(--ink);
    padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(200, 169, 106, .25);
  }
  .site-header.is-open .nav__link { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-header.is-open .nav__tel { margin-top: 16px; justify-content: center; }

  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 30px; }
  .hero::after { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
  .stat__num { font-size: 32px; }

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

  .about-hero__stats { gap: 32px; flex-wrap: wrap; }
  .about-hero h1 { font-size: 28px; }

  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 24px; }

  .product-nav { position: static; overflow-x: auto; flex-wrap: nowrap; }
  .product-nav a { flex: none; }

  .cta__tel { font-size: 28px; }
  .slogan-bar { font-size: 20px; letter-spacing: 4px; height: 100px; }
  .brand-wall__main .brand__name { font-size: 30px; letter-spacing: 6px; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .mobile-bar { display: block; }
  body { padding-bottom: 56px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .grid--4 { grid-template-columns: 1fr; }
  .brand__name { font-size: 17px; }
}
