
/* ============================================================
   A2A Hub V2.2 — CSS Variables (Theme System)
   ============================================================ */
:root {
  --bg: #090E1A;
  --bg-card: rgba(13,21,37,0.8);
  --bg-card-solid: #0D1525;
  --bg-nav: rgba(9,14,26,0.98);
  --bg-input: rgba(255,255,255,0.06);
  --text-primary: #fff;
  --text-secondary: #D0D8E0;
  --text-tertiary: #B4BBC8;
  --gold: #F2D070;
  --gold-dark: #E0B860;
  --gold-gradient: linear-gradient(135deg, #F2D070, #E0B860);
  --border: rgba(255,255,255,0.12);
  --border-light: rgba(255,255,255,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --section-bg: rgba(255,255,255,0.02);
  --table-accent: rgba(13,21,37,0.9);
}

:root.light-theme,
[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-card: rgba(255,255,255,0.95);
  --bg-card-solid: #FFFFFF;
  --bg-nav: rgba(255,255,255,0.97);
  --bg-input: rgba(0,0,0,0.04);
  --text-primary: #2D2D2D;
  --text-secondary: #777777;
  --text-tertiary: #AAAAAA;
  --gold: #c9a227;
  --gold-dark: #C49B30;
  --gold-gradient: linear-gradient(135deg, #D4AF37, #C49B30);
  --border: rgba(0,0,0,0.08);
  --border-light: rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --section-bg: rgba(0,0,0,0.02);
  --table-accent: rgba(0,0,0,0.02);
}




/* ============================================================
   V2.0 P0-M4 Additions — appended to existing CSS
   ============================================================ */

/* === H1 Fixed: orange → gold === */
.a2a-btn-primary {
  background: var(--gold-gradient);
  color: var(--bg);
  border: none;
}
.a2a-btn-outline {
  background: transparent;
  border: 2px solid var(--gold-dark);
  color: var(--gold-dark);
}

/* === H2: Nav CTA Button === */
.a2a-nav-cta {
  background: var(--gold-gradient) !important;
  color: var(--bg) !important;
  padding: 8px 20px !important;
  border-radius: 24px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: all 0.3s ease !important;
}
.a2a-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(230,194,110,0.3);
  opacity: 1 !important;
}

/* === H2: Mobile Hamburger === */
.a2a-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}
.a2a-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .a2a-nav-toggle { display: flex; }
  .a2a-nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--bg-nav);
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
  }
  .a2a-nav-links.open { display: flex; }
  .a2a-nav-links a { padding: 14px 24px !important; width: 100%; }
}

/* === H4: Hero Visual Nodes === */
.a2a-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.a2a-hero-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,194,110,0.15), transparent 70%);
  animation: a2a-glow-pulse 3s ease-in-out infinite;
}
@keyframes a2a-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}
.a2a-hero-nodes {
  position: relative;
  width: 260px;
  height: 260px;
}
.a2a-hero-node {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(13,21,37,0.95);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  animation: a2a-node-float 4s ease-in-out infinite;
}
.a2a-hero-node.store   { top: 0; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.a2a-hero-node.voice   { top: 25%; right: 0; animation-delay: 0.6s; }
.a2a-hero-node.skill   { bottom: 25%; right: 0; animation-delay: 1.2s; }
.a2a-hero-node.pay     { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: 1.8s; }
.a2a-hero-node.center  {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 68px;
  background: var(--gold-gradient);
  color: var(--bg);
  font-weight: 800;
  font-size: 16px;
  border: none;
  box-shadow: 0 0 30px rgba(230,194,110,0.3);
  animation: none;
}
@keyframes a2a-node-float {
  0%, 100% { transform: translate(var(--tx), var(--ty)); }
  50% { transform: translate(var(--tx), calc(var(--ty) - 6px)); }
}
.a2a-hero-node.store  { --tx: -50%; --ty: 0; }
.a2a-hero-node.voice  { --tx: 0; --ty: 0; }
.a2a-hero-node.skill  { --tx: 0; --ty: 0; }
.a2a-hero-node.pay    { --tx: -50%; --ty: 0; }
@media (max-width: 768px) {
  .a2a-hero-visual { min-height: 240px; }
  .a2a-hero-glow { width: 180px; height: 180px; }
  .a2a-hero-nodes { width: 180px; height: 180px; }
  .a2a-hero-node { width: 38px; height: 38px; font-size: 16px; }
  .a2a-hero-node.center { width: 50px; height: 50px; font-size: 12px; }
}

/* === H4: Trust Bar & Counter === */
.a2a-trust-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 48px 0;
  margin-top: 40px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.a2a-trust-item { text-align: center; }
.a2a-trust-num {
  font-family: "Outfit", sans-serif;
  font-size: 40px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.a2a-trust-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* === M1: Scroll Spy active === */
.a2a-nav-links a.a2a-nav-active {
  color: var(--gold) !important;
  background: rgba(230,194,110,0.08);
  border-radius: 8px;
}

/* === M3: Protocol Stack Enhanced === */
.a2a-protocol-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.a2a-protocol-layer {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.a2a-protocol-layer:hover {
  border-color: var(--layer-color, var(--border));
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.a2a-protocol-layer-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  background: rgba(255,255,255,0.04);
}
.a2a-protocol-layer h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.a2a-protocol-layer p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.a2a-protocol-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  background: rgba(255,255,255,0.04);
  color: var(--text-tertiary);
}

/* === Core Modules Grid === */
.a2a-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.a2a-module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.a2a-module-card:hover {
  border-color: var(--card-color, var(--border));
  transform: translateY(-3px);
}
.a2a-module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.a2a-module-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.a2a-module-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === 3-Step Integration === */
.a2a-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.a2a-step {
  background: rgba(13,21,37,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s ease;
}
.a2a-step:hover {
  border-color: rgba(230,194,110,0.2);
  transform: translateY(-2px);
}
.a2a-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--bg);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.a2a-step h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.a2a-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.a2a-step-code {
  display: inline-block;
  margin-top: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #7CC576;
  background: rgba(124,197,118,0.08);
  padding: 4px 12px;
  border-radius: 8px;
}

/* === Case Studies Grid === */
.a2a-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.a2a-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.a2a-case-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
}
.a2a-case-preview {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}
.a2a-case-body {
  padding: 20px 24px 24px;
}
.a2a-case-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.a2a-case-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === Developer Section (M4) === */
.a2a-dev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.a2a-dev-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 24px;
}
.a2a-dev-diagram-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}
.a2a-dev-layer {
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid var(--layer-line, var(--gold));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.a2a-dev-layer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.a2a-dev-layer-desc {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
}
.a2a-dev-layer-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
}
.a2a-dev-layer-tag.ready { background: rgba(124,197,118,0.12); color: #7CC576; }
.a2a-dev-layer-tag.wip   { background: rgba(230,194,110,0.12); color: var(--gold); }
.a2a-dev-layer-tag.plan  { background: rgba(74,144,226,0.12); color: #4A90E2; }

.a2a-dev-resources { display: flex; flex-direction: column; gap: 14px; }
.a2a-dev-resource {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(13,21,37,0.6);
  border: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: all 0.3s ease;
}
.a2a-dev-resource:hover {
  border-color: rgba(255,255,255,0.1);
  background: rgba(17,28,48,0.8);
}
.a2a-dev-resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.a2a-dev-resource-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.a2a-dev-resource-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* === FAQ Grid === */
.a2a-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.a2a-faq-item {
  background: rgba(13,21,37,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 20px 24px;
  transition: all 0.3s ease;
}
.a2a-faq-item:hover { border-color: rgba(255,255,255,0.1); }
.a2a-faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.a2a-faq-a { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* === Footer (Phase 4) === */
#a2a-footer {
  background: rgba(7,12,24,0.95);
  border-top: 1px solid var(--border-light);
  padding-top: 0;
}
.a2a-footer-cta {
  padding: 64px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.a2a-footer-cta h2 {
  font-family: "Outfit", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.a2a-footer-cta p { color: var(--text-secondary); font-size: 15px; margin-bottom: 28px; }
.a2a-footer-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.a2a-partners {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-tertiary);
  font-size: 12px;
  letter-spacing: 1px;
}
.a2a-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.a2a-footer-col a {
  display: block;
  color: var(--text-tertiary);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.a2a-footer-col a:hover { color: var(--gold); }
.a2a-footer-bottom {
  text-align: center;
  padding: 20px 32px;
  color: var(--text-tertiary);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.a2a-footer-bottom-links { margin-top: 8px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Scroll to top */
.a2a-scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--table-accent);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.a2a-scroll-top:hover {
  background: rgba(230,194,110,0.1);
  border-color: var(--gold);
  color: var(--gold);
}
.a2a-scroll-top.visible { display: flex; }

/* === Responsive breakpoints === */
@media (max-width: 1024px) {
  .a2a-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .a2a-protocol-stack { grid-template-columns: 1fr; }
  .a2a-dev-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .a2a-modules-grid { grid-template-columns: 1fr; }
  .a2a-steps { grid-template-columns: 1fr; }
  .a2a-faq-grid { grid-template-columns: 1fr; }
  .a2a-cases-grid { grid-template-columns: 1fr; }
  .a2a-trust-bar { gap: 24px; }
  .a2a-trust-num { font-size: 30px; }
  .a2a-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .a2a-hero-title { font-size: 30px; }
  .a2a-hero-subtitle { white-space: normal; }
  .a2a-hero-actions { justify-content: center; }
  .a2a-section-title { font-size: 26px; }
  .a2a-section { padding: 100px 0 20px; }
  .a2a-section-inner { padding: 0 20px; }
  .a2a-section-desc { max-width: 100%; }
}

/* === General section styles === */
.a2a-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.a2a-section { padding: 140px 0 30px; }
.a2a-section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}
.a2a-section-title {
  font-family: "Outfit", "PingFang SC", sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}
.a2a-section-title .highlight { color: var(--gold); }
.a2a-section-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
}
.a2a-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,144,226,0.1);
  border: 1px solid rgba(74,144,226,0.2);
  color: #4A90E2;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.a2a-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4A90E2;
  animation: a2a-dot-pulse 2s ease-in-out infinite;
}
@keyframes a2a-dot-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.a2a-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.a2a-hero-title {
  font-family: "Outfit", "PingFang SC", sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}
.a2a-hero-title .gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.a2a-hero-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  white-space: nowrap;
}
.a2a-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.a2a-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

/* === Nav === */
.a2a-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.a2a-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.a2a-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 27px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
}
.a2a-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}
.a2a-nav-links { display: flex; align-items: center; gap: 6px; }
.a2a-nav-links a {
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
}
.a2a-nav-links a:hover { color: var(--text-primary); }

/* === Animation === */
.a2a-animate {
  opacity: 0;
  transform: translateY(20px);
  animation: a2a-fade-up 0.6s ease forwards;
}
@keyframes a2a-fade-up {
  to { opacity: 1; transform: translateY(0); }
}
.a2a-animate:nth-child(2) { animation-delay: 0.1s; }
.a2a-animate:nth-child(3) { animation-delay: 0.2s; }
.a2a-animate:nth-child(4) { animation-delay: 0.3s; }
.a2a-animate:nth-child(5) { animation-delay: 0.4s; }

/* Root sizing */
.a2a-root {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.a2a-root *, .a2a-root *::before, .a2a-root *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* ============================================================
 Light Theme — Table Text Fix
 ============================================================ */
:root.light-theme td,
[data-theme='light'] td {
 color: var(--text-primary);
}
:root.light-theme th,
[data-theme='light'] th {
 color: var(--text-primary);
}
:root.light-theme table td,
[data-theme='light'] table td,
:root.light-theme .compare-table td,
[data-theme='light'] .compare-table td {
 color: var(--text-primary);
}
/* ========================================
   浅色主题字体颜色统一 & 字号放大
   深色模式完全不受影响
   ======================================== */

/* --- 1. 全局浅色模式字体颜色锁定 --- */
:root.light-theme,
[data-theme="light"] {
  /* 所有正文/小字强制黑色（覆盖任何中间层选择器） */
  --text-primary: #2D2D2D;
  --text-secondary: #444444;
  --text-tertiary: #666666;
}

/* --- 2. 合作伙伴区块小字体全部黑色 --- */
:root.light-theme #a2a-partners *,
[data-theme="light"] #a2a-partners *,
:root.light-theme .a2a-partners *,
[data-theme="light"] .a2a-partners *,
:root.light-theme .a2a-partners-group *,
[data-theme="light"] .a2a-partners-group *,
:root.light-theme .a2a-partner-item,
[data-theme="light"] .a2a-partner-item {
  color: #2D2D2D !important;
}
/* 合作伙伴区块内标题保留金色 */
:root.light-theme .a2a-section-title,
[data-theme="light"] .a2a-section-title,
:root.light-theme .a2a-partners-group-title,
[data-theme="light"] .a2a-partners-group-title {
  color: var(--gold) !important;
}

/* --- 3. Footer 白底 --- */
:root.light-theme #a2a-footer,
[data-theme="light"] #a2a-footer {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
}
:root.light-theme #a2a-footer *,
[data-theme="light"] #a2a-footer * {
  color: #2D2D2D !important;
}
:root.light-theme #a2a-footer a,
[data-theme="light"] #a2a-footer a {
  color: #444444 !important;
}

/* --- 4. 大标题金色 + 所有其他文字黑色 --- */
:root.light-theme h1,
[data-theme="light"] h1,
:root.light-theme h2,
[data-theme="light"] h2,
:root.light-theme h3,
[data-theme="light"] h3,
:root.light-theme .a2a-section-title,
[data-theme="light"] .a2a-section-title,
:root.light-theme .a2a-hero-title,
[data-theme="light"] .a2a-hero-title {
  color: var(--gold) !important;
}
/* 所有正文、段落、列表等强制黑色 */
:root.light-theme p,
[data-theme="light"] p,
:root.light-theme li,
[data-theme="light"] li,
:root.light-theme span:not(.a2a-nav-cta),
[data-theme="light"] span:not(.a2a-nav-cta),
:root.light-theme div:not(.a2a-nav):not(.a2a-nav-cta),
[data-theme="light"] div:not(.a2a-nav):not(.a2a-nav-cta),
:root.light-theme a:not(.a2a-nav-cta):not(.btn-primary),
[data-theme="light"] a:not(.a2a-nav-cta):not(.btn-primary) {
  color: #2D2D2D !important;
}


/* --- 9. Trust Bar 浅色修复 --- */
:root.light-theme .a2a-trust-bar,
[data-theme= light] .a2a-trust-bar {
  background: #FFFFFF;
  border-top: 1px solid #E8E8E8;
}
:root.light-theme .a2a-trust-number,
[data-theme=light] .a2a-trust-number,
:root.light-theme .a2a-trust-num,
[data-theme=light] .a2a-trust-num {
  background: linear-gradient(135deg, #D4AF37, #B8960F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
:root.light-theme .a2a-trust-icon,
[data-theme=light] .a2a-trust-icon {
  filter: none;
}

/* --- 10. 3步接入卡片 浅色修复 --- */
:root.light-theme .a2a-step,
[data-theme= light] .a2a-step {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
:root.light-theme .a2a-step:hover,
[data-theme=light] .a2a-step:hover {
  border-color: #D4AF37;
  box-shadow: 0 4px 16px rgba(212,175,55,0.10);
}
:root.light-theme .a2a-step h4,
[data-theme=light] .a2a-step h4 {
  color: #c9a227;
}
:root.light-theme .a2a-step p,
[data-theme=light] .a2a-step p {
  color: #2D2D2D;
}
:root.light-theme .a2a-step-num,
[data-theme=light] .a2a-step-num {
  color: #FFFFFF;
}
:root.light-theme .a2a-code-block,
[data-theme=light] .a2a-code-block {
  background: #F5F5F5;
  color: #2D2D2D;
  border-radius: 8px;
  padding: 12px;
}
:root.light-theme .a2a-code-block .cm,
[data-theme=light] .a2a-code-block .cm {
  color: #6A737D;
}
:root.light-theme .a2a-code-block .kw,
[data-theme=light] .a2a-code-block .kw {
  color: #c9a227;
}
:root.light-theme .a2a-code-block .prop,
[data-theme=light] .a2a-code-block .prop {
  color: #005CC5;
}
:root.light-theme .a2a-code-block .str,
[data-theme=light] .a2a-code-block .str {
  color: #032F62;
}
:root.light-theme .a2a-code-block .fn,
[data-theme=light] .a2a-code-block .fn {
  color: #6F42C1;
}
