/* ============================================================
   兼职项目中心 · zk.chuxun.cc
   延续站点青绿渐变体系，与「我的目标 / 文档中心」同一套视觉语言
   ============================================================ */

:root {
  --pt-ink: #0e3b36;
  --pt-ink-2: #235852;
  --pt-muted: #607d77;
  --pt-line: #dceee9;
  --pt-primary: #0c645c;
  --pt-primary-2: #1f9d90;
  --pt-accent: #4fc3ad;
  --pt-soft: #e9f9f5;
  --pt-soft-2: #f3fbf9;
  --pt-bg: #f6fbfa;
  --pt-warm: #fff6e8;
  --pt-shadow: 0 18px 44px rgba(12, 100, 92, .10);
  --pt-shadow-sm: 0 8px 24px rgba(12, 100, 92, .07);
}

body.pt-body {
  background: var(--pt-bg);
  color: var(--pt-ink);
}

.pt-page {
  position: relative;
  overflow: hidden;
}

.pt-page::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 173, .18), rgba(79, 195, 173, 0) 68%);
  top: -240px;
  right: -150px;
  pointer-events: none;
}

.pt-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- 顶部渐变主视觉 ---------- */
.pt-hero {
  padding: 168px 0 52px;
  background:
    radial-gradient(800px 380px at 8% 0%, rgba(79, 195, 173, .24), rgba(79, 195, 173, 0) 70%),
    radial-gradient(760px 420px at 96% 8%, rgba(255, 205, 133, .2), rgba(255, 205, 133, 0) 66%),
    linear-gradient(135deg, #e7f8f2 0%, #f4fbf9 48%, #fff9ef 100%);
  border-bottom: 1px solid rgba(79, 195, 173, .14);
}

.pt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 44px;
  align-items: center;
}

.pt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(31, 157, 144, .2);
  color: var(--pt-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .4px;
  box-shadow: 0 6px 16px rgba(12, 100, 92, .05);
}

.pt-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pt-accent);
  box-shadow: 0 0 0 4px rgba(79, 195, 173, .16);
}

.pt-hero h1 {
  text-wrap: balance;
  margin: 22px 0 14px;
  font-size: 46px;
  line-height: 1.18;
  letter-spacing: -1.2px;
  color: var(--pt-ink);
  font-weight: 800;
}

.pt-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #0c645c, #1f9d90 45%, #4fc3ad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pt-hero-sub {
  max-width: 650px;
  margin: 0 0 26px;
  color: var(--pt-muted);
  font-size: 16px;
  line-height: 1.85;
}

.pt-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(640px, 100%);
  padding: 9px 9px 9px 20px;
  background: #fff;
  border: 1px solid rgba(31, 157, 144, .16);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(12, 100, 92, .12);
  transition: box-shadow .25s, border-color .25s, transform .25s;
}

.pt-search:focus-within {
  border-color: rgba(31, 157, 144, .45);
  box-shadow: 0 22px 48px rgba(12, 100, 92, .16);
  transform: translateY(-1px);
}

.pt-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--pt-primary-2);
}

.pt-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  color: var(--pt-ink);
}

.pt-search input::placeholder { color: #8aa59f; }

.pt-search button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0c645c, #1f9d90 60%, #35b7a4);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(12, 100, 92, .22);
  transition: transform .2s, box-shadow .2s;
}

.pt-search button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(12, 100, 92, .28); }

.pt-hot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: #728f88;
}

.pt-hot b { color: #54756e; font-weight: 700; }

.pt-hot a {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(31, 157, 144, .16);
  color: #2a6b63;
  transition: all .2s;
}

.pt-hot a:hover { background: #fff; border-color: var(--pt-accent); transform: translateY(-1px); }

/* 右侧数据卡 */
.pt-stat-card {
  padding: 24px 24px 20px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(12, 100, 92, .12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pt-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(31, 157, 144, .25);
}

.pt-stat-head span { font-size: 13px; color: #6a8b84; font-weight: 600; }
.pt-stat-head strong { font-size: 15px; color: var(--pt-primary); }

.pt-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0 20px;
}

.pt-stat-item { text-align: center; }

.pt-stat-item strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  color: var(--pt-primary);
  font-weight: 800;
  letter-spacing: -.5px;
}

.pt-stat-item span { display: block; margin-top: 6px; font-size: 12px; color: #78948e; }

.pt-stat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.pt-btn:hover { transform: translateY(-1px); }

.pt-btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.pt-btn-primary {
  background: linear-gradient(135deg, #0c645c, #1f9d90);
  color: #fff;
  box-shadow: 0 10px 22px rgba(12, 100, 92, .2);
}

.pt-btn-primary:hover { box-shadow: 0 14px 28px rgba(12, 100, 92, .26); }

.pt-btn-ghost {
  background: #fff;
  color: var(--pt-primary);
  border: 1px solid rgba(31, 157, 144, .22);
}

.pt-btn-ghost:hover { border-color: var(--pt-accent); background: var(--pt-soft); }

.pt-btn-danger {
  background: #fff5f2;
  color: #b64a34;
  border: 1px solid #f3d4cb;
}

.pt-btn-danger:hover { background: #ffebe6; }

.pt-btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

.pt-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

/* 流程条 */
.pt-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: #557670;
  font-size: 12.5px;
}

.pt-flow span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(31, 157, 144, .14);
}

.pt-flow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pt-accent);
}

.pt-flow svg { width: 14px; height: 14px; color: #9bb6b0; }

/* ---------- 项目列表 ---------- */
.pt-main { padding: 34px 0 84px; }

.pt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.pt-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(12, 100, 92, .04);
}

.pt-tab {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #617f79;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.pt-tab:hover { color: var(--pt-primary); background: #f3fbf9; }

.pt-tab.is-active {
  background: linear-gradient(135deg, #0c645c, #1f9d90);
  color: #fff;
  box-shadow: 0 6px 14px rgba(12, 100, 92, .2);
}

.pt-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.pt-select-wrap { position: relative; }

.pt-select-wrap svg {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 13px;
  height: 13px;
  transform: translateY(-50%);
  color: #6e918a;
  pointer-events: none;
}

.pt-select {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--pt-line);
  border-radius: 11px;
  background: #fff;
  color: #476b64;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}

.pt-select:focus { border-color: var(--pt-accent); }

.pt-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--pt-line);
  border-radius: 11px;
  background: #fff;
  color: #476b64;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.pt-switch input { position: absolute; opacity: 0; pointer-events: none; }

.pt-switch .track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: #dbeae7;
  transition: background .2s;
  flex: 0 0 auto;
}

.pt-switch .track i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .2s;
}

.pt-switch input:checked + .track { background: linear-gradient(135deg, #1f9d90, #4fc3ad); }
.pt-switch input:checked + .track i { transform: translateX(14px); }

.pt-cat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.pt-cat-chip {
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(31, 157, 144, .18);
  border-radius: 999px;
  background: #fff;
  color: #557a73;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.pt-cat-chip:hover { border-color: var(--pt-accent); transform: translateY(-1px); }

.pt-cat-chip.is-active {
  background: var(--pt-soft);
  border-color: var(--pt-primary-2);
  color: var(--pt-primary);
  box-shadow: 0 4px 12px rgba(12, 100, 92, .08);
}

.pt-result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 16px;
  color: #78948e;
  font-size: 13px;
}

.pt-result-line b { color: var(--pt-primary); }

.pt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(12, 100, 92, .045);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}

.pt-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--pt-primary-2), var(--pt-accent));
  opacity: 0;
  transition: opacity .25s;
}

.pt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 157, 144, .36);
  box-shadow: 0 20px 44px rgba(12, 100, 92, .11);
}

.pt-card:hover::after { opacity: 1; }

.pt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.pt-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--pt-soft);
  color: var(--pt-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}

.pt-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #6c8d86;
  font-weight: 600;
}

.pt-state i { width: 6px; height: 6px; border-radius: 50%; background: #38b99f; }
.pt-state.is-full i, .pt-state.is-closed i { background: #b9c9c5; }
.pt-state.is-draft i { background: #e0a94a; }

.pt-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.48;
  font-weight: 750;
  letter-spacing: -.2px;
}

.pt-card h3 a { color: var(--pt-ink); text-decoration: none; }
.pt-card h3 a:hover { color: var(--pt-primary); }

.pt-card-summary {
  margin: 0 0 16px;
  color: #68857f;
  font-size: 13.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 47px;
}

.pt-card-pay {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 14px;
  color: var(--pt-primary);
}

.pt-card-pay small { font-size: 14px; font-weight: 700; }
.pt-card-pay strong { font-size: 27px; line-height: 1; font-weight: 850; letter-spacing: -.5px; }
.pt-card-pay span { font-size: 12.5px; color: #7f9a94; }

.pt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.pt-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  background: #f7fbfa;
  border: 1px solid #edf6f3;
  color: #688780;
  font-size: 12px;
}

.pt-meta-item svg { width: 12px; height: 12px; color: #6fa79c; }

.pt-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #e6f1ee;
}

.pt-owner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pt-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #0c645c, #4fc3ad);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(12, 100, 92, .18);
}

.pt-owner-name {
  display: block;
  max-width: 115px;
  color: #3c665f;
  font-size: 12.5px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-owner-sub { display: block; color: #91aaa4; font-size: 11px; margin-top: 1px; }

.pt-card-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.pt-my-badge {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.pt-my-badge.pending { background: #fff6e6; color: #a8751f; }
.pt-my-badge.approved { background: #e9f9f2; color: #17765d; }
.pt-my-badge.rejected { background: #fff0ed; color: #b4543f; }

.pt-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1faf7;
  color: var(--pt-primary);
  transition: all .2s;
}

.pt-go svg { width: 14px; height: 14px; }
.pt-card:hover .pt-go { background: linear-gradient(135deg, #0c645c, #1f9d90); color: #fff; }

.pt-card.is-closed, .pt-card.is-draft { opacity: .82; }

/* 骨架 / 空状态 / 加载 */
.pt-skeleton {
  height: 250px;
  border-radius: 20px;
  background: linear-gradient(100deg, #fff 30%, #f1faf7 50%, #fff 70%);
  background-size: 200% 100%;
  animation: ptShine 1.4s infinite;
  border: 1px solid var(--pt-line);
}

@keyframes ptShine { to { background-position: -200% 0; } }

.pt-empty {
  grid-column: 1 / -1;
  padding: 52px 24px;
  background: #fff;
  border: 1px dashed #cfe8e2;
  border-radius: 20px;
  text-align: center;
}

.pt-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pt-soft);
  color: var(--pt-primary);
  margin-bottom: 16px;
}

.pt-empty-icon svg { width: 30px; height: 30px; }

.pt-empty h4 { margin: 0 0 8px; font-size: 17px; color: var(--pt-ink); font-weight: 750; }
.pt-empty p { margin: 0 0 18px; color: #7b9891; font-size: 13.5px; line-height: 1.7; }
.pt-empty .pt-btn { margin: 0 4px; }

.pt-more-wrap { text-align: center; margin-top: 28px; }

.pt-more {
  min-width: 180px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(31, 157, 144, .28);
  background: #fff;
  color: var(--pt-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(12, 100, 92, .06);
  transition: all .2s;
}

.pt-more:hover { background: var(--pt-soft); border-color: var(--pt-primary-2); }

.pt-more[disabled] { opacity: .6; cursor: default; }

/* ---------- 发布 / 编辑 ---------- */
.pt-editor-wrap { padding: 162px 0 90px; }

.pt-editor-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pt-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #5c8078;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.pt-back svg { width: 14px; height: 14px; }
.pt-back:hover { color: var(--pt-primary); }

.pt-editor-head h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--pt-ink);
}

.pt-editor-head p { margin: 0; color: #6f8d86; font-size: 14px; }

.pt-editor-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--pt-line);
  color: #5f827a;
  font-size: 12.5px;
  box-shadow: var(--pt-shadow-sm);
}

.pt-editor-note svg { width: 16px; height: 16px; color: var(--pt-primary-2); flex: 0 0 auto; }

.pt-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  align-items: start;
}

.pt-form-card {
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 22px;
  box-shadow: var(--pt-shadow-sm);
  padding: 8px 26px 26px;
}

.pt-form-section { padding: 22px 0 4px; border-bottom: 1px dashed #e8f2ef; }
.pt-form-section:last-of-type { border-bottom: 0; }

.pt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pt-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--pt-soft);
  color: var(--pt-primary);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.pt-section-title h2 { margin: 0; font-size: 16px; font-weight: 750; color: var(--pt-ink); }
.pt-section-title p { margin: 0 0 0 auto; font-size: 12px; color: #93aca6; }

.pt-field { margin-bottom: 17px; }

.pt-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 650;
  color: #476b64;
}

.pt-label em { font-style: normal; color: #d1765e; margin-left: 1px; }
.pt-label small { color: #9bb2ad; font-size: 11.5px; font-weight: 500; margin-left: auto; }

.pt-input, .pt-textarea, .pt-select-lg {
  width: 100%;
  border: 1px solid #dcece8;
  border-radius: 11px;
  background: #fbfefd;
  color: var(--pt-ink);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.pt-input, .pt-select-lg { height: 44px; padding: 0 14px; }
.pt-select-lg { cursor: pointer; }

.pt-textarea { min-height: 112px; padding: 12px 14px; line-height: 1.75; resize: vertical; }

.pt-input:focus, .pt-textarea:focus, .pt-select-lg:focus {
  border-color: var(--pt-primary-2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(79, 195, 173, .12);
}

.pt-input::placeholder, .pt-textarea::placeholder { color: #a5bbb6; }

.pt-field-help { margin-top: 5px; font-size: 11.5px; color: #9ab1ab; line-height: 1.6; }

.pt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.pt-pay-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pt-money {
  position: relative;
}

.pt-money span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pt-primary);
  font-size: 15px;
  font-weight: 700;
}

.pt-money input { padding-left: 30px; }

.pt-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #e2f0ec;
  border-radius: 11px;
  background: #fbfefd;
}

.pt-switch-card b { display: block; font-size: 13px; color: #476b64; font-weight: 650; }
.pt-switch-card span { display: block; margin-top: 3px; font-size: 11.5px; color: #9ab1ab; }

.pt-editor-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }

.pt-side-card {
  padding: 20px 18px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  box-shadow: var(--pt-shadow-sm);
}

.pt-side-card h3 { margin: 0 0 12px; font-size: 14px; font-weight: 750; color: var(--pt-ink); }

.pt-side-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.pt-side-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #708e87;
  font-size: 12.5px;
  line-height: 1.65;
}

.pt-side-list li svg { width: 14px; height: 14px; flex: 0 0 auto; color: var(--pt-primary-2); margin-top: 2px; }

.pt-side-actions { display: grid; gap: 9px; }

.pt-side-actions .pt-btn { width: 100%; }

.pt-draft-tip {
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2fbf8, #fffaf0);
  border: 1px solid #e2f2ed;
  color: #6f8b85;
  font-size: 12px;
  line-height: 1.7;
}

.pt-form-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.pt-form-foot .pt-btn { min-width: 120px; }

.pt-char { float: right; font-size: 11px; color: #9db3ae; font-weight: 500; }

/* ---------- 详情 ---------- */
.pt-detail-hero {
  padding: 160px 0 34px;
  background:
    radial-gradient(700px 340px at 4% 0%, rgba(79, 195, 173, .2), rgba(79, 195, 173, 0) 68%),
    radial-gradient(620px 300px at 96% 0%, rgba(255, 205, 133, .16), rgba(255, 205, 133, 0) 62%),
    linear-gradient(132deg, #eaf8f3 0%, #f7fcfb 52%, #fffaf1 100%);
  border-bottom: 1px solid rgba(79, 195, 173, .14);
}

.pt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #74938c;
  font-size: 12.5px;
}

.pt-breadcrumb a { color: #5b8179; }
.pt-breadcrumb svg { width: 12px; height: 12px; color: #9bb6b0; }

.pt-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.pt-detail-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 12px; }

.pt-detail-title {
  text-wrap: balance;
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -.8px;
  color: var(--pt-ink);
}

.pt-detail-sub {
  max-width: 690px;
  margin: 0;
  color: #68867f;
  font-size: 14.5px;
  line-height: 1.85;
}

.pt-detail-owner {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #6d8d86;
  font-size: 12.5px;
}

.pt-detail-owner .pt-avatar { width: 30px; height: 30px; font-size: 12px; }
.pt-detail-owner b { color: #3d675f; font-weight: 650; }

.pt-reward-card {
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(31, 157, 144, .18);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(12, 100, 92, .1);
}

.pt-reward-label { font-size: 12px; color: #77958e; font-weight: 600; }

.pt-reward-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 7px 0 14px;
  color: var(--pt-primary);
}

.pt-reward-amount small { font-size: 18px; font-weight: 750; }
.pt-reward-amount strong { font-size: 40px; line-height: 1; font-weight: 850; letter-spacing: -1px; }
.pt-reward-amount span { font-size: 13px; color: #7b9892; }

.pt-reward-progress { margin-bottom: 16px; }

.pt-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 11.5px;
  color: #76938d;
}

.pt-progress-top b { color: var(--pt-primary); font-weight: 750; }

.pt-progress-bar {
  height: 7px;
  border-radius: 999px;
  background: #eaf4f1;
  overflow: hidden;
}

.pt-progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f9d90, #4fc3ad);
  transition: width .4s;
}

.pt-reward-info { display: grid; gap: 8px; margin-bottom: 18px; }

.pt-info-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fcfb;
  font-size: 12.5px;
}

.pt-info-line span { color: #819b95; display: inline-flex; align-items: center; gap: 6px; }
.pt-info-line span svg { width: 13px; height: 13px; color: #6fa79c; }
.pt-info-line b { color: #3e665e; font-weight: 650; text-align: right; }

.pt-reward-actions { display: grid; gap: 9px; }

.pt-reward-actions .pt-btn { width: 100%; height: 46px; font-size: 15px; }

.pt-status-panel {
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.7;
}

.pt-status-panel.pending { background: #fff8ea; border: 1px solid #f3e1bd; color: #92691e; }
.pt-status-panel.approved { background: #eafaf3; border: 1px solid #bfe9d8; color: #176b55; }
.pt-status-panel.rejected { background: #fff1ed; border: 1px solid #f5d4c9; color: #a6503b; }
.pt-status-panel.closed { background: #f3f7f6; border: 1px solid #e1ece9; color: #738c87; }

.pt-content-wrap { padding: 30px 0 90px; }

.pt-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.pt-content-card {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(12, 100, 92, .04);
}

.pt-content-card + .pt-content-card { margin-top: 16px; }

.pt-content-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 750;
  color: var(--pt-ink);
}

.pt-content-card h2::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pt-primary-2), var(--pt-accent));
}

.pt-prose {
  color: #4f6f68;
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
}

.pt-prose strong { color: var(--pt-ink); }

.pt-lock-box {
  position: relative;
  padding: 28px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f2fbf8, #fffaf0);
  border: 1px dashed #cfe7e1;
  text-align: center;
  overflow: hidden;
}

.pt-lock-box::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 173, .22), rgba(79, 195, 173, 0) 68%);
  top: -70px;
  right: -40px;
}

.pt-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  color: var(--pt-primary);
  box-shadow: 0 8px 20px rgba(12, 100, 92, .1);
  margin-bottom: 10px;
}

.pt-lock-icon svg { width: 20px; height: 20px; }

.pt-lock-box h3 { margin: 0 0 7px; font-size: 15px; color: var(--pt-ink); font-weight: 750; }
.pt-lock-box p { max-width: 420px; margin: 0 auto; color: #7a958f; font-size: 12.5px; line-height: 1.75; }

.pt-apply-box {
  margin-top: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 18px;
  box-shadow: var(--pt-shadow-sm);
}

.pt-apply-box h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 750; color: var(--pt-ink); }
.pt-apply-box p { margin: 0 0 12px; font-size: 12.5px; color: #819b95; }

.pt-apply-box textarea { min-height: 86px; margin-bottom: 12px; }

.pt-owner-box {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.pt-owner-box .pt-avatar { width: 42px; height: 42px; font-size: 16px; }
.pt-owner-box b { display: block; font-size: 14px; color: var(--pt-ink); }
.pt-owner-box > div > span { display: block; margin-top: 3px; font-size: 11.5px; color: #8ca6a0; }

.pt-owner-actions { display: grid; gap: 9px; }
.pt-owner-actions .pt-btn { width: 100%; }

.pt-manage-card {
  margin-top: 16px;
  padding: 24px 26px;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 20px;
  box-shadow: var(--pt-shadow-sm);
}

.pt-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pt-manage-head h2 { margin: 0; font-size: 17px; font-weight: 750; color: var(--pt-ink); }
.pt-manage-head span { font-size: 12px; color: #8aa39d; }

.pt-applicant {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px dashed #e8f2ef;
}

.pt-applicant:first-child { border-top: 0; padding-top: 0; }
.pt-applicant .pt-avatar { width: 38px; height: 38px; font-size: 14px; }

.pt-applicant-main { flex: 1 1 auto; min-width: 0; }

.pt-applicant-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.pt-applicant-top b { font-size: 13.5px; color: var(--pt-ink); }

.pt-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
}

.pt-pill.pending { background: #fff5e3; color: #9a6c1c; }
.pt-pill.approved { background: #e9f9f2; color: #17765d; }
.pt-pill.rejected { background: #fff0ed; color: #b4543f; }
.pt-pill.withdrawn { background: #f3f6f5; color: #79918c; }

.pt-applicant-msg { margin: 0 0 7px; color: #708d87; font-size: 12.5px; line-height: 1.7; }

.pt-applicant-note {
  margin: 0 0 7px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #f8fcfb;
  color: #7e9993;
  font-size: 11.5px;
}

.pt-applicant-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 4px; }

.pt-mini-input {
  height: 32px;
  width: 180px;
  max-width: 100%;
  padding: 0 9px;
  border: 1px solid #dfeeea;
  border-radius: 8px;
  font-size: 12px;
  outline: none;
}

.pt-mini-input:focus { border-color: var(--pt-primary-2); }

.pt-worklog {
  padding: 14px 0;
  border-top: 1px dashed #e8f2ef;
}

.pt-worklog:first-child { border-top: 0; padding-top: 0; }

.pt-worklog-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.pt-worklog-top b { font-size: 13px; color: var(--pt-ink); }

.pt-worklog-content { color: #5c7b74; font-size: 13px; line-height: 1.75; white-space: pre-wrap; margin: 0 0 7px; }

.pt-worklog-link { display: inline-flex; align-items: center; gap: 4px; color: var(--pt-primary); font-size: 12px; word-break: break-all; }
.pt-worklog-link svg { width: 12px; height: 12px; flex: 0 0 auto; }

.pt-worklog-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; }

/* Toast */
.pt-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(14, 59, 54, .94);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 18px 40px rgba(14, 59, 54, .25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}

.pt-toast.show { opacity: 1; transform: translate(-50%, 0); }
.pt-toast.err { background: rgba(150, 62, 42, .95); }
.pt-toast svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* 登录引导遮罩（编辑器用） */
.pt-gate {
  max-width: 560px;
  margin: 70px auto;
  padding: 40px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--pt-line);
  border-radius: 22px;
  box-shadow: var(--pt-shadow);
}

.pt-gate-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--pt-soft);
  color: var(--pt-primary);
  margin-bottom: 18px;
}

.pt-gate-icon svg { width: 30px; height: 30px; }
.pt-gate h2 { margin: 0 0 8px; font-size: 22px; font-weight: 750; color: var(--pt-ink); }
.pt-gate p { margin: 0 0 20px; color: #78948e; font-size: 13.5px; line-height: 1.8; }
.pt-gate .pt-btn { min-width: 160px; }

/* 骨架/加载文字 */
.pt-loading {
  grid-column: 1 / -1;
  padding: 30px;
  text-align: center;
  color: #86a19a;
  font-size: 13px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .pt-hero-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .pt-hero h1 { font-size: 40px; }
  .pt-detail-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .pt-editor-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .pt-content-grid { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 991px) {
  .pt-hero-grid { grid-template-columns: 1fr; }
  .pt-stat-card { max-width: 520px; }
  .pt-detail-grid { grid-template-columns: 1fr; }
  .pt-reward-card { max-width: 560px; }
  .pt-editor-layout { grid-template-columns: 1fr; }
  .pt-editor-side { position: static; }
  .pt-content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .pt-container { width: calc(100% - 28px); }
  .pt-hero { padding: 104px 0 28px; }
  .pt-hero h1 { font-size: 29px; letter-spacing: -.5px; margin: 15px 0 10px; }
  .pt-hero-sub { font-size: 13.5px; line-height: 1.75; margin-bottom: 19px; }
  .pt-eyebrow { font-size: 11.5px; padding: 6px 12px 6px 9px; }
  .pt-search { padding: 6px 6px 6px 13px; border-radius: 14px; }
  .pt-search input { height: 38px; font-size: 13.5px; }
  .pt-search button { height: 38px; padding: 0 15px; font-size: 13px; border-radius: 10px; }
  .pt-hot { font-size: 11.5px; gap: 6px; }
  .pt-flow { font-size: 11px; gap: 6px; }
  .pt-stat-card { padding: 16px; border-radius: 18px; }
  .pt-stat-grid { padding: 13px 0 15px; gap: 6px; }
  .pt-stat-item strong { font-size: 20px; }
  .pt-stat-item span { font-size: 10.5px; }
  .pt-stat-actions .pt-btn { height: 38px; font-size: 12.5px; padding: 0 8px; }
  .pt-main { padding: 22px 0 60px; }
  .pt-toolbar { gap: 10px; margin-bottom: 16px; align-items: flex-start; flex-direction: column; }
  .pt-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .pt-tab { flex: 0 0 auto; padding: 0 12px; font-size: 12.5px; height: 33px; }
  .pt-filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .pt-switch { justify-content: center; height: 38px; }
  .pt-select { width: 100%; height: 38px; }
  .pt-cat-chips { flex-wrap: wrap; padding-bottom: 0; margin-bottom: 14px; }
  .pt-cat-chip { height: 31px; font-size: 12px; }
  .pt-grid { grid-template-columns: 1fr; gap: 13px; }
  .pt-card { padding: 18px 17px 15px; border-radius: 17px; }
  .pt-card h3 { font-size: 17.5px; }
  .pt-card-summary { font-size: 12.5px; min-height: 44px; margin-bottom: 12px; }
  .pt-card-pay strong { font-size: 24px; }
  .pt-card-meta { margin-bottom: 14px; }
  .pt-card-foot { padding-top: 12px; }
  .pt-owner-name { max-width: 110px; }
  .pt-result-line { font-size: 11.5px; }
  .pt-more { width: 100%; }
  .pt-editor-wrap { padding: 104px 0 60px; }
  .pt-editor-head h1 { font-size: 27px; }
  .pt-editor-head p { font-size: 12.5px; }
  .pt-editor-note { display: none; }
  .pt-form-card { padding: 2px 17px 18px; border-radius: 18px; }
  .pt-form-section { padding: 18px 0 2px; }
  .pt-section-title h2 { font-size: 14.5px; }
  .pt-section-title p { display: none; }
  .pt-row, .pt-row-3 { grid-template-columns: 1fr; gap: 0; }
  .pt-editor-side { gap: 11px; }
  .pt-form-foot { position: sticky; bottom: 0; z-index: 20; margin: 18px -17px -18px; padding: 12px 17px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--pt-line); justify-content: space-between; }
  .pt-form-foot .pt-btn { flex: 1 1 0; min-width: 0; }
  .pt-detail-hero { padding: 100px 0 22px; }
  .pt-detail-title { font-size: 27px; }
  .pt-detail-sub { font-size: 13px; }
  .pt-detail-title-row { margin-bottom: 8px; }
  .pt-reward-card { padding: 18px; border-radius: 18px; }
  .pt-reward-amount strong { font-size: 32px; }
  .pt-reward-actions .pt-btn { height: 43px; }
  .pt-content-wrap { padding: 20px 0 60px; }
  .pt-content-card { padding: 19px 18px; border-radius: 17px; }
  .pt-content-card h2 { font-size: 15px; margin-bottom: 13px; }
  .pt-prose { font-size: 13px; line-height: 1.85; }
  .pt-lock-box { padding: 24px 18px; }
  .pt-apply-box { padding: 16px; }
  .pt-manage-card { padding: 18px 17px; border-radius: 17px; }
  .pt-applicant { gap: 9px; }
  .pt-applicant .pt-avatar { width: 32px; height: 32px; font-size: 12px; }
  .pt-applicant-actions { width: 100%; }
  .pt-mini-input { width: 100%; }
  .pt-applicant-actions .pt-btn { flex: 1 1 auto; }
  .pt-gate { margin: 40px auto; padding: 30px 22px; }
  .pt-gate h2 { font-size: 19px; }
  .pt-toast { bottom: 18px; font-size: 12.5px; }
}

@media (max-width: 420px) {
  .pt-hero h1 { font-size: 26px; }
  .pt-stat-actions { grid-template-columns: 1fr; }
  .pt-detail-title { font-size: 24px; }
}

/* 桌面三列：提高项目浏览密度，卡片等高等距 */
@media (min-width: 1200px) {
  .pt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pt-card { padding: 20px 19px 16px; }
  .pt-card h3 {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pt-card-summary { -webkit-line-clamp: 2; min-height: 47px; margin-bottom: 14px; }
  .pt-card-pay strong { font-size: 25px; }
  .pt-card-meta { gap: 6px; margin-bottom: 16px; }
  .pt-skeleton { height: 300px; }
}

/* 详情页排版：项目核心信息前置，右侧报价卡收紧 */
.pt-detail-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 20px;
}
.pt-spec {
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .64);
  border: 1px solid rgba(31, 157, 144, .15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pt-spec span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7d9993;
  font-size: 11px;
  line-height: 1.3;
}
.pt-spec span svg { width: 12px; height: 12px; color: #6fa79c; flex: 0 0 auto; }
.pt-spec b {
  display: block;
  margin-top: 4px;
  color: #315e56;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pt-detail-side { display: flex; flex-direction: column; gap: 14px; }
.pt-detail-side .pt-owner-box { margin-bottom: 0; }
.pt-detail-side .pt-content-card + .pt-content-card { margin-top: 0; }
.pt-apply-box {
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfb 100%);
  border-color: rgba(31, 157, 144, .2);
}
@media only screen and (min-width: 992px) {
  .pt-detail-hero { padding-top: 112px; padding-bottom: 30px; }
  .pt-detail-grid { grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; }
  .pt-detail-side { position: sticky; top: 96px; }
  .pt-content-wrap { padding-top: 24px; }
}
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .pt-detail-hero { padding-top: 108px; padding-bottom: 24px; }
}
@media only screen and (max-width: 767px) {
  .pt-detail-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .pt-spec { padding: 10px 11px; }
  .pt-spec b { white-space: normal; }
  .pt-detail-side { display: block; }
  .pt-detail-side .pt-content-card + .pt-content-card { margin-top: 16px; }
}
