/* ============================================
   未来万家五金机电洛宁店 — Style Sheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand: #499bcf;
  --brand-dark: #36749b;
  --brand-light: #6bb5e0;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --gray-100: #F0F0F0;
  --gray-200: #E0E0E0;
  --gray-300: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --gray-900: #1A1A1A;
  --black: #0D0D0D;
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 72px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.highlight {
  color: var(--brand);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 0;
  transition: background var(--transition), box-shadow var(--transition);
  height: var(--nav-height);
}

.navbar.scrolled {
  background: rgba(73, 155, 207, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-logo-sub {
  font-weight: 300;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color var(--transition), background var(--transition);
  border-radius: 6px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('https://images.unsplash.com/photo-1581539250439-c96689b516dd?w=1920&q=85') center center / cover no-repeat;
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-text-wrapper {
  position: relative;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  color: var(--brand);
  letter-spacing: 0.08em;
  opacity: 0.15;
  transform: scale(1);
  will-change: transform, opacity, font-size;
  transition: none;
  line-height: 1.1;
  text-shadow: 0 0 60px rgba(73,155,207,0.15);
  user-select: none;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 6px;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-location {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  letter-spacing: 4px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.hero-location.visible {
  opacity: 1;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  animation: floatDown 2s ease-in-out infinite;
}

.scroll-text {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes floatDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* --- Section Base --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand);
  background: rgba(73,155,207,0.08);
  border-radius: 20px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-top: 16px;
  font-weight: 300;
}

/* --- About Section --- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-small {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.about-image-small img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.about-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  font-size: 1.3rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
}

.feature-text span {
  font-size: 0.8rem;
  color: var(--gray-300);
  margin-top: 2px;
}

/* --- Products Section --- */
.products {
  background: var(--off-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: rgba(73,155,207,0.15);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card-icon {
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-icon {
  transform: scale(1.15);
}

.product-card-index {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(73,155,207,0.12);
  letter-spacing: 0;
}

.product-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.4;
}

/* --- Contact Section --- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: rgba(73,155,207,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--brand);
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: var(--brand);
  color: var(--white);
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-card a {
  color: var(--brand);
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--brand-dark);
}

.contact-tip {
  font-size: 0.75rem !important;
  color: var(--gray-300) !important;
  margin-top: 4px;
}

.contact-time {
  font-weight: 600;
  color: var(--gray-800);
}

.contact-wechat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wechat-qr-placeholder {
  width: 100px;
  height: 100px;
  background: var(--white);
  border: 2px dashed var(--gray-200);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gray-300);
  gap: 6px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.wechat-qr-placeholder span {
  font-size: 0.7rem;
  color: var(--gray-300);
}

.contact-card:hover .wechat-qr-placeholder {
  border-color: var(--brand);
  color: var(--brand);
}

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: var(--gray-100);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  filter: grayscale(0.3);
}

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-logo {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--brand-light);
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-icp {
  margin-top: 4px;
  font-size: 0.7rem;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-small {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--brand-dark);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 14px 16px;
    border-radius: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 3px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }

  .product-card {
    padding: 20px 14px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .map-container,
  .map-container iframe {
    min-height: 300px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    padding: 16px 12px;
  }

  .product-card-icon {
    font-size: 1.5rem;
  }

  .product-card h3 {
    font-size: 0.8rem;
  }
}
