/* style.css - La Mer Luxury Style (With Gold & Footer) */
:root {
  --primary-color: #000000;
  --accent-gold: #c7a878; /* 亮金色（文字点缀） */
  --bg-gold: #f3efe9; /* 新增：柔和的高级香槟金背景 */
  --bg-color: #ffffff;
  --bg-alt: #f9f9f9;
  --text-main: #222222;
  --text-sub: #666666;
  --font-serif: "Playfair Display", Times, serif;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- 极简导航栏 --- */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.header-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.header h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  flex: 1;
  text-align: center;
}

/* 响应式：小屏幕时调整logo大小 */
@media (max-width: 480px) {
  .header-logo {
    height: 32px;
    left: 12px;
  }
  .header {
    padding: 10px 12px;
  }
  .header h1 {
    font-size: 16px;
  }
}

/* --- Hero Slogan --- */
.hero-art {
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 24px;
  font-style: italic;
  color: var(--text-main);
  background: var(--bg-color);
  max-width: 800px;
  margin: 0 auto;
}

/* 产品标题区域 */
.product-title-section {
  padding: 20px 24px 40px;
  text-align: left;
  background: var(--bg-color);
  max-width: 1200px;
  margin: 0 auto;
}

.product-title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.4;
}

.product-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  display: block;
  margin-top: 0.2em;
}

.content {
  max-width: 100%;
  padding: 0;
  overflow-x: hidden;
}

/* --- 模块化布局 --- */
.module-section {
  display: flex;
  flex-direction: column; /* 手机默认 */
  width: 100%;
  min-height: auto;
  background: var(--bg-color);
  border-bottom: 1px solid #f0f0f0;
}

/* ✨ 新增：高级金色背景样式类 ✨ */
.module-section.bg-luxury-gold {
  background-color: var(--bg-gold);
  border-bottom: none;
}
/* 当模块有金色背景时，让里面的文本区域背景透明 */
.bg-luxury-gold .module-text {
  background: transparent;
}
/* 金色背景下的副标题颜色微调 */
.bg-luxury-gold .module-text h3 {
  color: #8a7a60; /* 深一点的金色 */
}

/* 媒体区域 */
.module-media {
  width: 100%;
  position: relative;
  background: #f4f4f4;
  overflow: hidden;
  height: 400px;
}

/* 文本区域 */
.module-text {
  width: 100%;
  padding: 50px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* --- 电脑端适配 --- */
@media (min-width: 900px) {
  .header h1 {
    font-size: 24px;
  }
  .hero-art {
    font-size: 28px;
  }

  .module-section {
    flex-direction: row;
    height: 600px;
  }
  .module-section.reverse {
    flex-direction: row-reverse;
  }

  .module-media,
  .module-text {
    width: 50%;
    height: 100%;
  }

  .module-text {
    padding: 60px 40px;
  }
}

/* 文本样式 */
.module-text h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 16px;
}
.module-text h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 24px;
  color: var(--primary-color);
  line-height: 1.2;
}
.text-block {
  font-size: 16px;
  color: var(--text-sub);
  max-width: 420px;
  margin-bottom: 32px;
}

/* 轮播图 */
.carousel {
  width: 100%;
  height: 100%;
  position: relative;
}
.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.carousel-item {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  z-index: 10;
  opacity: 0.8;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.carousel-btn:hover {
  opacity: 1;
}
.carousel-btn:first-of-type {
  left: 0;
}
.carousel-btn:last-of-type {
  right: 0;
}
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: 0.3s;
}
.dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* 按钮 */
.btn.primary {
  display: inline-block;
  padding: 16px 40px;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--primary-color);
  transition: var(--transition);
  cursor: pointer;
}
.btn.primary:hover {
  background: transparent;
  color: var(--primary-color);
}

/* 仪表盘 */
.scan-counter-wrapper {
  padding: 60px 20px;
  background: var(--bg-alt);
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}
.counter-header {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.counter-remaining {
  font-weight: 700;
  border-bottom: 2px solid var(--accent-gold);
}
#counter-detail {
  font-size: 13px;
  color: var(--text-sub);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* 规格列表 */
.specs-container {
  margin-top: 30px;
  width: 100%;
  max-width: 320px;
}
.specs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.specs-list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.specs-list span:first-child {
  font-weight: 600;
  color: var(--text-main);
}
.specs-list span:last-child {
  color: var(--text-sub);
}

/* --- ✨ 全新页脚 (La Mer Style Footer) ✨ --- */
.footer {
  background: #ffffff;
  color: #222;
  padding: 60px 20px 40px;
  border-top: 1px solid #eee;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

@media (min-width: 900px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* 左侧订阅栏 */
.footer-subscribe {
  flex: 1;
  max-width: 400px;
}
.footer-title {
  font-family: var(--font-serif);
  font-size: 36px;
  margin: 0 0 20px;
  color: #222;
  font-weight: 400;
}
.subscribe-form label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
  cursor: pointer;
}
.checkbox-custom {
  width: 16px;
  height: 16px;
  border: 1px solid #999;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hidden-checkbox:checked + .checkbox-custom::after {
  content: "✓";
  font-size: 12px;
}
.hidden-checkbox {
  display: none;
}
.email-input-group {
  position: relative;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}
.email-input {
  width: 100%;
  border: none;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  color: #222;
  background: transparent;
  font-family: var(--font-sans);
}
.email-input::placeholder {
  color: #999;
}

/* 右侧链接栏 */
.footer-links-grid {
  flex: 1.2;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列布局 */
  gap: 20px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: #222;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover {
  color: #000;
}

/* 手机端页脚优化 */
@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: 1fr; /* 手机上单列 */
    gap: 30px;
  }
  .footer-title {
    font-size: 28px;
  }
}

/* Loading & Utils */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #333;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
.hidden {
  display: none !important;
}

/* 确保验证成功页面能正确显示 */
.verification-success:not(.hidden) {
  display: block !important;
}
.invalid {
  color: #d32f2f;
}

/* ===== 验证成功页面样式 ===== */
.verification-success {
  position: relative;
  width: 100%;
  background: #ffffff;
  z-index: 1;
}

/* 状态栏 */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  background: #fff;
}

.status-time {
  font-family: var(--font-sans);
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.status-wifi {
  font-size: 16px;
}

.status-battery {
  font-size: 12px;
}

/* 导航栏 */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.nav-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #000;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
}

.nav-btn.nav-center {
  flex: 1;
  font-size: 14px;
  gap: 6px;
}

.nav-btn:hover {
  opacity: 0.7;
}

/* 验证内容 */
.verification-content {
  padding: 20px 24px 40px;
  text-align: center;
  background: #fff;
  max-width: 600px;
  margin: 0 auto;
}

.verification-title {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 20px 0 16px;
  line-height: 1.2;
}

.verification-thanks {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.scan-count-display {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 24px 0;
  letter-spacing: 1px;
}

.scan-count-display span {
  font-weight: 700;
}

/* 绿色对勾圆圈 */
.verification-checkmark {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkmark-circle {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark-svg {
  width: 100%;
  height: 100%;
}

.cross-svg {
  width: 100%;
  height: 100%;
}

/* 正品标题 */
.genuine-title {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 30px 0 16px;
  line-height: 1.3;
}

.genuine-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.genuine-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 40px;
}

/* 条形码容器 */
.barcode-container {
  margin-top: 40px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.barcode-svg {
  width: 100%;
  max-width: 300px;
  height: auto;
  background: #fff;
}

.barcode-numbers {
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  letter-spacing: 2px;
  text-align: center;
  margin-top: 8px;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .verification-title {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .checkmark-circle {
    width: 100px;
    height: 100px;
  }

  .genuine-title {
    font-size: 18px;
  }

  .barcode-svg {
    max-width: 250px;
  }
}
