/* ==========================================================================
   孔雀河畔 wap 移动端 · 设计稿统一主题（蓝色 App 风格）
   覆盖各页内联样式，需在各页 </head> 前最后引入
   ========================================================================== */

:root {
    --wp-primary: #1E7BFF;
    --wp-primary-deep: #1E5BFF;
    --wp-grad: linear-gradient(135deg, #3D8BFF 0%, #1E5BFF 100%);
    --wp-bg: #F5F7FA;
    --wp-card: #ffffff;
    --wp-line: #F0F2F5;
    --wp-line-strong: #E4E8EF;
    --wp-text: #1A2433;
    --wp-text-2: #4A5568;
    --wp-text-3: #7A879B;
    --wp-text-4: #A0AABB;
    --wp-salary: #FF6B35;
    --wp-radius: 14px;
    --wp-shadow: 0 1px 2px rgba(16, 40, 80, .03), 0 6px 18px rgba(16, 40, 80, .05);
}

/* ---------- 全局 ---------- */
body {
    background: var(--wp-bg) !important;
    color: var(--wp-text);
}

/* ---------- 顶部导航：去黑渐变，改干净白底 ---------- */
.topbar {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--wp-line) !important;
    transition: none !important;
}
.topbar a {
    color: var(--wp-text-2) !important;
    font-size: 13px !important;
    font-weight: 500;
    background: #F2F5FA;
    padding: 5px 12px;
    border-radius: 15px;
    margin-left: 8px !important;
}
.topbar a::after { display: none !important; }  /* 去波纹 */
.topbar a:active { opacity: .6; }
.topbar-logo {
    height: 30px !important;
    filter: none !important;
}

/* ---------- 搜索栏：灰色胶囊 ---------- */
.app-search {
    background: #fff !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--wp-line) !important;
    padding: 10px 15px !important;
    transition: none !important;
}
.search-box {
    background: #F2F4F8 !important;
    border: none !important;
    border-radius: 20px !important;
    height: 38px !important;
    box-shadow: none !important;
}
.search-box:focus-within {
    transform: none !important;
    box-shadow: 0 0 0 2px rgba(30, 123, 255, .12) !important;
}
.search-box input { caret-color: var(--wp-primary); }
.search-box i.layui-icon-search { color: var(--wp-text-4) !important; }
.search-box i.layui-icon-down { color: var(--wp-text-4) !important; }
.search-box i.layui-icon-down:hover { transform: none !important; color: var(--wp-primary) !important; }
#searchList {
    background: #fff !important;
    border: 1px solid var(--wp-line) !important;
    box-shadow: 0 10px 30px rgba(16, 40, 80, .12) !important;
    top: 46px !important;
}
#searchList a { border-bottom-color: var(--wp-line) !important; }
#searchList a:hover {
    background: #F5F9FF !important;
    color: var(--wp-primary) !important;
    padding-left: 15px !important;
}
#searchList a i { color: var(--wp-primary) !important; }

/* ---------- 底部 5 tab：白底 + 蓝色激活胶囊 ---------- */
.bottom-nav {
    background: #fff !important;
    border-top: 1px solid var(--wp-line) !important;
    box-shadow: 0 -4px 16px rgba(16, 40, 80, .05) !important;
    height: 58px !important;
}
.nav-item {
    color: var(--wp-text-4) !important;
    border-radius: 10px !important;
    transition: none !important;
}
.nav-item:hover { background: none !important; }
.nav-item.active {
    color: var(--wp-primary) !important;
    font-weight: 600 !important;
    background: none !important;
}
.nav-item.active .nav-icon {
    background: rgba(30, 123, 255, .1);
    border-radius: 10px;
    padding: 3px 10px;
    margin-bottom: 1px !important;
}
.nav-icon { font-size: 19px !important; margin-bottom: 3px !important; }

/* ---------- 区块与标题 ---------- */
.section {
    background: var(--wp-card) !important;
    border-radius: var(--wp-radius) !important;
    box-shadow: var(--wp-shadow) !important;
    border: none !important;
    margin-bottom: 12px;
}
.section-title {
    font-size: 16.5px !important;
    font-weight: 700 !important;
    color: var(--wp-text) !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
}
.section-title i { color: var(--wp-primary); font-size: 16px; }
.more-btn {
    background: var(--wp-grad) !important;
    color: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(30, 91, 255, .25) !important;
    border: none !important;
}

/* ---------- 职位卡片 ---------- */
.job-item {
    background: #fff !important;
    border: none !important;
    border-radius: var(--wp-radius) !important;
    box-shadow: var(--wp-shadow) !important;
    transition: none !important;
    animation: none !important;
}
.job-item:hover { transform: none !important; box-shadow: var(--wp-shadow) !important; }
.job-item:active { transform: scale(.985); }
.job-title { color: var(--wp-text) !important; font-weight: 600; }
.job-title:hover { color: var(--wp-primary) !important; text-decoration: none !important; }
.job-salary { color: var(--wp-salary) !important; font-weight: 700 !important; }
.job-urgent {
    background: #FFF0EA !important;
    color: #FF5222 !important;
    border: none !important;
}
.view-btn {
    background: var(--wp-grad) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 10px rgba(30, 91, 255, .22) !important;
    transition: none !important;
}
.view-btn:hover { transform: none !important; box-shadow: 0 4px 10px rgba(30, 91, 255, .22) !important; }
.job-tag {
    background: #F4F6FA !important;
    color: var(--wp-text-3) !important;
    border: none !important;
}
.job-tag.blue { background: #EAF3FF !important; color: var(--wp-primary) !important; }
.job-tag.green { background: #EAF8F0 !important; color: #16a34a !important; }

/* ---------- 通用按钮/主色 ---------- */
.theme-color, .btn-primary {
    background: var(--wp-grad) !important;
    color: #fff !important;
}
.theme-text { color: var(--wp-primary) !important; }

/* 详情页绿色沟通按钮 → 设计稿蓝 */
a[style*="background:#059669"], .btn[style*="background:#059669"] {
    background: var(--wp-grad) !important;
}

/* ---------- 「我的」用户卡 → 蓝色渐变 ---------- */
.user-info {
    background: var(--wp-grad) !important;
    border-radius: var(--wp-radius) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(30, 91, 255, .25) !important;
    position: relative;
    overflow: hidden;
}
.user-info .user-name { color: #fff !important; }
.user-info .stat-num { color: #fff !important; }
.user-info .stat-text { color: rgba(255, 255, 255, .8) !important; }
.user-info .stat-item { border-color: rgba(255, 255, 255, .18) !important; }

/* ---------- 消息中心 ---------- */
.mh { background: #fff !important; border-bottom: 1px solid var(--wp-line); }
.mh__bar { background: #fff !important; color: var(--wp-text) !important; }
.mh__title { color: var(--wp-text) !important; font-weight: 600; }
.mh__back { color: var(--wp-text-2) !important; }
#readAll { color: var(--wp-primary) !important; font-size: 13px; }
.tabs {
    background: #fff !important;
    border-bottom: 1px solid var(--wp-line);
}
.tabs .tab { color: var(--wp-text-3); }
.tabs .tab.active {
    color: var(--wp-primary);
    font-weight: 600;
    border-bottom: 2.5px solid var(--wp-primary);
    background: none !important;
}
.tabs .tab .n { background: #F43F5E !important; }
.quick a { border-bottom-color: var(--wp-line) !important; }
.quick a i.l { color: var(--wp-primary) !important; }

/* ---------- 版权 ---------- */
.copyright {
    border-top: none !important;
    color: var(--wp-text-4) !important;
    margin-top: 16px !important;
}
.copyright a { color: var(--wp-text-4) !important; }
.copyright a:hover { color: var(--wp-primary) !important; }

/* ==========================================================================
   设计稿新组件（首页 banner / 4宫格）
   ========================================================================== */
.wp-banner {
    margin: 12px 12px 0;
    border-radius: 16px;
    background: linear-gradient(120deg, #4D9BFF 0%, #1E5BFF 100%);
    padding: 20px 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(30, 91, 255, .22);
}
.wp-banner::before {
    content: '';
    position: absolute;
    right: -30px;
    top: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.wp-banner::after {
    content: '';
    position: absolute;
    right: 46px;
    bottom: -56px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.wp-banner__t1 { font-size: 21px; font-weight: 800; letter-spacing: 1px; position: relative; z-index: 1; }
.wp-banner__t2 { font-size: 15px; font-weight: 600; margin-top: 4px; opacity: .95; position: relative; z-index: 1; }
.wp-banner__sub { font-size: 11.5px; margin-top: 10px; opacity: .8; position: relative; z-index: 1; }
.wp-banner__art {
    position: absolute;
    right: 14px;
    bottom: 8px;
    font-size: 44px;
    opacity: .35;
    z-index: 1;
}

.wp-grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px 8px 14px;
}
.wp-grid4__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.wp-grid4__item:active { opacity: .55; }
.wp-grid4__ic {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}
.wp-grid4__ic--blue   { background: linear-gradient(135deg, #3D8BFF, #1E5BFF); box-shadow: 0 5px 12px rgba(30,91,255,.28); }
.wp-grid4__ic--green  { background: linear-gradient(135deg, #34D399, #059669); box-shadow: 0 5px 12px rgba(5,150,105,.25); }
.wp-grid4__ic--orange { background: linear-gradient(135deg, #FFB340, #FF8800); box-shadow: 0 5px 12px rgba(255,136,0,.25); }
.wp-grid4__ic--teal   { background: linear-gradient(135deg, #2DD4BF, #0D9488); box-shadow: 0 5px 12px rgba(13,148,136,.25); }
.wp-grid4__name { font-size: 12.5px; color: var(--wp-text-2); }

/* 列表页 tab（推荐/最新） */
.wp-tabs {
    display: flex;
    gap: 18px;
    padding: 10px 16px 0;
    background: #fff;
}
.wp-tabs a {
    font-size: 15px;
    color: var(--wp-text-3);
    padding-bottom: 9px;
    position: relative;
}
.wp-tabs a.on { color: var(--wp-text); font-weight: 700; }
.wp-tabs a.on::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--wp-primary);
}
