/* ============================================
   蜀乡酒业 - 官方网站样式
   四川省蜀乡酒业有限公司
   ============================================ */

/* 1. CSS Custom Properties */
:root {
  --color-wine: #8B1A1A;
  --color-wine-dark: #6B1414;
  --color-wine-light: #A52A2A;
  --color-gold: #C9A961;
  --color-gold-light: #D4BC7E;
  --color-gold-dark: #A88B3D;
  --color-cream: #F5EFE6;
  --color-cream-dark: #E8DFD0;
  --color-ink: #1A1A1A;
  --color-ink-light: #333333;
  --color-gray: #666666;
  --color-gray-light: #999999;
  --color-white: #FFFFFF;

  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
  --font-sans: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-display: 'Playfair Display', var(--font-serif);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --radius-sm: 4px;
  --radius-md: 8px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --header-height: 80px;
  --header-height-mobile: 64px;
  --max-width: 1200px;
  
  /* iOS safe area insets */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
  
  /* Touch target minimum (iOS HIG) */
  --touch-target-min: 44px;
}

/* 2. Reset & Base */
*, *::before, *::after { 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(--color-ink);
  background-color: var(--color-cream);
  line-height: 1.8;
  overflow-x: hidden;
  /* iOS safe area padding */
  padding-top: var(--safe-area-top);
  padding-bottom: var(--safe-area-bottom);
  padding-left: var(--safe-area-left);
  padding-right: var(--safe-area-right);
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* Prevent horizontal scroll & handle long text */
*, *::before, *::after {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Ensure images don't overflow */
img, video, iframe, object, embed {
  max-width: 100%;
  height: auto;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { color: var(--color-ink-light); line-height: 1.9; }

/* 4. Layout & Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  color: var(--color-ink);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: 16px auto 0;
  border-radius: 2px;
}

.section-header .section-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 8px;
}

.section-header p.desc {
  max-width: 680px;
  margin: 16px auto 0;
  color: var(--color-gray);
  font-size: 1rem;
}

.bg-dark {
  background-color: var(--color-ink);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--color-cream);
}

.bg-dark p {
  color: rgba(245, 239, 230, 0.75);
}

.bg-alt {
  background-color: var(--color-cream-dark);
}

.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  min-height: var(--touch-target-min);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-wine);
  color: var(--color-cream);
  border: 2px solid var(--color-wine);
}

.btn-primary:hover {
  background: var(--color-wine-dark);
  border-color: var(--color-wine-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-ink);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-cream);
  border: 2px solid var(--color-cream);
}

.btn-outline-light:hover {
  background: var(--color-cream);
  color: var(--color-ink);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-ink);
  border: none;
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(201, 169, 97, 0.35);
}

/* Button sizes for mobile */
.btn-sm {
  padding: 10px 20px;
  min-height: var(--touch-target-min);
  font-size: 0.85rem;
}

/* 5. Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  /* iOS notch safe area */
  padding-top: var(--safe-area-top);
  /* ⚠️ z-index 1002 必须高于 .mobile-nav(1000)，否则汉堡按钮会被遮挡无法点击！勿改！ */
  z-index: 1002;
  transition: all var(--transition);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: calc(var(--header-height) - var(--safe-area-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Body menu-open state - 锁定滚动 */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  top: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
  transition: all var(--transition);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo:hover .logo-icon {
  box-shadow: 0 0 16px rgba(201, 169, 97, 0.3);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-wine), var(--color-wine-dark));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  transition: all var(--transition);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text-cn {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: 4px;
}

.logo-text-en {
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: var(--color-gold);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}

/* Legacy logo-text support (for pages with old markup) */
.logo-text small {
  display: block;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 2.5px;
  color: var(--color-gold);
  font-family: var(--font-display);
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.85;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 8px 16px;
  font-size: 0.95rem;
  color: rgba(245, 239, 230, 0.85);
  transition: all var(--transition);
  position: relative;
  letter-spacing: 1px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition);
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 24px;
}

/* Hamburger */
.hamburger {
  display: none;
  position: relative;      /* ← 必须有position才能让z-index生效 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  padding: 10px;
  z-index: 1001;
  border-radius: 4px;
  transition: background var(--transition);
}

.hamburger:hover,
.hamburger:focus {
  background: rgba(201, 169, 97, 0.1);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-cream);
  transition: all var(--transition);
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay - 半透明遮罩，点击关闭 */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.6);  /* ← 降低透明度，能看到主内容 */
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  cursor: pointer;  /* ← 提示可点击 */
}
  padding-bottom: var(--safe-area-bottom);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Nav Drawer - 右侧滑入抽屉样式 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;              /* ← 从右侧滑入 */
  width: 280px;          /* ← 固定宽度，不完全遮挡屏幕 */
  max-width: 85vw;       /* ← 小屏手机最多85%宽度 */
  height: 100%;
  z-index: 1000;
  flex-direction: column;
  align-items: stretch;  /* ← 链接撑满宽度 */
  justify-content: flex-start;  /* ← 从顶部开始排列，不再居中 */
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);  /* ← 初始在右侧外面 */
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  background: linear-gradient(180deg, var(--color-ink) 0%, #252525 100%);  /* ← 深色渐变背景 */
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);  /* ← 左侧阴影增加层次感 */
  /* Safe area for iOS */
  padding-top: calc(var(--header-height-mobile) + var(--safe-area-top) + 20px);
  padding-bottom: var(--safe-area-bottom);
  padding-left: 0;
  padding-right: 0;
  overflow-y: auto;
  /* iOS Safari scroll lock fix */
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);  /* ← 滑入到右侧 */
}

/* 抽屉内链接样式 */
.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-cream);
  padding: 18px 24px 18px 32px;  /* ← 左侧更多padding，视觉层次 */
  letter-spacing: 2px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;              /* ← 左对齐，更自然的阅读方向 */
  min-height: var(--touch-target-min);
  line-height: 1.5;
  border-bottom: 1px solid rgba(245, 239, 230, 0.08);  /* ← 分隔线 */
  position: relative;
}

/* 当前页面链接高亮 */
.mobile-nav a.active {
  color: var(--color-gold);
  background: rgba(201, 169, 97, 0.1);
  border-left: 3px solid var(--color-gold);  /* ← 左侧金色指示条 */
}

/* 悬停效果 */
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-gold);
  background: rgba(201, 169, 97, 0.08);
  transform: translateX(4px);  /* ← 微右移反馈 */
}

/* 最后一个链接无分隔线 */
.mobile-nav a:last-child {
  border-bottom: none;
}

/* 6. Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Account for header + safe area */
  padding-top: calc(var(--header-height) + var(--safe-area-top));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1515 30%, #1a1a2e 60%, #0d0d0d 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 26, 26, 0.15) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--color-cream), transparent);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
}

.hero-mountain {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  opacity: 0.15;
}

.hero-mountain::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 60%;
  height: 100%;
  background: linear-gradient(165deg, transparent 40%, rgba(201,169,97,0.3) 40.5%, rgba(201,169,97,0.1) 60%, transparent 60%);
}

.hero-mountain::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 50%;
  height: 80%;
  background: linear-gradient(195deg, transparent 30%, rgba(201,169,97,0.2) 30.5%, rgba(201,169,97,0.08) 55%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
}

.hero-content .hero-tag {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 2vw, 1rem);
  color: var(--color-gold);
  letter-spacing: clamp(2px, 1.5vw, 6px);
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.3s forwards;
  /* Prevent overflow */
  max-width: 85vw;
  overflow-wrap: break-word;
}

.hero-content .hero-divider {
  width: clamp(40px, 10vw, 80px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.7s forwards;
}

.hero-content .hero-desc {
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  color: rgba(245, 239, 230, 0.7);
  max-width: min(600px, 85vw);
  margin: 0 auto 32px;
  letter-spacing: 1px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.8s 0.9s forwards;
}

.hero-content .hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s 1.1s forwards;
  /* Ensure buttons don't overflow */
  max-width: 90vw;
}

.hero-scroll-hint {
  position: absolute;
  bottom: calc(60px + var(--safe-area-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeInUp 0.8s 1.5s forwards;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  color: var(--color-gold);
  letter-spacing: 2px;
}

.hero-scroll-hint .scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  animation: scrollPulse 2s infinite;
}

/* 7. Page Banner */
.page-banner {
  position: relative;
  height: 400px;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Account for header + safe area */
  padding-top: calc(var(--header-height) + var(--safe-area-top));
}

.page-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1515 40%, #1a1a2e 80%, #0d0d0d 100%);
}

.page-banner-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(139, 26, 26, 0.2) 0%, transparent 70%);
}

.page-banner-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--color-cream), transparent);
}

.page-banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.page-banner-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-cream);
  letter-spacing: 6px;
  margin-bottom: 12px;
}

.page-banner-content .banner-en {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.page-banner-content .breadcrumb {
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(245, 239, 230, 0.6);
}

.page-banner-content .breadcrumb a {
  color: rgba(245, 239, 230, 0.6);
}

.page-banner-content .breadcrumb a:hover {
  color: var(--color-gold);
}

.page-banner-content .breadcrumb span {
  margin: 0 8px;
  color: var(--color-gold);
}

/* 8. Brand Stats */
.brand-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-ink);
}

.stat-item {
  padding: 48px 32px;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(201, 169, 97, 0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  font-size: 1.2rem;
  font-weight: 400;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(245, 239, 230, 0.7);
  letter-spacing: 2px;
}

/* 9. Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.product-card-image {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.product-card-image .img-placeholder {
  transition: transform var(--transition-slow);
}

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

.product-card-image .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-wine);
  color: var(--color-gold);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 2px;
  font-family: var(--font-serif);
  letter-spacing: 1px;
  z-index: 3;
}

.product-card-body {
  padding: 24px;
}

.product-card-body .product-series {
  font-size: 0.8rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--font-display);
}

.product-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.product-card-body .product-desc {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 16px;
  line-height: 1.6;
}

.product-card-body .product-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-gray-light);
  padding-top: 16px;
  border-top: 1px solid var(--color-cream-dark);
}

/* Image placeholders */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.img-placeholder .placeholder-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: rgba(201, 169, 97, 0.8);
  letter-spacing: 2px;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
}

.img-placeholder .placeholder-icon {
  font-size: 2.5rem;
  z-index: 2;
  opacity: 0.6;
}

.ph-wine {
  background: linear-gradient(160deg, #2d1515 0%, #1a0a0a 50%, #0d0d0d 100%);
}
.ph-wine::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(139, 26, 26, 0.3) 0%, transparent 60%);
}

.ph-gold {
  background: linear-gradient(160deg, #2a2210 0%, #1a1508 50%, #0d0d0d 100%);
}
.ph-gold::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(201, 169, 97, 0.2) 0%, transparent 60%);
}

.ph-ink {
  background: linear-gradient(160deg, #1a1a2e 0%, #16161a 50%, #0d0d0d 100%);
}
.ph-ink::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(100, 100, 140, 0.15) 0%, transparent 60%);
}

.ph-green {
  background: linear-gradient(160deg, #1a2d1a 0%, #0d1a0d 50%, #0d0d0d 100%);
}
.ph-green::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(80, 120, 80, 0.2) 0%, transparent 60%);
}

.ph-wine-light {
  background: linear-gradient(160deg, #3d1a1a 0%, #2a1010 50%, #1a0a0a 100%);
}
.ph-wine-light::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 40%, rgba(165, 42, 42, 0.2) 0%, transparent 60%);
}

/* 10. Brand Story */
.brand-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.brand-story-image {
  position: relative;
  height: 450px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.brand-story-image::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-sm);
  z-index: -1;
  opacity: 0.3;
}

.brand-story-text h2 {
  margin-bottom: 20px;
}

.brand-story-text .gold-line {
  margin: 0 0 24px 0;
}

.brand-story-text p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 2;
}

.brand-story-text .btn {
  margin-top: 16px;
}

/* 11. News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.news-card-image {
  height: 200px;
  overflow: hidden;
}

.news-card-body {
  padding: 24px;
}

.news-card-body .news-date {
  font-size: 0.8rem;
  color: var(--color-gold);
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-body .news-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-wine);
  font-weight: 600;
  letter-spacing: 1px;
}

/* 12. Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-light), var(--color-gold));
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-item .timeline-dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--color-gold);
  border: 3px solid var(--color-cream);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-item .timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-wine);
  margin-bottom: 8px;
}

.timeline-item .timeline-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.timeline-item .timeline-desc {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* 13. Culture Cards */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.culture-card {
  text-align: center;
  padding: 48px 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201, 169, 97, 0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.culture-card:hover {
  border-color: rgba(201, 169, 97, 0.4);
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.culture-card .culture-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.culture-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.culture-card p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 14. Honor Grid */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.honor-item {
  background: var(--color-white);
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-cream-dark);
  transition: all var(--transition);
}

.honor-item:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.honor-item .honor-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.honor-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.honor-item p {
  font-size: 0.85rem;
  color: var(--color-gray);
}

/* 15. Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  text-align: center;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.team-card-image {
  height: 280px;
  overflow: hidden;
}

.team-card-body {
  padding: 24px;
}

.team-card-body h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-card-body .team-role {
  font-size: 0.85rem;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.team-card-body p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* 15.5 Subsidiary Companies */
.subsidiaries-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.subsidiaries-intro p {
  color: var(--color-gray);
  font-size: 1rem;
}

.subsidiaries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.subsidiary-card {
  background: var(--color-cream);
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: var(--radius-md);
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

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

.subsidiary-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-gold);
  color: var(--color-wine);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.subsidiary-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.1), rgba(139, 26, 26, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.subsidiary-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-ink);
}

.subsidiary-card p {
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* 16. Category Tabs */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  /* Allow horizontal scroll on very small screens */
  padding: 0 8px;
}

.category-tab {
  padding: 12px 24px;
  min-height: var(--touch-target-min);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-gray);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 1px;
  cursor: pointer;
  /* Prevent shrinking */
  flex-shrink: 0;
}

.category-tab:hover,
.category-tab:focus,
.category-tab.active {
  background: var(--color-wine);
  color: var(--color-cream);
  border-color: var(--color-wine);
}

/* 17. Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  height: 500px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.product-gallery-thumbs {
  display: flex;
  gap: 12px;
}

.product-gallery-thumbs .thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}

.product-gallery-thumbs .thumb.active,
.product-gallery-thumbs .thumb:hover {
  border-color: var(--color-gold);
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.product-info .product-series-label {
  font-size: 0.9rem;
  color: var(--color-gold);
  letter-spacing: 2px;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.product-specs {
  margin-bottom: 32px;
}

.product-specs table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs td {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-cream-dark);
  font-size: 0.95rem;
}

.product-specs td:first-child {
  color: var(--color-gray);
  width: 120px;
  font-weight: 500;
}

.product-specs td:last-child {
  color: var(--color-ink);
}

.product-description {
  margin-bottom: 32px;
}

.product-description h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.product-description p {
  font-size: 0.95rem;
  line-height: 2;
}

/* 18. News List */
.news-list-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--color-cream-dark);
  transition: all var(--transition);
}

.news-list-item:hover {
  padding-left: 12px;
}

.news-list-image {
  height: 200px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-list-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-list-content .news-date {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.news-list-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}

.news-list-item:hover h3 {
  color: var(--color-wine);
}

.news-list-content p {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list-content .news-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-wine);
  padding: 4px 12px;
  border: 1px solid var(--color-wine);
  border-radius: 2px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 1px solid var(--color-cream-dark);
}

.pagination a:hover, .pagination .active {
  background: var(--color-wine);
  color: var(--color-cream);
  border-color: var(--color-wine);
}

/* 19. Article */
.article-header {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-cream-dark);
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-body {
  max-width: 800px;
  margin: 0 auto;
}

.article-body p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 2;
  text-align: justify;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--color-gold);
}

.article-body blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--color-cream-dark);
  border-left: 3px solid var(--color-gold);
  font-style: italic;
  color: var(--color-ink-light);
}

/* 20. Process Flow */
.process-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  padding: 40px 0;
}

.process-flow::before {
  content: '';
  position: absolute;
  top: 72px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.process-step {
  text-align: center;
  flex: 1;
  position: relative;
  padding: 0 12px;
}

.process-step .step-number {
  width: 64px;
  height: 64px;
  background: var(--color-wine);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
  border: 3px solid var(--color-gold);
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--color-gray);
  line-height: 1.6;
}

/* 21. Strength Cards */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.strength-card {
  position: relative;
  height: 350px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.strength-card .strength-card-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transition: transform var(--transition-slow);
}

.strength-card:hover .strength-card-bg {
  transform: scale(1.05);
}

.strength-card .strength-card-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
  transition: background var(--transition);
}

.strength-card:hover .strength-card-overlay {
  background: linear-gradient(to top, rgba(139, 26, 26, 0.9) 0%, rgba(139, 26, 26, 0.4) 60%, rgba(0,0,0,0.2) 100%);
}

.strength-card .strength-card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
}

.strength-card .strength-card-content h3 {
  font-size: 1.3rem;
  color: var(--color-cream);
  margin-bottom: 8px;
}

.strength-card .strength-card-content p {
  font-size: 0.9rem;
  color: rgba(245, 239, 230, 0.7);
  line-height: 1.6;
}

/* 22. Job Listings */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-cream-dark);
  transition: all var(--transition);
}

.job-item:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.job-item-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.job-item-info .job-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--color-gray);
}

.job-item-info .job-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-item .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* 23. Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-info-card {
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-cream-dark);
  text-align: center;
  transition: all var(--transition);
}

.contact-info-card:hover {
  border-color: var(--color-gold);
}

.contact-info-card .contact-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-info-card h4 {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 6px;
  font-weight: 500;
}

.contact-info-card p {
  font-size: 0.95rem;
  color: var(--color-ink);
  font-weight: 500;
}

.map-placeholder {
  height: 280px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, #e8dfd0 0%, #d4c9b5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(201,169,97,0.15) 49.5%, rgba(201,169,97,0.15) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(201,169,97,0.15) 49.5%, rgba(201,169,97,0.15) 50.5%, transparent 50.5%);
  background-size: 40px 40px;
}

.map-placeholder .map-label {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-gray);
  letter-spacing: 2px;
  z-index: 2;
  background: rgba(245, 239, 230, 0.9);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
}

.contact-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-ink-light);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  min-height: var(--touch-target-min);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  font-size: 1rem; /* Prevent iOS zoom on focus */
  color: var(--color-ink);
  background: var(--color-cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Mobile form adjustments */
@media (max-width: 768px) {
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevent iOS auto-zoom */
  }
}

/* 24. Footer */
.site-footer {
  background: var(--color-ink);
  padding: 60px 0 0;
  /* iOS safe area bottom */
  padding-bottom: var(--safe-area-bottom);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.footer-brand .footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: 4px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(245, 239, 230, 0.5);
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-gold);
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-ink);
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--color-cream);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(245, 239, 230, 0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--color-gold);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: rgba(245, 239, 230, 0.5);
}

.footer-contact-item .fc-icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 239, 230, 0.35);
  letter-spacing: 1px;
}

.qr-placeholder {
  width: 100px;
  height: 100px;
  background: rgba(245, 239, 230, 0.1);
  border: 1px dashed rgba(201, 169, 97, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(245, 239, 230, 0.4);
  text-align: center;
}

/* 25. Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(0.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* 26. Quality */
.quality-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.quality-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-cream-dark);
  transition: all var(--transition);
}

.quality-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.quality-card .quality-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.quality-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.quality-card p {
  font-size: 0.9rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* 27. Back to top */
.back-to-top {
  position: fixed;
  bottom: calc(30px + var(--safe-area-bottom));
  right: 30px;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  background: var(--color-wine);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 900;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--color-wine-dark);
  transform: translateY(-3px);
}

/* 28. Related Products */
.related-products {
  margin-top: 80px;
}

/* 29. Responsive - Comprehensive Mobile Optimization */

/* ===== Tablet Landscape (1024px - 1366px) ===== */
@media (max-width: 1366px) {
  /* Intermediate tablet adjustments */
  .hero {
    min-height: 550px;
  }
}

/* ===== Tablet (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  /* Section spacing */
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }
  
  /* Header - show hamburger earlier */
  :root {
    --header-height: 72px;
  }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  /* Mobile nav controlled by .active class, not display:block */
  
  /* Brand stats - 2x2 grid */
  .brand-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item { padding: 36px 24px; }
  .stat-number { font-size: clamp(2rem, 3vw, 2.5rem); }
  
  /* Brand story */
  .brand-story { grid-template-columns: 1fr; gap: 40px; }
  .brand-story-image { height: 350px; }
  
  /* Products grid */
  .products-grid { 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 24px; 
  }
  .product-card-image { height: 280px; }
  
  /* News grid */
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  
  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .product-gallery-main { height: 400px; }
  
  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  
  /* Strength */
  .strength-grid { grid-template-columns: 1fr; }
  .strength-card { height: 280px; }
  
  /* Timeline - single column */
  .timeline::before { left: 20px; }
  .timeline-item { 
    width: 100%; 
    left: 0 !important; 
    text-align: left !important; 
    padding-left: 50px; 
    padding-right: 0; 
    padding-bottom: 40px;
  }
  .timeline-item .timeline-dot { left: 12px !important; right: auto !important; }
  .timeline-item .timeline-year { font-size: 1.25rem; }
  .timeline-item .timeline-title { font-size: 1rem; }
  
  /* Process flow - vertical layout */
  .process-flow { 
    flex-direction: column; 
    gap: 20px; 
    padding: 20px 0;
  }
  .process-flow::before { 
    display: none; 
  }
  .process-step { 
    flex: none;
    width: 100%; 
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    padding: 0;
  }
  .process-step .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .process-step h4 {
    margin-bottom: 4px;
  }
  .process-step p {
    font-size: 0.85rem;
  }
  /* Add vertical connector */
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 48px;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--color-gold), var(--color-gold-light));
  }
  
  /* Quality features */
  .quality-features { grid-template-columns: repeat(2, 1fr); }
  
  /* Culture grid */
  .culture-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  
  /* Team grid */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  
  /* Subsidiaries grid */
  .subsidiaries-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ===== Tablet Portrait / Large Mobile (max-width: 768px) ===== */
@media (max-width: 768px) {
  /* Header mobile */
  :root {
    --header-height: var(--header-height-mobile);
  }
  .header-inner { 
    padding: 0 16px; 
    height: var(--header-height-mobile);
  }
  .logo-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .logo-text-cn { font-size: 1.2rem; letter-spacing: 2px; }
  .logo-text-en, .logo-text small { font-size: 0.5rem; }
  
  /* Section spacing */
  .section { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2::after { width: 50px; margin-top: 12px; }
  
  /* Container padding */
  .container { padding: 0 20px; }
  
  /* Hero */
  .hero { 
    min-height: 480px; 
    max-height: 75vh;
  }
  .hero-content h1 { 
    letter-spacing: 3px; 
    margin-bottom: 16px;
  }
  .hero-content .hero-btns { 
    gap: 12px; 
    flex-direction: column;
  }
  .hero-content .hero-btns .btn {
    width: 100%;
    max-width: 240px;
  }
  .hero-scroll-hint { 
    bottom: calc(40px + var(--safe-area-bottom));
  }
  .hero-scroll-hint .scroll-line { height: 24px; }
  
  /* Page banner */
  .page-banner { 
    height: 280px; 
    max-height: 50vh;
  }
  .page-banner-content h1 { 
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 3px;
  }
  .page-banner-content .banner-en { 
    font-size: 0.75rem; 
    letter-spacing: 2px;
  }
  
  /* Brand stats */
  .stat-item { padding: 28px 16px; }
  .stat-number { font-size: 1.75rem; }
  .stat-label { font-size: 0.85rem; letter-spacing: 1px; }
  
  /* Products */
  .products-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }
  .product-card-image { height: 180px; }
  .product-card-body { padding: 16px; }
  .product-card-body h3 { font-size: 1rem; }
  .product-card-body .product-desc { font-size: 0.85rem; }
  
  /* Category tabs - scrollable */
  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 32px;
    padding: 0;
    gap: 6px;
  }
  .category-tabs::-webkit-scrollbar { display: none; }
  .category-tab { 
    padding: 10px 18px; 
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  /* News grid */
  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-card-image { height: 160px; }
  .news-card-body { padding: 18px; }
  
  /* News list */
  .news-list-item { 
    grid-template-columns: 1fr; 
    gap: 12px; 
    padding: 20px 0;
  }
  .news-list-image { height: 160px; }
  .news-list-content h3 { font-size: 1.1rem; }
  .news-list-content p { font-size: 0.9rem; }
  
  /* Culture grid */
  .culture-grid { grid-template-columns: 1fr; gap: 16px; }
  .culture-card { padding: 32px 20px; }
  
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand .footer-logo { font-size: 1.3rem; }
  .footer-social { gap: 8px; }
  .footer-social a { width: 36px; height: 36px; }
  .footer-bottom p { font-size: 0.75rem; }
  .qr-placeholder { width: 80px; height: 80px; }
  
  /* Contact */
  .contact-info-cards { grid-template-columns: 1fr; gap: 12px; }
  .contact-info-card { padding: 18px; }
  .contact-form { padding: 24px; }
  .map-placeholder { height: 200px; }
  
  /* Strength */
  .strength-card { height: 220px; }
  .strength-card-content { padding: 20px; }
  
  /* Quality features */
  .quality-features { grid-template-columns: 1fr; gap: 16px; }
  .quality-card { padding: 28px 20px; }
  
  /* Product gallery */
  .product-gallery-main { height: 280px; }
  .product-gallery-thumbs .thumb { width: 60px; height: 60px; }
  .product-info h1 { font-size: 1.5rem; }
  
  /* Job listings */
  .job-item { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 12px; 
    padding: 18px 20px;
  }
  .job-item-info h4 { font-size: 1rem; }
  .job-item-info .job-meta { 
    flex-wrap: wrap; 
    gap: 8px 12px;
    font-size: 0.8rem;
  }
  .job-item .btn { 
    width: 100%; 
    text-align: center;
  }
  
  /* Honor grid */
  .honor-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }
  .honor-item { padding: 20px 16px; }
  
  /* Team grid */
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .team-card-image { height: 200px; }
  .team-card-body { padding: 16px; }
  
  /* Subsidiaries */
  .subsidiaries-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .subsidiary-card { padding: 24px 16px 20px; }
  .subsidiary-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .subsidiary-badge { 
    top: 8px; 
    right: 8px; 
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  
  /* Timeline */
  .timeline-item { padding-bottom: 32px; }
  
  /* Article */
  .article-header { padding-bottom: 20px; margin-bottom: 20px; }
  .article-header h1 { font-size: 1.5rem; }
  .article-meta { 
    flex-wrap: wrap; 
    gap: 12px; 
    font-size: 0.8rem;
  }
  .article-body { padding: 0 4px; }
  .article-body p { font-size: 1rem; line-height: 1.9; }
  .article-body h2 { font-size: 1.25rem; margin: 28px 0 16px; }
}

/* ===== Mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
  /* Container */
  .container { padding: 0 16px; }
  
  /* Section spacing */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  
  /* Typography */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  p { font-size: 0.95rem; line-height: 1.75; }
  
  /* Header */
  .logo-text-cn { font-size: 1.1rem; }
  .logo-icon { width: 32px; height: 32px; font-size: 1rem; }
  
  /* Hero */
  .hero { 
    min-height: 420px;
    padding-top: calc(var(--header-height-mobile) + var(--safe-area-top) + 16px);
  }
  .hero-content { padding: 0 16px; }
  .hero-content h1 { font-size: 1.5rem; }
  .hero-content .hero-tag { font-size: 0.7rem; }
  .hero-content .hero-desc { 
    font-size: 0.9rem; 
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .hero-scroll-hint { display: none; /* Hide on very small screens */ }
  
  /* Page banner */
  .page-banner { height: 240px; }
  .page-banner-content h1 { font-size: 1.4rem; }
  
  /* Brand stats - keep 2x2 but smaller */
  .stat-item { padding: 20px 12px; }
  .stat-number { font-size: 1.5rem; }
  .stat-number span { font-size: 0.9rem; }
  .stat-label { font-size: 0.8rem; }
  
  /* Products - single column */
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card-image { height: 200px; }
  .product-card-body { padding: 14px; }
  .product-card-body .product-series { font-size: 0.75rem; }
  .product-card-body h3 { font-size: 0.95rem; }
  .product-card-body .product-desc { font-size: 0.85rem; }
  .product-card-body .product-meta { font-size: 0.75rem; gap: 10px; }
  
  /* Product placeholder text */
  .img-placeholder .placeholder-label { font-size: 0.75rem; }
  .img-placeholder .placeholder-icon { font-size: 2rem; }
  
  /* News */
  .news-card-image { height: 140px; }
  .news-card-body { padding: 14px; }
  .news-card-body h3 { font-size: 1rem; }
  .news-card-body p { font-size: 0.85rem; }
  
  /* Contact */
  .contact-form { padding: 20px; }
  .contact-info-card { padding: 14px; }
  .contact-info-card .contact-icon { font-size: 1.5rem; }
  .contact-info-card h4 { font-size: 0.85rem; }
  .contact-info-card p { font-size: 0.9rem; }
  .map-placeholder { height: 160px; }
  
  /* Strength */
  .strength-card { height: 180px; }
  .strength-card-content { padding: 16px; }
  .strength-card-content h3 { font-size: 1.1rem; }
  .strength-card-content p { font-size: 0.85rem; }
  
  /* Quality */
  .quality-card { padding: 20px 16px; }
  .quality-card .quality-icon { font-size: 2rem; }
  .quality-card h4 { font-size: 1rem; }
  .quality-card p { font-size: 0.85rem; }
  
  /* Team grid - single column */
  .team-grid { grid-template-columns: 1fr; }
  .team-card-image { height: 180px; }
  .team-card-body { padding: 14px; }
  .team-card-body h4 { font-size: 1rem; }
  .team-card-body .team-role { font-size: 0.8rem; }
  
  /* Subsidiaries - single column */
  .subsidiaries-grid { grid-template-columns: 1fr; }
  
  /* Honor grid - keep 2 columns */
  .honor-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .honor-item { padding: 16px 12px; }
  .honor-item .honor-icon { font-size: 1.5rem; }
  .honor-item h4 { font-size: 0.9rem; }
  .honor-item p { font-size: 0.8rem; }
  
  /* Process */
  .process-step .step-number { width: 40px; height: 40px; font-size: 1rem; }
  .process-step:not(:last-child)::after { height: 16px; left: 20px; top: 40px; }
  
  /* Footer */
  .footer-brand .footer-logo { font-size: 1.2rem; }
  .footer-col h4 { font-size: 0.95rem; margin-bottom: 16px; }
  .footer-col ul li a { font-size: 0.85rem; }
  .footer-contact-item { font-size: 0.85rem; }
  
  /* Back to top */
  .back-to-top { 
    right: 16px; 
    bottom: calc(20px + var(--safe-area-bottom));
    width: 40px;
    height: 40px;
  }
  
  /* Article */
  .article-header h1 { font-size: 1.3rem; }
  .article-body p { font-size: 0.95rem; }
}

/* ===== Landscape Orientation (max-height: 500px) ===== */
@media (orientation: landscape) and (max-height: 500px) {
  /* Hero - reduced height for landscape */
  .hero {
    min-height: auto;
    height: auto;
    max-height: 100vh;
    padding-top: calc(var(--header-height-mobile) + var(--safe-area-top) + 24px);
    padding-bottom: calc(var(--safe-area-bottom) + 24px);
  }
  .hero-content { padding: 16px; }
  .hero-content h1 { 
    font-size: clamp(1.25rem, 3vh, 2rem); 
    margin-bottom: 8px;
  }
  .hero-content .hero-tag { font-size: 0.7rem; margin-bottom: 8px; }
  .hero-content .hero-divider { margin-bottom: 8px; }
  .hero-content .hero-desc { 
    font-size: 0.85rem; 
    margin-bottom: 16px;
    max-width: 60vw;
  }
  .hero-content .hero-btns {
    flex-direction: row;
    gap: 12px;
  }
  .hero-scroll-hint { display: none; }
  
  /* Page banner */
  .page-banner {
    height: auto;
    min-height: 180px;
    padding-top: calc(var(--header-height) + var(--safe-area-top) + 20px);
  }
  
  /* Mobile nav - landscape: 保持右侧抽屉，内容从顶部开始 */
  .mobile-nav {
    flex-direction: column;      /* ← 横屏仍保持纵向排列 */
    flex-wrap: nowrap;
    justify-content: flex-start; /* ← 从顶部开始，不居中 */
    align-items: stretch;
    padding: calc(var(--header-height-mobile) + 20px) 0 20px 0;
    gap: 0;
  }
  .mobile-nav a {
    padding: 8px 20px;
    font-size: 1rem;
  }
}

/* ===== Touch device optimizations ===== */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover effects that don't work on touch */
  .product-card:hover { transform: none; }
  .news-card:hover { transform: none; }
  .team-card:hover { transform: none; }
  .strength-card:hover .strength-card-bg { transform: none; }
  .job-item:hover { transform: none; padding-left: 0; }
  .news-list-item:hover { padding-left: 0; }
  
  /* Add active states for touch feedback */
  .btn:active {
    transform: scale(0.98);
  }
  .category-tab:active {
    background: var(--color-cream-dark);
  }
  .mobile-nav a:active {
    background: rgba(201, 169, 97, 0.1);
  }
}

/* ===== Reduced motion (performance) ===== */
@media (prefers-reduced-motion: reduce) {
  /* Disable animations for users who prefer reduced motion */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
  
  .hero-content .hero-tag,
  .hero-content h1,
  .hero-content .hero-divider,
  .hero-content .hero-desc,
  .hero-content .hero-btns,
  .hero-scroll-hint {
    opacity: 1;
    animation: none;
  }
}

/* ===== Performance: Disable heavy animations on mobile ===== */
@media (max-width: 768px) {
  /* Simplify reveal animations */
  .reveal {
    opacity: 0;
    transform: translateY(15px);
    transition-duration: 0.4s;
  }
  
  /* Disable background-attachment: fixed (causes jank on mobile) */
  .hero-bg,
  .page-banner-bg {
    background-attachment: scroll;
  }
}

/* ===== Print styles ===== */
@media print {
  .site-header,
  .hero-scroll-hint,
  .back-to-top,
  .hamburger,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    height: auto;
  }
  
  .section {
    padding: 20px 0;
  }
}
