/* Zhejiang Shuangguan Building Materials — Site Replica */
/* Design tokens based on original zjsgbm.com */

:root {
  --primary-dark: #0040a0;
  --primary-mid: #054b91;
  --accent: #409eff;
  --accent-hover: #2b8af3;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
  --bg: #fff;
  --bg-soft: #f5f7fa;
  --bg-section: #f3f6f9;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, .05);
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1240px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: #163461;
  transition: background .3s, box-shadow .3s;
}
.header.scrolled {
  background: rgba(0, 64, 160, .96);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { height: 42px; width: auto; }
.logo-text {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: rgba(255,255,255,.9);
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color .2s;
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: #fff;
  transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-left: 24px;
}
.header-phone svg { width: 18px; height: 18px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}
.mobile-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide .bg {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 8s ease-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,40,100,.75) 0%, rgba(0,40,100,.35) 60%, rgba(0,40,100,.15) 100%);
}
.hero-content {
  position: absolute;
  z-index: 3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  width: min(900px, 92vw);
}
.hero-content h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s ease;
}
.hero-slide.active .hero-content h2 {
  opacity: 1; transform: translateY(0); transition-delay: .2s;
}
.hero-content h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  margin-bottom: 18px;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s ease;
}
.hero-slide.active .hero-content h1 {
  opacity: 1; transform: translateY(0); transition-delay: .4s;
}
.hero-content p {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 32px;
  opacity: .95;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s ease;
}
.hero-slide.active .hero-content p {
  opacity: .95; transform: translateY(0); transition-delay: .6s;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(64,158,255,.35);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(64,158,255,.45);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}
.hero-controls {
  position: absolute;
  z-index: 4;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
}
.hero-dot.active { background: #fff; width: 28px; border-radius: 5px; }
.hero-arrows {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
}
.hero-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(255,255,255,.25); }
.hero-arrow svg { width: 20px; height: 20px; }

/* Section common */
.section { padding: 90px 0; }
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

/* About */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text .lead {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}
.about-text p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.9;
}
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* Stats */
.stats {
  background: var(--bg-section);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-number span { font-size: 24px; font-weight: 600; margin-left: 2px; }
.stat-label {
  color: var(--text-light);
  font-size: 15px;
}

/* Application */
.application { background: var(--bg); }
.application-cta {
  text-align: center;
  margin-top: 32px;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.app-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.app-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.app-card:hover img { transform: scale(1.08); }
.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,30,80,.85) 0%, rgba(0,30,80,.35) 55%, rgba(0,30,80,.05) 100%);
  transition: background .3s;
}
.app-card:hover::after { background: rgba(0,30,80,.78); }
.app-icon {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 2;
  width: 54px; height: 54px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  display: grid;
  place-items: center;
  padding: 10px;
}
.app-icon img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); transition: none; }
.app-card:hover .app-icon img { transform: none; }
.app-content {
  position: absolute;
  z-index: 2;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: #fff;
}
.app-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.app-content p {
  font-size: 13px;
  opacity: .85;
  line-height: 1.7;
  margin-bottom: 14px;
}
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
}
.app-link svg { width: 16px; height: 16px; }

/* Products */
.products { background: var(--bg-section); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.product-img {
  height: 220px;
  overflow: hidden;
  background: #f7f7f7;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-info {
  padding: 22px;
  text-align: center;
}
.product-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.product-info p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

/* News */
.news { background: var(--bg); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.news-date {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--text);
}
.news-card h3 a:hover { color: var(--primary-dark); }
.news-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-mid);
}
.news-more img { width: 36px; height: auto; }

/* Partners */
.partners { background: var(--bg-section); }
.partner-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 50px;
}
.partner-stat {
  text-align: center;
}
.partner-stat .num {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}
.partner-stat .num span { font-size: 26px; color: var(--accent); }
.partner-stat .txt { color: var(--text-light); font-size: 15px; margin-top: 6px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  align-items: center;
}
.partner-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  place-items: center;
  height: 88px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.partner-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.partner-item img { max-height: 46px; max-width: 100%; object-fit: contain; }

/* Footer */
.footer {
  background: #00214d;
  color: rgba(255,255,255,.75);
  padding: 70px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 46px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { line-height: 1.9; margin-bottom: 18px; }
.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.footer-share {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer-share a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  transition: background .2s;
}
.footer-share a:hover { background: var(--accent); }
.footer-share svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom {
  padding: 22px 0;
  text-align: center;
  color: rgba(255,255,255,.5);
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-bottom a:hover { color: #fff; }

/* Inner page header */
.page-hero {
  position: relative;
  height: 320px;
  display: grid;
  place-items: center;
  margin-top: 80px;
  background: var(--primary-dark);
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .35;
}
/* .page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,40,100,.85), rgba(0,40,100,.55));
} */
.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}
.page-hero-content h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 10px;
}
.page-hero-content p { opacity: .85; }

/* Breadcrumb */
.breadcrumb {
  background: var(--bg-soft);
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-light);
}
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb span { margin: 0 8px; color: var(--text-muted); }

/* Content page */
.content-section { padding: 60px 0 90px; }
.content-section h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}
.content-section p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.9;
}
.content-section ul { margin: 16px 0 16px 20px; list-style: disc; color: var(--text-light); }
.content-section li { margin-bottom: 8px; }

/* News list inner */
.news-list { display: grid; gap: 24px; }
.news-list-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .25s;
}
.news-list-item:hover { box-shadow: var(--shadow); }
.news-list-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 16px;
}
.news-list-date .day { font-size: 32px; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.news-list-date .ym { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-info-box .info-row {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-info-box .icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-section);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
}
.contact-info-box h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info-box p { color: var(--text-light); font-size: 14px; }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: 14px; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(64,158,255,.12);
}

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 22px; }
  .product-grid, .app-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .header-inner { height: 80px; }
  .nav, .header-phone { display: none; }
  .mobile-toggle { display: block; }
  .mobile-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--primary-dark);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform .3s;
    z-index: 999;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a {
    display: block;
    color: #fff;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: 16px;
  }
  .hero { min-height: 520px; }
  .product-grid, .app-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-stats { gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 60px 0; }
  .hero-arrows { display: none; }
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
