/* ============================================
   招聘平台系统 — 移动端样式
   纯原生 CSS，参考 dsqrcsc.com/mobile
   ============================================ */

/* 页面结构 */
.page-home {
    padding-bottom: 66px; /* 为底部导航留空（56px导航栏+10px安全间距） */
}

/* ── 顶部栏 ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary, #FF6B35);
    color: #fff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12px 16px;
    height: 48px;
}

.header-title {
    font-size: 20px;
    font-weight: normal;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    max-width: 60%;
}

.header-user {
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* 首页顶部栏布局：站点名称靠左 + 个人主页图标靠右 */
.header-title-home {
    text-align: left;
    flex: 1;
    margin-left: 0;
}

.header-inner:has(.header-title-home) {
    justify-content: space-between;
}

/* ── 搜索区 ── */
.search-section {
    background: var(--color-primary, #FF6B35);
    padding: 0 12px 12px;
}

.search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 8px 16px;
    gap: 8px;
}

.search-box .icon-search {
    color: #999;
    font-size: 18px;
}

.search-placeholder {
    color: #999;
    font-size: 14px;
}

.search-tabs {
    display: flex;
    margin-top: 10px;
    gap: 0;
}

.search-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.search-tab.active {
    color: #fff;
    border-bottom-color: #fff;
    font-weight: Bold;
}

/* ── 功能导航 ── */
.func-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #fff;
    padding: 16px 0 12px;
    margin-bottom: 10px;
}

.func-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #1A1A1A;
}

.func-icon {
    font-size: 28px;
    color: var(--color-primary, #FF6B35);
}

/* ── 客服热线 ── */
.hotline-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    padding: 10px 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.hotline-bar .icon {
    color: var(--color-primary, #FF6B35);
    font-size: 16px;
}

/* ── 防骗提示 ── */
.warning-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #FFF7E6;
    padding: 10px 16px;
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #FA8C16;
}

/* ── 区域标题 ── */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    font-size: 16px;
    font-weight: Bold;
}

.section-title .more {
    font-size: 12px;
    color: #999;
    font-weight: Normal;
}

/* ── 信息卡片 ── */
.info-card {
    display: block;
    background: #fff;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    position: relative;
}

.info-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.info-card-title {
    font-size: 16px;
    font-weight: Bold;
    color: #1A1A1A;
    flex: 1;
    margin-right: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-card-salary {
    font-size: 15px;
    font-weight: Bold;
    color: var(--color-primary, #FF6B35);
    white-space: nowrap;
}

.info-card-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.info-card-info {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.info-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.info-card-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-primary, #FF6B35);
    font-size: 13px;
}

/* 置顶标签 */
.tag-top {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-primary, #FF6B35);
    color: #fff;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 0 0 6px 0;
    white-space: nowrap;
    z-index: 1;
}

/* 有置顶标签的卡片，顶部留出空间 */
.info-card.has-top {
    padding-top: 28px;
}

/* ── 底部导航 ── */
.navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
    height: 56px;
    justify-content: space-around;
    align-items: flex-end;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    color: var(--bottom-nav-inactive-color, #999);
    font-size: 12px;
    padding-bottom: 6px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-item .icon {
    font-size: 22px;
}

.nav-item.active {
    color: var(--bottom-nav-active-color, #FF6B35);
}

/* ── 发布按钮（凸出圆形） ── */
.nav-publish {
    position: relative;
    padding-bottom: 6px;
}

.nav-publish-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bottom-nav-active-color, #FF6B35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -28px;
    border: 5px solid var(--nav-bg, #FFFFFF);
    position: relative;
    z-index: 2;
}

.nav-publish-circle .icon {
    font-size: 24px;
    color: #fff;
}

.nav-publish-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: -28px;
    border: 5px solid var(--nav-bg, #FFFFFF);
    position: relative;
    z-index: 2;
}

.nav-publish span {
    position: relative;
    z-index: 2;
}

/* ── 列表页 ── */
.list-page {
    padding-bottom: 66px;
}

.list-filters {
    display: flex;
    background: #fff;
    padding: 0 12px;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.list-filter-item {
    padding: 10px 12px;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.list-filter-item.active {
    color: var(--color-primary, #FF6B35);
    border-bottom-color: var(--color-primary, #FF6B35);
    font-weight: Bold;
}

/* ── 详情页 ── */
.detail-page {
    padding-bottom: 80px;
}

.detail-header {
    background: #fff;
    padding: 16px;
}

.detail-title {
    font-size: 18px;
    font-weight: Bold;
    margin-bottom: 8px;
}

.detail-salary {
    font-size: 20px;
    font-weight: Bold;
    color: var(--color-primary, #FF6B35);
}

.detail-info {
    background: #fff;
    padding: 12px 16px;
    margin-top: 10px;
}

.detail-info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.detail-info-row:last-child {
    border-bottom: none;
}

.detail-info-label {
    color: #999;
    width: 80px;
    flex-shrink: 0;
}

.detail-info-value {
    color: #1A1A1A;
    flex: 1;
}

/* 底部操作栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #eee;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 100;
}

/* ── 表单 ── */
.form-page {
    padding: 16px 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-label .required {
    color: #FF4D4F;
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary, #FF6B35);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-error {
    color: #FF4D4F;
    font-size: 12px;
    margin-top: 4px;
}

/* ── 个人中心 ── */
.profile-page {
    padding-bottom: 66px;
}

.profile-header {
    background: var(--color-primary, #FF6B35);
    padding: 24px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.profile-name {
    font-size: 18px;
    font-weight: Bold;
}

.profile-phone {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.profile-menu {
    background: #fff;
    margin-top: 10px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
    color: #333;
}

.profile-menu-item:active {
    background: #f5f5f5;
}

/* ── 认证页面 ── */
.auth-page {
    min-height: 100vh;
    background: #fff;
}

.auth-form {
    padding: 40px 24px 20px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 36px;
}

.auth-logo h2 {
    margin-top: 12px;
    font-size: 22px;
    color: #1A1A1A;
}

.auth-logo p {
    color: #999;
    font-size: 14px;
    margin-top: 6px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form .form-input {
    border: none;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 12px 0;
    font-size: 15px;
}

.auth-form .form-input:focus {
    border-bottom-color: var(--color-primary, #FF6B35);
}

.auth-errors {
    background: #FFF1F0;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: var(--color-primary, #FF6B35);
    font-size: 14px;
}

.role-select {
    display: flex;
    gap: 12px;
}

.role-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.role-option:has(input:checked) {
    border-color: var(--color-primary, #FF6B35);
    color: var(--color-primary, #FF6B35);
    background: var(--color-primary-light, #FF6B3515);
}

.header-back {
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    position: absolute;
    left: 16px;
}

.header-inner span {
    position: absolute;
    right: 16px;
}

/* ── 分页 ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px;
    background: #F5F5F5;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    min-width: 60px;
}

.page-btn:active {
    background: #f0f0f0;
}

.page-disabled {
    color: #ccc;
    border-color: #eee;
    background: #fafafa;
}

.page-info {
    font-size: 13px;
    color: #666;
}

/* 完整分页 */
.pagination-full {
    gap: 6px;
}

.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    background: #fff;
}

.page-num.page-active {
    background: var(--color-primary, #FF6B35);
    color: #fff;
    border-color: var(--color-primary, #FF6B35);
}

.page-ellipsis {
    color: #999;
    padding: 0 4px;
}

/* ── 筛选标签组 ── */
.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
}

.filter-tag {
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    background: #fff;
}

.filter-tag.active {
    background: var(--color-primary, #FF6B35);
    color: #fff;
    border-color: var(--color-primary, #FF6B35);
}

/* ── 表单选择器 ── */
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-select:focus {
    border-color: var(--color-primary, #FF6B35);
}

/* ── 操作提示 ── */
.tips-box {
    background: var(--color-primary-light, #FF6B3515);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--color-primary, #FF6B35);
    line-height: 1.6;
}

/* ── 统计标签 ── */
.stat-bar {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    background: #fff;
    margin-bottom: 10px;
}

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

.stat-num {
    font-size: 20px;
    font-weight: Bold;
    color: var(--color-primary, #FF6B35);
}

.stat-label {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ── 静态页面/文章页 ── */
.article-page {
    background: #fff;
    min-height: 100vh;
}

.article-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary, #FF6B35);
    color: #fff;
}

.article-content {
    padding: 16px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 17px;
    font-weight: Bold;
    color: #1A1A1A;
    margin: 24px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--color-primary, #FF6B35);
}

.article-content h3 {
    font-size: 15px;
    font-weight: Bold;
    color: #1A1A1A;
    margin: 18px 0 8px;
}

.article-content p {
    margin-bottom: 12px;
}

.article-content ul,
.article-content ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content .highlight-box {
    background: #FFF7E6;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 12px 0;
    color: #FA8C16;
    font-size: 13px;
    line-height: 1.6;
}

.article-content .info-box {
    background: var(--color-primary-light, #FF6B3515);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 12px 0;
    color: var(--color-primary, #FF6B35);
    font-size: 13px;
    line-height: 1.6;
}

.article-content .price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.article-content .price-table th,
.article-content .price-table td {
    padding: 10px 12px;
    border: 1px solid #eee;
    text-align: left;
}

.article-content .price-table th {
    background: #F5F5F5;
    font-weight: Bold;
    color: #333;
}

.article-content .price-table td {
    color: #666;
}

.article-content .price-table .price {
    color: var(--color-primary, #FF6B35);
    font-weight: Bold;
}

/* FAQ 问答样式 */
.faq-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
}

.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: Bold;
    color: #1A1A1A;
    font-size: 15px;
    margin-bottom: 8px;
}

.faq-q .q-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: var(--color-primary, #FF6B35);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

.faq-a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #666;
    font-size: 14px;
    padding-left: 28px;
}

.faq-a .a-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: #52C41A;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    flex-shrink: 0;
}

/* 白名单提示页 */
.whitelist-tip-page {
    min-height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 40px;
    text-align: center;
}

.whitelist-icon {
    font-size: 64px;
    color: var(--color-primary, #FF6B35);
    margin-bottom: 20px;
}

.whitelist-title {
    font-size: 20px;
    font-weight: Bold;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.whitelist-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 300px;
}

.whitelist-qrcode {
    max-width: 180px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.whitelist-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.whitelist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 0;
    border-radius: 24px;
    font-size: 16px;
    font-weight: Bold;
    transition: opacity 0.2s;
}

.whitelist-btn:active {
    opacity: 0.8;
}

.whitelist-btn-primary {
    background: var(--color-primary, #FF6B35);
    color: #fff;
}

.whitelist-btn-outline {
    background: #fff;
    color: var(--color-primary, #FF6B35);
    border: 1px solid var(--color-primary, #FF6B35);
}

.whitelist-contact {
    margin-top: 30px;
    font-size: 13px;
    color: #999;
}

.whitelist-contact a {
    color: var(--color-primary, #FF6B35);
}

/* 白名单提示页 - 自定义HTML模式 */
.whitelist-custom-html {
    width: 100%;
    max-width: 600px;
    text-align: left;
    line-height: 1.6;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}
.whitelist-custom-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.whitelist-custom-html p {
    margin-bottom: 12px;
}
.whitelist-custom-html h1, .whitelist-custom-html h2, .whitelist-custom-html h3 {
    color: #1A1A1A;
    margin-bottom: 8px;
}

/* ── 按钮通用 ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
    cursor: pointer;
    border: none;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background: var(--color-primary, #FF6B35);
    color: #fff;
}

.btn-warning {
    background: var(--color-primary, #FF6B35);
    color: #fff;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 12px 0;
    font-size: 16px;
    font-weight: Bold;
    border-radius: 24px;
}

.btn-outline {
    background: #fff;
    color: var(--color-primary, #FF6B35);
    border: 1px solid var(--color-primary, #FF6B35);
}

.btn-outline:active {
    background: var(--color-primary-light, #FF6B3515);
}

/* ── 动态圆角 ── */
.btn {
    border-radius: var(--theme-radius, 6px);
}

/* ── 顶部导航（配置驱动） ── */
.top-nav-bar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}
.top-nav-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 16px;
    transition: background 0.2s;
}
.top-nav-item .icon {
    font-size: 16px;
}
.top-nav-item:active {
    background: rgba(0,0,0,0.05);
}

/* ── 滚动公告（配置驱动） ── */
.scroll-tip {
    background: #FFF7E6;
    padding: 8px 16px;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    animation: scrollTip linear infinite;
}
@keyframes scrollTip {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ── 弹窗 ── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* ── 置顶天数选择按钮 ── */
.top-days-btn {
    flex: 1;
    font-size: 13px;
    padding: 8px 4px;
}

.top-days-selected {
    background: #FFF7E6;
    color: #FA8C16;
    border-color: #FA8C16;
}

/* ============================================
   首页风格样式（参考首页.png）
   ============================================ */

/* ── 顶部栏地区选择器 ── */
.header-region {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    white-space: nowrap;
    flex-shrink: 0;
}
.header-region .icon {
    font-size: 14px;
}

/* ── 首页搜索区 ── */
.home-search-section {
    padding: 10px 12px;
    background: #fff;
    position: sticky;
    top: 48px;
    z-index: 99;
    transition: background 0.3s;
}
/* 滚动后：搜索区底色透明融入header */
.home-search-section.scrolled {
    background: transparent;
}
.home-search-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-search-box {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--color-primary, #017eff);
    border-radius: 20px;
    padding: 8px 12px;
    gap: 6px;
    min-height: 36px;
    min-width: 0;
    overflow: hidden;
}
.home-search-box .icon {
    color: var(--color-primary, #017eff);
    font-size: 16px;
}
.home-search-placeholder {
    color: #999;
    font-size: 13px;
}
.home-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    min-height: 36px;
    min-width: 76px;
    padding: 8px 8px;
    background: var(--color-primary, #017eff);
    gap: 3px;
    flex-shrink: 0;
}
.home-search-btn .icon {
    font-size: 14px;
    color: #fff;
}
.home-search-btn:active {
    opacity: 0.85;
}

/* ── 文字导航栏 ── */
.home-text-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 0 12px 2px;
    background: #fff;
}
.home-text-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    border-radius: 0;
    font-size: 17px;
    font-weight: normal;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.15s;
}
.home-text-nav-item:active {
    opacity: 0.8;
}

/* ── 通栏广告 ── */
.home-banner-ads {
    background: #fff;
    padding: 0 12px;
}
.home-banner-ad-item {
    display: block;
    width: 100%;
    line-height: 0;
    margin-bottom: 3px;
}
.home-banner-ad-item:last-child {
    margin-bottom: 0;
}
.home-banner-ad-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── 岗位动态 ── */
.home-job-trends {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px 12px;
    margin: 0;
}
.home-job-trends-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-gradient-end, #FF8F5E);
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}
.home-job-trends-label .icon {
    font-size: 16px;
    color: var(--color-gradient-end, #FF8F5E);
}
.home-job-trends-scroll {
    flex: 1;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.home-trend-company {
    color: var(--color-primary, #017eff);
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-trend-works {
    color: var(--color-primary, #017eff);
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── 招聘信息列表标题 ── */
.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 6px;
    background: #fff;
}
.home-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-section-title-text {
    font-size: 16px;
    font-weight: Bold;
    color: #2196F3;
}
.home-section-more {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    color: #2196F3;
    text-decoration: none;
}
.home-section-more .icon {
    font-size: 14px;
}

/* ── 招聘信息列表容器 ── */
.home-job-list {
    background: #fff;
    padding: 0 12px 12px;
}

/* ── 岗位卡片样式（全局统一，首页/招聘列表/搜索等页面共用，修改此处即可全局生效） ── */
.home-job-list {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f5f5f5;
}
.rc-card {
    display: block;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.rc-card:active { background: #f8f8f8; }

/* 第一行：职位名 + 右上角地区 */
.rc-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: space-between;
}
.rc-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}
.rc-card-top-tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    background: var(--color-gradient-end, #FF8F5E);
    color: #fff;
    flex-shrink: 0;
}
.rc-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 第二行：薪资 */
.rc-card-salary {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-gradient-end, #FF8F5E);
}

/* 第三行：招人 + 学历 + 经验标签 */
.rc-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.rc-card-location {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    color: #999;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    background: #f5f5f5;
}
.rc-card-location svg { width: 12px; height: 12px; }
.rc-card-req-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: var(--color-primary-light, #FF6B3515);
    color: var(--color-primary, #FF6B35);
}
.rc-card-info-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    background: #F0F5FF;
    color: #666;
}

/* 第四行：公司名称 + 详情按钮 */
.rc-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 13px;
}
.rc-card-company-icon {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #999;
}
.rc-card-company {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #000;
    font-size: 15px;
    min-width: 0;
}
.rc-card-detail-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: var(--color-primary, #FF6B35);
    color: #fff;
}
.rc-card-detail-btn svg { width: 12px; height: 12px; }

/* ── 首页底部链接 ── */
.home-footer-links {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
}
.home-footer-links a {
    color: #999;
    margin: 0 8px;
    text-decoration: none;
}

/* ── 漂浮按钮 ── */
.float-btn-group {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: center;
}

.float-btn-main, .float-btn-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.float-btn-main {
    min-width: 50px;
    min-height: 50px;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    width: 50px;
    height: 50px;
}

.float-btn-main .icon {
    font-size: 22px;
}

.float-btn-main span {
    display: none;
}

.float-btn-main.rotate {
    transform: rotate(45deg);
}

/* 自定义图片图标：直接显示图片，无容器包裹 */
.float-btn-main.float-btn-img {
    background: none !important;
    box-shadow: none;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    border-radius: 0;
    padding: 0;
}
.float-btn-main.float-btn-img img {
    display: block;
}
.float-btn-main.float-btn-img.rotate {
    transform: none;
}

.float-btn-sub {
    animation: floatBtnIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes floatBtnIn {
    to { opacity: 1; transform: translateY(0); }
}

.float-btn-sub .icon {
    font-size: 16px;
}
