/* ===========================
   HERO SECTION
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: #000; /* 强制背景纯黑，利于星空展现 */
}

/* Three.js Canvas */
#starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1; /* 置于底层 */
  pointer-events: none;
}

/* Cosmic Orb — signature element */
.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: conic-gradient(from 45deg, #3b82f6, #1e3a5f, #06b6d4, #3b82f6);
  filter: blur(120px);
  opacity: 0.12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  animation: orb-breathe 12s ease-in-out infinite;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 2;
}

.hero-orb--alt {
  width: 350px;
  height: 350px;
  background: conic-gradient(from 180deg, #06b6d4, #3b82f6, #1e3a5f, #06b6d4);
  filter: blur(100px);
  opacity: 0.08;
  transform: translate(-30%, -20%);
  animation: orb-drift 16s ease-in-out infinite reverse;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 var(--container-pad);
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-6);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-title-line {
  display: block;
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  forced-color-adjust: none;
}

.hero-title-accent {
  font-size: calc(var(--text-hero) * 0.72);
  color: #3b82f6;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  forced-color-adjust: none;
}

.hero-desc {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-12);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  z-index: 2;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

.hero-scroll-text {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-text {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-5);
}

.about-text:last-child {
  margin-bottom: 0;
}

/* Metric strip (horizontal stats) */
.metric-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  margin-top: var(--space-20);
  padding: var(--space-10) var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.metric {
  text-align: center;
  flex: 1;
}

.metric-top {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.metric-suffix {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-weight: 500;
}

.metric-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.metric-divider {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* ===========================
   SERVICES — SHOWCASE (商务展厅)
   =========================== */
.showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.showcase-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-12) var(--space-12) var(--space-16);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) ease,
    border-color var(--dur-base) ease;
}

.showcase-card--blue {
  background: linear-gradient(160deg, rgba(0,113,227,0.028) 0%, var(--color-bg-alt) 45%);
}

.showcase-card--violet {
  background: linear-gradient(160deg, rgba(118,75,162,0.028) 0%, var(--color-bg-alt) 45%);
}

.showcase-card--teal {
  background: linear-gradient(160deg, rgba(6,182,212,0.028) 0%, var(--color-bg-alt) 45%);
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

/* 巨型装饰编号 */
.showcase-number {
  position: absolute;
  top: -15px;
  right: var(--space-10);
  font-family: var(--font-display);
  font-size: 10rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-cosmic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

/* 左侧色彩签名条 */
.showcase-accent {
  position: absolute;
  top: var(--space-10);
  left: 0;
  width: 3px;
  height: 56px;
  border-radius: 0 3px 3px 0;
}

.showcase-card--blue .showcase-accent { background: #0071e3; }
.showcase-card--violet .showcase-accent { background: #3b82f6; }
.showcase-card--teal .showcase-accent { background: #06b6d4; }

.showcase-body {
  position: relative;
  z-index: 1;
}

.showcase-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.showcase-emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.showcase-card h3 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text);
}

.showcase-desc {
  font-size: var(--text-base);
  line-height: 1.8;
  max-width: 700px;
  color: var(--color-text-secondary);
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.showcase-tags span {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(0, 113, 227, 0.05);
  border: 1px solid rgba(0, 113, 227, 0.08);
}

/* 每张卡独立色彩系 */
.showcase-card--violet .showcase-tags span {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.08);
}

.showcase-card--teal .showcase-tags span {
  color: #0d9488;
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.08);
}

/* 底部商业指标 */
.showcase-metrics {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.showcase-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.showcase-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.showcase-metric-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* 配套服务横条 */
.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-16);
}

.capability {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) ease,
    border-color var(--dur-base) ease;
}

.capability:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.capability-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border-radius: var(--radius-md);
}

.capability h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.capability p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ===========================
   STATS SECTION (Dark)
   =========================== */
.stats-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #3b82f6, #1e3a5f, #06b6d4, #3b82f6);
  filter: blur(140px);
  opacity: 0.12;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.stats-inner {
  position: relative;
  z-index: 1;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-8);
}

.stat-block {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-text-light);
  line-height: 1;
  display: inline;
}

.stat-unit {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  margin-left: 2px;
}

.stat-text {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--space-3);
}

.stats-tagline {
  text-align: center;
  margin-top: var(--space-16);
  font-size: var(--text-2xl);
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  letter-spacing: 1px;
}

/* ===========================
   PLATFORM SECTION (Advanced)
   =========================== */
.platform-container {
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* ---- Tab Bar ---- */
.ptab-bar {
  position: relative;
  display: flex;
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
  padding: 6px;
  margin-bottom: var(--space-12);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--color-border);
}

.ptab-btn {
  position: relative;
  z-index: 1;
  padding: 0.8rem 2.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.ptab-btn.is-active {
  color: var(--color-text);
}

.ptab-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  background: var(--color-bg);
  border-radius: calc(var(--radius-xl) - 4px);
  box-shadow: var(--shadow-md);
  z-index: 0;
  transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

/* ---- Content Layout ---- */
.ptab-content-wrapper {
  min-height: 540px;
}

.ptab-panel {
  display: none;
  opacity: 0;
}

.ptab-panel.is-active {
  display: block;
  opacity: 1;
}

.ptab-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}

.ptab-info {
  padding-right: var(--space-8);
}

.ptab-title {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.ptab-text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  line-height: 1.6;
}

/* ---- Feature Cards ---- */
.ptab-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ptab-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.4s var(--ease-out);
  cursor: default;
}

.ptab-feature-item:hover {
  transform: translateX(12px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  background: var(--color-bg-alt);
}

.ptab-feature-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.ptab-feature-item:hover .ptab-feature-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--color-accent-light);
}

.ptab-feature-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.ptab-feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---- Visual Side (Unified Dashboard) ---- */
.ptab-visual {
  position: relative;
}

.ptab-app {
  width: 100%;
  border-radius: 16px;
  background: var(--color-bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Title bar */
.ptab-app-bar {
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ptab-app-dots {
  display: flex;
  gap: 6px;
}

.ptab-app-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ptab-app-dots span:nth-child(1) { background: #ff5f57; }
.ptab-app-dots span:nth-child(2) { background: #febc2e; }
.ptab-app-dots span:nth-child(3) { background: #28c840; }

.ptab-app-title {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* Body */
.ptab-app-body {
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Metrics row */
.ptab-app-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ptab-app-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ptab-app-metric:hover {
  border-color: var(--app-accent);
  background: rgba(255, 255, 255, 0.06);
}

.ptab-app-val {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ptab-app-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

/* Chart area */
.ptab-app-chart {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 20px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ptab-app-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
}

.ptab-app-bars span {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(to top, var(--app-accent), transparent);
  border-radius: 4px 4px 0 0;
  opacity: 0.5;
  transition: opacity 0.3s ease, height 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ptab-app-chart:hover .ptab-app-bars span {
  opacity: 0.8;
}

/* Status bar */
.ptab-app-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ptab-app-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===========================
   CHANNELS SECTION
   =========================== */
.marquee {
  overflow: hidden;
  padding: var(--space-10) 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  will-change: transform;
  /* animation set dynamically by JS for seamless looping */
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* Logo-only marquee items */
.marquee-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.marquee-logo:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.marquee-logo svg {
  width: 38px;
  height: 38px;
  transition: transform var(--dur-base) var(--ease-out);
}

.marquee-logo:hover svg {
  transform: scale(1.08);
}

.marquee-logo img {
  width: 38px;
  height: 38px;
  transition: transform var(--dur-base) var(--ease-out);
}

.marquee-logo:hover img {
  transform: scale(1.08);
}

/* Feature cards */
.features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.feature-card {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-cosmic-soft);
  font-size: 1.4rem;
}

.feature-card h4 {
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.feature-card p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.08);
}

.contact-card-flag {
  font-size: 2rem;
  line-height: 1;
}

.contact-card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.contact-card-company {
  font-size: var(--text-base);
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

.contact-card-en {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

.contact-card-location {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.contact-card-row {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.contact-card-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-card-value {
  font-size: var(--text-base);
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-card-value:hover {
  color: var(--color-accent-hover);
}

/* Legacy — keep for compat */
.contact-orb--alt {
  width: 180px;
  height: 180px;
  filter: blur(60px);
  opacity: 0.12;
  animation: orb-drift 14s ease-in-out infinite;
  top: 20%;
  right: 10%;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  position: relative;
  z-index: 1;
  background: var(--color-bg-alt);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-16);
  margin-bottom: var(--space-12);
}

.footer-brand p {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  max-width: 360px;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.footer-col a,
.footer-col span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--dur-fast) ease;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-bottom span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
