/* ============================================================
   上海床垫网 · 企业官网共享样式
   风格：简约大气 | 配色：深海军蓝 + 暖金 + 米色
   ============================================================ */

:root {
  --navy: #163249;
  --navy-dark: #0f2438;
  --navy-soft: #23425e;
  --gold: #c2a36b;
  --gold-deep: #a8884f;
  --cream: #f7f4ef;
  --cream-2: #efe9df;
  --ink: #1f2a33;
  --muted: #5c6b78;
  --white: #ffffff;
  --line: #e7e1d6;
  --shadow-sm: 0 2px 10px rgba(15, 36, 56, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 36, 56, 0.10);
  --shadow-lg: 0 18px 50px rgba(15, 36, 56, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 74px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans CN", "Noto Sans CJK SC", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.28s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--gold);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }

/* ---------------- 页头 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.brand .logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  display: grid;
  place-items: center;
  color: var(--gold);
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 2px;
  margin-top: -4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.28s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 10px 22px; font-size: 14px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-image: linear-gradient(
      105deg,
      rgba(15, 36, 56, 0.86) 0%,
      rgba(15, 36, 56, 0.55) 45%,
      rgba(15, 36, 56, 0.15) 100%
    ),
    url("../../assets/img/hero.png");
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-inner { max-width: 640px; padding: 90px 0; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 34px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 46px;
  margin-top: 52px;
  flex-wrap: wrap;
}
.hero-stats .stat .num {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}
.hero-stats .stat .num span { color: var(--gold); }
.hero-stats .stat .label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 1px;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 88px 0; }
.section.alt { background: var(--cream); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 54px;
}
.section-head .tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------------- 优势卡片 ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.feature-card .ic {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--cream-2);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ---------------- 产品预览（首页） ---------------- */
.prod-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.prod-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}
.prod-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prod-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 36, 56, 0.9), rgba(15, 36, 56, 0) 60%);
}
.prod-card:hover img { transform: scale(1.07); }
.prod-card .body {
  position: relative;
  z-index: 2;
  padding: 26px;
  color: #fff;
}
.prod-card .body h3 { font-size: 19px; margin-bottom: 6px; }
.prod-card .body span { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); }
.prod-card .body .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

/* ---------------- 为何选择我们 ---------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.why-list { display: grid; gap: 20px; }
.why-item {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.why-item:hover { box-shadow: var(--shadow-sm); border-color: var(--gold); }
.why-item .ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
}
.why-item h4 { font-size: 17px; color: var(--navy); margin-bottom: 4px; }
.why-item p { font-size: 14.5px; color: var(--muted); }
.why-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.why-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); font-size: 15.5px; }

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: rgba(255, 255, 255, 0.55); }
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col li { font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: var(--gold); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; }
.footer-col .contact-line .ic { color: var(--gold); flex: none; margin-top: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------- 关于页 ---------------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy), var(--navy-soft));
  color: #fff;
  padding: 70px 0 64px;
}
.page-hero .crumb { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--gold); }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: 1px; }
.page-hero p { color: rgba(255, 255, 255, 0.82); margin-top: 14px; max-width: 660px; font-size: 16px; }

.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.about-intro .text h2 { font-size: 28px; color: var(--navy); margin-bottom: 18px; font-weight: 800; }
.about-intro .text p { color: var(--muted); margin-bottom: 16px; font-size: 15.5px; }
.about-intro .media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.about-intro .media img { width: 100%; height: 100%; object-fit: cover; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 10px;
}
.metric {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 18px;
}
.metric .num { font-size: 36px; font-weight: 800; color: var(--navy); }
.metric .num span { color: var(--gold); }
.metric .label { font-size: 14px; color: var(--muted); margin-top: 6px; }

.timeline { max-width: 820px; margin: 0 auto; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}
.tl-item { position: relative; padding: 0 0 34px 56px; }
.tl-item .dot {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid var(--cream-2);
}
.tl-item .year { font-size: 15px; color: var(--gold-deep); font-weight: 700; letter-spacing: 1px; }
.tl-item h4 { font-size: 18px; color: var(--navy); margin: 4px 0 6px; }
.tl-item p { color: var(--muted); font-size: 15px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--gold);
}
.value-card .ic { color: var(--navy); margin-bottom: 16px; }
.value-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.value-card p { color: var(--muted); font-size: 14.5px; }

/* ---------------- 产品页 ---------------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.prod-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 200px 1fr;
  transition: box-shadow 0.3s, transform 0.3s;
}
.prod-detail:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.prod-detail .thumb { overflow: hidden; }
.prod-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-detail .info { padding: 24px 26px; }
.prod-detail .info .tag {
  font-size: 12px;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: 1px;
}
.prod-detail .info h3 { font-size: 20px; color: var(--navy); margin: 6px 0 10px; }
.prod-detail .info p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.prod-detail .info ul { display: grid; gap: 7px; }
.prod-detail .info li {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.prod-detail .info li .ic { color: var(--gold); flex: none; margin-top: 3px; }

/* ---------------- 联系页 ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 { font-size: 28px; color: var(--navy); margin-bottom: 14px; font-weight: 800; }
.contact-info > p { color: var(--muted); margin-bottom: 28px; font-size: 15.5px; }
.info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-item:last-of-type { border-bottom: none; }
.info-item .ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cream-2);
  color: var(--navy);
  display: grid;
  place-items: center;
}
.info-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.info-item p { font-size: 15px; color: var(--ink); }
.info-item a:hover { color: var(--gold-deep); }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.form-card .sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; color: var(--navy); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: #c0392b; margin-left: 2px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(194, 163, 107, 0.16);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-ok {
  display: none;
  background: #eaf6ee;
  border: 1px solid #bfe3cc;
  color: #1f7a45;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.form-ok.show { display: block; }
.field .err { color: #c0392b; font-size: 13px; margin-top: 5px; display: none; }
.field.invalid input,
.field.invalid textarea,
.field.invalid select { border-color: #c0392b; }
.field.invalid .err { display: block; }

.map-box {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
  background:
    linear-gradient(rgba(22,50,73,0.04), rgba(22,50,73,0.04)),
    repeating-linear-gradient(45deg, #eef1f4 0 14px, #e7ebef 14px 28px);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  position: relative;
}
.map-box .pin { color: var(--gold-deep); margin-bottom: 8px; }
.map-box .map-label { font-size: 15px; font-weight: 600; color: var(--navy); }
.map-box .map-sub { font-size: 13.5px; margin-top: 4px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-preview { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-intro { grid-template-columns: 1fr; gap: 34px; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 0.28s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { width: 100%; padding: 14px 24px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 520px; }
  .hero-stats { gap: 30px; }
  .cta-band { padding: 36px 28px; }
  .section { padding: 64px 0; }
  .field-row { grid-template-columns: 1fr; }
  .prod-detail { grid-template-columns: 1fr; }
  .prod-detail .thumb { height: 190px; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .prod-preview { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
}
