/* 与主站 thesmartpatent.com 同一套视觉：米白纸底、墨绿主色、Newsreader 衬线标题（色值取自 src/app/globals.css）。
   版式按 impeccable 选定效果图 A「专利图版开场」：左文右图版，图版装深色画框、下配打字机式图注。 */
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Latin.woff2") format("woff2"); font-display: swap; }
:root {
  --background: #fffdfc; --paper: #f7f4ee; --foreground: #23333b; --ink: #1f2528;
  --primary: #1C7B75; --primary-text: #175F59; --rule: #d8e1de; --secondary: #5d6c72;
  --mount: #3b3b37; --card: #ffffff;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
@media (prefers-color-scheme: dark) {
  :root { --background: #0E1517; --paper: #131c1e; --foreground: #E4EAE8; --ink: #EEF2F0; --primary: #4FA79E; --primary-text: #6FBDB4;
    --rule: #2A3735; --secondary: #9AA8A6; --mount: #3a403e; --card: #1a2325; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--primary-text); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); }
h1 { font-size: 2.4rem; margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }

.wrap { max-width: 650px; margin: 0 auto; padding: 0 22px; }
.wide { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.wrap h2 { padding-top: 1.4rem; border-top: 1px solid var(--rule); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; }

/* 顶栏 */
.top { border-bottom: 1px solid var(--rule); background: var(--background); }
.top .wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.3rem; }
nav { display: flex; gap: 6px 24px; flex-wrap: wrap; font-size: .97rem; }
nav a { color: var(--foreground); text-decoration: none; padding: 4px 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--primary-text); text-decoration: underline; }

::selection { background: #cfe6e3; color: #1f2528; }
@media (prefers-color-scheme: dark) { ::selection { background: #24524e; color: var(--ink); } }

/* 按钮与文字链 */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 1.6rem 0 0; }
.button { display: inline-block; background: var(--primary); color: #fff; padding: 12px 22px; border-radius: 4px; text-decoration: none; font-weight: 500; }
.button:hover { background: var(--primary-text); }
@media (prefers-color-scheme: dark) { .button { color: #071211; } }
.more { color: var(--primary-text); text-decoration: none; font-weight: 500; }
.more:hover { text-decoration: underline; }

/* 首屏：左文右图版 */
.hero { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); grid-template-areas: "text plate" "next plate"; gap: 0 clamp(32px, 4vw, 64px); align-items: start; padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 6vw, 72px); }
.hero-text { grid-area: text; padding-top: clamp(24px, 4vw, 56px); }
.plate { grid-area: plate; }
.hero .hero-next { grid-area: next; align-self: end; border-top: 1px solid var(--rule); padding-top: 2.5rem; margin: 3rem 0 0; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); text-wrap: balance; line-height: 1.06; margin-bottom: 1.4rem; }
.hero .answer { font-size: 1.15rem; max-width: 34em; }
.plate .mount { background: var(--mount); padding: clamp(10px, 1.2vw, 16px); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 32px rgba(35,40,40,.14); }
.plate img { width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #f4ecd9; }
.plate figcaption { text-align: center; font-family: var(--serif); font-size: 1rem; margin-top: .8rem; color: var(--foreground); }

/* 各段 */
.make { padding: 0 0 clamp(40px, 6vw, 72px); }
.routes, .founder { border-top: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) 0; }
.hero-next, .routes h2, .founder h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 0 0 1.4rem; }
.shot { background: var(--paper); border: 1px solid var(--rule); padding: clamp(14px, 3vw, 36px); border-radius: 4px; }
.shot img { background: #fff; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 48px; margin-top: 1.8rem; }
.product { display: block; color: inherit; text-decoration: none; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
.product p { margin: 0 0 .7rem; color: var(--secondary); }
.product:hover h3, .product:focus-visible h3 { color: var(--primary-text); }
.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 72px; }
.routes h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.founder { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.routes p, .founder p, .product p { max-width: 36em; }
.portrait img { border-radius: 2px; background: #8a8b8d; }

/* 书封 */
.books { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: 20px 28px; }
.books img { height: 170px; width: auto; box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 8px 18px rgba(35,40,40,.12); }
.books figcaption { font-size: .85rem; color: var(--secondary); margin-top: .6rem; max-width: 140px; line-height: 1.35; }
.books em { display: block; font-style: normal; color: var(--foreground); }

/* 阅读页 */
.lead { padding: 3rem 0 .5rem; }
.lead.person { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: end; }
.answer { font-size: 1.15rem; }
.zh { color: var(--secondary); font-size: .6em; margin-left: .3em; }
.qa h2 { font-size: 1.25rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; }
.facts dt { color: var(--secondary); }
.facts dd { margin: 0; }
.small, .note { color: var(--secondary); font-size: .9rem; }

/* 页脚法定披露 */
.foot { margin-top: 4rem; border-top: 1px solid var(--rule); background: var(--paper); padding: 1.6rem 0 2.6rem; font-size: .88rem; color: var(--secondary); }
.wide + .foot, main.wide ~ .foot { margin-top: 0; }
.foot p { margin: .3rem 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "plate" "next"; }
  .plate { margin-top: 2rem; }
  .plate { max-width: 520px; }
  .plate img { max-height: none; }
  .founder { grid-template-columns: 1fr; }
  .founder .portrait { max-width: 260px; }
}
@media (max-width: 560px) {
  h1 { font-size: 1.9rem; }
  .lead.person { grid-template-columns: 1fr; }
  .lead.person .portrait { max-width: 200px; }
  .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 8px; }
  .books img { height: 140px; }
}
@media (max-width: 480px) {
  nav { gap: 4px 12px; font-size: .88rem; }
  .books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .books img { height: auto; width: 100%; }
  .books figcaption { font-size: .78rem; }
}
