/* 简历一键成站 —— 编辑纸感: 暖纸底 + 暖黑 + 唯一强调色深黛蓝(≤10%) + 衬线标题 + 1px 细线, 无阴影卡无 emoji */
:root {
  --paper: #f6f2ea;
  --paper-2: #efe9dd;
  --ink: #1d1b16;
  --ink-2: #5f5a4f;
  --ink-3: #9a9385;
  --line: #d9d2c4;
  --accent: #35486e;
  --accent-ink: #fff;
  --serif: Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .04; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"); z-index: 0; }
main, header.top, footer.foot { position: relative; z-index: 1; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
em { font-style: italic; color: var(--accent); }

/* 顶栏 */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 18px; }
.brand-mark { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 2px; font-size: 15px; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* 首屏 */
.hero { max-width: 860px; margin: 0 auto; padding: 88px 24px 56px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.15; margin-bottom: 18px; }
.lede { max-width: 640px; margin: 0 auto 36px; color: var(--ink-2); font-size: 17px; }
.drop { border: 1px dashed var(--ink-3); border-radius: 4px; padding: 44px 24px; cursor: pointer; background: rgba(255,255,255,.35); transition: border-color .15s, background .15s; outline: none; }
.drop:hover, .drop:focus, .drop.over { border-color: var(--accent); background: rgba(255,255,255,.7); }
.drop-inner svg { color: var(--accent); margin-bottom: 8px; }
.drop p { margin: 4px 0; }
.paste-box { margin-top: 18px; text-align: left; }
.paste-box summary { cursor: pointer; color: var(--ink-2); font-size: 14px; text-align: center; list-style: none; }
.paste-box summary::-webkit-details-marker { display: none; }
.paste-box summary:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.paste-box textarea { width: 100%; margin: 14px 0 10px; }
.hero-links { margin-top: 26px; }
button.link { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 14px; padding: 0; font-family: inherit; }
button.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 按钮/表单 */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { border-color: var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input, textarea, select { font: inherit; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.55; }
select { width: auto; padding: 4px 8px; }
label { font-size: 13px; color: var(--ink-2); display: block; margin-bottom: 4px; }

/* 模板库 */
.gallery { max-width: 1180px; margin: 0 auto; padding: 56px 24px; border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: 32px; }
.count { font-family: var(--mono); font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; padding: 6px 12px; border-radius: 999px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chip.on, .chip:hover { border-color: var(--ink); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { border: 1px solid var(--line); background: #fff; border-radius: 4px; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 16/10; background: var(--paper-2); overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card .thumb .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; color: var(--ink-3); }
.card .meta { padding: 12px 14px 14px; }
.card .meta strong { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.card .meta .src { float: right; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); margin-top: 5px; }
.card .meta p { margin: 2px 0 8px; font-size: 13px; color: var(--ink-2); }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card .tags span { font-size: 11px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.card.cur { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* 工作台 */
.workbench { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.wb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: var(--paper); }
.wb-tpl { display: flex; align-items: center; gap: 10px; }
.wb-tpl strong { font-family: var(--serif); font-weight: 500; }
.wb-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-body { display: grid; grid-template-columns: 380px 1fr; min-height: 80vh; }
.editor { padding: 20px 20px 40px; border-right: 1px solid var(--line); overflow: auto; max-height: calc(100vh - 60px); background: var(--paper); }
.editor .field { margin-bottom: 14px; }
.photo-row { display: flex; align-items: center; gap: 10px; }
.photo-row img { width: 48px; height: 48px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.sec-card { border: 1px solid var(--line); border-radius: 3px; padding: 12px; margin: 14px 0; background: #fff; }
.sec-card .sec-top { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.sec-card .sec-top input { flex: 1; font-weight: 600; }
.sec-card .sec-top select { font-size: 12px; }
.sec-card .sec-top button { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 14px; padding: 2px 5px; }
.sec-card .sec-top button:hover { color: var(--ink); }
.sec-card textarea { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; }
.fmt-help { margin-top: 10px; }
.preview-wrap { display: flex; flex-direction: column; min-height: 0; }
.device-bar { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.device-bar a { margin-left: auto; text-decoration: none; }
.dev { border: 1px solid var(--line); background: transparent; padding: 4px 12px; border-radius: 999px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.dev.on { border-color: var(--ink); color: var(--ink); background: #fff; }
.frame-holder { flex: 1; display: flex; justify-content: center; align-items: stretch; background: #e6e0d4; padding: 0; min-height: 70vh; }
.frame-holder iframe { border: 0; width: 100%; height: calc(100vh - 110px); background: #fff; transition: width .2s; }
.frame-holder.mobile iframe { width: 390px; margin: 16px auto; height: 760px; border: 1px solid var(--line); border-radius: 18px; }

/* 怎么用 */
.how { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; border-top: 1px solid var(--line); }
.how h2 { font-size: 32px; margin-bottom: 20px; }
.steps { padding-left: 22px; color: var(--ink-2); }
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--ink); }
.faq { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink-2); font-size: 14px; }
.foot { text-align: center; padding: 28px 24px 48px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* 弹窗 */
.modal { position: fixed; inset: 0; background: rgba(29,27,22,.55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; width: min(1200px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
.modal-box.narrow { width: min(560px, 100%); height: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.modal-actions { display: flex; align-items: center; gap: 8px; }
.modal-body { padding: 16px; }
.modal-frame { min-height: 0; }
.modal-frame iframe { height: 100%; }
.modal-frame.mobile iframe { height: calc(100% - 32px); }
#shareLink { font-family: var(--mono); font-size: 11px; word-break: break-all; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }

/* 遮罩 */
.overlay { position: fixed; inset: 0; background: rgba(246,242,234,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 60; gap: 14px; }
.overlay[hidden] { display: none; }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .top { padding: 14px 18px; }
  .hero { padding: 56px 18px 40px; }
  .wb-body { grid-template-columns: 1fr; }
  .editor { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .frame-holder iframe { height: 80vh; }
  .wb-bar { padding: 10px 14px; }
}
