

/* ==== from resources/what-is-datafield.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;
  white-space: nowrap;
}
.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: 44px 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: 680px; 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; }
.svg-caption { text-align: center; font-size: 13px; color: var(--muted); padding: 8px 0 14px; }

/* ==================== Feature Grid ==================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.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; }
.feature-item .fi-tag {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--purple);
  background: var(--purple-soft); border-radius: 100px; padding: 2px 10px; margin-bottom: 8px;
}

/* ==================== 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; }

/* ==================== 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); }

/* ==================== Nav Cards (bottom) ==================== */
.nav-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.nav-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: .2s; display: block;
}
.nav-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--purple-light); }
.nav-card .nc-icon { font-size: 28px; margin-bottom: 10px; }
.nav-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.nav-card p { font-size: 14px; color: var(--muted); margin: 0; }
.nav-card .nc-arrow { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--purple); }

/* ==================== 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; }

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .content-card { padding: 24px; }
  .nav-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .feature-grid.cols-4 { grid-template-columns: 1fr; }
}

/* ==================== Maxwell Equations ==================== */
.maxwell-block { margin: 28px 0; }
.maxwell-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.maxwell-head .mh-badge {
  flex: none; font-size: 12px; font-weight: 800; color: #0d9488;
  background: var(--teal-soft); border: 1px solid #9adfd2; border-radius: 999px;
  padding: 3px 12px; letter-spacing: .05em;
}
.maxwell-head h4 { font-size: 18px; font-weight: 700; margin: 0; }
.maxwell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mx-card {
  border: 1px solid #cfe8e2; border-radius: 14px; padding: 18px 20px;
  background: linear-gradient(135deg, #f8fdfb, #effaf6);
}
.mx-formula {
  font-size: 20px; font-weight: 700; color: #0a7768; line-height: 1.5;
  font-family: "Cambria Math", "Times New Roman", Georgia, serif; letter-spacing: .02em; margin-bottom: 8px;
}
.mx-name { font-size: 13px; font-weight: 800; color: #0d9488; margin-bottom: 4px; }
.mx-desc { font-size: 13px; color: #5e6f6b; line-height: 1.65; margin: 0; }
.mx-note {
  margin-top: 14px; padding: 14px 18px; font-size: 13.5px; color: #4c5d58; line-height: 1.8;
  background: #f3fbf8; border: 1px dashed #9adfd2; border-radius: 12px;
}
.mx-note strong { color: #0a7768; }
.mx-integral {
  margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px;
  background: #fdfefe; border: 1px solid #e3f0ec; border-radius: 12px; padding: 14px 18px;
}
.mi-row { display: flex; align-items: baseline; gap: 10px; }
.mi-row b {
  flex: none; width: 96px; color: #5e6f6b; font-size: 12px; font-weight: 800;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.mi-row span {
  font-size: 15px; color: #0a7768; font-weight: 700;
  font-family: "Cambria Math", "Times New Roman", Georgia, serif; letter-spacing: .01em;
}
.mx-foot { margin: 8px 2px 0; font-size: 12.5px; color: #7a8b86; line-height: 1.6; }
@media (max-width: 768px) {
  .maxwell-grid { grid-template-columns: 1fr; }
  .mx-integral { grid-template-columns: 1fr; }
}
