/* ==========================================================
   PPT 接单平台 · 公共样式
   商务专业：浅灰白底 + 沉稳蓝，细边框、克制阴影
   ========================================================== */

:root {
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e4e7ec;
  --line-2: #eef1f5;
  --bg: #f6f7f9;
  --bg-2: #fbfcfd;
  --card: #ffffff;
  --blue: #14428f;
  --blue-2: #1d5bd6;
  --blue-soft: #eef3fd;
  --blue-line: #cfdcf7;
  --green: #067647;
  --green-soft: #ecfdf3;
  --amber: #b54708;
  --amber-soft: #fffaeb;
  --red: #b42318;
  --red-soft: #fef3f2;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 4px 16px -6px rgba(16, 24, 40, .10), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 24px 48px -24px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .05);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: #d7e3ff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 15px; font-weight: 650; }
.brand__text span { font-size: 11px; color: var(--muted-2); letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--line-2); text-decoration: none; color: var(--ink); }
.nav a.is-active { color: var(--blue); background: var(--blue-soft); }
.nav-divider { width: 1px; height: 20px; background: var(--line); margin: 0 8px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 550; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #0f3674; text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--ghost { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { background: var(--bg-2); color: var(--ink); border-color: #d0d5dd; }
.btn--soft { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.btn--soft:hover { background: #e3ecfc; color: var(--blue); }
.btn--danger { background: #fff; color: var(--red); border-color: #fecdca; }
.btn--danger:hover { background: var(--red-soft); color: var(--red); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn--lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--text { background: none; border: none; color: var(--blue-2); padding: 0; height: auto; }
.btn--text:hover { background: none; text-decoration: underline; }

/* ---------------- 通用块 ---------------- */
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; max-width: 640px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-2); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--blue-2); }
.section-head h2 { font-size: 28px; font-weight: 680; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { font-size: 15px; font-weight: 620; }
.card-body { padding: 20px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  background: var(--line-2); color: var(--muted);
  border: 1px solid transparent; white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge--pending { background: #fff7ed; color: #b54708; border-color: #fed7aa; }
.badge--claimed { background: var(--blue-soft); color: var(--blue-2); border-color: var(--blue-line); }
.badge--making { background: #eef4ff; color: #175cd3; border-color: #d1e0ff; }
.badge--review { background: #f4f0ff; color: #6941c6; border-color: #e4d9ff; }
.badge--delivered { background: var(--green-soft); color: var(--green); border-color: #c6f0d7; }
.badge--closed { background: #f2f4f7; color: #475467; border-color: #e4e7ec; }
.badge--cancelled { background: var(--red-soft); color: var(--red); border-color: #fecdca; }
.badge--plain::before { display: none; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  background: var(--line-2); color: var(--muted); font-size: 12px;
}

.price { font-variant-numeric: tabular-nums; font-weight: 680; color: var(--ink); }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted-2); }
.hr { height: 1px; background: var(--line-2); margin: 16px 0; border: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 4px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------- 表单 ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field > label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.field > label .req { color: var(--red); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid #d7dbe2; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.textarea { height: auto; min-height: 104px; padding: 10px 12px; line-height: 1.6; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(29, 91, 214, .12); }
.input::placeholder, .textarea::placeholder { color: #a9b1bf; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field-hint { font-size: 12px; color: var(--muted-2); }
.field-error { font-size: 12px; color: var(--red); display: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #fda29b; }
.field.has-error .field-error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13px; cursor: pointer; display: inline-flex; align-items: center;
  transition: all .15s;
}
.chip:hover { border-color: #c3cbd8; }
.chip.is-on { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue); font-weight: 600; }

/* 选项卡片（下单档位） */
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  background: #fff; cursor: pointer; transition: all .15s; position: relative;
}
.opt:hover { border-color: #c8d2e0; }
.opt.is-on { border-color: var(--blue-2); background: #f7faff; box-shadow: 0 0 0 1px var(--blue-2) inset; }
.opt b { display: block; font-size: 13px; color: var(--ink); font-weight: 620; }
.opt span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.opt em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; font-weight: 650; color: var(--blue); font-variant-numeric: tabular-nums; }

/* ---------------- 弹层 / 提示 ---------------- */
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #101828; color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s; max-width: 90vw;
}
.toast.is-on { opacity: 1; transform: none; }
.toast--err { background: #7a271a; }
.toast--ok { background: #054f31; }
[data-toast] { position: relative; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .45);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px;
  backdrop-filter: blur(2px);
}
.modal-mask.is-open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 640px; max-height: 88vh; display: flex; flex-direction: column;
  animation: pop .18s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.modal__head { padding: 20px 24px; border-bottom: 1px solid var(--line-2); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__head h3 { font-size: 17px; font-weight: 650; }
.modal__body { padding: 20px 24px; overflow: auto; }
.modal__foot { padding: 16px 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }

/* ---------------- 空状态 / 加载 ---------------- */
.empty {
  text-align: center; padding: 56px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.empty b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f7f8fa 37%, #eef1f5 63%); background-size: 400% 100%; animation: shine 1.2s infinite; border-radius: 8px; }
@keyframes shine { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0d1626; color: #98a2b3; padding: 48px 0 32px; margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.site-footer a { color: #c3cbd8; display: block; padding: 3px 0; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand__mark { background: #fff; color: #0d1626; }
.site-footer .brand__text b { color: #fff; }
.site-footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 8px 10px; }
}
@media (max-width: 768px) {
  .site-header__inner { gap: 12px; padding: 0 16px; }
  .brand__text span { display: none; }
  .nav { gap: 0; }
  .nav a { font-size: 13px; padding: 8px 9px; }
  .nav-divider { display: none; }
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .opt-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .site-header__inner { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
  .nav { width: 100%; margin-left: 0; overflow-x: auto; }
  .nav a { white-space: nowrap; }
}
