/* === YueSheng Brand v2 — Clean Professional === */

:root {
  --primary: #b4836a;
  --primary-dark: #8a6048;
  --primary-light: #d4a88e;
  --primary-lighter: #e8d5c8;
  --bg: #fcf9f7;
  --bg-alt: #f5ede6;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-soft: #666;
  --text-light: #999;
  --border: #eee;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.logo span { color: var(--primary); }

.logo small {
  font-size: 10px;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 2px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav a {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 1.5px;
  transition: color .3s;
  padding: 4px 0;
}

.nav a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 22px !important;
  border-radius: 30px;
  font-size: 12px !important;
  transition: opacity .3s !important;
}

.nav-cta:hover { opacity: 0.9 !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 20px;
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  gap: 60px;
}

.hero-content { flex: 1; }

.hero-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--primary);
  padding: 5px 18px;
  border: 1px solid var(--primary-lighter);
  border-radius: 30px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero h1 span {
  font-weight: 300;
  font-size: 28px;
  color: var(--text-light);
  display: block;
  margin-top: 8px;
  letter-spacing: 4px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-soft);
  max-width: 460px;
  line-height: 1.9;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Hero Carousel === */
.hero-carousel {
  width: 400px;
  background: linear-gradient(135deg, #f5ede6 0%, #f0e4da 100%);
  border-radius: 20px;
  padding: 40px 40px 20px;
  text-align: center;
  overflow: hidden;
}

.hc-track {
  display: flex;
  transition: transform .5s ease;
}

.hc-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hc-slide img {
  width: 280px;
  height: 280px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

.hc-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 12px;
  letter-spacing: 1px;
}

.hc-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 14px;
}

.hc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-lighter);
  cursor: pointer;
  transition: background .3s, transform .3s;
}

.hc-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* === Section Common === */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding: 80px 24px;
}

.section-alt > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 1px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: 40px;
  font-size: 13px;
  letter-spacing: 2px;
  transition: all .3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

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

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180,131,106,0.3);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-block { width: 100%; }

/* === Page Hero (Products Page) === */
.page-hero {
  padding: 120px 24px 48px;
  background: linear-gradient(135deg, #f9f5f0 0%, #f0e4da 100%);
  text-align: center;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.page-hero p {
  font-size: 14px;
  color: var(--text-soft);
  letter-spacing: 1px;
}

.breadcrumb {
  display: inline-block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 12px;
  transition: color .3s;
}
.breadcrumb:hover { color: var(--primary); }

/* === Product Detail === */
.product-detail {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.pd-alt {
  background: var(--bg-alt);
  max-width: none;
  padding: 60px 24px;
}

.pd-alt > .pd-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pd-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.pd-reverse {
  flex-direction: row-reverse;
}

.pd-gallery {
  flex: 0 0 380px;
}

.pd-main-img {
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f9f5f0 0%, #f5ede6 100%);
  padding: 20px;
  aspect-ratio: 1;
  object-fit: contain;
  margin-bottom: 12px;
  transition: opacity .3s;
}

/* 竖版主图高度自适应 */
.pd-main-img.is-portrait {
  aspect-ratio: unset;
  height: 480px;
  padding: 8px;
}
@media (max-width: 768px) {
  .pd-main-img.is-portrait { height: auto; aspect-ratio: unset; }
}

.pd-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pd-thumbs img {
  scroll-snap-align: start;
}

.pd-thumbs img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .3s;
  background: #f9f5f0;
  flex-shrink: 0;
}

@media (min-width: 769px) and (max-width: 1000px) {
  .pd-thumbs img { width: 48px; height: 48px; }
}

.pd-thumbs img.active {
  border-color: var(--primary);
}
.pd-thumbs img:hover {
  border-color: var(--primary-light);
}

.pd-thumbs::-webkit-scrollbar {
  height: 4px;
}
.pd-thumbs::-webkit-scrollbar-thumb {
  background: var(--primary-lighter);
  border-radius: 4px;
}

.pd-info {
  flex: 1;
  padding-top: 12px;
}

.pd-info .product-cat {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 6px;
}

.pd-info h2 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.pd-desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 20px;
}

.pd-specs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 13px;
}

.pd-specs tr {
  border-bottom: 1px solid var(--border);
}

.pd-specs tr:last-child {
  border-bottom: none;
}

.pd-specs td {
  padding: 10px 8px;
  vertical-align: top;
}

.pd-specs td:first-child {
  width: 120px;
  color: var(--text-light);
  letter-spacing: 1px;
}

.pd-specs td:last-child {
  color: var(--text);
  font-weight: 400;
}

.pd-specs-full td:first-child {
  width: 100px;
}

/* 注氧仪专用：简洁参数列表 */
.pd-specs-list {
  margin-bottom: 24px;
}
.pd-specs-list .psl-row {
  display: flex;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
}
.pd-specs-list .psl-row:last-child {
  border-bottom: none;
}
.pd-specs-list .psl-l {
  flex: 0 0 100px;
  color: var(--text-light);
  font-size: 13px;
  letter-spacing: 1px;
}
.pd-specs-list .psl-v {
  flex: 1;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.cert-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.cert-item:hover { transform: translateY(-3px); }

.cert-icon { font-size: 32px; display: block; margin-bottom: 10px; }

.cert-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  letter-spacing: 3px;
}

.cert-item p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* === News === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: transform .3s;
  position: relative;
}

.news-card:hover { transform: translateY(-3px); }

.news-date {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: 8px;
  padding: 2px 10px;
  border: 1px solid var(--primary-lighter);
  border-radius: 4px;
}

.news-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.news-card p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* === Store / Channels === */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.store-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
  display: block;
  border: 1px solid transparent;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-lighter);
}

.store-icon { font-size: 28px; display: block; margin-bottom: 8px; }

.store-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

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

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  border: 1px solid rgba(0,0,0,0.02);
  display: block;
}

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

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, #f9f5f0 0%, #f5ede6 100%);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

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

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 20px;
}

.product-card-body {
  padding: 20px 20px 24px;
}

.product-cat {
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 4px;
}

.product-card-body h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.product-card-body p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* === OEM Grid === */
.oem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.oem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s;
}

.oem-card:hover { transform: translateY(-3px); }

.oem-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 16px;
}

.oem-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
}

.oem-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* === About === */
.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--primary);
  padding: 4px 14px;
  border: 1px solid var(--primary-lighter);
  border-radius: 4px;
  margin-bottom: 16px;
}

.about-text h3 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.about-text p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 2;
  margin-bottom: 12px;
}

.about-text p strong { color: var(--primary); font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 2px;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-icon { font-size: 28px; }

.contact-item h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 13px;
  color: var(--text-soft);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 14px;
  transition: border-color .3s;
  background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  text-align: center;
}

.footer-brand { margin-bottom: 20px; }

.footer-logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
}

.footer-logo small { font-size: 11px; color: var(--text-light); font-weight: 300; }

.footer-brand p {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-light);
  transition: color .3s;
}

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

.footer-copy p {
  font-size: 11px;
  color: #bbb;
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero h1 span { font-size: 22px; }
  .hero-desc { max-width: none; }
  .hero-actions { justify-content: center; }
  .hero-visual { flex: none; width: 100%; }
  .hero-product-show { margin: 0 auto; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; height: 56px; }
  .logo small { display: none; }
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }

  .hero { padding: 90px 16px 40px; }
  .hero h1 { font-size: 32px; }
  .hero h1 span { font-size: 18px; }
  .hero-product-show { width: 260px; padding: 30px; }
  .hero-product-img { width: 180px; }

  .section { padding: 48px 16px; }
  .section-alt { padding: 48px 16px; }
  .section-header h2 { font-size: 24px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pd-inner { flex-direction: column; }
  .pd-reverse { flex-direction: column; }
  .pd-gallery { flex: none; width: 100%; max-width: 360px; margin: 0 auto; }
  .page-hero { padding: 100px 16px 36px; }
  .page-hero h1 { font-size: 28px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .oem-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-wrap { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-carousel { width: 260px; padding: 24px 24px 12px; }
  .hc-slide img { width: 160px; height: 160px; }
}

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


/* === Floating Contact Button === */
.float-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fc-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.fc-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.fc-whatsapp { background: #25D366; }
.fc-email { background: var(--primary); }

@media (max-width: 768px) {
  .float-contact { bottom: 16px; right: 16px; }
  .fc-btn { width: 44px; height: 44px; }
  .fc-btn svg { width: 20px; height: 20px; }
}


/* === Product Feature Badges === */
.pd-features {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.pd-feat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-soft);
  background: var(--bg-alt);
  padding: 4px 12px 4px 8px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.pd-feat-icon {
  font-size: 14px;
  line-height: 1;
}
