@charset "UTF-8";

/* ========== CSS Variables ========== */
:root {
  --primary: #0A32DC;
  --primary-light: #1a4fc7;
  --primary-soft: rgba(0, 47, 167, 0.08);
  --text-dark: rgba(0, 0, 0, 0.85);
  --text-mid: rgba(0, 0, 0, 0.65);
  --text-light: rgba(0, 0, 0, 0.45);
  --bg-light: #f8f9fc;
  --bg-card: #ffffff;
  --border-radius: 12px;
  --section-padding: 80px 0;
  --container-max: 1200px;
  --transition: all 0.3s ease;
}

/* ========== Global ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 覆盖 main.css 中的全局 h1 隐藏和 h2/h3/h4 居中 */
h1,
h2,
h3,
h4 {
  text-align: left;
  text-indent: 0;
  float: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Section Common ========== */
.section {
  padding: var(--section-padding);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.flex-center {
  align-items: center;
}

.flex-center .section-title-desc-group .section-title-desc {
  text-align: center;
}

.section-subtitle {
  font-size: 13px;
  color: var(--primary);
  letter-spacing: 1px;
}

.section-title {
  font-weight: 600;
  font-size: 48px;
  color: #111111;
  margin-top: 8px;
  margin-bottom: 0;
}

.section-title-tag {
  color: var(--primary);
}

.section-title-desc-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
}

.section-title-desc {
  width: 100%;
  margin: 0;
  line-height: 29px;
  font-weight: 400;
  font-size: 16px;
  color: #111111;
}

.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  margin-top: 20px;
}

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border: 1px solid rgba(0, 0, 0, 0.85);
  border-radius: 4px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
  background: #fff;
  transition: var(--transition);
}

.section-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.section-more i {
  font-size: 11px;
  transition: var(--transition);
}

.section-more:hover i {
  transform: translateX(3px);
}

/* ========== Hero Banner ========== */
.hero-banner {
  position: relative;
  width: 100%;
  height: 1000px;
  background: rgb(244,244,244);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(../img/home/banner.png) no-repeat center center;
  background-size: contain;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 0 0 45%;
  max-width: 520px;
}

.hero-title {
  /* 覆盖 main.css 全局 h1 的 SEO 隐藏手法（text-indent:-999px; float:left） */
  float: none;
  text-indent: 0;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 47, 167, 0.25);
}

.hero-btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 47, 167, 0.35);
}

.hero-btn-link {
  font-size: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero-btn-link img {
  width: 32px;
  height: 32px;
}

.hero-btn-link:hover {
  color: var(--primary);
  transform: translateX(10px);
}

/* ========== Product Card ========== */
.product-card {
  width: 290px;
  height: 479px;
}

.product-card-sp {
  padding: 10px;
  background: #FAFAFA;
  border-radius: 14px;
}

.product-card-img {
  /* width: 270px; */
  /* height: 290px; */
}

.product-card-img img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 0 18px 0;
}

.product-card-title {
  font-weight: 500;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 32px;
  margin: 22px 0 0 !important;
}

.product-card-desc {
  font-weight: 300;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 20px;
  margin: 0 0 8px !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 400;
  font-size: 16px;
  color: #111111;
  margin-bottom: 0;
}

.product-card-btn img {
  width: 20px;
  height: 20px;
}

/* ========== Care Card (in carousel) ========== */
.care-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.care-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.care-card-img {
  width: 100%;
  height: 180px;
  background: #eef1f6;
  overflow: hidden;
}

.care-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.care-card-body {
  padding: 18px;
}

.care-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.care-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 14px;
}

.care-card-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.care-card-link i {
  font-size: 11px;
  transition: var(--transition);
}

.care-card-link:hover i {
  transform: translateX(4px);
}

/* ========== Section Backgrounds ========== */
.care-guide {
  background: var(--bg-card);
}

.product-series {
  background: linear-gradient(180deg, #D8DEE6 0%, #F9FCFF 28.13%, #FCFCFC 85.49%, #E8EDF2 100%);
}

.daily-care {
  background: var(--bg-card);
}

.post-acne {
  background: linear-gradient(180deg, #D8DEE6 0%, #F9FCFF 28.13%, #FCFCFC 85.49%, #E8EDF2 100%);
}

.emergency-care {
  background: var(--bg-card);
}

/* ========== Single Product (non-carousel) ========== */
.single-product {
  display: flex;
  justify-content: flex-start;
}

.single-product .product-card {
  width: 280px;
}

/* ========== FAQ / Wiki ========== */
.faq-section {
  background: #ffffff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.faq-card {
  display: flex;
  gap: 30px;
  border-radius: 4px;
  padding: 18px;
  transition: var(--transition);
  border: 1px solid #EEEEEE;
  display: flex;
  align-items: center;
}

.faq-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.faq-card-img {
  width: 120px;
  height: 90px;
  overflow: hidden;
}

.faq-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.faq-card-title {
  font-weight: 500;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 32px;
  margin: 0 !important;
}

.faq-card-desc {
  font-weight: 300;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 20px;
  margin: 0 !important;
}

.faq-more {
  text-align: center;
  display: flex;
  justify-content: center;
  margin-top: 60px;
}

.faq-more .section-more {
  padding: 12px 36px;
  width: max-content;
  display: flex;
  align-items: center;
}

/* ========== 微信扫一扫 ========== */
.wechat-section {
  background: #ECF2FC;
  padding-bottom: 0;
}

.wechat-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.wechat-text {
  flex: 1;
  max-width: 480px;
}

.wechat-label {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.wechat-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 20px;
}

.wechat-title-tag {
  color: var(--primary);
}

.wechat-desc {
  font-weight: 400;
  font-size: 16px;
  color: #111111;
  line-height: 29px;
  margin-bottom: 30px;
}

.wechat-sub-desc {
  font-weight: 300;
  font-size: 13px;
  color: rgba(10, 50, 220, .5);
  line-height: 20px;
  padding-left: 12px;
  position: relative;
}

.wechat-sub-desc::before {
  content: '';
  width: 2px;
  height: 30px;
  background-color: var(--primary);
  position: absolute;
  left: 0px;
  top: 0;
  bottom: 0;
  margin: auto;
}

.wechat-qrcodes {
  display: flex;
  gap: 27px;
  flex-shrink: 0;
}

.wechat-qrcode-item {
  width: 299px;
  height: 438px;
  background: url(../img/home/phone.png) no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.wechat-qrcode-item img {
  width: 183px;
  height: 183px;
  object-fit: contain;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.wechat-qrcode-item span {
  font-weight: 600;
  font-size: 16px;
  color: #000000;
}

/* ========== 痘痘会变 ========== */
.change-section {
  background-color: #fff;
  text-align: center;
  background-image: url(../img/home/change-bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.change-inner {
  margin: 0 auto;
}

.change-label {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.change-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 20px;
  text-align: center;
}

.change-desc {
  font-weight: 300;
  font-size: 24px;
  color: #111111;
  line-height: 36px;
  margin: 0 auto 39px;
  max-width: 760px;
}

.change-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 36px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 47, 167, 0.25);
}

.change-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 47, 167, 0.35);
  color: #ffffff;
}

.change-btn i {
  font-size: 12px;
  transition: var(--transition);
}

.change-btn:hover i {
  transform: translateX(3px);
}

.change-btn img {
  width: 32px;
  height: 32px;
}

/* ========== 商品轮播（bxslider） ========== */
.slider-wrap {
  position: relative;
  width: 100%;
}

.product-slider-sp {
  width: 100%;
}

.product-slider {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

/* 去掉 bxslider 默认容器样式，内容区占满 100% */
.slider-wrap .bx-wrapper {
  max-width: 100% !important;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.slider-wrap .bx-wrapper .bx-viewport {
  left: 0;
  background: none !important;
  border: none;
  box-shadow: none !important;
}

/* 单个卡片：宽度由 bxslider 计算，这里只做居中 */
.pro-wrap {
  display: flex;
  justify-content: center;
  gap: 13px;
}

.pro-wrap .pro-info {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.pro-wrap .pro-img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin-bottom: 20px;
}

.pro-wrap .pro-name {
  width: 100%;
  font-weight: 500;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 32px;
}

.pro-wrap .pro-desc {
  font-weight: 300;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.85);
  line-height: 20px;
}

.pro-wrap .pro-b {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 13px;
  font-weight: 400;
  font-size: 13px;
  color: #111111;
  margin-top: 10px;
}

/* 商品名两行省略 */
.pulls-hidde {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}

/* 左右按钮：绝对定位浮在两侧，不占用内容宽度 */
.bx-s-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.bx-s-controls:hover {
  opacity: 1;
  box-shadow: 0 6px 20px rgba(0, 47, 167, 0.2);
}

/* bxslider 会往容器内注入 <a class="bx-next/prev">，需给它尺寸 */
.bx-s-controls a {
  width: 100%;
  height: 100%;
}

.bx-s-controls img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bx-s-prev {
  left: 12px;
}

.bx-s-next {
  right: 12px;
}

/* ========== Responsive: Tablet (≤1024px) ========== */
@media (max-width: 1024px) {
  .hero-banner {
    height: 630px;
  }

  :root {
    --section-padding: 60px 0;
  }

  .hero-bg {
    transform: scale(1.08);
    background-position: 0 70px;
  }

  .hero-banner {
    min-height: 520px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 24px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .bx-s-controls {
    width: 52px;
    height: 52px;
  }

  .bx-s-prev {
    left: -28px;
  }

  .bx-s-next {
    right: -28px;
  }

  .wechat-inner {
    gap: 40px;
    flex-direction: column;
    text-align: center;
  }

  .wechat-title,
  .change-title {
    font-size: 26px;
    text-align: center;
  }

  .change-desc {
    font-size: 22px;
    line-height: 34px;
  }

  .wechat-qrcode-item img {
    width: 130px;
    height: 130px;
  }

  .wechat-qrcode-item {
    width: 260px;
    height: 381px;
  }
}

/* ========== Responsive: Mobile (≤768px) ========== */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px 0;
  }

  /* 移动端虚化背景图，并轻微放大避免边缘露出底色，提升前景内容辨识度 */
  .hero-bg {
    /* filter: blur(3px); */
    transform: scale(1.08);
    background-position: 0 150px;
  }

  .hero-banner {
    height: auto;
    min-height: 520px;
    padding: 80px 0;
    align-items: flex-start;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    flex: 1;
    max-width: 100%;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-btns {
    justify-content: center;
  }

  /* 移动端给次级按钮加背景，提升在 hero 大图上的辨识度 */
  .hero-btn-link {
    color: #fff;
    background-color: #000;
    padding: 14px 36px;
    font-size: 15px;
    border-radius: 9px;
    gap: 6px;
  }

  .hero-btn-link:hover {
    color: #ffffff;
    transform: none;
  }

  .hero-btn-link img {
    width: 20px;
    height: 20px;
    display: none;
  }

  .section-header {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
  }

  .section-title-group {
    min-width: 0;
  }

  .section-more {
    flex-shrink: 0;
    margin-top: 4px;
  }

  .section-title {
    font-size: 22px;
  }

  .care-card-img {
    height: 140px;
  }

  .care-card-body,
  .product-card-body {
    padding: 14px;
  }

  .product-card {
    width: 100%;
    height: auto;
  }

  .product-card-img {
    height: auto;
  }

  .product-card-img img {
    width: 100%;
    height: auto;
  }

  .pro-wrap .pro-desc {
    text-align: left;
    width: 100%;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-card {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .faq-card-img {
    width: 100%;
    height: 180px;
  }

  .faq-card-title {
    font-size: 15px;
  }

  .faq-card-desc {
    font-size: 12px;
  }

  /* 移动端隐藏 faq 卡片右侧箭头，避免竖排布局下多余占位 */
  .faq-card .fa-angle-right {
    display: none;
  }

  /* 移动端：一屏展示一个卡片，卡片变宽后图片随之放大 */
  .pro-wrap .pro-info {
    padding: 18px 14px 16px;
  }

  .pro-wrap .pro-img {
    width: 100%;
    height: 220px;
  }

  .pro-wrap .pro-name {
    font-size: 15px;
  }

  .bx-s-controls {
    width: 44px;
    height: 44px;
  }

  .bx-s-prev {
    left: -26px;
  }

  .bx-s-next {
    right: -26px;
  }

  .wechat-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .wechat-text {
    max-width: 100%;
    text-align: center;
  }

  /* 移动端让子描述文字居中，左侧竖线改为顶部居中短横线 */
  .wechat-sub-desc {
    padding-left: 0;
  }

  .wechat-sub-desc::before {
    left: 50%;
    right: auto;
    top: -12px;
    bottom: auto;
    transform: translateX(-50%);
    width: 36px;
    height: 2px;
    margin: 0;
  }

  .wechat-title,
  .change-title {
    font-size: 22px;
    text-align: center;
  }

  .change-desc {
    font-size: 19px;
    line-height: 30px;
  }

  .wechat-qrcodes {
    gap: 20px;
    justify-content: center;
  }

  /* 手机壳随容器自适应，保持原始比例，不再固定 299px 导致窄屏溢出 */
  .wechat-qrcode-item {
    width: 45%;
    max-width: 260px;
    height: auto;
    aspect-ratio: 299 / 438;
  }

  .wechat-qrcode-item img {
    width: 56%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 8px;
    margin-bottom: 10px;
  }

  .change-btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 36px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-banner {
    height: auto;
    min-height: 400px;
    padding: 60px 0;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-btn-primary {
    padding: 12px 28px;
    font-size: 14px;
  }

  .hero-btn-link {
    padding: 12px 28px;
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-title-desc {
    font-size: 14px;
    line-height: 24px;
  }

  .section-subtitle {
    font-size: 12px;
  }

  .care-card-img {
    height: 180px;
  }

  .faq-card {
    flex-direction: column;
  }

  .faq-card-img {
    width: 100%;
    height: 200px;
  }

  .faq-card-body {
    padding: 0;
  }

  .pro-wrap .pro-img {
    width: 100%;
    height: 200px;
  }

  .bx-s-controls {
    width: 38px;
    height: 38px;
  }

  .bx-s-prev {
    left: -14px;
  }

  .bx-s-next {
    right: -14px;
  }

  .wechat-title,
  .change-title {
    font-size: 20px;
    text-align: center;
  }

  .change-desc {
    font-size: 16px;
    line-height: 26px;
  }

  .wechat-qrcodes {
    gap: 16px;
  }

  .wechat-qrcode-item {
    width: 44%;
  }
}

/* PC 大屏：轮播按钮放到 slider-wrap 外侧的留白区 */
@media (min-width: 1600px) {
  .bx-s-prev {
    left: -120px;
  }

  .bx-s-next {
    right: -120px;
  }
}