/* =========================================================
   成都市旭阳时代户外用品有限公司 (XUYANG OUTDOOR) 旗舰官网样式表
   ========================================================= */
:root {
  --bg-page: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0f172a;
  --bg-card-dark: #1e293b;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --accent: #d97706;       /* 旭阳琥珀金 */
  --accent-hover: #b45309;
  --wechat: #07c160;       /* 微信官方绿 */
  --wechat-hover: #06ad56;
  --border: #e2e8f0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
}

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

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

.container {
  width: min(1220px, 92%);
  margin: 0 auto;
}

/* 滚动渐显动画 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 顶部导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 放大四分之一（+25%）后的圆弧白底 LOGO 尺寸（高度 31px） */
.logo-img {
  height: 31px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 7px;
  flex-shrink: 0;
}

.footer-logo-img {
  height: 31px;
  border-radius: 7px;
}

.logo-group {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.logo-cn {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.logo-text {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active-link {
  color: var(--accent);
}

.nav-cta {
  background: var(--bg-dark);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero 首屏 */
.hero {
  padding: 64px 0 88px;
  background: radial-gradient(circle at 88% 18%, #fef3c7 0%, #ffffff 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 550px;
}

/* 首屏操作按钮组（在线算价 + 电话拨打 + 微信同号分开独立设计） */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-icon {
  font-size: 15px;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-outline.btn-call {
  border: 1.5px solid var(--accent);
  background: #fffbeb;
  color: #b45309;
}

.btn-outline.btn-call:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-wechat {
  background: var(--wechat);
  color: #fff;
  border: 1.5px solid var(--wechat);
}

.btn-wechat:hover {
  background: var(--wechat-hover);
  border-color: var(--wechat-hover);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item span {
  font-size: 13px;
  color: var(--text-muted);
}

.visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.visual-card:hover img {
  transform: scale(1.03);
}

.floating-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.floating-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.86);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

/* 通用区块 */
.section {
  padding: 88px 0;
}

.bg-light {
  background: var(--bg-light);
}

.bg-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.sub-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
}

/* 产品卡片 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-img img {
  transform: scale(1.05);
}

.card-img .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.spec-list {
  list-style: none;
  font-size: 13px;
  color: #334155;
  background: var(--bg-light);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.spec-list li + li {
  margin-top: 6px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.price {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.price em {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-detail {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-detail:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.btn-text:hover {
  color: var(--accent);
}

/* Bento Grid 便当盒布局 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.bento-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-wide {
  grid-column: span 2;
}

.dark-card {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.dark-card p {
  color: #cbd5e1;
}

.accent-card {
  background: #fffbeb;
  border-color: #fde68a;
}

.bento-num {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.bento-item h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.bento-item p {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-muted);
}

.dark-card p {
  color: #cbd5e1;
}

.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bento-pills span {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

/* 型材色卡实验室 */
.swatch-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.swatch-preview {
  position: relative;
  height: 360px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #dbeafe 0%, #f1f5f9 68%, #cbd5e1 68%, #94a3b8 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.swatch-beam {
  position: relative;
  margin: 26px auto 0;
  width: 84%;
  height: 38px;
  background: var(--frame-color);
  border-radius: 6px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transition: background-color 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swatch-louvers {
  display: flex;
  gap: 18px;
  width: 88%;
  justify-content: space-between;
}

.swatch-louvers span {
  display: block;
  width: 32px;
  height: 10px;
  background: var(--frame-color);
  filter: brightness(1.22);
  transform: skewX(-25deg);
  border-radius: 2px;
  transition: background-color 0.35s ease;
}

.swatch-led {
  position: absolute;
  bottom: -4px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #fde68a;
  box-shadow: 0 4px 16px #f59e0b;
  border-radius: 999px;
}

.swatch-pillar-left,
.swatch-pillar-right {
  position: absolute;
  top: 64px;
  bottom: 92px;
  width: 24px;
  background: var(--frame-color);
  transition: background-color 0.35s ease;
}

.swatch-pillar-left {
  left: 13%;
}

.swatch-pillar-right {
  right: 13%;
}

.swatch-caption {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  padding: 16px 18px;
  border-radius: 12px;
}

.swatch-caption strong {
  display: block;
  color: #fbbf24;
  font-size: 16px;
  margin-bottom: 4px;
}

.swatch-caption span {
  font-size: 13px;
  color: #cbd5e1;
}

.swatch-controls h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.swatch-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.swatch-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.swatch-btn:hover,
.swatch-btn.active {
  border-color: var(--accent);
  background: #fffbeb;
}

.color-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}

.swatch-btn strong {
  display: block;
  font-size: 15px;
  color: var(--text-main);
}

.swatch-btn small {
  font-size: 12px;
  color: var(--text-muted);
}

/* 案例筛选（2x2 均衡大网格） */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--bg-dark);
  color: #fff;
  border-color: var(--bg-dark);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.case-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

.case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-img-wrap img {
  transform: scale(1.05);
}

.case-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
}

.case-info {
  padding: 20px;
}

.case-loc {
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.case-info h4 {
  font-size: 17px;
  margin-top: 6px;
}

/* 四步定制流程 */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.step-idx {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: #fef3c7;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.process-step h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 计算器与表单 */
.calc-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 36px;
  align-items: stretch;
}

.calc-box,
.contact-box {
  background: var(--bg-card-dark);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-box h2,
.contact-box h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.calc-box > p,
.contact-box > p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #0f172a;
  color: #fff;
  font-size: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.checkbox-group input {
  width: auto;
}

.estimate-result {
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.4);
  padding: 18px;
  border-radius: 12px;
  margin-top: 18px;
}

.total-price {
  font-size: 18px;
  margin: 6px 0;
}

.total-price strong {
  font-size: 28px;
  color: #fbbf24;
}

.btn-apply {
  display: inline-block;
  margin: 8px 0 10px;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-apply:hover {
  background: #fbbf24;
  color: #0f172a;
}

.estimate-result small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.full-width {
  width: 100%;
}

.form-feedback {
  margin-top: 12px;
  font-size: 14px;
  color: #4ade80;
  min-height: 20px;
}

/* FAQ 折叠面板 */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.faq-item summary {
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* 页脚 */
.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  margin-top: 10px;
  font-size: 13px;
}

.copyright {
  font-size: 13px;
}

.footer-beian {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 13px;
}

.footer-beian a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-beian a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

/* 右下角悬浮双功能胶囊（电话拨打 + 跳转微信独立按钮） */
.float-consult-group {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.float-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  color: #fff;
}

.float-call {
  background: var(--accent);
}

.float-call:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.float-wechat {
  background: var(--wechat);
}

.float-wechat:hover {
  background: var(--wechat-hover);
  transform: translateY(-2px);
}

/* 微信跳转提示弹窗样式 */
.wechat-modal-card {
  max-width: 420px;
  text-align: center;
}

.wechat-qr-box {
  margin: 0 auto 16px;
  padding: 14px 14px 10px;
  background: #ffffff;
  border: 2px solid #bbf7d0;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(7, 193, 96, 0.12);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.wechat-modal-card .wechat-qr-box img {
  width: 224px;
  height: 224px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.wechat-qr-caption {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #15803d;
}

.wechat-modal-body {
  padding: 34px 28px 28px;
}

.wechat-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.wechat-modal-body h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.wechat-tip {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.wechat-number-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-light);
  border: 1.5px dashed #16a34a;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}

.wechat-number-box span {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 1px;
}

.btn-copy-wx {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.btn-copy-wx:hover {
  background: #15803d;
}

.wechat-actions {
  margin-bottom: 12px;
}

.wechat-subnote {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* 弹窗 Modal & 灯箱 Lightbox */
.modal-backdrop,
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open,
.lightbox-backdrop.open {
  display: flex;
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-body {
  padding: 26px;
}

.modal-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.modal-body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.modal-close,
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-content {
  max-width: 960px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
}

.lightbox-content p {
  color: #f8fafc;
  margin-top: 12px;
  font-size: 15px;
}

/* 响应式适配 */
@media (max-width: 960px) {
  .hero-grid,
  .product-grid,
  .swatch-layout,
  .case-grid,
  .calc-layout {
    grid-template-columns: 1fr;
  }

  .bento-grid,
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .bento-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .bento-large,
  .bento-wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .float-consult-group {
    right: 12px;
    left: 12px;
    justify-content: space-between;
  }

  .float-btn {
    flex: 1;
    padding: 10px 10px;
    font-size: 12px;
  }
}


/* =========================================================
   4-7 号产品对称双列扩展网格（保持上方 3 列锁死不变，下方优雅对齐）
   ========================================================= */
.product-grid-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.product-card-wide .card-img {
  aspect-ratio: 16 / 10;
}

@media (max-width: 960px) {
  .product-grid-secondary {
    grid-template-columns: 1fr;
  }
}

/* 仅支持电话与微信预约卡片样式（保持双列平衡格局） */
.estimate-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 10px;
}

.estimate-cta-row .btn-apply {
  margin: 0;
  text-decoration: none;
}

.btn-apply-wx {
  background: rgba(7, 193, 96, 0.18);
  color: #4ade80;
  border-color: rgba(7, 193, 96, 0.45);
}

.btn-apply-wx:hover {
  background: rgba(7, 193, 96, 0.28);
}

.direct-booking-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.direct-call-btn {
  font-size: 16px;
}

.contact-qr-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.contact-qr-img {
  flex-shrink: 0;
  width: 124px;
  height: 124px;
  background: #ffffff;
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.contact-qr-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contact-qr-info .qr-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(7, 193, 96, 0.16);
  border: 1px solid rgba(7, 193, 96, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.contact-qr-info h4 {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 6px;
}

.contact-qr-info p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 10px;
}

.qr-phone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
}

.qr-phone-row strong {
  color: #fbbf24;
  font-size: 14px;
}

.btn-copy-inline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-copy-inline:hover {
  background: rgba(255, 255, 255, 0.2);
}

.direct-booking-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
}

.direct-booking-perks li {
  font-size: 13px;
  color: #cbd5e1;
}

@media (max-width: 520px) {
  .contact-qr-card {
    flex-direction: column;
    text-align: center;
  }
  .qr-phone-row {
    justify-content: center;
  }
}

/* =========================================================
   移动端全端深度适配与触控体验优化（手机 / 平板 / 微信内置浏览器）
   ========================================================= */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* 顶部导航栏在平板及手机端提前折叠，防止导航项挤压换行 */
@media (max-width: 960px) {
  .nav-inner {
    height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    z-index: 120;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
  }

  .nav-links a:hover,
  .nav-links a.active-link {
    background: #fffbeb;
  }

  .nav-links .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 20px;
  }

  .section {
    padding: 60px 0;
  }

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

  .section-head h2 {
    font-size: clamp(24px, 5.2vw, 32px);
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    width: 92%;
  }

  /* 首屏手机端节奏与按钮组 */
  .hero {
    padding: 32px 0 52px;
  }

  .hero-grid {
    gap: 26px;
  }

  .badge {
    font-size: 12px;
    padding: 5px 12px;
    margin-bottom: 14px;
    line-height: 1.45;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.24;
    margin-bottom: 14px;
  }

  .hero-desc {
    font-size: 14.5px;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 26px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 13px 16px;
    font-size: 15px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 18px;
    text-align: center;
  }

  .stat-item strong {
    font-size: 19px;
  }

  .stat-item span {
    font-size: 11.5px;
  }

  .floating-badge-top {
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 4px 10px;
  }

  .floating-tag {
    bottom: 10px;
    left: 10px;
    right: 10px;
    padding: 10px 12px;
    font-size: 12px;
  }

  /* 7大产品卡片手机端适配 */
  .product-grid,
  .product-grid-secondary {
    gap: 20px;
  }

  .product-grid-secondary {
    margin-top: 20px;
  }

  .card-body {
    padding: 20px 18px;
  }

  .card-body h3 {
    font-size: 19px;
  }

  .card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }

  .price {
    font-size: 22px;
  }

  .card-actions {
    width: 100%;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
  }

  .btn-detail {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Bento 精工技术标准卡片 */
  .bento-item {
    padding: 22px 18px;
  }

  .bento-item h3 {
    font-size: 18px;
  }

  .bento-pills {
    gap: 8px;
    margin-top: 16px;
  }

  .bento-pills span {
    font-size: 11.5px;
    padding: 5px 10px;
  }

  /* 型材色卡实验室手机端堆叠与比例 */
  .swatch-layout {
    padding: 18px 16px;
    gap: 20px;
  }

  .swatch-preview {
    height: 290px;
    padding: 16px;
  }

  .swatch-beam {
    margin-top: 14px;
    width: 88%;
    height: 32px;
  }

  .swatch-louvers {
    gap: 10px;
  }

  .swatch-louvers span {
    width: 22px;
    height: 8px;
  }

  .swatch-pillar-left,
  .swatch-pillar-right {
    top: 46px;
    bottom: 84px;
    width: 18px;
  }

  .swatch-pillar-left {
    left: 11%;
  }

  .swatch-pillar-right {
    right: 11%;
  }

  .swatch-caption {
    padding: 12px 14px;
  }

  .swatch-caption strong {
    font-size: 14px;
  }

  .swatch-caption span {
    font-size: 12px;
    line-height: 1.5;
    display: block;
  }

  .swatch-btn {
    padding: 10px 12px;
    gap: 12px;
  }

  .color-dot {
    width: 26px;
    height: 26px;
  }

  /* 四川实景落地案例横向快捷筛选栏 + 卡片 */
  .filter-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 8px;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 13px;
  }

  .case-info {
    padding: 16px 18px;
  }

  .case-info h4 {
    font-size: 16px;
  }

  /* 四步交付流程 */
  .process-step {
    padding: 22px 18px;
  }

  /* 在线算价器 + 电话/微信直接预约双卡片手机端适配 */
  .calc-box,
  .contact-box {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .calc-box h2,
  .contact-box h3 {
    font-size: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input,
  .form-group select {
    font-size: 16px; /* 防止 iOS Safari 聚焦输入框时页面自动放大 */
  }

  .total-price strong {
    font-size: 24px;
  }

  .estimate-cta-row {
    flex-direction: column;
  }

  .estimate-cta-row .btn-apply {
    width: 100%;
    text-align: center;
  }

  .direct-call-btn,
  .direct-booking-actions .btn-wechat {
    font-size: 15px;
    padding: 13px 14px;
  }

  .contact-qr-card {
    flex-direction: column;
    text-align: center;
    padding: 16px 14px;
  }

  .contact-qr-img {
    width: 156px;
    height: 156px;
  }

  .qr-phone-row {
    justify-content: center;
  }

  /* FAQ 与页脚手机端居中排版 */
  .faq-item {
    padding: 16px;
  }

  .faq-item summary {
    font-size: 15px;
    line-height: 1.5;
  }

  .footer {
    padding: 36px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer .logo-cn {
    font-size: 15px;
  }

  /* 弹窗（工艺参数 + 微信二维码 + 灯箱）手机端滚动与安全区适配 */
  .modal-backdrop,
  .lightbox-backdrop {
    padding: 12px;
  }

  .modal-card {
    max-height: 88vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .modal-body {
    padding: 18px 16px 20px;
  }

  .modal-body h3 {
    font-size: 19px;
  }

  .wechat-modal-body {
    padding: 26px 18px 22px;
  }

  .wechat-modal-card .wechat-qr-box img {
    width: 200px;
    height: 200px;
  }

  .wechat-number-box {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .wechat-number-box span {
    font-size: 16px;
  }

  .btn-copy-wx {
    width: 100%;
    padding: 9px 14px;
  }

  /* 底部悬浮双独立胶囊（电话拨打 + 扫码加微信）适配安全区 */
  .float-consult-group {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    padding: 5px;
    gap: 6px;
  }

  .float-btn {
    flex: 1;
    padding: 11px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .logo-cn {
    font-size: 15px;
  }

  .hero h1 {
    font-size: 25px;
  }

  .float-btn {
    font-size: 12px;
    padding: 10px 6px;
  }
}
