/* 枫乔任务协同官网 · 全站样式（无外部依赖，字体走系统栈） */
:root {
  --brand: #143d36;        /* 深绿主色（与小程序/后台一致） */
  --brand-2: #0aa889;      /* 亮绿强调 */
  --ink: #1f2b28;          /* 正文 */
  --ink-2: #5d6b66;        /* 次级文字 */
  --line: #e3e9e6;         /* 分隔线 */
  --bg: #f6f7f9;           /* 浅底 */
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 61, 54, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 15px;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; height: 64px; gap: 28px; }
.nav .logo { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 700; font-size: 17px; }
.nav .logo svg { width: 30px; height: 30px; }
.nav .links { display: flex; gap: 22px; margin-left: auto; }
.nav .links a { color: var(--ink-2); font-size: 14.5px; }
.nav .links a:hover { color: var(--brand); text-decoration: none; }
.nav .links a.active { color: var(--brand); font-weight: 600; }
.nav .btn-mini {
  background: var(--brand-2); color: #fff; padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.nav .btn-mini:hover { background: #08927a; text-decoration: none; }
#nav-auth { display: flex; align-items: center; gap: 22px; }
#nav-auth a { color: var(--ink-2); font-size: 14.5px; }
#nav-auth a:hover { color: var(--brand); text-decoration: none; }
#nav-auth a.active { color: var(--brand); font-weight: 600; }

/* 顶部登录下拉三选（悬停 + 点击均可触发） */
.nav-menu { position: relative; }
.nav-menu > a { cursor: pointer; }
.nav-menu > a::after { content: " ▾"; font-size: 11px; color: #98a5a0; }
.nav-menu .menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20,61,54,.14); padding: 6px; min-width: 150px; z-index: 99;
}
.nav-menu:hover .menu, .nav-menu:focus-within .menu, .nav-menu.open .menu { display: block; }
.nav-menu .menu a { display: block; padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.nav-menu .menu a:hover { background: var(--bg); color: var(--brand); }
.nav-menu .menu .sep { border-top: 1px solid var(--line); margin: 4px 8px; }

/* 任务市场筛选栏 */
.market-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; align-items: center; max-width: 760px; margin: 0 auto 34px; }
.market-filters input, .market-filters select {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); width: 100%;
}
.market-filters input:focus, .market-filters select:focus { outline: 2px solid rgba(10,168,137,.35); border-color: var(--brand-2); }

/* ===== 移动端适配 ===== */
.nav-toggle { display: none; border: 0; background: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 860px) {
  .container { padding: 0 16px; }
  .nav { gap: 10px; }
  .nav .logo { order: 1; font-size: 15px; }
  #nav-auth { order: 2; margin-left: auto; gap: 12px; }
  .nav-toggle { display: block; order: 3; }
  .nav .links { display: none; }
  body.nav-open .nav .links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(20,61,54,.12);
    padding: 6px 16px 12px;
  }
  body.nav-open .nav .links a { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  body.nav-open .nav .links a:last-child { border-bottom: 0; }

  .hero { padding: 48px 0 58px; }
  .hero h1 { font-size: 25px; }
  .hero p.sub { font-size: 15px; }
  .hero .actions .btn { display: block; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero .actions { gap: 12px; }

  .section { padding: 44px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 22px; }
  .section-head p { font-size: 14px; }
  .card, .step { padding: 18px 16px; }

  .stats { gap: 18px 26px; }
  .stats .num { font-size: 23px; }
  .stats .lbl { font-size: 12.5px; }

  .market-filters { grid-template-columns: 1fr 1fr; }
  .market-filters input { grid-column: 1 / -1; }
  .market-filters button { grid-column: 1 / -1; }

  .detail { padding: 20px 16px; }
  .detail h1, .detail > h1 { font-size: 20px !important; }
  .detail .pay { font-size: 22px; }
  .license-box { padding: 16px; }
  .license-box img { width: 100%; }
  .info-rows { grid-template-columns: 1fr; }

  .news-item { gap: 12px; padding: 16px; }
  .news-item .date { display: none; }
  .form { max-width: 100%; }

  .biz-tabs button { padding: 8px 14px; font-size: 13px; }
  .biz-table th, .biz-table td { padding: 9px 8px; font-size: 12.5px; }
  .steps { gap: 16px; }
  .step::before { top: -12px; }
}

/* ===== 表单 ===== */
.form { max-width: 420px; margin: 0 auto; }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 6px; }
.form input, .form select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
.form input:focus, .form select:focus { outline: 2px solid rgba(10,168,137,.35); border-color: var(--brand-2); }
.form .btn-full { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.form .hint { font-size: 12.5px; color: #98a5a0; margin-top: 6px; }
.form .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.form .agree input { width: auto; margin-top: 3px; }
.alert { max-width: 420px; margin: 0 auto 16px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; display: none; }
.alert.error { display: block; background: #fdeeea; color: #b3402a; border: 1px solid #f5c9bd; }
.alert.ok { display: block; background: #e7f6f1; color: #146c5a; border: 1px solid #bfe8dc; }
.alert.info { display: block; background: #eef3fb; color: #3a62b3; border: 1px solid #ccd9f2; }

/* 任务详情 */
.detail { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.detail .pay { font-size: 26px; font-weight: 700; color: #e8743a; margin: 6px 0 2px; }
.detail .pay small { font-size: 14px; color: var(--ink-2); font-weight: 400; }
.detail .org { color: var(--ink-2); font-size: 13.5px; margin-bottom: 18px; }
.detail .desc { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.detail .facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 22px 0; }
@media (max-width: 700px) { .detail .facts { grid-template-columns: repeat(2,1fr); } }
.detail .fact { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.detail .fact .k { font-size: 12px; color: #98a5a0; margin-bottom: 4px; }
.detail .fact .v { font-size: 14.5px; font-weight: 600; color: var(--brand); }
.status-chip { display:inline-block; font-size:12.5px; border-radius:999px; padding:2px 12px; }
.status-chip.SUBMITTED { background:#eef3fb; color:#3a62b3; }
.status-chip.APPROVED { background:#e7f6f1; color:#146c5a; }
.status-chip.REJECTED { background:#fdeeea; color:#b3402a; }
.status-chip.CANCELLED { background:#f2f3f5; color:#8a93a1; }

/* ===== 首页 Hero ===== */
.hero { background: linear-gradient(160deg, #12332d 0%, var(--brand) 55%, #1c4f45 100%); color: #fff; padding: 84px 0 96px; }
.hero .tag { display: inline-block; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 14px; font-size: 13px; letter-spacing: 2px; margin-bottom: 22px; color: #cfeee4; }
.hero h1 { font-size: 40px; line-height: 1.35; font-weight: 700; margin-bottom: 16px; }
.hero p.sub { color: #bcd9d0; font-size: 17px; max-width: 640px; margin: 0 auto 34px; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 12px 34px; border-radius: 999px; font-size: 15.5px; font-weight: 600; }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: #08927a; text-decoration: none; }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }

/* ===== 通用区块 ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .kicker { color: var(--brand-2); font-size: 13.5px; letter-spacing: 3px; font-weight: 700; }
.section-head h2 { font-size: 28px; margin: 8px 0 10px; color: var(--brand); }
.section-head p { color: var(--ink-2); max-width: 620px; margin: 0 auto; }

.grid { display: grid; gap: 22px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.c4, .grid.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid.c4, .grid.c3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card .icon { width: 46px; height: 46px; border-radius: 12px; background: #e7f6f1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 17px; margin-bottom: 8px; color: var(--brand); }
.card p { color: var(--ink-2); font-size: 14px; }

/* ===== 数据条 ===== */
.stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; padding: 8px 0 4px; }
.stats .item { text-align: center; }
.stats .num { font-size: 30px; font-weight: 700; color: var(--brand-2); }
.stats .lbl { color: var(--ink-2); font-size: 13.5px; }

/* ===== 流程步骤 ===== */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 20px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -14px; left: 20px; background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; border-radius: 8px; padding: 2px 10px;
}
.step h3 { font-size: 16.5px; color: var(--brand); margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 13.8px; }
.step .who { margin-top: 10px; display: inline-block; font-size: 12px; color: var(--brand-2); background: #e7f6f1; border-radius: 999px; padding: 2px 10px; }

/* ===== 任务市场 ===== */
.task-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.task-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.task-card h3 { font-size: 16px; color: var(--brand); }
.task-card .pay { color: #e8743a; font-weight: 700; white-space: nowrap; font-size: 15px; }
.task-card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.chip.on { color: var(--brand-2); background: #e7f6f1; border-color: #bfe8dc; }
.task-card p.desc { color: var(--ink-2); font-size: 13.8px; }
.note { text-align: center; color: #98a5a0; font-size: 12.5px; margin-top: 26px; }

/* ===== 资讯 ===== */
.news-list { display: grid; gap: 18px; }
.news-item {
  display: flex; gap: 18px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; cursor: pointer;
}
.news-item:hover { border-color: var(--brand-2); }
.news-item .date { color: #98a5a0; font-size: 13px; white-space: nowrap; padding-top: 3px; }
.news-item h3 { font-size: 16px; color: var(--brand); margin-bottom: 6px; }
.news-item p { color: var(--ink-2); font-size: 13.8px; }
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: 26px; color: var(--brand); margin-bottom: 10px; }
.article .meta { color: #98a5a0; font-size: 13.5px; margin-bottom: 28px; }
.article h2 { font-size: 19px; color: var(--brand); margin: 30px 0 12px; }
.article p { margin-bottom: 14px; color: #2c3a36; }
.article ul, .article ol { margin: 0 0 14px 22px; }
.article li { margin-bottom: 8px; color: #2c3a36; }

/* ===== 联系/关于 ===== */
.info-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 700px) { .info-rows { grid-template-columns: 1fr; } }
.info-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-row .k { color: #98a5a0; font-size: 13px; margin-bottom: 6px; }
.info-row .v { color: var(--ink); font-size: 15.5px; font-weight: 600; word-break: break-all; }

.license-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.license-box img { width: 300px; border: 1px solid var(--line); border-radius: 10px; }
.license-box table { border-collapse: collapse; }
.license-box td { padding: 6px 14px 6px 0; font-size: 14.5px; }
.license-box td.k { color: #98a5a0; white-space: nowrap; }

/* ===== 协议长文 ===== */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 24px; color: var(--brand); margin-bottom: 6px; }
.legal .upd { color: #98a5a0; font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 17.5px; color: var(--brand); margin: 26px 0 10px; }
.legal p, .legal li { color: #2c3a36; font-size: 14.5px; margin-bottom: 10px; }
.legal ol, .legal ul { margin: 0 0 12px 22px; }

/* ===== 页脚 ===== */
.site-footer { background: #102a25; color: #9db8b0; padding: 52px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #e6f2ee; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #9db8b0; display: block; margin-bottom: 8px; font-size: 13.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 12px; }
.site-footer .brand svg { width: 28px; height: 28px; }
.site-footer p { font-size: 13px; }
.copyright { border-top: 1px solid #24443c; padding-top: 22px; text-align: center; font-size: 12.5px; color: #7a968e; }
.copyright a { display: inline; color: #7a968e; }
.copyright a:hover { color: #fff; }
