/* PatentClaw 展示页公共设计系统
   墨 · 纸 · 朱砂。index.html 与 example.html 共用，改色只动 :root。
   页面各自的版式（hero、特点卡、检查表等）留在各自文件的 <style> 里。 */

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

:root {
  --ink:        #1c1a17;
  --ink-2:      #413d36;
  --muted:      #6b6459;
  --paper:      #fbfaf8;
  --paper-2:    #f4f1ea;
  --sheet:      #ffffff;
  --rule:       #e2dcd1;
  --rule-2:     #cfc7b8;
  --seal:       #a8352c;
  --seal-dark:  #8c2b23;
  --seal-tint:  #f7ecea;
  --jade:       #4f6f58;
  --jade-line:  #6b8f74;
  --jade-tint:  #edf2ee;
  --ochre:      #8a6320;
  --ochre-line: #b08a3c;
  --ochre-tint: #f9f2e3;

  --font-serif: Georgia, 'Times New Roman', 'Iowan Old Style', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Courier New', monospace;

  --max: 940px;
  --max-wide: 1120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #f0d9d5; }

/* 键盘焦点。不用 :focus 以免鼠标点击也画框；朱砂描边在纸底上够醒目。 */
:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
  border-radius: 1px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--seal);
}

/* ══════════════════════ NAV ══════════════════════ */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,248,.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px double var(--rule-2);
}
.nav-inner {
  max-width: var(--max-wide); margin: 0 auto; padding: 0 32px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.nav-brand-name { font-family: var(--font-serif); font-size: 18px; letter-spacing: -.01em; }
.nav-brand-sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.nav-links { display: flex; gap: 20px; align-items: baseline; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 12.5px; letter-spacing: .02em; transition: color .15s;
  position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--seal); transform: scaleX(0); transition: transform .18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links .nav-no { font-family: var(--font-mono); font-size: 9.5px; color: var(--rule-2); margin-right: 3px; }

/* 窄屏收掉章节锚点（导航栏太挤），但 .nav-keep 的跨页链接必须留下，
   否则子页在手机上没有任何回首页的入口。 */
@media (max-width: 980px) {
  .nav-links a:not(.nav-keep) { display: none; }
  .nav-links { gap: 14px; }
}

/* ══════════════════════ 按钮 ══════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 17px; border-radius: 2px;
  font-size: 13px; font-weight: 550; text-decoration: none;
  border: 1px solid var(--rule-2); color: var(--ink-2); background: transparent;
  transition: all .16s; white-space: nowrap; cursor: pointer; font-family: inherit;
}
.btn:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.btn-primary { background: var(--seal); border-color: var(--seal); color: #fff; }
.btn-primary:hover { background: var(--seal-dark); border-color: var(--seal-dark); color: #fff; }
.btn-seal { border-color: var(--seal); color: var(--seal); background: var(--seal-tint); }
.btn-seal:hover { border-color: var(--seal-dark); color: var(--seal-dark); background: #f2ddd9; }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ══════════════════════ 章节骨架 ══════════════════════ */
section { padding: 64px 0; }
section.tint { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.sec-no { font-family: var(--font-mono); font-size: 12px; color: var(--seal); letter-spacing: .06em; flex-shrink: 0; }
.sec-title { font-size: clamp(20px, 2.8vw, 25px); font-weight: 700; letter-spacing: .01em; flex-shrink: 0; }
.sec-rule { flex: 1; height: 1px; background: var(--rule-2); min-width: 20px; }
.sec-en { font-family: var(--font-serif); font-style: italic; font-size: 13.5px; color: var(--muted); flex-shrink: 0; }
.sec-desc { font-size: 14px; color: var(--muted); margin-bottom: 32px; max-width: 700px; }
.sec-desc b { color: var(--ink-2); font-weight: 650; }

/* hero 抬头两侧的细线，两页共用 */
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; height: 1px; background: var(--rule-2); flex: 1; max-width: 80px;
}

/* ══════════════════════ 提示块 ══════════════════════ */
.note { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--rule-2); border-left: 3px solid var(--seal); background: var(--sheet); }
.note.calm { border-left-color: var(--rule-2); }
.note.warn { border-left-color: var(--ochre-line); }
.note-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--seal); margin-bottom: 7px; }
.note.calm .note-h { color: var(--muted); }
.note.warn .note-h { color: var(--ochre); }
.note p { font-size: 13.4px; color: var(--ink-2); line-height: 1.75; }
.note p + p { margin-top: 8px; }
.note b { font-weight: 650; color: var(--ink); }
.note ul { margin: 8px 0 0; padding-left: 18px; }
.note li { font-size: 13.2px; color: var(--ink-2); line-height: 1.7; }

/* ══════════════════════ FOOTER ══════════════════════ */
footer { border-top: 3px double var(--rule-2); background: var(--paper-2); padding: 34px 32px; text-align: center; }
.foot-brand { font-family: var(--font-serif); font-size: 17px; margin-bottom: 8px; }
footer p { font-size: 12.3px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule-2); }
footer a:hover { color: var(--seal); border-color: var(--seal); }
.foot-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; color: var(--rule-2); margin-top: 10px; }
