/* ============================================================
   职巢鸟 C 端 · 浅绿风格主题（参考 ref/功能同步1/tongbu1-4.jpg）
   在 theme-light/theme-dark 之后加载，强制 C 端为浅绿亮色风。
   ============================================================ */

:root, :root[data-theme="dark"], :root[data-theme="light"] {
    --primary: #00b578;
    --primary-light: #00b578;
    --primary-dark: #009d68;
    --accent: #00b578;
    --secondary: #00b578;   /* 原品牌橙，绿色改版后统一为主绿 */
    --danger: #fa5151;
    --price-red: #ff4d2e;

    --bg-dark: #f5f6f8;
    --bg-primary: #f5f6f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f6f7;
    --bg-card: #ffffff;
    --bg-elevated: #f5f6f7;
    --border-color: #ececec;

    --text-primary: #1a1a1a;
    --text-secondary: #4b4b4b;
    --text-muted: #9b9b9b;

    --gradient-1: linear-gradient(135deg, #00b578 0%, #00c98d 100%);
    --gradient-2: linear-gradient(135deg, #00b578 0%, #2fd39b 100%);
    --gradient-primary: linear-gradient(135deg, #00b578 0%, #00c98d 100%);  /* 登录页按钮，覆盖 theme-light 的橙 */
}

body { background: #f5f6f8; color: var(--text-primary); }

/* 顶部浅绿渐变（整个 app 容器顶部铺底） */
.app-container {
    background: linear-gradient(180deg, #d9f4e6 0%, #eaf8f0 120px, #f5f6f8 240px);
    min-height: 100vh;
}

/* 通用 header 条改亮色 */
.header {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
    border-bottom: none;
}
.header-title { color: var(--text-primary); font-weight: 700; }
.header-btn { color: var(--text-primary); }

.card { background: #fff; box-shadow: 0 2px 10px rgba(17, 68, 45, 0.04); }

/* ---------------- tongbu1 · 首页（列表） ---------------- */

.gh-top {
    padding: 14px 16px 0;
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(180deg, #d9f4e6 0%, #e3f6ec 100%);
}
.gh-locrow { display: flex; align-items: center; gap: 10px; }
.gh-loc {
    display: flex; align-items: center; gap: 4px;
    font-size: 18px; font-weight: 800; color: #111;
    white-space: nowrap; max-width: 40%; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer; flex-shrink: 0;
}
.gh-loc .caret { font-size: 11px; color: #111; }
.gh-search {
    flex: 1; display: flex; align-items: center; gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px; padding: 9px 12px;
}
.gh-search svg { flex-shrink: 0; }
.gh-search input {
    flex: 1; border: none; outline: none; background: transparent;
    font-size: 14px; color: #333; min-width: 0;
}
.gh-search input::placeholder { color: #aeb5b1; }

.gh-tabs {
    display: flex; align-items: center; gap: 22px;
    padding: 12px 2px 0;
}
.gh-tab {
    font-size: 16px; color: #6b7570; padding-bottom: 9px; position: relative; cursor: pointer;
}
.gh-tab.active { color: #111; font-weight: 800; }
.gh-tab.active::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    bottom: 4px; width: 20px; height: 4px; border-radius: 4px; background: var(--primary);
}

/* 列表区圆角白底从渐变里"长出来" */
.gh-sheet {
    background: #f5f6f8;
    border-radius: 14px 14px 0 0;
    padding: 0 12px 90px;
    min-height: 60vh;
}

/* 筛选 chips 行 */
.gh-filters {
    display: flex; align-items: center; gap: 16px;
    overflow-x: auto; padding: 12px 4px 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gh-filters::-webkit-scrollbar { display: none; }
.gh-filter {
    font-size: 13px; color: #6b7570; white-space: nowrap; cursor: pointer; flex-shrink: 0;
}
.gh-filter .caret { font-size: 9px; color: #9b9b9b; margin-left: 1px; }
.gh-sortsel {
    -webkit-appearance: none; appearance: none;
    border: none; background: transparent; color: #6b7570;
    font-size: 13px; cursor: pointer; padding-right: 2px; flex-shrink: 0;
}

/* 岗位卡 */
.gjob-card {
    background: #fff; border-radius: 14px; padding: 14px 14px 12px;
    margin-bottom: 12px; box-shadow: 0 2px 10px rgba(17, 68, 45, 0.05);
    cursor: pointer;
}
.gjob-head { display: flex; align-items: flex-start; gap: 10px; }
.gjob-title {
    flex: 1; font-size: 17px; font-weight: 800; color: #111; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gjob-title .sep { color: #d4d7d5; font-weight: 400; margin: 0 3px; }
.gjob-logo {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: #f2f4f3; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 700; color: var(--primary);
    border: 1px solid #f0f0f0;
}
.gjob-logo img { width: 100%; height: 100%; object-fit: contain; }
.gjob-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.gtag {
    font-size: 11px; color: #6b7570; background: #fff;
    border: 1px solid #e8eae9; border-radius: 4px; padding: 2px 6px;
}
.gtag.green { color: var(--primary); border-color: rgba(0, 181, 120, .45); background: #ecfaf4; font-weight: 600; }
.gjob-gold { font-size: 12px; color: #b07b28; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.gjob-addr {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 8px; font-size: 12px; color: #8a918d; gap: 10px;
}
.gjob-addr .left { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gjob-addr .right { flex-shrink: 0; color: #6b7570; }
.gjob-shift {
    margin-top: 10px; background: #f7f8f9; border-radius: 10px; padding: 12px 12px 10px;
}
.gjob-shift-date { font-size: 15px; font-weight: 800; color: #111; }
.gjob-shift-row {
    display: flex; justify-content: space-between; align-items: flex-end; margin-top: 6px;
}
.gjob-price { font-size: 20px; font-weight: 800; color: var(--price-red); }
.gjob-price .unit { font-size: 12px; font-weight: 500; color: #8a918d; }
.gjob-head-count { font-size: 12px; color: #9b9b9b; display: flex; align-items: center; gap: 3px; }

/* ---------------- tongbu2/3 · 岗位详情 ---------------- */

.gd-wrap { padding-bottom: 86px; }
.gd-banner {
    height: 168px; position: relative;
    background: linear-gradient(135deg, #0a8f63 0%, #00b578 55%, #35d19a 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.gd-banner .b-logo {
    width: 64px; height: 64px; border-radius: 14px; background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.gd-banner .b-logo img { width: 100%; height: 100%; object-fit: contain; }
.gd-banner .b-title { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: 2px; text-shadow: 0 2px 6px rgba(0,0,0,.2); }
.gd-banner .b-page { position: absolute; top: 10px; right: 12px; background: rgba(0,0,0,.28); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.gd-back {
    position: absolute; top: 10px; left: 12px; width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0, 0, 0, .28); color: #fff; border: none; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.gd-card { background: #fff; margin: 0 0 10px; padding: 16px; }
.gd-card.rounded { border-radius: 14px; margin: 10px 12px; box-shadow: 0 2px 10px rgba(17,68,45,.04); }

.gd-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gd-title { font-size: 19px; font-weight: 800; color: #111; line-height: 1.35; }
.gd-lvy {
    flex-shrink: 0; font-size: 11px; font-weight: 700; color: #8a5a00;
    background: linear-gradient(135deg, #ffe7b0, #ffd77e); border-radius: 10px; padding: 3px 9px;
    display: flex; align-items: center; gap: 3px;
}
.gd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.gd-loc {
    margin-top: 14px; background: #f2f6f9; border-radius: 12px; padding: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.gd-loc .l-name { font-size: 16px; font-weight: 800; color: #111; }
.gd-loc .l-sub { font-size: 12px; color: #8a918d; margin-top: 3px; }
.gd-loc .l-pin {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: #111;
    display: flex; align-items: center; justify-content: center; cursor: pointer; border: none;
}
.gd-sat { margin-top: 11px; font-size: 12px; color: #d97a1e; display: flex; align-items: center; gap: 5px; }

.gd-ins {
    margin: 0 0 10px; background: #e4f7ef; padding: 11px 14px;
    display: flex; align-items: center; gap: 8px; font-size: 13px; color: #234134; cursor: pointer;
}
.gd-ins .badge { background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 5px; flex-shrink: 0; }
.gd-ins .chev { margin-left: auto; color: #6b7570; }

.gd-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.gd-sec-title { font-size: 17px; font-weight: 800; color: #111; }
.gd-sec-more { font-size: 12px; color: #9b9b9b; }
.gd-req { font-size: 12px; color: #6f8c7f; display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.gd-shift-card {
    display: inline-block; min-width: 148px; background: #fff; border-radius: 12px; padding: 13px 14px;
    box-shadow: 0 2px 12px rgba(17, 68, 45, .08); border: 1px solid #f0f2f1;
}
.gd-shift-card .d { font-size: 15px; font-weight: 800; color: #111; }
.gd-shift-card .t { font-size: 12px; color: #4b4b4b; margin-top: 3px; }
.gd-shift-card .h { font-size: 12px; color: #9b9b9b; margin-top: 2px; }
.gd-shift-card .p { font-size: 17px; font-weight: 800; color: var(--price-red); margin-top: 7px; }

.gd-rev-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.gd-rev-chips::-webkit-scrollbar { display: none; }
.gd-rev-chip {
    flex-shrink: 0; font-size: 12px; color: #4b4b4b; background: #fff;
    border: 1px solid #e8eae9; border-radius: 8px; padding: 6px 10px;
}
.gd-rev-chip b { color: #9b9b9b; font-weight: 500; margin-left: 3px; }
.gd-review { background: #fff; border: 1px solid #f0f2f1; border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; }
.gd-review .txt { font-size: 14px; color: #222; line-height: 1.6; }
.gd-review .meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; color: #9b9b9b; }
.gd-review .meta .ava {
    width: 20px; height: 20px; border-radius: 50%; background: #e8f5ef; color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.gd-review .meta .cnt { color: var(--primary); }
.gd-review .meta .views { margin-left: auto; }
.gd-review .stars { color: #f59e0b; font-size: 13px; }

.gd-content { font-size: 14px; color: #333; line-height: 1.75; white-space: pre-wrap; }
.gd-content h5 { font-size: 14px; color: #111; margin: 12px 0 4px; }

.gd-bottom {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
    max-width: 430px; margin: 0 auto;
}
.gd-sub { text-align: center; font-size: 11px; color: #4b4b4b; cursor: pointer; flex-shrink: 0; line-height: 1.2; }
.gd-sub .h { font-size: 22px; color: var(--primary); display: block; }
.gd-sub.on .h { color: #fa5151; }
.gd-apply {
    flex: 1; background: var(--primary); color: #fff; border: none; border-radius: 12px;
    font-size: 17px; font-weight: 700; padding: 14px; cursor: pointer;
}
.gd-apply.cancel { background: #fa5151; }
.gd-apply:disabled { opacity: .6; }

/* ---------------- 底部导航（5 tab，绿色风） ---------------- */
.bottom-nav {
    background: #fff; border-top: 1px solid #f0f0f0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .04);
}
.bottom-nav .nav-item { color: #9b9b9b; font-size: 11px; }
.bottom-nav .nav-item.active { color: var(--primary); font-weight: 700; }
.bottom-nav .nav-item svg { display: block; margin: 0 auto 2px; }
.bottom-nav .nav-item svg .ln { stroke: #b8beba; }
.bottom-nav .nav-item.active svg .ln { stroke: var(--primary); }
.bottom-nav .nav-item svg .fl { fill: #b8beba; }
.bottom-nav .nav-item.active svg .fl { fill: var(--primary); }

/* 「我的」页钱包卡：旧内联紫色渐变 → 绿色主题 */
.wallet-card { background: linear-gradient(135deg, #00b578 0%, #2fd39b 100%) !important; }
