

/* ==== from resources/tech-intro.html ==== */

:root {
  --purple: #5b2ee6;
  --purple-dark: #4320bd;
  --purple-soft: #eee9ff;
  --purple-light: #9a6cff;
  --green: #29a96b;
  --green-soft: #e9f8f1;
  --green-text: #168653;
  --orange: #ee8c20;
  --orange-soft: #fff3e4;
  --orange-text: #cc6d07;
  --red: #df3c54;
  --red-soft: #fdecef;
  --red-text: #c92b44;
  --teal: #0d9488;
  --teal-soft: #d5f5ef;
  --teal-text: #0a7768;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #17171b;
  --muted: #6f7078;
  --muted-2: #9a9aa3;
  --border: #e5e5eb;
  --soft: #f2f1f7;
  --shadow: 0 8px 24px rgba(36, 24, 70, .08);
  --shadow-lg: 0 16px 48px rgba(36, 24, 70, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --gradient: linear-gradient(135deg, #5b2ee6, #9a6cff);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ==================== Top Bar ==================== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 60px; display: flex; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.topbar-logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.topbar-logo .logo-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--gradient);
  color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px;
}
.topbar-back {
  padding: 7px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #393a41; border: 1px solid var(--border); background: #fff; transition: .2s;
}
.topbar-back:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); color: var(--purple); }

/* ==================== Breadcrumb ==================== */
.breadcrumb { padding: 20px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--purple); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ==================== Hero ==================== */
.hero {
  padding: 40px 0 56px; text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px; background: var(--purple-soft);
  font-size: 13px; font-weight: 600; color: var(--purple); margin-bottom: 18px;
}
.hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; line-height: 1.25; }
.hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 680px; margin: 0 auto; }

/* ==================== Sections ==================== */
.section { padding: 56px 0; }
.section:nth-child(even) { background: var(--panel); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-eyebrow {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.section h2 { font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 10px; }
.section-desc { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ==================== Content Cards ==================== */
.content-card {
  background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 36px; box-shadow: var(--shadow); margin-bottom: 28px;
}
.section:nth-child(even) .content-card { background: var(--bg); }
.content-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.content-card h3 .num {
  width: 32px; height: 32px; border-radius: 8px; background: var(--gradient);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.content-card p { margin-bottom: 14px; color: #3a3a42; }
.content-card p:last-child { margin-bottom: 0; }
.content-card .highlight { background: var(--purple-soft); color: var(--purple-dark); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.content-card .green-hl { background: var(--green-soft); color: var(--green-text); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.content-card .orange-hl { background: var(--orange-soft); color: var(--orange-text); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.content-card .teal-hl { background: var(--teal-soft); color: var(--teal-text); padding: 2px 8px; border-radius: 6px; font-weight: 600; }

/* ==================== SVG Container ==================== */
.svg-wrap {
  margin: 24px 0; border-radius: var(--radius-sm); overflow: hidden;
  background: #faf9fc; border: 1px solid var(--border);
}
.svg-wrap svg, .svg-wrap img { display: block; width: 100%; height: auto; }
.svg-wrap img { background: #fff; min-height: 480px; object-fit: contain; }
@media (max-width: 768px) {
  .svg-wrap img { min-height: 320px; }
}
.svg-caption { text-align: center; font-size: 13px; color: var(--muted); padding: 8px 0 14px; }

/* ==================== Comparison Table ==================== */
.term-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.term-table th {
  background: var(--purple-soft); color: var(--purple-dark); font-weight: 700;
  padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--purple);
}
.term-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: #3a3a42;
}
.term-table tr:hover td { background: #faf8fe; }
.term-table .term-col { font-weight: 600; color: var(--text); white-space: nowrap; }

/* ==================== Feature Grid ==================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.feature-item {
  background: var(--bg); border-radius: var(--radius-sm); padding: 20px;
  border: 1px solid var(--border); text-align: center;
}
.section:nth-child(even) .feature-item { background: var(--panel); }
.feature-item .fi-icon { font-size: 28px; margin-bottom: 10px; }
.feature-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-item p { font-size: 13px; color: var(--muted); margin: 0; }

/* ==================== Timeline ==================== */
.timeline { display: flex; gap: 0; margin: 24px 0; overflow-x: auto; }
.tl-step { flex: 1; min-width: 200px; position: relative; padding: 0 12px; }
.tl-step:not(:last-child)::after {
  content: ''; position: absolute; top: 20px; right: -6px; width: 12px; height: 12px;
  border-top: 2px solid var(--border); border-right: 2px solid var(--border);
  transform: rotate(45deg); z-index: 1;
}
.tl-dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 14px; position: relative; z-index: 2;
}
.tl-step:not(:last-child) .tl-dot { box-shadow: 0 0 0 4px var(--bg); }
.tl-step .tl-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.tl-step .tl-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tl-step .tl-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.tl-step .tl-conf { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

/* ==================== CTA ==================== */
.cta-banner {
  background: var(--gradient); border-radius: var(--radius);
  padding: 40px; text-align: center; color: #fff; margin: 48px 0;
}
.cta-banner h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.cta-banner p { font-size: 15px; opacity: .9; margin-bottom: 20px; }
.cta-button {
  display: inline-block; padding: 12px 32px; border-radius: 999px;
  background: #fff; color: var(--purple); font-size: 15px; font-weight: 700;
  transition: .2s; box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.2); }

/* ==================== Footer ==================== */
.footer {
  background: #17142a; color: #9a9aa3; padding: 32px 0;
  text-align: center; font-size: 13px;
}
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: #9a9aa3; font-size: 13px; transition: .2s; }
.footer-links a:hover { color: #fff; }

/* ==================== Quote Block ==================== */
.quote-block {
  border-left: 4px solid var(--purple); background: var(--purple-soft);
  padding: 20px 24px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-size: 15px; color: var(--purple-dark); line-height: 1.8;
}
.quote-block strong { font-weight: 700; }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; }
  .feature-grid { grid-template-columns: 1fr; }
  .content-card { padding: 24px; }
  .timeline { flex-direction: column; gap: 16px; }
  .tl-step { min-width: 100%; }
  .tl-step:not(:last-child)::after { display: none; }
  .term-table { font-size: 13px; display: block; overflow-x: auto; white-space: nowrap; }
  .term-table thead, .term-table tbody, .term-table tr { display: table; width: 100%; min-width: 560px; }
  .term-table th, .term-table td { padding: 10px 12px; }
  .term-table .term-col { white-space: normal; }
}

/* ==================== Micro animations & reveal ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.content-card, .svg-wrap { transition: transform .35s ease, box-shadow .35s ease; }
.content-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svg-wrap:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* SVG continuous micro-animations */
.svg-wrap svg text,
.d-font { font-family: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif; }
.d-label { font-size: 13px; font-weight: 700; }
.d-title { font-size: 32px; font-weight: 700; }
.d-sub { font-size: 15px; font-weight: 400; }
.d-banner-text { font-size: 14px; font-weight: 700; }
.d-banner-desc { font-size: 14px; font-weight: 400; }
.d-card-title { font-size: 16px; font-weight: 700; }
.d-body { font-size: 13px; font-weight: 400; }
.d-small { font-size: 11px; font-weight: 400; }
.d-num { font-size: 12px; font-weight: 700; }
.d-step-title { font-size: 15px; font-weight: 700; }
.d-summary { font-size: 15px; font-weight: 700; }
.d-summary-sub { font-size: 13px; font-weight: 400; }

.card-pop { animation: cardPop 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes cardPop { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.02); } }

.flow-particle { fill: #9a6cff; pointer-events: none; }
.flow-particle-green { fill: #29a96b; pointer-events: none; }
.flow-particle-red { fill: #df3c54; pointer-events: none; }
.glow-node { animation: nodeGlow 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.dashed-flow { stroke-dasharray: 5 5; animation: dashFlow 1.2s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -10; } }

.d12-step rect, .d12-cap rect { transition: transform .25s ease, stroke .25s ease; transform-origin: center; }
.d12-step:hover rect { transform: scale(1.02); stroke: #5b2ee6; }
.d12-cap:hover rect { transform: scale(1.03); stroke: #5b2ee6; }
.d12-flow { stroke-dasharray: 5 5; animation: d12Dash 1.2s linear infinite; }
@keyframes d12Dash { to { stroke-dashoffset: -10; } }
.d12-cap { animation: d12CapPop 2.4s ease-in-out infinite; }
@keyframes d12CapPop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.anim-flow { stroke-dasharray: 6 8; animation: flowDash 1.4s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -14; } }

.anim-pulse { animation: nodePulse 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodePulse { 0%,100%{ opacity: .82; transform: scale(1); } 50%{ opacity: 1; transform: scale(1.07); } }

.anim-fade { animation: fadeIn .7s ease forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .anim-flow, .anim-pulse, .anim-fade, .d12-flow, .d12-cap { animation: none !important; }
}


/* ==================== Logic-specific SVG animations ==================== */
.logic-particle { fill: #9a6cff; opacity: 1; pointer-events: none; }
.logic-particle-forward { fill: #df3c54; opacity: 1; pointer-events: none; }
.logic-particle-reverse { fill: #ee8c20; opacity: 1; pointer-events: none; }

.anim-glow { animation: nodeGlow 2.4s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodeGlow {
  0%,100%{ filter: drop-shadow(0 0 0 rgba(91,46,230,0)); }
  50%{ filter: drop-shadow(0 0 10px rgba(91,46,230,.35)); }
}

.anim-tag-pop { animation: tagPop 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes tagPop {
  0%,100%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(1.08); opacity: 1; }
}

.anim-secret-fade { animation: secretFade 2.2s ease-in-out infinite; }
@keyframes secretFade {
  0%,40%{ opacity: 1; }
  60%,100%{ opacity: .35; }
}

.anim-top-secret { animation: topSecretPop 2.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes topSecretPop {
  0%,40%{ transform: scale(.92); opacity: .4; }
  60%,100%{ transform: scale(1); opacity: 1; }
}

.anim-bar-fill { animation: barFill 2.8s ease-out infinite; }
@keyframes barFill { from { width: 0; } to { width: 840; } }

@media (prefers-reduced-motion: reduce) {
  .anim-glow, .anim-tag-pop, .anim-secret-fade, .anim-top-secret, .anim-bar-fill { animation: none !important; }
}
