/* ==========================================================================
   Wonderful Alloy — Global Stylesheet
   Guang'an Wonderful New Material Co., Ltd.
   ========================================================================== */

/* --- Design Tokens ------------------------------------------------------- */
:root {
  --brand-orange: #E85D1F;
  --brand-orange-dark: #C94A11;
  --brand-red: #E63012;
  --brand-deep: #1A2332;
  --brand-slate: #4A5568;
  --brand-muted: #718096;
  --brand-light: #F7F8FA;
  --brand-line: #E2E8F0;
  --brand-accent: #FFB690;
  --brand-accent-soft: #FFF3EB;
  --white: #FFFFFF;
  --black: #0F1419;

  --font-en: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;

  --container: 1240px;
  --container-wide: 1440px;
  --nav-h: 84px;
  --nav-h-scroll: 68px;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 20, 25, 0.05);
  --shadow: 0 4px 20px rgba(15, 20, 25, 0.08);
  --shadow-lg: 0 24px 48px rgba(15, 20, 25, 0.12);

  --t-fast: 180ms ease;
  --t: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-slow: 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  color: var(--brand-deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang^="zh"] body { font-family: var(--font-zh); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-orange); }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* --- Layout Primitives --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: var(--container-wide); }

.section {
  padding: 96px 0;
}
.section-sm { padding: 64px 0; }
.section-tint { background: var(--brand-light); }
.section-dark {
  background: var(--brand-deep);
  color: var(--white);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  margin: 0 0 12px;
}
.section-header p {
  color: var(--brand-slate);
  max-width: 640px;
  margin: 0 auto;
  font-size: 17px;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: all var(--t);
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--brand-orange-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232, 93, 31, 0.32);
}
.btn-outline {
  border-color: var(--brand-line);
  background: transparent;
  color: var(--brand-deep);
}
.btn-outline:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}
.btn-ghost {
  background: transparent;
  color: var(--brand-orange);
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--brand-orange-dark); gap: 12px; }
.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(4px); }

/* --- Header / Nav -------------------------------------------------------- */
/* Top info bar (hotline + lang) */
.top-bar {
  background: var(--brand-deep);
  height: 36px;
  display: flex;
  align-items: center;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.top-bar-hotline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.top-bar-hotline svg { width:13px; height:13px; color: var(--brand-orange); flex-shrink:0; }
.top-bar-hotline a { color: rgba(255,255,255,.9); font-weight: 600; }
.top-bar-hotline a:hover { color: var(--brand-orange); }
.top-bar-divider { width:1px; height:14px; background:rgba(255,255,255,.2); }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: all var(--t);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.99);
  border-bottom-color: var(--brand-line);
  box-shadow: var(--shadow-sm);
}
/* top-bar hides on scroll */
.site-header .top-bar {
  overflow: hidden;
  max-height: 36px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
.site-header.is-scrolled .top-bar {
  max-height: 0;
  opacity: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
  transition: height var(--t);
}
.site-header.is-scrolled .nav { height: var(--nav-h-scroll); }

/* Brand: logo left, two-line name stacked on right */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  height: 34px;
  width: auto;
  flex-shrink: 0;
}
.brand-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-name-main {
  font-weight: 800;
  font-size: 13px;
  color: var(--brand-deep);
  letter-spacing: 0.06em;
  line-height: 1.1;
  white-space: nowrap;
}
.brand-name-sub {
  font-size: 10px;
  color: var(--brand-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
  white-space: nowrap;
}

.nav-list {
  display: flex;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  color: var(--brand-deep);
  position: relative;
  white-space: nowrap;
}
.nav-item > a:hover {
  color: var(--brand-orange);
  background: var(--brand-accent-soft);
}
.nav-item.is-active > a {
  color: var(--brand-orange);
}
.nav-item.is-active > a::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--brand-orange);
  border-radius: 1px;
}

/* Dropdown */
.nav-item.has-sub { position: relative; }
.nav-sub {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t);
  border: 1px solid var(--brand-line);
}
.nav-item.has-sub:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--brand-slate);
}
.nav-sub a:hover {
  background: var(--brand-accent-soft);
  color: var(--brand-orange);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
/* hotline moved to top-bar; keep .hotline class for backward compat but hide in nav */
.nav .hotline { display: none; }

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  color: var(--brand-muted);
  padding: 5px 10px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
}
.lang-switch a {
  padding: 2px 3px;
  font-weight: 500;
}
.lang-switch a.is-active {
  color: var(--brand-orange);
  font-weight: 700;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--brand-deep);
  transition: all var(--t);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 620px;
  max-height: 860px;
  overflow: hidden;
  margin-top: calc(var(--nav-h) + 36px); /* nav + top-bar */
  color: var(--white);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1200ms ease;
  background-size: cover;
  background-position: center;
  transform: scale(1.07);
}
.hero-slide.is-active {
  opacity: 1;
  animation: heroKenburns 8s ease-out forwards;
}
@keyframes heroKenburns {
  from { transform: scale(1); }
  to { transform: scale(1.07); }
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 35, 50, 0.72) 0%, rgba(26, 35, 50, 0.42) 60%, rgba(232, 93, 31, 0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 24px;
  max-width: var(--container-wide);
  margin: 0 auto;
}
.hero-content-slide {
  position: absolute;
  inset: 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms ease;
  pointer-events: none;
}
.hero-content-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
/* Staggered text entrance on slide change */
.hero-content-slide > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-content-slide.is-active > * {
  opacity: 1;
  transform: none;
}
.hero-content-slide.is-active > *:nth-child(1) { transition-delay: 250ms; }
.hero-content-slide.is-active > *:nth-child(2) { transition-delay: 400ms; }
.hero-content-slide.is-active > *:nth-child(3) { transition-delay: 550ms; }
.hero-content-slide.is-active > *:nth-child(4) { transition-delay: 700ms; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 800ms 200ms ease forwards;
}
.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--brand-orange);
}
.hero-title {
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 800;
  max-width: 900px;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 900ms 350ms ease forwards;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--brand-orange), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 900ms 500ms ease forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 900ms 650ms ease forwards;
}
.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.hero-actions .btn-outline:hover {
  border-color: var(--white);
  color: var(--brand-deep);
  background: var(--white);
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-dots {
  position: absolute;
  bottom: 40px; left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.hero-dot {
  width: 32px; height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  transition: background var(--t);
  position: relative;
  overflow: hidden;
}
.hero-dot.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-orange);
  transform-origin: left;
  animation: dotProgress 6s linear forwards;
}
@keyframes dotProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero-scroll {
  position: absolute;
  right: 32px; bottom: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Stats Bar ----------------------------------------------------------- */
.stats {
  padding: 48px 0;
  background: var(--brand-light);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat {
  text-align: center;
  padding: 24px 12px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
}
.stat-value {
  font-size: clamp(28px, 3.6vw, 48px);
  font-weight: 700;
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: -0.02em;
}
.stat-value sup {
  font-size: 0.45em;
  vertical-align: super;
  margin-left: 2px;
  font-weight: 600;
}
.stat-label {
  font-size: 13px;
  color: var(--brand-slate);
  font-weight: 500;
  margin-top: 6px;
}

/* --- Feature Cards / Products Grid --------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--brand-line);
  transition: all var(--t);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-accent);
}
.card-media {
  aspect-ratio: 4 / 3;
  background: var(--brand-light);
  position: relative;
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media.placeholder {
  background: linear-gradient(135deg, var(--brand-accent-soft) 0%, var(--white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--brand-deep);
}
.card-title .zh {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-muted);
  margin-top: 2px;
}
.card-desc {
  color: var(--brand-slate);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}
.card-link {
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t);
}
.card:hover .card-link { gap: 10px; }

/* Product series index cards */
.series-card {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--white) 0%, var(--brand-accent-soft) 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  transition: all var(--t);
}
.series-card::before {
  content: attr(data-num);
  position: absolute;
  top: 20px; right: 24px;
  font-size: 68px;
  font-weight: 800;
  color: var(--brand-orange);
  opacity: 0.14;
  line-height: 1;
  letter-spacing: -0.05em;
}
.series-card:hover {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(232, 93, 31, 0.25);
}
.series-card:hover::before { color: var(--white); opacity: 0.22; }
.series-card:hover .series-desc { color: rgba(255,255,255,0.85); }
.series-card:hover .series-arrow { background: var(--white); color: var(--brand-orange); }
.series-card-img { overflow: hidden; }
.series-card-img svg,
.series-card-img img {
  display: block;
  width: 100%;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.series-card:hover .series-card-img svg,
.series-card:hover .series-card-img img { transform: scale(1.06); }
.series-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}
.series-title-zh {
  font-size: 14px;
  opacity: 0.75;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.series-desc {
  color: var(--brand-slate);
  font-size: 14px;
  margin: 0;
  transition: color var(--t);
}
.series-arrow {
  align-self: flex-start;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  transition: all var(--t);
}

/* --- News List ----------------------------------------------------------- */
.news-hd {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 36px;
}
.news-hd .news-word {
  font-size: 64px;
  font-weight: 800;
  line-height: .85;
  letter-spacing: 1px;
  color: var(--brand-line);
}
.news-hd .news-sub h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 0 4px;
}
.news-hd .news-sub p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--brand-muted);
  text-transform: uppercase;
}
.news-hd .news-more {
  margin-left: auto;
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
  transition: all var(--t);
}
.news-hd .news-more:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-item {
  display: grid;
  grid-template-columns: 186px 1fr;
  align-items: stretch;
  color: inherit;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-date {
  background: var(--brand-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 12px;
  font-variant-numeric: tabular-nums;
  transition: background var(--t);
}
.news-date .day {
  font-size: 44px;
  font-weight: 300;
  line-height: 1.1;
}
.news-date .full {
  font-size: 14px;
  opacity: .85;
}
.news-body {
  background: var(--white);
  padding: 22px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  transition: background var(--t);
}
.news-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 0 0 8px;
}
.news-title a { color: inherit; }
.news-excerpt,
.news-body p {
  margin: 0;
  font-size: 14px;
  color: var(--brand-slate);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-item:hover .news-date { background: var(--brand-orange); }
.news-item:hover .news-body { background: var(--brand-accent-soft); }
.news-item:hover .news-title { color: var(--brand-orange); }
@media (max-width: 640px) {
  .news-item { grid-template-columns: 110px 1fr; }
  .news-date .day { font-size: 30px; }
  .news-date .full { font-size: 12px; }
  .news-body { padding: 16px 18px; }
  .news-hd .news-word { font-size: 40px; }
}

/* --- Process Steps ------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.process::before {
  content: '';
  position: absolute;
  top: 44px; left: 10%; right: 10%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-line) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.process-icon {
  width: 88px; height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--brand-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  transition: all var(--t);
}
.process-step:hover .process-icon {
  background: var(--brand-orange);
  color: var(--white);
  border-color: var(--brand-orange);
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(232, 93, 31, 0.32);
}
.process-icon svg { width: 34px; height: 34px; }
.process-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
}
.process-num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--brand-orange);
  font-weight: 700;
}

/* --- About / Company Section --------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Homepage about-preview: text left, stats cards right */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 840px) {
  .about-preview { grid-template-columns: 1fr; gap: 40px; }
}
.about-text h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--brand-deep);
}
.about-text p { color: var(--brand-slate); line-height: 1.75; margin-bottom: 16px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-stat-card {
  background: var(--brand-light);
  border-radius: 12px;
  padding: 24px 20px;
  border-top: 3px solid var(--brand-orange);
}
.about-stat-card .stat-val {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1;
  margin-bottom: 6px;
}
.about-stat-card .stat-val span { color: var(--brand-orange); }
.about-stat-card .stat-desc {
  font-size: 13px;
  color: var(--brand-slate);
  line-height: 1.4;
}
.about-eyebrow {
  color: var(--brand-orange);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.about-title {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 24px;
  line-height: 1.15;
}
.about-body p {
  color: var(--brand-slate);
  font-size: 16px;
  line-height: 1.85;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-light);
  aspect-ratio: 4 / 3;
  position: relative;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* --- World Map / Network ------------------------------------------------- */
.network {
  background: var(--brand-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.network::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(232, 93, 31, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(232, 93, 31, 0.1) 0%, transparent 50%);
}
.network h2 { color: var(--white); }
.network .section-header p { color: rgba(255, 255, 255, 0.7); }

.map-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.map-svg {
  width: 100%;
  height: auto;
  color: rgba(255, 255, 255, 0.15);
}
.map-svg path { fill: currentColor; stroke: rgba(255, 255, 255, 0.25); stroke-width: 0.4; }
.map-dot {
  fill: var(--brand-orange);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { r: 4; opacity: 1; }
  50% { r: 7; opacity: 0.6; }
}
.map-legend {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.map-legend-item {
  text-align: center;
}
.map-legend-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1;
}
.map-legend-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* --- Page Banner (inner pages) ------------------------------------------- */
.page-banner {
  padding-top: calc(var(--nav-h) + 36px + 80px); /* nav + top-bar + breathing room */
  padding-bottom: 100px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #2A3548 60%, var(--brand-orange-dark) 140%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at right, rgba(232, 93, 31, 0.2) 0%, transparent 50%);
}
.page-banner-inner { position: relative; z-index: 1; }
.page-banner .breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.page-banner .breadcrumb a:hover { color: var(--brand-accent); }
.page-banner .breadcrumb-sep { margin: 0 10px; color: rgba(255,255,255,0.4); }
.page-banner h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 0 0 12px;
  color: var(--white);
}
.page-banner .subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
}

/* --- Content Blocks (About, Careers, etc.) ------------------------------- */
.content-block {
  max-width: 860px;
  margin: 0 auto;
}
.content-block h3 {
  font-size: 24px;
  margin-top: 40px;
  padding-left: 16px;
  border-left: 4px solid var(--brand-orange);
}
.content-block p {
  color: var(--brand-slate);
  font-size: 16px;
  line-height: 1.85;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.pillar {
  padding: 28px 24px;
  background: var(--brand-light);
  border-radius: var(--radius);
  border-top: 3px solid var(--brand-orange);
  transition: all var(--t);
}
.pillar:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pillar-icon {
  width: 44px; height: 44px;
  background: var(--brand-accent-soft);
  color: var(--brand-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pillar h4 {
  font-size: 17px;
  margin: 0 0 8px;
}
.pillar p {
  font-size: 14px;
  color: var(--brand-slate);
  margin: 0;
}

/* --- Job cards ----------------------------------------------------------- */
.jobs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.job-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  transition: all var(--t);
}
.job-card:hover {
  border-color: var(--brand-orange);
  box-shadow: 0 12px 32px rgba(232, 93, 31, 0.12);
  transform: translateY(-2px);
}
.job-card h4 {
  font-size: 19px;
  margin: 0 0 8px;
}
.job-card .job-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--brand-accent-soft);
  color: var(--brand-orange);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.job-card p {
  color: var(--brand-slate);
  font-size: 14px;
  margin: 0;
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-info {
  background: linear-gradient(160deg, var(--brand-deep) 0%, #2A3548 100%);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 31, 0.25) 0%, transparent 70%);
}
.contact-info h3 {
  color: var(--white);
  font-size: 22px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(232, 93, 31, 0.15);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2px;
}
.contact-item-value {
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
}
.contact-item-value a { color: var(--white); }
.contact-item-value a:hover { color: var(--brand-accent); }

.contact-form {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--brand-slate);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 12px 14px;
  border: 1.5px solid var(--brand-line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--brand-deep);
  background: var(--white);
  transition: all var(--t);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(232, 93, 31, 0.12);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* --- Product Detail Page ------------------------------------------------- */
.product-detail {
  padding: 80px 0;
}
.product-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: center;
}
.product-image {
  aspect-ratio: 1 / 1;
  background: var(--brand-accent-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-name-en { font-size: 34px; margin: 0 0 6px; }
.product-name-zh { color: var(--brand-muted); font-size: 18px; margin-bottom: 24px; }
.product-section { margin-bottom: 32px; }
.product-section h4 {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 8px;
}
.product-section p { color: var(--brand-slate); }

/* Chemical composition table */
.spec-table {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--brand-line);
  font-size: 14px;
}
.spec-table th, .spec-table td {
  padding: 12px 14px;
  text-align: center;
  border-bottom: 1px solid var(--brand-line);
  border-right: 1px solid var(--brand-line);
}
.spec-table th:last-child, .spec-table td:last-child { border-right: 0; }
.spec-table thead th {
  background: var(--brand-orange);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.spec-table thead tr:nth-child(2) th {
  background: var(--brand-orange-dark);
  font-weight: 500;
  font-size: 13px;
}
.spec-table tbody tr:nth-child(even) { background: var(--brand-light); }
.spec-table tbody tr:hover { background: var(--brand-accent-soft); }
.spec-table tbody td:first-child { font-weight: 700; color: var(--brand-deep); }

/* Rare earth grid */
.element-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.element {
  padding: 18px 16px;
  background: var(--white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  transition: all var(--t);
}
.element:hover {
  border-color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.element-symbol {
  display: inline-block;
  padding: 3px 10px;
  background: var(--brand-orange);
  color: var(--white);
  font-weight: 700;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 8px;
}
.element-name {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
}
.element-forms {
  color: var(--brand-muted);
  font-size: 12px;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(1.1);
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  font-size: 13px;
}
.footer h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.05em;
}
.footer ul li { margin-bottom: 10px; }
.footer a { color: rgba(255, 255, 255, 0.65); }
.footer a:hover { color: var(--brand-accent); }

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.75);
}
.footer-contact svg {
  width: 16px; height: 16px;
  color: var(--brand-orange);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.footer-bottom .icp a { color: rgba(255, 255, 255, 0.5); }

/* --- Reveal on scroll ---------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-reveal="flip"] {
  transform: perspective(1200px) rotateY(-16deg) translateX(48px);
  transition-duration: 1000ms;
}
[data-reveal="zoom"] { transform: scale(0.92); }
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}
/* Staggered children: add .reveal-stagger to a revealed parent */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 80ms; }
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 200ms; }
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 320ms; }
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 440ms; }
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 560ms; }
.reveal-stagger.is-revealed > * {
  opacity: 1;
  transform: none;
}

/* Product cards: springy rise + photo zoom-settle on reveal */
.pcard[data-reveal],
.series-card[data-reveal] {
  transition: opacity 700ms ease, transform 950ms cubic-bezier(0.16, 1.18, 0.3, 1);
}
.pcard[data-reveal]:not(.is-revealed),
.series-card[data-reveal]:not(.is-revealed) {
  transform: translateY(56px) scale(0.93);
}
.card-grid > .pcard[data-reveal]:nth-child(odd):not(.is-revealed),
.card-grid > .series-card[data-reveal]:nth-child(odd):not(.is-revealed) {
  transform: translateY(56px) scale(0.93) rotate(-1.2deg);
}
.card-grid > .pcard[data-reveal]:nth-child(even):not(.is-revealed),
.card-grid > .series-card[data-reveal]:nth-child(even):not(.is-revealed) {
  transform: translateY(56px) scale(0.93) rotate(1.2deg);
}
.pcard[data-reveal]:not(.is-revealed) .pcard-media img,
.series-card[data-reveal]:not(.is-revealed) .series-card-img img {
  transform: scale(1.28);
  filter: saturate(0.2) brightness(1.15);
}
.pcard[data-reveal].is-revealed .pcard-media img,
.series-card[data-reveal].is-revealed .series-card-img img {
  animation: img-settle 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes img-settle {
  from { transform: scale(1.28); filter: saturate(0.2) brightness(1.15); }
}
.pcard[data-reveal] .pcard-cap,
.series-card[data-reveal] .series-card-body {
  transition: opacity 600ms ease 250ms, transform 700ms cubic-bezier(0.2, 0.9, 0.25, 1.15) 250ms;
}
.pcard[data-reveal]:not(.is-revealed) .pcard-cap,
.series-card[data-reveal]:not(.is-revealed) .series-card-body {
  opacity: 0;
  transform: translateY(16px);
}

/* About visual: decorative frame + hover motion */
.about-visual {
  position: relative;
}
.about-visual::before {
  content: "";
  position: absolute;
  top: 24px; left: 24px; right: -14px; bottom: -14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 93, 31, 0.22), rgba(232, 93, 31, 0.04));
  z-index: 0;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-visual img {
  position: relative;
  z-index: 1;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 600ms ease;
}
.about-visual:hover img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(26, 35, 50, 0.18);
}
.about-visual:hover::before {
  transform: translate(6px, 6px);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-stagger > *, .hero-content-slide > * { transition: none; transform: none; opacity: 1; }
  [data-reveal]:not(.is-revealed) .pcard-media img,
  [data-reveal]:not(.is-revealed) .series-card-img img { transform: none; filter: none; }
  [data-reveal].is-revealed .pcard-media img,
  [data-reveal].is-revealed .series-card-img img { animation: none; }
  [data-reveal]:not(.is-revealed) .pcard-cap,
  [data-reveal]:not(.is-revealed) .series-card-body { transition: none; transform: none; opacity: 1; }
  .hero-slide.is-active, .hero-dot.is-active::after { animation: none; }
}

/* --- Product List (homepage overview) ------------------------------------ */
.product-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.product-group {
  background: var(--white);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all var(--t);
}
.product-group:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-group h4 {
  font-size: 15px;
  color: var(--brand-orange);
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.product-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-group-item {
  display: inline-block;
  padding: 4px 14px;
  background: var(--brand-accent-soft);
  color: var(--brand-deep);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--t);
}
.product-group-item:hover {
  background: var(--brand-orange);
  color: var(--white);
}

/* --- Utilities ----------------------------------------------------------- */
.text-center { text-align: center; }
.text-orange { color: var(--brand-orange); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider {
  height: 1px;
  background: var(--brand-line);
  margin: 48px 0;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav-item > a { padding: 8px 10px; font-size: 13px; }
  .top-bar-hotline.secondary { display: none; }
  .about-grid, .contact-grid, .product-header { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 840px) {
  :root { --nav-h: 64px; --nav-h-scroll: 56px; }
  .top-bar { display: none; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .menu-toggle { display: block; }
  .nav-list {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--t);
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-item { width: 100%; }
  .nav-item > a { width: 100%; padding: 14px 16px; font-size: 15px; }
  .nav-sub {
    position: static;
    box-shadow: none;
    opacity: 1; visibility: visible;
    transform: none;
    border: 0;
    padding: 4px 12px 12px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    margin-top: 4px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; height: auto; padding: 80px 0 120px; }
  .hero-scroll { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info, .contact-form { padding: 28px; }
  .page-banner { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 60px; }
}
@media (max-width: 480px) {
  .brand-name-sub { display: none; }
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .element-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Print */
@media print {
  .site-header, .site-footer, .hero-dots, .hero-scroll { display: none; }
  .hero { margin-top: 0; }
}

/* --- Photo product cards (hover mask) ------------------------------------ */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pcard {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--brand-deep);
  box-shadow: 0 4px 16px rgba(26, 35, 50, 0.08);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(26, 35, 50, 0.22);
}
.pcard-media {
  position: absolute;
  inset: 0;
}
.pcard-media svg,
.pcard-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pcard:hover .pcard-media svg,
.pcard:hover .pcard-media img { transform: scale(1.08); }
/* caption strip (default state) */
.pcard-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(15, 22, 34, 0.85), rgba(15, 22, 34, 0));
  color: var(--white);
  transition: opacity 400ms ease, transform 400ms ease;
}
.pcard-cap h3 { margin: 0; font-size: 17px; font-weight: 700; }
.pcard-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 0.08em;
}
/* hover mask */
.pcard-mask {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px 20px;
  background: linear-gradient(15deg, rgba(232, 93, 31, 0.92) 0%, rgba(26, 35, 50, 0.88) 70%);
  color: var(--white);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 450ms ease, transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pcard:hover .pcard-mask { opacity: 1; transform: translateY(0); }
.pcard:hover .pcard-cap { opacity: 0; transform: translateY(8px); }
.pcard-mask h3 { margin: 0; font-size: 19px; font-weight: 800; }
.pcard-mask p { margin: 0; font-size: 13.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.92); }
.pcard-link { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
/* CTA card */
.pcard--cta {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-dark, #c74a12) 100%);
}
.pcard--cta .pcard-cta-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px 22px;
  color: var(--white);
}
.pcard--cta h3 { margin: 0; font-size: 20px; font-weight: 800; }
.pcard--cta p { margin: 0; font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
@media (max-width: 1024px) {
  .pcard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pcard-grid { grid-template-columns: 1fr; }
  /* touch devices: show mask content via caption only */
}
@media (hover: none) {
  .pcard-cap { opacity: 1 !important; transform: none !important; }
  .pcard-mask { display: none; }
}

/* --- Leaflet global map --------------------------------------------------- */
.map-hq {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--white);
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.25);
}
.map-hq span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand-orange);
  position: relative;
}
.map-hq span::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  animation: hqPulse 1.8s ease-out infinite;
}
@keyframes hqPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
#global-map { z-index: 0; background: #151d2c; }

/* 底图染色为品牌藏蓝 */
#global-map .leaflet-tile-pane { filter: grayscale(1) brightness(1.32) sepia(1) hue-rotate(182deg) saturate(2); }

/* 深色板块内文字配色 */
.section-dark .section-eyebrow { color: var(--brand-accent); }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.62); }

/* 地图边框：融入深色板块 */
.world-map-wrap #global-map { border: 1px solid rgba(255, 156, 102, 0.16); }

/* 内阴影暗角，增强纵深感 */
.world-map-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 80px rgba(5, 8, 14, 0.55);
  pointer-events: none;
  z-index: 500;
}

/* 左下角信息标牌 */
.map-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(14, 20, 32, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 156, 102, 0.25);
  pointer-events: none;
}
.map-caption strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.map-caption span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

/* 国家节点：橙点 + 波纹 */
.map-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--brand-orange);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px 2px rgba(232, 93, 31, 0.55);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.map-dot:hover { transform: scale(1.4); }
.map-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--brand-orange);
  animation: hqPulse 2.2s ease-out infinite;
  animation-delay: calc(var(--i, 0) * 0.15s);
}

/* 常驻国家名标签（深色小胶囊，无 Leaflet 默认气泡样式） */
.leaflet-tooltip.map-label {
  background: rgba(14, 20, 32, 0.78);
  border: 1px solid rgba(255, 156, 102, 0.3);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  box-shadow: none;
  pointer-events: none;
}
.leaflet-tooltip.map-label::before { display: none; }

/* 流动光点（彗星） */
.map-comet {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FFD9C2;
  box-shadow: 0 0 8px 3px rgba(255, 156, 102, 0.85);
  transition: opacity 0.3s ease;
}

/* 航线流动动画 */
.flow-line {
  stroke-dasharray: 5 8;
  animation: flowDash 1.1s linear infinite;
}
@keyframes flowDash {
  to { stroke-dashoffset: -13; }
}

/* 滚动进入视口：标记逐个弹出（离开后重置，可重播） */
.map-node {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.map-live .map-node {
  opacity: 1;
  transform: scale(1);
}
.world-map-wrap .leaflet-overlay-pane,
.world-map-wrap .leaflet-tooltip.map-label,
.world-map-wrap .map-comet {
  opacity: 0;
  transition: opacity 0.8s ease 0.6s;
}
.map-live .leaflet-overlay-pane { opacity: 1; }
.map-live .leaflet-tooltip.map-label { opacity: 1 !important; transition-delay: 1s; }
.map-live .map-comet { opacity: 1; }

@media (max-width: 640px) {
  .leaflet-tooltip.map-label { display: none; }
  .map-caption { left: 12px; bottom: 12px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line, .map-dot::after { animation: none; }
  .map-node, .world-map-wrap .leaflet-overlay-pane,
  .world-map-wrap .leaflet-tooltip.map-label, .world-map-wrap .map-comet { opacity: 1; transform: none; transition: none; }
}

/* --- Screenshot mode: html.no-anim (?noanim=1) disables all animation --- */
.no-anim *, .no-anim *::before, .no-anim *::after {
  transition: none !important;
  animation: none !important;
}
.no-anim [data-reveal], .no-anim .reveal-stagger > *,
.no-anim .map-node, .no-anim .map-comet,
.no-anim .world-map-wrap .leaflet-overlay-pane,
.no-anim .leaflet-tooltip.map-label,
.no-anim .hero-content-slide > * {
  opacity: 1 !important;
  transform: none !important;
}
