/* MAZZZK 安全静态旧站样式 */
:root {
  --primary: #111111;
  --accent: #f07fb8;
  --bg: #ffffff;
  --muted: #f7f7f7;
  --text: #333333;
  --text-light: #777777;
  --border: #eeeeee;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: 70px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  color: var(--primary);
}

.logo img {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}

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

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s;
}

/* Hero Slider */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin-top: 70px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content h2 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
}

.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  cursor: pointer;
}

.hero-dots button.active {
  background: #fff;
}

.hero-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-arrows button:hover {
  background: rgba(255,255,255,0.3);
}

.hero-arrows .prev { left: 24px; }
.hero-arrows .next { right: 24px; }

/* Section */
.section {
  padding: 100px 0;
}

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

.section-title h2 {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title .en {
  font-size: 14px;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Product highlight */
.product-highlight {
  background: var(--muted);
}

.ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.ph-text {
  padding: 80px;
}

.ph-text h3 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
}

.ph-text p {
  color: var(--text-light);
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  border: 1px solid var(--primary);
  transition: all 0.3s;
}

.btn:hover {
  background: transparent;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
}

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

.ph-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Services */
.services {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-item {
  background: #fff;
  padding: 48px 24px;
  text-align: center;
  transition: background 0.3s;
}

.service-item:hover {
  background: var(--muted);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 22px;
  color: var(--accent);
}

.service-item h4 {
  font-size: 15px;
  font-weight: 500;
}

/* About section */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text h3 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
}

/* Values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  text-align: center;
}

.value-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary);
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* Product page */
.product-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.product-tabs button {
  padding: 10px 28px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.product-tabs button.active,
.product-tabs button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--muted);
  cursor: pointer;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-info {
  padding: 20px;
  text-align: center;
}

.product-info h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-info p {
  font-size: 13px;
  color: var(--text-light);
}

/* News */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:first-child {
  padding-top: 0;
}

.news-date {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.news-excerpt {
  color: var(--text-light);
  font-size: 14px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 32px;
}

.contact-row {
  margin-bottom: 24px;
}

.contact-row label {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-row p {
  font-size: 16px;
}

.contact-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

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

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.65);
}

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

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Responsive */
@media (max-width: 1024px) {
  .ph-grid,
  .about-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ph-text {
    padding: 48px 24px;
  }

  .about-image {
    order: -1;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-arrows button {
    display: none;
  }
}

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

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

  .section {
    padding: 64px 0;
  }
}
