/* ============ 巧手兼职网 · 前台样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #ff6b35;
  --primary-dark: #e8541f;
  --primary-light: #fff1ea;
  --text: #2d2d2d;
  --text-2: #666;
  --text-3: #999;
  --bg: #f7f8fa;
  --card: #fff;
  --border: #eee;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 顶部导航 ---------- */
.topbar { background: linear-gradient(135deg, #ff6b35, #ff9558); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.logo .logo-icon { font-size: 28px; }
.logo small { font-size: 12px; font-weight: 400; opacity: .9; margin-top: 8px; }
.top-contact { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.top-contact .hotline { font-size: 17px; font-weight: 700; }

/* ---------- 公告条 ---------- */
.notice-bar {
  background: #fff8f0; border-bottom: 1px solid #ffe8d2; color: #d46b08;
  padding: 8px 0; font-size: 13px; overflow: hidden;
}
.notice-bar .container { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.notice-text { overflow: hidden; text-overflow: ellipsis; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #ff6b35 0%, #ff9558 60%, #ffb347 100%);
  color: #fff; padding: 44px 0 54px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18) 0, transparent 40%),
              radial-gradient(circle at 15% 80%, rgba(255,255,255,.12) 0, transparent 35%);
}
.hero h1 { font-size: 34px; letter-spacing: 2px; position: relative; z-index: 1; }
.hero p { margin-top: 10px; font-size: 15px; opacity: .95; position: relative; z-index: 1; }
.hero .search-box {
  position: relative; z-index: 1; margin: 26px auto 0; max-width: 560px; display: flex;
  background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hero .search-box input { flex: 1; border: 0; outline: 0; padding: 0 22px; font-size: 15px; color: var(--text); }
.hero .search-box button {
  border: 0; background: var(--primary); color: #fff; padding: 14px 32px; font-size: 15px; font-weight: 600;
}
.hero .search-box button:hover { background: var(--primary-dark); }
.hero-stats { position: relative; z-index: 1; display: flex; justify-content: center; gap: 48px; margin-top: 30px; }
.hero-stats b { font-size: 24px; display: block; }
.hero-stats span { font-size: 12px; opacity: .9; }

/* ---------- 保障条 ---------- */
.assurance { background: #fff; border-bottom: 1px solid var(--border); }
.assurance .container { display: flex; justify-content: space-between; padding: 18px 16px; flex-wrap: wrap; gap: 10px; }
.assurance-item { display: flex; align-items: center; gap: 10px; }
.assurance-item .ic { font-size: 26px; }
.assurance-item b { font-size: 14px; display: block; }
.assurance-item span { font-size: 12px; color: var(--text-3); }

/* ---------- 分类 ---------- */
.section { padding: 28px 0 8px; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-title h2 { font-size: 22px; }
.section-title span { color: var(--text-3); font-size: 13px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cat-tab {
  padding: 8px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; color: var(--text-2); transition: all .15s;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ---------- 任务卡片 ---------- */
.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.task-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s; position: relative;
}
.task-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.task-cover { position: relative; aspect-ratio: 16/9; background: #f2f2f2; }
.task-cover img { width: 100%; height: 100%; object-fit: cover; }
.hot-badge {
  position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg,#ff4d4f,#ff7a45);
  color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.task-body { padding: 14px 16px 16px; }
.task-title { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px; }
.task-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.task-meta .settle-tag { background: var(--primary-light); color: var(--primary); padding: 1px 8px; border-radius: 4px; }
.task-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.task-tags em { font-style: normal; font-size: 11px; color: #52a755; background: #f0f9eb; padding: 2px 8px; border-radius: 4px; }
.task-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.task-price { color: #ff4d4f; font-weight: 700; font-size: 20px; }
.task-price small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.task-apply-btn {
  background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: 7px 18px; font-size: 13px;
}
.task-apply-btn:hover { background: var(--primary-dark); }
.empty-tip { grid-column: 1/-1; text-align: center; color: var(--text-3); padding: 60px 0; font-size: 15px; }

/* ---------- 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 26px 0; }
.pagination button {
  min-width: 36px; height: 36px; border: 1px solid var(--border); background: #fff; border-radius: 8px; font-size: 13px;
}
.pagination button.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 10px; }
.step-item { background: #fff; border-radius: var(--radius); padding: 22px 18px; text-align: center; box-shadow: var(--shadow); position: relative; }
.step-item .num {
  width: 34px; height: 34px; margin: 0 auto 10px; background: var(--primary-light); color: var(--primary);
  font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.step-item b { display: block; margin-bottom: 4px; }
.step-item span { font-size: 12px; color: var(--text-3); }

/* ---------- 详情页 ---------- */
.breadcrumb { padding: 16px 0 0; color: var(--text-3); font-size: 13px; }
.breadcrumb a:hover { color: var(--primary); }
.detail-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 18px; margin: 16px auto 30px; align-items: start; }
.detail-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.detail-head { padding: 24px 26px 20px; border-bottom: 1px solid var(--border); }
.detail-head h1 { font-size: 22px; line-height: 1.4; }
.detail-attrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.detail-attr { background: var(--bg); border-radius: 10px; padding: 12px; text-align: center; }
.detail-attr b { display: block; font-size: 16px; color: var(--primary); }
.detail-attr.price b { color: #ff4d4f; font-size: 20px; }
.detail-attr span { font-size: 12px; color: var(--text-3); }
.detail-section { padding: 22px 26px; border-bottom: 1px solid var(--border); }
.detail-section:last-child { border-bottom: 0; }
.detail-section h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.detail-section h3::before { content: ''; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; }
.detail-section p { color: var(--text-2); white-space: pre-wrap; }
.detail-cover-lg { border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.detail-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.side-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.side-card h3 { font-size: 16px; margin-bottom: 14px; }
.apply-form input, .apply-form textarea {
  width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: 14px;
  font-family: inherit; outline: none; margin-bottom: 10px;
}
.apply-form input:focus, .apply-form textarea:focus { border-color: var(--primary); }
.btn-primary {
  width: 100%; background: linear-gradient(135deg, #ff6b35, #ff9558); color: #fff; border: 0; border-radius: 999px;
  padding: 12px; font-size: 15px; font-weight: 600;
}
.btn-primary:hover { filter: brightness(.96); }
.btn-outline {
  width: 100%; background: #fff; color: var(--primary); border: 1px solid var(--primary);
  border-radius: 999px; padding: 11px; font-size: 15px; margin-top: 10px;
}
.btn-outline:hover { background: var(--primary-light); }
.side-tips { font-size: 12px; color: var(--text-3); line-height: 1.8; }
.side-tips b { color: #52a755; }

/* ---------- 页脚 ---------- */
.footer { background: #2b2b33; color: #a9a9b3; margin-top: 30px; padding: 34px 0 24px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer p { line-height: 2; }
.footer-bottom { border-top: 1px solid #3d3d47; margin-top: 24px; padding-top: 16px; text-align: center; color: #77777f; font-size: 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: 18%; transform: translateX(-50%); background: rgba(0,0,0,.78); color: #fff;
  padding: 11px 22px; border-radius: 10px; font-size: 14px; z-index: 99999; opacity: 0; transition: opacity .25s; pointer-events: none;
  max-width: 80vw;
}
.toast.show { opacity: 1; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 .big { font-size: 90px; }
.page-404 h1 { font-size: 22px; margin: 10px 0; }

@media (max-width: 900px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .detail-attrs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 26px; }
  .top-contact { display: none; }
  .assurance .container { justify-content: flex-start; }
}
