/* ==========================================================================
   MPC-BE 中文站样式 - www.mpcbe.com.cn
   扁平现代专业风 · 浅色主题 · 黑 + 琥珀橙（取自 logo）
   ========================================================================== */

:root {
  --brand-black: #1A1A1A;
  --brand-purple: #AB65BC;
  --brand-purple-dark: #8E4E9E;
  --brand-purple-light: #F6EEF8;
  --bg: #FFFFFF;
  --bg-soft: #F8F6F9;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #8A8A8A;
  --border: #E9E5EC;
  --shadow: 0 2px 12px rgba(26, 26, 26, 0.06);
  --shadow-lg: 0 8px 30px rgba(26, 26, 26, 0.10);
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1160px;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  /* 兼容旧变量名（弹窗提示条等仍引用） */
  --brand-amber: #AB65BC;
  --brand-amber-dark: #8E4E9E;
  --brand-amber-light: #F6EEF8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-amber-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.2em; }

/* ---------------- Container ---------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}

.brand:hover { text-decoration: none; }

.brand img { width: 34px; height: 34px; }

.brand .brand-tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.15s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--brand-black); text-decoration: none; }

.main-nav a.active { position: relative; }

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -4px;
  height: 2px;
  background: var(--brand-amber);
  border-radius: 1px;
}

.nav-cta {
  background: var(--brand-black);
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--brand-amber-dark); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle svg { display: block; }

.nav-toggle .icon-close { display: none; }

.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .main-nav a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav.open { display: flex; }
  .nav-open .main-nav { display: flex; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  padding: 14px 32px;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  text-decoration: none !important;
}

.btn:focus-visible { outline: 3px solid var(--brand-amber); outline-offset: 2px; }

.btn-primary {
  background: var(--brand-amber);
  color: var(--brand-black);
  box-shadow: 0 4px 14px rgba(171, 101, 188, 0.35);
}

.btn-primary:hover { background: var(--brand-amber-dark); color: #fff; }

.btn-dark {
  background: var(--brand-black);
  color: #fff;
}

.btn-dark:hover { background: #333; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { border-color: var(--brand-black); }

.btn-lg { font-size: 17px; padding: 16px 40px; }

.btn .btn-icon { width: 18px; height: 18px; flex: none; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-amber-light);
  color: var(--brand-amber-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.hero h1 .accent { color: var(--brand-amber-dark); }

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-meta li { display: inline-flex; align-items: center; gap: 7px; list-style: none; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }

.hero-meta svg { width: 15px; height: 15px; color: var(--brand-amber-dark); flex: none; }

.hero-visual { position: relative; }

.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 44px; }
  .hero h1 { font-size: 34px; }
  .hero-visual { max-width: 560px; }
}

/* ---------------- Sections ---------------- */
.section { padding: 72px 0; }

.section-alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.section-head .kicker {
  color: var(--brand-amber-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.section-head p { color: var(--text-secondary); font-size: 16px; }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
}

/* ---------------- Cards / Grids ---------------- */
.grid { display: grid; gap: 22px; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--brand-amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 24px; height: 24px; color: var(--brand-amber-dark); }

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }

.card p { font-size: 15px; color: var(--text-secondary); }

.card ul { font-size: 14px; color: var(--text-secondary); }

.card ul li { margin: 6px 0; }

.card ul li::marker { color: var(--brand-amber-dark); }

/* ---------------- Scenario list ---------------- */
.scenario-item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.scenario-item:last-child { border-bottom: none; }

.scenario-num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-black);
  color: var(--brand-amber);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scenario-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

.scenario-item p { font-size: 15px; color: var(--text-secondary); }

/* ---------------- Stats ---------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--brand-black);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.stats-item { text-align: center; }

.stats-item .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-amber);
  margin-bottom: 4px;
}

.stats-item .label { font-size: 13px; color: rgba(255, 255, 255, 0.75); }

@media (max-width: 640px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ---------------- Version info table ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}

table.data th, table.data td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

table.data th {
  background: var(--bg-soft);
  font-weight: 600;
  white-space: nowrap;
}

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

table.data td.n { font-family: "SF Mono", Consolas, monospace; font-size: 14px; }

/* ---------------- Download panel ---------------- */
.dl-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.dl-main h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }

.dl-main .dl-ver {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.dl-main .dl-ver strong { color: var(--brand-amber-dark); }

.dl-btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

.dl-checksum {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.dl-checksum code {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  color: var(--text-primary);
}

.dl-side { border-left: 1px solid var(--border); padding-left: 32px; }

.dl-side h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

.dl-side ul { list-style: none; font-size: 14px; color: var(--text-secondary); }

.dl-side ul li { padding: 7px 0; display: flex; gap: 9px; align-items: flex-start; }

.dl-side ul li svg { width: 15px; height: 15px; color: var(--brand-amber-dark); flex: none; margin-top: 5px; }

@media (max-width: 880px) {
  .dl-panel { grid-template-columns: 1fr; }
  .dl-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 26px; }
}

/* ---------------- Arch cards ---------------- */
.arch-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.arch-card .arch-name { font-size: 17px; font-weight: 700; }

.arch-card .arch-size { font-size: 13px; color: var(--text-muted); }

.arch-card .btn { margin-top: auto; }

.arch-card .btn-sm { font-size: 14px; padding: 10px 20px; border-radius: 8px; }

/* ---------------- FAQ ---------------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-amber-dark);
  font-weight: 400;
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-body { padding: 0 22px 18px; color: var(--text-secondary); font-size: 15px; }

/* ---------------- Steps (guide) ---------------- */
.steps { counter-reset: step; }

.step-item {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.step-item:last-child { border-bottom: none; }

.step-num {
  counter-increment: step;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-amber-light);
  color: var(--brand-amber-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-num::before { content: counter(step); }

.step-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

.step-item p { font-size: 15px; color: var(--text-secondary); }

.step-item .step-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  background: #F7F7F5;
  border-radius: 8px;
  padding: 8px 12px;
}

/* ---------------- Prose (about) ---------------- */
.prose { max-width: 820px; }

.prose h2 { font-size: 26px; font-weight: 800; margin: 44px 0 16px; }

.prose h2:first-child { margin-top: 0; }

.prose h3 { font-size: 19px; font-weight: 700; margin: 30px 0 12px; }

.prose p { color: var(--text-secondary); margin-bottom: 14px; }

.prose ul, .prose ol { color: var(--text-secondary); margin-bottom: 16px; }

.prose li { margin: 6px 0; }

.prose li::marker { color: var(--brand-amber-dark); }

.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 18px 0; }

.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }

.prose th { background: var(--bg-soft); }

/* Kbd */
kbd {
  background: #fff;
  border: 1px solid #d5d5d0;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
  color: var(--text-primary);
}

/* Hotkey table */
.hotkey-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }

.hotkey-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #E8E8E4;
  border-radius: 10px;
  font-size: 14px;
}

.hotkey-item .k { white-space: nowrap; }

@media (max-width: 720px) { .hotkey-grid { grid-template-columns: 1fr; } }

/* ---------------- Timeline ---------------- */
.timeline { position: relative; padding-left: 26px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item { position: relative; padding: 0 0 26px 18px; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-amber);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-item .t-date { font-size: 13px; font-weight: 700; color: var(--brand-amber-dark); margin-bottom: 2px; }

.timeline-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }

.timeline-item p { font-size: 14px; color: var(--text-secondary); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--brand-black);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
}

.cta-band h2 { color: #fff; font-size: 28px; font-weight: 800; margin-bottom: 12px; }

.cta-band p { color: rgba(255, 255, 255, 0.72); margin-bottom: 28px; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 18px 0 0;
}

.breadcrumb a { color: var(--text-muted); }

.breadcrumb a:hover { color: var(--brand-amber-dark); }

.breadcrumb .sep { color: var(--border); color: #d0d0ca; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--brand-black);
  color: rgba(255, 255, 255, 0.65);
  margin-top: 72px;
}

.site-footer .container { padding: 48px 24px 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 19px; margin-bottom: 14px; }

.footer-brand img { width: 30px; height: 30px; }

.footer-desc { font-size: 14px; line-height: 1.8; max-width: 360px; }

.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }

.footer-col ul { list-style: none; }

.footer-col ul li { margin: 9px 0; }

.footer-col a { color: rgba(255, 255, 255, 0.65); font-size: 14px; }

.footer-col a:hover { color: var(--brand-amber); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 224, 178, 0.35);
}

.footer-bottom a { color: inherit; text-decoration: underline; }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------- Download modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.active { display: flex; opacity: 1; left:0;right: 0;top: 0;bottom: 0;}
button { outline: none }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 { font-size: 18px; font-weight: 700; }

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  transition: background 0.15s ease;
}

.modal-close:hover { background: var(--bg-soft); }

.modal-close svg { width: 20px; height: 20px; }

.modal-body { padding: 30px 26px; }

.modal-body .dl-meta { text-align: center; margin-bottom: 24px; }

.modal-body .dl-meta p { font-size: 14px; color: var(--text-secondary); }

.modal-body .dl-meta strong { color: var(--text-primary); }

.qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.qr-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: border-color 0.15s ease;
}

.qr-card:hover { border-color: var(--brand-amber); }

.qr-card img {
  width: 170px;
  height: 170px;
  margin: 0 auto 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.qr-card .qr-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }

.qr-card .qr-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.modal-notice {
  margin-top: 22px;
  background: var(--brand-amber-light);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #7A4E86;
  text-align: center;
}

@media (max-width: 560px) {
  .qr-row { grid-template-columns: 1fr; }
  .qr-card img { width: 150px; height: 150px; }
}

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }

.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.badge {
  display: inline-block;
  background: var(--brand-amber-light);
  color: var(--brand-amber-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.badge-dark {
  display: inline-block;
  background: var(--brand-black);
  color: var(--brand-amber);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  line-height: 1.5;
  border-radius: 999px;
}

.notice-box {
  background: var(--brand-amber-light);
  border-left: 4px solid var(--brand-amber);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 14px;
  color: #6B4276;
  margin: 18px 0;
}

.notice-box strong { color: #593762; }

/* Visible focus for a11y */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Footer logo: white plate so black-bg icon stays visible on dark footer */
.footer-brand img {
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}
