/* =============================================================
   FARSEER — Professional TC Website v2
   ============================================================= */

/* ---------- TOKENS ---------- */
:root {
  /* Brand */
  --brand: #E87722;
  --brand-hover: #D86712;
  --brand-deep: #B9540C;
  --brand-light: #FFF0E0;
  --brand-soft: #FFE8D4;

  /* Neutrals */
  --ink-900: #0F0E0C;
  --ink-800: #1C1B19;
  --ink-700: #2B2A27;
  --ink-600: #3E3D3A;
  --ink-500: #5E5C57;
  --ink-400: #8B8884;
  --ink-300: #B6B3AE;
  --ink-200: #D9D6D0;
  --ink-100: #EEECE6;
  --ink-50: #F7F5EF;
  --white: #FFFFFF;
  --offwhite: #FAF8F3;

  /* Semantic */
  --positive: #2F7D3E;
  --positive-bg: #E8F5EC;
  --negative: #C0392B;
  --negative-bg: #FBEAE7;
  --neutral: #B78A3E;

  /* Layout */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,14,12,0.04), 0 2px 6px rgba(15,14,12,0.04);
  --shadow: 0 4px 16px rgba(15,14,12,0.06), 0 2px 4px rgba(15,14,12,0.04);
  --shadow-lg: 0 20px 50px rgba(15,14,12,0.10), 0 8px 20px rgba(15,14,12,0.06);
  --shadow-brand: 0 10px 30px rgba(232,119,34,0.20);

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 80px);

  /* Typography — V7 严格依照品牌规范 */
  /* 英文标题 = Futura (系统) → Jost (Google Fonts Futura 替代)
     英文内文 = Helvetica Neue (系统) → Hanken Grotesk (Google Fonts Helvetica 替代)
     简体中文 = 思源黑体 简体 = Noto Sans SC / PingFang SC */
  --font-display: 'Futura', 'Futura PT', 'Jost', 'Helvetica Neue', Helvetica, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-sans: 'Helvetica Neue', Helvetica, 'Hanken Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01", "ss03";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

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

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(232,119,34,0.28); }
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border: 1.5px solid var(--ink-200);
}
.btn-ghost:hover { border-color: var(--ink-800); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--ink-900); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }
.btn-white-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-white-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
/* V7.2 — Hero: D3 APAC network map, right-shifted (full-saturation warm-orange) */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background-color: #081222;
  background-image:
    linear-gradient(90deg, rgba(8,18,34,0.55) 0%, rgba(8,18,34,0.20) 45%, rgba(8,18,34,0.00) 70%),
    url('../images/newpage/hero-bg.png');
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 0%, transparent 78%, rgba(8,18,34,0.55) 92%, rgba(8,18,34,0.92) 100%);
  pointer-events: none;
}
.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-content {
  max-width: 820px;
  color: var(--white);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(232,119,34,0.25);
  animation: eyebrowPulse 2s ease-in-out infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(232,119,34,0.15); }
  50% { box-shadow: 0 0 0 7px rgba(232,119,34,0.05); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.headline-line { display: block; }
.headline-accent {
  background: linear-gradient(120deg, #FFA861 0%, #E87722 50%, #FFD9B3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin: 0 0 32px;
  max-width: 640px;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
.nowrap-zh { white-space: nowrap; }

/* V7.1 — CJK text wrap safety: prevent orphan characters on headlines & key copy */
.section-title,
.panel-title,
.panel-desc,
.cta-headline,
.hero-headline,
.products-intro,
.peer-delta,
.peer-label,
.kicker,
.eyebrow {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
  hanging-punctuation: allow-end;
}
.hero-cycling {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
}
.cycle-label { color: rgba(255,255,255,0.5); }
.cycle-item {
  display: none;
  font-weight: 600;
  color: var(--white);
  padding: 6px 14px;
  border: 1px solid rgba(232,119,34,0.4);
  border-radius: 100px;
  background: rgba(232,119,34,0.12);
}
.cycle-item.cycle-active {
  display: inline-block;
  animation: cycleIn 0.5s ease-out;
}
@keyframes cycleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-actions .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}
.hero-actions .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.12); }
.hero-metrics {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}
.metric { display: flex; flex-direction: column; gap: 2px; }
.metric-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}
.metric-label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}
.metric-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.15);
}
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1.5px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scrollDown 2.5s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; transform-origin: bottom; }
}

/* ---------- CLIENTS ---------- */
.clients {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--ink-100);
  background: var(--offwhite);
}
.clients-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 36px;
}
.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 28px;
  align-items: center;
  justify-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  width: 100%;
  max-width: 200px;
  color: var(--ink-500);
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.client-logo-5 {
  width: 110%;
  margin-left: 20px;
}
.client-logo-6 img{
  margin-top: 31px;
}
.client-logo img {
  width: 100%;
  height: auto;
  max-height: 70px;
}
.client-logo:hover {
  opacity: 1;
  color: var(--ink-800);
}
@media (max-width: 960px) {
  .clients-logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .clients-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.section-head-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.section-eyebrow-light { color: rgba(255,255,255,0.7); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin: 0 0 20px;
}
.section-lede {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  color: var(--ink-500);
  margin: 0;
}

/* ---------- INDUSTRIES ---------- */
.industries {
  padding: 120px 0;
  background: var(--white);
}
.industry-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--ink-50);
  border-radius: var(--radius);
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.industry-tab {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: calc(var(--radius) - 4px);
  color: var(--ink-500);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
}
.industry-tab .tab-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-400);
  font-weight: 500;
}
.industry-tab .tab-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.industry-tab:hover { color: var(--ink-800); }
.industry-tab.active {
  background: var(--white);
  color: var(--ink-900);
  box-shadow: var(--shadow);
}
.industry-tab.active .tab-num { color: var(--brand); }

.industry-panel { display: none; }
.industry-panel.active {
  display: block;
  animation: panelIn 0.4s ease-out;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.panel-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0 0 18px;
}
.panel-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-600);
  margin: 0 0 28px;
}
.panel-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.panel-points li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-600);
  padding-left: 28px;
  position: relative;
}
.panel-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 2px;
  background: var(--brand);
}
.panel-points strong {
  color: var(--ink-900);
  font-weight: 600;
  margin-right: 8px;
}
.panel-stats {
  display: flex;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-100);
}
.panel-stat { display: flex; flex-direction: column; gap: 4px; }
.ps-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ps-label {
  font-size: 12.5px;
  color: var(--ink-500);
  max-width: 180px;
  line-height: 1.4;
}

/* Panel visual cards */
.panel-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #FFF8F0 0%, #FFE8D4 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
}
.panel-visual::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(232,119,34,0.25) 0%, transparent 60%);
  border-radius: 50%;
}
.visual-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
}
.visual-card-main {
  top: 36px;
  left: 32px;
  right: 32px;
  padding: 16px;
}
.vc-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-100);
  margin-bottom: 16px;
}
.vc-dot { width: 8px; height: 8px; border-radius: 50%; }
.vc-dot-red { background: #FF5F57; }
.vc-dot-amber { background: #FEBC2E; }
.vc-dot-green { background: #28C840; }
.vc-title {
  margin-left: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-500);
}
.vc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--ink-500);
}
.vc-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--positive-bg);
  color: var(--positive);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
.live-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--positive);
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(47,125,62,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(47,125,62,0); }
}

/* Bar chart (brand) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 16px;
  height: 140px;
  padding: 8px 8px 0;
}
.bar {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  height: 100%;
}
.bar::before {
  content: '';
  width: 100%;
  height: var(--h);
  background: linear-gradient(180deg, var(--positive) 0%, #4CA05E 100%);
  border-radius: 4px 4px 2px 2px;
  animation: barGrow 1.2s ease-out;
  transform-origin: bottom;
}
.bar-neutral::before { background: linear-gradient(180deg, var(--neutral) 0%, #CFA867 100%); }
.bar-negative::before { background: linear-gradient(180deg, var(--negative) 0%, #D65A4B 100%); }
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.bar-label {
  position: absolute;
  bottom: -22px;
  font-size: 11px;
  color: var(--ink-500);
}
.bar-val {
  position: absolute;
  top: calc(100% - var(--h) - 20px);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-800);
  font-family: var(--font-mono);
}

/* Peer rows (IR) */
.peer-row {
  display: grid;
  grid-template-columns: 90px 1fr 52px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
}
.peer-name { color: var(--ink-700); font-weight: 500; }
.peer-bar {
  height: 6px;
  background: var(--ink-100);
  border-radius: 100px;
  overflow: hidden;
}
.peer-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ink-400), var(--ink-500));
  border-radius: 100px;
  animation: peerFill 1.5s ease-out;
  transform-origin: left;
}
.peer-fill-accent { background: linear-gradient(90deg, var(--brand), var(--brand-deep)); }
@keyframes peerFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.peer-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-700);
  text-align: right;
}
.peer-highlight .peer-name,
.peer-highlight .peer-val { color: var(--brand); font-weight: 700; }

/* Line chart (gov) */
.line-chart {
  width: 100%;
  height: 140px;
  display: block;
}
.line-stroke {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 2s ease-out forwards;
}
@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}
.peak-pulse { animation: peakPulse 2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes peakPulse {
  0%, 100% { opacity: 0.15; r: 12; }
  50% { opacity: 0; r: 20; }
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--ink-400);
  font-family: var(--font-mono);
}
.label-peak { color: var(--brand); font-weight: 600; }

.visual-card-alert {
  bottom: 32px;
  right: 32px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
  z-index: 2;
  animation: alertFloat 3s ease-in-out infinite;
}
@keyframes alertFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-light);
  font-size: 18px;
}
.alert-title { font-size: 13px; font-weight: 700; color: var(--ink-900); }
.alert-desc { font-size: 11.5px; color: var(--ink-500); margin-top: 2px; }

/* ---------- PRODUCTS ---------- */
.products {
  padding: 120px 0;
  background: var(--ink-50);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-card:hover::before { opacity: 1; }
.product-card-featured {
  background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-800) 100%);
  color: var(--white);
  border-color: var(--ink-800);
}
.product-card-featured:hover { box-shadow: 0 30px 60px rgba(15,14,12,0.25); }
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
}
.product-card-featured .product-icon {
  background: rgba(232,119,34,0.15);
  color: #FFA861;
}
.product-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  padding: 4px 10px;
  background: var(--ink-50);
  border-radius: 100px;
}
.product-card-featured .product-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.product-tag-featured { background: var(--brand) !important; color: var(--white) !important; }
.product-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ink-900);
}
.product-card-featured .product-name { color: var(--white); }
.product-sub {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}
.product-card-featured .product-sub { color: #FFA861; }
.product-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0 0 24px;
  flex-grow: 1;
}
.product-card-featured .product-desc { color: rgba(255,255,255,0.75); }
.product-feat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-100);
}
.product-card-featured .product-feat { border-top-color: rgba(255,255,255,0.1); }
.product-feat li {
  font-size: 13.5px;
  color: var(--ink-600);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.product-card-featured .product-feat li { color: rgba(255,255,255,0.8); }
.product-feat li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 2px;
  background: var(--brand);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s ease;
}
.product-card-featured .product-link { color: #FFA861; }
.product-card:hover .product-link { gap: 10px; }

/* ---------- CASE STUDIES ---------- */
.cases {
  padding: 120px 0;
  background: var(--white);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.case-image {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
}
.case-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,14,12,0.08) 0%, rgba(15,14,12,0.45) 100%);
}
.case-image-brand {
  background-image: url('../images/newpage/case-hsbc-currency.jpg');
}
.case-image-ir {
  background-image: url('../images/newpage/case-xiaomi-trading.jpg');
}
.case-image-gov {
  background-image: url('../images/newpage/case-hkbus-infra.jpg');
}
.case-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.case-industry {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
}
.case-sep { color: var(--ink-300); }
.case-client { color: var(--ink-500); font-weight: 500; }
.case-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 14px;
}
.case-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0 0 24px;
  flex-grow: 1;
}
.case-desc strong { color: var(--ink-900); font-weight: 700; }
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--ink-50);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.case-stat { display: flex; flex-direction: column; gap: 2px; }
.cs-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1;
}
.cs-value-positive { color: var(--positive); }
.cs-value-negative { color: var(--negative); }
.cs-label {
  font-size: 10.5px;
  color: var(--ink-500);
  line-height: 1.3;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--brand-light);
  color: var(--brand-deep);
  border-radius: 100px;
  font-weight: 500;
}

.cases-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mini-quote {
  margin: 0;
  padding: 32px 36px;
  background: var(--ink-50);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
}
.mini-quote p {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 12px;
}
.mini-quote strong { color: var(--brand); }
.mini-quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
}

/* ---------- COVERAGE ---------- */
.coverage {
  padding: 120px 0;
  background: linear-gradient(160deg, var(--ink-900) 0%, #1F1D1A 50%, var(--ink-800) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.coverage::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(232,119,34,0.15) 0%, transparent 70%);
  filter: blur(40px);
}
.coverage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}
.coverage-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 20px;
}
.coverage-desc {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin: 0 0 40px;
  max-width: 520px;
}
.coverage-grid-markets {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.market-item {
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.market-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 6px;
}
.market-item p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.coverage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-tile {
  padding: 28px 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: transform 0.3s ease, background 0.3s ease;
}
.stat-tile:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}
.stat-tile-accent {
  background: linear-gradient(135deg, rgba(232,119,34,0.15) 0%, rgba(232,119,34,0.05) 100%);
  border-color: rgba(232,119,34,0.3);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-tile-accent .stat-num {
  background: linear-gradient(135deg, #FFA861, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-caption {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ---------- WHY ---------- */
.why {
  padding: 120px 0;
  background: var(--offwhite);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 72px;
}
.why-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%; height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.why-card:hover::before { transform: scaleX(1); }
.why-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.why-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 12px;
}
.why-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-600);
  margin: 0;
}

.awards-strip {
  padding: 48px 30px;
  background: linear-gradient(180deg, var(--white) 0%, var(--brand-light) 100%);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
}
.awards-head {
  margin-bottom: 36px;
  text-align: center;
}
.awards-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 8px;
}
.awards-head p {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
}
.awards-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.award-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.award-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(232, 119, 34, 0.12);
  border-color: var(--brand-soft);
}
.award-badge {
  width: 140px; height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  flex-shrink: 0;
}
.award-item-1 img {
  width: 76px !important;
}
.award-item-2 img {
  width: 120px !important;
}
.award-item-4 img {
  margin-top: 30px;
}
.award-badge img { width: 140px;}
.award-year {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--brand);
  color: var(--white);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: auto;
  height: auto;
}
.award-text { text-align: center; }
.award-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.35;
  margin-bottom: 4px;
}
.award-detail {
  font-size: 12.5px;
  color: var(--ink-500);
  line-height: 1.4;
}

/* ---------- MILESTONES ---------- */
.milestones {
  padding: 120px 0;
  background: var(--white);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 30px; left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), var(--brand-light));
}
.ms-item {
  position: relative;
  padding-top: 80px;
  text-align: left;
}
.ms-item::before {
  content: '';
  position: absolute;
  top: 22px; left: 0;
  width: 18px; height: 18px;
  background: var(--white);
  border: 3px solid var(--ink-300);
  border-radius: 50%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ms-item:hover::before { border-color: var(--brand); transform: scale(1.15); }
.ms-item-active::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(232,119,34,0.2);
}
.ms-year {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.ms-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 6px;
}
.ms-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0;
}

/* ---------- CTA ---------- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 50%, #F09040 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 70%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 0 0 20px;
  font-style: italic;
}
.cta-sub {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0 0 32px;
  max-width: 500px;
}
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.contact-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
}
a.contact-value:hover { text-decoration: underline; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 80px 0 32px;
  background: var(--ink-900);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 320px; }
.footer-logo { color: var(--white); margin-bottom: 16px; }
.footer-tag {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--brand);
  margin: 0 0 12px;
}
.footer-mission {
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin: 0;
}
.footer-mission-sub {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.footer-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin: 0 0 18px;
}
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a, .footer-list li {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s ease;
}
.footer-list a:hover { color: var(--brand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal {
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.footer-legal a { color: rgba(255,255,255,0.55); }
.footer-legal a:hover { color: var(--brand); }
.footer-legal .sep { margin: 0 6px; color: rgba(255,255,255,0.2); }
.footer-social { display: flex; gap: 12px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-link:hover {
  background: var(--brand);
  color: var(--white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .panel-grid { grid-template-columns: 1fr; gap: 48px; }
  .coverage-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .products-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .cases-testimonials { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-list { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .ms-item { padding-top: 0; padding-left: 36px; }
  .ms-item::before { top: 6px; left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.nav-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--ink-100);
    box-shadow: var(--shadow);
  }
  .main-nav.nav-open .nav-list {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    align-items: flex-start;
  }
  .login-link { display: none; }
  .mobile-toggle { display: flex; }
  .hero { min-height: auto; padding: 130px 0 80px; }
  .hero-metrics { gap: 16px; padding: 16px 20px; }
  .metric-divider { display: none; }
  .industry-tab { min-width: unset; padding: 14px 16px; }
  .industries, .products, .cases, .coverage, .why, .milestones { padding: 72px 0; }
  .cta { padding: 72px 0; }
  .panel-stats { flex-direction: column; gap: 16px; }
  .panel-visual { aspect-ratio: 3 / 4; padding: 20px; }
  .visual-card-main { top: 20px; left: 20px; right: 20px; }
  .visual-card-alert { bottom: 20px; right: 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .awards-list { grid-template-columns: 1fr; }
  .coverage-stats { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: 1fr; }
}

/* =========================================================
   v2 新增：4 大 KPI 數據條
   ========================================================= */
.kpi-strip {
  padding: 48px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--offwhite);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.kpi-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--ink-100);
  position: relative;
}
.kpi-item:last-child { border-right: none; }
.kpi-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin-bottom: 8px;
}
.kpi-plus,
.kpi-unit {
  font-size: 0.7em;
  font-weight: 700;
  margin-left: 2px;
  color: var(--brand);
}
.kpi-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-600);
  letter-spacing: 0.02em;
}
@media (max-width: 860px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .kpi-item:nth-child(2) { border-right: none; }
  .kpi-item:nth-child(1), .kpi-item:nth-child(2) {
    border-bottom: 1px solid var(--ink-100);
  }
}
@media (max-width: 520px) {
  .kpi-value { font-size: 30px; }
  .kpi-label { font-size: 12.5px; }
  .kpi-item { padding: 24px 12px; }
}

/* =========================================================
   v2 新增：三大決策場景 snapshot
   ========================================================= */
.scenarios {
  padding: 88px 0 72px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-100);
}
.section-head-center {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 48px;
}
.section-head-center .section-eyebrow { justify-content: center; }
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.scenario-card {
  display: block;
  padding: 32px 28px 28px;
  background: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 10px 30px rgba(15, 23, 42, 0.08));
  border-color: var(--brand);
}
.scenario-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(232, 119, 34, 0.1);
  color: var(--brand);
  margin-bottom: 22px;
}
.scenario-icon svg { width: 28px; height: 28px; }
.scenario-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.scenario-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 12px;
}
.scenario-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-600);
  margin: 0 0 18px;
}
.scenario-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  display: inline-block;
}
@media (max-width: 960px) {
  .scenarios-grid { grid-template-columns: 1fr; gap: 16px; }
  .scenarios { padding: 64px 0 48px; }
}

/* =========================================================
   v2 新增：官方客戶 Logo 容器細節
   ========================================================= */
.clients-logos-official .client-logo {
  padding: 8px 14px;
  min-height: 80px;
}
.clients-logos-official .client-logo svg {
  max-height: 64px;
}

/* =========================================================
   V4 新增：Hero 標語輪播（3 句交替淡入淡出）
   使用 grid 疊層讓高度由最高那句鎖定，避免切換時 hero 內容跳動
   ========================================================= */
.hero-headline-rotator {
  position: relative;
}
.rotator-slot {
  display: grid;
  grid-template-areas: "stack";
  align-items: start;
}
.rotator-line {
  grid-area: stack;
  display: block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  will-change: opacity, transform;
}
.rotator-line.rotator-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* Allow the accent gradient inside rotator lines to keep working */
.rotator-line .headline-line { display: block; }

/* Respect users' reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .rotator-line { transition: none; }
}

/* =========================================================
   V6 響應式總整理：桌面 / iPad 橫式 / iPad 直式 / 手機
   目標：所有裝置上都呈現專業、整齊、具品牌感的版面
   ========================================================= */

/* ---- 基礎觸控最佳化（所有裝置）---- */
@media (hover: none) {
  .btn, .nav-link, .login-link, .mobile-toggle,
  .product-link, .footer-list a, .industry-tab,
  .case-link, .ms-item a { touch-action: manipulation; }
}

/* ---- 圖片 / 圖表不溢出容器 ---- */
img, svg, canvas, video { max-width: 100%; height: auto; }
html, body { overflow-x: hidden; }

/* ---- 小筆電 / 大 iPad 橫式 (1024-1200px) ---- */
@media (max-width: 1200px) {
  :root { --gutter: clamp(20px, 4.5vw, 64px); }
  .section-title { font-size: clamp(30px, 4.2vw, 46px); }
  .hero-content { max-width: 720px; }
}

/* ---- iPad 橫式 (960-1024px) ---- */
@media (max-width: 1024px) {
  .clients-logos { grid-template-columns: repeat(6, 1fr); gap: 28px 20px; }
  .client-logo { max-width: 170px; height: 64px; }
  .clients-logos-official .client-logo { min-height: 72px; }
  .clients-logos-official .client-logo svg { max-height: 56px; }
  .hero { min-height: auto; padding: 140px 0 100px; }
  .hero-headline { font-size: clamp(42px, 6vw, 68px); }
}

/* ---- iPad 直式 (768-960px) ---- */
@media (max-width: 960px) {
  :root { --gutter: clamp(24px, 5vw, 48px); }
  /* Keep 3 up on tablet portrait for logos */
  .clients-logos { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; max-width: 680px; }
  .client-logo { max-width: 180px; height: 68px; }
  .clients-logos-official .client-logo { min-height: 76px; }
  .clients-logos-official .client-logo svg { max-height: 60px; }
  .clients-label { font-size: 13px; margin-bottom: 40px; }

  /* Nav - show hamburger earlier */
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-actions .btn-primary { padding: 10px 18px; font-size: 14px; }

  /* Section spacing tighter but still generous */
  .section-head { margin-bottom: 48px; }
  .section-title { font-size: clamp(28px, 4.6vw, 40px); line-height: 1.15; }
  .section-lede { font-size: 15.5px; }

  /* Solutions tabs - tabs stay in a row, allow scroll if needed */
  .industry-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .industry-tabs::-webkit-scrollbar { display: none; }
  .industry-tab { flex: 0 0 auto; min-width: 200px; padding: 14px 20px; white-space: nowrap; }
  .industry-tab .tab-num { font-size: 13px; }
  .industry-tab .tab-name { font-size: 15px; white-space: nowrap; }

  /* Panel stack order - text first then visual */
  .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .panel-visual { order: 2; max-width: 560px; margin: 0 auto; width: 100%; }

  /* Products / cases / why in 2 cols */
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  .product-card { max-width: 560px; margin: 0 auto; width: 100%; }
  .cases-grid { grid-template-columns: 1fr; gap: 20px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .awards-list { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .coverage-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner { grid-template-columns: 1fr; gap: 32px; }

  /* Footer - 2 cols with brand at top */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }

  /* Hero metrics stay horizontal but wrap */
  .hero-metrics { flex-wrap: wrap; gap: 20px 24px; }
}

/* ---- 手機 (≤720px) nav drawer 已存在 - 強化 ---- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .site-header .header-inner { padding: 12px 20px; }
  .logo-img { height: 34px; }

  .hero { padding: 110px 0 72px; min-height: auto; }
  .hero-eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.14em;
    padding: 6px 14px;
    margin-bottom: 24px;
  }
  .hero-headline { font-size: clamp(36px, 9vw, 48px); margin-bottom: 20px; }
  .hero-sub { font-size: 15px; line-height: 1.8; margin-bottom: 28px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-actions .btn { min-height: 48px; padding: 14px 22px; }

  .hero-metrics {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    width: 100%;
    max-width: 320px;
  }
  .metric { flex-direction: row; gap: 12px; align-items: baseline; }
  .metric-value { font-size: 22px; }
  .metric-label { font-size: 13px; }
  .metric-divider { display: none; }

  /* Section heads */
  .section-eyebrow { font-size: 12.5px; letter-spacing: 0.18em; margin-bottom: 12px; }
  .section-title { font-size: clamp(26px, 7.5vw, 34px); line-height: 1.2; }
  .section-lede { font-size: 15px; line-height: 1.7; }
  .section-head { margin-bottom: 36px; }

  /* Section paddings */
  .clients { padding: 56px 0 48px; }
  .industries, .products, .cases, .coverage, .why, .milestones, .about, .solutions { padding: 64px 0; }
  .cta { padding: 64px 0; }

  /* Clients: 2 cols on phone, larger logos */
  .clients-logos { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; max-width: 420px; }
  .client-logo { max-width: 160px; height: 60px; }
  .clients-logos-official .client-logo { min-height: 68px; padding: 6px 8px; }
  .clients-logos-official .client-logo svg { max-height: 52px; }
  .clients-label { font-size: 12px; margin-bottom: 32px; }

  /* Solutions tabs - horizontal scroll with clear indicator */
  .industry-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--ink-50);
    border-radius: var(--radius);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 32px;
  }
  .industry-tabs::-webkit-scrollbar { display: none; }
  .industry-tab {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 12px 18px;
    font-size: 14px;
    white-space: nowrap;
    gap: 10px;
  }
  .industry-tab .tab-num { display: inline-block; font-size: 12px; }
  .industry-tab .tab-name { font-size: 14.5px; white-space: nowrap; }

  /* Panel stats stacked */
  .panel-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .panel-stat-value { font-size: 32px; }
  .panel-visual { aspect-ratio: auto; padding: 16px; min-height: 240px; }
  .panel-sub { font-size: 22px; line-height: 1.3; }
  .panel-desc { font-size: 15px; }
  .panel-bullets li { font-size: 14.5px; }

  /* Cards */
  .product-card { padding: 28px 22px; }
  .product-name { font-size: 24px; }
  .product-desc { font-size: 14.5px; }
  .case-card { padding: 28px 22px; }

  /* Why grid 1 col with smaller type */
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .why-card { padding: 24px 20px; }
  .why-title { font-size: 18px; }

  /* Awards 2 cols */
  .awards-list { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* CTA */
  .cta-title { font-size: clamp(32px, 10vw, 46px); line-height: 1.1; }
  .cta-eyebrow { font-size: 12.5px; }
  .contact-card { padding: 24px 20px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; margin-bottom: 8px; }
  .footer-logo .logo-img-footer { height: 32px; }
  .footer-tag { font-size: 14px; }
  .footer-mission { font-size: 13px; }
  .footer-heading { font-size: 12.5px; }
  .footer-list a { font-size: 13.5px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; padding: 24px 0; }

  /* Buttons min touch 44px */
  .btn { min-height: 44px; padding: 12px 20px; }
  .btn-sm { min-height: 40px; padding: 10px 18px; }
  .mobile-toggle { width: 44px; height: 44px; }
  .nav-link { padding: 8px 0; display: inline-block; min-height: 40px; }

  /* Hero scroll hint - hide on tiny phones */
  .hero-scroll { display: none; }
}

/* ---- 小手機 (≤400px) 再收緊 ---- */
@media (max-width: 400px) {
  :root { --gutter: 18px; }
  .logo-img { height: 30px; }
  .header-actions .btn-primary { padding: 9px 14px; font-size: 13px; }
  .hero-headline { font-size: 34px; }
  .hero-sub { font-size: 14.5px; }
  .section-title { font-size: 26px; }
  .industry-tab { min-width: 150px; padding: 10px 14px; font-size: 13px; }
  .industry-tab .tab-name { font-size: 13.5px; }
  .clients-logos { max-width: 340px; gap: 28px 16px; }
  .client-logo { height: 56px; }
  .clients-logos-official .client-logo svg { max-height: 46px; }
}

/* ---- iPad 旋轉 landscape 特別優化 (1024×768) ---- */
@media (min-width: 961px) and (max-width: 1180px) and (orientation: landscape) {
  .main-nav { display: flex; }
  .mobile-toggle { display: none; }
  .nav-list { gap: 24px; }
  .nav-link { font-size: 13.5px; }
  .header-actions { gap: 14px; }
  .login-link { font-size: 13.5px; }
}

/* ---- 確保 footer-mission 單行不再有 sub ---- */
.footer-mission-sub { display: none; }


/* V7.2 — Hero map mobile fallback (D3 APAC) */
@media (max-width: 720px) {
  .hero-bg-image {
    background-image:
      linear-gradient(180deg, rgba(8,18,34,0.55) 0%, rgba(8,18,34,0.30) 40%, rgba(8,18,34,0.20) 100%),
      url('../images/newpage/hero-bg-mobile.png');
    background-size: cover, cover;
    background-position: center, center right;
  }
  .hero-bg-overlay {
    background:
      linear-gradient(to bottom, rgba(8,18,34,0.10) 0%, transparent 25%, transparent 75%, rgba(8,18,34,0.85) 100%);
  }
  .header-actions .btn-sm {
    display: none;
  }
}
.login-back {
  background-image: url(../images/newpage/login-bg-map.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .92;
}