.ai-workflow { margin: 0 16px; padding: 16px; max-height: 48vh; overflow: auto; background: #f7f9fc; border: 1px solid #e1e6ef; border-radius: 12px; }
.ai-workflow:empty { display: none; }
.ai-workflow p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; }
.ai-workflow h3, .ai-workflow h4 { margin: 12px 0 8px; }
.ai-workflow details { padding: 10px 0; border-bottom: 1px solid #dce2ea; }
.ai-workflow summary { cursor: pointer; font-size: 13px; }
.ai-workflow input[type="checkbox"] { width: auto; margin-right: 8px; }
.ai-workflow pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12px; padding: 10px; border-radius: 8px; }
.ai-diff-before { background: #fff0ef; }
.ai-diff-after { background: #eaf7f0; }
.ai-workflow button { margin: 8px 6px 0 0; }
.ai-chat-messages > .ai-workflow { align-self: stretch; margin: 0; }
.ai-change-dialog { width: min(1100px, calc(100% - 32px)); max-height: min(85vh, 900px); padding: 0; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 24px 80px #0003; color: #20242e; }
.ai-change-dialog::backdrop { background: #151a2d88; }
.ai-change-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px; border-bottom: 1px solid #e1e6ef; background: #fff; }
.ai-change-dialog-head h2 { margin: 0; font-size: 1.3rem; }
.ai-change-dialog-head p { margin: 6px 0 0; color: #697386; font-size: .8rem; }
.ai-change-dialog-content { display: grid; gap: 18px; padding: 24px 26px 28px; }
.ai-change-row h3 { margin: 0 0 10px; font-size: .9rem; overflow-wrap: anywhere; }
.ai-change-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-change-column { min-width: 0; padding: 14px 16px; border-radius: 11px; }
.ai-change-before { background: #fff1f0; }
.ai-change-after { background: #eaf7f0; }
.ai-change-column h4 { margin: 0 0 9px; font-size: .78rem; }
.ai-change-column p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: .82rem; }
@media (max-width: 640px) { .ai-change-columns { grid-template-columns: 1fr; } .ai-change-dialog-head, .ai-change-dialog-content { padding: 18px; } }
#ai-chat-form #reuse-ai-job { width: auto; }
:root {
  color-scheme: light;
  --ink: #202020;
  --muted: #737373;
  --canvas: #f7f7f7;
  --card: #ffffff;
  --line: #e7e7e4;
  --accent: #f25c40;
  --accent-soft: #fff1ed;
  --green: #52d352;
  --error: #b6382a;
  --heading: "SK Reykjavik Rounded Regular", "Arial Rounded MT Bold", "PingFang SC", sans-serif;
  --sans: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  width: min(1440px, calc(100% - 64px));
  height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark { position: relative; display: grid; place-items: center; width: 38px; height: 38px; }
.brand-mark::before { content: ""; position: absolute; inset: 4px; background: var(--accent); opacity: .5; filter: blur(12px); transform: translateY(4px); }
.brand-mark span { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--accent); box-shadow: inset 0 0 5px #ffffff80, 0 8px 20px #f25c4059; }
.brand-name { font-size: 1.08rem; letter-spacing: -.02em; }

.service-pill, .availability, .platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 700;
}
.service-pill { padding: 9px 14px; color: #686868; background: #fff; border: 1px solid #ededeb; box-shadow: 0 4px 18px #00000008; font-size: .76rem; }
.status-dot, .availability > span, .platform-badge > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px #52d35299; }
.status-dot.is-warning { background: var(--accent); box-shadow: 0 0 8px #f25c4099; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.account-pill { min-height: 35px; display: flex; align-items: center; gap: 9px; padding: 4px 5px 4px 12px; border: 1px solid #e9e9e6; border-radius: 999px; background: #fff; color: #777; font-size: .72rem; font-weight: 700; box-shadow: 0 4px 18px #00000008; }
.account-pill button { padding: 6px 9px; border: 0; border-radius: 999px; background: #f2f2ef; color: #74746f; font-size: .68rem; }
.account-pill button:hover { color: var(--accent); background: var(--accent-soft); }

.hero-grid {
  width: min(1440px, calc(100% - 64px));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: clamp(38px, 7vh, 88px) 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(480px, .88fr);
  gap: clamp(54px, 8vw, 130px);
  align-items: center;
}

.hero-copy { padding-left: clamp(0px, 2vw, 28px); }
.availability { padding: 8px 13px; border: 1px solid #d1f2d1; color: #45b945; background: #fbfffb; font-size: .7rem; letter-spacing: .11em; text-transform: uppercase; }
.availability > span { animation: pulse 1.5s ease-in-out infinite alternate; }

h1 {
  margin: 28px 0 0;
  font-family: var(--heading);
  font-size: clamp(3.8rem, 6.5vw, 7.15rem);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 500;
}
h1 > span:last-child { color: var(--accent); }

.deep-icon { position: relative; display: inline-grid; place-items: center; width: .72em; height: .72em; margin: 0 .07em; vertical-align: .08em; }
.deep-icon-glow { position: absolute; inset: 8%; border-radius: 30%; background: var(--accent); opacity: .6; filter: blur(18px); transform: scale(.9) translateY(6px); }
.deep-icon-face { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 28%; background: var(--accent); color: white; font: 600 .52em/1 var(--sans); transform: rotate(-6deg); box-shadow: inset 0 0 5px #ffffff80, 0 8px 20px #f25c4059; }

.hero-description { max-width: 630px; margin: 32px 0 0; color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.deep-button-wrap { position: relative; display: inline-flex; isolation: isolate; }
.deep-button-glow { position: absolute; z-index: -1; inset: 5px; border-radius: 20px; background: #212121; opacity: .38; filter: blur(25px); transition: transform .25s ease; }
.deep-button-wrap:hover .deep-button-glow { transform: scale(1.1) translateY(4px); }
.deep-button { min-height: 56px; padding: 0 22px; border: 0; border-radius: 16px; background: #202020; color: white; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 22px; box-shadow: inset 0 0 4px #ffffff40, 0 6px 19px #00000040; transition: transform .2s ease, background .2s ease; }
.deep-button:hover { background: #2d2d2d; transform: translateY(-1px); }
.deep-button:active { transform: translateY(1px); }
.deep-button:disabled { cursor: wait; opacity: .6; }
.deep-button span { color: #ff8d76; font-size: 1.15rem; }
.secondary-button { min-height: 56px; padding: 0 20px; border: 1px solid #e5e5e2; border-radius: 16px; background: #fff; color: #666; font-weight: 650; display: inline-flex; align-items: center; gap: 11px; box-shadow: 0 5px 18px #00000008; transition: border-color .2s, transform .2s; }
.secondary-button:hover { border-color: #c9c9c6; transform: translateY(-1px); }
.play-icon { width: 28px; height: 28px; display: grid; place-items: center; padding-left: 2px; border-radius: 50%; background: #f1f1ef; color: #555; font-size: .58rem; }

.proof-row { display: flex; align-items: stretch; gap: 30px; margin-top: 58px; }
.proof-block { min-width: 190px; }
.proof-label { display: block; margin-bottom: 15px; color: #9a9a96; font-size: .68rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.proof-divider { width: 1px; align-self: stretch; background: #dfdfdc; }
.evidence-stack { height: 45px; display: flex; align-items: center; padding-left: 8px; }
.evidence-avatar { position: relative; display: grid; place-items: center; margin-left: -8px; border: 3px solid var(--canvas); border-radius: 50%; background: linear-gradient(145deg, #2d2d2d, #151515); color: #fff; font-size: .73rem; font-weight: 800; box-shadow: 0 6px 15px #00000020; }
.evidence-avatar.size-md { width: 40px; height: 40px; }
.evidence-avatar.size-lg { width: 46px; height: 46px; }
.evidence-avatar.glow { z-index: 2; background: var(--accent); box-shadow: 0 5px 18px #f25c4073; }
.quality { display: flex; align-items: center; gap: 10px; height: 45px; }
.quality span { padding: 8px 11px; border-radius: 10px; background: #fff; border: 1px solid #e9e9e6; font-size: .78rem; font-weight: 700; }
.quality i { color: #aaa; font-style: normal; }
.quality b { color: var(--green); font-size: 1.1rem; }

.workbench-shell { position: relative; min-height: 660px; display: grid; place-items: center; isolation: isolate; }
.workbench-shell::before, .workbench-shell::after { content: ""; position: absolute; z-index: -3; left: 12%; right: 12%; height: 130px; pointer-events: none; }
.workbench-shell::before { top: -5px; background: linear-gradient(var(--canvas), transparent); }
.workbench-shell::after { bottom: -5px; background: linear-gradient(transparent, var(--canvas)); }
.ambient-card { position: absolute; z-index: -2; width: 78%; min-height: 88px; padding: 20px 24px; border-radius: 22px; background: #fff; box-shadow: 0 4px 20px #00000008; color: #aaa; animation: drift 7s ease-in-out infinite alternate; }
.ambient-card span { display: block; margin-bottom: 7px; color: var(--accent); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.ambient-card b { color: #727272; font-family: var(--heading); font-size: 1.12rem; }
.ambient-card.card-one { top: 26px; left: 0; transform: rotate(-3deg); }
.ambient-card.card-two { right: 2px; bottom: 24px; transform: rotate(3deg); animation-delay: -3s; }
@keyframes drift { to { translate: 0 10px; } }

.workbench-card { width: 100%; min-height: 570px; border-radius: 28px; background: #fff; box-shadow: 0 22px 70px #1f1f1f16, 0 4px 20px #00000008; overflow: hidden; transform: rotate(.5deg); transition: transform .3s ease; }
.workbench-card:hover { transform: rotate(0); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 34px; border-bottom: 1px solid var(--line); }
.step { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 67px; color: #b5b5b1; font-size: .74rem; transition: color .25s; }
.step::after { content: ""; position: absolute; bottom: -1px; left: 20%; right: 20%; height: 2px; border-radius: 2px; background: transparent; }
.step span { font: 700 .64rem/1 var(--sans); }
.step b { font-size: .76rem; }
.step.is-active { color: var(--ink); }
.step.is-active span { color: var(--accent); }
.step.is-active::after { background: var(--accent); }

.panel { position: relative; min-height: 500px; padding: 36px 42px 42px; }
.stage { display: none; animation: reveal .35s ease both; }
.stage.is-visible { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.stage-number { color: var(--accent); font-size: .66rem; font-weight: 800; letter-spacing: .13em; }
h2 { margin: 7px 0 0; font: 500 clamp(1.8rem, 3vw, 2.55rem)/1.05 var(--heading); letter-spacing: -.03em; }
.stage-copy { margin: 18px 0 30px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.platform-badge { padding: 8px 11px; border: 1px solid #d1f2d1; color: #4bb64b; background: #fbfffb; font-size: .67rem; white-space: nowrap; }
.platform-badge > span { width: 6px; height: 6px; }

label { display: block; margin: 20px 0 9px; color: #4c4c4c; font-size: .82rem; font-weight: 750; }
label span { color: #aaa; font-weight: 500; margin-left: 4px; }
input, textarea, select { width: 100%; min-height: 55px; padding: 15px 17px; border: 1px solid #e2e2df; border-radius: 14px; outline: 0; background: #fafaf9; color: var(--ink); font-size: .9rem; transition: border-color .2s, box-shadow .2s, background .2s; }
select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, #888 50%), linear-gradient(135deg, #888 50%, transparent 50%); background-position: calc(100% - 19px) 24px, calc(100% - 14px) 24px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 185px; line-height: 1.7; }
input:focus, textarea:focus, select:focus { border-color: #f59480; background-color: #fff; box-shadow: 0 0 0 4px #f25c4015; }
input::placeholder, textarea::placeholder { color: #b0b0ac; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; }
.field-note { margin: 0; color: #999995; font-size: .72rem; line-height: 1.5; }
.deep-button-wrap.compact .deep-button { min-height: 48px; border-radius: 14px; padding: 0 18px; font-size: .82rem; }
.wide-wrap { display: flex; margin-top: 25px; }
.deep-button.wide { width: 100%; }

.source-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 22px 0 4px; padding: 4px; border-radius: 14px; background: #f1f1ef; }
.source-tab { min-height: 38px; border: 0; border-radius: 10px; background: transparent; color: #90908b; font-size: .8rem; font-weight: 700; transition: color .2s, background .2s, box-shadow .2s; }
.source-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 3px 12px #0000000d; }
.source-panel[hidden] { display: none; }
.search-fields { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 12px; }
.search-footer { margin-top: 22px; }
.search-results { margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.search-results[hidden] { display: none; }
.search-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.search-results-head b { font-size: .83rem; }
.search-results-head span { color: #999995; font-size: .7rem; }
.job-results-list { display: grid; gap: 8px; max-height: 310px; padding: 2px 3px 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1d1cd transparent; }
.job-result { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 15px; border: 1px solid #ecece9; border-radius: 14px; background: #fff; color: var(--ink); text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s; }
.job-result:hover { border-color: #f4ac9e; box-shadow: 0 8px 22px #f25c4011; transform: translateY(-1px); }
.job-result-main { min-width: 0; display: block; }
.job-result-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.job-result-main small { display: block; margin-top: 6px; overflow: hidden; color: #81817d; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.skill-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.skill-row span { padding: 3px 7px; border-radius: 6px; background: #f5f5f3; color: #858580; font-size: .63rem; }
.job-result-side { display: grid; justify-items: end; gap: 10px; white-space: nowrap; }
.job-result-side strong { color: var(--accent); font-size: .8rem; }
.job-result-side i { color: #999995; font-size: .67rem; font-style: normal; }
.search-empty { padding: 30px 18px; border-radius: 14px; background: #fafaf9; color: #92928d; font-size: .78rem; text-align: center; }
.pagination { display: flex; justify-content: space-between; margin-top: 12px; }
.pagination button { padding: 7px 0; border: 0; background: transparent; color: #777772; font-size: .72rem; }
.pagination button:hover:not(:disabled) { color: var(--accent); }
.pagination button:disabled { opacity: .35; cursor: default; }

.text-button, .copy-button, .tab { padding: 7px 0; border: 0; background: none; color: #8e8e89; font-size: .76rem; }
.text-button:hover, .copy-button:hover, .tab:hover { color: var(--ink); }
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; margin: 22px 0 8px; padding: 16px 18px; border: 1px solid #eee9e5; border-radius: 16px; background: #fffaf8; box-shadow: 0 7px 22px #f25c400c; }
.job-card h3 { margin: 0 0 6px; font-size: .9rem; }
.job-card p { margin: 0; color: #898984; font-size: .72rem; }
.job-card strong { color: var(--accent); font-size: .75rem; }
.saved-resume-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin: 12px 0 3px; padding: 13px 14px; border: 1px solid #eee9e5; border-radius: 14px; background: #fffaf8; }
.saved-resume-row label { margin-top: 0; }
.saved-resume-row select { min-height: 45px; padding-top: 10px; padding-bottom: 10px; background-position-y: 19px; }
.saved-resume-row button { min-height: 45px; padding: 0 14px; border: 1px solid #e1dcd8; border-radius: 11px; background: #fff; color: #666; font-size: .75rem; font-weight: 750; }
.saved-resume-row button:hover { color: var(--accent); border-color: #efaa9d; }
.message { margin-top: 12px; padding: 11px 13px; border-radius: 11px; font-size: .76rem; line-height: 1.55; }
.message.error { color: var(--error); border: 1px solid #f1c7c0; background: #fff3f0; }

.loading { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; padding: 30px; text-align: center; background: #fffffff2; backdrop-filter: blur(8px); }
.loading[hidden] { display: none; }
.loader { display: flex; justify-content: center; gap: 7px; margin-bottom: 19px; }
.loader span { width: 9px; height: 9px; border-radius: 4px; background: var(--accent); animation: bounce 1s infinite alternate; box-shadow: 0 5px 13px #f25c4059; }
.loader span:nth-child(2) { animation-delay: .2s; }
.loader span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { to { opacity: .3; transform: translateY(-7px); } }
.loading h3 { margin: 0 0 9px; font: 500 1.55rem var(--heading); }
.loading p { margin: 0; color: var(--muted); font-size: .82rem; }

.result-stage { max-height: 700px; overflow: auto; padding-right: 5px; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 25px 0 22px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.metric { padding: 14px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric span { display: block; margin-bottom: 5px; color: #989893; font-size: .65rem; }
.metric strong { color: var(--accent); font: 500 1.25rem var(--heading); }
.result-tabs { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.tab { padding: 11px 0; border-bottom: 2px solid transparent; }
.tab.is-active { color: var(--ink); border-color: var(--accent); }
.copy-button { margin-left: auto; }
.result-content { padding: 21px 3px; color: #51514e; font-size: .83rem; line-height: 1.75; white-space: pre-wrap; }

.process-strip { width: min(1200px, calc(100% - 64px)); margin: 0 auto 72px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dededb; border-bottom: 1px solid #dededb; }
.process-strip > div { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 28px 24px; border-right: 1px solid #dededb; }
.process-strip > div:last-child { border-right: 0; }
.process-strip > div > span { color: var(--accent); font-size: .7rem; font-weight: 800; }
.process-strip p { margin: 0; color: #888884; font-size: .76rem; line-height: 1.55; }
.process-strip b { display: block; margin-bottom: 4px; color: #444; font-size: .84rem; }
footer { width: min(1440px, calc(100% - 64px)); margin: 0 auto 38px; display: flex; justify-content: space-between; color: #aaa; font-size: .7rem; }
footer p { margin: 0; }

/* 手机号登录 */
.login-page { min-height: 100vh; overflow-x: hidden; background: #f4f4f2; }
.login-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 72% 43%, #f25c4016, transparent 30%), linear-gradient(90deg, transparent 49.95%, #ddddda 50%, transparent 50.05%); }
.login-topbar { position: relative; z-index: 2; }
.login-security { display: inline-flex; align-items: center; gap: 8px; color: #858581; font-size: .76rem; font-weight: 700; }
.login-security i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px #52d35299; }
.login-layout { position: relative; width: min(1180px, calc(100% - 64px)); min-height: calc(100vh - 86px); margin: 0 auto; padding: 42px 0 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 470px); gap: clamp(70px, 11vw, 170px); align-items: center; }
.login-story { padding-left: clamp(0px, 3vw, 42px); }
.login-eyebrow { color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .17em; }
.login-story h1 { margin-top: 23px; font-size: clamp(4rem, 6.5vw, 6.9rem); }
.login-story h1 span { color: var(--accent); }
.login-story > p { max-width: 560px; margin: 30px 0 0; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.login-proof { display: flex; align-items: center; gap: 18px; margin-top: 48px; color: #848480; font-size: .72rem; font-weight: 700; }
.login-proof span { display: grid; gap: 7px; }
.login-proof b { color: var(--accent); font-size: .65rem; letter-spacing: .12em; }
.login-proof i { width: 34px; height: 1px; background: #d4d4d0; }
.login-card { position: relative; padding: 43px 42px 31px; border: 1px solid #e9e9e6; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px #1f1f1f18, 0 4px 18px #00000008; overflow: hidden; }
.login-card-accent { position: absolute; width: 160px; height: 160px; top: -95px; right: -75px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 50px #f25c4050; }
.login-card-head { position: relative; }
.login-card-head h2 { margin-top: 9px; font-size: 2.4rem; }
.login-card-head p { margin: 13px 0 29px; color: #8c8c87; font-size: .82rem; line-height: 1.65; }
.phone-field { display: grid; grid-template-columns: 60px 1fr; align-items: center; border: 1px solid #e2e2df; border-radius: 14px; background: #fafaf9; transition: border-color .2s, box-shadow .2s, background .2s; }
.phone-field:focus-within { border-color: #f59480; background: #fff; box-shadow: 0 0 0 4px #f25c4015; }
.phone-field > span { display: grid; place-items: center; min-height: 30px; border-right: 1px solid #dfdfdc; color: #777; font-size: .84rem; font-weight: 700; }
.phone-field input { min-width: 0; border: 0; background: transparent; box-shadow: none; }
.phone-field input:focus { box-shadow: none; }
.login-submit { width: 100%; min-height: 55px; margin-top: 22px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 15px; background: #202020; color: #fff; font-weight: 750; box-shadow: inset 0 0 4px #ffffff40, 0 9px 24px #00000036; transition: transform .2s, background .2s; }
.login-submit:hover:not(:disabled) { background: #2d2d2d; transform: translateY(-1px); }
.login-submit:disabled { cursor: wait; opacity: .6; }
.login-submit span { color: #ff8d76; font-size: 1.1rem; }
.verify-copy { display: flex; align-items: center; gap: 7px; margin: 1px 0 25px; color: #90908b; font-size: .75rem; }
.verify-copy b { color: #555; }
.verify-copy button { margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--accent); font-size: .72rem; }
.code-input { letter-spacing: .55em; text-align: center; font-size: 1.15rem; font-weight: 750; }
.development-code { margin-top: 11px; padding: 10px 12px; border: 1px dashed #efaa9d; border-radius: 10px; background: var(--accent-soft); color: #ad4936; font-size: .74rem; text-align: center; }
.resend-button { width: 100%; margin-top: 15px; padding: 5px; border: 0; background: transparent; color: var(--accent); font-size: .74rem; }
.resend-button:disabled { cursor: default; color: #aaa; }
.login-terms { margin: 25px 0 0; color: #aaa; font-size: .68rem; line-height: 1.55; text-align: center; }

/* 个人工作台 */
.workspace-page { min-height: 100vh; background: #f4f4f2; }
.workspace-content { min-width: 0; margin-left: 248px; transition: margin-left .28s ease; }
.side-navigation { position: fixed; z-index: 20; inset: 0 auto 0 0; width: 248px; display: flex; flex-direction: column; padding: 28px 18px 20px; border-right: 1px solid #dfdfdc; background: #fbfbfa; transition: width .28s ease, padding .28s ease; }
.side-brand { align-self: flex-start; margin: 0 12px 44px; }
.side-collapse-toggle { position: absolute; z-index: 2; top: 76px; right: -14px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid #dededb; border-radius: 50%; background: #fff; color: #777773; box-shadow: 0 5px 16px #00000014; transition: color .2s, border-color .2s, transform .28s; }
.side-collapse-toggle:hover { color: var(--accent); border-color: #efaa9d; }
.side-collapse-toggle > span { display: block; font-size: 1.25rem; line-height: 1; transform: translateY(-1px); transition: transform .28s; }
.side-nav-links { display: grid; align-content: start; gap: 7px; }
.side-nav-link { position: relative; min-height: 52px; display: flex; align-items: center; gap: 13px; padding: 8px 12px; border-radius: 14px; color: #777773; text-decoration: none; transition: color .2s, background .2s, transform .2s; }
.side-nav-link:hover { color: #30302e; background: #f0f0ed; transform: translateX(2px); }
.side-nav-link > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #e2e2df; border-radius: 11px; background: #fff; color: #777773; font-family: var(--heading); font-size: .9rem; box-shadow: 0 4px 11px #00000008; }
.side-nav-link > b { font-size: .86rem; }
.side-nav-link.is-active { color: #fff; background: #202020; box-shadow: 0 9px 22px #00000020; }
.side-nav-link.is-active::before { content: ""; position: absolute; left: -18px; width: 4px; height: 24px; border-radius: 0 4px 4px 0; background: var(--accent); }
.side-nav-link.is-active > span { color: #fff; border-color: var(--accent); background: var(--accent); box-shadow: 0 5px 14px #f25c4055; }
.side-service { display: flex; align-items: center; gap: 9px; margin: auto 11px 13px; padding: 11px 12px; border: 1px solid #e7e7e4; border-radius: 12px; background: #fff; color: #858581; font-size: .7rem; line-height: 1.35; }
.side-account { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 10px; border-top: 1px solid #e2e2df; }
.side-account-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 850; }
.side-account > div { min-width: 0; display: grid; gap: 3px; }
.side-account b { overflow: hidden; color: #4e4e4a; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.side-account small { color: #aaa; font-size: .65rem; }
.side-account button { padding: 6px; border: 0; background: transparent; color: #999; font-size: .68rem; }
.side-account button:hover { color: var(--accent); }
@media (min-width: 681px) {
  .workspace-page.sidebar-collapsed .workspace-content { margin-left: 82px; }
  .workspace-page.sidebar-collapsed .side-navigation { width: 82px; padding-right: 14px; padding-left: 14px; }
  .workspace-page.sidebar-collapsed .side-brand { align-self: center; margin-right: 0; margin-left: 0; }
  .workspace-page.sidebar-collapsed .side-brand .brand-name,
  .workspace-page.sidebar-collapsed .side-nav-link > b,
  .workspace-page.sidebar-collapsed .side-service,
  .workspace-page.sidebar-collapsed .side-account > div { display: none; }
  .workspace-page.sidebar-collapsed .side-nav-link { justify-content: center; gap: 0; padding-right: 8px; padding-left: 8px; }
  .workspace-page.sidebar-collapsed .side-nav-link:hover { transform: none; }
  .workspace-page.sidebar-collapsed .side-nav-link.is-active::before { left: -14px; }
  .workspace-page.sidebar-collapsed .side-account { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 5px; padding-right: 0; padding-left: 0; }
  .workspace-page.sidebar-collapsed .side-account button { width: 37px; height: 32px; padding: 0; border-radius: 9px; font-size: 0; }
  .workspace-page.sidebar-collapsed .side-account button::before { content: "退"; font-size: .7rem; }
  .workspace-page.sidebar-collapsed .side-collapse-toggle > span { transform: rotate(180deg) translateY(1px); }
}
.workspace-topbar { border-bottom: 1px solid #e1e1de; }
.workspace-nav-current, .back-dashboard { color: #797975; font-size: .82rem; font-weight: 700; text-decoration: none; }
.back-dashboard:hover { color: var(--accent); }
.dashboard-main { width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 72px 0 80px; }
.dashboard-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.dashboard-kicker { color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .17em; }
.dashboard-intro h1 { margin: 20px 0 0; font-size: clamp(3.5rem, 6.5vw, 6.3rem); }
.dashboard-note { min-width: 245px; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 9px; padding: 18px 20px; border: 1px solid #e4e4e1; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px #00000008; }
.dashboard-note .status-dot { flex: 0 0 auto; margin-top: 5px; }
.dashboard-note p { margin: 0; color: #999994; font-size: .79rem; line-height: 1.55; }
.dashboard-note b { color: #4c4c49; font-size: .9rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 58px; }
.tool-card { position: relative; min-height: 340px; display: flex; flex-direction: column; padding: 27px; border: 1px solid #e2e2df; border-radius: 25px; background: #fff; color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: 0 10px 35px #00000008; transition: transform .25s, border-color .25s, box-shadow .25s; }
.tool-card:hover { transform: translateY(-5px); border-color: #f2aa9c; box-shadow: 0 20px 45px #f25c4014; }
.tool-card-primary { background: #202020; color: #fff; border-color: #202020; box-shadow: 0 18px 45px #00000026; }
.tool-card-primary:hover { border-color: #202020; box-shadow: 0 24px 54px #00000033; }
.tool-index { align-self: flex-end; color: #aaa; font-size: .72rem; font-weight: 800; letter-spacing: .13em; }
.tool-card-primary .tool-index { color: #777; }
.tool-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 10px 0 37px; border-radius: 19px; background: var(--accent); color: #fff; font-family: var(--heading); font-size: 1.6rem; box-shadow: inset 0 0 5px #ffffff70, 0 12px 25px #f25c4047; transform: rotate(-4deg); }
.interview-icon { color: #202020; background: #f0d64b; box-shadow: inset 0 0 5px #ffffff80, 0 12px 25px #d2b91c35; transform: rotate(3deg); }
.job-icon { background: #65b96c; box-shadow: inset 0 0 5px #ffffff80, 0 12px 25px #3b9d4430; transform: rotate(-2deg); }
.resume-library-icon { background: #7470c8; box-shadow: inset 0 0 5px #ffffff80, 0 12px 25px #5854aa35; transform: rotate(2deg); }
.tool-status { color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .13em; }
.tool-card h2 { margin: 10px 0 0; font-size: 2rem; }
.tool-card p { margin: 17px 0 0; color: #81817d; font-size: .9rem; line-height: 1.75; }
.tool-card-primary p { color: #aaa; }
.tool-action { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 26px; border-top: 1px solid #ecece9; color: #676763; font-size: .85rem; font-weight: 750; }
.tool-card-primary .tool-action { color: #ddd; border-color: #3c3c3c; }
.tool-action b { color: var(--accent); font-size: 1.15rem; }
.workspace-tip { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 16px 20px; border-top: 1px solid #dcdcd8; color: #858581; }
.workspace-tip span { color: var(--accent); font-size: .7rem; font-weight: 850; letter-spacing: .15em; }
.workspace-tip p { margin: 0; font-size: .84rem; }

/* AI 模拟面试 */
.interview-main { width: min(1040px, calc(100% - 64px)); margin: 0 auto; padding: 58px 0 90px; }
.interview-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; margin-bottom: 35px; }
.interview-heading .dashboard-kicker { grid-column: 1 / -1; }
.interview-heading h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.2rem); }
.interview-heading p { max-width: 410px; margin: 0 0 8px; color: #7b7b77; font-size: .95rem; line-height: 1.7; }
.interview-setup-card, .interview-room { border: 1px solid #e3e3df; border-radius: 25px; background: #fff; box-shadow: 0 17px 55px #0000000c; }
.interview-setup-card { padding: 34px 38px 39px; }
.interview-form-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(190px, .5fr); gap: 15px; }
.interview-setup-card textarea { min-height: 115px; }
.interview-room { overflow: hidden; }
.interview-room-head { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 25px; border-bottom: 1px solid #e8e8e5; background: #fafaf8; }
.interview-room-head div { display: grid; gap: 5px; }
.interview-room-head span { color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.interview-room-head b { color: #555; font-size: .84rem; }
.interview-room-head button { padding: 8px 12px; border: 1px solid #dededb; border-radius: 10px; background: #fff; color: #777; font-size: .75rem; }
.interview-messages { max-height: 590px; display: flex; flex-direction: column; gap: 17px; padding: 29px 27px; overflow-y: auto; background: #f7f7f5; }
.interview-message { max-width: 78%; padding: 17px 19px; border-radius: 18px; background: #fff; box-shadow: 0 5px 18px #00000009; }
.interview-message.candidate { align-self: flex-end; background: #202020; color: #fff; }
.interview-message.summary { max-width: 100%; border: 1px solid #f0b4a8; background: var(--accent-soft); }
.interview-message span { color: var(--accent); font-size: .7rem; font-weight: 850; letter-spacing: .08em; }
.interview-message.candidate span { color: #ff8d76; }
.interview-message p { margin: 8px 0 0; font-size: .94rem; line-height: 1.75; white-space: pre-wrap; }
.interview-feedback { padding: 21px; border: 1px solid #e2e2de; border-radius: 18px; background: #fff; }
.interview-feedback > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.interview-feedback > div:first-child span { color: #777; font-size: .78rem; font-weight: 800; }
.interview-feedback strong { color: var(--accent); font: 500 1.7rem var(--heading); }
.interview-feedback strong small { color: #aaa; font: 600 .7rem var(--sans); }
.interview-feedback > p { margin: 12px 0 18px; color: #555; font-size: .9rem; line-height: 1.7; }
.feedback-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.feedback-columns > div { padding: 13px 15px; border-radius: 13px; background: #f7f7f5; }
.feedback-columns b { color: #555; font-size: .78rem; }
.feedback-columns ul { margin: 9px 0 0; padding-left: 17px; color: #797975; font-size: .8rem; line-height: 1.65; }
.answer-form { padding: 20px 27px 27px; border-top: 1px solid #e8e8e5; }
.answer-form label { margin-top: 0; }
.answer-form textarea { min-height: 130px; }
.app-workspace-content .hero-grid { min-height: 100vh; }

/* 简历库 */
.resume-library-main { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 62px 0 90px; }
.library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid #dcdcd8; }
.library-heading h1 { margin: 14px 0 0; font-size: clamp(3.3rem, 6vw, 5.6rem); }
.library-heading p { margin: 14px 0 0; color: #81817d; font-size: .9rem; }
.library-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; padding-bottom: 7px; }
.library-button { min-height: 43px; padding: 0 15px; border-radius: 12px; font-size: .79rem; font-weight: 750; transition: transform .2s, border-color .2s, background .2s; }
.library-button:hover:not(:disabled) { transform: translateY(-1px); }
.library-button:disabled { cursor: wait; opacity: .6; }
.library-button.secondary { border: 1px solid #dfdfdc; background: #fff; color: #666; }
.library-button.secondary:hover { border-color: #f1a596; color: var(--accent); }
.library-button.primary { border: 1px solid #202020; background: #202020; color: #fff; box-shadow: 0 7px 19px #00000025; }
.library-button.primary span { margin-left: 10px; color: #ff8d76; }
.resume-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.resume-record { min-height: 260px; display: flex; flex-direction: column; padding: 23px; border: 1px solid #e2e2df; border-radius: 21px; background: #fff; box-shadow: 0 8px 28px #00000008; }
.resume-record-top { display: flex; align-items: center; justify-content: space-between; }
.resume-file-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-family: var(--heading); font-weight: 700; }
.resume-source { padding: 6px 9px; border-radius: 999px; background: #f4f4f1; color: #888884; font-size: .66rem; font-weight: 750; }
.resume-record h2 { margin-top: 22px; font-size: 1.45rem; }
.resume-record > p { margin: 13px 0 20px; color: #7c7c78; font-size: .83rem; line-height: 1.7; }
.resume-record-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 15px; border-top: 1px solid #ecece9; }
.resume-record-meta > span { color: #aaa; font-size: .68rem; }
.resume-record-meta div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 11px; }
.resume-record-meta button { padding: 4px; border: 0; background: transparent; color: #747470; font-size: .72rem; }
.resume-record-meta button:hover { color: var(--accent); }
.resume-record-meta .ai-edit-action { padding: 4px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.resume-record-meta .ai-edit-action:hover { background: #ffd8cf; }
.resume-empty { margin-top: 28px; padding: 70px 28px; border: 1px dashed #d8d8d4; border-radius: 23px; text-align: center; }
.resume-empty > span { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-family: var(--heading); font-size: 1.4rem; }
.resume-empty h2 { font-size: 1.8rem; }
.resume-empty p { margin: 12px 0 22px; color: #858581; font-size: .85rem; }
.resume-empty button { padding: 10px 15px; border: 0; border-radius: 11px; background: #202020; color: #fff; font-size: .78rem; font-weight: 750; }
.resume-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 30px 90px #00000038; }
.resume-dialog::backdrop { background: #15151575; backdrop-filter: blur(5px); }
.resume-dialog form { padding: 31px 34px 34px; }
.resume-dialog textarea { min-height: 300px; }
.ai-resume-dialog { width: min(850px, calc(100% - 32px)); }
.ai-resume-dialog textarea { min-height: 86px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.dialog-head h2 { font-size: 2rem; }
.dialog-close { width: 35px; height: 35px; border: 1px solid #e1e1de; border-radius: 11px; background: #f8f8f6; color: #777; font-size: 1.2rem; }
.dialog-copy { margin: 14px 0 22px; color: #858581; font-size: .8rem; line-height: 1.65; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.ai-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.resume-toast { position: fixed; z-index: 50; right: 28px; bottom: 28px; padding: 13px 17px; border-radius: 12px; background: #202020; color: #fff; font-size: .78rem; box-shadow: 0 12px 30px #00000030; }

/* AI 简历编辑工作区 */
.ai-editor-main { width: min(1440px, calc(100% - 48px)); margin: 0 auto; padding: 34px 0 50px; }
.ai-editor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 24px; }
.ai-editor-heading > div { display: grid; gap: 8px; }
.ai-editor-heading a { width: fit-content; margin-bottom: 4px; color: #888884; font-size: .76rem; font-weight: 750; text-decoration: none; }
.ai-editor-heading a:hover { color: var(--accent); }
.ai-editor-heading h1 { margin: 0; font-size: clamp(2.4rem, 4.2vw, 4.2rem); }
.ai-editor-heading > p { max-width: 420px; margin: 0 0 7px; color: #81817d; font-size: .82rem; line-height: 1.7; text-align: right; }
.ai-editor-workspace { height: calc(100vh - 190px); min-height: min(640px, calc(100dvh - 190px)); display: grid; grid-template-columns: 330px minmax(794px, 1fr); gap: 16px; }
.ai-chat-panel, .live-resume-panel { min-width: 0; overflow: hidden; border: 1px solid #dededb; border-radius: 22px; background: #fff; box-shadow: 0 9px 30px #00000008; }
.ai-chat-panel { display: grid; grid-template-rows: auto minmax(120px, 1fr) auto; }
.ai-chat-scroll { overflow-y: auto; min-height: 0; }
.ai-chat-scroll .ai-workflow { max-height: none; overflow: visible; margin-bottom: 16px; }
.ai-chat-panel > header, .live-resume-panel > header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e8e8e5; background: #fafaf8; }
.ai-chat-panel > header > div { display: flex; align-items: center; gap: 11px; }
.ai-chat-panel > header div div { display: grid; gap: 3px; }
.ai-chat-panel > header b { color: #4d4d4a; font-size: .8rem; }
.ai-chat-panel > header small { color: #9a9a96; font-size: .66rem; }
.ai-chat-panel > header > span, .live-resume-panel > header span { color: var(--accent); font-size: .65rem; font-weight: 850; letter-spacing: .12em; }
.ai-online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px #52d35290; }
.ai-chat-messages { display: flex; flex-direction: column; gap: 14px; padding: 20px; overflow-y: auto; background: #f6f6f4; }
.ai-chat-message { max-width: 88%; padding: 14px 16px; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 4px 15px #00000008; }
.ai-chat-message.user { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: #202020; color: #fff; }
.ai-chat-message > span { color: var(--accent); font-size: .63rem; font-weight: 850; letter-spacing: .08em; }
.ai-chat-message.user > span { color: #ff917c; }
.ai-chat-message p { margin: 7px 0 0; font-size: .82rem; line-height: 1.7; white-space: pre-wrap; }
.ai-chat-message.typing p > span { display: inline-block; color: var(--accent); animation: pulse 1s ease-in-out infinite alternate; }
.ai-chat-form { padding: 12px 20px; border-top: 1px solid #e8e8e5; max-height: 65vh; overflow-y: auto; }
.ai-chat-form label { margin-top: 12px; }
.ai-chat-form label:first-child { margin-top: 0; }
.ai-chat-form textarea { min-height: 76px; max-height: 150px; }
#ai-send-hint { display: block; margin-top: 5px; color: #777; font-size: 11px; }
#ai-scope { margin: 8px 0; font-size: 12px; }
.ai-chat-options { margin: 8px 0; font-size: 12px; }
.ai-chat-options summary { cursor: pointer; color: #666; }
.ai-chat-form .login-submit { min-height: 48px; margin-top: 13px; }
/* Keep the title, toolbar and module list outside the scrollable document. */
.live-resume-panel { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.live-resume-panel > header > div:first-child { display: grid; gap: 4px; }
.live-resume-panel > header b { color: #92928e; font-size: .67rem; font-weight: 650; }
.resume-export-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; }
.resume-export-actions .library-button { min-height: 36px; padding: 0 11px; }
.resume-template-picker { min-height: 36px; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 5px 0 10px; border: 1px solid #dededb; border-radius: 10px; background: #fff; color: #777; font-size: .7rem; font-weight: 750; }
.resume-template-picker select { width: auto; min-height: 28px; padding: 0 24px 0 4px; border: 0; background-color: transparent; box-shadow: none; color: #444; font-size: .72rem; }
.template-form-field { margin: 18px 0; }
.template-form-object, .template-form-items fieldset { padding: 16px; border: 1px solid #e1e5eb; border-radius: 12px; margin: 10px 0; background: #fafbfc; min-width: 0; }
.template-form-field > label { display: block; font-weight: 650; margin-bottom: 8px; }
.template-form-field input, .template-form-field textarea { width: 100%; }
.resume-template-configured .resume-template-header { background: var(--tpl-header-background); color: var(--tpl-header-text); }
.resume-template-configured .resume-template-header h1,
.resume-template-configured .resume-template-contact > *,
.resume-template-configured .resume-template-summary p { color: var(--tpl-header-text); }
.resume-template-configured .resume-template-body:not(.without-sidebar) { grid-template-columns: var(--tpl-columns); }
.resume-template-configured .resume-template-body > aside { background: var(--tpl-sidebar-background); }
.resume-template-configured section h2::before { background: var(--tpl-accent); }
.resume-template-configured .resume-template-body > aside section h3::after { background: repeating-linear-gradient(90deg, var(--tpl-accent) 0 6mm, transparent 6mm 8mm); }
.resume-template-configured .resume-module-child h3::before { color: var(--tpl-accent); }
.resume-template-configured[data-layout="left-sidebar"] .resume-template-body > aside { border-radius: 0; }
.resume-template-configured[data-layout="top-band"] .resume-template-body { display: flex; flex-direction: column; }
.resume-capability-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(60mm, 1fr)); gap: 6mm; border-radius: 0 !important; }
.resume-template-configured[data-layout="section-rail"] .resume-template-body > main > section { display: grid; grid-template-columns: 31mm minmax(0, 1fr); column-gap: 6mm; padding: 4mm 0; border-bottom: 1px solid #e7e4e9; }
.resume-template-configured[data-layout="section-rail"] .resume-template-body > main > section > h2 { grid-column: 1; grid-row: 1; margin: 0; padding: 3mm; font-size: 12pt; color: var(--tpl-accent); background: var(--tpl-sidebar-background); }
.resume-template-configured[data-layout="section-rail"] .resume-template-body > main > section > :not(h2) { grid-column: 2; }
.resume-template-configured[data-design="line"] .resume-template-header,
.resume-template-configured[data-design="outline"] .resume-template-header,
.resume-template-configured[data-design="ribbon"] .resume-template-header,
.resume-template-configured[data-design="timeline"] .resume-template-header { border-top: 2mm solid var(--tpl-accent); border-bottom: 1px solid #d8dce4; }
.resume-template-configured[data-design="line"] section h2 { border-bottom: 1px solid var(--tpl-accent); }
.resume-template-configured[data-design="outline"] section h2 { border-bottom: 2px solid var(--tpl-accent); padding-bottom: 2mm; }
.resume-template-configured[data-design="outline"] section h2::before { width: 2mm; height: 5mm; border-radius: 0; }
.resume-template-configured[data-design="soft"] .resume-template-header { border-bottom: 1px solid var(--tpl-accent); }
.resume-template-configured[data-design="soft"] section h2 { background: var(--tpl-sidebar-background); padding: 1.5mm 3mm; }
.resume-template-configured[data-design="card"] { background: #fcfcfd; }
.resume-template-configured[data-design="card"] .resume-template-body > main > section { padding: 3mm; margin-bottom: 3mm; background: #fff; border: 1px solid #e6e9ef; }
.resume-template-configured[data-design="card"] section h2 { color: var(--tpl-accent); }
.resume-template-configured[data-design="timeline"] .resume-template-body > main { border-left: 1px solid var(--tpl-accent); margin-left: 5mm; }
.resume-template-configured[data-design="timeline"] .resume-template-body > main > section { position: relative; padding-left: 4mm; }
.resume-template-configured[data-design="timeline"] .resume-template-body > main > section::before { content: ""; position: absolute; left: -2.5mm; top: 1.5mm; width: 4mm; height: 4mm; border-radius: 50%; background: var(--tpl-accent); }
.resume-template-configured[data-design="ribbon"] section h2 { width: fit-content; padding: 1mm 5mm 1mm 2mm; background: var(--tpl-accent); color: #fff; clip-path: polygon(0 0,100% 0,94% 50%,100% 100%,0 100%); }
.resume-template-configured[data-design="ribbon"] section h2::before { background: #fff; }
.resume-template-configured[data-design="dark-side"] .resume-template-body > aside { background: var(--tpl-accent); color: #fff; }
.resume-template-configured[data-design="dark-side"] .resume-template-body > aside :is(h2,h3,p,li,strong) { color: #fff; }
.resume-template-configured[data-design="dark-side"] .resume-template-body > aside section h3::after { background: #ffffff80; }
.resume-template-configured[data-design="table"] .resume-template-body > main > section { display: grid; grid-template-columns: 30mm minmax(0,1fr); border: 1px solid #dbe0e8; margin: 0; padding: 3mm; }
.resume-template-configured[data-design="table"] .resume-template-body > main > section > h2 { grid-column: 1; grid-row: 1; margin: 0; font-size: 12pt; color: var(--tpl-accent); }
.resume-template-configured[data-design="table"] .resume-template-body > main > section > :not(h2) { grid-column: 2; }
.resume-template-configured[data-design="colorful"] .resume-template-header { background: linear-gradient(115deg,var(--tpl-header-background),var(--tpl-sidebar-background)); border-bottom: 2mm solid var(--tpl-accent); }
.resume-template-configured[data-design="colorful"] .resume-template-body > main > section:nth-child(3n+1) h2 { color: var(--tpl-accent); }
.resume-template-configured[data-design="colorful"] .resume-template-body > main > section:nth-child(3n+2) h2 { color: #5b8eaa; }
.resume-template-configured[data-design="colorful"] .resume-template-body > main > section:nth-child(3n) h2 { color: #78a35a; }
.live-resume-fields { min-height: 0; display: grid; grid-template-rows: auto auto auto 1fr; padding: 20px 24px 24px; }
.live-resume-fields label:first-child { margin-top: 0; }
.live-resume-fields input { font-family: var(--heading); font-size: 1.35rem; font-weight: 650; }
.live-resume-fields #live-resume-editor { min-height: 0; height: 100%; }
.resume-design-view { min-height: 0; padding: 22px; overflow: auto; background: #e9e9e6; }
.resume-word-view { min-height: 0; overflow: auto; background: #e9e9e6; }
.resume-word-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; color: #64748b; background: #f8fafc; font-size: 12px; line-height: 1.6; }
.resume-word-notice button { flex-shrink: 0; border: 1px solid #cbd5e1; background: white; border-radius: 7px; padding: 5px 10px; color: #334155; cursor: pointer; }
#word-preview-status { padding: 16px 24px; color: #64748b; font-size: 13px; }
#resume-superdoc { padding: 20px 8px; min-height: 480px; }
.resume-template { width: 210mm; min-height: 297mm; margin: 0 auto; overflow: hidden; background: #fff; color: #292929; box-shadow: 0 5px 22px #00000018; font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 10pt; line-height: 1.55; }
.resume-template-header { padding: 13mm 14mm 10mm; background: #2f65e8; color: #fff; }
.resume-template-header h1 { margin: 0; padding: 0; border: 0; color: #fff; font-family: var(--heading); font-size: 27pt; line-height: 1.15; }
.resume-template-contact { display: flex; flex-wrap: wrap; gap: 2mm 3mm; margin-top: 5mm; padding-bottom: 5mm; border-bottom: 1px solid #ffffff30; }
.resume-template-contact > * { margin: 0; padding: 1.5mm 3mm; border-radius: 99px; background: #ffffff13; color: #fff; font-size: 9.5pt; }
.resume-template-contact a, .resume-template-header a { color: #fff; }
.resume-template-summary { margin-top: 5mm; }
.resume-template-summary p { margin: 0; color: #fff; font-size: 10.5pt; line-height: 1.65; }
.resume-template-body { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(54mm, .8fr); gap: 5mm; padding: 6mm 7mm 12mm; }
.resume-template-body.without-sidebar { grid-template-columns: 1fr; padding-left: 12mm; padding-right: 12mm; }
.resume-template-body > main { min-width: 0; padding: 1mm 2mm; }
.resume-template-body > aside { min-width: 0; padding: 6mm 5mm; border-radius: 5mm; background: #f5f6fa; }
.resume-template section { margin-bottom: 6mm; }
.resume-template section:last-child { margin-bottom: 0; }
.resume-template section h2 { display: flex; align-items: center; gap: 3mm; margin: 0 0 3mm; padding: 0; border: 0; color: #252525; font-size: 15pt; line-height: 1.35; }
.resume-template section h2::before { width: 7mm; height: 1.4mm; flex: 0 0 auto; border-radius: 99px; background: #2f65e8; content: ""; }
.resume-template section h3 { margin: 3.5mm 0 1mm; color: #292929; font-size: 11.5pt; line-height: 1.4; }
.resume-template section p { margin: 1.2mm 0; color: #4d5360; }
.resume-template section ul, .resume-template section ol { margin: 2mm 0; padding-left: 6mm; }
.resume-template section li { margin: 1.4mm 0; padding-left: 1mm; }
.resume-template section strong { color: #252525; }
.resume-template .resume-module-child { margin: 2mm 0 3mm 5mm; padding-left: 4mm; border-left: 1.2mm solid #dce5fb; }
.resume-template .resume-module-child h3::before { margin-right: 2mm; color: #2f65e8; content: "项目 ·"; font-size: 8.5pt; font-weight: 700; }
.resume-template-tech-compact .resume-module-child { border-left-color: #cceade; }
.resume-template-tech-compact .resume-module-child h3::before { color: #168765; }
.resume-template-minimal .resume-module-child { border-left-color: #d2d2d2; }
.resume-template-minimal .resume-module-child h3::before { color: #555; }
.resume-template section table { width: 100%; margin: 2mm 0; border-collapse: collapse; }
.resume-template section th, .resume-template section td { padding: 2mm; border: 1px solid #dfe2e9; text-align: left; }
.resume-template-body > aside section h2 { font-size: 14pt; }
.resume-template-body > aside section h3::after { width: 32mm; height: 2mm; display: block; margin-top: 2mm; border-radius: 99px; background: repeating-linear-gradient(90deg, #2f65e8 0 6mm, transparent 6mm 8mm); content: ""; }
.resume-template-body > aside p, .resume-template-body > aside li { font-size: 9.5pt; }
.resume-template-minimal { padding: 13mm 15mm; }
.resume-template-minimal .resume-template-header { padding: 0 0 7mm; border-bottom: 2px solid #222; background: #fff; color: #222; }
.resume-template-minimal .resume-template-header h1 { color: #171717; font-size: 26pt; }
.resume-template-minimal .resume-template-contact { border-color: #ddd; }
.resume-template-minimal .resume-template-contact > * { padding: 0; background: transparent; color: #555; }
.resume-template-minimal .resume-template-summary p { color: #444; }
.resume-template-minimal .resume-template-body { grid-template-columns: 1fr; padding: 7mm 0 0; }
.resume-template-minimal section h2::before { background: #222; }
.resume-template-tech-compact .resume-template-header { padding-top: 10mm; padding-bottom: 7mm; background: #172033; }
.resume-template-tech-compact .resume-template-body { grid-template-columns: minmax(0, 2.6fr) minmax(50mm, .72fr); gap: 4mm; padding-top: 5mm; }
.resume-template-tech-compact .resume-template-body > aside { border-radius: 2mm; background: #edf7f3; }
.resume-template-tech-compact section { margin-bottom: 4mm; }
.resume-template-tech-compact section h2 { margin-bottom: 2mm; font-size: 14pt; }
.resume-template-tech-compact section h2::before { background: #20a779; }
.resume-template-tech-compact .resume-template-body > aside section h3::after { background: repeating-linear-gradient(90deg, #20a779 0 6mm, transparent 6mm 8mm); }
.resume-editable-module { position: relative; margin: -2mm; padding: 2mm; border-radius: 3mm; outline: 1.5px dashed transparent; outline-offset: 1mm; break-inside: avoid-page; transition: outline-color .16s, background .16s, box-shadow .16s; }
.resume-editable-module:hover, .resume-editable-module:focus-within { z-index: 3; outline-color: #2f65e8; background: #ffffffed; box-shadow: 0 7px 22px #1e4ab51c; }
.resume-template-header .resume-editable-module:hover, .resume-template-header .resume-editable-module:focus-within { background: #2459d7; outline-color: #fff; }
.resume-module-tools { position: absolute; z-index: 5; top: 2mm; right: 2mm; display: flex; gap: 1mm; padding: 1.2mm; border-radius: 3mm; background: #1e2635; box-shadow: 0 4mm 8mm #10192d35; opacity: 0; pointer-events: none; transform: translateY(-2mm); transition: opacity .16s, transform .16s; }
.resume-editable-module:hover > .resume-module-tools, .resume-editable-module:focus-within > .resume-module-tools { opacity: 1; pointer-events: auto; transform: translateY(0); }
.resume-module-tools button { min-height: 8mm; padding: 0 3mm; border: 0; border-radius: 2mm; background: #30394a; color: #fff; font-size: 8.5pt; font-weight: 700; white-space: nowrap; }
.resume-module-tools button:first-child { background: #2f65e8; }
.resume-module-tools button:hover { filter: brightness(1.08); }
.module-editor-dialog { width: min(720px, calc(100% - 32px)); }
.module-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.module-editor-dialog textarea { min-height: 120px; font-size: .88rem; line-height: 1.7; }
.module-editor-dialog #module-items { min-height: 170px; }
.live-resume-panel .toastui-editor-defaultUI { height: 100% !important; overflow: hidden; border-color: #dededb; border-radius: 13px; }
.live-resume-panel .toastui-editor-toolbar { background: #fafaf8; }
.live-resume-panel .toastui-editor-ww-container { padding: 22px; overflow: auto; background: #e9e9e6; }
.live-resume-panel .toastui-editor-ww-container .ProseMirror { width: 210mm; min-height: 297mm; margin: 0 auto; padding: 16mm; background: #fff; color: #252525; box-shadow: 0 5px 22px #00000018; caret-color: var(--accent); font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 10.5pt; line-height: 1.65; }
.live-resume-panel .toastui-editor-contents h1, .resume-document h1 { margin: 0 0 12pt; padding-bottom: 8pt; border-bottom: 2pt solid var(--accent); color: #202020; font-size: 25pt; line-height: 1.2; }
.live-resume-panel .toastui-editor-contents h2, .resume-document h2 { margin: 16pt 0 7pt; padding-left: 7pt; border-bottom: 0; border-left: 3pt solid var(--accent); color: #202020; font-size: 15pt; line-height: 1.35; }
.live-resume-panel .toastui-editor-contents h3, .resume-document h3 { margin: 11pt 0 5pt; color: #333; font-size: 11.5pt; }
.live-resume-panel .toastui-editor-contents p, .resume-document p { margin: 4pt 0; color: #333; }
.live-resume-panel .toastui-editor-contents ul, .live-resume-panel .toastui-editor-contents ol, .resume-document ul, .resume-document ol { margin: 5pt 0; padding-left: 18pt; }
.live-resume-panel .toastui-editor-contents li, .resume-document li { margin: 2pt 0; }
.live-resume-panel .toastui-editor-contents blockquote, .resume-document blockquote { margin: 8pt 0; padding: 7pt 10pt; border-left: 3pt solid #f2a596; background: #fff5f2; color: #555; }
.live-resume-panel .toastui-editor-contents table, .resume-document table { width: 100%; border-collapse: collapse; }
.live-resume-panel .toastui-editor-contents th, .live-resume-panel .toastui-editor-contents td, .resume-document th, .resume-document td { padding: 5pt; border: 1pt solid #ddd; text-align: left; }
#resume-print-area { display: none; }

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; max-width: 760px; gap: 70px; }
  .hero-copy { padding: 0; }
  .workbench-shell { min-height: 650px; }
  .process-strip { max-width: 700px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 300px; }
}

@media (max-width: 680px) {
  .topbar, .hero-grid, footer { width: min(100% - 32px, 560px); }
  .topbar { height: 74px; }
  .service-pill { max-width: 180px; overflow: hidden; white-space: nowrap; }
  .account-pill { padding-left: 9px; }
  .account-pill span { display: none; }
  .hero-grid { min-height: auto; padding: 40px 0 60px; }
  h1 { font-size: clamp(3.15rem, 16vw, 5.2rem); }
  .hero-description { margin-top: 25px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .deep-button-wrap, .hero-actions .deep-button, .secondary-button { width: 100%; }
  .proof-row { gap: 18px; margin-top: 44px; }
  .proof-block { min-width: 0; flex: 1; }
  .proof-divider { display: none; }
  .quality { gap: 5px; }
  .quality span { padding: 7px; }
  .workbench-shell { min-height: 610px; }
  .ambient-card { width: 86%; }
  .workbench-card { min-height: 555px; border-radius: 22px; }
  .steps { padding: 0 16px; }
  .panel { min-height: 488px; padding: 29px 22px 32px; }
  .stage-head { gap: 12px; }
  h2 { font-size: 1.72rem; }
  .platform-badge { display: none; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .deep-button-wrap, .form-footer .deep-button { width: 100%; }
  .search-fields { grid-template-columns: 1fr; gap: 0; }
  .job-result { grid-template-columns: minmax(0, 1fr); }
  .job-result-side { display: flex; align-items: center; justify-content: space-between; }
  .saved-resume-row { grid-template-columns: 1fr; }
  .result-metrics { grid-template-columns: 1fr; }
  .metric { display: flex; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .metric span { margin: 0; }
  .process-strip { width: min(100% - 32px, 560px); grid-template-columns: 1fr; }
  .process-strip > div { border-right: 0; border-bottom: 1px solid #dededb; }
  .process-strip > div:last-child { border-bottom: 0; }
  footer { flex-direction: column; gap: 8px; }
  .login-page::before { background: radial-gradient(circle at 50% 68%, #f25c4015, transparent 34%); }
  .login-layout { width: min(100% - 32px, 560px); min-height: auto; padding: 38px 0 62px; grid-template-columns: 1fr; gap: 48px; }
  .login-story { padding: 0; }
  .login-story h1 { font-size: clamp(3.5rem, 15vw, 5.3rem); }
  .login-story > p { font-size: .95rem; }
  .login-proof { gap: 10px; margin-top: 32px; }
  .login-proof i { width: 16px; }
  .login-card { padding: 34px 24px 27px; border-radius: 23px; }
  .workspace-nav-current, .back-dashboard { display: none; }
  .dashboard-main, .interview-main { width: min(100% - 32px, 560px); padding: 42px 0 60px; }
  .dashboard-intro { align-items: stretch; flex-direction: column; }
  .dashboard-intro h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .dashboard-note { min-width: 0; }
  .tool-grid { margin-top: 36px; }
  .tool-card { min-height: 330px; padding: 23px; }
  .interview-heading { grid-template-columns: 1fr; }
  .interview-heading .dashboard-kicker { grid-column: auto; }
  .interview-setup-card { padding: 25px 21px 29px; }
  .interview-form-row, .feedback-columns { grid-template-columns: 1fr; gap: 0; }
  .interview-message { max-width: 92%; }
  .interview-room-head, .interview-messages, .answer-form { padding-left: 20px; padding-right: 20px; }
  .workspace-content { margin-left: 0; padding-bottom: 76px; }
  .side-navigation { inset: auto 0 0; width: auto; height: 70px; flex-direction: row; align-items: center; padding: 7px 8px; border-top: 1px solid #dededb; border-right: 0; background: #fffffff2; backdrop-filter: blur(14px); }
  .side-brand, .side-service { display: none; }
  .side-collapse-toggle { display: none; }
  .side-nav-links { min-width: 0; flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .side-nav-link { min-width: 0; min-height: 56px; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 11px; }
  .side-nav-link:hover { transform: none; }
  .side-nav-link > span { width: 27px; height: 27px; border: 0; border-radius: 9px; background: transparent; box-shadow: none; font-size: .78rem; }
  .side-nav-link > b { max-width: 100%; overflow: hidden; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
  .side-nav-link.is-active { color: var(--accent); background: var(--accent-soft); box-shadow: none; }
  .side-nav-link.is-active::before { display: none; }
  .side-nav-link.is-active > span { color: var(--accent); border: 0; background: transparent; box-shadow: none; }
  .side-account { display: block; flex: 0 0 46px; padding: 0; border: 0; text-align: center; }
  .side-account-avatar, .side-account > div { display: none; }
  .side-account button { width: 44px; min-height: 48px; padding: 0; border-radius: 10px; font-size: .62rem; }
  .app-workspace-content .hero-grid { min-height: auto; }
  .resume-library-main { width: min(100% - 32px, 560px); padding: 42px 0 70px; }
  .library-heading { align-items: stretch; flex-direction: column; }
  .library-actions { display: grid; grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
  .library-actions .primary { grid-column: 1 / -1; }
  .resume-list { grid-template-columns: 1fr; }
  .resume-dialog form { padding: 25px 21px 28px; }
  .ai-fields { grid-template-columns: 1fr; gap: 0; }
  .resume-toast { right: 16px; bottom: 86px; }
  .ai-editor-main { width: min(100% - 24px, 560px); padding: 28px 0 92px; }
  .ai-editor-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .ai-editor-heading > p { text-align: left; }
  .ai-editor-workspace { height: auto; min-height: 0; grid-template-columns: 1fr; }
  .ai-chat-panel { min-height: 660px; }
  .live-resume-panel { min-height: 720px; }
  .live-resume-panel > header { align-items: flex-start; flex-direction: column; }
  .resume-export-actions { width: 100%; }
  .resume-template-picker { flex: 1 0 100%; justify-content: space-between; }
  .resume-export-actions .library-button { flex: 1; }
  .live-resume-fields { padding: 16px 12px 18px; }
  .live-resume-panel .toastui-editor-ww-container { padding: 12px; }
  .resume-record-meta { align-items: flex-start; flex-direction: column; }
  .resume-record-meta div { width: 100%; justify-content: flex-end; }
  .module-form-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (hover: none) {
  .resume-module-tools { opacity: .92; pointer-events: auto; transform: none; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { width: 210mm; min-width: 0; margin: 0; background: #fff; }
  body > * { display: none !important; }
  #resume-print-area { width: 210mm; min-height: 297mm; display: block !important; margin: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  #resume-print-area h1, #resume-print-area h2, #resume-print-area h3 { break-after: avoid; }
  #resume-print-area li, #resume-print-area blockquote, #resume-print-area table { break-inside: avoid; }
  #resume-print-area.superdoc-layout { width: 210mm; min-height: 0; padding: 0; overflow: visible; font-size: 16px; }
  #resume-print-area.superdoc-layout .superdoc-page { position: relative !important; inset: auto !important; margin: 0 !important; transform: none !important; box-shadow: none !important; border: 0 !important; break-after: page; break-inside: avoid; }
  #resume-print-area.superdoc-layout .superdoc-page:last-child { break-after: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
