/* ============================================================
   YesSir 视觉 v4 · Jobright 参考 · 主题色 红
   替代 manila 档案柜 · 严肃 + 现代 SaaS + 空气感
   ============================================================ */

:root {
  /* 主色 · 红 */
  --red: #E63946;
  --red-2: #C1121F;
  --red-3: #A01018;
  --red-soft: #FFE9EC;
  --red-glow: rgba(230, 57, 70, 0.14);

  /* 中性 · 灰阶 */
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --card: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --line: #E2E8F0;
  --line-soft: #F1F5F9;

  /* 状态色 */
  --green: #10B981;
  --green-soft: #ECFDF5;
  --amber: #F59E0B;
  --amber-soft: #FFFBEB;
  --blue: #2563EB;

  /* 阴影 · Jobright 式柔和 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.10);
  --shadow-red: 0 8px 24px rgba(230, 57, 70, 0.20);

  /* 圆角 */
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* 字体 */
  --sans: 'Inter', 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* 尺寸 */
  --maxw: 1200px;
  --pad: clamp(16px, 3vw, 32px);
  --pad-lg: clamp(24px, 5vw, 56px);
  --gap: clamp(16px, 2.5vw, 24px);

  /* 动效 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
::selection { background: var(--red-soft); color: var(--red-3); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: var(--r-sm); }

/* === Layout === */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-sm { padding: clamp(32px, 5vw, 56px) 0; }

/* === Nav === */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav__brand img { width: 28px; height: 28px; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 8px 14px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all 0.15s var(--ease); }
.nav__link:hover { color: var(--red); background: var(--red-soft); }
.nav__link--soon { color: var(--ink-4); pointer-events: none; }
.nav__link--soon::after { content: 'Soon'; margin-left: 6px; padding: 1px 6px; font-size: 10px; background: var(--amber-soft); color: var(--amber); border-radius: var(--r-pill); font-weight: 600; }
@media (max-width: 720px) { .nav__links .hide-sm { display: none; } }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-family: inherit; font-size: 14.5px; font-weight: 600;
  border-radius: var(--r); border: none; cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.15s, box-shadow 0.15s;
  text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--red-2); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1E293B; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--red); background: var(--red-soft); }
.btn--lg { padding: 14px 28px; font-size: 15.5px; border-radius: var(--r); }
.btn--sm { padding: 7px 14px; font-size: 13px; }

/* === Badges / Pills === */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; font-size: 12.5px; font-weight: 600;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2);
}
.badge--red { background: var(--red-soft); color: var(--red-3); }
.badge--green { background: var(--green-soft); color: #047857; }
.badge--amber { background: var(--amber-soft); color: #B45309; }
.badge--dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* === Cards === */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; transition: all 0.2s var(--ease);
}
.card--hover:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--elevated { box-shadow: var(--shadow-md); border: none; }

/* === Stats row === */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats-row .stat { background: var(--card); padding: 28px 20px; text-align: center; }
.stats-row .stat__n { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stats-row .stat__n .accent { color: var(--red); }
.stats-row .stat__l { margin-top: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
@media (max-width: 780px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* === Hero === */
.hero { padding: clamp(56px, 9vw, 96px) 0 clamp(48px, 8vw, 80px); text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px; background: radial-gradient(ellipse at center, var(--red-glow), transparent 60%);
  pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 24px;
  background: var(--red-soft); color: var(--red-3);
  border-radius: var(--r-pill); font-size: 13px; font-weight: 600;
}
.hero__title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; max-width: 20ch; margin: 0 auto; }
.hero__title .accent { color: var(--red); }
.hero__sub { margin: 24px auto 0; max-width: 44ch; font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-2); line-height: 1.6; }
.hero__cta { margin-top: 32px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero__trust { margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; color: var(--ink-4); font-size: 13px; }
.hero__trust b { color: var(--ink-2); font-weight: 700; }

/* === Section headers === */
.sec-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.sec-head .sub { margin-top: 12px; max-width: 52ch; margin-inline: auto; color: var(--ink-3); font-size: 15.5px; }

/* === Grid === */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* === Feature card === */
.feat {
  padding: 28px 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); position: relative; transition: all 0.2s var(--ease);
}
.feat:hover { border-color: var(--red); box-shadow: var(--shadow-md); }
.feat__icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); border-radius: var(--r); font-size: 22px; margin-bottom: 16px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.feat__meta { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.feat__price { color: var(--red); font-weight: 700; }
.feat__arrow { color: var(--ink-4); transition: transform 0.15s, color 0.15s; }
.feat:hover .feat__arrow { color: var(--red); transform: translateX(3px); }
.feat--soon { opacity: 0.72; pointer-events: none; }
.feat--soon .feat__icon { background: var(--amber-soft); color: var(--amber); }

/* === Pricing card === */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 780px) { .pricing { grid-template-columns: 1fr; } }
.plan { padding: 32px 28px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-lg); }
.plan--featured { border-color: var(--red); box-shadow: var(--shadow-md); position: relative; }
.plan--featured::before {
  content: '推荐'; position: absolute; top: -12px; left: 24px;
  padding: 4px 12px; background: var(--red); color: #fff;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
}
.plan__name { font-size: 15px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.plan__price { font-size: 40px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.02em; }
.plan__price .unit { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.plan__desc { color: var(--ink-3); font-size: 14px; margin-bottom: 24px; }
.plan__list { list-style: none; margin: 0; padding: 0; }
.plan__list li { padding: 8px 0; padding-left: 24px; position: relative; font-size: 14px; color: var(--ink-2); }
.plan__list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.plan__cta { margin-top: 24px; display: block; text-align: center; }

/* === Form === */
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 14.5px;
  color: var(--ink); background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--r); transition: border 0.15s, box-shadow 0.15s;
}
.form-field input:focus, .form-field select:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow);
}
.form-field small { color: var(--ink-4); font-size: 12px; }

/* === Result card (phase0) === */
.result-card {
  padding: 22px 24px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); margin-bottom: 12px; transition: border 0.15s, box-shadow 0.15s;
}
.result-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.result-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.result-card__code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); letter-spacing: 0.03em; }
.result-card__match { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--red-soft); color: var(--red-3); border-radius: var(--r-pill); font-size: 12px; font-weight: 700; }
.result-card__match--high { background: var(--red); color: #fff; }
.result-card h3 { font-size: 16px; margin-bottom: 4px; }
.result-card__dept { color: var(--ink-3); font-size: 13.5px; margin-bottom: 10px; }
.result-card__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--ink-3); }
.result-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.result-card__foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-card__source { color: var(--ink-3); font-size: 13px; }
.result-card__source:hover { color: var(--red); }
.compete-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.compete-tag--low { background: var(--green-soft); color: #047857; }
.compete-tag--mid { background: var(--amber-soft); color: #B45309; }
.compete-tag--high { background: var(--red-soft); color: var(--red-3); }

/* === Footer === */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink-2); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--ink-3); }
.footer__links a:hover { color: var(--red); }
.footer__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-4); text-align: center; }
.footer__note a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

/* === Utility === */
.text-center { text-align: center; }
.text-muted { color: var(--ink-3); }
.text-accent { color: var(--red); }
.hidden-sm { }
@media (max-width: 620px) { .hidden-sm { display: none; } }

/* === Motion === */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
