/* Cigaronne HK - 卡比龙 简体中文网 CSS Framework */
/* Based on cigaronne.com design with Chinese adaptation */

:root {
  --primary: #1a1a1a;
  --accent: #c9a962;
  --accent-hover: #b8942f;
  --bg: #ffffff;
  --bg-dark: #0a0a0a;
  --bg-alt: #f5f5f5;
  --text: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --text-muted: #999999;
  --border: #e5e5e5;
  --border-light: #f0f0f0;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, sans-serif;
  --font-display: 'PingFang SC', 'Microsoft YaHei', serif;
  --max-width: 1440px;
  --header-height: 80px;
  --transition: 0.3s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1rem; }
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img { height: 50px; width: auto; }

.nav { display: flex; gap: 2rem; align-items: center; }
.nav a {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-light);
  position: relative;
  padding: 0.5rem 0;
}

.nav a:hover,
.nav a.active { color: var(--accent); }

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  }
  .nav.open { display: flex; }
}

/* ========== AGE GATE ========== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.age-gate-content {
  max-width: 500px;
  padding: 2rem;
}

.age-gate-content img { margin: 0 auto 2rem; width: 80px; }
.age-gate-content h2 { font-size: 1.8rem; margin-bottom: 1rem; font-weight: 300; }
.age-gate-content p { color: #999; margin-bottom: 2rem; font-size: 0.9rem; line-height: 1.8; }

.age-gate-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-exit {
  padding: 0.8rem 2rem;
  border: 1px solid #666;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
.btn-exit:hover { border-color: #fff; color: #fff; }

.btn-enter {
  padding: 0.8rem 2rem;
  border: none;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-enter:hover { background: var(--accent-hover); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover { background: var(--text); color: var(--bg); }
.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent:hover { background: var(--accent); color: var(--bg); }

/* ========== HERO CAROUSEL ========== */
.hero-carousel {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 80vh;
}

.hero-slide.active { display: flex; align-items: center; }

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  max-width: 600px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero-slide { min-height: 60vh; }
  .hero-content h1 { font-size: 2.2rem; }
}

/* Carousel controls */
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ========== SECTIONS ========== */
.section {
  padding: 6rem 0;
}

.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.6rem; }
}

/* ========== PRODUCT CARDS ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.product-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2rem;
}

.product-card-body { padding: 1.5rem; }
.product-card-body h3 { font-size: 1.1rem; font-weight: 400; margin-bottom: 0.5rem; }
.product-card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }
.product-card-body .btn { margin-top: 1rem; }

/* ========== STATS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent);
}

.stat-item p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========== VALUES GRID ========== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  border: 1px solid var(--border-light);
  text-align: center;
}

.value-card h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 0.8rem; }
.value-card p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; }
}

/* ========== NEWS CARDS ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.news-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}

.news-card-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.news-card-body { padding: 1.5rem; }
.news-card-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.news-card-body h3 { font-size: 1.05rem; font-weight: 400; margin-bottom: 0.8rem; line-height: 1.4; }
.news-card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

/* ========== ACCORDION ========== */
.accordion { border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-header {
  width: 100%;
  padding: 1.2rem 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  font-family: var(--font-sans);
}

.accordion-header:hover { color: var(--accent); }

.accordion-header::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 300;
}

.accordion-item.open .accordion-header::after { content: '\u2212'; }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.accordion-body p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

/* ========== FEATURE BLOCKS ========== */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-block.reverse { direction: rtl; }
.feature-block.reverse .feature-text { direction: ltr; }

.feature-image img {
  width: 100%;
  border-radius: 4px;
}

.feature-text h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.feature-text p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; gap: 2rem; }
  .feature-block.reverse { direction: ltr; }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 0.5rem; }

/* ========== PAGE BANNER ========== */
.page-banner {
  background: var(--bg-dark);
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.page-banner h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.page-banner p {
  color: #999;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .page-banner h1 { font-size: 1.8rem; }
}

/* ========== PRODUCT DETAIL ========== */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.product-hero-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.product-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.product-hero-text .lead {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.product-specs {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
}

.product-specs h4 { font-size: 0.9rem; margin-bottom: 0.5rem; }
.product-specs p { color: var(--text-light); font-size: 0.85rem; }

@media (max-width: 768px) {
  .product-hero { grid-template-columns: 1fr; gap: 2rem; }
  .product-hero-text h1 { font-size: 1.8rem; }
}

/* ========== RELATED PRODUCTS ========== */
.related-products {
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col img { height: 40px; margin-bottom: 1rem; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.footer-col a,
.footer-col p {
  display: block;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.footer-col a:hover { color: var(--text-white); }

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========== CONTACT PAGE ========== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.contact-info-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.contact-info-card .icon { font-size: 2rem; margin-bottom: 1rem; }
.contact-info-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.contact-info-card p { color: var(--text-light); font-size: 0.9rem; }

@media (max-width: 768px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}

/* ========== STORES PAGE ========== */
.stores-list { display: grid; gap: 1rem; }
.store-item {
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-item h3 { font-size: 1rem; font-weight: 400; }
.store-item p { color: var(--text-light); font-size: 0.85rem; }

/* ========== UTILITY ========== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 4rem; }

/* ========== SCHEMA HIDDEN ========== */
.schema-hidden { display: none; }

/* ========== FLOATING WIDGETS (预留) ========== */
.float-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
}

/* ========== PRINT ========== */
@media print {
  .header, .footer, .age-gate, .float-widget { display: none; }
}
