/* ========================================
   AoTeDI 咕噜噜萌宠定制 · 共享样式
   ======================================== */

/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #fdf8f4;
  color: #3d2b1f;
  min-height: 100vh;
  padding-top: 56px; /* 给顶部导航留空间 */
}

/* ===== 背景装饰 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,220,180,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(230,200,255,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 45%, rgba(255,240,210,0.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ===== 顶部导航栏 ===== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,248,244,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,125,64,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 12px;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(201,125,64,0.08);
  border-radius: 24px;
  padding: 3px;
  border: 1px solid rgba(201,125,64,0.12);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #8a5430;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-item:hover { color: #7b4f2e; background: rgba(201,125,64,0.06); }
.nav-item.active {
  background: linear-gradient(135deg, #f5c96a, #e8a43a);
  color: #fff;
  box-shadow: 0 1px 6px rgba(200,130,50,0.25);
}
.nav-item .nav-icon { font-size: 0.95rem; }

/* ===== 页面容器 ===== */
.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 60px;
}

/* ===== Hero 顶部 ===== */
.hero {
  text-align: center;
  padding: 28px 24px 20px;
}
.hero-logo {
  display: block;
  margin: 0 auto 14px;
  width: 180px;
  height: auto;
  mix-blend-mode: multiply;
}
.hero-logo-fallback {
  font-size: 1.3rem;
  font-weight: 800;
  color: #a0303a;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 0.84rem;
  color: #a0806a;
  line-height: 1.9;
}
.hero-badge {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(135deg, #f5c96a, #e8a43a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(200,130,50,0.3);
}

/* ===== 品牌海报 ===== */
.poster-wrap {
  margin: 8px 16px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(160,100,40,0.12);
}
.poster-img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* ===== 分类标题 ===== */
.section { margin: 22px 16px 0; }
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #7b4f2e;
  margin-bottom: 12px;
  padding-left: 4px;
}
.section-title .icon { font-size: 1.2rem; }
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201,125,64,0.3), transparent);
  margin-left: 4px;
}

/* ===== 产品卡片 ===== */
.cards { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(201,125,64,0.15);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(180,120,60,0.08);
}

/* ===== 商品图片轮播 ===== */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3ece4;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}
.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左右箭头 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  color: #7b4f2e;
  font-size: 0.9rem;
}
.carousel-arrow:hover { background: rgba(255,255,255,0.95); transform: translateY(-50%) scale(1.08); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.95); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
/* 只有一张图时隐藏箭头 */
.carousel.single .carousel-arrow { display: none; }

/* 底部圆点指示器 */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.carousel-dot.active {
  background: #fff;
  width: 18px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(255,255,255,0.6);
}
.carousel.single .carousel-dots { display: none; }

/* 占位符样式（手链暂无图片） */
.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #c0a080;
  font-size: 0.75rem;
}
.carousel-placeholder::before {
  content: '🖼';
  font-size: 2rem;
  opacity: 0.4;
}
.card-img-wrap.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.card-img-wrap.placeholder::after {
  content: attr(data-label);
  font-size: 0.62rem;
  color: #c0a080;
  text-align: center;
  padding: 0 4px;
  line-height: 1.4;
}
.card-img-wrap.placeholder::before {
  content: '🖼';
  font-size: 1.4rem;
  opacity: 0.5;
}

.card-body { padding: 12px 16px 16px; }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.card-name { font-size: 0.97rem; font-weight: 700; color: #3d2b1f; line-height: 1.4; }
.card-price { flex-shrink: 0; font-size: 1.1rem; font-weight: 800; color: #c97d40; }
.card-price .unit { font-size: 0.75rem; font-weight: 500; color: #a0806a; margin-left: 1px; }

.card-specs { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  display: inline-block;
  background: rgba(201,125,64,0.08);
  color: #8a5430;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(201,125,64,0.15);
}
.tag.gold {
  background: rgba(245,201,106,0.18);
  border-color: rgba(200,160,50,0.25);
  color: #7a5a10;
}

.card-addons {
  margin-top: 10px;
  border-top: 1px dashed rgba(201,125,64,0.2);
  padding-top: 10px;
}
.card-addons-title {
  font-size: 0.72rem;
  color: #a0806a;
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.addon-list { display: flex; flex-direction: column; gap: 4px; }
.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #6b4c38;
}
.addon-item .addon-price { color: #c97d40; font-weight: 600; font-size: 0.82rem; }

.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #b8e994, #7ed56f);
  color: #2d6e1a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.size-table { margin-top: 10px; width: 100%; border-collapse: collapse; }
.size-table th {
  font-size: 0.72rem;
  color: #a0806a;
  font-weight: 600;
  padding: 4px 8px;
  text-align: left;
  background: rgba(201,125,64,0.06);
}
.size-table td {
  font-size: 0.8rem;
  color: #3d2b1f;
  padding: 6px 8px;
  border-top: 1px solid rgba(201,125,64,0.08);
}
.size-table td.price-cell { color: #c97d40; font-weight: 700; }

.ring-hint {
  font-size: 0.76rem;
  color: #a0806a;
  margin-bottom: 10px;
  padding-left: 4px;
  line-height: 1.7;
}

/* ===== 通用内容卡片（流程/须知用） ===== */
.content-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(201,125,64,0.12);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(180,120,60,0.06);
}
.content-card + .content-card { margin-top: 10px; }
.content-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #7b4f2e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.content-card p,
.content-card li {
  font-size: 0.82rem;
  color: #6b4c38;
  line-height: 1.9;
}
.content-card ul { list-style: none; padding: 0; }
.content-card ul li { padding-left: 14px; position: relative; }
.content-card ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: #c97d40;
  font-weight: 700;
}

/* ===== 流程步骤 ===== */
.step-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 14px;
  position: relative;
  padding-bottom: 20px;
}
.step-item:last-child { padding-bottom: 0; }
.step-item:last-child .step-line { display: none; }
.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c96a, #e8a43a);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(200,130,50,0.25);
}
.step-line {
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(201,125,64,0.25), rgba(201,125,64,0.05));
}
.step-content { flex: 1; padding-top: 4px; }
.step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #3d2b1f;
  margin-bottom: 4px;
}
.step-desc {
  font-size: 0.8rem;
  color: #8a5430;
  line-height: 1.7;
}

/* ===== 须知章节标题 ===== */
.guide-section {
  margin: 20px 16px 0;
}
.guide-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #7b4f2e;
  margin-bottom: 10px;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ===== 警示框 ===== */
.warn-box {
  background: rgba(255,235,230,0.7);
  border: 1px solid rgba(200,100,60,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}
.warn-box p {
  font-size: 0.8rem;
  color: #8a4a30;
  line-height: 1.7;
}

/* ===== 纯银小贴士 ===== */
.tip-card {
  background: linear-gradient(135deg, rgba(255,248,240,0.9), rgba(255,243,230,0.9));
  border: 1px solid rgba(201,125,64,0.2);
  border-radius: 14px;
  padding: 16px;
  margin-top: 10px;
}
.tip-card .tip-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7b4f2e;
  margin-bottom: 8px;
}

/* ===== 页面标题区 ===== */
.page-hero {
  text-align: center;
  padding: 28px 24px 18px;
}
.page-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #7b4f2e;
  margin-bottom: 6px;
}
.page-hero-desc {
  font-size: 0.82rem;
  color: #a0806a;
  line-height: 1.7;
}

/* ===== 底部 ===== */
.footer {
  margin: 28px 16px 0;
  text-align: center;
}
.footer-paw {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
  opacity: 0.6;
}
.footer p { font-size: 0.78rem; color: #a0806a; line-height: 1.8; }
.footer .contact-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 28px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #07c160, #06ad56);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(7,193,96,0.35);
  transition: all 0.2s ease;
  font-family: inherit;
}
.footer .contact-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(7,193,96,0.45); }
.footer .contact-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(7,193,96,0.3); }

/* ===== 微信二维码弹窗 ===== */
.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.qr-overlay.show { opacity: 1; visibility: visible; }
.qr-modal {
  background: #fff;
  border-radius: 20px;
  padding: 28px 28px 20px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
  width: 85%;
}
.qr-overlay.show .qr-modal { transform: scale(1); }
.qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #eee;
}
.qr-tip {
  margin: 14px 0 16px;
  font-size: 0.82rem;
  color: #888;
}
.qr-close {
  padding: 8px 36px;
  border: none;
  border-radius: 20px;
  background: #f0f0f0;
  color: #555;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.qr-close:hover { background: #e4e4e4; }

/* ===== 响应式 ===== */
@media (min-width: 520px) {
  body { padding-top: 56px; }
  .page { padding: 0 0 80px; }
  .hero { padding: 32px 32px 24px; }
  .section, .guide-section { margin-left: 20px; margin-right: 20px; }
  .notice, .footer { margin-left: 20px; margin-right: 20px; }
}
