/* ============================================
   秋来木业 — Style Sheet
   Design System: 木业精工 (Wood Craft Premium)
   Version: 1.0
   ============================================ */

/* ===== CSS Custom Properties ===== */
:root {
  /* Backgrounds */
  --bg: #F5F0E8;
  --surface: #FFFFFF;
  --surface-alt: #FAF8F5;
  --surface-hover: #F0EDE8;

  /* Borders */
  --border: #E0D5C5;
  --border-hover: #C4B8A8;

  /* Text */
  --text: #3C2A1E;
  --text-secondary: #6B5D4F;
  --text-tertiary: #9A8A7A;

  /* Accent */
  --accent: #D4A96A;
  --accent-hover: #C49555;
  --accent-light: #F0E4D0;

  /* Brand */
  --brand-dark: #3C2A1E;
  --brand-dark-hover: #4D3829;
  --brand-dark-active: #2D1E14;
  --brand-mid: #5C4033;
  --brand-green: #2D5A3E;
  --brand-red: #B84A2A;

  /* RGB variants */
  --bg-rgb: 245, 240, 232;
  --text-rgb: 60, 42, 30;
  --accent-rgb: 212, 169, 106;
  --brand-dark-rgb: 60, 42, 30;

  /* Semantic */
  --success: #2D5A3E;
  --error: #B84A2A;
  --warning: #D4A96A;

  /* Typography */
  --font-heading: 'Noto Serif SC', serif;
  --font-body-cn: 'Noto Sans SC', sans-serif;
  --font-body-en: 'DM Sans', sans-serif;
  --font-display: 'DM Sans', sans-serif;

  /* Layout */
  --container: 1200px;
  --section-padding: 120px;
  --section-padding-mobile: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body-cn), var(--font-body-en), sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0.03em;
}

.text-accent {
  color: var(--accent);
}

[id] {
  scroll-margin-top: 80px;
}

/* ===== Container ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-body-cn), var(--font-body-en), sans-serif;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--brand-dark);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--brand-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(var(--brand-dark-rgb), 0.2);
}
.btn-primary:active {
  transform: translateY(0);
  background: var(--brand-dark-active);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(var(--text-rgb), 0.03);
}
.btn-secondary:active {
  background: rgba(var(--text-rgb), 0.06);
}

.btn-accent {
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

/* ===== Section ===== */
.section {
  padding: var(--section-padding) 0;
}
.section-alt {
  background: var(--surface-alt);
}
.section-dark {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.8);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.03em;
  text-align: center;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}

.section-sub-title {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.section-sub-title em {
  font-style: normal;
  color: var(--accent);
}

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

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 20px;
  border-radius: 2px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.section-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav.scrolled {
  background: rgba(245, 240, 232, 0.97);
  padding: 10px 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  height: 32px;
  width: auto;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-cn {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.nav-logo-en {
  font-family: var(--font-body-en);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.nav.scrolled .nav-logo-cn,
.nav.scrolled .nav-logo-en {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
  font-family: var(--font-body-cn);
}
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--text);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 8px 20px;
  background: var(--brand-dark);
  color: var(--accent) !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: #4D3829 !important;
}

/* Language switcher */
.nav-lang { position:relative; }
.lang-toggle { cursor:pointer; }
.lang-dropdown { display:none; position:absolute; top:100%; right:0; background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:6px; min-width:140px; box-shadow:0 4px 20px rgba(var(--brand-dark-rgb),0.12); z-index:100; }
.nav-lang:hover .lang-dropdown { display:block; }
.lang-dropdown a { display:block; padding:6px 12px; font-size:13px; color:var(--text-secondary); text-decoration:none; border-radius:4px; transition:all 0.15s; }
.lang-dropdown a:hover { background:var(--surface-alt); color:var(--text); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
  border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(var(--brand-dark-rgb),0.82) 0%, rgba(var(--brand-dark-rgb),0.5) 60%, rgba(var(--brand-dark-rgb),0.45) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 50%, rgba(var(--accent-rgb),0.08) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 24px 80px;
  width: 100%;
}

.hero-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.trust-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(44px, 6.5vw, 76px);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  letter-spacing: 0.04em;
  max-width: 800px;
}
.hero-title-anim {
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroReveal {
  from {
    clip-path: inset(0 0 100% 0);
    transform: translateY(30px);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

.hero-fade-anim {
  opacity: 0;
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-fade-delay-1 {
  animation-delay: 0.4s;
}
.hero-fade-delay-2 {
  animation-delay: 0.6s;
}
.hero-fade-delay-3 {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-line {
  display: block;
}
.hero-line-1 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: rgba(255,255,255,0.75);
  margin-top: 24px;
  max-width: 640px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 700;
}
.hero-cta .btn-primary:hover {
  background: var(--accent-hover);
}
.hero-cta .btn-secondary {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}
.hero-cta .btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 720px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.hero-stat-unit {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 2px;
}
.hero-stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  letter-spacing: 0.1em;
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-arrow {
  font-size: 14px;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== Trust Bar ===== */
.trust-bar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child {
  border-right: none;
}
.trust-icon {
  color: var(--accent);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.trust-text strong {
  color: var(--text);
}

/* ===== Process ===== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}
.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.process-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.1);
}
.process-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.process-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.process-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.process-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.process-arrow {
  font-size: 24px;
  color: var(--accent);
  padding: 0 12px;
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card-product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(var(--brand-dark-rgb), 0.12);
}

.card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card-product:hover .card-img img {
  transform: scale(1.05);
}
.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(60,42,30,0.6) 0%, transparent 40%, rgba(60,42,30,0.3) 100%);
  pointer-events: none;
}
.card-img-icon {
  display: none;
}
.card-img-icon svg,
.process-icon svg {
  stroke: currentColor;
}
.process-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-body {
  padding: 24px;
}
.card-body h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
}
.card-tagline {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 14px;
  margin-bottom: 20px;
}
.card-specs > div {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.spec-l {
  font-size: 12px;
  color: var(--text-tertiary);
}
.spec-v {
  font-weight: 500;
  color: var(--text);
}

.card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.text-link {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}
.text-link:hover {
  color: var(--accent-hover);
}

/* Pallet showcase */
.pallet-showcase {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.pallet-visual {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-mid));
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 32px;
}
.pallet-grid-visual {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
  max-width: 240px;
}
.pallet-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.pallet-row span {
  height: 18px;
  background: rgba(212,169,106,0.3);
  border-radius: 3px;
  border: 1px solid rgba(212,169,106,0.15);
}
.pallet-overlay-data {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pallet-overlay-data > div {
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
}
.pallet-overlay-data strong {
  color: var(--accent);
}
.pallet-overlay-data span {
  opacity: 0.6;
}

.pallet-info {
  padding: 32px 32px 32px 0;
}
.pallet-info h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pallet-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.pallet-grid-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  font-size: 13px;
}
.pallet-grid-specs > div {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
}
.filter-item {
  padding: 6px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 100px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  background: none;
  font-family: inherit;
}
.filter-item:hover {
  color: var(--text);
  background: rgba(var(--text-rgb), 0.05);
}
.filter-item.active {
  background: var(--brand-dark);
  color: var(--accent);
  font-weight: 600;
}

/* ===== Counter ===== */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.counter-item {
  padding: 24px;
}
.counter-num {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  display: inline-block;
  text-align: center;
}
.counter-label {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.counter-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Cases ===== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
  transition: all 0.3s ease;
}
.case-card:hover {
  box-shadow: 0 8px 32px rgba(var(--brand-dark-rgb), 0.08);
  transform: translateY(-2px);
}
.case-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: rgba(var(--accent-rgb), 0.15);
  position: absolute;
  top: 12px;
  right: 16px;
  line-height: 1;
}
.case-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.case-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.case-tags .tag {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--accent-light);
  color: var(--text);
  border-radius: 100px;
  border: none;
}
.case-result {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 12px;
}
.case-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.case-detail strong {
  color: var(--text);
  display: inline-block;
  width: 48px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-certs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.about-cert {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-cert strong {
  font-size: 14px;
  color: var(--text);
  font-family: var(--font-display);
}
.about-cert span {
  font-size: 12px;
  color: var(--text-tertiary);
}
.about-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.about-img {
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  min-height: 180px;
}
.about-img-main {
  grid-row: 1 / 3;
  min-height: 372px;
}
.about-img-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.about-img-text svg {
  width: 28px;
  height: 28px;
}
.about-img-text span:first-child {
  font-size: 24px;
}

/* ===== CTA Block ===== */
.section-cta-block {
  background: var(--surface-alt);
}
.cta-block {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-mid) 100%);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 50px, rgba(255,255,255,0.015) 50px, rgba(255,255,255,0.015) 51px);
  pointer-events: none;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.cta-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.cta-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 28px;
}
.cta-features span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-contact {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Footer ===== */
.footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-certs {
  display: flex;
  gap: 8px;
}
.footer-certs .tag-cert {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
  font-size: 10px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-body-cn);
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-contact a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover,
.footer-contact a:hover {
  color: var(--accent);
}
.footer-contact li {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}
.footer-tip {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
  font-style: italic;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--accent);
}
.footer-ai-note {
  font-size: 11px !important;
  color: rgba(255,255,255,0.2) !important;
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  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; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 32px rgba(var(--brand-dark-rgb), 0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item:nth-child(2) {
    border-right: none;
  }
  .trust-item:nth-child(3),
  .trust-item:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .process-arrow {
    display: none;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-img-main {
    min-height: 240px;
  }

  .pallet-showcase {
    grid-template-columns: 1fr;
  }
  .pallet-info {
    padding: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-block {
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile) 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-content {
    padding: 100px 16px 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item {
    padding: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .about-visual-grid {
    grid-template-columns: 1fr;
  }
  .about-img-main {
    grid-row: auto;
    min-height: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .pallet-grid-specs {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    border-radius: 12px;
    justify-content: flex-start;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-trust {
    gap: 6px;
  }
  .trust-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .card-specs {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 14px;
  }
}

/* ===== Testimonials ===== */
.testimonials { overflow:hidden; padding:20px 0; }
.testimonials-track { display:flex; gap:24px; animation:scrollTestimonials 35s linear infinite; width:max-content; }
.testimonials-track:hover { animation-play-state:paused; }
@keyframes scrollTestimonials {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}
.testimonial-card { min-width:340px; max-width:380px; background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:24px; flex-shrink:0; }
.testimonial-card:hover { border-color:var(--accent); }
.testimonial-card .stars { color:var(--accent); font-size:14px; margin-bottom:8px; }
.testimonial-card blockquote { font-size:14px; line-height:1.7; color:var(--text); margin:0 0 12px; font-style:italic; }
.testimonial-card .author { font-size:13px; color:var(--text-secondary); }
.testimonial-card .author strong { color:var(--text); }
.testimonial-card .author .industry { display:inline-block; font-size:11px; padding:2px 8px; background:var(--accent-light); border-radius:100px; margin-left:6px; }

/* ===== Pagination ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 40px 0 16px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .active {
  background: var(--brand-dark);
  color: var(--accent);
  border-color: var(--brand-dark);
  font-weight: 600;
}
.pagination .disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}
.pagination .arrow {
  font-size: 16px;
  letter-spacing: -1px;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-title-anim { animation: none; opacity: 1; transform: none; }
  .hero-fade-anim { animation: none; opacity: 1; }
  .hero-scroll { animation: none; }
}

/* ===== GEO 答案胶囊 ===== */
.geo-capsule {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 32px;
}
.geo-capsule p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}
.geo-capsule strong {
  color: var(--accent);
}
.geo-capsule a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== AI Chat Widget ===== */
.ai-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.35);
  transition: all 0.3s ease;
  border: none;
}
.ai-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(var(--accent-rgb), 0.45);
}
.ai-chat-btn:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 4px;
}

.ai-chat-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 999;
  width: 360px;
  max-height: 520px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(var(--brand-dark-rgb), 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: chatSlideUp 0.3s ease;
}
.ai-chat-panel.open {
  display: flex;
}
@keyframes chatSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-chat-header {
  padding: 16px 20px;
  background: var(--brand-dark);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.02em;
}
.ai-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}
.ai-chat-close:hover {
  color: white;
}
.ai-chat-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.ai-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 340px;
}
.ai-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 85%;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-msg-bot {
  background: var(--surface-alt);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.ai-msg-user {
  background: var(--accent);
  color: var(--brand-dark);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.ai-chat-input:focus {
  border-color: var(--accent);
}
.ai-chat-send {
  padding: 10px 18px;
  background: var(--accent);
  color: var(--brand-dark);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ai-chat-send:hover {
  background: var(--accent-hover);
}
.ai-chat-send:focus-visible {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .ai-chat-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 80px;
    max-height: 460px;
  }
}
