/* ==========================================
   TITIWANGSA 蒂蒂旺沙 - 官网共享样式
   设计规范：品牌 VI v1.0
   新增：图片卡片 + 滚动动画 + 立体阴影
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@300;400;600&family=Noto+Sans+SC:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=ZCOOL+XiaoWei&display=swap');

:root {
  /* ★ 原始配色，一字不改 */
  --brown:       #7D3B1E;
  --brown-lt:    #A0522D;
  --brown-dk:    #4A2010;
  --green:       #8DC83C;
  --green-dk:    #5A8A1A;
  --green-deep:  #2D5016;
  --gold:        #F5C842;
  --gold-lt:     #FAE099;
  --cream:       #F5F0D5;
  --cream-dk:    #EDE5C0;
  --warm-white:  #FDFAF2;
  --char:        #1E1810;
  --mid:         #6B5B4E;
  --muted:       #9A8470;
  --white:       #FFFFFF;
  --alert:       #CC4400;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-heading: 'Noto Serif SC', 'Songti SC', serif;
  --font-body:    'Noto Serif SC', 'Songti SC', serif;
  --font-ui:      'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-accent:  'ZCOOL XiaoWei', 'Noto Serif SC', serif;

  --space-xs: 4px;  --space-sm: 8px;  --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px;
  --space-3xl: 64px; --space-4xl: 96px; --space-5xl: 128px;

  --max-width: 1200px;
  --nav-height: 64px;
  --radius: 4px;

  /* 只新增：立体阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--char);
  background-color: var(--cream);
  min-height: 100vh;
  padding-top: var(--nav-height);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ==========================================
   导航栏 ★ 原始深棕
   ========================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--brown-dk);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-xl);
  z-index: 1000;
  border-bottom: 1px solid rgba(245,200,66,0.15);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 400;
  letter-spacing: 6px; color: var(--gold);
}

.nav-brand-cn {
  font-family: var(--font-heading);
  font-size: 13px; font-weight: 300;
  letter-spacing: 4px; color: var(--cream);
  margin-left: var(--space-md);
}

.nav-links { display: flex; list-style: none; gap: var(--space-lg); }

.nav-links a {
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 400;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.3s;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-sm); }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--gold); margin: 5px 0; transition: 0.3s; }

/* ==========================================
   Hero ★ 原始样式 + 背景图
   ========================================== */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: var(--space-4xl) var(--space-xl);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(74,32,16,0.35);
  z-index: 1;
}

.hero > * { position: relative; z-index: 2; }

.hero-title {
  font-family: var(--font-accent);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 300; letter-spacing: 6px;
  line-height: 1.4; text-align: center;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(245,200,66,0.35), 0 0 80px rgba(245,200,66,0.15);
  background: linear-gradient(180deg, rgba(245,200,66,0.08) 0%, rgba(245,200,66,0.02) 100%);
  padding: 12px 32px;
  border: 1px solid rgba(245,200,66,0.2);
  display: inline-block;
  border-radius: 2px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 300; letter-spacing: 4px;
  color: var(--cream); margin-top: var(--space-lg);
  text-align: center; opacity: 0.85;
  text-shadow: 0 0 20px rgba(245,200,66,0.2);
}

.hero-decor { width: 40px; height: 1px; background: var(--gold); margin: var(--space-lg) auto; }

/* ==========================================
   区块 ★ 原始
   ========================================== */
.section { padding: var(--space-4xl) var(--space-xl); }
.section-light { background: var(--cream); }
.section-warm  { background: var(--warm-white); }
.section-dark  { background: var(--brown-dk); color: var(--cream); }
.section-deep  { background: var(--green-deep); color: var(--cream); }

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

.section-label {
  font-family: var(--font-ui); font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-accent);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 300; letter-spacing: 4px;
  line-height: 1.5; margin-bottom: var(--space-md);
}

.section-dark .section-title, .section-deep .section-title { color: var(--gold); }

.section-body {
  font-family: var(--font-body); font-size: 17px;
  font-weight: 300; line-height: 1.75;
  letter-spacing: 0.5px; color: var(--mid); max-width: 680px;
}

.section-dark .section-body { color: rgba(245,240,213,0.75); }
.section-deep .section-body { color: rgba(245,240,213,0.75); }

.divider { width: 60px; height: 1px; background: rgba(125,59,30,0.2); margin: var(--space-lg) 0; }
.section-dark .divider, .section-deep .divider { background: rgba(245,200,66,0.3); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ==========================================
   ★ 新增：图片卡片（huakenmd 风格）
   ========================================== */
.image-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s, transform 0.4s;
  display: block;
}

.image-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.image-card-fig { height: 240px; overflow: hidden; background: var(--cream-dk); }

.image-card-fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.image-card:hover .image-card-fig img { transform: scale(1.05); }

.image-card-body { padding: var(--space-lg); }

.image-card-body .sub {
  font-family: var(--font-ui); font-size: 10px; font-weight: 500;
  color: var(--muted); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 4px;
}

.image-card-body h3 {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 400;
  letter-spacing: 2px; margin-bottom: 6px;
}

.image-card-body p {
  font-family: var(--font-body); font-size: 13px;
  color: var(--mid); line-height: 1.7;
}

/* ==========================================
   ★ 新增：图片产品卡
   ========================================== */
.product-fig { height: 300px; overflow: hidden; background: var(--cream-dk); }

.product-fig img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s;
}

.image-card:hover .product-fig img { transform: scale(1.05); }

.product-specs { display: flex; gap: var(--space-xl); margin: 12px 0 20px; flex-wrap: wrap; }
.product-spec { font-family: var(--font-ui); font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.product-spec strong { display: block; font-size: 14px; color: var(--char); font-weight: 400; margin-top: 2px; }

.product-cta {
  display: inline-block;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 3px;
  color: var(--white); background: var(--brown);
  padding: 12px 32px; border-radius: 2px;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer; border: none; text-transform: uppercase;
}

.product-cta:hover {
  background: var(--brown-dk);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   ★ 新增：全幅图像区块
   ========================================== */
.image-block {
  position: relative; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.image-block-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.8s;
}

.image-block:hover .image-block-bg { transform: scale(1.03); }

.image-block::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(74,32,16,0.35);
  z-index: 1;
}

.image-block-content {
  position: relative; z-index: 2;
  text-align: center; padding: 40px; max-width: 600px;
}

.image-block-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 300; letter-spacing: 6px;
  color: var(--gold);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
  margin-bottom: var(--space-md);
}

.image-block-content p {
  font-family: var(--font-body); font-size: 14px;
  color: rgba(245,240,213,0.8);
  line-height: 1.9; letter-spacing: 2px;
}

/* ==========================================
   导航卡片 ★ 原始
   ========================================== */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid rgba(125,59,30,0.1);
  border-radius: var(--radius);
  transition: all 0.3s;
  cursor: pointer; display: block;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.nav-card:hover {
  border-color: var(--gold);
  background: rgba(245,200,66,0.04);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.nav-card-icon { font-family: var(--font-display); font-size: 28px; color: var(--gold); margin-bottom: var(--space-sm); }
.nav-card-label { font-family: var(--font-heading); font-size: 14px; letter-spacing: 2px; color: var(--char); margin-bottom: 2px; }
.nav-card-en { font-family: var(--font-ui); font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

/* ==========================================
   数据指标
   ========================================== */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

.stat-card {
  text-align: center; padding: var(--space-xl) var(--space-md);
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s;
}

.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-value { font-family: var(--font-display); font-size: 36px; color: var(--gold); margin-bottom: var(--space-xs); }
.stat-label { font-family: var(--font-ui); font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.stat-desc { font-family: var(--font-body); font-size: 12px; color: var(--mid); margin-top: var(--space-sm); line-height: 1.6; }

.section-dark .stat-card, .section-deep .stat-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(245,200,66,0.1); }
.section-dark .stat-desc, .section-deep .stat-desc { color: rgba(245,240,213,0.75); }

/* ==========================================
   认证徽章
   ========================================== */
.badge-strip { display: flex; justify-content: center; gap: var(--space-xl); flex-wrap: wrap; }
.badge { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }

.badge-icon {
  width: 80px; height: 80px; border-radius: 50%;
  border: 1px solid rgba(125,59,30,0.15);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px;
  color: var(--brown); background: var(--warm-white);
  transition: border-color 0.3s;
}

.badge-icon:hover { border-color: var(--gold); }

.badge-label { font-family: var(--font-ui); font-size: 12px; letter-spacing: 1px; color: var(--mid); text-align: center; max-width: 120px; }

/* -- image-block内徽章颜色覆盖（透明，让圆形徽章图自然呈现） -- */
.image-block .badge-icon {
  border-color: transparent;
  background: transparent;
}
.image-block .badge-label {
  color: var(--cream);
}

/* ==========================================
   联系方式
   ========================================== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.contact-card {
  text-align: center; padding: var(--space-xl) var(--space-md);
  border: 1px solid rgba(125,59,30,0.1);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  background: var(--white); box-shadow: var(--shadow-sm);
}

.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.contact-card-icon { margin-bottom: var(--space-md); }
.contact-card-icon img { display: inline-block; }
.contact-card-name { font-family: var(--font-heading); font-size: 15px; letter-spacing: 2px; margin-bottom: var(--space-sm); }
.contact-card-desc { font-family: var(--font-ui); font-size: 11px; color: var(--muted); letter-spacing: 1px; }

.phone-display { font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); letter-spacing: 6px; color: var(--gold); text-align: center; margin-bottom: var(--space-sm); }

/* ==========================================
   Footer ★ 原始
   ========================================== */
.site-footer { background: var(--brown-dk); color: var(--cream); padding: var(--space-3xl) var(--space-xl) var(--space-xl); text-align: center; }

.footer-brand { font-family: var(--font-display); font-size: 22px; letter-spacing: 8px; color: var(--gold); margin-bottom: var(--space-sm); }
.footer-brand-cn { font-family: var(--font-heading); font-size: 14px; letter-spacing: 4px; color: var(--cream); font-weight: 300; }
.footer-tagline { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin: var(--space-sm) 0 var(--space-lg); letter-spacing: 2px; }

.footer-links { display: flex; justify-content: center; gap: var(--space-lg); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.footer-links a { font-family: var(--font-ui); font-size: 11px; letter-spacing: 2px; color: var(--muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--gold); }
.footer-links .sep { color: rgba(154,132,112,0.3); }

.footer-phone { font-family: var(--font-display); font-size: 16px; letter-spacing: 3px; color: var(--gold-lt); margin-bottom: var(--space-lg); }

.footer-certifications { display: flex; justify-content: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); opacity: 0.7; }
.footer-cert { font-family: var(--font-ui); font-size: 10px; letter-spacing: 1px; color: var(--muted); border: 1px solid rgba(154,132,112,0.3); padding: 4px 12px; border-radius: 2px; transition: border-color 0.3s; }
.footer-cert:hover { border-color: var(--gold); }

.footer-copyright { font-family: var(--font-ui); font-size: 10px; color: rgba(154,132,112,0.6); letter-spacing: 1px; padding-top: var(--space-lg); border-top: 1px solid rgba(154,132,112,0.15); }

/* ==========================================
   ★ 只新增：滚动揭示动画
   ========================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================
   金色金句
   ========================================== */
.golden-quote {
  font-family: var(--font-accent);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 300; letter-spacing: 6px;
  line-height: 1.6; color: var(--gold);
  text-align: center; padding: var(--space-3xl) 0;
  position: relative;
}

.golden-quote::before, .golden-quote::after {
  content: ''; display: block;
  width: 40px; height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

.golden-quote::before { margin-bottom: var(--space-lg); }
.golden-quote::after { margin-top: var(--space-lg); }

/* ==========================================
   Journal
   ========================================== */
.ritual-steps { display: flex; justify-content: center; gap: var(--space-lg); flex-wrap: wrap; }
.ritual-step { text-align: center; padding: var(--space-lg); min-width: 100px; }
.ritual-step-char { font-family: var(--font-heading); font-size: 40px; font-weight: 300; color: var(--gold); display: block; margin-bottom: var(--space-sm); }
.ritual-step-en { font-family: var(--font-ui); font-size: 10px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }

.flavor-wheel-wrap { position: relative; max-width: 500px; margin: 0 auto; }
.timeline-wrap { position: relative; max-width: 600px; margin: 0 auto; }
.timeline-progress-bar { max-width: 600px; margin: var(--space-lg) auto 0; height: 2px; background: rgba(125,59,30,0.1); border-radius: 1px; }
.timeline-progress-fill { height: 100%; background: var(--gold); border-radius: 1px; transition: width 0.5s ease; width: 0%; }
.timeline-progress-label { font-family: var(--font-ui); font-size: 10px; color: var(--muted); letter-spacing: 1px; margin-top: var(--space-sm); text-align: center; }
.timeline-progress-label span { color: var(--gold); }

.watermark {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 600;
  color: rgba(245,200,66,0.04);
  pointer-events: none; user-select: none;
  white-space: nowrap; letter-spacing: 20px;
}

/* ==========================================
   响应式 ★ 原始
   ========================================== */
@media (max-width: 1024px) {
  :root { --space-xl: 40px; --space-3xl: 64px; --space-4xl: 80px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 56px; --space-xl: 24px; --space-2xl: 36px; --space-3xl: 48px; --space-4xl: 64px; }
  .site-nav { padding: 0 var(--space-lg); }
  .nav-brand { font-size: 16px; letter-spacing: 4px; }
  .nav-brand-cn { display: none; }
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--brown-dk); flex-direction: column; padding: var(--space-lg); gap: 0; transform: translateY(-100%); opacity: 0; transition: all 0.3s; pointer-events: none; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { display: block; padding: var(--space-md) 0; border-bottom: none; font-size: 13px; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .nav-cards { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 60vh; padding: var(--space-2xl) var(--space-lg); }
  .product-fig { height: 240px; }
  .image-card-fig { height: 200px; }
  .image-block { min-height: 300px; }
}

@media (max-width: 480px) {
  .stat-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
