/* src/styles/global.css */
/* ============================================================
   PD 效益学院 · 全站样式
   设计语言：暖调中性灰 + 皇家蓝主色 + 统一色板篇章色
   ============================================================ */

:root {
  /* 主色阶 */
  --brand-50: #eff3ff;
  --brand-100: #dfe7ff;
  --brand-200: #c3d2ff;
  --brand-300: #9bb2ff;
  --brand-400: #6f8bfc;
  --brand-500: #4b6bf4;
  --brand-600: #3a5ce8;
  --brand-700: #2c47c4;
  --brand-800: #263c9d;
  --brand-900: #22357a;

  /* 语义色 */
  --accent-red: #e11d48;
  --accent-amber: #d97706;
  --accent-green: #059669;
  --accent-cyan: #0891b2;

  /* 涨跌（中国惯例：涨红跌绿） */
  --up: #e0473a;
  --down: #0ea06a;

  /* 中性色（暖调灰，避免画面发闷） */
  --page-bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --surface-3: #f1f3f8;
  --surface-4: #e9ecf3;

  /* 侧边栏 */
  --sidebar-bg: #0d1322;
  --sidebar-bg-2: #101828;
  --sidebar-text: rgba(232, 238, 248, 0.72);
  --sidebar-text-dim: rgba(232, 238, 248, 0.42);
  --sidebar-line: rgba(255, 255, 255, 0.075);
  --sidebar-hover: rgba(255, 255, 255, 0.06);

  --border: #e5e8ef;
  --border-strong: #d6dbe5;

  --text-1: #151b26;
  --text-2: #4b5768;
  --text-3: #818b9c;
  --text-4: #a2aab8;
  --text-invert: #f2f6fc;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 10px -2px rgba(16, 24, 40, 0.08), 0 2px 5px -2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 14px 34px -10px rgba(16, 24, 40, 0.16), 0 4px 10px -6px rgba(16, 24, 40, 0.08);
  --shadow-brand: 0 8px 22px -8px rgba(58, 92, 232, 0.5);

  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', Consolas, 'Liberation Mono', monospace;

  --sidebar-w: 278px;
  --topbar-h: 64px;
  --content-max: 1200px;
}

[data-theme='dark'] {
  --page-bg: #0b0f17;
  --surface: #141a26;
  --surface-2: #181f2d;
  --surface-3: #1e2635;
  --surface-4: #252e3f;

  --sidebar-bg: #080c14;
  --sidebar-bg-2: #0d1320;
  --sidebar-text: rgba(226, 234, 246, 0.7);
  --sidebar-text-dim: rgba(226, 234, 246, 0.36);
  --sidebar-line: rgba(255, 255, 255, 0.06);
  --sidebar-hover: rgba(255, 255, 255, 0.055);

  --border: #28303f;
  --border-strong: #37414f;

  --text-1: #e9eef7;
  --text-2: #a5b1c2;
  --text-3: #76839a;
  --text-4: #5d6879;
  --text-invert: #e9eef7;

  --brand-50: #1a2440;
  --brand-100: #1e2a4d;
  --brand-200: #263459;

  --accent-red: #fb7185;
  --accent-amber: #fbbf24;
  --accent-green: #34d399;
  --accent-cyan: #22d3ee;

  --up: #f2705f;
  --down: #2fbf85;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, 0.62);
  --shadow-brand: 0 8px 22px -8px rgba(75, 107, 244, 0.45);
}

/* ---------------- 基础 ---------------- */

* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text-1);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(58, 92, 232, 0.18);
}

[data-theme='dark'] ::selection {
  background: rgba(111, 139, 252, 0.26);
}

/* 全局滚动条 */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 3px solid var(--page-bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-4);
}

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 布局骨架 ---------- */

.pf-shell {
  display: flex;
  min-height: 100vh;
}

.pf-sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background:
    radial-gradient(560px 240px at 50% -12%, rgba(58, 92, 232, 0.26) 0%, transparent 72%),
    linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  z-index: 30;
}

.pf-sidebar::-webkit-scrollbar {
  width: 6px;
}
.pf-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  border-radius: 3px;
}
.pf-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
}

.pf-brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--sidebar-line);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.18s;
}

.pf-brand:hover {
  background: rgba(255, 255, 255, 0.025);
}

.pf-brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: linear-gradient(140deg, #6f8bfc 0%, #3a5ce8 48%, #2c47c4 100%);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(58, 92, 232, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  position: relative;
}

.pf-brand-mark::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.pf-brand-text b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
}

.pf-nav {
  padding: 10px 12px 44px;
}

.pf-nav-group {
  margin-bottom: 2px;
}

.pf-nav-group-title {
  font-size: 10.5px;
  letter-spacing: 1.1px;
  color: var(--sidebar-text-dim);
  padding: 16px 12px 7px;
  font-weight: 600;
}

.pf-nav-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--sidebar-text);
  font-size: 13.1px;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  margin-bottom: 2px;
  position: relative;
}

.pf-nav-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.pf-nav-item.is-active {
  background: linear-gradient(100deg, rgba(58, 92, 232, 0.92) 0%, rgba(44, 71, 196, 0.78) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(58, 92, 232, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.pf-nav-index {
  flex: 0 0 18px;
  font-size: 10.5px;
  opacity: 0.52;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.pf-nav-item.is-active .pf-nav-index {
  opacity: 0.9;
}

.pf-nav-done {
  color: #34d399;
  font-size: 11px;
  margin-left: auto;
  flex: none;
  padding-top: 2px;
}

.pf-nav-progress {
  padding: 16px 18px 15px;
  border-bottom: 1px solid var(--sidebar-line);
  margin-bottom: 4px;
}

.pf-nav-progress-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  color: var(--sidebar-text-dim);
  margin-bottom: 9px;
  font-weight: 500;
}

.pf-nav-progress-text b {
  color: #9bb2ff;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.pf-nav-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.pf-nav-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4b6bf4, #9bb2ff);
  box-shadow: 0 0 10px rgba(75, 107, 244, 0.6);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pf-topbar {
  height: var(--topbar-h);
  flex: 0 0 var(--topbar-h);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.pf-topbar-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.1px;
}

.pf-content {
  flex: 1 1 auto;
  padding: 30px 32px 100px;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.pf-mobile-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .pf-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-lg);
  }
  .pf-sidebar.is-open {
    transform: translateX(0);
  }
  .pf-mobile-toggle {
    display: inline-flex;
  }
  .pf-content {
    padding: 20px 16px 88px;
  }
  .pf-topbar {
    padding: 0 14px;
  }
}

.pf-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 14, 26, 0.55);
  backdrop-filter: blur(2px);
  z-index: 25;
}

/* ---------- 内容排版 ---------- */

.pf-prose {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
  letter-spacing: 0.1px;
}

.pf-prose p {
  margin: 0 0 15px;
}

.pf-prose strong {
  color: var(--text-1);
  font-weight: 650;
}

.pf-h2 {
  position: relative;
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--text-1);
  margin: 42px 0 16px;
  padding-left: 15px;
  line-height: 1.42;
  letter-spacing: -0.25px;
}

.pf-h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-700) 100%);
}

.pf-h2:first-child {
  margin-top: 8px;
}

.pf-h3 {
  font-size: 16.5px;
  font-weight: 680;
  color: var(--text-1);
  margin: 26px 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.1px;
}

.pf-h3::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  transform: rotate(45deg);
  flex: 0 0 6px;
}

.pf-ul,
.pf-ol {
  margin: 0 0 17px;
  padding-left: 4px;
  list-style: none;
}

.pf-ol {
  counter-reset: pf-ol;
}

.pf-ul > li,
.pf-ol > li {
  position: relative;
  padding-left: 23px;
  margin-bottom: 9px;
  line-height: 1.8;
}

.pf-ul > li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(75, 107, 244, 0.12);
}

.pf-ol > li {
  counter-increment: pf-ol;
  padding-left: 32px;
}

.pf-ol > li::before {
  content: counter(pf-ol);
  position: absolute;
  left: 0;
  top: 4px;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--brand-100), var(--brand-50));
  color: var(--brand-700);
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-200);
  font-variant-numeric: tabular-nums;
}

[data-theme='dark'] .pf-ol > li::before {
  color: var(--brand-300);
  border-color: var(--brand-200);
}

.pf-prose code {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12.8px;
  font-family: var(--font-mono);
  color: var(--brand-700);
  word-break: break-word;
}

[data-theme='dark'] .pf-prose code {
  color: var(--brand-300);
}

/* ---------- 指标卡 ---------- */

.pf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}

.pf-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.pf-kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--kpi-color, var(--brand-500));
  opacity: 0.9;
}

.pf-kpi::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--kpi-color, var(--brand-500));
  opacity: 0.05;
}

.pf-kpi:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.pf-kpi-label {
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 7px;
  letter-spacing: 0.1px;
  font-weight: 500;
}

.pf-kpi-value {
  font-size: 24px;
  font-weight: 750;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.7px;
  line-height: 1.12;
}

.pf-kpi-suffix {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-left: 4px;
  letter-spacing: 0;
}

.pf-kpi-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 7px;
  line-height: 1.55;
}

/* ---------- 公式卡 ---------- */

.pf-formula {
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 62%);
  border: 1px solid var(--brand-200);
  border-radius: var(--radius);
  padding: 16px 18px 17px;
  margin: 18px 0 22px;
  box-shadow: var(--shadow-xs);
}

[data-theme='dark'] .pf-formula {
  border-color: #2c3f6b;
}

.pf-formula-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-700);
  letter-spacing: 0.3px;
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
}

[data-theme='dark'] .pf-formula-name {
  color: var(--brand-300);
}

.pf-formula-expr {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-1);
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  border-radius: 9px;
  padding: 13px 15px;
  border: 1px solid var(--border);
}

[data-theme='dark'] .pf-formula-expr {
  background: #10161f;
}

.pf-formula-vars {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.pf-formula-var {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  gap: 9px;
  line-height: 1.7;
}

.pf-formula-var b {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: var(--brand-600);
  font-weight: 700;
  min-width: 62px;
}

[data-theme='dark'] .pf-formula-var b {
  color: var(--brand-300);
}

.pf-formula-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  border-top: 1px dashed var(--border-strong);
  padding-top: 11px;
  line-height: 1.75;
}

/* ---------- 提示框 ---------- */

.pf-callout {
  border-radius: var(--radius);
  padding: 14px 18px 14px 52px;
  margin: 18px 0;
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid;
}

.pf-callout-icon {
  position: absolute;
  left: 15px;
  top: 14px;
  width: 23px;
  height: 23px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  background: currentColor;
}

.pf-callout-icon svg {
  color: #fff;
}

.pf-callout-title {
  font-weight: 700;
  margin-bottom: 7px;
  font-size: 14px;
  letter-spacing: -0.05px;
}

.pf-callout p:last-child {
  margin-bottom: 0;
}

.pf-callout ul {
  margin: 7px 0 0;
  padding-left: 2px;
  list-style: none;
}
.pf-callout ul li {
  position: relative;
  padding-left: 17px;
  margin-bottom: 6px;
}
.pf-callout ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.pf-callout--info {
  background: linear-gradient(180deg, #f3f7ff 0%, #f8faff 100%);
  border-color: #d3dffb;
  color: #2c3d6e;
}
.pf-callout--info .pf-callout-icon,
.pf-callout--info .pf-callout-title {
  color: #3a5ce8;
}

.pf-callout--tip {
  background: linear-gradient(180deg, #f0fbf6 0%, #f7fdfa 100%);
  border-color: #c4e8d8;
  color: #1c5340;
}
.pf-callout--tip .pf-callout-icon,
.pf-callout--tip .pf-callout-title {
  color: #059669;
}

.pf-callout--warn {
  background: linear-gradient(180deg, #fffaf0 0%, #fffdf8 100%);
  border-color: #f2dfb4;
  color: #6b4a0c;
}
.pf-callout--warn .pf-callout-icon,
.pf-callout--warn .pf-callout-title {
  color: #d97706;
}

.pf-callout--danger {
  background: linear-gradient(180deg, #fff4f5 0%, #fffafa 100%);
  border-color: #f6cfd8;
  color: #7d2136;
}
.pf-callout--danger .pf-callout-icon,
.pf-callout--danger .pf-callout-title {
  color: #e11d48;
}

[data-theme='dark'] .pf-callout--info {
  background: #17203a;
  border-color: #2b3f74;
  color: #b9c9f2;
}
[data-theme='dark'] .pf-callout--tip {
  background: #10261f;
  border-color: #1e5340;
  color: #a8e6c9;
}
[data-theme='dark'] .pf-callout--warn {
  background: #2a2113;
  border-color: #5a4520;
  color: #f0d69c;
}
[data-theme='dark'] .pf-callout--danger {
  background: #2b1620;
  border-color: #66304a;
  color: #f5b8c8;
}
[data-theme='dark'] .pf-callout--info .pf-callout-title,
[data-theme='dark'] .pf-callout--tip .pf-callout-title,
[data-theme='dark'] .pf-callout--warn .pf-callout-title,
[data-theme='dark'] .pf-callout--danger .pf-callout-title {
  color: inherit;
}
[data-theme='dark'] .pf-callout-icon {
  background: rgba(255, 255, 255, 0.14);
}
[data-theme='dark'] .pf-callout-icon svg {
  color: currentColor;
}

/* ---------- 案例卡 ---------- */

.pf-case {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 22px 0;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pf-case-head {
  background: linear-gradient(100deg, #1e2a63 0%, #2c47c4 62%, #3a5ce8 100%);
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  overflow: hidden;
}

.pf-case-head::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 70%);
}

.pf-case-body {
  padding: 18px 20px 20px;
}

/* ---------- 表格 ---------- */

.pf-table-wrap {
  overflow-x: auto;
  margin: 18px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.pf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 480px;
}

.pf-table thead th {
  background: var(--surface-3);
  color: var(--text-1);
  font-weight: 650;
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
  font-size: 12.8px;
  letter-spacing: 0.15px;
}

.pf-table tbody td {
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  line-height: 1.72;
  vertical-align: top;
}

.pf-table tbody tr:last-child td {
  border-bottom: none;
}

.pf-table tbody tr:nth-child(even) {
  background: var(--surface-2);
}

.pf-table tbody tr {
  transition: background 0.14s;
}

.pf-table tbody tr:hover {
  background: var(--brand-50);
}

[data-theme='dark'] .pf-table tbody tr:hover {
  background: #1b2337;
}

.pf-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12.9px;
}

.pf-table td.em {
  color: var(--text-1);
  font-weight: 600;
}

/* ---------- 步骤 ---------- */

.pf-steps {
  margin: 20px 0 24px;
}

.pf-step {
  display: flex;
  gap: 15px;
  position: relative;
  padding-bottom: 20px;
}

.pf-step:last-child {
  padding-bottom: 0;
}

.pf-step::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 34px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, var(--border-strong), var(--border));
}

.pf-step:last-child::before {
  display: none;
}

.pf-step-dot {
  flex: 0 0 33px;
  height: 33px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 5px 14px -6px rgba(58, 92, 232, 0.7);
  z-index: 1;
  font-variant-numeric: tabular-nums;
}

.pf-step-content {
  flex: 1 1 auto;
  padding-top: 3px;
}

.pf-step-title {
  font-weight: 680;
  color: var(--text-1);
  font-size: 14.6px;
  margin-bottom: 6px;
  letter-spacing: -0.05px;
}

.pf-step-desc {
  font-size: 13.8px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---------- 对比 ---------- */

.pf-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0 24px;
}

@media (max-width: 760px) {
  .pf-compare {
    grid-template-columns: 1fr;
  }
}

.pf-compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.pf-compare-head {
  padding: 11px 16px;
  font-weight: 680;
  font-size: 13.8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-1);
}

.pf-compare-col.is-a .pf-compare-head {
  background: linear-gradient(100deg, #e8eeff, #f4f7ff);
  color: #2c3d6e;
  border-bottom-color: #d3dffb;
}

.pf-compare-col.is-b .pf-compare-head {
  background: linear-gradient(100deg, #fff3ec, #fffaf6);
  color: #7a4212;
  border-bottom-color: #f5dcc7;
}

[data-theme='dark'] .pf-compare-col.is-a .pf-compare-head {
  background: #1b2647;
  color: #b6c6f2;
  border-bottom-color: #2b3f74;
}
[data-theme='dark'] .pf-compare-col.is-b .pf-compare-head {
  background: #2c2015;
  color: #e8bd8f;
  border-bottom-color: #5a4520;
}

.pf-compare-body {
  padding: 14px 17px;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--text-2);
}

.pf-compare-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pf-compare-body ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.pf-compare-body ul li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.42;
}

/* ---------- 引用 ---------- */

.pf-quote {
  position: relative;
  border-left: 3px solid var(--brand-400);
  background: var(--surface-2);
  padding: 15px 20px 15px 22px;
  margin: 18px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14.2px;
  color: var(--text-2);
  line-height: 1.85;
  font-style: normal;
}

.pf-quote::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand-400), var(--brand-700));
}

/* ---------- 检查清单 ---------- */

.pf-checklist {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
}

.pf-check-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--text-2);
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
}

.pf-check-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
  transform: translateX(2px);
}

.pf-check-item svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--accent-green);
}

/* ---------- 术语 ---------- */

.pf-term-list {
  display: grid;
  gap: 11px;
  margin: 18px 0 22px;
}

.pf-term {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
  transition: border-color 0.16s, box-shadow 0.16s;
}

.pf-term:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-xs);
}

.pf-term-name {
  font-weight: 700;
  color: var(--text-1);
  font-size: 14.5px;
  flex: 0 0 auto;
  letter-spacing: -0.1px;
}

.pf-term-en {
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  flex: 0 0 auto;
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 6px;
}

.pf-term-def {
  flex: 1 1 100%;
  font-size: 13.6px;
  color: var(--text-2);
  line-height: 1.78;
}

/* ---------- FAQ ---------- */

.pf-faq .ant-collapse-header {
  font-weight: 620 !important;
}

/* ---------- 页头 hero ---------- */

.pf-hero {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(760px 340px at 88% -18%, rgba(107, 139, 252, 0.5) 0%, transparent 62%),
    radial-gradient(620px 320px at 4% 116%, rgba(14, 165, 233, 0.32) 0%, transparent 66%),
    linear-gradient(122deg, #0c1226 0%, #16203f 48%, #22315f 100%);
  color: #fff;
  padding: 32px 34px 30px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 44px -22px rgba(16, 30, 70, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 78% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

.pf-hero::after {
  content: '';
  position: absolute;
  right: 68px;
  bottom: -120px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.pf-hero-crumb {
  font-size: 11.5px;
  letter-spacing: 1.3px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  font-weight: 500;
  position: relative;
}

.pf-hero h1 {
  font-size: 27px;
  margin: 0 0 11px;
  font-weight: 750;
  letter-spacing: -0.6px;
  line-height: 1.32;
  position: relative;
}

.pf-hero p {
  margin: 0;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 780px;
  line-height: 1.78;
  position: relative;
}

.pf-hero-meta {
  margin-top: 17px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.pf-chip {
  font-size: 11.8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e6efff;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ---------- 上下页 ---------- */

.pf-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.pf-pager-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  display: block;
}

.pf-pager-card:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pf-pager-card.is-next {
  text-align: right;
}

.pf-pager-dir {
  font-size: 11.5px;
  color: var(--text-3);
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  font-weight: 500;
}

.pf-pager-title {
  font-size: 14px;
  font-weight: 640;
  color: var(--text-1);
  line-height: 1.5;
}

/* ---------- 首页 ---------- */

.pf-home-hero {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(900px 420px at 86% -14%, rgba(107, 139, 252, 0.55) 0%, transparent 60%),
    radial-gradient(680px 380px at 6% 118%, rgba(14, 165, 233, 0.34) 0%, transparent 64%),
    linear-gradient(122deg, #0a1020 0%, #141d3a 46%, #1e2b57 100%);
  color: #fff;
  padding: 50px 44px 46px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 60px -28px rgba(13, 25, 60, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(110% 90% at 80% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(110% 90% at 80% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.pf-home-hero h1 {
  font-size: 35px;
  margin: 0 0 16px;
  font-weight: 780;
  letter-spacing: -1.1px;
  line-height: 1.24;
  position: relative;
}

.pf-home-hero .lead {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 740px;
  line-height: 1.85;
  position: relative;
}

.pf-home-hero .lead b {
  color: #fff;
  font-weight: 650;
}

.pf-home-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* hero 底本身就是深色，按钮必须固定为浅色，不能跟随明暗主题 —— 否则深色模式下看不清 */
.pf-home-actions .ant-btn-background-ghost,
.pf-hero .ant-btn-background-ghost {
  color: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}
.pf-home-actions .ant-btn-background-ghost:hover,
.pf-hero .ant-btn-background-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.18);
}

.pf-section-title {
  font-size: 19px;
  font-weight: 720;
  color: var(--text-1);
  margin: 42px 0 5px;
  letter-spacing: -0.35px;
}

.pf-section-sub {
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 19px;
  line-height: 1.72;
}

.pf-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 15px;
}

.pf-module-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 19px 19px 17px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.pf-module-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  opacity: 0;
  transition: opacity 0.2s;
}

.pf-module-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pf-module-card:hover::after {
  opacity: 1;
}

.pf-module-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 19px;
  margin-bottom: 13px;
  background: var(--brand-100);
  color: var(--brand-700);
  border: 1px solid var(--brand-200);
}

[data-theme='dark'] .pf-module-icon {
  color: var(--brand-300);
}

.pf-module-card h4 {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 680;
  color: var(--text-1);
  line-height: 1.48;
  letter-spacing: -0.15px;
}

.pf-module-card p {
  margin: 0 0 13px;
  font-size: 13.3px;
  color: var(--text-3);
  line-height: 1.72;
  flex: 1 1 auto;
}

.pf-module-foot {
  font-size: 12.5px;
  color: var(--brand-600);
  font-weight: 620;
  display: flex;
  align-items: center;
  gap: 5px;
}

[data-theme='dark'] .pf-module-foot {
  color: var(--brand-300);
}

/* ---------- 工具页 ---------- */

.pf-tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.pf-tool-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.2px;
}

.pf-tool-card .desc {
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 20px;
  line-height: 1.75;
}

.pf-result-panel {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 19px;
}

.pf-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.pf-result-row:last-child {
  border-bottom: none;
}

.pf-result-row .k {
  color: var(--text-2);
}

.pf-result-row .v {
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  color: var(--text-1);
}

.pf-result-row.is-strong .v {
  font-size: 18px;
}

.pf-pos {
  color: var(--up) !important;
}

.pf-neg {
  color: var(--down) !important;
}

/* ---------- 测验 ---------- */

.pf-quiz-opt {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.16s;
  font-size: 14px;
  line-height: 1.72;
  background: var(--surface);
  color: var(--text-2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.pf-quiz-opt:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.pf-quiz-opt.is-picked {
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(58, 92, 232, 0.09);
}

.pf-quiz-opt.is-right {
  border-color: #4ec38f;
  background: #f0fbf6;
  color: #1c5340;
}

.pf-quiz-opt.is-wrong {
  border-color: #f0919f;
  background: #fff4f5;
  color: #7d2136;
}

[data-theme='dark'] .pf-quiz-opt.is-right {
  border-color: #1e5340;
  background: #10261f;
  color: #a8e6c9;
}
[data-theme='dark'] .pf-quiz-opt.is-wrong {
  border-color: #66304a;
  background: #2b1620;
  color: #f5b8c8;
}

/* 自测交卷结果卡 —— 三档色调，深浅主题各自适配 */
.pf-result {
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.pf-result.is-good {
  background: #f0fbf6;
  border-color: #b9e8d1;
}
.pf-result.is-mid {
  background: #fffaf0;
  border-color: #f5dfae;
}
.pf-result.is-bad {
  background: #fff4f5;
  border-color: #f7c6d0;
}
[data-theme='dark'] .pf-result.is-good {
  background: rgba(5, 150, 105, 0.13);
  border-color: rgba(52, 211, 153, 0.32);
}
[data-theme='dark'] .pf-result.is-mid {
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(251, 191, 36, 0.32);
}
[data-theme='dark'] .pf-result.is-bad {
  background: rgba(225, 29, 72, 0.14);
  border-color: rgba(251, 113, 133, 0.32);
}

.pf-quiz-badge {
  flex: 0 0 23px;
  height: 23px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-3);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.pf-quiz-explain {
  margin-top: 13px;
  padding: 13px 16px;
  background: var(--surface-3);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
  border-left: 3px solid var(--brand-400);
}

/* ---------- 图表 ---------- */

.pf-chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px 10px;
  margin: 20px 0 24px;
  box-shadow: var(--shadow-xs);
}

.pf-chart-title {
  font-size: 14px;
  font-weight: 670;
  color: var(--text-1);
  margin-bottom: 5px;
  letter-spacing: -0.1px;
}

.pf-chart-note {
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 12px;
  line-height: 1.68;
}

/* ---------- 章节学习进度 ---------- */

.pf-progress-card {
  margin: 34px 0 20px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--brand-50) 0%, var(--surface) 70%);
  border: 1px solid var(--brand-200);
  box-shadow: var(--shadow-xs);
}

.pf-progress-ring {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- 搜索高亮 ---------- */

.pf-mark {
  background: rgba(217, 119, 6, 0.2);
  color: inherit;
  padding: 0 3px;
  border-radius: 4px;
  font-weight: 700;
}

[data-theme='dark'] .pf-mark {
  background: rgba(251, 191, 36, 0.24);
  color: #ffdd99;
}

/* ---------- antd 微调 ---------- */

.ant-layout {
  background: transparent;
}

.ant-menu-light.pf-antd-menu {
  background: transparent;
  border-inline-end: none !important;
}

.ant-typography {
  color: inherit;
}

.ant-btn-primary {
  box-shadow: 0 6px 16px -8px rgba(58, 92, 232, 0.7);
}

.ant-btn-primary:not(:disabled):hover {
  box-shadow: 0 8px 20px -8px rgba(58, 92, 232, 0.85);
}

.ant-tag {
  border-radius: 7px;
  font-weight: 500;
}

.ant-collapse-header-text {
  font-size: 14px;
}

.pf-footer {
  border-top: 1px solid var(--border);
  margin-top: 54px;
  padding: 24px 0 10px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.85;
  text-align: center;
}

.pf-footer a {
  transition: color 0.15s;
}

.pf-footer a:hover {
  color: var(--brand-600) !important;
}

.pf-anchor-list {
  position: sticky;
  top: 88px;
}

/* ---------- 打印 ---------- */

@media print {
  .pf-sidebar,
  .pf-topbar,
  .pf-pager,
  .pf-progress-card {
    display: none !important;
  }
  .pf-content {
    padding: 0;
    max-width: 100%;
  }
  .pf-home-hero,
  .pf-hero {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .pf-home-hero h1,
  .pf-hero h1 {
    color: #000 !important;
  }
  .pf-home-hero .lead,
  .pf-hero p,
  .pf-hero-crumb {
    color: #333 !important;
  }
}


/* node_modules/antd/dist/reset.css */
/* stylelint-disable */
html,
body {
  width: 100%;
  height: 100%;
}
input::-ms-clear,
input::-ms-reveal {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -ms-overflow-style: scrollbar;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
@-ms-viewport {
  width: device-width;
}
body {
  margin: 0;
}
[tabindex='-1']:focus {
  outline: none;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 500;
}
p {
  margin-top: 0;
  margin-bottom: 1em;
}
abbr[title],
abbr[data-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  border-bottom: 0;
  cursor: help;
}
address {
  margin-bottom: 1em;
  font-style: normal;
  line-height: inherit;
}
input[type='text'],
input[type='password'],
input[type='number'],
textarea {
  -webkit-appearance: none;
}
ol,
ul,
dl {
  margin-top: 0;
  margin-bottom: 1em;
}
ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}
dt {
  font-weight: 500;
}
dd {
  margin-bottom: 0.5em;
  margin-left: 0;
}
blockquote {
  margin: 0 0 1em;
}
dfn {
  font-style: italic;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
sub,
sup {
  position: relative;
  font-size: 75%;
  line-height: 0;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
pre,
code,
kbd,
samp {
  font-size: 1em;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}
pre {
  margin-top: 0;
  margin-bottom: 1em;
  overflow: auto;
}
figure {
  margin: 0 0 1em;
}
img {
  vertical-align: middle;
  border-style: none;
}
a,
area,
button,
[role='button'],
input:not([type='range']),
label,
select,
summary,
textarea {
  touch-action: manipulation;
}
table {
  border-collapse: collapse;
}
caption {
  padding-top: 0.75em;
  padding-bottom: 0.3em;
  text-align: left;
  caption-side: bottom;
}
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
html [type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
  padding: 0;
  border-style: none;
}
input[type='radio'],
input[type='checkbox'] {
  box-sizing: border-box;
  padding: 0;
}
input[type='date'],
input[type='time'],
input[type='datetime-local'],
input[type='month'] {
  -webkit-appearance: listbox;
}
textarea {
  overflow: auto;
  resize: vertical;
}
fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.5em;
  padding: 0;
  color: inherit;
  font-size: 1.5em;
  line-height: inherit;
  white-space: normal;
}
progress {
  vertical-align: baseline;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
  height: auto;
}
[type='search'] {
  outline-offset: -2px;
  -webkit-appearance: none;
}
[type='search']::-webkit-search-cancel-button,
[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  font: inherit;
  -webkit-appearance: button;
}
output {
  display: inline-block;
}
summary {
  display: list-item;
}
template {
  display: none;
}
[hidden] {
  display: none !important;
}
mark {
  padding: 0.2em;
  background-color: #feffe6;
}
