/* 头部导航栏样式 */
.navbar {
  background: #ff5252;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  min-height: 64px;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.logo {
  font-weight: bold;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 2px;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
  flex-shrink: 0;
  min-width: 120px;
  margin-right: 0;
}
.nav {
  flex: 1;
  display: flex;
  gap: 1.1rem;
  justify-content: flex-end;
  align-items: center;
  margin-right: 100px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0 !important;
  transition: background 0.18s, color 0.18s;
  padding: 0.32rem 0.8rem;
}
.nav a:hover {
  background: #fff;
  color: #ff5252;
}
.back-btn {
  background: #fff;
  color: #ff5252;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 20px;
  transition: background 0.18s, color 0.18s;
}
.back-btn:hover {
  background: #ffeaea;
}

/* 首页、分类、商品卡片、详情页等样式 */
body {
  background: #fff;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 16px;
}
.hero {
  background: #ff5252;
  color: #fff;
  text-align: center;
  padding: 100px 0 40px 0;
}
.hero h1 {
  font-size: 5rem;
  margin: 0 0 20px 0;
}
.hero .signup-btn {
  background: #fff;
  color: #ff5252;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.category-section {
  text-align: center;
  margin: 40px 0 20px 0;
}
.category-section h2 {
  color: #ff5252;
  font-size: 2rem;
  margin-bottom: 30px;
}
.category-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.category-btn {
  background: #ff5252;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 18px 36px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  min-width: 180px;
  margin-bottom: 0;
}
.discount-title {
  color: #ff5252;
  font-size: 2rem;
  text-align: center;
  margin: 80px 0 20px 0;
}
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* gap: 30px; */
  /* max-width: 1200px; */
  margin: 0 auto;
}
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 8px #eee;
  position: relative;
}
.product-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  margin-top: 20px;
}
.product-card .discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5252;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}
.product-card .title {
  font-size: 1.1rem;
  margin: 18px 0 8px 0;
  color: #222;
}
.product-card .price {
  font-size: 2rem;
  color: #ff5252;
  font-weight: bold;
  margin: 0 0 10px 0;
}
.product-card .detail-btn {
  background: #ff5252;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 18px;
  cursor: pointer;
}

/* 详情页样式 */
.detail-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  max-width: 1200px;
  margin: 120px auto 40px auto;
}
.detail-imgs {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.detail-imgs img {
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 0;
  background: #f0f0f0;
}
.detail-info {
  flex: 1 1 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.detail-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.detail-price {
  color: #ff5252;
  font-size: 2.7rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
}
.detail-btn-cnfans {
  background: #ff5252;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 18px 60px;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.2rem;
  margin-top: 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.detail-btn-cnfans:hover {
  background: #e53e3e;
}
.detail-desc {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  background: #f7f8fa;
  padding: 1.1rem 1.2rem;
  margin-top: 0.5rem;
  box-shadow: 0 1px 6px rgba(37,99,235,0.04);
  border-radius: 0;
}

/* 详情页轮播图缩略图样式 */
.detail-imgs .slider-pics-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  justify-content: center;
}
.detail-imgs .slider-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #eee;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: none;
  background: #fafafa;
}
.detail-imgs .slider-thumb:hover {
  border: 2px solid #ff5252;
  box-shadow: 0 2px 8px #ffd6d6;
}
.detail-imgs .slider-thumb.active {
  border: 2.5px solid #ff5252;
  box-shadow: 0 2px 12px #ffd6d6;
}
.detail-imgs #mainProductImg,
.detail-imgs .main-img {
  width: 320px;
  height: auto;
  border-radius: 8px;
  border: 1.5px solid #eee;
  object-fit: contain;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 2px 12px #f7f7f7;
  display: block;
  max-width: 90vw;
}

/* 信息区块、按钮、footer等 */
.info-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 60px 0 30px 0;
}
.info-box {
  background: #ff5252;
  color: #fff;
  border-radius: 20px;
  padding: 30px 40px;
  text-align: center;
  min-width: 320px;
}
.info-box .qr {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
}
.info-box button {
  background: #fff;
  color: #ff5252;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: bold;
  margin: 10px 0;
  cursor: pointer;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}
.footer-links button {
  background: #ff5252;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 36px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
}
.footer {
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 20px;
}

/* 移动端适配 */
@media (max-width: 1000px) {
  .navbar {  align-items: center; min-height: unset; padding: 0.5rem 0.5rem; }
  .nav { flex-wrap: wrap; gap: 0.5rem; }
  /* .products { gap: 16px; } */
  .info-section { flex-direction: column; align-items: center; gap: 20px; }
  .category-btns { gap: 30px; }
  .detail-main { flex-direction: column; align-items: center; gap: 1.5rem; padding: 1.2rem 0.7rem 1.2rem 0.7rem; }
  .detail-imgs img { width: 98vw; height: 20vh; }
  .detail-title { font-size: 3rem; }
  .detail-price { font-size: 4rem; }
  .detail-imgs #mainProductImg,
  .detail-imgs .main-img { width: 65vw; height: auto; }
  .detail-imgs .slider-thumb { width: 15vw; height: auto; }
  .main, .products, .detail-main, .about-container, .buy-container {
    max-width: 100vw;
    padding: 0 6px;
  }
  body {
    font-size: 34px;
  }
  .logo {
    font-size: 3.5rem;
  }
  .hero {
    padding-top: 150px;
  }
  .hero .signup-btn {
    font-size: 2rem;
  }
  .detail-title, .about-title, .buy-title {
    font-size: 3rem;
  }
 
  .footer-links { flex-direction: column; align-items: center; gap: 12px; }
  .footer-links button { width: 50vw; min-width: unset; }
  .info-box { min-width: unset; width: 50vw; box-sizing: border-box; }
  .product-card { width: 98vw !important; min-width: unset; }
  .product-card img { height: 520px !important; }
  .category-btn { width: 50vw; min-width: unset; }
  .nav { display: none !important; }
  .menu-toggle { display: block !important; font-size: 4rem !important; margin-right: 26px !important; }
  .drawer { display: none; }
  .drawer.open { display: block; }
  .how-to-bypass {
    font-size: 2rem !important;
  }

  .discount-title {
    font-size: 4rem;
  }
  .disclaimer {
    font-size: 2rem;
  }

  .category-btn {
    font-size: 3rem;
  }

  .detail-btn-cnfans {
    font-size: 3rem;
  }
  
}

/* 全局主内容区自适应宽度 */
.main, .products, .detail-main, .about-container, .buy-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  margin-top: 100px;
}

/* 字体自适应 */
/* .detail-title, .about-title, .buy-title {
  font-size: 2rem;
} */

/* 按钮、卡片、图片等自适应 */
.footer-links button, .category-btn, .detail-btn-cnfans {
  /* min-width: 120px; */
  padding: 10px 18px;
}

.product-desc-title {
  font-size: 3rem;
}

/* 统一滚动条和溢出处理 */
html, body {
  overflow-x: hidden;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  margin-right: 16px;
  cursor: pointer;
}
.drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
}
.drawer-content {
  background: #fff;
  width: 100vw;
  /* max-width: 320px; */
  height: 50vh;
  position: fixed;
  left: 0; top: 0;
  box-shadow: 2px 0 16px #8882;
  /* padding: 100px 18px 18px 18px; */
  padding-top: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  /* gap: 6rem; */
}
.drawer-close {
  background: none;
  border: none;
  font-size: 4rem;
  color: #ff5252;
  position: absolute;
  top: 20px; right: 75px;
  cursor: pointer;
}

/* 产品介绍区块样式 */
.product-desc-block {
  background: #f7f8fa;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(37,99,235,0.04);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0 1.2rem 0;
}

.product-desc-title {
  font-size: 3rem;
  font-weight: bold;
  color: #ff5252;
  margin-bottom: 0.7rem;
}

.product-desc-content {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.8;
  word-break: break-all;
}

/* Facebook分享按钮样式 */
.fb-share-btn {
  background: #4267B2;
  color: #fff !important;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s;
}
.fb-share-btn:hover {
  background: #365899;
  color: #fff !important;
}

/* Twitter分享按钮样式 */
.twitter-share-btn {
  background: #1DA1F2;
  color: #fff !important;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.18s;
}
.twitter-share-btn:hover {
  background: #1A91DA;
  color: #fff !important;
}

