/* ============================================================
   XMD 官方网站 — 共享设计系统
   配色源自应用自身的"纸与墨"语言
   ============================================================ */

/* ---- 设计令牌 ---- */
:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F8F7F4;
  --bg-dark:      #161614;
  --bg-dark-alt:  #1F1E1B;

  --ink:          #161614;
  --graphite:     #3D3D3A;
  --stone:        #6B6B66;
  --mist:         #9A9A93;

  --line:         #E8E6DF;
  --line-soft:    #F0EEE7;
  --panel:        #FAFAF7;

  --accent:       #161614;
  --accent-hover: #000;
  --on-accent:    #FFFFFF;

  /* 应用窗口模拟用的颜色（还原 app 真实 light theme） */
  --app-bg:       #FFFFFF;
  --app-header:   #F4F4F3;
  --app-header-border: #DDDDDB;
  --app-panel:    #FAFAFA;
  --app-toolbar:  #F5F5F5;
  --app-control:  #E8E8E8;
  --app-ink:      #252525;
  --app-secondary:#55585C;
  --app-muted:    #777777;
  --app-line:     #DEDEDE;
  --app-accent:   #1A1A1A;
  --app-folder:   #A66F18;
  --app-code-bg:  #F5F5F5;
  --app-danger:   #C42B1C;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Sora", var(--font-sans);
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", "Menlo", monospace;

  --maxw: 1140px;
  --radius: 8px;
  --radius-sm: 5px;
}

/* ---- 重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--graphite);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ink); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- 布局 ---- */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

.section { padding: 6rem 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 4rem 0; }
@media (max-width: 768px) { .section { padding: 4rem 0; } }

/* ---- 排版 ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--stone);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.025em;
  line-height: 1.1; color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.02em;
  line-height: 1.15; color: var(--ink);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}
.h3 {
  font-family: var(--font-sans);
  font-weight: 600; letter-spacing: -.01em;
  color: var(--ink); font-size: 1.2rem;
}
.lead { font-size: 1.15rem; color: var(--stone); line-height: 1.6; }
.text-center { text-align: center; }
.text-muted { color: var(--stone); }

/* ---- 按钮 ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  padding: .7rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line); color: var(--graphite); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--lg { font-size: 16px; padding: .85rem 1.8rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---- 徽标 ---- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: 13px; font-weight: 500; color: var(--stone);
  border: 1px solid var(--line); border-radius: 100px;
  padding: .3rem .8rem; background: var(--bg);
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ---- 导航 ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(0,0,0,.04);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 19px; letter-spacing: -.02em; color: var(--ink);
}
.nav__brand svg { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__link {
  font-size: 14.5px; font-weight: 500; color: var(--stone);
  padding: .5rem .9rem; border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-alt); }
.nav__link.is-active { color: var(--ink); }
.nav__cta {
  font-size: 14.5px; font-weight: 600;
  background: var(--accent); color: var(--on-accent);
  padding: .55rem 1.2rem; border-radius: var(--radius-sm);
  margin-left: .6rem; transition: background .2s;
}
.nav__cta:hover { background: var(--accent-hover); }

.nav__toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 820px) {
  .nav__links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .8rem; gap: .2rem;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { padding: .8rem 1rem; font-size: 15px; }
  .nav__cta { margin-left: 0; margin-top: .4rem; text-align: center; justify-content: center; }
  .nav__toggle { display: flex; }
}

/* ---- 页脚 ---- */
.footer { background: var(--bg-dark); color: #B5B3AC; padding: 4rem 0 2.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer__inner { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-bottom: .8rem; }
.footer__brand svg { width: 28px; height: 28px; }
.footer__tag { font-size: 14px; color: #8A8880; max-width: 22ch; line-height: 1.5; }
.footer__col h4 { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 1rem; letter-spacing: .02em; }
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer__col a { font-size: 14px; color: #8A8880; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: 13px; color: #6A6860;
}
.footer__bottom .font-mono { font-family: var(--font-mono); }

/* ---- 页面头部 ---- */
.page-header { padding: 5rem 0 3.5rem; text-align: center; }
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header .h1 { margin-bottom: 1.2rem; }
.page-header p { font-size: 1.1rem; color: var(--stone); max-width: 52ch; margin: 0 auto; }

/* ---- 滚动揭示 ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   应用窗口模拟 —— 签名视觉元素
   还原 XMD 真实 UI
   ============================================================ */
.window {
  background: var(--app-bg);
  border: 1px solid var(--app-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 24px 64px -28px rgba(0,0,0,.16);
  font-size: 14px;
}
.window--dark { background: #1E1F22; border-color: #3D3F45; color: #E4E6EB; }

/* 标题栏 */
.win__titlebar {
  display: flex; align-items: center;
  height: 40px; padding: 0 8px 0 8px;
  background: var(--app-header);
  border-bottom: 1px solid var(--app-header-border);
  user-select: none;
}
.window--dark .win__titlebar { background: #292A2E; border-bottom-color: #3D3F45; }
.win__logo { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; }
.win__logo svg { width: 20px; height: 20px; }
.win__menu { display: flex; gap: 0; height: 100%; align-items: center; }
.win__menu span { padding: 0 8px; height: 28px; display: flex; align-items: center; font-size: 13px; color: var(--app-ink); border-radius: 4px; cursor: default; }
.window--dark .win__menu span { color: #E4E6EB; }
.win__spacer { flex: 1; }
.win__icon-btn { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--app-muted); border-radius: 4px; }
.window--dark .win__icon-btn { color: #C4C7CE; }
.win__icon-btn svg { width: 18px; height: 18px; }
.win__controls { display: flex; gap: 0; margin-left: 4px; }
.win__controls .win__icon-btn { width: 36px; border-radius: 0; }

/* 主体区域 */
.win__body { display: flex; height: 420px; }
.win__sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--app-panel);
  border-right: 1px solid var(--app-line);
  display: flex; flex-direction: column;
}
.window--dark .win__sidebar { background: #25262A; border-right-color: #3D3F45; }

.win__project {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--app-line);
}
.window--dark .win__project { border-bottom-color: #3D3F45; }
.win__project-label { font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--app-muted); text-transform: uppercase; margin-bottom: 3px; }
.win__project-name { font-size: 14px; font-weight: 600; color: var(--app-ink); display: flex; align-items: center; gap: 8px; }
.window--dark .win__project-name { color: #E4E6EB; }
.win__project-name .font-mono { font-family: var(--font-mono); font-size: 10px; color: var(--app-muted); margin-left: auto; border: 1px solid var(--app-line); padding: 1px 5px; border-radius: 3px; }

.win__tabs-switch { display: flex; gap: 4px; padding: 8px 12px; }
.win__tab-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--app-muted); padding: 5px 0; border-radius: 4px; border: 1px solid transparent; }
.win__tab-btn.is-active { background: var(--app-bg); border-color: var(--app-line); color: var(--app-ink); }
.window--dark .win__tab-btn.is-active { background: #1E1F22; border-color: #3D3F45; color: #E4E6EB; }
.win__tab-btn svg { width: 14px; height: 14px; }

.win__file-list { flex: 1; overflow: hidden; padding: 4px 8px; }
.win__file { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 13px; color: var(--app-secondary); border-radius: 4px; cursor: default; }
.win__file:hover { background: var(--app-control); }
.window--dark .win__file:hover { background: #36373C; }
.win__file.is-active { background: var(--app-control); color: var(--app-ink); }
.window--dark .win__file.is-active { background: #45464C; color: #E4E6EB; }
.win__file svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--app-muted); }
.win__file.is-folder svg { color: var(--app-folder); }
.win__file .chevron { width: 12px; height: 12px; color: var(--app-muted); margin-left: auto; }

/* 大纲列表 */
.win__outline { flex: 1; overflow: hidden; padding: 4px 8px; }
.win__outline-item { display: flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 13px; color: var(--app-secondary); border-radius: 4px; }
.win__outline-item.is-active { background: var(--app-control); color: var(--app-ink); font-weight: 600; }
.window--dark .win__outline-item { color: #BEC1C7; }
.window--dark .win__outline-item.is-active { background: #45464C; color: #E4E6EB; }
.win__outline-item .h-tag { font-family: var(--font-mono); font-size: 9px; color: var(--app-muted); width: 22px; }

/* 文档标签栏 */
.win__docbar {
  display: flex; align-items: flex-end; gap: 2px;
  height: 44px; padding: 6px 8px 0;
  background: var(--app-toolbar);
  border-bottom: 1px solid var(--app-line);
}
.window--dark .win__docbar { background: #292A2E; border-bottom-color: #3D3F45; }
.win__doc-tab {
  display: flex; align-items: center; gap: 6px;
  height: 36px; min-width: 140px; max-width: 220px;
  padding: 0 10px; font-size: 13px; font-weight: 500;
  color: var(--app-secondary); border-radius: 6px 6px 0 0;
  border: 1px solid transparent; border-bottom: none;
  cursor: default;
}
.win__doc-tab.is-active {
  background: var(--app-bg); border-color: var(--app-line);
  color: var(--app-ink);
}
.window--dark .win__doc-tab.is-active { background: #1E1F22; border-color: #3D3F45; color: #E4E6EB; }
.win__doc-tab svg { width: 15px; height: 15px; color: var(--app-muted); flex-shrink: 0; }
.win__doc-tab .tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__doc-tab .tab-mod { width: 6px; height: 6px; border-radius: 50%; background: var(--app-accent); margin-left: auto; flex-shrink: 0; }

/* 编辑器内容 */
.win__editor {
  flex: 1; overflow: hidden;
  padding: 24px 48px;
  font-size: 15px; line-height: 1.75;
  color: var(--app-ink);
}
.window--dark .win__editor { color: #E4E6EB; }
.win__editor h1 { font-size: 1.6em; font-weight: 700; margin-bottom: .5em; padding-bottom: .2em; border-bottom: 1px solid var(--app-line); }
.window--dark .win__editor h1 { border-bottom-color: #3D3F45; }
.win__editor h2 { font-size: 1.3em; font-weight: 600; margin: 1em 0 .4em; }
.win__editor h3 { font-size: 1.1em; font-weight: 600; margin: .8em 0 .3em; }
.win__editor p { color: var(--app-secondary); margin-bottom: .6em; }
.window--dark .win__editor p { color: #BEC1C7; }
.win__editor p + p { margin-top: .2em; }
.win__editor ul { padding-left: 1.5em; margin-bottom: .6em; }
.win__editor li { color: var(--app-secondary); margin-bottom: .15em; }
.window--dark .win__editor li { color: #BEC1C7; }
.win__editor li::marker { color: var(--app-muted); }
.win__editor code { font-family: var(--font-mono); font-size: .88em; background: var(--app-code-bg); padding: .1em .35em; border-radius: 3px; color: var(--app-danger); }
.window--dark .win__editor code { background: #303137; color: #FF8A8A; }
.win__editor blockquote { border-left: 3px solid var(--app-line); padding: 2px 14px; color: var(--app-muted); margin: .6em 0; }
.window--dark .win__editor blockquote { border-left-color: #3D3F45; }

/* 编辑器内的代码块（mac 风格） */
.win__code {
  margin: .8em 0; border-radius: 6px; overflow: hidden;
  border: 1px solid #3B3E45;
}
.win__code-head {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: #EEE; border-bottom: 1px solid #D4D4D4;
}
.window--dark .win__code-head { background: #303238; border-bottom-color: #414349; }
.win__code-dots { display: flex; gap: 6px; }
.win__code-dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.win__code-dots i:nth-child(1) { background: #FF5F57; }
.win__code-dots i:nth-child(2) { background: #FEBC2E; }
.win__code-dots i:nth-child(3) { background: #28C840; }
.win__code-lang { font-size: 11px; font-weight: 500; color: #55585F; display: flex; align-items: center; gap: 5px; }
.window--dark .win__code-lang { color: #C4C7CE; }
.win__code-lang svg { width: 13px; height: 13px; }
.win__code-copy { margin-left: auto; color: #62666D; }
.window--dark .win__code-copy { color: #B7BAC1; }
.win__code-copy svg { width: 14px; height: 14px; }
.win__code-pre {
  background: #24262B; color: #D8DEE9;
  padding: 12px 16px; font-family: var(--font-mono);
  font-size: 13px; line-height: 1.55;
}
.win__code-pre .k { color: #FC5FA3; }
.win__code-pre .s { color: #FC6A5D; }
.win__code-pre .f { color: #67B7A4; }
.win__code-pre .c { color: #6C7986; }
.win__code-pre .t { color: #5DD8FF; }
.win__code-pre .n { color: #D0BF69; }

/* 状态栏 */
.win__statusbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; padding: 0 4px 0 4px;
  background: var(--app-toolbar);
  border-top: 1px solid var(--app-line);
  font-size: 12px; color: var(--app-secondary);
}
.window--dark .win__statusbar { background: #292A2E; border-top-color: #3D3F45; color: #BEC1C7; }
.win__status-left { display: flex; align-items: center; }
.win__status-btn { width: 32px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--app-muted); border-radius: 4px; }
.window--dark .win__status-btn { color: #969AA3; }
.win__status-btn svg { width: 17px; height: 17px; }
.win__status-btn.is-active { background: var(--app-control); color: var(--app-ink); }
.window--dark .win__status-btn.is-active { background: #45464C; color: #E4E6EB; }
.win__status-right { display: flex; align-items: center; gap: 12px; padding-right: 8px; }
.win__status-right .sep { width: 1px; height: 14px; background: var(--app-line); }
.window--dark .win__status-right .sep { background: #3D3F45; }
.win__status-right .saved { display: flex; align-items: center; gap: 5px; }
.win__status-right .saved svg { width: 14px; height: 14px; color: var(--app-muted); }

/* 空状态 */
.win__empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 2rem; text-align: center;
}
.win__empty-icon {
  width: 60px; height: 60px; border-radius: 12px;
  background: var(--app-control); color: var(--app-accent);
  display: flex; align-items: center; justify-content: center;
}
.window--dark .win__empty-icon { background: #333438; color: #D4D4D4; }
.win__empty-icon svg { width: 28px; height: 28px; }
.win__empty h3 { font-size: 18px; font-weight: 600; color: var(--app-ink); }
.window--dark .win__empty h3 { color: #E4E6EB; }
.win__empty p { font-size: 13px; color: var(--app-muted); }
.win__empty-actions { display: flex; gap: 10px; margin-top: 8px; }
.win__empty-actions .btn-primary { background: var(--app-accent); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 5px; }
.win__empty-actions .btn-ghost { border: 1px solid var(--app-line); color: var(--app-secondary); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 5px; background: transparent; }

/* 窗口响应式 */
@media (max-width: 768px) {
  .win__sidebar { display: none; }
  .win__editor { padding: 16px 20px; }
  .win__body { height: 360px; }
}
@media (max-width: 480px) {
  .win__menu { display: none; }
  .win__doc-tab { min-width: 100px; }
  .win__editor { font-size: 13px; padding: 14px 16px; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 4.5rem 0 6rem; }
.hero__grid {
  display: flex;
  gap: 3rem; align-items: center;
}
.hero__content { width: 44%; flex-shrink: 0; }
.hero__visual { flex: 1; min-width: 0; }
.hero-showcase { display: flex; flex-direction: column; }
.window--hero { border-radius: 8px; box-shadow: none; }
.window--hero .win__body { height: 390px; }
.window--hero .win__sidebar { width: 188px; }
.window--hero .win__editor { padding: 28px 38px; }
@media (max-width: 960px) {
  .hero__grid { flex-direction: column; gap: 2.5rem; }
  .hero__content, .hero__visual { width: 100%; }
}
.hero__eyebrow { margin-bottom: 1.2rem; }
.hero__title { margin-bottom: 1.2rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.hero__lead { margin-bottom: 2rem; max-width: 42ch; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__meta { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 12px; color: var(--mist); display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- 特性卡片 ---- */
.feature-grid { display: grid; gap: 1.2rem; }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .feature-grid--3, .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid--3, .feature-grid--4 { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.feature-card:hover { border-color: var(--ink); box-shadow: 0 8px 28px -12px rgba(0,0,0,.12); transform: translateY(-2px); }
.feature-card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-alt); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: .4rem; }
.feature-card p { font-size: 14px; color: var(--stone); line-height: 1.55; }

/* ---- 分栏特性展示 ---- */
.split-feature {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 4rem; align-items: center;
}
@media (max-width: 900px) { .split-feature { grid-template-columns: 1fr; gap: 2.5rem; } }
.split-feature--reverse .split-feature__copy { order: 2; }
@media (max-width: 900px) { .split-feature--reverse .split-feature__copy { order: 0; } }
.split-feature__eyebrow { margin-bottom: .8rem; }
.split-feature__title { margin-bottom: 1rem; }
.split-feature__desc { color: var(--stone); margin-bottom: 1.2rem; }
.split-feature__list { display: flex; flex-direction: column; gap: .7rem; }
.split-feature__list li { display: flex; align-items: flex-start; gap: .6rem; font-size: 14.5px; color: var(--graphite); }
.split-feature__list li svg { width: 18px; height: 18px; color: var(--ink); flex-shrink: 0; margin-top: 2px; }

/* ---- 代码块展示 ---- */
.code-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 720px) { .code-showcase { grid-template-columns: 1fr; } }
.code-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.code-card__bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border-bottom: 1px solid; }
.code-card__dots { display: flex; gap: 5px; }
.code-card__dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.code-card__lang { font-family: var(--font-mono); font-size: 11px; margin-left: auto; }
.code-card__pre { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; padding: 1rem 1.1rem; overflow-x: auto; }
.code-card__name { font-size: 13px; font-weight: 600; padding: .55rem .9rem .1rem; color: var(--ink); }
.code-card__desc { font-size: 12px; color: var(--stone); padding: 0 .9rem .7rem; }

/* mac */
.cc-mac .code-card__bar { background:#EEE; border-color:#D4D4D4; } .cc-mac .code-card__dots i:nth-child(1){background:#FC5FA3} .cc-mac .code-card__dots i:nth-child(2){background:#5DD8FF} .cc-mac .code-card__dots i:nth-child(3){background:#67B7A4} .cc-mac .code-card__lang{color:#55585F}
.cc-mac .code-card__pre { background:#24262B; color:#D8DEE9; } .cc-mac .k{color:#FC5FA3} .cc-mac .s{color:#FC6A5D} .cc-mac .f{color:#67B7A4} .cc-mac .c{color:#6C7986} .cc-mac .n{color:#D0BF69} .cc-mac .t{color:#5DD8FF}
/* terminal */
.cc-term .code-card__bar { background:#18261E; border-color:#31463A; } .cc-term .code-card__dots i:nth-child(1){background:#B7E07E} .cc-term .code-card__dots i:nth-child(2){background:#63C68A} .cc-term .code-card__dots i:nth-child(3){background:#E0C77E} .cc-term .code-card__lang{color:#A9C9B3}
.cc-term .code-card__pre { background:#101A14; color:#C7E4CE; } .cc-term .k{color:#B7E07E} .cc-term .s{color:#A6D8B3} .cc-term .f{color:#63C68A} .cc-term .c{color:#66806D} .cc-term .n{color:#E0C77E} .cc-term .t{color:#8DD7A2}
/* paper */
.cc-paper .code-card__bar { background:#EEEAE1; border-color:#D7D2C8; } .cc-paper .code-card__dots i:nth-child(1){background:#9F2254} .cc-paper .code-card__dots i:nth-child(2){background:#006A83} .cc-paper .code-card__dots i:nth-child(3){background:#26715D} .cc-paper .code-card__lang{color:#635F56}
.cc-paper .code-card__pre { background:#FAF8F2; color:#34322D; } .cc-paper .k{color:#9F2254} .cc-paper .s{color:#A13B27} .cc-paper .f{color:#26715D} .cc-paper .c{color:#8B877D} .cc-paper .n{color:#805B00} .cc-paper .t{color:#006A83}
/* midnight */
.cc-mid .code-card__bar { background:#1D2B40; border-color:#283A55; } .cc-mid .code-card__dots i:nth-child(1){background:#C792EA} .cc-mid .code-card__dots i:nth-child(2){background:#77C7D9} .cc-mid .code-card__dots i:nth-child(3){background:#C3E88D} .cc-mid .code-card__lang{color:#B7C7DE}
.cc-mid .code-card__pre { background:#111B2B; color:#D2DCED; } .cc-mid .k{color:#C792EA} .cc-mid .s{color:#C3E88D} .cc-mid .f{color:#82AAFF} .cc-mid .c{color:#64758E} .cc-mid .n{color:#F0C674} .cc-mid .t{color:#77C7D9}

/* ---- 斜杠命令面板模拟 ---- */
.slash-demo { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2.4rem; font-size: 15px; line-height: 1.8; color: var(--stone); min-height: 470px; }
.slash-demo p { color: var(--stone); }
.slash-demo .slash-char { color: var(--ink); font-weight: 700; }
.slash-menu {
  position: absolute; left: 3rem; top: 4rem;
  width: 260px; max-height: 390px;
  background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 34px -14px rgba(0,0,0,.2), 0 2px 8px -4px rgba(0,0,0,.08);
  overflow: hidden; font-family: var(--font-sans);
  display: flex; flex-direction: column;
}
.slash-menu__head { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line-soft); }
.slash-menu__key { width: 20px; height: 20px; border-radius: 4px; background: rgba(22,22,20,.08); color: var(--ink); font-family: var(--font-mono); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.slash-menu__hint { font-size: 12px; color: var(--mist); flex: 1; }
.slash-menu__esc { font-family: var(--font-mono); font-size: 10px; color: var(--mist); }
.slash-menu__list { padding: .35rem; max-height: 345px; overflow-y: auto; }
.slash-group { font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--mist); padding: .5rem .6rem .25rem; }
.slash-item { display: flex; align-items: center; gap: .55rem; padding: .35rem .5rem; border-radius: 7px; color: var(--graphite); font-size: 13px; }
.slash-item.is-active { background: var(--bg-alt); color: var(--ink); }
.slash-item__ic { width: 26px; height: 26px; border-radius: 7px; flex: none; background: var(--bg-alt); display: grid; place-items: center; color: var(--stone); font-size: 12px; font-weight: 600; }
.slash-item.is-active .slash-item__ic { background: var(--ink); color: #fff; }
.slash-item__label { font-weight: 600; }
.slash-item__desc { color: var(--mist); font-size: 11px; margin-left: auto; }
@media (max-width: 640px) { .slash-menu { left: 1.5rem; width: 232px; } .slash-demo { min-height: 420px; } }

/* ---- 标签云 ---- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tag-cloud .tag { font-family: var(--font-mono); font-size: 12px; color: var(--stone); border: 1px solid var(--line); border-radius: 20px; padding: .25rem .7rem; }

/* ---- CTA 区域 ---- */
.cta-section { background: var(--bg-dark); color: #fff; text-align: center; padding: 5.5rem 0; }
.cta-section .h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: #A5A39C; font-size: 1.1rem; max-width: 42ch; margin: 0 auto 2rem; }
.cta-section .hero__meta { justify-content: center; color: #6A6860; }

/* ---- 下载页 ---- */
.download-header { padding: 4.5rem 0 4rem; }
.download-platforms { padding: 4.5rem 0 6rem; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 768px) { .platform-grid { grid-template-columns: 1fr; } }
.platform-card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center; background: var(--bg);
  transition: border-color .25s, box-shadow .25s;
}
.platform-card-primary { border-color: var(--ink); }
.platform-card-label { width: fit-content; margin: 0 auto 1.2rem; padding: .28rem .7rem; border-radius: 100px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.platform-card-label-muted { background: var(--bg-alt); color: var(--stone); border: 1px solid var(--line); }
.platform-card:hover { border-color: var(--ink); box-shadow: 0 8px 28px -12px rgba(0,0,0,.1); }
.platform-card__icon { width: 64px; height: 64px; margin: 0 auto 1.2rem; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.platform-card__icon svg { width: 52px; height: 52px; }
.platform-card__icon--apple svg { width: 50px; height: 50px; fill: var(--ink); }
.platform-card__icon--linux svg { width: 58px; height: 58px; }
.platform-card-linux-icon svg { width: 54px; height: 54px; }
.linux-body { fill: #20201E; }
.linux-eye, .linux-belly { fill: #FFFFFF; }
.linux-pupil { fill: #20201E; }
.linux-beak, .linux-foot { fill: #D99B2B; }
.platform-card h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.platform-card__version { font-family: var(--font-mono); font-size: 13px; color: var(--mist); margin-bottom: 1.2rem; }
.platform-card__req { font-size: 13px; color: var(--stone); margin-bottom: 1.5rem; line-height: 1.5; }

/* ---- 更新日志 ---- */
.changelog-hero { padding: 5.5rem 0 4.5rem; text-align: left; border-bottom: 1px solid var(--line); }
.changelog-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 5rem; }
.changelog-hero-copy { display: flex; flex-direction: column; align-items: flex-start; width: 60%; }
.changelog-hero-copy .eyebrow { margin-bottom: 1.2rem; }
.changelog-hero-copy .h1 { margin-bottom: 1.4rem; font-size: clamp(2.5rem, 5vw, 4.4rem); }
.changelog-hero-copy p:last-child { margin: 0; max-width: 42ch; font-size: 1rem; line-height: 1.8; text-align: left; }
.release-summary { display: flex; flex-direction: column; width: 320px; flex-shrink: 0; padding: 1.4rem; color: #fff; background: var(--ink); }
.release-summary-top, .release-summary-bottom { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: #A5A39C; }
.release-summary strong { margin: 2.6rem 0 2.8rem; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; letter-spacing: -.05em; }
.changelog-section { padding: 4.5rem 0 6rem; background: var(--bg-alt); }
.timeline { max-width: 1000px; margin: 0 auto; }
.log-entry {
  display: flex; gap: 0; padding: 0;
  border: 1px solid var(--line); background: var(--bg);
}
.log-entry-meta { display: flex; flex-direction: column; width: 230px; flex-shrink: 0; padding: 2rem; border-right: 1px solid var(--line); }
.log-entry-label { width: fit-content; margin-bottom: 2.5rem; padding: .25rem .55rem; font-size: 11px; font-weight: 600; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); }
.log-entry__version { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; letter-spacing: -.04em; color: var(--ink); }
.log-entry__date { margin-top: .25rem; font-family: var(--font-mono); font-size: 11px; color: var(--mist); }
.log-entry-download { width: fit-content; margin-top: auto; padding-top: 2.5rem; font-size: 12px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--ink); }
.log-entry-content { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 2rem 2.4rem 2.4rem; }
.log-entry-heading { display: flex; flex-direction: column; gap: .35rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.log-entry-heading > span { font-family: var(--font-mono); font-size: 10px; color: var(--mist); text-transform: uppercase; letter-spacing: .08em; }
.log-entry__title { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.log-entry__list { display: flex; flex-direction: column; }
.log-entry__list li { display: flex; align-items: flex-start; gap: .9rem; padding: 1rem 0; font-size: 14px; line-height: 1.65; color: var(--graphite); border-bottom: 1px solid var(--line-soft); }
.log-entry__list li:last-child { padding-bottom: 0; border-bottom: none; }
.log-entry-mark { width: 7px; height: 7px; margin-top: 8px; flex-shrink: 0; background: var(--ink); }
@media (max-width: 760px) {
  .changelog-hero { padding: 4rem 0 3rem; }
  .changelog-hero-inner { flex-direction: column; align-items: stretch; gap: 2.5rem; }
  .changelog-hero-copy { width: 100%; }
  .release-summary { width: 100%; }
  .release-summary strong { margin: 2rem 0; }
  .changelog-section { padding: 2rem 0 4rem; }
  .log-entry { flex-direction: column; }
  .log-entry-meta { width: 100%; padding: 1.4rem; border-right: none; border-bottom: 1px solid var(--line); }
  .log-entry-label { margin-bottom: 1.5rem; }
  .log-entry-download { margin-top: 1.5rem; padding-top: 0; }
  .log-entry-content { padding: 1.4rem; }
}
.log-entry__tag { display: inline-block; font-size: 11px; font-weight: 600; padding: .15rem .5rem; border-radius: 4px; margin-right: .4rem; }
.log-entry__tag--new { background: #E8F5E9; color: #2E7D32; }
.log-entry__tag--fix { background: #FFF3E0; color: #E65100; }
.log-entry__tag--imp { background: #E3F2FD; color: #1565C0; }

/* ---- 工具类 ---- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 65ch; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.font-mono { font-family: var(--font-mono); }
.rounded { border-radius: var(--radius); }
.border { border: 1px solid var(--line); }
.bg-alt { background: var(--bg-alt); }
.hidden { display: none; }

/* SVG 通用 */
svg { display: block; }
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; }
