/*
 * home.css — 求职助手 首页自包含样式
 * ──────────────────────────────────────
 * 设计方向：极简高级留白（暖白底 / 近黑主色 / 衬线大标题 / 大留白 / 无渐变无发光）
 * 本文件有意不依赖 styles.css；其他页面继续使用 styles.css，零影响。
 */

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* === Root Tokens === */
:root {
  --bg:          #FAFAF8;
  --bg-alt:      #F4F3F0;
  --surface:     #FFFFFF;
  --ink:         #1A1A1A;
  --ink-soft:    #6B6B6B;
  --ink-faint:   #6E6E6E;
  --ink-ghost:   #9A9A9A;
  --hairline:    #E6E3DD;
  --accent:      #9B8B6E;
  --band:        #141414;
  --success:     #2D8B5A;
  --warning:     #B4553F;

  --font-display: "Songti SC","Noto Serif CJK SC","Source Han Serif SC","STSong","SimSun","PMingLiU",Georgia,"Times New Roman",serif;
  --font-body:    -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Segoe UI",sans-serif;

  --max-w:       1080px;
  --text-w:      660px;
  --radius:      2px;
  --section-py:  120px;
  --transition:  280ms ease;
}

/* === Base === */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* === Utility === */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }
.skip-to-content {
  position: fixed; top: -100%; left: 16px; z-index: 9999;
  background: var(--band); color: #fff; padding: 8px 16px;
  font-size: 14px; border-radius: var(--radius);
}
.skip-to-content:focus { top: 16px; }

/* === Section === */
.section { padding: var(--section-py) 0; }
.section-alt { background: var(--bg-alt); }
.section-band { background: var(--band); color: #fff; }

/* === Section Head === */
.section-head { max-width: var(--text-w); margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase; margin-bottom: 12px;
  font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; font-size: 15px; font-weight: 500;
  border-radius: var(--radius); transition: all var(--transition);
  line-height: 1.4; white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
}
.btn-primary:hover { background: #333; border-color: #333; }
.btn-outline {
  background: transparent; color: var(--ink); border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-on-dark {
  background: #fff; color: var(--band); border: 1px solid #fff;
}
.btn-on-dark:hover { background: transparent; color: #fff; }
.btn-ghost-dark {
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4);
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* === Navbar === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,248,.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--hairline); background: rgba(250,250,248,.95); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 17px; color: var(--ink);
}
.logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-icon img { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 14px; color: var(--ink-soft); transition: color var(--transition);
}
.nav-link:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* === Hamburger + Mobile Menu === */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px; padding: 6px;
}
.hamburger span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  border-radius: 1px; transition: all 240ms ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  padding: 8px 24px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a {
  display: block; padding: 14px 0; font-size: 15px;
  color: var(--ink-soft); border-bottom: 1px solid var(--hairline);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .nav-cta { padding-top: 12px; gap: 10px; }
.mobile-menu.open .nav-cta { display: flex; flex-direction: column; }
.mobile-menu.open .nav-cta .btn { width: 100%; }

/* === Hero === */
.hero {
  padding-top: 140px; padding-bottom: 80px;
  text-align: center;
}
.hero-badge {
  display: inline-block; font-size: 13px; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 24px; font-weight: 500;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
.hero-subtitle {
  max-width: 600px; margin: 0 auto 40px;
  font-size: 17px; line-height: 1.8; color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-visual {
  margin-top: 64px; display: flex; justify-content: center;
}
.hero-visual svg { width: 100%; max-width: 560px; height: auto; }

/* === Trust Line === */
.trust-line {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.trust-line p {
  font-size: 14px; color: var(--ink-faint); letter-spacing: 0.02em;
}

/* === Content Sections (link, exam, interview, features, etc.) === */
.content-section { padding: var(--section-py) 0; }
.content-section .section-head { max-width: var(--text-w); margin-bottom: 48px; }

/* Two-column layout */
.col-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.col-2 .col-text .section-head { margin-bottom: 0; }

/* Feature list (editorial, not card wall) */
.feature-list { margin-top: 8px; }
.feature-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.feature-item:first-child { border-top: 1px solid var(--hairline); }
.feature-item h4 {
  font-size: 16px; font-weight: 600; color: var(--ink);
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 15px; color: var(--ink-soft); line-height: 1.7;
}

/* Mode card (for exam/interview modes) */
.mode-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.mode-card:first-child { border-top: 1px solid var(--hairline); }
.mode-card h4 {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px;
}
.mode-card p {
  font-size: 15px; color: var(--ink-soft); line-height: 1.8;
}
.mode-card ul {
  margin-top: 8px; padding-left: 0;
}
.mode-card li {
  font-size: 15px; color: var(--ink-soft); line-height: 1.8;
  padding-left: 16px; position: relative;
}
.mode-card li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* Keyboard hint */
.kbd-hint {
  margin-top: 16px; font-size: 13px; color: var(--ink-faint);
  padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius);
}

/* Response tones (inline labels) */
.tone-list {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}
.tone-label {
  font-size: 14px; color: var(--ink); padding: 6px 14px;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--surface);
}

/* Industries list (editorial, thin lines) */
.industry-list { margin-top: 4px; }
.industry-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px; color: var(--ink);
}
.industry-item:first-child { border-top: 1px solid var(--hairline); }

/* Scenario cards */
.scenario-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.scenario-item:first-child { border-top: 1px solid var(--hairline); }
.scenario-item h4 {
  font-size: 17px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}
.scenario-item p {
  font-size: 15px; color: var(--ink-soft); line-height: 1.8;
}

/* === Visual illustrations (inline SVG line art) === */
.visual-box {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); border-radius: var(--radius);
  padding: 48px 32px; min-height: 280px;
}
.visual-box svg { width: 100%; max-width: 400px; height: auto; }

/* === FAQ === */
.faq-list { max-width: var(--text-w); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; font-size: 16px; font-weight: 500; color: var(--ink);
  text-align: left; gap: 16px;
}
.faq-question-icon {
  width: 20px; height: 20px; flex-shrink: 0; transition: transform 240ms ease;
}
.faq-question-icon svg { width: 100%; height: 100%; }
.faq-item.active .faq-question-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 0 22px; font-size: 15px; line-height: 1.8; color: var(--ink-soft);
}
.faq-answer-inner p { margin-bottom: 8px; }

/* === CTA Band (near-black) === */
.cta-band {
  background: var(--band); color: #fff;
  padding: var(--section-py) 0; text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.18; letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 17px; color: rgba(255,255,255,.65);
  margin-bottom: 36px; line-height: 1.7;
}
.cta-band .hero-actions { margin-top: 0; }

/* === Download Modal === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 280ms ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--surface); border-radius: var(--radius);
  padding: 40px; max-width: 480px; width: 90%;
  position: relative;
  transform: translateY(12px); transition: transform 280ms ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-soft); border-radius: var(--radius);
}
.modal-close:hover { background: var(--bg-alt); }
.modal-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; color: var(--ink);
  margin-bottom: 6px;
}
.modal-text {
  font-size: 15px; color: var(--ink-soft); margin-bottom: 24px;
}
.download-cards { display: flex; flex-direction: column; gap: 12px; }
.download-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border: 1px solid var(--hairline);
  border-radius: var(--radius); transition: border-color var(--transition);
}
.download-card:hover { border-color: var(--ink); }
.download-card.is-hidden { display: none; }
.download-card-label {
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.download-card-desc {
  font-size: 13px; color: var(--ink-soft);
}

/* === Footer === */
.footer {
  background: var(--band); color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}
.footer-top { padding-bottom: 48px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-col-title {
  font-size: 14px; font-weight: 600; color: #fff;
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.footer-link {
  display: block; font-size: 14px; color: rgba(255,255,255,.6);
  padding: 5px 0; transition: color var(--transition);
}
.footer-link:hover { color: #fff; }
.footer-contact p {
  font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,.6);
}
.footer-contact a { color: rgba(255,255,255,.85); text-decoration: underline; }
.footer-dingtalk {
  margin-top: 16px; display: flex; flex-direction: column; gap: 8px;
}
.footer-dingtalk img {
  width: 120px; height: auto; border-radius: var(--radius);
  object-fit: contain;
}
.footer-dingtalk span { font-size: 13px; color: rgba(255,255,255,.5); }
.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: color var(--transition);
}
.social-icon:hover { color: #fff; }
.social-icon svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; font-size: 13px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* === Animate-in (progressive enhancement: gated behind .js class) === */
.js .animate-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.js .animate-in.visible {
  opacity: 1; transform: translateY(0);
}

/* === Focus === */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Print === */
@media print {
  .navbar, .hamburger, .mobile-menu, .modal-overlay, .cta-band { display: none !important; }
  body { background: #fff; }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .animate-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* === Touch devices: 44px targets === */
@media (pointer: coarse) {
  .btn, button, a, .faq-question, .hamburger, .download-card {
    min-height: 44px;
  }
}

/* === Responsive: ≤767px === */
@media (max-width: 767px) {
  :root { --section-py: 72px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .hero { padding-top: 120px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(28px, 7vw, 42px); }
  .hero-subtitle { font-size: 15px; }
  .col-2 { grid-template-columns: 1fr; gap: 32px; }
  .col-2 .visual-box { min-height: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-head { margin-bottom: 36px; }
  .hero-visual { margin-top: 40px; }
}

/* === Responsive: ≤480px === */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 108px; }
  .hero h1 { font-size: clamp(24px, 8vw, 36px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .modal { padding: 28px 20px; }
}

/* === Responsive: ≤375px === */
@media (max-width: 375px) {
  .container { padding: 0 12px; }
  :root { --section-py: 56px; }
  body { font-size: 15px; }
  .hero h1 { font-size: 26px; }
  .section-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .btn { padding: 10px 20px; font-size: 14px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
  .feature-item, .mode-card, .scenario-item, .industry-item { padding: 14px 0; }
  .faq-question { font-size: 15px; padding: 18px 0; }
}

/* === 320px guard: no horizontal overflow === */
@media (max-width: 320px) {
  .container { padding: 0 10px; }
  :root { --section-py: 48px; }
  body { font-size: 14px; }
  .hero h1 { font-size: 22px; }
  .section-title { font-size: 20px; }
  .hero-subtitle { font-size: 13px; }
  .feature-item h4, .mode-card h4, .scenario-item h4 { font-size: 15px; }
  .feature-item p, .mode-card p, .scenario-item p { font-size: 13px; }
  .tone-label { font-size: 12px; padding: 4px 10px; }
  .faq-question { font-size: 14px; }
  .faq-answer-inner { font-size: 13px; }
  .kbd-hint { font-size: 12px; padding: 8px 12px; }
  .visual-box { padding: 24px 16px; min-height: 160px; }
  .trust-line p { font-size: 12px; }
}
