/* ========================================
   合肥雨蝶生物科技有限公司 - 企业官网样式
   ======================================== */

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

:root {
  --blue: #0f5b7a;
  --blue-light: #c8e0eb;
  --blue-pale: #e4f0f6;
  --blue-dark: #0a3f54;
  --blue-deep: #072d3d;
  --green: #2d8a4e;
  --green-light: #e3f4e8;
  --green-dark: #1e6b38;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.06), 0 8px 10px rgba(0,0,0,0.03);
  --shadow-blue: 0 4px 14px rgba(15,91,122,0.10);
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--gray-800);
  background: #f5f8fa;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(15,91,122,0.015) 0%, transparent 50%),
    radial-gradient(circle at 85% 60%, rgba(45,138,78,0.012) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.7;
  font-size: 16px;
}

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

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }

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

ul { list-style: none; }

h1, h2, h3 { line-height: 1.3; color: var(--gray-900); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-shop {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
}
.btn-shop:hover { background: var(--green-dark); }

/* --- Header --- */
.site-header {
  background: var(--blue-deep);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif;
  margin-left: -80px;
}
.logo-img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}
.site-nav a:hover { color: var(--white); }

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, #0d3240 0%, #07212c 100%);
  color: rgba(255,255,255,0.65);
  padding: 32px 0 16px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; margin-bottom: 20px; }
.footer-col h3 { color: var(--white); font-size: 14px; margin-bottom: 10px; font-weight: 600; }
.footer-col p, .footer-col a { font-size: 13px; display: block; margin-bottom: 5px; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 14px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* --- Hero (首页) --- */
.hero {
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a3a4a;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 2;
}
.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-decor-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 65%);
  top: -120px; right: -80px;
}
.hero-decor-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
  bottom: -60px; left: -80px;
}
.hero-decor-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 65%);
  top: 35%; left: 8%;
}

/* Carousel wrapper */
.hero-carousel {
  width: 100%;
  align-self: stretch;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Carousel slides wrapper */
.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,45,61,0.55) 0%, rgba(7,45,61,0.45) 40%, rgba(7,45,61,0.65) 100%);
  z-index: 0;
}
.hero-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.hero-slide .container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero-slide h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-slide h1::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4));
  margin: 24px auto 0;
  border-radius: 2px;
}
.hero-slide p {
  font-size: 21px;
  color: rgba(255,255,255,0.88);
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.8;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.btn-hero-secondary { margin-left: 12px; }
.hero-slide .btn-primary {
  padding: 12px 30px;
  font-size: 16px;
  background: rgba(255,255,255,0.95);
  color: var(--blue-dark);
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hero-slide .btn-primary:hover {
  background: #fff;
  color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.hero-slide .btn-outline {
  padding: 12px 30px;
  font-size: 16px;
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.hero-slide .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.85);
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.hero-carousel:hover .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: rgba(255,255,255,0.9);
  width: 26px;
  border-radius: 5px;
}

/* --- Section titles --- */
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 28px; margin-bottom: 10px; font-weight: 700; color: #0a3340; }
.section-title p { color: var(--gray-500); font-size: 15px; }

/* --- Category Cards (首页) --- */
.home-categories {
  padding: 72px 0;
  background: var(--white);
  position: relative;
}
.home-categories::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(180deg, rgba(15,91,122,0.04) 0%, transparent 100%);
  pointer-events: none;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
  position: relative;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  padding: 0;
}
a.cat-card:hover { color: inherit; }
.cat-card:hover {
  box-shadow: var(--shadow-blue), var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-3px);
}
.cat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}
.cat-card:hover::after { opacity: 1; }
.cat-img {
  width: 100%;
  height: 140px;
  overflow: hidden;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-card h3 { font-size: 16px; margin: 16px 16px 6px; }
.cat-card p { font-size: 13px; color: var(--gray-500); line-height: 1.5; margin: 0 16px 18px; }

.cat-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 0;
  font-size: 22px;
  transition: transform 0.2s;
}
.cat-icon-jikong  { background: linear-gradient(135deg, #e4f0f6, #d0e4ef); }
.cat-icon-wenchong { background: linear-gradient(135deg, #e3f4e8, #c8e8d0); }
.cat-icon-caiji   { background: linear-gradient(135deg, #fdf0db, #f8e0b8); }
.cat-icon-biaoben { background: linear-gradient(135deg, #efe5f7, #e0cdf0); }
.cat-icon-haocai  { background: linear-gradient(135deg, #e0f4f8, #c8eaf2); }

/* --- 首页产品预览 --- */
.home-products-preview {
  padding: 72px 0;
  background:
    radial-gradient(circle at 30% 10%, rgba(15,91,122,0.018) 0%, transparent 50%),
    radial-gradient(circle at 70% 90%, rgba(45,138,78,0.015) 0%, transparent 50%),
    linear-gradient(180deg, #f2f6f9 0%, #eef3f6 40%, #ecf3ed 100%);
  position: relative;
}
.home-products-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15,91,122,0.08), rgba(45,138,78,0.06), transparent);
  pointer-events: none;
}
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}
.view-all { text-align: center; }
.page-header {
  background: none;
  padding: 56px 0;
  text-align: center;
  position: relative;
}
.page-header h1 { font-size: 32px; margin-bottom: 10px; font-weight: 700; }
.page-header p { color: var(--gray-500); position: relative; }

/* --- Products Page --- */
.products-section {
  padding: 48px 0;
  background: url("../images/products/65416.png") center/cover no-repeat fixed;
  position: relative;
  z-index: 0;
}
.products-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.55);
}
.products-section .container {
  position: relative;
  z-index: 1;
}
.category-section { margin-bottom: 48px; }
.category-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(15,91,122,0.4);
  position: relative;
}
.category-heading h2 { font-size: 25px; color: var(--blue-dark); margin: 0; line-height: 1; font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif; font-weight: 700; }
.category-heading .count { line-height: 1; }
.category-heading .btn { line-height: 1; flex-shrink: 0; position: absolute; right: 0; top: 0; }
.category-heading .count { font-size: 14px; color: var(--gray-400); font-weight: 400; }

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

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: var(--shadow-blue), var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-body { padding: 16px; }
.product-card-body h3 { font-size: 17px; margin-bottom: 6px; }
.product-card-body .card-subtitle { font-size: 13px; color: var(--gray-400); margin-bottom: 10px; }
.product-card-body .card-desc {
  font-size: 14px;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  line-height: 1.5;
}
.product-card-body .btn { width: 100%; font-size: 14px; }

/* --- Product Detail --- */
.product-detail {
  padding: 48px 0;
  background: url("../images/products/65416.png") center/cover no-repeat fixed;
  position: relative;
  z-index: 0;
}
.product-detail::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.55);
}
.product-detail .container {
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--gray-800); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.product-hero-img {
  background: linear-gradient(135deg, #f0f4f8 0%, #e4ecf2 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
}
.product-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 15px;
  padding: 40px;
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.product-category-tag {
  display: inline-block;
  background: #e8f4f8;
  color: var(--blue-dark);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
  transition: background 0.2s;
}
a.product-category-tag:hover { background: #d0e8f0; color: var(--blue-dark); }

.product-detail-info h1 { font-size: 30px; margin-bottom: 8px; }
.product-subtitle { font-size: 17px; color: var(--green); margin-bottom: 16px; font-weight: 500; }
.product-desc { font-size: 16px; color: var(--gray-600); line-height: 1.8; margin-bottom: 28px; }

.product-actions { display: flex; gap: 12px; }

.product-sku-section { margin-top: 28px; }
.product-sku-section .sku-title {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 10px;
  font-weight: 500;
}
.sku-list { display: flex; flex-wrap: wrap; gap: 10px; }

.product-detail-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }

.detail-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue-light);
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--gray-100); }
.spec-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
  width: 35%;
  white-space: nowrap;
}
.spec-table td {
  padding: 10px 12px;
  font-size: 15px;
  color: var(--gray-800);
}

.app-list { display: flex; flex-direction: column; gap: 8px; }
.app-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--gray-700);
}
.app-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.product-back { margin-top: 16px; }

/* --- About Page --- */
.about-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: url("../images/products/sss.png") center/cover no-repeat fixed;
  position: relative;
  z-index: 0;
}
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.55);
}
.about-section .container {
  position: relative;
  z-index: 1;
  flex: 1;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h2 { font-size: 40px; margin-bottom: 16px; font-family: "ZCOOL XiaoWei", "PingFang SC", "Microsoft YaHei", serif; }
.about-text p { color: var(--gray-600); margin-bottom: 12px; line-height: 1.8; }
.about-image {
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-light) 100%);
  border-radius: var(--radius-lg);
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 15px;
}

/* --- Contact Page --- */
.contact-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: url("../images/products/jj.png") center/cover no-repeat fixed;
  position: relative;
  z-index: 0;
}
.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.55);
}
.contact-section .container {
  position: relative;
  z-index: 1;
  flex: 1;
}
.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.contact-body { padding: 32px 36px 8px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}
.contact-row + .contact-row { border-top: 1px solid var(--gray-100); }
.contact-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-text { display: flex; flex-direction: column; gap: 2px; padding-top: 1px; }
.contact-label { font-size: 13px; color: var(--gray-400); }
.contact-value { font-size: 15px; color: var(--gray-800); }
.contact-actions {
  padding: 24px 36px 36px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* --- Applications Page --- */
.applications-section {
  padding: 48px 0;
  background: url("../images/products/baba.png") center/cover no-repeat fixed;
  position: relative;
  z-index: 0;
}
.applications-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.55);
}
.applications-section .container {
  position: relative;
  z-index: 1;
}
.app-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  align-items: center;
}
.app-card .app-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.app-card h3 { font-size: 18px; margin-bottom: 6px; }
.app-card p { color: var(--gray-500); font-size: 15px; }

/* --- Category Individual Page --- */
.category-page {
  padding: 40px 0 64px;
  background: url("../images/products/65416.png") center/cover no-repeat fixed;
  position: relative;
  z-index: 0;
}
.category-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255,255,255,0.55);
}
.category-page .category-main-wrapper {
  position: relative;
  z-index: 1;
}
.category-layout {
  display: flex;
  gap: 36px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.category-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 88px;
  margin-left: 24px;
  margin-top: 24px;
}
.category-sidebar h3 {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-100);
  letter-spacing: 1px;
}
.category-sidebar ul { display: flex; flex-direction: column; gap: 2px; }
.category-sidebar ul a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--gray-700);
  transition: all 0.15s;
  text-decoration: none;
}
.category-sidebar ul a:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
}
.category-sidebar ul a.active {
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-light) 100%);
  color: var(--blue-dark);
  font-weight: 600;
}

/* Category main content */
.category-main-wrapper {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}
.category-main { min-width: 0; }
.category-main-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
}
.category-main-header h2 {
  font-size: 26px;
  color: var(--blue-dark);
  margin-bottom: 8px;
  font-family: "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  font-weight: 700;
}
.category-main-header .cat-desc {
  font-size: 15px;
  color: var(--gray-500);
}
.category-main-header .cat-count {
  display: inline-block;
  margin-top: 10px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 500;
}

/* Empty state */
.category-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}
.category-empty .empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--blue-pale) 0%, var(--green-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.category-empty h3 {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.category-empty p {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.category-empty .btn { font-size: 14px; }

/* Breadcrumb */
.breadcrumb-nav {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.breadcrumb-nav a { color: var(--gray-500); }
.breadcrumb-nav a:hover { color: var(--blue); }
.breadcrumb-nav .sep { margin: 0 8px; color: var(--gray-300); }
.breadcrumb-nav .current { color: var(--gray-700); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-header .container { height: 60px; }
  .logo { font-size: 20px; }
  .hero { min-height: 480px; }
  .hero-decor-1 { width: 200px; height: 200px; top: -40px; right: -60px; }
  .hero-decor-2 { width: 140px; height: 140px; bottom: -20px; left: -30px; }
  .hero-decor-3 { display: none; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 16px; opacity: 1; pointer-events: auto; }
  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }
  .carousel-dots { bottom: 24px; }
  .home-categories { padding: 52px 0; }
  .home-products-preview { padding: 48px 0; }
  .page-header { padding: 40px 0; }
  .product-detail-grid,
  .product-detail-sections,
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .products-card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .categories-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .category-layout { flex-direction: column; }
  .category-sidebar { position: static; width: auto; margin-left: 0; }
  .category-sidebar ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .category-sidebar ul a { font-size: 13px; padding: 6px 10px; }
  .category-main-wrapper { padding-right: 0; }
  .hero-slide h1 { font-size: 30px; letter-spacing: 1px; }
  .hero-slide p { font-size: 17px; }
  .hero-slide .btn-primary,
  .hero-slide .btn-outline { padding: 10px 22px; font-size: 15px; }
  .hero-slide .container { padding-top: 40px; padding-bottom: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .site-header .container { height: 54px; }
  .logo { font-size: 16px; }
  .hero { min-height: 400px; }
  .home-categories { padding: 44px 0; }
  .home-products-preview { padding: 36px 0; }
  .page-header { padding: 32px 0; }
  .page-header h1 { font-size: 24px; }
  .products-card-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .hero-slide h1 { font-size: 24px; letter-spacing: 1px; }
  .hero-slide p { font-size: 15px; }
  .hero-slide .btn-primary,
  .hero-slide .btn-outline { padding: 10px 18px; font-size: 14px; display: block; width: 100%; }
  .hero-slide .container { padding-top: 30px; padding-bottom: 30px; }
  .btn-hero-secondary { margin-left: 0; margin-top: 10px; }
}
