* { margin: 0; padding: 0; box-sizing: border-box; }

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

.page { display: none; }
.page.active { display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶部导航 ========== */
.topbar {
    background: rgba(255,255,255,.95);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    color: #1565c0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
    backdrop-filter: blur(10px);
}
.topbar .logo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
}
.topbar .logo-icon { margin-right: 8px; font-size: 20px; }

/* ========== 首页 ========== */
.home-page {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 30%, #90caf9 60%, #e3f2fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* 背景装饰 - 云朵 */
.bg-clouds {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}
.cloud {
    position: absolute;
    background: rgba(255,255,255,.7);
    border-radius: 50%;
}
.cloud::before, .cloud::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,.7);
    border-radius: 50%;
}
.cloud-1 {
    width: 160px; height: 60px;
    top: 10%; left: 8%;
    border-radius: 60px;
    animation: cloudFloat 20s ease-in-out infinite;
}
.cloud-1::before {
    width: 70px; height: 70px;
    top: -35px; left: 30px;
}
.cloud-1::after {
    width: 90px; height: 80px;
    top: -40px; left: 70px;
}
.cloud-2 {
    width: 200px; height: 70px;
    top: 25%; right: 5%;
    border-radius: 70px;
    animation: cloudFloat 25s ease-in-out infinite reverse;
}
.cloud-2::before {
    width: 80px; height: 80px;
    top: -40px; left: 40px;
}
.cloud-2::after {
    width: 100px; height: 90px;
    top: -45px; left: 90px;
}
.cloud-3 {
    width: 120px; height: 45px;
    bottom: 25%; left: 15%;
    border-radius: 45px;
    animation: cloudFloat 18s ease-in-out infinite;
    animation-delay: 5s;
}
.cloud-3::before {
    width: 55px; height: 55px;
    top: -28px; left: 20px;
}
.cloud-3::after {
    width: 70px; height: 60px;
    top: -30px; left: 55px;
}
@keyframes cloudFloat {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* 城市剪影 */
.city-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    opacity: .35;
}
.city-silhouette svg {
    width: 100%;
    height: 100%;
}

/* 圆形装饰 */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.deco-circle-1 {
    width: 300px; height: 300px;
    top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%);
}
.deco-circle-2 {
    width: 200px; height: 200px;
    bottom: 20px; left: -40px;
    background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%);
}

/* 卡片 */
.home-card {
    background: #fff;
    border-radius: 16px;
    padding: 50px 48px 40px;
    max-width: 680px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,.08), 0 2px 10px rgba(0,0,0,.04);
    position: relative;
    z-index: 2;
}
.home-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(21,101,192,.3);
}
.home-card .card-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 4px;
}
.home-card .card-subtitle {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-bottom: 32px;
}
.home-card .card-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1565c0, #42a5f5);
    border-radius: 2px;
    margin: 0 auto 28px;
}

.search-box {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color .3s;
}
.search-box:focus-within {
    border-color: #1565c0;
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 24px;
    font-size: 15px;
    color: #333;
    background: transparent;
}
.search-box input::placeholder { color: #bbb; }
.search-box button {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 15px;
    cursor: pointer;
    transition: all .3s;
    white-space: nowrap;
}
.search-box button:hover {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    box-shadow: 0 2px 12px rgba(21,101,192,.3);
}

.home-card .card-hint {
    text-align: center;
    font-size: 13px;
    color: #bbb;
    margin-top: 20px;
}

/* ========== 列表页 ========== */
.list-page {
    background: #f0f2f5;
    min-height: calc(100vh - 56px);
}

.list-body {
    padding: 24px 0 60px;
    min-height: 300px;
}

/* ========== 【核心修复1：PC端表格不换行、不竖排】 ========== */
.table-wrap {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
    overflow-x: auto; /* 表格超出宽度自动横向滚动 */
    overflow-y: hidden;
    display: block !important; /* 强制PC端显示表格 */
}
table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 1100px; /* 强制表格最小宽度，避免列挤压 */
    table-layout: auto;
}
table thead { background: #f8fafc; }
table thead th {
    padding: 14px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-align: left;
    border-bottom: 2px solid #e8edf2;
    white-space: nowrap !important; /* 强制表头不换行 */
    word-break: keep-all; /* 禁止中文拆字竖排 */
}
table tbody td {
    padding: 14px 12px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap !important; /* 强制内容不换行 */
    word-break: keep-all; /* 禁止中文拆字竖排 */
    line-height: 1.6;
}
/* 长内容列固定最小宽度，避免被挤压 */
table tbody td:nth-child(4), table thead th:nth-child(4) { min-width: 220px; } /* 工作单位 */
table tbody td:nth-child(6), table thead th:nth-child(6) { min-width: 200px; } /* 职务 */
table tbody td:nth-child(7), table thead th:nth-child(7) { min-width: 150px; } /* 专业领域 */

table tbody tr { cursor: pointer; transition: background .2s; }
table tbody tr:hover { background: #e3f2fd; }
.name-cell { color: #1565c0; font-weight: 600; }
.detail-link { color: #1565c0; cursor: pointer; text-decoration: none; font-size: 13px; white-space: nowrap; }
.detail-link:hover { text-decoration: underline; }

.no-result { text-align: center; padding: 80px 20px; color: #999; }
.no-result .icon { font-size: 48px; margin-bottom: 12px; }

/* ========== 【核心修复2：PC端默认隐藏移动端卡片】 ========== */
.card-list { 
    display: none !important; /* 强制PC端隐藏卡片，解决双布局同时显示 */
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 30px 0;
    flex-wrap: wrap;
}
.pagination button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all .2s;
    min-width: 36px;
}
.pagination button:hover:not(:disabled):not(.active) { border-color: #1565c0; color: #1565c0; }
.pagination button.active { background: #1565c0; color: #fff; border-color: #1565c0; }
.pagination button:disabled { color: #ccc; cursor: not-allowed; border-color: #eee; }
.pagination .page-dots { font-size: 14px; color: #999; padding: 0 2px; }

/* ========== 详情页 ========== */
.detail-page {
    background: #f0f2f5;
    min-height: calc(100vh - 56px);
}
.detail-page .container { padding: 30px 20px 50px; }
.detail-page .back-row { margin-bottom: 20px; }
.detail-page .back-row a {
    color: #1565c0;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}
.detail-page .back-row a:hover { text-decoration: underline; }

.detail-card {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.detail-left { flex-shrink: 0; width: 260px; }
.detail-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin-bottom: 20px;
    background: #e0e0e0;
}
.detail-info-list { list-style: none; }
.detail-info-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
    display: flex;
    gap: 8px;
}
.detail-info-list li:last-child { border-bottom: none; }
.detail-info-label { color: #888; white-space: nowrap; }
.detail-info-value { color: #333; }
.detail-right { flex: 1; min-width: 0; }
.detail-name {
    font-size: 28px;
    color: #1565c0;
    font-weight: 600;
    margin-bottom: 24px;
}
.detail-section { margin-bottom: 24px; }
.detail-section-title {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #1565c0;
    background: #e3f2fd;
    padding: 6px 16px;
    margin-bottom: 14px;
    border-radius: 4px;
}
.detail-section-content {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    text-align: justify;
}
.detail-field-tags { font-size: 15px; color: #444; }
.detail-name--mobile { display: none; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .home-page { padding: 30px 16px; }
    .home-card { padding: 36px 24px 30px; }
    .home-card .card-title { font-size: 22px; letter-spacing: 2px; }
    .home-card .card-icon { width: 60px; height: 60px; font-size: 28px; }
    .search-box input { padding: 12px 16px; font-size: 14px; }
    .search-box button { padding: 12px 18px; font-size: 14px; }
    .city-silhouette { height: 100px; }

    /* ========== 【核心修复3：移动端切换布局，加!important保证优先级】 ========== */
    .table-wrap { display: none !important; } /* 移动端隐藏表格 */
    .card-list { display: block !important; } /* 移动端显示卡片 */

    .card-list .card-item {
        background: #fff;
        border-radius: 10px;
        padding: 16px;
        margin-bottom: 10px;
        box-shadow: 0 1px 4px rgba(0,0,0,.04);
        cursor: pointer;
        transition: background .2s;
    }
    .card-list .card-item:active { background: #e3f2fd; } /* 移动端触摸反馈 */
    .card-item .card-name {
        font-size: 17px;
        color: #1565c0;
        font-weight: 600;
        margin-bottom: 8px;
    }
    .card-item .card-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 14px;
        font-size: 13px;
        color: #666;
    }

    /* 详情 */
    .detail-card { flex-direction: column; padding: 20px; gap: 20px; }
    .detail-left { width: 100%; display: flex; flex-direction: column; align-items: center; }
    .detail-photo { width: 180px; margin-bottom: 14px; }
    .detail-info-list { width: 100%; }
    .detail-name--desktop { display: none; }
    .detail-name--mobile { display: block; font-size: 22px; color: #1565c0; font-weight: 600; text-align: center; margin-bottom: 4px; }
}

@media (max-width: 480px) {
    .home-card { padding: 28px 18px 24px; }
    .home-card .card-title { font-size: 20px; }
    .search-box { border-radius: 30px; }
    .search-box input { padding: 10px 14px; font-size: 13px; }
    .search-box button { padding: 10px 14px; font-size: 13px; }
    .city-silhouette { height: 70px; opacity: .25; }
    .detail-photo { width: 150px; }
    .detail-section-title { font-size: 14px; padding: 4px 12px; }
    .detail-section-content, .detail-field-tags { font-size: 14px; }
    .detail-info-list li { font-size: 13px; }
    .detail-name--mobile { font-size: 20px; }
    .pagination button { padding: 6px 10px; font-size: 13px; }
}