/* ============ 字体 ============ */
@font-face { font-family: "Inter Display"; font-weight: 400; font-display: swap; src: url(https://pingchn.com/fonts/inter-display-400.woff2?x=meet) format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 500; font-display: swap; src: url(https://pingchn.com/fonts/inter-display-500.woff2?x=meet) format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url(https://pingchn.com/fonts/inter-display-600.woff2?x=meet) format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url(https://pingchn.com/fonts/inter-display-700.woff2?x=meet) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(https://pingchn.com/fonts/inter-500.woff2?x=meet) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(https://pingchn.com/fonts/inter-700.woff2?x=meet) format("woff2"); }
@font-face { font-family: "Gelasio"; font-weight: 400; font-display: swap; src: url(https://pingchn.com/fonts/gelasio-400.woff2?x=meet) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(https://pingchn.com/fonts/instrument-sans-400.woff2?x=meet) format("woff2"); }

/* ============ 设计变量 ============ */
:root {
  --accent: #ff4d23;      /* 品牌红 */
  --ink: #343434;         /* 主文字 */
  --ink-strong: #1e1e1e;  /* 卡片标题 */
  --muted: #ababab;       /* 次要文字 / 链接默认色 */
  --faint: #c2c2c2;       /* 页脚、返回按钮 */
  --fainter: #cccccc;     /* 职位 */
  --label: #b8b8b8;       /* 卡片小标签 */
  --card: #f4f4f4;        /* 卡片底色 */
  --gap: 10px;            /* 卡片间距 */
  --pad-x: 80px;          /* 内页左右留白 */
  --max-w: 1200px;        /* 内页内容最大宽度 */
  --sans: "Inter Display", "Inter", -apple-system, "PingFang SC", "Helvetica Neue", sans-serif;
  --ui: "Inter", -apple-system, "PingFang SC", sans-serif;
}

/* ============ 基础 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  overflow-x: clip; /* 轮播铺到屏幕边缘时，防止滚动条宽度带出横向滚动 */
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
b, strong { font-weight: 700; }

/* 带红点的链接列表：.about .tools .thoughts */
.dot-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dot-list li { font-weight: 700; line-height: 18px; }
.dot-list li::before { content: "."; color: var(--accent); }
.dot-list .meet-link a { color: var(--accent); }
.dot-list .meet-link .hint { margin-left: 8px; font-weight: 400; color: var(--muted); }
.dot-list a { color: var(--muted); transition: color .2s; }
.dot-list a:hover { color: var(--ink); }

/* 页脚 */
.footer { display: inline-block; font-size: 13px; line-height: 1.2; color: var(--faint); }
.footer b { font-weight: 600; }
/* 页脚右侧的语言切换：中文页显示 EN，英文页显示 中文 */
.footer-row { display: flex; align-items: baseline; gap: 16px; }
.lang { font-size: 13px; line-height: 1.2; font-weight: 600; color: var(--faint); transition: color .2s; }
.lang:hover { color: var(--ink); }

/* ============ 首页 ============ */
.home {
  width: min(600px, 100% - 80px);
  margin: 0 auto;
  padding: 120px 0;
}
.quote { font-family: "Gelasio", Georgia, serif; font-size: 22px; line-height: 1.2; color: var(--accent); }
.home .dot-list { margin-top: 120px; }
.motto { margin-top: 20px; font-weight: 700; line-height: 18px; }
.intro { margin-top: 20px; line-height: 1.7; color: var(--muted); }
.intro .brand { color: var(--accent); font-weight: 700; }

/* 头像：悬停时卡通头像向右滑开，露出照片 */
.avatar { position: relative; width: 128px; height: 60px; margin-top: 120px; }
.avatar img {
  position: absolute; top: 0; width: 60px; height: 60px;
  border-radius: 50%; object-fit: cover;
}
.avatar .photo { left: 0; }
.avatar .cartoon { left: 18px; transition: left .45s cubic-bezier(.34, 1.56, .64, 1); }
.avatar:hover .cartoon { left: 68px; }
.home .footer-row { margin-top: 120px; }

/* ============ 内页通用 ============ */
.page {
  min-height: 100vh;
  max-width: calc(var(--max-w) + 2 * var(--pad-x)); /* 内容最宽 1200，宽屏居中 */
  margin: 0 auto;
  padding: 40px var(--pad-x);
  display: flex;
  flex-direction: column;
}
.page main { flex: 1; }
.page .footer-row { margin-top: 40px; }

.back {
  align-self: flex-start; /* 不被拉成整行宽，悬停底色只包住按钮 */
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px 0 4px; border-radius: 16px;
  font-size: 14px; font-weight: 700; color: var(--faint);
  transition: background-color .2s, color .2s;
}
.back::before {
  content: ""; width: 16px; height: 14px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M.617 7c0-.234.102-.469.281-.633l5.133-5.14c.203-.196.414-.274.625-.274.492 0 .844.344.844.813 0 .242-.094.453-.25.609L5.5 4.148 3.195 6.258l1.821-.11h9.5c.507 0 .867.344.867.852 0 .5-.36.852-.867.852h-9.5l-1.828-.11L5.5 9.852l1.75 1.773c.156.148.25.36.25.602 0 .468-.352.82-.844.82-.211 0-.422-.086-.61-.266L.899 7.633A.87.87 0 0 1 .617 7Z' fill='%23c2c2c2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.back:hover { background: var(--card); color: var(--ink); }
.page main { margin-top: 40px; }

/* 卡片：工具和作品共用 */
.card {
  position: relative; display: block;
  height: 400px; padding: 20px;
  border-radius: 4px; background: #fff;
  transition: background-color .25s;
}
.card img {
  position: absolute; left: 50%; top: 50%;
  width: 70%; max-width: 280px; aspect-ratio: 1; height: auto;
  transform: translate(-50%, -50%); object-fit: contain;
}
.card .year { font-family: "Instrument Sans", var(--ui); font-size: 14px; line-height: 1.2; color: var(--label); }
.card .meta { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.card .label { font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--label); }
.card .name { margin-top: 7px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink-strong); }

/* ============ 关于 ============ */
.statement { margin-top: 40px; line-height: 24px; }
.timeline { margin-top: 43px; display: grid; grid-template-columns: 110px 1fr; row-gap: 11px; font-size: 14px; line-height: 17px; color: var(--muted); }
.timeline .role { color: var(--fainter); }
.timeline .current { font-weight: 700; }
.timeline a:hover { color: var(--ink); }
/* about 页：主体撑满剩余高度，作品区靠底，窗口拉高时跟着页脚贴在下面 */
.page-about main { display: flex; flex-direction: column; }
.page-about .products { margin-top: auto; }
.section-title { margin-top: 70px; font-weight: 700; line-height: 25.5px; }

.carousel { position: relative; margin-top: 9px; }
.carousel-track {
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* 横向铺满到屏幕两边：左右留白用内边距保留，滚动时卡片一直延伸到屏幕边缘，不会被留白截断 */
  --bleed: max(var(--pad-x), (100vw - var(--max-w)) / 2); /* 内容区到屏幕边缘的距离（宽屏时大于左右留白） */
  margin: 0 calc(-1 * var(--bleed));
  padding: 0 var(--bleed);
  scroll-padding-inline: var(--bleed);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .card { flex: 0 0 320px; scroll-snap-align: start; }
.carousel .card img { width: 224px; }
a.card:hover { background: var(--card); }
/* 有链接的卡片右上角出现 ↗ */
a.card::after {
  content: ""; position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%; opacity: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M15.383 7c0-.234-.102-.469-.281-.633L9.969 1.227c-.203-.196-.414-.274-.625-.274-.492 0-.844.344-.844.813 0 .242.094.453.25.609l1.75 1.773 2.305 2.11-1.821-.11h-9.5c-.507 0-.867.344-.867.852 0 .5.36.852.867.852h9.5l1.828-.11L10.5 9.852l-1.75 1.773a.828.828 0 0 0-.25.602c0 .468.352.82.844.82.211 0 .422-.086.61-.266l5.148-5.148A.87.87 0 0 0 15.383 7Z' fill='%23343434'/%3E%3C/svg%3E") center / 16px 14px no-repeat;
  transform: rotate(-45deg);
  transition: opacity .25s;
}
a.card:hover::after { opacity: 1; }

.carousel-btn {
  position: absolute; top: 50%; z-index: 1;
  width: 36px; height: 36px; margin-top: -18px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M15.383 7c0-.234-.102-.469-.281-.633L9.969 1.227c-.203-.196-.414-.274-.625-.274-.492 0-.844.344-.844.813 0 .242.094.453.25.609l1.75 1.773 2.305 2.11-1.821-.11h-9.5c-.507 0-.867.344-.867.852 0 .5.36.852.867.852h9.5l1.828-.11L10.5 9.852l-1.75 1.773a.828.828 0 0 0-.25.602c0 .468.352.82.844.82.211 0 .422-.086.61-.266l5.148-5.148A.87.87 0 0 0 15.383 7Z' fill='%23343434'/%3E%3C/svg%3E") center / 16px 14px no-repeat;
  backdrop-filter: blur(8px);
  transition: opacity .25s, background-color .2s;
}
.carousel-btn:hover { background-color: rgba(0, 0, 0, .1); }
.carousel-btn.next { right: calc(var(--pad-x) / -2 - 18px); } /* 放在左右留白的正中间，不压在卡片上 */
.carousel-btn.prev { left: calc(var(--pad-x) / -2 - 18px); transform: scaleX(-1); }
.carousel-btn[hidden] { display: block; opacity: 0; pointer-events: none; }

/* ============ 工具 ============ */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tools-grid .card { background: var(--card); }

/* ============ 想法 ============ */
.thoughts-head { line-height: 25.5px; }
.thoughts-head b { color: #000; }
.thoughts-head b::before { content: "."; color: var(--accent); }
.thoughts-head span { color: var(--muted); }
.thoughts-body { margin-top: 55px; font-weight: 700; color: #000; line-height: 25.5px; }

/* 「也许，我们可以直接聊聊」：点一下复制邮箱 */
/* 「聊聊」下面：发给 AI 约时间的一段话 */
.talk { margin-top: 12px; max-width: 560px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.talk-prompt { margin: 8px 0 10px; padding: 12px 14px; background: var(--card); border-radius: 10px; color: var(--ink); }
.talk-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.talk-actions a, .talk .copy-talk { font-size: 13px; color: var(--ink); transition: color .2s; }
.talk-actions a:hover { color: var(--accent); }
.talk .copy-talk { position: relative; }
.talk .copy-talk:hover { color: var(--accent); }
.talk .copy-talk::after { position: absolute; left: 0; top: 100%; margin: 2px 0 0; white-space: nowrap; font-size: 12px; }
.copy-talk { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: color .2s; }
.copy-talk:hover { color: var(--accent); }
.copy-talk::after { content: attr(data-tip); margin-left: 12px; font-size: 13px; font-weight: 400; color: var(--muted); opacity: 0; transition: opacity .2s; }
.copy-talk.copied::after { opacity: 1; }
/* 和文章列表之间的分割线 */
.divider { margin: 24px 0; border: 0; border-top: 1px solid #eee; }

/* 文章列表：只显示标题；悬停时标题变红，后面浮出日期 */
.post-list { margin-top: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.post-list a { display: inline-flex; align-items: baseline; gap: 12px; line-height: 25.5px; }
.post-list .title { font-weight: 700; color: var(--ink); transition: color .2s; }
.post-list time { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; }
.post-list a:hover .title { color: var(--accent); }
.post-list a:hover time { opacity: 1; }
/* thoughts 页底部的采访：小字、置底，窗口拉高时跟着页脚贴在下面 */
.page-thoughts main { display: flex; flex-direction: column; }
.interviews { margin-top: auto; padding-top: 80px; font-size: 12px; line-height: 20px; }
.list-label { color: var(--faint); }
.mini-list { list-style: none; }
.mini-list a { color: var(--muted); transition: color .2s; }
.mini-list a:hover { color: var(--ink); }
.mini-list .meta { margin-left: 8px; color: var(--faint); }

/* 文章页：返回、正文、页脚收成 640 宽的一栏，整栏居中，方便阅读（文字仍左对齐） */
.page-post { max-width: calc(640px + 2 * var(--pad-x)); }
.post { max-width: 640px; }
.post-head h1 { font-size: 22px; font-weight: 700; line-height: 1.4; color: #000; }
.post-head time { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post-body { margin-top: 40px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { margin-top: 2.2em; font-size: 15px; font-weight: 700; color: #000; }
.post-body h3 { margin-top: 2em; font-size: 15px; font-weight: 700; color: #000; }
.post-body h2 + figure, .post-body h3 + figure { margin-top: .8em; }
.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.post-body a:hover { color: var(--accent); }
.post-body blockquote { padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .3em; }
.post-body img { width: 100%; border-radius: 4px; background: var(--card); }
.post-body figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.post-body code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; padding: .1em .35em; border-radius: 4px; background: var(--card); }
.post-body hr { border: 0; text-align: center; }
.post-body hr::before { content: "· · ·"; color: var(--muted); letter-spacing: .4em; }

/* ============ 响应式（与原站一致：1200 / 810 断点） ============ */
@media (max-width: 1199.98px) {
  :root { --pad-x: 40px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 809.98px) {
  .tools-grid { grid-template-columns: 1fr; }
  /* 文章列表：手机没有悬停，不显示日期，标题用满整行 */
  .post-list time { display: none; }
  /* 访谈：手机上来源换到下一行，条目之间拉开一点 */
  .mini-list li + li { margin-top: 10px; }
  .mini-list .meta { display: block; margin-left: 0; }
  .tools-grid .card { height: 320px; }
  .tools-grid .card img { width: 212px; }
  .timeline { grid-template-columns: 110px 1fr; }
  /* 作品在手机上竖排，不再横向滚动 */
  .carousel-track { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .carousel-btn { display: none; }
  .carousel .card { flex: none; height: 350px; }
  .carousel .card img { width: 244px; }
}
.page-about .footer-row { margin-top: 24px; }

/* 戒指和录音卡的静态图：原图留白比例和其他作品图不同，单独定显示宽度，让产品看起来大小一致 */
.carousel .card img.img-ring { width: 118px; }
.carousel .card img.img-tall { width: 192px; }
@media (max-width: 809.98px) {
  .carousel .card img.img-ring { width: 130px; }
  .carousel .card img.img-tall { width: 200px; }
}

/* 白底的产品图：白色和卡片底色融在一起，不用抠图 */
.card img.on-white { mix-blend-mode: multiply; }
