/* ============================================================
   AvaTrade 爱华 - 金融科技落地页主样式
   主色调: #4C61FF | 辅助色: #E5FF91 | 背景: #101820
   CTA按钮: #FF5100 | 尺寸: 320px × 72px
   ============================================================ */

/* ---- CSS 变量定义 ---- */
:root {
  --color-primary: #4C61FF;
  --color-accent: #E5FF91;
  --color-bg-dark: #101820;
  --color-bg-card: #161f2e;
  --color-bg-card2: #1a2535;
  --color-cta: #FF5100;
  --color-white: #ffffff;
  --color-text-muted: rgba(255,255,255,0.65);
  --color-border: rgba(76,97,255,0.2);
  --radius-card: 16px;
  --radius-btn: 0px;
  --transition-base: 0.3s ease;
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- 全局重置 ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-system);
  background-color: var(--color-bg-dark);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ---- 通用容器 ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- CTA 按钮 ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 72px;
  background: var(--color-cta);
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 81, 0, 0.45);
}

.btn-cta:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 81, 0, 0.3);
}

/* 导航栏小号按钮 */
.btn-cta-sm {
  width: auto !important;
  height: 44px !important;
  padding: 0 28px;
  font-size: 15px !important;
}

@media (max-width: 480px) {
  .btn-cta {
    width: 100%;
    max-width: 320px;
    height: 60px;
    font-size: 16px;
  }
}

/* ---- 通用区块标题 ---- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 800px;
}

/* ---- 分隔线装饰 ---- */
.divider-line {
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin: 16px 0 24px;
}

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(16, 24, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo img {
  height: 36px;
  width: auto;
  /* 新Logo本身已是白色设计，无需滤镜 */
  filter: none;
}

/* ============================================================
   板块一：Hero Banner
   - 修改3：背景换为图片，文案靠左，删除badge
   ============================================================ */
#hero {
  position: relative;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

/* 背景图层 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* 确保PNG图片正确渲染 */
  image-rendering: auto;
}

/* 背景遮罩：左侧深色，右侧渐变透明，电影海报感 */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,12,22,0.92) 0%,
    rgba(10,15,28,0.80) 45%,
    rgba(8,12,22,0.55) 75%,
    rgba(8,12,22,0.35) 100%
  );
}

/* Hero 内容容器：靠左，在1200px容器内左对齐 */
.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 内容靠左 */
  padding-top: 60px;
  padding-bottom: 140px; /* 为底部数据条留空间 */
  width: 100%;
}

.hero-content {
  max-width: 580px;
  /* 确保内容在容器左侧 */
  margin-left: 0;
  margin-right: auto;
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

.hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-title span {
  /* 默认白色（展开层覆盖） */
  color: var(--color-white);
}

/* 多资产 - 黄综E5FF91 */
.hero-highlight-green {
  color: #E5FF91 !important;
  -webkit-text-fill-color: #E5FF91 !important;
  background: none !important;
}

/* 交易 - 纯白色 */
.hero-highlight-white {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.hero-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-cta-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

.hero-cta-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero 底部数据统计条 */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10,15,28,0.85);
  border-top: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.hero-stats .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px 24px;
  gap: 16px;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* “大”字缩小字号 */
.stat-suffix-small {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-white);
  vertical-align: baseline;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  #hero {
    min-height: auto;
    padding-top: 72px;
  }
  .hero-container {
    padding-bottom: 140px;
  }
}

@media (max-width: 600px) {
  .hero-stats .container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    justify-content: center;
  }
  .stat-divider { display: none; }
  /* 行1：870万+ 和 10大 各占半行（含 divider 元素，实际为第1、第3个子元素） */
  .hero-stats .container > div:nth-child(1),
  .hero-stats .container > div:nth-child(3) { flex: 0 0 45%; }
  /* 行2：150+ 、 1250+ 、 20年+ 三个平分居中（第5、第7、第9个子元素） */
  .hero-stats .container > div:nth-child(5),
  .hero-stats .container > div:nth-child(7),
  .hero-stats .container > div:nth-child(9) { flex: 0 0 30%; text-align: center; }
  .hero-container { padding-bottom: 200px; }
}

/* ============================================================
   板块二：品牌介绍
   ============================================================ */
#about {
  padding: 100px 0;
  background: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(76,97,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
}

.about-image-wrap img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius-card) + 1px);
  background: linear-gradient(135deg, rgba(76,97,255,0.4), transparent 50%, rgba(229,255,145,0.2));
  z-index: 1;
  pointer-events: none;
}

.about-text .section-desc {
  max-width: 100%;
}

/* 平台标签：一行展示（修改4） */
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* 平台标签：横跨整个板块，两端对齐居中分布 */
.platform-badges-full {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  padding: 20px 32px;
  background: rgba(76,97,255,0.04);
  border: 1px solid rgba(76,97,255,0.15);
  border-radius: 16px;
}

.platform-badges-full .platform-badge {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 100px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
}

@media (max-width: 640px) {
  .platform-badges-full {
    padding: 16px;
    gap: 8px;
  }
  .platform-badges-full .platform-badge {
    flex: 1 1 calc(33% - 8px);
    min-width: 80px;
    font-size: 12px;
    padding: 10px 12px;
  }
}

/* 一行展示变体 */
.platform-badges-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(76,97,255,0.3) transparent;
}

.platform-badges-row::-webkit-scrollbar {
  height: 3px;
}
.platform-badges-row::-webkit-scrollbar-track {
  background: transparent;
}
.platform-badges-row::-webkit-scrollbar-thumb {
  background: rgba(76,97,255,0.3);
  border-radius: 2px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(76,97,255,0.1);
  border: 1px solid rgba(76,97,255,0.25);
  font-size: 13px;
  cursor: default;
  font-weight: 600;
  color: var(--color-white);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.platform-badge:hover {
  background: rgba(76,97,255,0.25);
  border-color: rgba(76,97,255,0.6);
  transform: translateY(-2px);
}

.platform-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-wrap { order: -1; }
  .platform-badges-row { flex-wrap: wrap; overflow-x: visible; }
}

/* ============================================================
   板块三：为什么选择 AvaTrade
   - 手风琴横向展开布局（修改1+2）
   ============================================================ */
#why {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, #0d1220 0%, var(--color-bg-dark) 100%);
}

.why-header {
  text-align: center;
  margin-bottom: 60px;
}

.why-header .divider-line {
  margin: 16px auto 24px;
}

/* 手风琴容器：全宽，横向排列 */
.why-accordion {
  display: flex;
  height: 520px;
  overflow: hidden;
  cursor: pointer;
}

/* 单张手风琴卡片 */
.acc-card {
  position: relative;
  overflow: hidden;
  /* 默认收缩宽度 */
  flex: 1;
  min-width: 72px;
  transition: flex 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.acc-card:last-child {
  border-right: none;
}

/* 激活状态：展开 */
.acc-card.acc-active {
  flex: 4.5;
}

/* 背景图层 */
.acc-bg {
  position: absolute;
  inset: 0;
}

.acc-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s ease;
}

.acc-card.acc-active .acc-bg img {
  transform: scale(1.04);
}

/* 背景遮罩 */
.acc-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8,12,22,0.3) 0%,
    rgba(8,12,22,0.6) 50%,
    rgba(8,12,22,0.92) 100%
  );
  transition: background 0.4s ease;
}

.acc-card.acc-active .acc-bg-overlay {
  background: linear-gradient(
    180deg,
    rgba(8,12,22,0.15) 0%,
    rgba(8,12,22,0.45) 50%,
    rgba(8,12,22,0.90) 100%
  );
}

/* 内容区 */
.acc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
  z-index: 2;
}

/* 序号标签 */
.acc-label {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 横向渐变：左侧透明度20% → 右侧100%，整体透明度80% */
  background: linear-gradient(
    90deg,
    rgba(229, 255, 145, 0.20) 0%,
    rgba(229, 255, 145, 1.00) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 标题 */
.acc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.3;
  margin-bottom: 0;
  /* 收缩时：单行截断 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size 0.3s ease;
}

/* 展开时：标题变大，允许换行 */
.acc-card.acc-active .acc-title {
  font-size: 22px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  margin-bottom: 12px;
}

/* 描述文字：默认隐藏，展开时显示 */
.acc-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease 0.1s;
}

.acc-card.acc-active .acc-desc {
  max-height: 120px;
  opacity: 1;
}

/* 顶部高亮线：激活时显示 */
.acc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.acc-card.acc-active::before {
  opacity: 1;
}

.why-cta-wrap {
  text-align: center;
  margin-top: 56px;
}

/* 移动端：堆叠显示 */
@media (max-width: 768px) {
  .why-accordion {
    flex-direction: column;
    height: auto;
    /* 不设 overflow:hidden，否则展开的卡片内容会被容器裁切 */
  }
  .acc-card {
    flex: none;
    min-width: unset;
    width: 100%;
    height: 72px;
    overflow: hidden;
    transition: height 0.45s cubic-bezier(0.4,0,0.2,1);
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* pan-y: 允许垂直滚动，同时不阻断点击事件 */
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
  }
  .acc-card.acc-active {
    /* 使用足够大的固定高度确保内容展示，同时保持 overflow:hidden 避免溢出 */
    height: 340px;
  }
  /* 收缩时内容绝对定位在底部 */
  .acc-card:not(.acc-active) .acc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px 14px;
  }
  /* 展开时内容相对定位，自然占据高度 */
  .acc-card.acc-active .acc-content {
    position: relative;
    bottom: auto;
    padding: 20px 20px 24px;
    z-index: 2;
  }
  /* 收缩时隐藏序号大字 */
  .acc-card:not(.acc-active) .acc-label {
    display: none;
  }
  .acc-title { font-size: 16px; }
  .acc-card.acc-active .acc-title {
    font-size: 18px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    margin-bottom: 10px;
  }
  .acc-card.acc-active .acc-desc {
    max-height: 200px;
    opacity: 1;
  }
}

/* ============================================================
   板块四：交易产品（实时行情 + 可点击产品名）
   ============================================================ */
#products {
  padding: 100px 0;
  background: var(--color-bg-dark);
  position: relative;
}

#products::after {
  content: '';
  position: absolute;
  top: 0;
  right: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(229,255,145,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.products-header {
  text-align: center;
  margin-bottom: 60px;
}

.products-header .divider-line {
  margin: 16px auto 24px;
}

/* 产品选项卡 */
.products-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.tab-btn {
  padding: 10px 24px;
  border-radius: 0;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-system);
}

.tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-white);
}

.tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

/* ============================================================
   产品板块：多行Marquee从手机后方穿越（还原参考视频）
   ============================================================ */

/* section背景：深色，与整体网页风格一致 */
#products {
  background: #101820;
  padding: 80px 0 80px;
  overflow: hidden;
}

/* 标题文字：白色，与其他板块一致 */
#products .section-title {
  color: #ffffff;
}

#products .divider-line {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* 产品板块内容居中 */
.products-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- 产品板块 subtitle ---- */
.products-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  text-align: center;
  line-height: 1.8;
}

/* ============================================================
   产品板块：Marquee舞台 + 手机居中穿越效果（深色风格）
   ============================================================ */

/* Marquee舞台容器 */
.pms-stage {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: 56px;
  overflow: hidden;
}

/* 每行容器 */
.pms-row {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.pms-row-1 { top: 60px;  z-index: 2; }
.pms-row-2 { top: 220px; z-index: 2; }
.pms-row-3 { top: 380px; z-index: 12; }

/* 滚动轨道 */
.pms-track {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  padding: 8px 0;
}

.pms-left  { animation: pmsLeft  30s linear infinite; }
.pms-right { animation: pmsRight 34s linear infinite; }
.pms-slow  { animation-duration: 38s; }

@keyframes pmsLeft  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes pmsRight { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* 单个产品标签（深色风格） */
.pms-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 50px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  cursor: default;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.pms-chip:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(229,255,145,0.4);
  transform: translateY(-2px) scale(1.03);
}

/* 图标圆形容器 */
.pms-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
}

/* 各产品图标——使用外部CDN加载，失败时显示颜色圆 */
.pms-icon-ms       { background-color: #00a4ef; background-image: url('https://logo.clearbit.com/microsoft.com'); }
.pms-icon-apple    { background-color: #555;    background-image: url('https://logo.clearbit.com/apple.com'); }
.pms-icon-nvidia   { background-color: #76b900; background-image: url('https://logo.clearbit.com/nvidia.com'); }
.pms-icon-tesla    { background-color: #cc0000; background-image: url('https://logo.clearbit.com/tesla.com'); }
.pms-icon-google   { background-color: #4285f4; background-image: url('https://logo.clearbit.com/google.com'); }
.pms-icon-jd       { background-color: #e1251b; background-image: url('https://logo.clearbit.com/jd.com'); }
.pms-icon-amazon   { background-color: #ff9900; background-image: url('https://logo.clearbit.com/amazon.com'); }
.pms-icon-meta     { background-color: #0866ff; background-image: url('https://logo.clearbit.com/meta.com'); }
.pms-icon-netflix  { background-color: #e50914; background-image: url('https://logo.clearbit.com/netflix.com'); }
.pms-icon-alibaba  { background-color: #ff6a00; background-image: url('https://logo.clearbit.com/alibaba.com'); }
/* 商品类图标——纯 CSS颜色圆 + emoji备用 */
.pms-icon-gold     { background: radial-gradient(circle, #f5c842, #c8860a); }
.pms-icon-silver   { background: radial-gradient(circle, #d0d0d0, #888); }
.pms-icon-oil      { background: radial-gradient(circle, #5a3e1b, #2a1a00); }
.pms-icon-soybean  { background: radial-gradient(circle, #8bc34a, #558b2f); }
.pms-icon-natgas   { background: radial-gradient(circle, #42a5f5, #0d47a1); }
.pms-icon-dji      { background: radial-gradient(circle, #1565c0, #0d47a1); }
.pms-icon-platinum { background: radial-gradient(circle, #b0bec5, #607d8b); }
.pms-icon-wti      { background: radial-gradient(circle, #795548, #3e2723); }
.pms-icon-eurusd   { background: radial-gradient(circle, #1976d2, #0d47a1); }
.pms-icon-gbpusd   { background: radial-gradient(circle, #c62828, #7f0000); }
.pms-icon-eurgbp   { background: radial-gradient(circle, #6a1b9a, #4a148c); }
.pms-icon-nasdaq   { background: radial-gradient(circle, #00897b, #004d40); }
.pms-icon-sp500    { background: radial-gradient(circle, #e53935, #b71c1c); }

/* 手机Mockup */
.pms-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  animation: phoneBob 5s ease-in-out infinite;
}

@keyframes phoneBob {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-12px); }
}

.pms-phone-frame {
  width: 260px;
  border-radius: 44px;
  background: #0a0f1e;
  border: 8px solid #1e2a3a;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 60px rgba(76,97,255,0.25),
    0 30px 80px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.4);
  overflow: hidden;
  position: relative;
}

/* 顶部刻刀山 */
.pms-phone-notch {
  width: 100px;
  height: 24px;
  background: #0a0f1e;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.pms-phone-screen {
  width: 100%;
  overflow: hidden;
  margin-top: -4px;
}

.pms-phone-screen img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* 底部Home Bar */
.pms-phone-bar {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  margin: 8px auto;
}

/* 响应式 */
@media (max-width: 768px) {
  .pms-stage { height: 480px; }
  .pms-row-1 { top: 30px; }
  .pms-row-2 { top: 180px; }
  .pms-row-3 { top: 320px; }
  .pms-phone-frame { width: 190px; border-radius: 32px; }
  .pms-phone-notch { width: 70px; height: 18px; }
  .pms-chip { font-size: 12px; padding: 8px 14px 8px 8px; }
  .pms-icon { width: 26px; height: 26px; }
}

@media (max-width: 480px) {
  .pms-stage { height: 400px; }
  .pms-row-1 { top: 20px; }
  .pms-row-2 { top: 150px; }
  .pms-row-3 { top: 270px; }
  .pms-phone-frame { width: 150px; border-radius: 26px; }
}

/* ============================================================
   产品板块：6宫格卡片布局（v24样式）
   ============================================================ */

.products-grid-wrap {
  width: 100%;
  padding: 0;
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.prod-card {
  background: rgba(10,18,35,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

.prod-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76,97,255,0.35);
  box-shadow: 0 8px 32px rgba(76,97,255,0.15);
}

.prod-card-content {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  width: 60%;
}

.prod-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.prod-card-icon svg {
  width: 100%;
  height: 100%;
}

.prod-card-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}

.prod-card-desc {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.prod-card-img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 30%, transparent 100%);
  transition: transform 0.4s ease;
}

.prod-card:hover .prod-card-img img {
  transform: scale(1.05);
}

/* 响应式：平板2列 */
@media (max-width: 900px) {
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* 响应式：手机1列 */
@media (max-width: 560px) {
  .prod-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }
  .prod-card {
    padding: 24px 20px;
  }
  .prod-card-title {
    font-size: 18px;
  }
}

/* ============================================================
   板块五：三步开启交易（修改7：文案修正）
   ============================================================ */
#steps {
  padding: 100px 0;
  background: linear-gradient(180deg, #0d1220 0%, var(--color-bg-dark) 100%);
  text-align: center;
}

.steps-header {
  margin-bottom: 16px;
}

.steps-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 64px;
}

.steps-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto 56px;
}

.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-item:nth-child(1) { transition-delay: 0s; }
.step-item:nth-child(3) { transition-delay: 0.15s; }
.step-item:nth-child(5) { transition-delay: 0.3s; }

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #7b8fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: var(--color-white);
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(76,97,255,0.4);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 步骤连接箭头 */
.step-connector {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 28px;
  opacity: 0.6;
}

.step-connector svg {
  width: 60px;
  height: 20px;
}

@media (max-width: 600px) {
  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .step-connector {
    transform: rotate(90deg);
    padding-top: 0;
  }
  .step-item {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================================
   板块六：监管保障
   ============================================================ */
#regulation {
  padding: 60px 0 40px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* 白色背景下标题深色 */
.reg-title-light {
  color: #0d1220 !important;
}

/* 分隔线：蓝绿渐变 */
#regulation .divider-line {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.regulation-header {
  text-align: center;
  margin-bottom: 48px;
}

.regulation-header .divider-line {
  margin: 16px auto 0;
}

/* 监管内容：左地图 + 右列表 */
.reg-flex-box {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

/* 左侧地图列 */
.reg-map-col {
  flex: 1 1 55%;
  min-width: 0;
}

.reg-map-col img {
  width: 100%;
  height: auto;
  display: block;
}

/* 右侧列表 */
.reg-list {
  flex: 1 1 40%;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* 圆形徽章 */
.reg-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1;
}

.reg-name {
  font-size: 15px;
  font-weight: 700;
  color: #4C61FF;
  margin: 0 0 2px;
  line-height: 1.3;
}

.reg-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* 移动端：隐藏地图，列表单列展示 */
@media (max-width: 768px) {
  .reg-flex-box {
    flex-direction: column;
    gap: 24px;
  }
  .reg-map-col {
    display: none; /* 移动端隐藏地图 */
  }
  .reg-list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  .reg-badge {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
  .reg-name {
    font-size: 14px;
  }
  .reg-desc {
    font-size: 12px;
  }
}

/* ============================================================
   板块七：荣誉奖项
   ============================================================ */
#awards {
  padding: 20px 0 40px;
  background: #ffffff !important;
  overflow: hidden;
}

.awards-header {
  text-align: center;
  margin-bottom: 48px;
}

.awards-header .divider-line {
  margin: 16px auto 24px;
}

.awards-image-wrap {
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.awards-image-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.awards-image-wrap img {
  width: 100%;
  filter: none;
}

/* ============================================================
   板块八：合作伙伴
   ============================================================ */
#partners {
  padding: 20px 0 40px;
  background: #ffffff !important;
}

.partners-header {
  text-align: center;
  margin-bottom: 48px;
}

.partners-header .divider-line {
  margin: 16px auto 24px;
}

.partners-showcase {
  max-width: 960px;
  margin: 0 auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.partners-showcase img {
  max-height: 120px;
  width: auto;
  filter: none;
  transition: transform 0.3s ease;
}

.partners-showcase img:hover {
  transform: scale(1.04);
}

@media (max-width: 600px) {
  .partners-showcase { padding: 24px; gap: 24px; }
  .partners-showcase img { max-height: 60px; }
}

/* ============================================================
   免责声明 + 页脚
   ============================================================ */
.disclaimer {
  background: #0a0f16;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.disclaimer p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  line-height: 1.7;
}

footer {
  background: #080d13;
  padding: 40px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo img {
  height: 32px;
  /* 新Logo本身已是白色设计，无需滤镜 */
  filter: none;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  margin-top: 24px;
}

/* ============================================================
   通用入场动画（Intersection Observer 触发）
   ============================================================ */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================================
   滚动进度条（顶部）
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   响应式：平板端
   ============================================================ */
@media (max-width: 768px) {
  #about, #why, #products, #steps, #regulation, #awards, #partners {
    padding: 64px 0;
  }
  .section-title { font-size: clamp(24px, 5vw, 36px); }
  .hero-stats .container { gap: 8px; }
  .stat-number { font-size: 18px; }
  .stat-label { font-size: 11px; }
}

/* ============================================================
   响应式：手机端
   ============================================================ */
@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-desc { font-size: 14px; }
  .about-grid { gap: 28px; }
  .step-number { width: 64px; height: 64px; font-size: 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { gap: 16px; }
}

/* ============================================================
   打印样式
   ============================================================ */
@media print {
  .navbar, .scroll-progress { display: none; }
  body { background: white; color: black; }
}

/* ============================================================
   高对比度模式
   ============================================================ */
@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(76,97,255,0.5);
    --color-text-muted: rgba(255,255,255,0.85);
  }
}

/* ============================================================
   减少动画模式
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in-up,
  .hero-title,
  .hero-desc,
  .hero-cta-wrap,
  .step-item,
  .awards-image-wrap,
  .acc-card,
  .reg-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   TradingView Logo 覆盖层：遮挡左下角TV Logo链接
   ============================================================ */
.tv-logo-blocker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 60px;
  background: #0d1117; /* 与widget背景色一致的深色 */
  z-index: 10;
  pointer-events: none; /* 不影响图表交互 */
}

/* ============================================================
   移动端专项适配（v29）
   PC端保持不变，以下规则仅作用于手机端
   ============================================================ */

/* ---- 1. 顶部导航栏 Logo 和按钮缩小 40% ---- */
@media (max-width: 768px) {
  .navbar {
    height: 48px;
  }
  #hero {
    padding-top: 48px;
  }
  .navbar-logo img {
    height: 22px; /* 原36px × 0.6 ≈ 22px */
  }
  .btn-cta-sm {
    height: 28px !important;
    padding: 0 14px !important;
    font-size: 12px !important;
  }
}

/* ---- 2. 为什么选择板块：移动端手风琴点击修复 ---- */
/* 已在主手风琴CSS块中统一处理，此处不再重复定义 */

/* ---- 3. 监管板块：已用纯代码重建，PC左地图+右列表，移动端只显列表 ---- */
/* 相关样式已在监管板块层内定义 */

/* ---- 4. 移动端荣誉奖项和合作伙伴板块上方空白缩减 70% ---- */
@media (max-width: 768px) {
  #awards {
    padding-top: 24px !important; /* 原80px × 0.3 ≈ 24px */
  }
  #partners {
    padding-top: 24px !important; /* 原80px × 0.3 ≈ 24px */
  }
  .awards-image-wrap {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .partners-showcase {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .awards-header {
    margin-bottom: 16px !important;
  }
  .partners-header {
    margin-bottom: 16px !important;
  }
}

/* ============================================================
   移动端"为什么选择"板块 — 原生 details/summary 替代手风琴
   PC端：隐藏此列表，显示手风琴
   移动端：隐藏手风琴，显示此列表
   ============================================================ */

/* PC端：隐藏移动端列表 */
.why-mobile-list {
  display: none;
}

@media (max-width: 768px) {
  /* 隐藏PC端手风琴 */
  .why-accordion {
    display: none !important;
  }

  /* 显示移动端列表 */
  .why-mobile-list {
    display: block;
    width: 100%;
    padding: 0 0 8px;
  }

  /* 每个条目 */
  .wml-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: var(--color-bg-card);
    margin-bottom: 2px;
  }

  .wml-item[open] {
    background: var(--color-bg-card2);
  }

  /* summary 行：缩略图 + 标题 + 箭头 */
  .wml-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }

  /* 去掉默认三角箭头 */
  .wml-summary::-webkit-details-marker { display: none; }
  .wml-summary::marker { display: none; }

  /* 缩略图 */
  .wml-img-wrap {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1220;
  }

  .wml-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* 标题 */
  .wml-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
  }

  /* 箭头指示器 */
  .wml-arrow {
    flex: 0 0 20px;
    font-size: 20px;
    color: var(--color-accent);
    transition: transform 0.3s ease;
    display: inline-block;
    line-height: 1;
  }

  .wml-item[open] .wml-arrow {
    transform: rotate(180deg);
  }

  /* 展开内容区 */
  .wml-body {
    padding: 0 16px 16px 80px; /* 左侧与标题对齐 */
  }

  .wml-body p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin: 0;
  }
}
