/* ============================================
   JIACHEN TEXTILE — Refined Atelier Design
   ============================================ */

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core — refined warm ivory + deep charcoal */
  --c-bg: #FBFAF7;
  --c-bg-alt: #F2EFE9;
  --c-bg-deep: #E8E2D8;
  --c-text: #1C1B1A;
  --c-text-mid: #5A5653;
  --c-text-light: #8C8782;
  --c-text-lighter: #B5B0AA;
  /* Accent — aged brass / warm gold */
  --c-accent: #8B7355;
  --c-accent-light: #C4A882;
  --c-accent-hover: #6B5A42;
  --c-accent-pale: rgba(139,115,85,0.08);
  --c-accent-glow: rgba(196,168,130,0.25);
  /* Borders & surfaces */
  --c-border: #E0DBD3;
  --c-border-light: #EBE7E0;
  --c-shadow: rgba(28,27,26,0.06);
  --c-shadow-lg: rgba(28,27,26,0.10);
  --c-overlay: rgba(28,27,26,0.45);
  /* Typography */
  --font-display: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1260px;
  /* Spacing rhythm */
  --sp-xs: 0.25rem; --sp-sm: 0.5rem; --sp-md: 1rem;
  --sp-lg: 1.5rem; --sp-xl: 2.5rem; --sp-2xl: 4rem; --sp-3xl: 6rem;
  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body); color: var(--c-text);
  background: var(--c-bg); line-height: 1.7;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; font-size: inherit; }

/* selection */
::selection { background: var(--c-accent-pale); color: var(--c-accent); }

/* ========== TYPOGRAPHY ========== */
h1 { font-family: var(--font-display); font-size: clamp(2.8rem, 5.5vw, 4.2rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; line-height: 1.18; }
h3 { font-size: 1.15rem; font-weight: 500; line-height: 1.5; }
h4 { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--c-text-mid); }
p { color: var(--c-text-mid); line-height: 1.75; }
p + p { margin-top: 0.8em; }

.section-label {
  display: inline-block; font-family: var(--font-display);
  font-size: 0.78rem; letter-spacing: 0.18em; color: var(--c-accent);
  text-transform: uppercase; margin-bottom: 0.6rem;
  position: relative; padding-left: 2.5rem;
}
.section-label::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 1.8rem; height: 1px; background: var(--c-accent-light);
}
.section-title { margin-bottom: 0.6rem; }
.section-more { margin-top: 3.5rem; text-align: center; }

.link-arrow {
  font-size: 0.9rem; color: var(--c-accent);
  border-bottom: 1px solid var(--c-accent-light);
  padding-bottom: 3px; transition: all 0.3s var(--ease-out-expo);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.link-arrow::after { content: '→'; transition: transform 0.3s var(--ease-out-expo); }
.link-arrow:hover { border-color: var(--c-accent); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ========== LAYOUT ========== */
.section { max-width: var(--max-width); margin: 0 auto; padding: 6rem 2rem 0; }
.section-sm { padding-top: 3.5rem; padding-bottom: 3.5rem; }

.page { display: none; }
.page.active { display: block; }

/* ========== TOP BAR ========== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  background: rgba(28,27,26,0.92); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.4s var(--ease-out-expo);
}
.topbar.hidden { transform: translateY(-100%); }
.topbar-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.35rem 3rem;
}
.topbar-text { font-size: 0.7rem; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; }

/* ========== NAVIGATION ========== */
.nav {
  position: fixed; top: 28px; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo), top 0.4s var(--ease-out-expo);
}
.nav.scrolled { background: rgba(251,250,247,0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--c-border); }
.nav.top { top: 0; }

.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 3rem;
}
.nav.scrolled .nav-inner { padding: 0.75rem 3rem; }

.nav-logo {
  display: flex; flex-direction: column; line-height: 1.15;
  color: rgba(255,255,255,0.88); transition: color 0.4s var(--ease-out-expo);
}
.nav.scrolled .nav-logo, .nav.top .nav-logo { color: var(--c-text); }
.nav-logo-ch { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.05em; }
.nav-logo-en {
  font-family: var(--font-display); font-size: 0.58rem; letter-spacing: 0.22em;
  text-transform: uppercase; opacity: 0.45;
}

.nav-links { display: flex; align-items: center; gap: 0; }
.nav-group { display: flex; align-items: center; gap: 0.2rem; position: relative; }

.nav-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.7);
  padding: 0.35rem 0.75rem; letter-spacing: 0.03em;
  transition: color 0.3s var(--ease-out-expo); white-space: nowrap;
  position: relative;
}
.nav.scrolled .nav-links a, .nav.top .nav-links a { color: var(--c-text-mid); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0.75rem; right: 0.75rem;
  height: 1px; background: var(--c-accent-light); transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--c-accent); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active {
  color: var(--c-accent) !important;
}
.nav-links a.active::after { transform: scaleX(1); background: var(--c-accent); }

.nav-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.15); margin: 0 0.5rem; }
.nav.scrolled .nav-sep, .nav.top .nav-sep { background: var(--c-border); }

.nav-cta {
  color: var(--c-accent-light) !important; font-weight: 500;
}
.nav.scrolled .nav-cta, .nav.top .nav-cta { color: var(--c-accent) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; position: relative; z-index: 101; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: rgba(255,255,255,0.8); transition: all 0.3s var(--ease-out-expo); }
.nav.scrolled .nav-toggle span, .nav.top .nav-toggle span { background: var(--c-text); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }

/* ========== MOBILE MENU ========== */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 102;
  background: rgba(251,250,247,0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  padding-top: 6rem;
}
.mobile-menu.open { display: block; }
.mobile-menu-close {
  display: none; position: absolute; top: 1rem; right: 1rem; z-index: 103;
  font-size: 2rem; color: var(--c-text); background: none; border: none;
  cursor: pointer; width: 44px; height: 44px; line-height: 44px; text-align: center;
}
@media (max-width: 768px) { .mobile-menu-close { display: block; } }
.mobile-menu-inner { max-width: 400px; margin: 0 auto; padding: 2rem; }
.mobile-menu-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--c-text-lighter); margin: 1.5rem 0 0.75rem;
}
.mobile-menu-label:first-child { margin-top: 0; }
.mobile-menu a {
  display: block; font-size: 1.2rem; color: var(--c-text);
  padding: 0.6rem 0; border-bottom: 1px solid var(--c-border-light);
  transition: color 0.2s;
}
.mobile-menu-main { font-family: var(--font-display); font-size: 1.5rem !important; font-weight: 500; }
.mobile-menu a:hover { color: var(--c-accent); }

/* ========== HERO ========== */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; animation: heroKenBurns 12s ease-in-out infinite alternate; }
@keyframes heroKenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}
.hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(28,27,26,0.15) 0%,
    rgba(28,27,26,0.35) 50%,
    rgba(28,27,26,0.6) 100%);
}
.hero-text {
  position: absolute; bottom: 14%; left: 3rem; right: 3rem; z-index: 2; color: white;
  max-width: 720px;
}
.hero-tag {
  font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.22em;
  margin-bottom: 1.2rem; opacity: 0.85; text-transform: uppercase;
}
.hero-text h1 { color: white; margin-bottom: 0.8rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero-sub { color: rgba(255,255,255,0.72); font-size: 1rem; margin-bottom: 2rem; max-width: 520px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-dots { position: absolute; bottom: 2rem; right: 3rem; z-index: 2; display: flex; gap: 0.6rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: all 0.3s var(--ease-out-expo); cursor: pointer; }
.dot:hover { background: rgba(255,255,255,0.7); }
.dot.active { background: white; transform: scale(1.3); box-shadow: 0 0 8px rgba(255,255,255,0.3); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-block; padding: 0.75rem 2rem; font-size: 0.85rem; color: var(--c-text);
  background: white; cursor: pointer; letter-spacing: 0.04em;
  transition: all 0.35s var(--ease-out-expo);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.03);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out-expo);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { box-shadow: 0 4px 20px var(--c-shadow-lg); }
.btn-outline {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); color: white; }

/* ========== FEATURES STRIP ========== */
.features-strip {
  max-width: var(--max-width); margin: 0 auto; padding: 3rem 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-bottom: 1px solid var(--c-border);
}
.feature {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.5rem 0;
}
.feature-num { font-family: var(--font-display); font-size: 2.2rem; color: var(--c-accent); margin-bottom: 0.2rem; line-height: 1; }
.feature span:last-child { font-size: 0.85rem; color: var(--c-text-mid); }

/* ========== PRODUCT LINES (Homepage) ========== */
.section-desc { font-size: 1rem; color: var(--c-text-mid); margin-bottom: 2.5rem; max-width: 600px; }
.product-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pl-card {
  text-decoration: none; color: inherit; display: block;
  background: var(--c-bg); overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  box-shadow: 0 1px 0 var(--c-border), 0 4px 20px var(--c-shadow);
}
.pl-card:hover { transform: translateY(-6px); box-shadow: 0 2px 0 var(--c-accent-light), 0 12px 32px var(--c-shadow-lg); }
.pl-card-img {
  width: 100%; aspect-ratio: 4/3; background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease-out-expo);
}
.pl-card:hover .pl-card-img { transform: scale(1.04); }
.pl-card-body { padding: 2rem 1.75rem; }
.pl-card-body h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.4rem; }
.pl-card-body p { font-size: 0.85rem; color: var(--c-text-mid); margin-bottom: 1rem; }
.pl-card-link { font-size: 0.82rem; color: var(--c-accent); border-bottom: 1px solid var(--c-accent-light); padding-bottom: 2px; transition: all 0.3s; }
.pl-card:hover .pl-card-link { border-color: var(--c-accent); }

/* ========== PRODUCT GRID ========== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 2.5rem; }
.product-card { cursor: pointer; background: var(--c-bg); overflow: hidden; transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo); box-shadow: 0 1px 0 var(--c-border-light); }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 2px 0 var(--c-accent-light), 0 8px 28px var(--c-shadow-lg); }
.product-card-img {
  aspect-ratio: 4/3; overflow: hidden; background: var(--c-bg-alt);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }
.product-card-info { padding: 1rem 0; }
.product-card-code { font-size: 0.75rem; color: var(--c-accent); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.2rem; }
.product-card-name { font-size: 1rem; color: var(--c-text); font-weight: 500; }

/* ========== PAGE HERO ========== */
.page-hero { position: relative; height: 50vh; min-height: 360px; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,27,26,0.35) 0%, rgba(28,27,26,0.55) 100%); }
.page-hero-text {
  position: absolute; bottom: 3rem; left: 3rem; right: 3rem; z-index: 2;
  max-width: 600px;
}
.page-hero-text h1 { color: white; }
.page-hero-text .hero-sub { color: rgba(255,255,255,0.65); margin-bottom: 0; }
.page-hero-text .hero-tag { color: rgba(255,255,255,0.6); }

/* ========== FILTER BAR ========== */
.filter-bar { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.45rem 1.25rem; font-size: 0.82rem; color: var(--c-text-mid);
  background: none; border: 1px solid transparent; cursor: pointer;
  transition: all 0.25s var(--ease-out-expo); letter-spacing: 0.02em;
}
.filter-btn:hover { color: var(--c-text); border-color: var(--c-border); }
.filter-btn.active { color: var(--c-accent); border-color: var(--c-accent-light); background: var(--c-accent-pale); }

/* ========== SEARCH ========== */
.search-box { margin-bottom: 2rem; }
.search-box input {
  width: 100%; max-width: 320px; padding: 0.65rem 1rem; font-size: 0.85rem;
  border: 1px solid var(--c-border); background: var(--c-bg);
  outline: none; transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.search-box input:focus { border-color: var(--c-accent-light); box-shadow: 0 0 0 3px var(--c-accent-pale); }
.search-box input::placeholder { color: var(--c-text-lighter); }

/* ========== FAQ ========== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--c-border-light); }
.faq-question {
  width: 100%; padding: 1.5rem 0; display: flex; justify-content: space-between;
  align-items: center; background: none; font-size: 1rem; color: var(--c-text);
  text-align: left; cursor: pointer; transition: color 0.3s var(--ease-out-expo);
}
.faq-question:hover { color: var(--c-accent); }
.faq-icon { font-size: 1.2rem; color: var(--c-accent-light); transition: transform 0.35s var(--ease-spring); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out-expo);
  color: var(--c-text-mid); line-height: 1.8;
}
.faq-answer-inner { padding-bottom: 1.5rem; }

/* ========== MODAL ========== */
.modal { display: none; position: fixed; inset: 0; z-index: 200; }
.modal.open { display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,27,26,0.65); backdrop-filter: blur(4px); }
.modal-content {
  position: relative; background: var(--c-bg); max-width: 960px; width: 92vw;
  max-height: 90vh; display: flex; flex-direction: column; z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-sm { max-width: 640px; }
.modal-close {
  position: absolute; top: 0.5rem; right: 0.5rem; z-index: 3;
  font-size: 1.8rem; color: var(--c-text); background: rgba(251,250,247,0.95);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.modal-close:hover { color: var(--c-accent); }
.modal-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  overflow-y: auto; flex: 1; min-height: 0;
}
.modal-sm .modal-body { grid-template-columns: 1fr; }
.modal-gallery {
  padding: 2rem; display: flex; flex-direction: column;
  border-right: 1px solid var(--c-border-light);
  overflow-y: auto; max-height: 90vh;
}
.modal-gallery .modal-main-img-wrap {
  background: var(--c-bg-alt); display: flex; align-items: center;
  justify-content: center; min-height: 280px; cursor: zoom-in;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.modal-main-img-wrap::after { content: '点击放大'; position: absolute; bottom: 10px; right: 10px; font-size: 0.62rem; color: var(--c-text-light); background: rgba(251,250,247,0.9); padding: 3px 10px; pointer-events: none; transition: opacity 0.3s; }
.modal-main-img-wrap:hover::after { opacity: 0; }
.modal-main-img { width: 100%; height: auto; max-height: 50vh; object-fit: contain; transition: transform 0.4s var(--ease-out-expo); }
.modal-main-img-wrap:hover .modal-main-img { transform: scale(1.02); }
.modal-thumbs-wrap {
  margin-top: 0.75rem; flex-shrink: 0;
}
.modal-thumbs {
  display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 6px;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
}
.modal-thumbs::-webkit-scrollbar { height: 4px; }
.modal-thumbs::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }
.modal-thumb { width: 56px; height: 56px; object-fit: cover; cursor: pointer; opacity: 0.45; border: 2px solid transparent; transition: all 0.2s var(--ease-out-expo); flex-shrink: 0; }
.modal-thumb.active, .modal-thumb:hover { opacity: 1; border-color: var(--c-accent); }
.modal-info {
  padding: 2rem; overflow-y: auto; max-height: 90vh;
}
.modal-code { font-size: 0.78rem; color: var(--c-accent); letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.modal-info h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 1.5rem; word-break: break-word; }
.modal-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.modal-spec { padding: 0.6rem 0; border-bottom: 1px solid var(--c-border-light); }
.modal-spec-label { font-size: 0.72rem; color: var(--c-text-light); letter-spacing: 0.04em; }
.modal-spec-value { font-size: 0.9rem; margin-top: 0.15rem; }
.modal-desc { color: var(--c-text-mid); font-size: 0.88rem; line-height: 1.8; margin-bottom: 1rem; }
.modal-reports { margin: 1rem 0; padding: 1rem; background: var(--c-bg-alt); display: none; }
.modal-reports::before { content: '检测报告'; display: block; font-size: 0.72rem; color: var(--c-text-light); margin-bottom: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; }
.modal-report-link { display: inline-block; margin: 0.25rem 0.5rem 0.25rem 0; padding: 0.35rem 0.75rem; background: var(--c-bg); border: 1px solid var(--c-border); font-size: 0.8rem; color: var(--c-accent); text-decoration: none; transition: all 0.2s var(--ease-out-expo); }
.modal-report-link:hover { background: var(--c-accent); color: white; border-color: var(--c-accent); }
.modal-share {
  margin-top: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--c-text-mid);
}
.modal-share-btn {
  padding: 0.4rem 0.9rem; font-size: 0.78rem; color: var(--c-accent);
  background: none; border: 1px solid var(--c-accent-light); cursor: pointer;
  transition: all 0.2s var(--ease-out-expo); letter-spacing: 0.03em;
}
.modal-share-btn:hover { background: var(--c-accent); color: white; border-color: var(--c-accent); }
.pattern-modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1.5rem; }
.pattern-modal-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ========== ABOUT HERO ========== */
.about-hero { position: relative; height: 65vh; min-height: 420px; overflow: hidden; }
.about-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; animation: heroZoom 25s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.about-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,27,26,0.2) 0%, rgba(28,27,26,0.5) 60%, rgba(28,27,26,0.65) 100%); }
.about-hero-content { position: absolute; bottom: 14%; left: 3rem; right: 3rem; max-width: 720px; z-index: 2; }
.about-hero-content h1 { color: white; margin-bottom: 1rem; }
.about-hero-sub { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 500px; }

/* ========== ABOUT STORY ========== */
.about-story { display: grid; grid-template-columns: 1fr 280px; gap: 5rem; align-items: start; }
.about-story-text p { font-size: 0.95rem; max-width: 580px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.about-stat { padding: 2rem 1.25rem; background: var(--c-bg-alt); text-align: center; transition: transform 0.3s var(--ease-out-expo); }
.about-stat:hover { transform: translateY(-3px); }
.about-stat-num { display: block; font-family: var(--font-display); font-size: 3rem; color: var(--c-accent); line-height: 1.05; margin-bottom: 0.4rem; }
.about-stat-label { font-size: 0.82rem; color: var(--c-text-mid); }

/* ========== ABOUT VALUES ========== */
.section-bg { background: var(--c-bg-alt); padding-bottom: 6rem; padding-top: 6rem; max-width: none; }
.section-bg .about-values { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.about-value { padding: 2.5rem 2rem; background: var(--c-bg); transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo); box-shadow: 0 1px 0 var(--c-border); }
.about-value:hover { transform: translateY(-4px); box-shadow: 0 8px 24px var(--c-shadow-lg); }
.about-value-icon { font-size: 1.6rem; color: var(--c-accent-light); margin-bottom: 1.25rem; }
.about-value h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.6rem; }
.about-value p { font-size: 0.88rem; }

/* ========== CONTACT NEW ========== */
.contact-grid-new { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; }
.contact-card-new { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--c-border-light); }
.contact-icon { font-size: 1.3rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--c-bg-alt); flex-shrink: 0; color: var(--c-accent); }
.contact-detail { display: flex; flex-direction: column; gap: 0.15rem; }
.contact-detail-label { font-size: 0.7rem; color: var(--c-text-light); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-detail-value { font-size: 0.95rem; color: var(--c-text); }
.contact-quick-info { margin-top: 2rem; padding: 1.5rem; background: var(--c-bg-alt); }
.contact-quick-info p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.contact-quick-info p:last-child { margin-bottom: 0; }
.contact-quick-info strong { color: var(--c-text); font-weight: 500; }

.contact-form-new input, .contact-form-new textarea {
  width: 100%; padding: 0.85rem 1.1rem; font-size: 0.85rem;
  border: 1px solid var(--c-border); background: var(--c-bg);
  outline: none; transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo); margin-bottom: 1rem;
}
.contact-form-new input:focus, .contact-form-new textarea:focus { border-color: var(--c-accent-light); box-shadow: 0 0 0 3px var(--c-accent-pale); }
.contact-form-new input::placeholder, .contact-form-new textarea::placeholder { color: var(--c-text-lighter); }

.btn-accent {
  background: var(--c-accent); color: white; border: none;
  padding: 0.85rem 2.5rem; font-size: 0.85rem; letter-spacing: 0.06em;
  transition: background 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo); cursor: pointer;
}
.btn-accent:hover { background: var(--c-accent-hover); transform: translateY(-1px); }

/* ========== GALLERY HERO ========== */
.gallery-hero { position: relative; height: 55vh; min-height: 360px; overflow: hidden; }
.gallery-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.gallery-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,27,26,0.25) 0%, rgba(28,27,26,0.5) 100%); }
.gallery-hero-content { position: absolute; bottom: 14%; left: 3rem; right: 3rem; max-width: 700px; z-index: 2; }
.gallery-hero-content h1 { color: white; margin-bottom: 1rem; }

/* ========== GALLERY FILTERS ========== */
.gallery-filters { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 3rem; }
.gallery-filter {
  padding: 0.5rem 1.25rem; font-size: 0.82rem; color: var(--c-text-mid);
  background: none; border: 1px solid transparent; cursor: pointer;
  transition: all 0.25s var(--ease-out-expo); letter-spacing: 0.03em;
}
.gallery-filter:hover { color: var(--c-text); border-color: var(--c-border); }
.gallery-filter.active { color: var(--c-accent); border-color: var(--c-accent-light); background: var(--c-accent-pale); }

/* ========== GALLERY GRID ========== */
.gallery-grid { columns: 3; column-gap: 1rem; }

/* ========== GALLERY ITEMS ========== */
.gallery-item {
  break-inside: avoid; margin-bottom: 1rem; overflow: hidden;
  position: relative; cursor: pointer; display: block;
  transition: transform 0.5s var(--ease-out-expo);
}
.gallery-item:hover { transform: translateY(-3px); }
.gallery-item-img {
  width: 100%; display: block;
  transition: transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
  filter: brightness(0.92);
}
.gallery-item:hover .gallery-item-img { transform: scale(1.03); filter: brightness(1.08); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,27,26,0.55) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease-out-expo);
  display: flex; align-items: flex-end; padding: 1.5rem;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-name { color: white; font-size: 1rem; font-weight: 500; letter-spacing: 0.02em; }

/* ========== GALLERY PAGINATION ========== */
.gallery-pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin-top: 3rem; flex-wrap: wrap; }
.gallery-page-btn {
  min-width: 2.4rem; height: 2.4rem; padding: 0 0.6rem;
  border: 1px solid var(--c-border); background: var(--c-bg);
  font-size: 0.82rem; color: var(--c-text-mid); cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}
.gallery-page-btn:hover { border-color: var(--c-accent-light); color: var(--c-accent); background: var(--c-accent-pale); }
.gallery-page-btn.active { background: var(--c-accent); color: white; border-color: var(--c-accent); }
.gallery-page-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.gallery-page-ellipsis { padding: 0 0.2rem; color: var(--c-text-lighter); font-size: 0.85rem; }

/* ========== LIGHTBOX ========== */
.gallery-lightbox {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(28,27,26,0.97);
  align-items: center; justify-content: center;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox-bg { position: absolute; inset: 0; }
.gallery-lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem; z-index: 2;
  font-size: 2.5rem; color: rgba(255,255,255,0.5); background: none; border: none; cursor: pointer;
  transition: color 0.3s;
}
.gallery-lightbox-close:hover { color: white; }
.gallery-lightbox-prev, .gallery-lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  font-size: 3rem; color: rgba(255,255,255,0.35); background: none; border: none; cursor: pointer;
  transition: color 0.3s; padding: 1rem;
}
.gallery-lightbox-prev:hover, .gallery-lightbox-next:hover { color: white; }
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }
.gallery-lightbox-content { position: relative; z-index: 1; max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
.gallery-lightbox-img { max-width: 90vw; max-height: 70vh; object-fit: contain; }
.gallery-lightbox-info { text-align: center; padding: 1.5rem 0; }
.lightbox-counter { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
#lightboxName { color: white; font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }

/* ========== IMAGE ZOOM OVERLAY ========== */
.img-zoom-overlay {
  display: none; position: fixed; inset: 0; z-index: 400;
  background: rgba(28,27,26,0.96); align-items: center; justify-content: center;
}
.img-zoom-overlay.open { display: flex; }
.img-zoom-close {
  position: absolute; top: 1.5rem; right: 2rem; z-index: 2;
  font-size: 2.5rem; color: rgba(255,255,255,0.5); background: none; border: none; cursor: pointer;
  transition: color 0.3s;
}
.img-zoom-close:hover { color: white; }
.img-zoom-prev, .img-zoom-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  font-size: 3rem; color: rgba(255,255,255,0.35); background: none; border: none; cursor: pointer;
  padding: 1rem; transition: color 0.3s;
}
.img-zoom-prev:hover, .img-zoom-next:hover { color: white; }
.img-zoom-prev { left: 1rem; }
.img-zoom-next { right: 1rem; }
.img-zoom-content { max-width: 92vw; max-height: 90vh; object-fit: contain; cursor: default; z-index: 1; }

/* ========== LOAD MORE ========== */
.load-more { text-align: center; margin-top: 3rem; }
.load-more .btn { background: var(--c-bg); color: var(--c-text-mid); border: 1px solid var(--c-border); padding: 0.65rem 2rem; font-size: 0.85rem; }
.load-more .btn:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ========== FOOTER ========== */
.footer { background: #1C1B1A; color: rgba(255,255,255,0.42); padding: 5rem 2rem 2rem; margin-top: 7rem; }
.footer-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 3rem; }
.footer-col h4 { color: rgba(255,255,255,0.6); font-size: 0.72rem; margin-bottom: 1.5rem; letter-spacing: 0.14em; }
.footer-col p { color: rgba(255,255,255,0.35); font-size: 0.82rem; margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.35); font-size: 0.82rem; display: block; margin-bottom: 0.5rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--c-accent-light); }
.footer-bottom { max-width: var(--max-width); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom p { color: rgba(255,255,255,0.2); font-size: 0.78rem; }

/* ========== RESPONSIVE: iPad / Small Desktop ========== */
/* ========================================
   RESPONSIVE: Desktop — fluid typography
   ======================================== */
@media (max-width: 1024px) {
  .nav-inner { padding: 1rem 1.5rem !important; }
  .nav-links a { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
  .nav-sep { margin: 0 0.25rem; }
  .nav-logo-ch { font-size: 1.15rem; }
  .hero { height: 70vh; }
  .hero-text { left: 2rem; right: 2rem; bottom: 10%; }
  .hero-tag { font-size: clamp(0.68rem, 1vw, 0.8rem); }
  .page-hero { height: 40vh; min-height: 300px; }
  .page-hero-text { left: 2rem; right: 2rem; bottom: 2rem; }
  .features-strip { grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; padding: 2.5rem 1.5rem; }
  .feature-num { font-size: 1.6rem; }
  .product-lines { grid-template-columns: 1fr; gap: 1rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .about-story { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { grid-template-columns: repeat(4, 1fr); }
  .about-stat { padding: 1.5rem 1rem; }
  .about-stat-num { font-size: 2.2rem; }
  .about-values { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-grid-new { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { columns: 2; }
  .gallery-hero { height: 40vh; min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* ========================================
   RESPONSIVE: iPad Portrait — modal stacks
   ======================================== */
@media (max-width: 900px) {
  /* Modal: switch to single-column, image-forward layout */
  .modal-content { width: 94vw; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-close { top: 0.5rem; right: 0.5rem; width: 40px; height: 40px; font-size: 1.6rem; }

  /* Gallery: full-width, taller image for textile viewing */
  .modal-gallery {
    border-right: none; border-bottom: 1px solid var(--c-border-light);
    max-height: none; overflow-y: visible;
    padding: 1.5rem 1.5rem 1rem;
  }
  .modal-gallery .modal-main-img-wrap { min-height: 340px; }
  .modal-main-img { max-height: 55vh; }
  .modal-thumbs-wrap { margin-top: 0.75rem; }
  .modal-thumb { width: 58px; height: 58px; }
  .modal-main-img-wrap::after { font-size: 0.7rem; padding: 4px 12px; }

  /* Info: full-width, generous spacing, single-col specs */
  .modal-info {
    padding: 1.75rem 1.5rem 2rem;
    max-height: none;
  }
  .modal-info h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.25rem; }
  .modal-specs { grid-template-columns: 1fr; gap: 0rem; margin-bottom: 1.25rem; }
  .modal-spec { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.7rem 0; }
  .modal-spec-label { font-size: 0.8rem; font-weight: 500; color: var(--c-accent); min-width: 3.5rem; flex-shrink: 0; }
  .modal-spec-value { font-size: 0.95rem; }
  .modal-desc { font-size: 0.92rem; line-height: 1.85; }
  .modal-share { font-size: 0.85rem; }
  .modal-share-btn { padding: 0.5rem 1rem; font-size: 0.82rem; }

  /* Product cards: 2 cols, larger text */
  .product-card-name { font-size: clamp(0.9rem, 2.5vw, 1.05rem); }
  .product-card-code { font-size: clamp(0.7rem, 1.8vw, 0.78rem); }
  .product-card-info { padding: 0.9rem 0; }

  /* Filter pills: more breathing room */
  .filter-bar { gap: 0.4rem; }
  .filter-btn { padding: 0.45rem 1rem; font-size: 0.82rem; }
}

/* ========================================
   RESPONSIVE: Tablet / Large Phone
   ======================================== */
@media (max-width: 768px) {
  .topbar { display: none; }
  .nav { top: 0; }
  .nav.scrolled .nav-inner { padding: 0.7rem 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo-ch { font-size: 1.1rem; }
  .nav-logo-en { font-size: 0.5rem; }
  .hero { height: 60vh; }
  .hero-text { left: 1.5rem; right: 1.5rem; bottom: 12%; }
  .hero-text h1 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-sub { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .hero-cta { flex-direction: column; gap: 0.5rem; }
  .hero-cta .btn { text-align: center; }
  .hero-dots { bottom: 1rem; right: 1.5rem; }
  .page-hero { height: 35vh; min-height: 260px; }
  .page-hero-text { left: 1.5rem; right: 1.5rem; }
  .section { padding: 4rem 1.5rem 0; }
  .section-bg { padding-top: 3rem; padding-bottom: 3rem; }
  .features-strip { padding: 2rem 1rem; gap: 1rem; }
  .feature-num { font-size: 1.5rem; }
  .feature { font-size: 0.8rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .product-card-info { padding: 0.8rem 0; }
  .product-card-name { font-size: 0.88rem; }
  .product-card-code { font-size: 0.72rem; }
  .filter-bar { gap: 0.4rem; }
  .filter-btn { padding: 0.5rem 1.05rem; font-size: 0.82rem; }
  .search-box input { max-width: 100%; font-size: 0.9rem; }
  .about-hero { height: 50vh; min-height: 320px; }
  .about-hero-content { left: 1.5rem; right: 1.5rem; bottom: 8%; }
  .about-hero-content h1 { font-size: clamp(1.8rem, 7vw, 3rem); }
  .about-hero-sub { font-size: 0.85rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stat-num { font-size: 2.2rem; }
  .about-stat { padding: 1.25rem 1rem; }
  .about-value { padding: 2rem 1.5rem; }
  .contact-card-new { padding: 1rem 0; }
  .contact-icon { width: 36px; height: 36px; font-size: 1.2rem; }
  .contact-form-new input, .contact-form-new textarea { padding: 0.7rem 1rem; font-size: 0.85rem; }
  .btn-accent { width: 100%; padding: 0.8rem; font-size: 0.85rem; }
  .gallery-grid { columns: 2; column-gap: 0.5rem; }
  .gallery-item { margin-bottom: 0.5rem; }
  .gallery-filters { gap: 0.35rem; margin-bottom: 2rem; }
  .gallery-filter { padding: 0.4rem 1rem; font-size: 0.78rem; }
  .gallery-lightbox-prev { left: 0.25rem; font-size: 2rem; }
  .gallery-lightbox-next { right: 0.25rem; font-size: 2rem; }
  .gallery-page-btn { min-width: 2rem; height: 2rem; font-size: 0.75rem; padding: 0 0.5rem; }

  /* Modal: refined stacked layout */
  .modal-content { width: 96vw; max-height: 96vh; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { border-right: none; border-bottom: 1px solid var(--c-border-light); max-height: none; overflow-y: visible; padding: 1.25rem 1.25rem 0.75rem; }
  .modal-gallery .modal-main-img-wrap { min-height: 280px; }
  .modal-main-img { max-height: 50vh; }
  .modal-info { padding: 1.5rem 1.25rem; max-height: none; }
  .modal-info h2 { font-size: clamp(1.35rem, 5vw, 1.8rem); margin-bottom: 1.25rem; }
  .modal-specs { grid-template-columns: 1fr; gap: 0; margin-bottom: 1.25rem; }
  .modal-spec { display: flex; align-items: baseline; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px solid var(--c-border-light); }
  .modal-spec-label { font-size: 0.78rem; color: var(--c-accent); min-width: 3.2rem; flex-shrink: 0; }
  .modal-spec-value { font-size: 0.92rem; }
  .modal-desc { font-size: 0.9rem; line-height: 1.85; }
  .modal-thumbs-wrap { margin-top: 0.5rem; }
  .modal-thumb { width: 52px; height: 52px; }
  .modal-thumbs { gap: 0.4rem; }
  .modal-close { top: 0.5rem; right: 0.5rem; }
  .modal-share { flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; }
  .modal-share-btn { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .faq-list { max-width: 100%; }
  .faq-question { padding: 1.2rem 0; font-size: 0.9rem; }
  .img-zoom-prev, .img-zoom-next { font-size: 2rem; padding: 0.5rem; }
  .img-zoom-close { font-size: 2rem; top: 1rem; right: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-col h4 { font-size: 0.75rem; }
  .footer-col p, .footer-col a { font-size: 0.8rem; }
}

/* ========================================
   RESPONSIVE: Mobile Phone — generous readability
   ======================================== */
@media (max-width: 480px) {
  html { font-size: 15px; }
  h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); }
  .hero { height: 55vh; }
  .hero-text { left: 1rem; right: 1rem; bottom: 15%; }
  .hero-text h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 0.78rem; }
  .hero-cta .btn { padding: 0.65rem 1.5rem; font-size: 0.8rem; width: 100%; }
  .hero-dots { right: 1rem; gap: 0.35rem; }
  .dot { width: 6px; height: 6px; }
  .page-hero { height: 30vh; min-height: 220px; }
  .features-strip { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 1.5rem 0.75rem; }
  .feature { padding: 0.75rem 0; font-size: 0.75rem; }
  .feature-num { font-size: 1.3rem; }
  .product-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-card-img { aspect-ratio: 3/2; }
  .product-card-info { padding: 0.9rem 0; }
  .product-card-name { font-size: 0.95rem; font-weight: 500; }
  .product-card-code { font-size: 0.75rem; }
  .filter-bar { gap: 0.4rem; margin-bottom: 1.5rem; }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .search-box { margin-bottom: 1.5rem; }
  .search-box input { font-size: 0.88rem; padding: 0.7rem 1rem; }

  /* Modal: full-width, image-dominant, specs as list cards */
  .modal-content { width: 100vw; max-height: 100vh; border-radius: 0; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-close { top: 0.5rem; right: 0.5rem; width: 38px; height: 38px; font-size: 1.5rem; }

  .modal-gallery {
    border-right: none; border-bottom: 1px solid var(--c-border-light);
    max-height: none; overflow-y: visible;
    padding: 1.25rem 1rem 0.75rem;
  }
  .modal-gallery .modal-main-img-wrap { min-height: 250px; }
  .modal-main-img { max-height: 48vh; }
  .modal-main-img-wrap::after { font-size: 0.65rem; padding: 3px 10px; bottom: 8px; right: 8px; }
  .modal-thumbs-wrap { margin-top: 0.6rem; }
  .modal-thumbs { gap: 0.4rem; }
  .modal-thumb { width: 50px; height: 50px; }

  .modal-info {
    padding: 1.5rem 1rem 2rem;
    max-height: none;
  }
  .modal-code { font-size: 0.78rem; margin-bottom: 0.4rem; }
  .modal-info h2 { font-size: clamp(1.3rem, 6vw, 1.6rem); margin-bottom: 1.25rem; }
  .modal-specs { grid-template-columns: 1fr; gap: 0; margin-bottom: 1.25rem; }
  .modal-spec { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0; border-bottom: 1px solid var(--c-border-light); }
  .modal-spec-label { font-size: 0.75rem; color: var(--c-accent); letter-spacing: 0.06em; }
  .modal-spec-value { font-size: 0.95rem; }
  .modal-desc { font-size: 0.92rem; line-height: 1.85; }
  .modal-reports { margin: 0.75rem 0; padding: 0.85rem; }
  .modal-report-link { padding: 0.4rem 0.75rem; font-size: 0.82rem; }
  .modal-share {
    margin-top: 1rem; display: flex; flex-direction: column; align-items: stretch;
    gap: 0.5rem; font-size: 0.85rem;
  }
  .modal-share-btn { width: 100%; padding: 0.6rem; text-align: center; font-size: 0.88rem; }

  .about-hero { height: 40vh; min-height: 260px; }
  .about-hero-content h1 { font-size: 1.6rem; }
  .about-hero-sub { font-size: 0.78rem; }
  .about-stats { gap: 0.75rem; }
  .about-stat { padding: 1rem 0.75rem; }
  .about-stat-num { font-size: 1.8rem; }
  .about-stat-label { font-size: 0.72rem; }
  .about-value { padding: 1.5rem 1rem; }
  .about-value h3 { font-size: 1.1rem; }
  .about-value p { font-size: 0.8rem; }
  .about-story-text p { font-size: 0.9rem; }
  .contact-card-new { flex-direction: column; gap: 0.5rem; padding: 1rem 0; }
  .contact-detail-value { font-size: 0.9rem; }
  .contact-form-new input, .contact-form-new textarea { padding: 0.6rem 0.8rem; font-size: 0.8rem; }
  .contact-quick-info { padding: 1rem; }
  .contact-quick-info p { font-size: 0.78rem; }
  .gallery-grid { columns: 1; }
  .gallery-hero { height: 35vh; min-height: 220px; }
  .gallery-filters { gap: 0.25rem; }
  .gallery-filter { padding: 0.35rem 0.75rem; font-size: 0.72rem; }
  .gallery-page-btn { min-width: 1.8rem; height: 1.8rem; font-size: 0.7rem; padding: 0 0.4rem; }
  .section { padding: 3rem 1rem 0; }
  .section-desc { font-size: 0.9rem; }
  .footer-grid { gap: 1.5rem; }
  .footer-bottom p { font-size: 0.7rem; }
}

/* ========== SERVICES (Legacy compat) ========== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.service-card { padding: 2.5rem 2rem; background: var(--c-bg-alt); }
.service-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.75rem; }
.service-card p { font-size: 0.9rem; }

/* ========== SCROLL ANIMATIONS ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeInUp 0.7s var(--ease-out-expo) forwards; }
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeIn 0.6s var(--ease-out-expo) forwards; }
.scale-in { opacity: 0; }
.scale-in.visible { animation: scaleIn 0.5s var(--ease-spring) forwards; }

/* stagger delay helpers */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
/* 修复移动端图片溢出问题的补充样式 */

/* 确保所有图片不会溢出容器 */
img {
  max-width: 100%;
  height: auto;
}

/* 产品卡片图片修复 */
.product-card-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

/* 产品卡片容器确保不溢出 */
.product-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* 产品网格确保在移动端正确显示 */
.product-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Modal 图片修复 */
.modal-main-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Gallery 图片修复 */
.gallery-item-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Lightbox 图片修复 */
.gallery-lightbox-img {
  max-width: 90vw;
  max-height: 70vh;
  width: auto;
  height: auto;
}

/* 移动端特定修复 */
@media (max-width: 768px) {
  .product-card-img {
    width: 100%;
    max-width: 100%;
  }
  
  .modal-main-img-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  
  .modal-main-img {
    max-width: 100%;
    max-height: 50vh;
  }
}

@media (max-width: 480px) {
  .product-card-img {
    aspect-ratio: 4/3;
  }
  
  .modal-main-img {
    max-height: 48vh;
  }
}
