/* ============================================================
   产品矩阵页（/product 与其下各页面）组件样式
   只用主题既有 token：亮色文字 --t-strong/--t-h3，深底文字 --td-h/--td-accent，
   色块 --accent/--accent-2/--gold-grad，玻璃 --glass/--glass-line
   ============================================================ */

/* ---- Hero ---- */
.mx-crumbs { padding-top: 34px; }
.mx-hero { max-width: 860px; padding: 46px 0 96px; }
.mx-h1 {
  margin: 0 0 22px;
  font-size: 46px; line-height: 1.28; font-weight: 700; letter-spacing: 2px;
  color: #F2EFE6; text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
}
.mx-gold {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mx-lede { color: rgba(228, 228, 231, .78); font-size: 17px; line-height: 2; max-width: 680px; margin: 0 0 26px; }
/* Hero 徽章胶囊行（设计稿：金色描边胶囊） */
.mx-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -10px 0 26px; }
.mx-pills span {
  font-size: 12.5px; letter-spacing: .5px; line-height: 1;
  color: var(--td-accent);
  border: 1px solid rgba(201, 162, 39, .4);
  border-radius: 999px;
  padding: 5px 13px;
  background: rgba(255, 255, 255, .03);
}
.mx-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 34px; padding: 0; }
.mx-points li {
  position: relative; padding-left: 24px;
  color: var(--td-h); font-size: 14.5px; letter-spacing: .5px;
}
.mx-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 7px; height: 12px; border-right: 2px solid var(--td-accent); border-bottom: 2px solid var(--td-accent);
}
.mx-actions { justify-content: flex-start; }

/* ---- 区块通用 ---- */
.mx-note { margin-top: 26px; color: var(--ink-3); font-size: 13.5px; letter-spacing: 1px; }
.section-mist .mx-note, .section-dark .mx-note { color: rgba(228, 228, 231, .55); }
.mx-tag {
  display: inline-block; padding: 4px 12px; margin-bottom: 14px;
  font-size: 11px; letter-spacing: 2px; border-radius: 999px;
  color: var(--t-strong); background: var(--accent-soft);
  border: 1px solid var(--line-strong);
}
.mx-list { list-style: none; margin: 14px 0 0; padding: 0; }
.mx-list li {
  position: relative; padding: 8px 0 8px 20px;
  color: var(--ink-2); font-size: 13.8px; line-height: 1.8;
  border-bottom: 1px dashed var(--line);
}
.mx-list li:last-child { border-bottom: 0; }
.mx-list li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 10px; height: 2px; border-radius: 1px; background: var(--gold-grad);
}
.section-mist .mx-list li, .section-dark .mx-list li { color: rgba(228, 228, 231, .8); border-bottom-color: rgba(255, 255, 255, .1); }

/* ---- 卡片组 ---- */
.mx-cards { display: grid; gap: 22px; }
.mx-cols-2 { grid-template-columns: repeat(2, 1fr); }
.mx-cols-3 { grid-template-columns: repeat(3, 1fr); }
.mx-cols-4 { grid-template-columns: repeat(4, 1fr); }
.mx-cards:not([class*="mx-cols-"]) { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mx-card {
  display: flex; flex-direction: column;
  padding: 34px 32px 30px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
}
.mx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.mx-card-link:hover { border-color: var(--accent); }
.mx-card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.2px; color: var(--t-h3); }
.mx-card-desc { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.95; }
.mx-go { margin-top: auto; padding-top: 18px; font-size: 13px; letter-spacing: 1px; color: var(--accent-strong); }
.mx-card-link:hover .mx-go { transform: translateX(4px); }
/* 深底区块内卡片：玻璃化（与 .split-col 深底规则同款） */
.section-mist .mx-card, .section-dark .mx-card {
  background: var(--glass); border-color: var(--glass-line);
  box-shadow: none; backdrop-filter: blur(8px);
}
.section-mist .mx-card:hover, .section-dark .mx-card:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.section-mist .mx-card h3, .section-dark .mx-card h3 { color: var(--td-h); }
.section-mist .mx-card-desc, .section-dark .mx-card-desc { color: rgba(228, 228, 231, .78); }
.section-mist .mx-tag, .section-dark .mx-tag { color: var(--td-accent); background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.section-mist .mx-go, .section-dark .mx-go { color: var(--td-accent); }

/* ---- 亮色主题：Hero 白底，文字层切换亮色体系（暗色保持深底体系不变） ---- */
html[data-theme="light"] .mx-h1 { color: var(--t-strong); text-shadow: none; }
html[data-theme="light"] .mx-lede { color: var(--ink-2); }
html[data-theme="light"] .mx-pills span { color: var(--accent-strong); background: var(--accent-soft); border-color: rgba(45, 58, 140, .32); }
html[data-theme="light"] .mx-points li { color: var(--ink-2); }
html[data-theme="light"] .mx-points li::before { border-right-color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

/* ---- 十Tab 手风琴 ---- */
.mx-tabs { border-top: 1px solid var(--line); }
.mx-tab { border-bottom: 1px solid var(--line); }
.mx-tab summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; gap: 18px;
  padding: 22px 6px; font-size: 16px; font-weight: 500; color: var(--ink);
  transition: color .15s ease;
}
.mx-tab summary::-webkit-details-marker { display: none; }
.mx-tab summary:hover { color: var(--accent-strong); }
.mx-tab-no { font-family: var(--mono); font-size: 12.5px; letter-spacing: 2px; color: var(--accent-strong); flex: none; }
.mx-tab-name { letter-spacing: .5px; }
.mx-tab-badge {
  margin-left: auto; font-style: normal; flex: none;
  font-size: 11px; letter-spacing: 1.5px; padding: 4px 12px; border-radius: 999px;
  color: var(--t-strong); background: var(--accent-soft); border: 1px solid var(--line-strong);
}
.mx-tab summary::after {
  content: "+"; margin-left: 12px; color: var(--ink-3); font-weight: 300; font-size: 20px;
  transition: transform .22s ease, color .22s ease;
}
.mx-tab[open] summary::after { transform: rotate(45deg); color: var(--accent-strong); }
.mx-tab-body { padding: 2px 6px 26px 56px; }
.mx-tab-desc { margin: 0 0 18px; color: var(--ink-2); font-size: 14.2px; line-height: 1.95; }
.mx-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px;
  margin: 0; padding: 16px 0 4px; border-top: 1px dashed var(--line);
}
.mx-field { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.mx-field dt { flex: none; width: 96px; color: var(--ink-3); font-size: 12.8px; letter-spacing: 1px; }
.mx-field dd { margin: 0; color: var(--ink-2); font-size: 13.6px; line-height: 1.75; }
.mx-tab-note { margin: 16px 0 0; color: var(--t-strong); font-size: 13.2px; letter-spacing: .5px; }

/* ---- 深底强调区（单一卖点打透）---- */
.mx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mx-step {
  position: relative; padding: 28px 26px 24px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px;
}
.mx-step-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: 3px;
  color: var(--td-accent);
}
.mx-step h3 { margin: 10px 0 8px; font-size: 16.5px; font-weight: 600; color: var(--td-h); letter-spacing: .3px; }
.mx-step p { margin: 0; color: rgba(228, 228, 231, .72); font-size: 13.5px; line-height: 1.9; }
html[data-theme="light"] .mx-step { background: #FFFFFF; border-color: var(--line); }
html[data-theme="light"] .mx-step h3 { color: var(--t-strong); }
html[data-theme="light"] .mx-step p { color: var(--ink-2); }
html[data-theme="light"] .mx-step-no { color: var(--accent-strong); }
html[data-theme="light"] .mx-steps .mx-step:not(:last-child)::after { color: var(--accent-strong); }
.mx-steps .mx-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -19px; top: 50%; transform: translateY(-50%);
  color: var(--td-accent); font-size: 15px; z-index: 1;
}
.mx-nums { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: 34px; }
.mx-num { padding: 0 40px; border-right: 1px solid rgba(255, 255, 255, .16); text-align: left; }
.mx-num:last-child { border-right: 0; }
.mx-num b { display: block; font-family: var(--mono); font-size: 27px; font-weight: 700; color: #fff; letter-spacing: 0; }
.mx-num span { display: block; margin-top: 7px; font-size: 12.5px; letter-spacing: 1.5px; color: rgba(228, 228, 231, .58); }
.mx-quote {
  margin: 40px 0 0; padding-left: 20px;
  border-left: 2.5px solid var(--td-accent);
  font-family: var(--serif); font-size: 18.5px; letter-spacing: 1px; line-height: 1.8;
  color: var(--td-h);
}

/* ---- 资产链 ---- */
.mx-chain { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.mx-node {
  position: relative; flex: 1 1 150px; margin: 0 26px 14px 0;
  padding: 20px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.mx-node b { display: block; font-size: 15px; font-weight: 600; color: var(--t-h3); margin-bottom: 5px; }
.mx-node span { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.7; }
.mx-node:not(.is-last)::after {
  content: ""; position: absolute; right: -22px; top: 50%; transform: translateY(-50%);
  border-left: 9px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}
.section-mist .mx-node, .section-dark .mx-node {
  background: var(--glass); border-color: var(--glass-line); box-shadow: none;
}
.section-mist .mx-node b, .section-dark .mx-node b { color: var(--td-h); }
.section-mist .mx-node span, .section-dark .mx-node span { color: rgba(228, 228, 231, .6); }
.section-mist .mx-node:not(.is-last)::after, .section-dark .mx-node:not(.is-last)::after { border-left-color: var(--td-accent); }

/* ---- 枚举墙 ---- */
.mx-enum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 26px; }
.mx-enum-g { padding: 22px 24px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; }
.mx-enum-g h3 { margin: 0 0 13px; font-size: 14.5px; font-weight: 600; color: var(--t-h3); letter-spacing: 1px; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chip {
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--line-strong);
  color: var(--ink-2); font-size: 12.8px; letter-spacing: .5px;
}
.section-mist .mx-enum-g, .section-dark .mx-enum-g { background: var(--glass); border-color: var(--glass-line); }
.section-mist .mx-enum-g h3, .section-dark .mx-enum-g h3 { color: var(--td-h); }
.section-mist .mx-chip, .section-dark .mx-chip {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: rgba(228, 228, 231, .82);
}

/* ---- 响应式 ---- */
@media (max-width: 960px) {
  .mx-cols-3, .mx-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .mx-steps { grid-template-columns: 1fr; }
  .mx-steps .mx-step:not(:last-child)::after { display: none; }
  .mx-fields { grid-template-columns: 1fr; }
  .mx-enum { grid-template-columns: 1fr; }
  .mx-h1 { font-size: 36px; }
}
@media (max-width: 640px) {
  .mx-cols-2, .mx-cols-3, .mx-cols-4 { grid-template-columns: 1fr; }
  .mx-hero { padding: 26px 0 64px; }
  .mx-h1 { font-size: 30px; letter-spacing: 1px; }
  .mx-tab-body { padding-left: 6px; }
  .mx-num { padding: 0 22px; }
  .mx-node { margin-right: 20px; }
  .mx-node:not(.is-last)::after { right: -19px; }
}
