/* ==================== 基础样式 - 对齐塔塔网申 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 100;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1677ff;
    cursor: pointer;
}

.navbar .logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.navbar .nav-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.navbar .nav-menu a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
    font-weight: 500;
    position: relative;
}

.navbar .nav-menu a:hover {
    color: #1677ff;
    background: #f0f7ff;
}

.navbar .nav-menu a.active {
    color: #1677ff;
    background: #e6f2ff;
}

/* 导航角标 */
.navbar .nav-menu a .badge-hot {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 3px;
    line-height: 16px;
    font-weight: 600;
}

.navbar .nav-menu a .badge-new {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #1677ff;
    color: #fff;
    font-size: 10px;
    padding: 0 4px;
    border-radius: 3px;
    line-height: 16px;
    font-weight: 600;
}

.navbar .auth-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .btn-login {
    padding: 8px 22px;
    background: #1677ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.navbar .btn-login:hover {
    background: #409eff;
    box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}

/* 消息铃铛 */
.navbar .notify-bell {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f7fa;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.navbar .notify-bell:hover {
    background: #e8edf3;
}

.navbar .notify-bell .badge {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 16px;
    height: 16px;
    background: #ff4757;
    border-radius: 50%;
    font-size: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* 下拉菜单 */
.navbar .dropdown-wrapper {
    position: relative;
}

.navbar .user-info {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 14px 4px 4px;
    border-radius: 30px;
    background: #f5f7fa;
    transition: all 0.2s;
}

.navbar .user-info:hover {
    background: #e8edf3;
}

.navbar .user-info .avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #1677ff, #409eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: bold;
    overflow: hidden;
}

.navbar .user-info .username {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.navbar .user-info .arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}

.navbar .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    padding: 4px;
    display: none;
    z-index: 200;
    border: 1px solid #eee;
}

.navbar .dropdown-menu.show {
    display: block;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.navbar .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #555;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.15s;
    cursor: pointer;
}

.navbar .dropdown-menu a:hover {
    background: #f0f7ff;
    color: #1677ff;
}

.navbar .dropdown-menu .divider {
    height: 1px;
    background: #f0f0f0;
    margin: 2px 0;
}

.navbar .dropdown-menu .logout-item {
    color: #ff4757 !important;
}

.navbar .dropdown-menu .logout-item:hover {
    background: #fff5f5;
}

/* 登录后显示 */
.navbar.logged-in .btn-login {
    display: none;
}

.navbar.logged-in .notify-bell {
    display: flex;
}

.navbar.logged-in .user-info {
    display: flex;
}

/* ==================== Hero 区域 ==================== */
.hero-wrapper {
    margin-top: 64px;
    display: flex;
    height: 420px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* 左侧分类筛选 */
.hero-sidebar {
    width: 200px;
    background: #fafbfc;
    border-right: 1px solid #eee;
    padding: 12px 0;
    overflow-y: auto;
    flex-shrink: 0;
}

.hero-sidebar .side-item {
    padding: 12px 20px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-sidebar .side-item:hover {
    color: #1677ff;
    background: #f0f7ff;
}

.hero-sidebar .side-item.active {
    color: #1677ff;
    background: #e6f2ff;
    font-weight: 600;
}

.hero-sidebar .side-item .arrow-right {
    font-size: 10px;
    color: #ccc;
}

/* 主 Banner */
.hero-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4ff 0%, #e6f2ff 50%, #fff0f6 100%);
    position: relative;
    overflow: hidden;
}

.hero-main .hero-bg {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 240px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(22, 119, 255, 0.08), rgba(64, 158, 255, 0.04));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main .hero-bg .hero-illustration {
    font-size: 100px;
    opacity: 0.9;
}

.hero-main .hero-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    padding: 0 60px;
}

.hero-main .hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-main .hero-content h1 span {
    color: #1677ff;
}

.hero-main .hero-content p {
    font-size: 15px;
    color: #888;
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-main .hero-content .btn-hero {
    display: inline-block;
    padding: 12px 32px;
    background: #1677ff;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.hero-main .hero-content .btn-hero:hover {
    background: #409eff;
    box-shadow: 0 6px 16px rgba(22, 119, 255, 0.3);
    transform: translateY(-1px);
}

/* 统计条 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 28px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

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

.hero-stats .stat-item .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: #1677ff;
    margin-bottom: 4px;
}

.hero-stats .stat-item .stat-label {
    font-size: 13px;
    color: #999;
}

/* 功能卡片 */
.feature-cards {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: -30px auto 0;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.feature-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: all 0.2s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-card .fc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-card .fc-icon.blue {
    background: #e6f2ff;
    color: #1677ff;
}

.feature-card .fc-icon.pink {
    background: #fff0f6;
    color: #ff6b9d;
}

.feature-card .fc-icon.green {
    background: #e6fff0;
    color: #00b96b;
}

.feature-card .fc-info h4 {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.feature-card .fc-info p {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* ==================== 职位区域 ==================== */
.section {
    padding: 50px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header p {
    font-size: 14px;
    color: #999;
}

/* 职位筛选 Tab */
.job-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.job-filters .filter-tab {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    background: #f5f7fa;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-weight: 500;
}

.job-filters .filter-tab:hover {
    color: #1677ff;
    background: #e6f2ff;
}

.job-filters .filter-tab.active {
    color: #fff;
    background: #1677ff;
}

/* 职位网格 */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #d0e0f0;
}

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

.job-card .job-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.job-card .job-salary {
    color: #ff6b9d;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.job-card .company-name {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.job-card .job-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.job-card .tag {
    padding: 2px 8px;
    background: #f0f7ff;
    color: #1677ff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.job-card .tag.type {
    background: #fff7e6;
    color: #fa8c16;
}

.job-card .tag.industry {
    background: #f6ffed;
    color: #52c41a;
}

.job-card .job-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
    margin-top: auto;
}

.job-card .job-location {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-card .job-time {
    font-size: 12px;
    color: #bbb;
}

.job-card .referral-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 10px;
    background: #f9f0ff;
    border-radius: 6px;
    font-size: 12px;
    color: #722ed1;
    cursor: pointer;
    transition: all 0.2s;
}

.job-card .referral-bar:hover {
    background: #efe0ff;
}

.job-card .referral-bar .copy-btn {
    margin-left: auto;
    padding: 2px 10px;
    background: #722ed1;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    border: none;
    cursor: pointer;
}

.job-card .btn-apply {
    padding: 6px 16px;
    background: #1677ff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.job-card .btn-apply:hover {
    background: #409eff;
}

/* ==================== 热门名企 ==================== */
.company-section {
    background: #fff;
    padding: 50px 40px;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.company-card {
    background: #fafbfc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #d0e0f0;
}

.company-card .company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    font-weight: 700;
}

.company-card .company-name {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
}

.company-card .company-tags {
    font-size: 11px;
    color: #999;
}

.company-card .company-jobs {
    margin-top: 8px;
    font-size: 12px;
    color: #1677ff;
}

/* 行业分类 */
.industry-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.industry-tabs .ind-tab {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    background: #f5f7fa;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.industry-tabs .ind-tab:hover {
    color: #1677ff;
    background: #e6f2ff;
}

.industry-tabs .ind-tab.active {
    color: #fff;
    background: #1677ff;
}

/* ==================== 页脚 ==================== */
.footer {
    background: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 40px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
}

.footer-section h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .company-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }
    .navbar .nav-menu {
        display: none;
    }
    .hero-wrapper {
        flex-direction: column;
        height: auto;
    }
    .hero-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .hero-sidebar .side-item {
        white-space: nowrap;
    }
    .hero-main {
        height: 240px;
    }
    .hero-main .hero-content {
        padding: 0 24px;
    }
    .hero-main .hero-content h1 {
        font-size: 24px;
    }
    .hero-stats {
        gap: 30px;
    }
    .feature-cards {
        flex-direction: column;
        padding: 0 16px;
    }
    .jobs-grid {
        grid-template-columns: 1fr;
    }
    .company-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .section {
        padding: 30px 16px;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== 全局固定页眉（site-nav） ==================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-nav-inner {
    height: 48px;
    padding: 0 22px 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-nav .logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.site-nav .logo-link .logo-c {
    font-style: normal;
    color: #34c759;
}

.site-nav .logo-link:hover {
    text-decoration: none;
}

.site-nav .logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    object-fit: contain;
}

.site-nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.site-nav-menu a {
    font-size: 12px;
    color: #1d1d1f;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-decoration: none;
}

.site-nav-menu a:hover {
    opacity: 1;
    text-decoration: none;
}

.site-nav-menu .nav-works {
    color: #0071e3;
    font-weight: 600;
    opacity: 1;
}

.site-nav .nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav .btn-login {
    font-size: 12px;
    color: #0071e3;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 980px;
    transition: background 0.2s;
    text-decoration: none;
}

.site-nav .btn-login:hover {
    background: rgba(0, 113, 227, 0.1);
}

.site-nav .user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0071e3;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.site-nav .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 头像下拉菜单 */
.nav-drop {
    position: relative;
}

.nav-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    min-width: 150px;
    padding: 6px;
    z-index: 1100;
}

.nav-drop:hover .nav-drop-menu {
    display: block;
}

/* 覆盖头像与弹窗之间的间隙，鼠标移向弹窗时不消失 */
.nav-drop-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-drop-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1d1d1f;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-drop-menu a:hover {
    background: #f5f5f7;
    color: #1d1d1f;
    text-decoration: none;
}

.nav-drop-menu a.nav-drop-logout {
    color: #ff3b30;
}

.nav-drop-menu a.nav-drop-logout:hover {
    background: #fff0f0;
}
