/* interview-hub.css — 求职护航 Hub 页样式 */

/* ══════════════════════════════════════════
   CSS Variables & Reset
   ══════════════════════════════════════════ */
:root {
  --bg: #FEFAF3;
  --surface: #FFFFFF;
  --surface-hover: #FFFAF7;
  --text: #1E1E24;
  --text-secondary: #6B6570;
  --text-muted: #9B959F;
  --accent: #E8453C;
  --accent-soft: #FFF0EE;
  --secondary: #1A7A6B;
  --secondary-soft: #EDF7F4;
  --tertiary: #E8A020;
  --tertiary-soft: #FFF8E7;
  --border: #E8E3DC;
  --border-light: #F2EFEA;
  --shadow-sm: 0 1px 3px rgba(30,30,36,0.04), 0 1px 2px rgba(30,30,36,0.06);
  --shadow-md: 0 4px 16px rgba(30,30,36,0.06), 0 2px 4px rgba(30,30,36,0.04);
  --shadow-lg: 0 12px 40px rgba(30,30,36,0.08), 0 4px 8px rgba(30,30,36,0.04);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "WenQuanYi Micro Hei", sans-serif;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container { max-width: 1080px; margin: 0 auto; padding: 48px 24px 80px; position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   Header
   ══════════════════════════════════════════ */
.header { text-align: center; margin-bottom: 56px; animation: fadeUp 0.7s ease both; }

.header-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600; padding: 6px 16px;
  border-radius: 100px; margin-bottom: 20px; letter-spacing: 0.02em;
}

.header-badge::before {
  content: ''; width: 7px; height: 7px;
  background: var(--accent); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.6); }
}

.header h1 {
  font-family: var(--font-display); font-size: 42px; font-weight: 700;
  color: var(--text); letter-spacing: 0.03em; margin-bottom: 12px;
}

.header .subtitle { font-size: 17px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 20px; line-height: 1.7; }

.resume-context {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 20px;
  font-size: 14px; color: var(--text-secondary); box-shadow: var(--shadow-sm);
}

.resume-context .dot { width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; }
.resume-context strong { color: var(--text); font-weight: 600; }

/* ── Demo Mode Banner ── */
.demo-banner {
  display: none;
  background: var(--tertiary-soft);
  border: 1px solid var(--tertiary);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #8B6914;
  line-height: 1.6;
  text-align: center;
  animation: fadeUp 0.4s ease both;
}

.demo-banner.active { display: block; }

.demo-banner-cta {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.demo-banner-cta:hover { color: #D03A32; }

/* ══════════════════════════════════════════
   Hub Grid — 3 columns
   ══════════════════════════════════════════ */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

@media (max-width: 900px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   Module Cards
   ══════════════════════════════════════════ */
.module-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeUp 0.6s ease both;
}

.module-card:nth-child(1) { animation-delay: 0.03s; }
.module-card:nth-child(2) { animation-delay: 0.08s; }
.module-card:nth-child(3) { animation-delay: 0.13s; }
.module-card:nth-child(4) { animation-delay: 0.18s; }
.module-card:nth-child(5) { animation-delay: 0.23s; }
.module-card:nth-child(6) { animation-delay: 0.28s; }
.module-card:nth-child(7) { animation-delay: 0.33s; }

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.module-card.featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 36px;
  border-left: 4px solid var(--accent);
}

.module-card.featured:hover { border-left-color: var(--accent); }

@media (max-width: 700px) {
  .module-card.featured { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
}

.card-accent-line {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}

.module-card:hover .card-accent-line { transform: scaleX(1); }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.card-icon.coral { background: var(--accent-soft); color: var(--accent); }
.card-icon.teal  { background: var(--secondary-soft); color: var(--secondary); }
.card-icon.amber { background: var(--tertiary-soft); color: var(--tertiary); }
.card-icon.muted { background: #F5F3F0; color: #8B8580; }

.card-body { flex: 1; min-width: 0; }

.card-body h3 {
  font-family: var(--font-display); font-size: 17px;
  font-weight: 600; margin-bottom: 6px; color: var(--text);
}

.card-body p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

.card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; font-size: 12px; font-weight: 600;
}

.card-meta .tag {
  padding: 3px 10px; border-radius: 100px; font-size: 11px;
}

.tag.ready   { background: var(--secondary-soft); color: var(--secondary); }
.tag.premium { background: var(--accent-soft); color: var(--accent); }
.tag.preview { background: #F5F3F0; color: #8B8580; }

.card-arrow {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border-light);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text-muted); font-size: 14px;
}

.module-card:hover .card-arrow { background: var(--accent); color: #fff; }

/* Preview card */
.module-card.preview {
  opacity: 0.75; cursor: default;
  background: linear-gradient(135deg, var(--surface) 0%, #FAFAF8 100%);
}

.module-card.preview:hover { transform: translateY(-2px); opacity: 0.85; }
.module-card.preview .card-body h3 { color: var(--text-muted); }

.preview-badge {
  display: inline-block;
  background: linear-gradient(135deg, #F0EDE8, #E8E3DC);
  color: #8B8580;
  font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* ══════════════════════════════════════════
   Expanded Sections
   ══════════════════════════════════════════ */
.expanded-section {
  display: none;
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: -4px;
  box-shadow: var(--shadow-md);
  animation: expandIn 0.35s ease both;
}

.expanded-section.active { display: block; }

@keyframes expandIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.expanded-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}

.expanded-header h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
}

.close-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); color: var(--text-muted);
}

.close-btn:hover { background: var(--text); color: #fff; border-color: var(--text); }

/* ══════════════════════════════════════════
   Purpose Intro
   ══════════════════════════════════════════ */
.purpose-intro {
  padding: 16px 20px;
  background: var(--tertiary-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px; color: #8B6914; line-height: 1.6;
  border-left: 3px solid var(--tertiary);
}

.purpose-intro .pi-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--tertiary); margin-bottom: 4px;
}

/* ══════════════════════════════════════════
   Prep Cards (面试前)
   ══════════════════════════════════════════ */
.prep-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px;
}

@media (max-width: 700px) { .prep-grid { grid-template-columns: 1fr; } }

.prep-card {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 20px 22px;
}

.prep-card .prep-num {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--border); line-height: 1; margin-bottom: 8px;
}

.prep-card h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }

.prep-card .why {
  font-size: 12px; color: var(--secondary); margin-bottom: 8px;
  padding: 6px 10px; background: var(--secondary-soft);
  border-radius: 6px; line-height: 1.5;
}

.prep-card .why::before { content: '💡 为什么要：'; font-weight: 700; }

.prep-card .how {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}

/* Checklist */
.checklist {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 18px 22px;
}

.checklist h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }

.checklist-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-secondary); padding: 6px 0;
  border-bottom: 1px solid var(--border-light); cursor: pointer;
  transition: color var(--transition);
}

.checklist-item:last-child { border-bottom: none; }

.checklist-item .cb {
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid var(--border); flex-shrink: 0; margin-top: 1px;
  transition: all var(--transition);
}

.checklist-item.checked { color: var(--text-muted); text-decoration: line-through; }
.checklist-item.checked .cb { background: var(--secondary); border-color: var(--secondary); }
.checklist-item.checked .cb::after { content: '✓'; color: #fff; font-size: 12px; display: flex; justify-content: center; line-height: 1.1; }

/* ══════════════════════════════════════════
   Accordion (面试中)
   ══════════════════════════════════════════ */
.accordion { margin-bottom: 24px; }

.accordion-item {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden;
}

.accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 22px; border: none; background: none;
  cursor: pointer; font-family: var(--font-body); font-size: 15px;
  font-weight: 600; color: var(--text); text-align: left;
  transition: all var(--transition);
}

.accordion-trigger:hover { background: rgba(0,0,0,0.02); }

.accordion-trigger .ai-label {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 100px; margin-left: 10px; flex-shrink: 0;
}

.ai-label.must   { background: var(--accent-soft); color: var(--accent); }
.ai-label.high   { background: var(--tertiary-soft); color: #C47F10; }
.ai-label.base   { background: var(--secondary-soft); color: var(--secondary); }
.ai-label.closing { background: #F0EBFF; color: #6B4ED4; }

.accordion-trigger .a-arrow {
  transition: transform var(--transition); color: var(--text-muted);
  font-size: 14px; flex-shrink: 0;
}

.accordion-item.open .accordion-trigger .a-arrow { transform: rotate(180deg); }

.accordion-body {
  display: none; padding: 0 22px 20px; animation: expandIn 0.3s ease both;
}

.accordion-item.open .accordion-body { display: block; }

.accordion-body .intent-line {
  font-size: 12px; color: var(--secondary); font-weight: 600;
  margin-bottom: 12px; padding: 6px 10px;
  background: var(--secondary-soft); border-radius: 6px; display: inline-block;
}

.accordion-body .tip-list { padding-left: 18px; }
.accordion-body .tip-list li {
  font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.55;
}

.accordion-body .anti-example {
  margin-top: 12px; padding: 12px 14px;
  background: var(--accent-soft); border-radius: 8px;
  font-size: 12px; color: #B33A30; line-height: 1.5;
}

.accordion-body .anti-example strong { display: block; margin-bottom: 4px; font-size: 11px; }

/* ══════════════════════════════════════════
   Timeline (试用期 & 面试后)
   ══════════════════════════════════════════ */
.timeline { position: relative; padding-left: 32px; }

.timeline::before {
  content: ''; position: absolute;
  top: 8px; left: 11px; bottom: 8px;
  width: 2px; background: var(--border);
}

.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute; left: -25px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  border: 3px solid var(--accent); background: var(--surface); z-index: 1;
}

.timeline-card {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 20px 24px;
}

.timeline-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.timeline-card .phase-goal { font-size: 13px; color: var(--accent); font-weight: 600; display: block; margin-bottom: 4px; }

.timeline-card .why-line {
  font-size: 12px; color: var(--secondary); margin-bottom: 12px;
  padding: 6px 10px; background: var(--secondary-soft);
  border-radius: 6px; line-height: 1.5;
}

.timeline-card .why-line::before { content: '🎯 目的：'; font-weight: 700; }

.timeline-card .script-box {
  margin-top: 10px; padding: 14px 16px;
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 8px; font-size: 13px; color: var(--text); line-height: 1.6;
}

.timeline-card .script-box .script-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px;
}

/* ══════════════════════════════════════════
   Detail Panel (常见问题+策略)
   ══════════════════════════════════════════ */
.detail-panel { display: none; animation: fadeUp 0.4s ease both; }
.detail-panel.active { display: block; }

.detail-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  transition: all var(--transition); margin-bottom: 32px;
}

.detail-back:hover { background: var(--text); color: #fff; border-color: var(--text); }

.detail-header { margin-bottom: 36px; }
.detail-header h2 { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.detail-header p { color: var(--text-secondary); font-size: 15px; }

/* Question card */
.question-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 32px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}

.question-card:hover { box-shadow: var(--shadow-md); }

.question-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}

.question-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 700;
  color: var(--border); line-height: 1; flex-shrink: 0;
}

.question-text { flex: 1; font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.4; }

.difficulty-tag {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; letter-spacing: 0.03em; flex-shrink: 0;
}

.difficulty-tag.must { background: var(--accent-soft); color: var(--accent); }
.difficulty-tag.high { background: var(--tertiary-soft); color: #C47F10; }
.difficulty-tag.base { background: var(--secondary-soft); color: var(--secondary); }

.question-meta { display: flex; gap: 24px; margin-bottom: 18px; }

.meta-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-secondary); line-height: 1.5;
}

.meta-item .mi-icon { color: var(--accent); flex-shrink: 0; font-size: 14px; }

/* Mock answer */
.mock-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border-light); }

.mock-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--secondary);
  cursor: pointer; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--secondary-soft); background: var(--secondary-soft);
  transition: all var(--transition);
}

.mock-trigger:hover { background: var(--secondary); color: #fff; border-color: var(--secondary); }

.mock-area { display: none; margin-top: 16px; }
.mock-area.active { display: block; animation: expandIn 0.3s ease both; }

.mock-area textarea {
  width: 100%; min-height: 100px; padding: 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; line-height: 1.7;
  resize: vertical; transition: all var(--transition); background: var(--bg); color: var(--text);
}

.mock-area textarea:focus { outline: none; border-color: var(--accent); background: #fff; }

.mock-submit {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 10px 24px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 100px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}

.mock-submit:hover { background: #D03A32; transform: translateY(-1px); }

.mock-result { display: none; margin-top: 20px; animation: expandIn 0.35s ease both; }
.mock-result.active { display: block; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 600px) { .compare-grid { grid-template-columns: 1fr; } }

.compare-col { background: var(--bg); border-radius: var(--radius-sm); padding: 20px; }

.compare-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 10px;
}

.compare-col.user h4 { color: var(--accent); }
.compare-col.ref h4 { color: var(--secondary); }

.compare-col p { font-size: 14px; line-height: 1.7; color: var(--text); white-space: pre-wrap; }

.self-check {
  margin-top: 16px; padding: 16px 20px;
  background: var(--tertiary-soft); border-radius: var(--radius-sm);
  font-size: 13px; color: #8B6914; line-height: 1.6;
}

.self-check strong { display: block; margin-bottom: 6px; }
.self-check li { margin-bottom: 4px; list-style: disc inside; }

/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */
.footer-note {
  text-align: center; margin-top: 48px; padding: 32px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 14px;
  color: var(--text-muted); animation: fadeUp 0.6s 0.38s ease both;
}

.footer-note strong { color: var(--text); }

/* ══════════════════════════════════════════
   Utility
   ══════════════════════════════════════════ */
.hub-hidden { display: none; }

.section-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}

/* ══════════════════════════════════════════
   After-interview timeline specific
   ══════════════════════════════════════════ */
.timeline-card ul { padding-left: 18px; }
.timeline-card li { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.55; }

/* Accordion rq list */
.rq-compact { padding-left: 18px; }
.rq-compact li { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.55; }
.rq-warning { font-size: 11px; color: var(--accent); margin-top: 14px; text-align: center; }
