/* ============================================================
   muCommander 中文站 www.mucommander.cn
   品牌色：主 #004057（深青）/ 强调 #009ED7（亮青）
   风格：扁平 / 现代 / 专业 / 浅色主题
   ============================================================ */

:root {
  --brand: #004057;
  --brand-dark: #003041;
  --accent: #009ED7;
  --accent-hover: #0089BC;
  --accent-soft: #E3F4FB;
  --brand-soft: #EFF5F8;
  --text: #1C2B33;
  --text-2: #4A6B7A;
  --text-3: #7A97A5;
  --line: #DCE7ED;
  --bg: #FFFFFF;
  --bg-2: #F4F8FA;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 64, 87, 0.08);
  --shadow-lg: 0 10px 36px rgba(0, 64, 87, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul.clean, ol.clean { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 图标（内联 SVG 通用规格） ---------- */
/* 尺寸类：不设全局 fill/stroke，图形颜色由各 SVG 自带属性控制，避免描边污染填充图标 */
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon-lg { width: 28px; height: 28px; }
/* 线性图标（菜单/箭头/关闭等 currentColor 描边） */
.icon-stroke { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { letter-spacing: 0.2px; }
.brand-name small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); letter-spacing: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-2); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: var(--accent-soft); font-weight: 600; }

.nav-cta {
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 9px 20px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px;
  border: none; cursor: pointer;
}
.nav-cta:hover { background: var(--accent-hover); text-decoration: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--brand); padding: 8px; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 10px; font-weight: 600; font-size: 16px; cursor: pointer;
  padding: 14px 32px; border: 2px solid transparent; line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  font-family: inherit; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); border-color: rgba(0, 64, 87, 0.35); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

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

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, #F4F9FC 0%, #FFFFFF 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--brand);
  font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px; letter-spacing: 0.5px;
}
.hero h1 { font-size: 42px; line-height: 1.25; color: var(--brand); font-weight: 800; letter-spacing: 0.2px; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-2); margin: 18px 0 30px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--text-2); }
.hero-meta li { display: flex; align-items: center; gap: 7px; }
.hero-meta .icon { color: var(--accent); }
.hero-figure { position: relative; }
.hero-figure img { border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }

/* ---------- 版本徽章横幅 ---------- */
.version-banner { background: var(--brand); color: #fff; }
.version-banner .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 28px; padding-top: 13px; padding-bottom: 13px; font-size: 14.5px; }
.version-banner strong { color: #7FD4F2; }
.version-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-head h2 { font-size: 30px; color: var(--brand); font-weight: 800; line-height: 1.35; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 16.5px; }

/* ---------- 卡片网格 ---------- */
.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); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.card h3 { color: var(--brand); font-size: 18px; margin: 14px 0 8px; font-weight: 700; }
.card p { color: var(--text-2); font-size: 15px; }
.card .icon-wrap {
  width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}

/* ---------- 数据统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat .num { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.stat .num em { font-style: normal; color: var(--accent); }
.stat .lbl { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }

/* ---------- 使用场景 ---------- */
.scene-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.scene-card .icon-wrap { width: 60px; height: 60px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 3px 8px rgba(0, 113, 153, 0.25); }
.scene-card .icon-wrap .icon-lg { width: 32px; height: 32px; }
.scene-card h3 { color: var(--brand); font-size: 17.5px; margin-bottom: 6px; font-weight: 700; }
.scene-card p { color: var(--text-2); font-size: 14.5px; }

/* ---------- 平台徽章 ---------- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.platform {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; font-size: 14.5px; font-weight: 500; color: var(--text-2);
  box-shadow: var(--shadow);
}
.platform .icon { color: var(--accent); width: 19px; height: 19px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.data th {
  text-align: left; background: var(--brand-soft); color: var(--brand);
  padding: 13px 18px; font-size: 13.5px; letter-spacing: 0.4px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
table.data td { padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #F7FBFD; }
table.data td strong { color: var(--text); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px;
  border-radius: 999px; background: var(--accent-soft); color: #0077A8; margin: 1px 3px 1px 0; white-space: nowrap;
}
.tag-recommend { background: #E6F7EE; color: #0B7A45; }
.file-size { color: var(--text-3); font-size: 13px; }

/* ---------- 页面页头 ---------- */
.page-head { background: linear-gradient(180deg, #EFF6FA 0%, #FFFFFF 100%); padding: 52px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 32px; color: var(--brand); font-weight: 800; margin-bottom: 12px; }
.page-head .sub { color: var(--text-2); font-size: 16.5px; max-width: 760px; }

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--line); }

/* ---------- 下载卡（下载中心） ---------- */
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl-card .os-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dl-card .os-head .icon-wrap { width: 60px; height: 60px; border-radius: 14px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 3px 8px rgba(0, 113, 153, 0.25); }
.dl-card .os-head .icon-wrap .icon-lg { width: 32px; height: 32px; }
.dl-card h3 { color: var(--brand); font-size: 19px; font-weight: 700; }
.dl-card .os-sub { font-size: 13px; color: var(--text-3); }
.dl-card ul.clean li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-2); padding: 4px 0; }
.dl-card ul.clean li .icon-sm { color: var(--accent); margin-top: 5px; }
.dl-card .btn { margin-top: auto; }

/* ---------- 下载弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 32, 43, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 880px;
  max-height: 92vh; overflow-y: auto; position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.98); transition: transform 0.22s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: var(--brand-soft); color: var(--brand);
  font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--accent-soft); }
.modal-head { text-align: center; padding: 34px 28px 6px; }
.modal-head h2 { font-size: 24px; color: var(--brand); font-weight: 800; }
.modal-head p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.modal-body { padding: 22px 28px 34px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.qr-item {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  text-align: center; background: var(--bg-2);
}
.qr-item img { width: 190px; height: auto; margin: 0 auto 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.qr-item .qr-title { font-weight: 700; color: var(--brand); font-size: 15.5px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.qr-item .qr-title .icon-sm { color: var(--accent); }
.qr-item .qr-desc { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.modal-tips { margin-top: 20px; background: var(--accent-soft); border-radius: 10px; padding: 14px 18px; font-size: 13px; color: #03536F; }
.modal-tips strong { color: var(--brand); }

/* ---------- 常见问题 ---------- */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; font-size: 16px; font-weight: 600; color: var(--brand);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: inherit;
}
.faq-q:hover { background: var(--brand-soft); }
.faq-q .chev { transition: transform 0.2s ease; color: var(--accent); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a-inner { padding: 0 22px 18px; color: var(--text-2); font-size: 15px; border-top: 1px dashed var(--line); padding-top: 14px; }
.faq-item.open .faq-a { max-height: 480px; }

/* ---------- 版本历史时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.release { position: relative; padding: 0 0 30px 18px; }
.release::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.release.latest::before { background: var(--accent); }
.release .ver { font-weight: 800; color: var(--brand); font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.release .date { color: var(--text-3); font-size: 13px; font-weight: 500; }
.release ul { margin-top: 8px; color: var(--text-2); font-size: 14.5px; padding-left: 20px; }
.release ul li { margin: 3px 0; }

/* ---------- 正文内容排版 ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 25px; color: var(--brand); font-weight: 800; margin: 42px 0 14px; }
.prose h3 { font-size: 19px; color: var(--brand); font-weight: 700; margin: 28px 0 10px; }
.prose p { color: var(--text-2); margin: 12px 0; font-size: 16px; }
.prose ul, .prose ol { color: var(--text-2); padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; font-size: 15.5px; }
.prose strong { color: var(--text); }
.prose code { font-family: var(--mono); background: var(--brand-soft); color: var(--brand); padding: 2px 7px; border-radius: 5px; font-size: 13.5px; }

.note-box { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 20px 0; font-size: 14.5px; color: #03536F; }
.note-box strong { color: var(--brand); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, #005574 100%); color: #fff; border-radius: 16px; padding: 48px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: 27px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: #B9D9E7; font-size: 15.5px; margin-bottom: 26px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #E9F6FB; color: var(--brand); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: #022A39; color: #8FB0BE; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.footer-desc { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; font-weight: 600; letter-spacing: 0.5px; }
.site-footer ul.clean li { margin: 7px 0; }
.site-footer ul.clean a { color: #8FB0BE; font-size: 13.5px; }
.site-footer ul.clean a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 0; font-size: 12.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 44px; height: 44px; border-radius: 10px; border: none;
  background: var(--brand); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease; box-shadow: var(--shadow-lg);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 0; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    box-shadow: var(--shadow-lg); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }
  .nav-cta.nav-desktop-only { display: none; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .stats { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 24px; }
  .page-head h1 { font-size: 26px; }
  .hero-actions .btn { width: 100%; }
  .modal-head, .modal-body { padding-left: 18px; padding-right: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 36px 22px; }
  .btn-group-side { flex-direction: column; }
}
