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

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

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

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #222;
  letter-spacing: 1px;
}

.logo a {
  color: #222;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav > ul {
  display: flex;
}

.main-nav > ul > li {
  position: relative;
  margin-left: 5px;
}

.main-nav > ul > li > a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #555;
  transition: all 0.3s;
}

.main-nav > ul > li:hover > a {
  color: #000;
}

.main-nav > ul > li.active > a,
.main-nav > ul > li > a.active {
  background-color: #000;
  color: #fff;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  padding: 8px 0;
}

.main-nav > ul > li:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 8px 18px;
  font-size: 13px;
  color: #555;
  transition: all 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f5f5f5;
  color: #000;
}

/* Banner */
.banner {
  width: 100%;
  height: 450px;
  background-color: #1a1a1a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-placeholder {
  width: 100%;
  height: 100%;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 18px;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-content {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
}

.banner-title {
  font-size: 36px;
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-subtitle {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Category Section (Home) */
.category-section {
  padding: 60px 0;
  background-color: #fff;
}

.category-list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
}

.category-item {
  text-align: center;
  flex: 1 1 0;
  min-width: 0;
}

.category-circle {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: #1a1a1a;
  overflow: hidden;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #444;
  font-size: 12px;
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-name {
  font-size: 14px;
  color: #333;
}

/* Section Title */
.section-title {
  font-size: 24px;
  color: #222;
  text-align: center;
  margin-bottom: 40px;
  font-weight: normal;
  text-transform: capitalize;
}

/* About Page Tabs */
.about-tabs {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.about-tab {
  padding: 12px 30px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s;
}

.about-tab:hover {
  color: #000;
}

.about-tab.active {
  color: #fff;
  background-color: #000;
  border-bottom-color: #000;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Image Grid (Factory Views) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.image-grid-item {
  text-align: center;
}

.image-grid-item .placeholder-img {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 12px;
  margin-bottom: 10px;
  border: 1px solid #eee;
}

.image-grid-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 10px;
  border: 1px solid #eee;
}

.image-grid-item p {
  font-size: 13px;
  color: #555;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.product-item {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.product-item .placeholder-img,
.product-item img {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #1a1a1a;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 12px;
  margin-bottom: 12px;
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.product-item:hover .placeholder-img,
.product-item:hover img {
  transform: scale(1.02);
}

.product-item h3 {
  font-size: 14px;
  color: #333;
  font-weight: normal;
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-detail-image img,
.product-detail-image .placeholder-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 14px;
  border: 1px solid #eee;
}

.product-detail-title {
  font-size: 28px;
  color: #222;
  margin-bottom: 20px;
  font-weight: normal;
}

.product-detail-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}

.product-detail-desc p {
  margin-bottom: 12px;
}

.btn-back {
  display: inline-block;
  padding: 10px 25px;
  background-color: #000;
  color: #fff;
  font-size: 13px;
  transition: background-color 0.3s;
}

.btn-back:hover {
  background-color: #333;
}

/* Product Gallery */
.product-gallery {
  margin-top: 60px;
}

.section-title {
  font-size: 22px;
  color: #222;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #000;
  display: inline-block;
}

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

.gallery-item {
  text-align: center;
}

.gallery-item img,
.gallery-item .placeholder-img {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #1a1a1a;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 12px;
  border: 1px solid #eee;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-caption {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* Product Body */
.product-detail-body {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  line-height: 1.8;
  color: #444;
  font-size: 14px;
}

.product-detail-body h2 {
  font-size: 20px;
  color: #222;
  margin: 30px 0 15px;
}

.product-detail-body h3 {
  font-size: 17px;
  color: #222;
  margin: 25px 0 10px;
}

.product-detail-body ul {
  padding-left: 20px;
  margin: 10px 0;
}

.product-detail-body li {
  margin-bottom: 5px;
}

.product-detail-body p {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* News List */
.news-list {
  margin-top: 30px;
}

.news-item {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 20px;
}

.news-date {
  min-width: 100px;
  font-size: 13px;
  color: #999;
}

.news-title {
  font-size: 16px;
  color: #222;
  margin-bottom: 8px;
}

.news-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* Contact Page */
.contact-section {
  padding: 60px 0;
}

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

.contact-info h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #222;
}

.contact-info p {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-info .icon {
  color: #000;
  font-weight: bold;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
  background-color: #fff;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  display: inline-block;
  padding: 12px 35px;
  background-color: #000;
  color: #fff;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #333;
}

/* Footer */
.site-footer {
  background-color: #111;
  color: #aaa;
  padding: 50px 0 30px;
}

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

.footer-section h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: normal;
}

.footer-section p {
  font-size: 13px;
  line-height: 1.8;
  color: #888;
  margin-bottom: 10px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-contact .icon {
  color: #000;
  background-color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* Page Header (for inner pages) */
.page-header {
  background-color: #1a1a1a;
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.page-header h1 {
  font-size: 32px;
  font-weight: normal;
  text-transform: capitalize;
}

/* Content Section */
.content-section {
  padding: 60px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 15px 0;
  }

  .main-nav {
    width: 100%;
    margin-top: 15px;
  }

  .main-nav > ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .banner {
    height: 300px;
  }

  .banner-title {
    font-size: 26px;
  }

  .category-list {
    gap: 25px;
  }

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

  .footer-inner,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
/* 分类 Banner 图 / 产品卡片描述 / 产品正文 Body —— 后台编辑后全部前台显示 */
.category-banner { margin: 40px 0; }
.category-banner-inner { display:flex; justify-content:center; }
.category-banner img { max-width: 560px; width: 100%; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.product-grid .product-item .product-desc { margin-top: 10px; color: #666; font-size: 13px; line-height: 1.6; }
.product-body { margin: 60px 0; padding: 30px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.product-body h1, .product-body h2, .product-body h3 { margin: 20px 0 12px; color: #1a1a1a; }
.product-body p { margin: 12px 0; color: #444; font-size: 14px; line-height: 1.9; }
.product-body ul, .product-body ol { padding-left: 24px; margin: 12px 0; }
.product-body li { margin: 6px 0; color: #444; }

