/* ========== 基础重置 ========== */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "PingFang SC", "Microsoft YaHei", "SF Pro SC", "SF Pro Display", BlinkMacSystemFont, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    margin: 0;
    color: #333;
    background: #f5f7fb;
}

a {
    transition: all 0.25s ease;
    color: #0073b1;
    text-decoration: none;
}

/* 全局页面提示框（成功/失败，不跳转整页） */
.page-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.page-toast-show { opacity: 1; }
.page-toast-success { background: #22a16f; color: #fff; }
.page-toast-error { background: #e54d42; color: #fff; }
.page-toast-info { background: #333; color: #fff; }

/* 全局提示弹窗：固定全屏遮罩 + 绝对定位居中白卡，避免 flex 拉伸变形 */
#page-prompt-mask.page-prompt-mask,
.page-prompt-mask {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.45) !important;
    background-color: rgba(0,0,0,0.45) !important;
    display: none;
    z-index: 99999 !important;
}
/* 与 .contact-modal 同款：留白、间距、按钮右对齐 */
.page-prompt-modal,
#page-prompt-mask .page-prompt-modal {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    background-color: #fff !important;
    border-radius: 16px;
    padding: 22px 24px 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}
.page-prompt-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
    text-align: left;
    white-space: normal;
    word-break: normal;
}
.page-prompt-msg {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    text-align: left;
    white-space: normal;
    word-break: normal;
}
.page-prompt-actions {
    margin-top: 18px;
    text-align: right;
}
.page-prompt-modal .page-prompt-btn {
    display: inline-block;
    width: auto;
    min-width: 0;
    padding: 8px 22px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #0073b1, #4f8dff);
    color: #fff !important;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,115,177,0.25);
}
.page-prompt-modal .page-prompt-btn:hover {
    opacity: 0.92;
    background: linear-gradient(135deg, #006399, #4a7ee8);
}

a:hover,
a:focus {
    color: #3a5ad9;
}

/* ========== 顶部导航 ========== */
.top-header {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    padding: 12px 0 8px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0073b1, #7c8dff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 手机端菜单按钮（右上角三横） */
.header-menu-toggle {
    display: none;
    border: none;
    background: transparent;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.header-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.header-menu-icon {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: #666;
    position: relative;
    border-radius: 1px;
}

.header-menu-icon:before,
.header-menu-icon:after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #666;
    border-radius: 1px;
}

.header-menu-icon:before {
    top: -6px;
}

.header-menu-icon:after {
    top: 6px;
}

.header-menu-panel {
    display: none;
    background: #f4f6f8;
    border-top: 1px solid #e6e6e6;
    padding: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1001;
}

.header-menu-item {
    display: block;
    padding: 14px 16px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #e9e9e9;
}

.header-menu-item:last-child {
    border-bottom: 0;
}

.header-menu-item:hover {
    color: #3a5ad9;
    background: #eef2f6;
}

.top-header.header-menu-open .header-menu-panel {
    display: block;
}

.nav-link {
    padding: 6px 14px;
    font-size: 14px;
    color: #0073b1;
    font-weight: 500;
}

.nav-link:hover {
    color: #3a5ad9;
}

.header-annotation {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e8eaef;
}

.header-annotation p {
    margin: 0;
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* ========== 主内容区 ========== */
#mainbody {
    background: #f5f7fb;
    padding: 0px 0 24px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 搜索与介绍区 ========== */
.hero-section {
    margin-bottom: 28px;
    text-align: center;
}

.hero-search {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    /* 与顶部保持更大距离 */
    margin-top: 32px;
    margin-bottom: 16px;
}

.search-input-wrapper {
    position: relative;
    flex: 1 1 100%;
    max-width: 480px;
}

.search-icon {
    width: 18px;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 13px;
    pointer-events: none;
}

.hero-search input[type="text"] {
    width: 100%;
    padding: 10px 14px 10px 34px;
    border-radius: 24px;
    border: 1px solid #d3d8e6;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.hero-search input[type="text"]:focus {
    border-color: #0073b1;
    box-shadow: 0 0 0 2px rgba(76, 111, 255, 0.15);
}

.btn-search {
    padding: 10px 24px;
    border-radius: 24px;
    border: none;
    background: #111; /* 黑色按钮 */
    color: #fff;      /* 白字 */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-search:hover {
    background: #000;
}

.hero-submit-tip {
    margin-bottom: 12px;
    padding: 12px 16px;
    /* background: #fff; */
    border-radius: 12px;
    /* border: 1px solid #e8eaef; */
}

.hero-submit-tip p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

.hero-contact-item {
    display: inline-flex;
    align-items: center;
    margin-right: 16px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f7fb;
    color: #555;
}

.hero-contact-icon {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #6c63ff;
    margin-right: 6px;
}

.hero-contact-action {
    display: inline-block;
    margin-left: 4px;
}

.submit-demand-link {
    color: #0073b1;
    font-weight: 500;
}

.submit-demand-link:hover {
    text-decoration: underline;
}

.hero-intro {
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    text-align: left;
}

.hero-intro-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 14px;
    color: #c0392b;
    line-height: 1.8;
}

.hero-intro-line:last-child {
    margin-bottom: 0;
}

.hero-intro-bar {
    flex-shrink: 0;
    width: 4px;
    min-height: 1.2em;
    border-radius: 2px;
    background: #3498db;
}

.hero-intro-line .hero-intro-bar {
    margin-top: 6px;
}

.hero-demand {
    margin: 12px;
}

.btn-demand {
    padding: 9px 26px;
    border-radius: 22px;
    border: none;
    background: #111; /* 黑色背景 */
    color: #fff;      /* 白色文字 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-demand:hover {
    background: #000; /* 悬停略深一点 */
}

.demand-modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.demand-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px 24px 20px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.demand-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
}

.demand-modal p {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}

.demand-modal-tip {
    margin-top: 6px;
    font-size: 13px;
    min-height: 18px;
}

.demand-modal textarea,
.demand-modal input[type="text"] {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d3d8e6;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}

.demand-modal textarea {
    min-height: 90px;
    resize: vertical;
}

.demand-modal textarea:focus,
.demand-modal input[type="text"]:focus {
    border-color: #0073b1;
    box-shadow: 0 0 0 2px rgba(76, 111, 255, 0.12);
}

.demand-modal-actions {
    margin-top: 14px;
    text-align: right;
}

.demand-btn-cancel {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 18px;
    border: 1px solid #d0d4dc;
    background: #fff;
    color: #666;
    font-size: 13px;
    margin-right: 8px;
}

.demand-btn-submit {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 18px;
    border: none;
    background: #0073b1;
    color: #fff;
    font-size: 13px;
}

.demand-btn-submit:hover {
    background: #0073b1;
}

/* ========== 会员卡片 ========== */
.contact-modal-mask {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
}

.contact-modal {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px 18px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}

.contact-modal h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.contact-modal p {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
}

.contact-modal-actions {
    margin-top: 18px;
    text-align: right;
}

.contact-modal-btn {
    padding: 8px 22px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, #0073b1, #4f8dff);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.contact-modal-btn:hover {
    opacity: 0.92;
}

.profiles-section {
    margin: 0 auto;
}

.profiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.profile-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.25s ease;
}

.profile-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* 大图：正方形居中显示，固定最大高度，圆角 + 阴影 */
.profile-card-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 140px;
    overflow: hidden;
    border-radius: 16px;
    background: #f0f2f5;
}

.profile-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.profile-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 姓名：中文加粗大字 + 英文略小常规，同一行 */
.profile-card-name {
    margin: 6px 0 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.profile-card-name-cn {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.profile-card-name-en {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    margin-left: 6px;
}

.profile-card-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 简介：多行段落，左对齐 */
.profile-card-intro {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.profile-card-tags {
    margin-top: 0;
    margin-bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 底部：左侧主按钮 + 右侧“查看详情”链接 */
.profile-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-card-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    background: #f5a623;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.profile-card-btn:hover {
    background: #e0941a;
    color: #fff;
}

.profile-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #fff;
    color: #666;
    font-size: 12px;
}

.profile-tag-light {
    background: #f3f5ff;
    color: #0073b1;
}

.profile-footer {
    margin-top: 12px;
    text-align: right;
}

.profile-link {
    font-size: 13px;
    color: #0073b1;
}

.profile-link:hover {
    text-decoration: underline;
}

/* ========== 分页 ========== */
.pagination-wrapper {
    margin-top: 24px;
    text-align: center;
}

/* 默认隐藏“上拉加载更多”提示，仅在手机端显示 */
.pagination-mobile-tip {
    display: none;
}

.pagination-wrapper ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 8px;
    min-width: 36px;
    text-align: center;
}

.pagination-wrapper .active span {
    background: #0073b1;
    color: #fff;
}

.empty-tip {
    text-align: center;
    color: #999;
    padding: 48px 20px;
    font-size: 14px;
}

/* ========== 页脚 ========== */
.footer {
    padding: 20px 0;
    color: #666;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 13px;
}

.footer a {
    color: #555;
}

.footer a:hover {
    color: #333;
}

/* ========== 会员详情页（仿照图片：多张白卡片 + 浅灰底） ========== */
.profile-page #mainbody {
    background: #f0f2f5;
    padding-bottom: 60px;
}

.container-profile {
    padding-top: 12px;
}

.container-profile .back-link {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #0073b1;
}

.container-profile .back-link:hover {
    text-decoration: underline;
}

/* 每块独立白卡片 */
.profile-block {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.profile-block-top {
    padding: 24px;
    /* 顶部卡片与导航/顶部区域之间留出空隙 */
    margin-top: 16px;
}

/* 顶部卡：头像(左) + 姓名(中) + 联系方式按钮(右) 同一行，完全仿照设计图 */
.profile-block-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 0;
}

.profile-detail-avatar {
    flex-shrink: 0;
}

.profile-detail-avatar img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.profile-block-head-right {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

/* 粉色联系方式按钮（圆角 + 轻微阴影 + 聊天气泡图标） */
.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: #0073b1;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 94, 124, 0.35);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-contact:hover {
    /* background: #e84a6a; */
    color: #fff;
    box-shadow: 0 3px 12px rgba(255, 94, 124, 0.4);
}

.btn-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.btn-contact-icon i {
    font-size: 13px;
}

/* 基础信息：昵称 / 英文名 / 性别 / 地点 横向排列，每项上标签下内容 */
.profile-block-basic {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 32px;
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid #eee;
}

.profile-basic-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    min-width: 0;
}

.profile-basic-item-location {
    flex: 1;
    min-width: 120px;
}

.profile-basic-label {
    color: #333;
    font-weight: 500;
}

.profile-basic-item .profile-basic-label {
    flex: 0 0 auto;
}

.profile-basic-value {
    color: #555;
    line-height: 1.6;
}

.profile-basic-item .profile-basic-value {
    flex: 1;
    min-width: 0;
}

/* 区块标题：左侧图标或色条 */
.profile-block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.profile-block-title i {
    font-size: 16px;
}

.profile-block-title-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

/* 蓝色图标标题（教育、个人介绍） */
.profile-block-title-blue i {
    color: #5b8def;
}

/* 粉色/红圆图标标题（工作经历） */
.profile-block-title-pink i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0073b1;
    color: #fff;
    font-size: 12px;
}

/* 红色竖条标题（来源、经验技能、潜在需求等） */
.profile-block-title-bar .title-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: #0073b1;
    flex-shrink: 0;
}

.profile-block-title-bar {
    padding-left: 0;
}

.profile-block-title-bar .title-bar {
    margin-right: 0;
}

/* 区块正文 */
.profile-block-content {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    margin: 0;
    white-space: pre-wrap;
}

.profile-block-content p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
}

.profile-block-content p:last-child {
    margin-bottom: 0;
}

/* 工作经历：每条一个圆点，默认第一个粉色高亮，点击整行切换高亮，左侧灰色竖线 */
.profile-block-content-work {
    display: flex;
    flex-direction: column;
    position: relative;
}

.profile-work-line-bg {
    position: absolute;
    left: 9px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: #ddd;
    pointer-events: none;
}

.profile-work-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 4px 0 10px;
    cursor: default;
    position: relative;
}

.profile-work-item:last-child {
    padding-bottom: 0;
}

.profile-work-dot-wrap {
    flex-shrink: 0;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6px;
}

.profile-work-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    flex-shrink: 0;
}

.profile-work-item-active .profile-work-dot {
    background: #0073b1;
}

.profile-work-item .profile-work-text {
    flex: 1;
    min-width: 0;
    padding-left: 12px;
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
}

/* 教育经历：每条前方形小图标，选中浅蓝底/未选浅灰底，整行可点击切换 */
.profile-edu-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    cursor: default;
}
.profile-edu-item:last-child {
    margin-bottom: 0;
}

.profile-edu-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-edu-icon-wrap {
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-edu-item-active .profile-edu-icon-wrap {
    background: #e8f0fe;
}

.profile-edu-icon-img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.profile-edu-text {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}

.profile-edu-school {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 0;
    line-height: 1.25;
}

.profile-edu-detail {
    font-size: 12px;
    color: #888;
    line-height: 1.25;
}

.profile-block-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-block-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    background: #f0f2f5;
    color: #555;
    font-size: 13px;
}

/* ========== 平板 (≥768px) ========== */
@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .top-header {
        padding: 16px 0 12px;
    }

    .header-logo-img {
        height: 44px;
    }
    .logo-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 20px;
    }

    .header-annotation {
        margin-top: 14px;
        padding-top: 14px;
    }

    .header-annotation p {
        font-size: 14px;
    }

    #mainbody {
        padding: 0px 0 28px;
    }

    .hero-section {
        margin-bottom: 32px;
    }

    .search-input-wrapper {
        flex: 1 1 320px;
    }

    .hero-submit-tip,
    .hero-intro-line {
        font-size: 14px;
    }

    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .profile-card-body {
        padding: 18px 20px 20px;
    }

    .profile-block-top {
        padding: 28px;
    }

    .profile-detail-avatar img {
        width: 96px;
        height: 96px;
    }

    .profile-detail-name {
        font-size: 24px;
    }

    .profile-block {
        padding: 24px;
        margin-bottom: 16px;
    }
}

/* ========== 桌面 (≥992px) ========== */
@media (min-width: 992px) {
    .container {
        padding: 0 32px;
    }

    /* PC 人才卡片图片区域更高一些，避免过扁 */
    .profile-card-img-wrap {
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .profiles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .profile-card-intro {
        -webkit-line-clamp: 4;
    }
}

/* ========== 小屏手机 (<576px) ========== */
@media (max-width: 575px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 12px;
    }

    .top-header {
        padding: 10px 0 8px;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-logo-img {
        height: 36px;
    }
    .logo-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .nav-link {
        padding: 5px 10px;
        font-size: 13px;
    }

    /* 手机端：隐藏右侧登录/注册，显示菜单按钮 */
    .header-nav {
        display: none;
    }

    .header-menu-toggle {
        display: inline-flex;
    }

    /* 让下拉菜单像 FastAdmin 一样铺满并贴着头部 */
    .top-header .container {
        position: relative;
    }

    .header-menu-panel .container {
        padding: 0;
    }

    .header-annotation p {
        font-size: 12px;
    }

    #mainbody {
        padding: 0px 0 24px;
    }

    .hero-search {
        margin-bottom: 12px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
    }

    .hero-search input[type="text"] {
        padding: 9px 12px 9px 34px;
    }

    .search-icon {
        left: 12px;
    }

    .btn-search {
        padding: 0 16px;
        font-size: 13px;
        height: 40px;
        flex-shrink: 0;
        border-radius: 24px;
        margin-left: 8px;
    }

    .search-input-wrapper {
        flex: 1 1 auto;
    }

    .hero-submit-tip {
        padding: 10px 12px;
    }

    .hero-submit-tip p,
    .hero-intro-line {
        font-size: 13px;
    }

    .profiles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .profile-card-body {
        padding: 14px 16px 16px;
    }

    .profile-card-name {
        font-size: 16px;
    }

    .profile-block-top {
        padding: 18px;
    }

    .profile-detail-avatar img {
        width: 68px;
        height: 68px;
    }

    .profile-detail-name {
        font-size: 20px;
    }

    .btn-contact {
        padding: 6px 14px;
        font-size: 13px;
    }

    .profile-block {
        padding: 16px;
        margin-bottom: 10px;
    }

    .profile-block-basic {
        gap: 16px 20px;
    }

    .profile-basic-item,
    .profile-block-content,
    .profile-block-content p {
        font-size: 13px;
    }

    .profile-card-intro {
        -webkit-line-clamp: 2;
    }

    .profile-tag {
        padding: 2px 8px;
        font-size: 11px;
    }

    .pagination-wrapper {
        margin-top: 16px;
    }

    /* 手机端隐藏数字分页，改用下拉加载 */
    .pagination-wrapper ul.pagination {
        display: none;
    }

    .pagination-mobile-tip {
        display: block;
        font-size: 12px;
        color: #999;
        text-align: center;
        padding: 6px 0 4px;
    }

    .footer {
        padding: 16px 0;
    }

    .footer p {
        font-size: 12px;
    }
}
