/* ==========================================================================
   JOBLESS. — 共享样式
   一套页面共用：index（状态）/ daily（日报）/ quotes（语录）/ card（招聘卡）
   ========================================================================== */

:root {
  /* ---- 配色（改这里即可换肤） ---- */
  --paper:   #faf9f7;
  --card:    #ffffff;
  --ink:     #1a1a19;
  --ink-2:   #3d3d39;
  --muted:   #8b8b84;

  --line:    #ecebe6;
  --line-2:  #f4f3ef;

  --orange:  #ef6320;
  --green:   #0f9d58;

  --canvas:  #edeae4;   /* 插画底 */
  --badge:   #4c4c48;

  --radius:  14px;
  --radius-s: 10px;

  /* ---- 字体 ---- */
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* ---- 深色 ---- */
[data-theme="dark"] {
  --paper:  #0f0f0e;
  --card:   #171716;
  --ink:    #f3f3ef;
  --ink-2:  #c6c6bf;
  --muted:  #8b8b83;
  --line:   #2a2a27;
  --line-2: #212120;
  --orange: #f5783a;
  --green:  #3ecf8e;
  --badge:  #3a3a36;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:  #0f0f0e;
    --card:   #171716;
    --ink:    #f3f3ef;
    --ink-2:  #c6c6bf;
    --muted:  #8b8b83;
    --line:   #2a2a27;
    --line-2: #212120;
    --orange: #f5783a;
    --green:  #3ecf8e;
    --badge:  #3a3a36;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: clamp(1rem, 3vw, 2.5rem) 1rem clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .4s ease, color .4s ease;
}

.page {
  max-width: 600px;
  margin: 0 auto;
}

/* ============ 卡片外壳 ============ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  transition: background-color .4s ease, border-color .4s ease;
}

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand sup {
  font-size: .58em;
  font-weight: 600;
  vertical-align: super;
  margin-left: .06em;
}

.pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: var(--orange);
  border-radius: 5px;
  padding: .32em .62em;
  white-space: nowrap;
}

/* ============ 标题区 ============ */
.hero {
  text-align: center;
  padding: clamp(1.6rem, 5vw, 2.4rem) 0 clamp(1rem, 3vw, 1.4rem);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.28rem, 4.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -.01em;
}

.hero p {
  margin: .55em 0 0;
  font-size: .94rem;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ============ 插画 ============ */
.figure {
  position: relative;
  margin: 0 0 1rem;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--canvas);
}

.figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.badge-tag {
  position: absolute;
  left: .7rem;
  bottom: .7rem;
  padding: .22em .5em;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .92);
  background: rgba(60, 60, 56, .78);
  border-radius: 4px;
  letter-spacing: .01em;
}

/* ============ 状态行 ============ */
.status {
  text-align: center;
  margin: 0 0 1.1rem;
}

.status-line {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

.open {
  margin: .3em 0 0;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
}

/* ============ 分隔线 ============ */
.rule {
  height: 1px;
  background: var(--line);
  margin: 1.35rem 0;
}

/* ============ 信息网格 ============ */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.k {
  margin: 0 0 .28em;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .02em;
}

.v {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.005em;
}

/* ============ 区块标题 / 列表 ============ */
.block-title {
  margin: 1.6rem 0 .8rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.005em;
}

.list {
  margin: 0;
  padding-left: 1.15em;
  list-style: disc;
}

.list li {
  font-size: .87rem;
  line-height: 2.05;
  color: var(--ink-2);
}

.list li::marker { color: var(--muted); }

/* ============ 页脚 ============ */
.foot {
  margin: 1.7rem 0 0;
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ============ 页面导航（卡片外，很轻） ============ */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem .9rem;
  margin-top: 1.1rem;
  font-size: .74rem;
  color: var(--muted);
}

.nav a {
  color: inherit;
  text-decoration: none;
  padding: .15em 0;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  border-color: var(--line);
  outline: none;
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

/* ============ 通用小按钮 ============ */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .5em 1em;
  border-radius: 7px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .12s ease;
}

.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

/* ============ 子页面正文 ============ */
.lead {
  margin: 1.4rem 0 0;
  font-size: .92rem;
  color: var(--ink-2);
}

.note {
  margin: .5rem 0 0;
  font-size: .76rem;
  color: var(--muted);
}

code {
  font-family: var(--mono);
  font-size: .92em;
  background: var(--line-2);
  padding: .08em .34em;
  border-radius: 4px;
}

/* ============ 键值行（日报） ============ */
.rows {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .72rem 0;
  border-bottom: 1px solid var(--line-2);
}

.rows li:last-child { border-bottom: 0; }

.rows .rk {
  font-size: .8rem;
  color: var(--muted);
  white-space: nowrap;
}

.rows .rv {
  font-size: .87rem;
  font-weight: 700;
  text-align: right;
}

.rows .rv a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
}

/* ============ 语录 ============ */
.quote {
  margin: 1.6rem 0 0;
  font-size: clamp(1rem, 3vw, 1.15rem);
  line-height: 1.85;
  letter-spacing: -.005em;
}

.quote-src {
  margin: .9rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ============ 标签 / 招聘卡 ============ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  font-size: .73rem;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .26em .68em;
  letter-spacing: .01em;
}

.bizcard {
  margin-top: 1.5rem;
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.bizcard h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.bizcard p {
  margin: .4em 0 0;
  font-size: .85rem;
  color: var(--muted);
}

.bizcard .rows { margin-top: .9rem; }

/* ============ 入场 ============ */
/* 只位移、不改透明度：即使动画不执行，内容也始终可见 */
.fade {
  animation: rise .7s cubic-bezier(.22, 1, .36, 1) both;
}
.d1 { animation-delay: .02s; }
.d2 { animation-delay: .10s; }
.d3 { animation-delay: .18s; }

@keyframes rise {
  from { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; }
  body, .card, .btn { transition: none; }
}

/* ============ 小屏 ============ */
@media (max-width: 420px) {
  .grid { gap: 1rem 1.1rem; }
  .status-line { font-size: .76rem; }
}
