/* R5 求职展示页 · 13色板 + 5行业模板 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background 0.35s ease, color 0.35s ease;
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom));
}
body.showcase-back-active { padding-top: calc(44px + env(safe-area-inset-top, 0)); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

body[data-theme='ocean'] { --primary:#0EA5E9; --primary-light:#E0F2FE; --accent:#F59E0B; --bg:#F8FAFC; --bg-card:#FFF; --text:#1E293B; --text-light:#94A3B8; --border:#E2E8F0; }
body[data-theme='mint'] { --primary:#10B981; --primary-light:#D1FAE5; --accent:#06B6D4; --bg:#F0FDF4; --bg-card:#FFF; --text:#064E3B; --text-light:#6B7280; --border:#D1FAE5; }
body[data-theme='sky'] { --primary:#38BDF8; --primary-light:#E0F2FE; --accent:#818CF8; --bg:#F0F9FF; --bg-card:#FFF; --text:#0C4A6E; --text-light:#64748B; --border:#BAE6FD; }
body[data-theme='navy'] { --primary:#1E3A5F; --primary-light:#E2E8F0; --accent:#D4A843; --bg:#F1F5F9; --bg-card:#FFF; --text:#1E293B; --text-light:#64748B; --border:#CBD5E1; }
body[data-theme='sunset'] { --primary:#EA580C; --primary-light:#FFEDD5; --accent:#F59E0B; --bg:#FFF7ED; --bg-card:#FFF; --text:#431407; --text-light:#9A3412; --border:#FED7AA; }
body[data-theme='coral'] { --primary:#F43F5E; --primary-light:#FFE4E6; --accent:#FB7185; --bg:#FFF1F2; --bg-card:#FFF; --text:#881337; --text-light:#BE123C; --border:#FECDD3; }
body[data-theme='lavender'] { --primary:#8B5CF6; --primary-light:#EDE9FE; --accent:#A78BFA; --bg:#FAF5FF; --bg-card:#FFF; --text:#4C1D95; --text-light:#7C3AED; --border:#DDD6FE; }
body[data-theme='forest'] { --primary:#059669; --primary-light:#D1FAE5; --accent:#84CC16; --bg:#ECFDF5; --bg-card:#FFF; --text:#064E3B; --text-light:#047857; --border:#A7F3D0; }
body[data-theme='amber'] { --primary:#D97706; --primary-light:#FEF3C7; --accent:#FBBF24; --bg:#FFFBEB; --bg-card:#FFF; --text:#78350F; --text-light:#B45309; --border:#FDE68A; }
body[data-theme='rose'] { --primary:#E11D48; --primary-light:#FFE4E6; --accent:#FB7185; --bg:#FFF1F2; --bg-card:#FFF; --text:#881337; --text-light:#BE123C; --border:#FECDD3; }
body[data-theme='slate'] { --primary:#475569; --primary-light:#F1F5F9; --accent:#64748B; --bg:#F8FAFC; --bg-card:#FFF; --text:#0F172A; --text-light:#64748B; --border:#E2E8F0; }
body[data-theme='neo'] { --primary:#6366F1; --primary-light:#EEF2FF; --accent:#22D3EE; --bg:#0F172A; --bg-card:#1E293B; --text:#F8FAFC; --text-light:#94A3B8; --border:#334155; }
body[data-theme='sepia'] { --primary:#92400E; --primary-light:#FEF3C7; --accent:#B45309; --bg:#FFFBEB; --bg-card:#FFFDF7; --text:#451A03; --text-light:#78716C; --border:#FDE68A; }

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
}

.section { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.25rem; }
.section__title { font-size: 1.45rem; text-align: center; margin-bottom: 1.5rem; color: var(--primary); letter-spacing: 0.06em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-download { width: 100%; margin-bottom: .75rem; }

.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff;
}
.hero__bg, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg { background-size: cover; background-position: center; transform: scale(1.03); }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.62)); }
.hero__content { position: relative; z-index: 1; text-align: center; padding: 2rem 1.5rem; animation: fadeUp .8s ease; max-width: 960px; width: 100%; }
.hero__avatar { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.hero__names { font-size: clamp(1.85rem, 7vw, 2.75rem); font-weight: 800; margin-bottom: .4rem; }
.hero__title { font-size: 1.05rem; opacity: .92; margin-bottom: 1rem; }
.hero__highlights { margin-bottom: 1.25rem; }
.hero__highlights .stat-card { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); backdrop-filter: blur(6px); }
.hero__highlights .stat-card__value { color: #fff; }
.hero__highlights .stat-card__label { color: rgba(255,255,255,.85); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.stat-card { text-align: center; padding: 1rem .5rem; border-radius: 1rem; background: var(--bg-card); border: 1px solid var(--border); }
.stat-card__value { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-card__label { font-size: .75rem; color: var(--text-light); margin-top: .25rem; }

/* 工作经历时间轴 */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute; left: .45rem; top: .5rem; bottom: .5rem;
  width: 2px; background: var(--primary-light);
}
.timeline-item {
  position: relative;
  display: flex; gap: 1rem;
  padding: 1.25rem; margin-bottom: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute; left: calc(-1.5rem + .25rem); top: 1.65rem;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--primary-light);
}
.timeline-item__logo { width: 3rem; height: 3rem; border-radius: .65rem; object-fit: cover; flex-shrink: 0; }
.timeline-item__badge {
  width: 3rem; height: 3rem; border-radius: .65rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .85rem;
}
.timeline-item__body { flex: 1; min-width: 0; }
.timeline-item__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem; margin-bottom: .25rem; }
.timeline-item__company { font-size: 1.05rem; font-weight: 800; }
.timeline-item__date { font-size: .78rem; color: var(--text-light); white-space: nowrap; }
.timeline-item__position { font-size: .88rem; color: var(--primary); font-weight: 600; margin-bottom: .65rem; }
.timeline-item__highlights { padding-left: 1.1rem; font-size: .85rem; color: var(--text-light); }
.timeline-item__highlights li { margin-bottom: .35rem; }

body[data-industry='finance'] .timeline-item__highlights li::marker { color: var(--accent); }

/* 项目精选 */
.projects-grid { display: grid; gap: 1rem; }
.projects-grid--3col { grid-template-columns: 1fr; }
.projects-grid--2col { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .projects-grid--3col { grid-template-columns: repeat(3, 1fr); }
  .projects-grid--2col { grid-template-columns: repeat(2, 1fr); }
}
.projects-masonry { columns: 1; column-gap: 1rem; }
@media (min-width: 640px) { .projects-masonry { columns: 2; } }
@media (min-width: 1024px) { .projects-masonry { columns: 3; } }
.projects-masonry .project-card { break-inside: avoid; margin-bottom: 1rem; }

.project-card { padding: 1.25rem; }
.project-card__name { font-size: 1rem; font-weight: 800; margin-bottom: .25rem; }
.project-card__role { font-size: .82rem; color: var(--primary); margin-bottom: .5rem; }
.project-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .65rem; }
.project-card__tag { font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; background: var(--primary-light); color: var(--primary); }
.project-card__result { font-size: .85rem; color: var(--text-light); margin-bottom: .5rem; }
.project-card__link { font-size: .82rem; color: var(--primary); text-decoration: none; font-weight: 600; }

body[data-industry='design'] .project-card { border-left: 3px solid var(--primary); }

/* 技能条 */
.skills-block__subtitle { font-size: .92rem; font-weight: 700; margin: 1rem 0 .75rem; color: var(--text); }
.skills-block__subtitle:first-child { margin-top: 0; }
.skills-list { display: flex; flex-direction: column; gap: .85rem; }
.skill-bar__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; font-size: .85rem; }
.skill-bar__name { font-weight: 600; }
.skill-bar__label { font-size: .75rem; color: var(--text-light); }
.skill-bar__track { height: .5rem; border-radius: 999px; background: var(--border); overflow: hidden; }
.skill-bar__fill {
  height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0; transition: width 1s cubic-bezier(.22, 1, .36, 1);
}

/* 教育背景 */
.education-list { display: flex; flex-direction: column; gap: .85rem; }
.edu-card { display: flex; gap: 1rem; padding: 1.15rem; align-items: center; }
.edu-card__logo { width: 3rem; height: 3rem; border-radius: .65rem; object-fit: cover; flex-shrink: 0; }
.edu-card__badge {
  width: 3rem; height: 3rem; border-radius: .65rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .85rem;
}
.edu-card__school { font-size: 1rem; font-weight: 800; margin-bottom: .15rem; }
.edu-card__degree { font-size: .85rem; color: var(--text-light); }
.edu-card__date { font-size: .78rem; color: var(--text-light); margin-top: .25rem; }
.edu-card__honor { font-size: .78rem; color: var(--accent); margin-top: .25rem; font-weight: 600; }

body[data-industry='education'] .edu-card { border-left: 3px solid var(--primary); }

/* 自我评价 */
.self-eval {
  padding: 1.25rem 1.5rem;
  font-size: .92rem;
  color: var(--text-light);
  border-left: 4px solid var(--primary);
  font-style: italic;
}

/* CTA */
.footer-cta { text-align: center; }
.footer-cta__title { font-size: 1.35rem; font-weight: 800; margin-bottom: .35rem; }
.footer-cta__sub { color: var(--text-light); margin-bottom: 1.25rem; }
.cta-box { padding: 1.5rem; max-width: 400px; margin: 0 auto; }
.cta-box__qr { width: 8rem; height: 8rem; object-fit: cover; border-radius: .75rem; margin: 1rem auto 0; }
.footer-cta__btns { display: flex; flex-direction: column; gap: .6rem; }
.footer-cta__contact { margin-top: .75rem; font-size: .82rem; color: var(--text-light); }

.modal { position: fixed; inset: 0; z-index: 9100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none !important; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal__box { position: relative; background: var(--bg-card); border-radius: 1rem; padding: 1.5rem; max-width: 320px; width: 90%; text-align: center; color: var(--text); }
.modal__close { position: absolute; top: .5rem; right: .75rem; font-size: 1.25rem; }
.modal__qr { width: 11rem; height: 11rem; object-fit: cover; margin: 0 auto .75rem; border-radius: .5rem; }
.modal__hint { font-size: .82rem; color: var(--text-light); }

.theme-panel { position: fixed; top: calc(.75rem + env(safe-area-inset-top)); right: .75rem; z-index: 800; }
.industry-panel { position: fixed; top: calc(.75rem + env(safe-area-inset-top)); left: .75rem; z-index: 800; }
.theme-panel__toggle, .industry-panel__toggle { width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.1rem; background: var(--bg-card); border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.theme-panel__list, .industry-panel__list { position: absolute; top: calc(100% + .35rem); min-width: 10rem; max-height: 50vh; overflow-y: auto; padding: .35rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: .75rem; box-shadow: 0 8px 32px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: .2rem; }
.theme-panel__list { right: 0; }
.industry-panel__list { left: 0; }
.theme-panel__list[hidden], .industry-panel__list[hidden] { display: none !important; }
.theme-panel__list button, .industry-panel__list button { text-align: left; padding: .45rem .65rem; border-radius: .5rem; font-size: .78rem; color: var(--text); }
.theme-panel__list button.active, .industry-panel__list button.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }

.back-top { position: fixed; z-index: 700; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.1rem; box-shadow: 0 4px 16px rgba(0,0,0,.2); right: 1rem; bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.back-top[hidden] { display: none !important; }

.contact-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 600; padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid rgba(0,0,0,.08); backdrop-filter: blur(8px); }
body[data-theme='neo'] .contact-footer { background: rgba(30,41,59,.96); }
.contact-footer__btns { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.contact-footer__cta, .contact-footer__btn { padding: .45rem .85rem; border-radius: 999px; font-size: .78rem; font-weight: 600; text-decoration: none; }
.contact-footer__cta { background: var(--primary); color: #fff; }
.contact-footer__btn { border: 1px solid var(--border); color: var(--text); background: var(--bg-card); }
.contact-footer__brand { text-align: center; font-size: .62rem; color: var(--text-light); margin-top: .35rem; }

@media (min-width: 1024px) {
  .hero__content { text-align: left; padding-left: 2rem; }
  .hero__avatar { margin: 0 0 1rem; }
  .hero__highlights { max-width: 28rem; }
}
