/* ===== 通用设置 ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background-color: #fff;
  color: #222;

}

/* ===== Header ===== */
header {
  background: rgba(255,255,255,0.98);
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  backdrop-filter: blur(6px);
  animation: slideDown 1s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.logo img {
  height: 78px;
}

.logo h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: all 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #DF033C;
  transition: 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #DF033C;
}

/* ===== Hero Image ===== */
#home, .hero img {
  width: 100%;
}

/* ===== Section 通用样式 ===== */
.section {
  padding: 30px 40px;
  max-width: 1200px;
  margin: auto;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

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

.section h2 {
  text-align: center;
  color: #000;
  border-bottom: 3px solid #F6B133;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 40px;
  font-size: 1.8rem;
}

/* ===== Category ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.category-grid div {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.4s;
}

.category-grid div:hover {
  background: #000;
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

/* ===== About & Factory ===== */
.about-content img {
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.factory-list div {
  background: #fafafa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: 0.4s;
}

.factory-list div:hover {
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.pdf-link {
  display: inline-block;
  background: #DF033C;
  color: white;
  padding: 10px 16px;
  border-radius: 5px;
  margin: 6px 6px 0 0;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.pdf-link:hover {
  background: #F6B133;
  color: #000;
}

.video-section {
  margin-top: 40px;
  text-align: center;
}

.video-section video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* ===== Contact ===== */
.contact-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  font-size: 1rem;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.05);
}

.qrcode img {
  height: 160px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-wrap: wrap;
  }

  .section {
    padding: 80px 20px;
  }
}
