/* 全局样式 */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Helvetica Neue", sans-serif;
    background: #fff7fb;
    color: #2f2440;
    min-height: 100vh;
    font-size: 16px;
}

.page {
    min-height: 100vh;
    padding: 16px;
    display: none;
}

.page.active {
    display: block;
}

/* 导航栏样式 */
.sub-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 0 16px;
}

.back-btn {
    min-width: 80px;
    height: 44px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.08);
    font-size: 16px;
    line-height: 44px;
    color: #6f607e;
    text-align: center;
    cursor: pointer;
}

.sub-nav-main {
    flex: 1;
    min-width: 0;
}

.sub-nav-title {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #251734;
}

.sub-nav-desc {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #8d7fa0;
}

/* 卡片样式 */
.gradient-card {
    background: linear-gradient(135deg, #ff84b8 0%, #ffb36b 100%);
    color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(255, 111, 145, 0.18);
    padding: 20px;
    margin-bottom: 16px;
}

.white-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(108, 99, 255, 0.08);
    padding: 10px 20px;
}

/* 英雄区域样式 */
.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-desc {
    font-size: 14px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

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

.hero-stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 区域标题样式 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 4px 12px;
}

.section-title span:first-child {
    font-size: 20px;
    font-weight: 700;
}

.section-title span:last-child {
    font-size: 14px;
    color: #9e92aa;
}

/* 标签样式 */
.tag {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: #6f5d7f;
    background: #f7f0ff;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

/* 按钮样式 */
.primary-btn {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ff5f95 0%, #6c63ff 100%);
    box-shadow: 0 12px 24px rgba(108, 99, 255, 0.2);
    padding: 0;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    width: 100%;
}

/* Logo样式 */
.logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

/* 文本省略样式 */
.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
}

/* 职位卡片样式 */
.job-card {
    margin-bottom: 10px;
    cursor: pointer;
}

.job-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.job-title {
    font-size: 18px;
    font-weight: 700;
    color: #251734;
    flex: 1;
}

.job-salary {
    font-size: 20px;
    font-weight: 700;
    color: #ff5f95;
}

.job-tags {
}

.job-highlights {
}

.highlight-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #fde2e7;
    color: #ff5f95;
    border-radius: 999px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 6px;
}

.job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-mini {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.company-mini-logo {
    margin-right: 8px;
}

.company-mini-info {
    flex: 1;
    min-width: 0;
}

.company-mini-info span:first-child {
    font-size: 14px;
    color: #251734;
    margin-bottom: 2px;
}

.company-mini-info span:last-child {
    font-size: 12px;
    color: #8d7fa0;
}

.job-time {
    font-size: 12px;
    color: #8d7fa0;
}

/* 主推职位滚动区域 */
.banner-scroll {
    overflow-x: auto;
    margin-bottom: 16px;
    scrollbar-width: none; /* 隐藏滚动条 */
    -ms-overflow-style: none; /* IE/Edge隐藏滚动条 */
}

.banner-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari隐藏滚动条 */
}

.banner-row {
    display: flex;
    gap: px;
}

.banner-job {
    flex: 0 0 200px;
    padding: 16px;
    cursor: pointer;
}

.banner-job-title {
    font-size: 16px;
    font-weight: 700;
    color: #251734;
    margin-bottom: 4px;
    display: block;
}

.banner-job-company {
    font-size: 14px;
    color: #8d7fa0;
    margin-bottom: 4px;
    display: block;
}

.banner-job-salary {
    font-size: 18px;
    font-weight: 700;
    color: #ff5f95;
    display: block;
}

/* 公司列表样式 */
.company-card {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.company-card-logo {
    margin-right: 16px;
}

.company-card-info {
    flex: 1;
}

.company-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #251734;
    margin-bottom: 6px;
}

.company-card-location {
    font-size: 14px;
    color: #8d7fa0;
    margin-bottom: 8px;
}

.company-card-tags {
    display: flex;
    flex-wrap: wrap;
}

/* 消息列表样式 */
.message-card {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

.message-card-logo {
    margin-right: 16px;
}

.message-card-info {
    flex: 1;
    min-width: 0;
}

.message-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.message-card-company {
    font-size: 16px;
    font-weight: 700;
    color: #251734;
}

.message-card-time {
    font-size: 12px;
    color: #8d7fa0;
}

.message-card-content {
    font-size: 14px;
    color: #6f5d7f;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.message-card-unread {
    background: #ff5f95;
    color: #ffffff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
}

/* 我的页面样式 */
.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5f95 0%, #6c63ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.profile-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-info p {
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.9;
}

.resume-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #251734;
}

.resume-section {
    margin-bottom: 24px;
}

.resume-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #251734;
}

.resume-section p {
    font-size: 14px;
    line-height: 1.5;
    color: #6f5d7f;
    margin-bottom: 6px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
}

.skills span {
    padding: 6px 12px;
    background: #f7f0ff;
    color: #6f5d7f;
    border-radius: 999px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 职位详情页面样式 */
.job-detail-card {
    margin-bottom: 16px;
}

.job-detail-header {
    
}

.job-detail-salary {
    font-size: 24px;
    font-weight: 700;
    color: #ff5f95;
    display: block;
    margin-bottom: 12px;
}

.job-detail-tags {
    display: flex;
    flex-wrap: wrap;
}

.job-detail-highlights {
    margin-bottom: 10px;
}

.job-detail-company-info {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.job-detail-description h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #251734;
}

.job-detail-description pre {
    font-size: 14px;
    line-height: 1.5;
    color: #6f5d7f;
    white-space: pre-wrap;
    font-family: inherit;
    margin-bottom: 16px;
}

/* 公司详情页面样式 */
.company-detail-card {
    margin-bottom: 16px;
}

.company-detail-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
}

.company-detail-logo {
    margin-right: 16px;
}

.company-detail-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #251734;
}

.company-detail-slogan {
    font-size: 14px;
    color: #8d7fa0;
    margin-bottom: 12px;
}

.company-detail-tags {
    display: flex;
    flex-wrap: wrap;
}

.company-detail-intro h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #251734;
}

.company-detail-intro p {
    font-size: 14px;
    line-height: 1.5;
    color: #6f5d7f;
    margin-bottom: 24px;
}

.company-detail-jobs h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #251734;
}

.company-job-item {
    padding: 6px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
}

.company-job-title {
    font-size: 16px;
    font-weight: 700;
    color: #251734;
    margin-bottom: 6px;
}

.company-job-salary {
    font-size: 18px;
    font-weight: 700;
    color: #ff5f95;
    margin-bottom: 8px;
}

.company-job-tags {
    display: flex;
    flex-wrap: wrap;
}

/* 聊天页面样式 */
.chat-messages {
    min-height: 68vh;
    padding: 16px 0;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
}

.chat-message.company {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-message.company .chat-message-content {
    background: #f7f0ff;
    color: #6f5d7f;
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-message-content {
    background: linear-gradient(135deg, #ff5f95 0%, #6c63ff 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-message-time {
    font-size: 12px;
    color: #8d7fa0;
    margin-top: 6px;
    text-align: center;
    width: 100%;
}

.chat-input-area {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.voice-toggle-btn {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #f7f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 12px;
}

.voice-icon,
.text-icon {
    font-size: 20px;
    display: block;
}

.text-icon {
    display: none;
}

.voice-toggle-btn.voice-mode .voice-icon {
    display: none;
}

.voice-toggle-btn.voice-mode .text-icon {
    display: block;
}

.chat-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.send-btn {
    width: 64px;
    height: 48px;
    border: none;
    border-radius: 24px;
    background: linear-gradient(135deg, #ff5f95 0%, #6c63ff 100%);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    margin-left: 12px;
}

.voice-input-area {
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.voice-hold-btn {
    width: 160px;
    height: 64px;
    border: none;
    border-radius: 32px;
    background: linear-gradient(135deg, #ff5f95 0%, #6c63ff 100%);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
}

/* 底部导航栏样式 */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(108, 99, 255, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.tab-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.tab-bar-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.tab-bar-text {
    font-size: 12px;
    color: #9a8ca8;
}

.tab-bar-item.active .tab-bar-text {
    color: #ff5f95;
}

/* 版权信息 */
.banquan {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #8b8b8b;
    padding-bottom: 80px; /* 为底部导航栏留出空间 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page {
        padding: 12px;
    }

    .gradient-card {
        padding: 16px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-stat-value {
        font-size: 20px;
    }

    .hero-stat-label {
        font-size: 12px;
    }

    .section-title span:first-child {
        font-size: 18px;
    }

    .section-title span:last-child {
        font-size: 12px;
    }

    .job-title {
        font-size: 20px;
    }

    .job-salary {
        font-size: 18px;
    }

    .tag {
        font-size: 12px;
        padding: 4px 8px;
    }

    .highlight-chip {
        font-size: 10px;
        padding: 3px 8px;
    }

    .company-mini-info span:first-child {
        font-size: 16px;
    }

    .company-mini-info span:last-child {
        font-size: 14px;
    }

    .job-time {
        font-size: 12px;
    }

    .banner-job {
        flex: 0 0 160px;
        padding: 10px 0 10px 10px;
        margin: 5px;
    }

    .banner-job-title {
        font-size: 18px;
    }

    .banner-job-company {
        font-size: 12px;
    }

    .banner-job-salary {
        font-size: 16px;
    }

    .primary-btn {
        height: 56px;
        font-size: 16px;
    }

    .tab-bar {
        height: 70px;
    }

    .tab-bar-icon {
        width: 32px;
        height: 32px;
    }

    .tab-bar-text {
        font-size: 14px;
        margin: -5px 0 10px 0;
    }

    .banquan {
        font-size: 10px;
        padding-bottom: 70px;
    }
}