:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --red: #e50914;
  --red-dark: #b20710;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --border: #2a2a2a;
}

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  transition: background .4s ease, box-shadow .4s ease;
}
.navbar.scrolled {
  background: rgba(10, 10, 10, .94);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 3px;
}
.brand-text { font-size: 19px; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: #d2d2d2;
  transition: color .25s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--red);
}
.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.menu-toggle { display: none; background: none; border: 0; width: 28px; height: 22px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hero-living-room.png") center center / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}
.hero-tag {
  display: inline-block;
  border-left: 3px solid var(--red);
  padding-left: 12px;
  font-size: 13px;
  letter-spacing: 3px;
  color: #e0e0e0;
  margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero-title span { color: var(--red); }
.hero-desc {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.85;
  color: #d0d0d0;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(0,0,0,.2); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.hero-bottom {
  position: absolute;
  left: 5%; bottom: 42px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #999;
}
.hero-bottom .dot { width: 3px; height: 3px; background: var(--red); border-radius: 50%; }
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 32px;
  z-index: 2;
  transform: translateX(-50%);
}
.scroll-line {
  display: block;
  width: 1px; height: 48px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.7));
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* 通用区块 */
.section { padding: 100px 0; max-width: 1400px; margin: 0 auto; padding-left: 5%; padding-right: 5%; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { color: var(--red); font-size: 12px; letter-spacing: 4px; font-weight: 600; margin-bottom: 14px; }
.section-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.5px; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 14px; line-height: 1.7; }
.row-controls { display: flex; gap: 10px; flex-shrink: 0; }
.row-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid #444;
  background: transparent;
  color: #fff;
  font-size: 18px;
  transition: all .25s;
}
.row-btn:hover { background: var(--red); border-color: var(--red); }

/* 产品系列 横向卡片 */
.card-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 24px;
  scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 clamp(260px, 26vw, 340px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-8px); border-color: #555; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.08); }
.card-body { padding: 20px; }
.card-title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card-meta { color: var(--red); font-size: 12px; letter-spacing: .5px; margin-bottom: 12px; }
.card-desc { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* 品牌优势 */
.advantage { background: linear-gradient(180deg, #0d0d0d, var(--bg)); max-width: none; padding-left: 5%; padding-right: 5%; }
.advantage .section-head, .advantage .feature-grid { max-width: 1260px; margin-left: auto; margin-right: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface);
  padding: 38px 30px;
  border-top: 2px solid var(--border);
  transition: border-color .3s, transform .3s;
}
.feature:hover { border-top-color: var(--red); transform: translateY(-4px); }
.feature-num { font-size: 42px; font-weight: 800; color: #3a3a3a; line-height: 1; }
.feature h3 { font-size: 22px; margin: 24px 0 14px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.85; }

/* 空间案例 */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
}
.case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.case-card:hover img { transform: scale(1.07); }
.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.1) 60%);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.case-label { color: var(--red); font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
.case-overlay h3 { font-size: 21px; line-height: 1.4; }

/* 关于我们 */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.about-text p { color: var(--muted); font-size: 15px; line-height: 1.95; margin-top: 18px; }
.stats { display: flex; gap: 44px; margin-top: 38px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: 36px; font-weight: 800; line-height: 1; }
.stat strong span { font-size: 17px; color: var(--red); margin-left: 2px; }
.stat > span { color: var(--muted); font-size: 13px; }

/* 联系我们 */
.contact { background: linear-gradient(180deg, var(--bg), #141414); max-width: none; text-align: center; padding-left: 5%; padding-right: 5%; }
.contact-inner { max-width: 820px; margin: 0 auto; }
.contact-title { font-size: clamp(32px, 4vw, 52px); font-weight: 800; line-height: 1.3; }
.contact-desc { color: var(--muted); font-size: 16px; margin-top: 18px; }
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.contact-info { display: flex; gap: 46px; justify-content: center; flex-wrap: wrap; margin-top: 54px; padding-top: 36px; border-top: 1px solid var(--border); }
.contact-info div { font-size: 14px; color: #ddd; line-height: 1.8; }
.contact-info span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 2px; }

/* 页脚 */
.footer { background: #050505; border-top: 1px solid var(--border); padding: 42px 0; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.footer-brand .brand-mark { width: 28px; height: 28px; font-size: 16px; }
.footer p { color: #666; font-size: 13px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: #888; font-size: 13px; }
.footer-links a:hover { color: var(--red); }

/* 滚动出现动画 */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 响应式 */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,10,10,.98);
    padding: 12px 5% 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid #1e1e1e; }
  .nav-links a.active::after { display: none; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .feature-grid, .case-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .row-controls { align-self: flex-end; }
  .hero-bottom { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; padding-left: 5%; padding-right: 5%; }
  .hero { min-height: 600px; }
  .hero-title { font-size: 40px; }
  .hero-desc br { display: none; }
  .card { flex-basis: 78vw; }
  .stats { gap: 28px; }
  .stat strong { font-size: 30px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
