/* ============================================================
   赛易通门窗五金 官网样式
   科技浅蓝 · 商务工业风 · 全站响应式
   ============================================================ */

:root {
  /* 科技浅蓝色体系（低饱和高级蓝） */
  --blue-900: #14305C;
  --blue-800: #1B3B73;
  --blue-700: #24508F;
  --blue-600: #2F63A8;
  --blue-500: #4A7AB4;
  --blue-400: #6E9ACB;
  --blue-300: #A5C4E5;
  --blue-200: #C9DCF0;
  --blue-100: #E7F0FA;

  /* 中性色 */
  --ink-900: #16233A;
  --ink-600: #4A5870;
  --ink-400: #7C8AA0;
  --gray-100: #F5F8FC;
  --line: #DEE8F2;
  --white: #FFFFFF;
  --danger: #B3402E;

  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 48, 92, 0.06);
  --shadow-md: 0 10px 26px rgba(47, 99, 168, 0.14);
  --font: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(47, 99, 168, 0.32);
}
.btn-primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 99, 168, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-block { width: 100%; margin-top: 22px; }

/* ============ 顶部导航 ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 18px rgba(20, 48, 92, 0.08);
}

.nav-inner {
  max-width: 1248px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { flex-shrink: 0; }
.brand-logo { height: 40px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-600);
  border-radius: 8px;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-link:hover { color: var(--blue-600); background: var(--blue-100); }
.nav-link.is-active { color: var(--blue-600); font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
}

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

.btn-phone {
  padding: 9px 18px;
  font-size: 14px;
  color: var(--blue-700);
  border-color: var(--blue-300);
  background: var(--white);
}
.btn-phone:hover { background: var(--blue-100); transform: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-900);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 视图切换 ============ */
.view { display: none; }
.view.is-active { display: block; }

/* ============ Hero 首屏 ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 48%, var(--blue-600) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 132px 0 88px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, 0.9), transparent 75%);
  mask-image: radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-copy { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-300);
}

.hero-title {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-tags li {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-figure {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 60px rgba(8, 22, 46, 0.45);
}
.hero-figure img { width: 100%; height: auto; }
.hero-figure figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  background: rgba(20, 48, 92, 0.72);
  border-radius: 8px;
  backdrop-filter: blur(6px);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero-scroll span {
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: var(--white);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ 通用区块 ============ */
.section { padding: 96px 0; }
.section-light { background: var(--gray-100); }

.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.grid-mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 10px;
  vertical-align: -1px;
  background:
    linear-gradient(var(--blue-600), var(--blue-600)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--blue-600), var(--blue-600)) center / 1.5px 100% no-repeat;
  border: 1.5px solid var(--blue-600);
  border-radius: 3px;
  position: relative;
}
.grid-mark::after {
  content: "";
  position: absolute;
  left: -3px; top: -3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-400);
}
.grid-mark::before {
  content: "";
  position: absolute;
  right: -3px; bottom: -3px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blue-400);
}

.sec-eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.sec-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-900);
  margin-bottom: 14px;
}

.sec-desc {
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.8;
}

/* ============ 网格 ============ */
.grid {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============ 优势卡片 ============ */
.adv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.adv-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}

.adv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--blue-100);
  color: var(--blue-600);
  margin-bottom: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.adv-card:hover .adv-icon { background: var(--blue-600); color: var(--white); }

.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.adv-card p { font-size: 14px; color: var(--ink-600); line-height: 1.75; }

/* ============ 产品卡片 ============ */
.prod-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-300);
}

.prod-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
}
.prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.prod-card:hover .prod-media img { transform: scale(1.045); }

.prod-body { padding: 18px 20px 20px; }
.prod-body h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.prod-body p { font-size: 13.5px; color: var(--ink-600); line-height: 1.7; }

.sec-more { text-align: center; margin-top: 44px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-600);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}
.link-more:hover { border-bottom-color: var(--blue-500); }

/* ============ 图文分栏 ============ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 56px;
}

.split-media { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); }
.split-media img { width: 100%; height: auto; }

.split-copy .sec-eyebrow { margin-bottom: 14px; }

.split-text {
  font-size: 15.5px;
  color: var(--ink-600);
  line-height: 1.95;
  margin-bottom: 18px;
}

.scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 26px 0 30px;
}
.scenes li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}
.scene-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

/* ============ CTA 条 ============ */
.cta-band { padding: 40px 0 96px; }
.cta-band + .cta-band { padding-top: 0; }

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: linear-gradient(120deg, var(--blue-700) 0%, var(--blue-600) 100%);
  border-radius: 20px;
  padding: 46px 52px;
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.cta-copy h2 {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-copy p { font-size: 15px; color: rgba(255, 255, 255, 0.82); }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ 子页 Hero ============ */
.page-hero {
  padding: 148px 0 76px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  color: var(--white);
  text-align: center;
}

.page-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-300);
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin-bottom: 18px;
}

.page-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  margin-bottom: 14px;
}

.page-desc {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
}

/* ============ 产品展示页 ============ */
.prod-page { padding: 56px 0 96px; }

.prod-cat { margin-bottom: 56px; }
.prod-cat:last-child { margin-bottom: 0; }

.cat-head { margin-bottom: 28px; }
.cat-head h2 {
  position: relative;
  font-size: 24px;
  font-weight: 700;
  padding-left: 18px;
  margin-bottom: 8px;
}
.cat-head h2::before {
  content: "";
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--blue-600), var(--blue-400));
}
.cat-head p { font-size: 14px; color: var(--ink-600); padding-left: 18px; }

/* ============ 关于我们 ============ */
.about-page { padding: 64px 0 0; }
.about-intro { padding: 16px 0 96px; }

.split-cols { gap: 64px; }
.split-cols .split-copy { padding: 8px 0; }

.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  color: var(--ink-600);
  line-height: 1.8;
  margin-bottom: 16px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 1px solid var(--blue-300);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 10px;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* ============ 联系我们 ============ */
.contact-page { padding: 64px 0 96px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.info-card + .info-card { margin-top: 24px; }

.info-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.info-list li:last-child { border-bottom: none; }

.info-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--blue-100);
  color: var(--blue-600);
}

.info-label {
  display: block;
  font-size: 12.5px;
  color: var(--ink-400);
  margin-bottom: 2px;
}
.info-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}
a.info-value:hover { color: var(--blue-600); }

.wechat-body { display: flex; align-items: center; gap: 22px; }

.qr-img {
  flex-shrink: 0;
  width: 168px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.wechat-tip {
  font-size: 14px;
  color: var(--ink-600);
  line-height: 1.9;
}

.map-placeholder {
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px dashed var(--blue-300);
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-500);
  font-size: 14px;
  text-align: center;
  padding: 0 24px;
}

/* ============ 页脚 ============ */
.site-footer {
  background: var(--blue-900);
  color: var(--white);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: 64px 0 48px;
}

.footer-logo { height: 42px; width: auto; margin-bottom: 18px; }

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
  max-width: 320px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-col ul li {
  margin-bottom: 11px;
  font-size: 14px;
}
.footer-col a { color: rgba(255, 255, 255, 0.75); transition: color 0.25s ease; }
.footer-col a:hover { color: var(--white); }
.footer-col li { color: rgba(255, 255, 255, 0.75); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ 返回顶部 ============ */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-600);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--blue-600); color: var(--white); }

/* ============ 入场动效 ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
  .prod-media img, .adv-card, .prod-card, .btn { transition: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero { min-height: auto; padding-top: 148px; }
  .hero-figure { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .btn-phone span { display: none; }
  .btn-phone { width: 44px; height: 44px; padding: 0; justify-content: center; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(20, 48, 92, 0.12);
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-link { padding: 13px 16px; font-size: 16px; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--blue-100); }

  .section { padding: 64px 0; }
  .page-hero { padding: 122px 0 56px; }
  .prod-page { padding: 40px 0 72px; }
  .about-page { padding: 40px 0 0; }
  .about-intro { padding: 8px 0 64px; }
  .contact-page { padding: 40px 0 72px; }
  .cta-band { padding: 24px 0 64px; }

  .cta-inner { flex-direction: column; align-items: flex-start; padding: 36px 30px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .hero-scroll { display: none; }
}

@media (max-width: 600px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .wechat-body { flex-direction: column; align-items: flex-start; }
  .hero-title { font-size: 30px; }
  .nav-inner { padding: 0 16px; }
  .container { padding: 0 16px; }
}
