:root {
  color-scheme: light;
  --ink: #17221b;
  --muted: #66736b;
  --line: #dfe7e0;
  --paper: #f7f8f3;
  --card: #ffffff;
  --green: #196b45;
  --lime: #dff36b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header { height: 72px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(247,248,243,.9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: var(--lime); font-family: Georgia, serif; font-size: 19px; font-style: italic; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.brand-word { color: var(--ink); }
.brand-word b { color: var(--green); }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--ink); }

.hero { max-width: 960px; margin: 0 auto; padding: 96px 24px 56px; text-align: center; }
.eyebrow, .section-label { color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 24px; font-size: clamp(42px, 6vw, 72px); line-height: 1.08; letter-spacing: -.055em; }
.hero h1 em { color: var(--green); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; height: 10px; background: var(--lime); left: 0; right: 0; bottom: 3px; z-index: -1; transform: rotate(-1deg); }
.hero > p { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.8; }
.trust-row { margin-top: 28px; display: flex; justify-content: center; gap: 24px; color: #496154; font-size: 14px; }

.tool-shell { max-width: 880px; margin: 22px auto 110px; padding: 40px; border-radius: 24px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 24px 80px rgba(33,57,42,.09); }
.tool-heading, .result-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tool-heading h2, .result-header h2, .how h2, .faq h2 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.035em; }
.quota { border: 1px solid var(--line); background: var(--paper); padding: 10px 14px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.quota strong { color: var(--green); }
form { margin-top: 32px; }
label { display: grid; gap: 9px; margin-bottom: 20px; font-weight: 700; font-size: 14px; }
label span { color: #c44; }
label small { display: inline; color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid #ccd7ce; border-radius: 11px; background: #fbfcf9; color: var(--ink); padding: 14px 15px; outline: none; transition: .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25,107,69,.1); background: white; }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.primary-button { width: 100%; border: 0; border-radius: 12px; padding: 16px 22px; background: var(--ink); color: white; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-1px); background: var(--green); }
.primary-button span { float: right; }
.form-note { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }

.progress-panel { margin-top: 30px; padding: 22px; border: 1px solid #c8dfd0; background: #f1f8f2; border-radius: 14px; display: flex; align-items: center; gap: 16px; }
.progress-panel[hidden], .result-panel[hidden] { display: none; }
.progress-panel p { color: var(--muted); margin: 5px 0 0; font-size: 13px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #bed4c4; border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-panel { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 36px; }
.copy-button { border: 1px solid var(--line); padding: 10px 14px; background: white; border-radius: 9px; cursor: pointer; }
.copy-button:hover { border-color: var(--green); color: var(--green); }
.insights { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 25px 0; }
.insights div { padding: 15px; border-radius: 10px; background: var(--paper); display: grid; gap: 5px; }
.insights span { color: var(--muted); font-size: 11px; }
.insights strong { font-size: 13px; }
.outline-content { border-left: 2px solid var(--lime); padding-left: 24px; }
.outline-content h3 { margin: 28px 0 8px; font-size: 18px; }
.outline-content p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.how, .faq { max-width: 1040px; margin: 0 auto; padding: 0 24px 110px; }
.steps { margin-top: 32px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.steps article { border-top: 1px solid #bcc9bf; padding-top: 22px; }
.steps b { color: var(--green); font-size: 13px; }
.steps h3 { margin: 30px 0 10px; font-size: 21px; }
.steps p, .faq details p { color: var(--muted); line-height: 1.7; }
.faq { max-width: 800px; }
.faq h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--line); padding: 19px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; }
footer { text-align: center; padding: 34px 24px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }

/* Resume */
.resume-page { background: #f8f8f4; }
.resume-main { max-width: 920px; margin: 0 auto; padding: 72px 24px 120px; }
.resume-intro { padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.resume-kicker { color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.resume-intro h1 { max-width: 790px; margin: 18px 0 24px; font-size: clamp(38px, 5.5vw, 62px); line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.resume-intro h1 span { color: var(--green); }
.resume-intro h1 .person-name { color: inherit; white-space: nowrap; }
.resume-lead { max-width: 760px; margin: 0; color: #4f5e54; font-size: 18px; line-height: 1.9; }
.resume-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.resume-tags span { padding: 8px 12px; background: #e9f1e9; color: #28543b; border-radius: 999px; font-size: 13px; font-weight: 700; }
.resume-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.resume-section:last-child { border-bottom: 0; }
.resume-section > h2 { margin: 7px 0 30px; font-size: 32px; letter-spacing: -.04em; }
.achievement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.achievement { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.achievement strong { display: block; color: var(--green); font-size: 28px; letter-spacing: -.04em; margin-bottom: 9px; }
.achievement p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 99px; top: 7px; bottom: 7px; width: 1px; background: #cbd6cd; }
.job { display: grid; grid-template-columns: 78px 1fr; gap: 44px; padding-bottom: 48px; }
.job:last-child { padding-bottom: 0; }
.job time { color: var(--green); font-size: 13px; font-weight: 800; position: relative; }
.job time::after { content: ""; position: absolute; right: -28px; top: 4px; width: 9px; height: 9px; border: 3px solid var(--paper); background: var(--green); border-radius: 50%; box-shadow: 0 0 0 1px var(--green); }
.job h3 { margin: -4px 0 5px; font-size: 23px; letter-spacing: -.025em; }
.job-role { margin: 0 0 16px; color: var(--muted); font-weight: 700; }
.job ul { margin: 0; padding-left: 20px; color: #48564d; line-height: 1.8; }
.job li + li { margin-top: 8px; }
.skill-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skill-group { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.skill-group h3 { margin: 0 0 12px; font-size: 16px; }
.skill-group p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 14px; }
.project-card { padding: 28px; border-radius: 18px; color: white; background: var(--ink); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.project-card h3 { margin: 0 0 9px; font-size: 26px; }
.project-card p { margin: 0; color: #c5d1c8; line-height: 1.7; }
.project-card a { padding: 12px 17px; color: var(--ink); background: var(--lime); border-radius: 10px; font-weight: 800; white-space: nowrap; }
.education-line { display: flex; justify-content: space-between; gap: 20px; }
.education-line h3 { margin: 0 0 8px; font-size: 21px; }
.education-line p { margin: 0; color: var(--muted); }
.education-line time { color: var(--muted); font-size: 14px; white-space: nowrap; }

@media (max-width: 680px) {
  .site-header { height: 64px; }
  nav { display: none; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: 42px; }
  .trust-row { flex-wrap: wrap; gap: 10px 18px; }
  .tool-shell { margin: 10px 14px 80px; padding: 24px 18px; border-radius: 18px; }
  .tool-heading, .result-header { display: grid; }
  .quota { width: fit-content; }
  .form-grid, .insights, .steps { grid-template-columns: 1fr; }
  .resume-main { padding-top: 48px; }
  .resume-intro h1 { font-size: 36px; line-height: 1.16; }
  .achievement-grid, .skill-groups { grid-template-columns: 1fr; }
  .timeline::before { left: 6px; }
  .job { grid-template-columns: 1fr; gap: 12px; padding-left: 26px; }
  .job time::after { left: -25px; right: auto; }
  .project-card { grid-template-columns: 1fr; }
  .project-card a { width: fit-content; }
  .education-line { display: grid; }
}
