/* 基础样式 */
:root {
    --primary-color: #4169E1;
    --secondary-color: #6C63FF;
    --accent-color: #FF6B6B;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f0f5ff;
    --border-color: #e1e4e8;
    --blue-icon: #4169E1;
    --orange-icon: #FF9F43;
    --purple-icon: #6C63FF;
}

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

body {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover:after {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #3658c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--light-text);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

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

/* 导航栏样式 */
header {
    width: 100%;
    background-color: white;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    padding: 0 40px;
    width: 100%;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* 确保页脚logo样式也正确 */
.footer-logo-section img {
    max-width: 245px;
    max-height: 46px;
    object-fit: contain;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    margin-right: 200px;
    align-items: center;
    list-style: none;
}

.nav-menu li {
    margin: 0 20px;
}

.nav-menu a {
    font-weight: 400;
    font-size: 14px;
    color: #333;
    transition: color 0.3s;
    position: relative;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    height: 70px;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover:after {
    width: 0; /* hover 时不显示下划线 */
}

/* 确保 active 状态的下划线在 hover 时也显示 */
.nav-menu a.active:hover:after {
    width: 45px !important; /* active 状态下 hover 时也显示下划线 */
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 2px;
    background-color: var(--primary-color);
    width: 45px;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

/* hover 下划线效果已移除 - 只保留文字变蓝 */
/* .nav-menu a:hover:after {
    width: 45px;
} */

.nav-menu .nav-gift-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    vertical-align: middle;
    display: inline-block;
}

/* Resources 下拉菜单样式 */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-link {
    cursor: pointer;
    padding: 0 14px;
}

/* 保持 active 状态的下划线显示，优先级更高 */
.nav-dropdown .nav-link.active:after,
.nav-dropdown .nav-link.active:hover:after {
    content: '' !important;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 2px;
    background-color: var(--primary-color);
    width: 45px !important;
}

.nav-dropdown .nav-link .dropdown-arrow {
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    padding: 2.5px;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease;
    object-fit: contain;
    box-sizing: border-box;
    margin-left: 0;
}

/* 当展开状态（图标为 up）时，添加背景色 */
.nav-dropdown.active .nav-link .dropdown-arrow {
    background: #F7F9FD;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    min-height: 160px;
    border-radius: 8px;
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(-10px);
    z-index: 1000;
    list-style: none;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: flex-start !important;
    width: 100%;
    min-height: 60px;
    padding: 8px 12px !important;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 0;
}

.dropdown-item:hover {
    background: #F7F9FD;
}

.dropdown-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    border-radius: 2px;
    object-fit: contain;
    margin-top: 2px;
}

.dropdown-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dropdown-title {
    font-family: PingFangSC-Medium, 'PingFang SC', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #17181A;
    margin-bottom: 4px;
}

.dropdown-subtitle {
    font-family: PingFangSC-Regular, 'PingFang SC', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #7C7D81;
}

.blue-btn {
    background-color: #3366ff;
    color: white;
    border-radius: 4px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

.blue-btn:hover {
    background-color: #2952cc;
}

.blue-btn2 {
    background-color: #3366ff;
    color: white;
    border-radius: 4px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
}

.blue-btn2:hover {
    background-color: #2952cc;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 主标题区域样式 */
.hero {
    padding: 80px 0;
    background: linear-gradient(to right, #f8f9ff, #e8eeff);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/wave-bg.png');
    background-size: cover;
    opacity: 0.3;
    z-index: 0;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #333;
}

.hero p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 15px;
}

.feature i {
    color: var(--primary-color);
    margin-right: 8px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 数据统计样式 */
.stats {
    padding: 60px 0;
    background-color: white;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 16px;
    color: var(--light-text);
}

/* 优势卡片样式 */
.advantages {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.advantage-cards {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.advantage-card {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin: 0 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.advantage-card .icon i {
    font-size: 24px;
    color: white;
}

.advantage-card .blue {
    background-color: var(--blue-icon);
}

.advantage-card .orange {
    background-color: var(--orange-icon);
}

.advantage-card .purple {
    background-color: var(--purple-icon);
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.advantage-card p {
    color: var(--light-text);
    font-size: 14px;
}

/* AI人才推荐样式 */
.ai-recommendation {
    padding: 80px 0;
    background-color: white;
}

.feature-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.feature-tab {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* .feature-tab:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
} */

.feature-tab img {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.feature-tab h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-tab p {
    color: var(--light-text);
    font-size: 14px;
}

/* 全球人才分布样式 */
.global-talent {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.world-map {
    text-align: center;
    margin-bottom: 40px;
}

.world-map img {
    max-width: 100%;
    height: auto;
}

/* 行业覆盖样式 */
.industries {
    padding: 80px 0;
    background-color: white;
}

.industry-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.industry-icon {
    width: 120px;
    text-align: center;
    margin: 20px;
}

.industry-icon i {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.industry-icon:hover i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.industry-icon p {
    font-size: 14px;
}

/* CTA区域样式 */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta .primary-btn {
    background-color: white;
    color: var(--primary-color);
}

.cta .primary-btn:hover {
    background-color: #f0f0f0;
}

/* 页脚样式 */
footer {
    width: 100%;
    background-image: url('../images/backgrounds/footer-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 60px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 0 0 auto;
}

.footer-logo-section img {
    max-width: 245px;
    max-height: 46px;
    object-fit: contain;
    display: block;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-nav {
    flex: 1;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: white;
}

.footer-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-contact p a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-contact p a:hover {
    color: white;
}

.copyright {
    padding-top: 30px;
}

.copyright .container {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 30px;
}

.copyright .record-box {
    text-align: left;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* 删除这一行 */
/* @import 'modules/hero.css'; */
.qw-white {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
    min-width: 195px;
}

.qw-white-img-box {
    width: 48px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #008DFA;
    border-radius: 4px 0 0 4px;
}

.qw-white-img {
    width: 32px;
    height: 24px;

}

.qw-white-text {
    border: 1px solid #008DFA;
    border-radius: 0 4px 4px 0;
    font-family: PingFangSC-Regular;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 16px;
    color: #008DFA;
    padding: 0px 16px;
    white-space: nowrap;
}

.talentseek-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.hero-image-box {
    display: flex;
    align-items: center;
}

.hero-image-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    font-size: 16px;
    color: #17181A;
    min-width: 200px;
    height: 44px;
    background: #FFFFFF;
    border-radius: 4px;
    margin-right: 10px;
    cursor: pointer;
    white-space: nowrap;
    padding: 0 16px;
}

.hero-image-item img {
    width: 32px;
    height: 24px;
    margin-right: 10px;
}

.hero-image-item:nth-child(2) {
    background: #3457DC;
    color: #fff;
}

/* Resources 博客区域样式 */
.resources-section {
    padding: 80px 0;
    background: linear-gradient(to right, #f0f4ff, #ffffff);
    position: relative;
    background-image: url('../images/blogs-bg.png');
    background-size: contain;
    background-position: right top;
    background-repeat: no-repeat;
    min-height: 250px;
}

.resources-header {
    text-align: left;
    margin-bottom: 50px;
    padding-left: 20px;
}

.resources-label {
    font-size: 14px;
    color: #999;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resources-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.resources-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resources-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.resources-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 0;
}

.resources-title-main {
    font-size: 48px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}


.resources-subtitle {
    font-size: 18px;
    color: #7C7D81;
    max-width: 800px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.resources-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.resources-count {
    font-size: 14px;
    color: #17181A;
    font-weight: 400;
    margin-top: 30px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-size: 14px;
    color: #999;
    margin-top: 38px;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    grid-column: 1 / -1;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    width: 100%;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e1e4e8;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    line-height: 1;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f5f7ff;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination-btn.active:hover {
    background: var(--primary-color);
    color: #fff;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
    border-color: #e1e4e8;
    color: #999;
}

.pagination-btn.pagination-arrow {
    border: none !important;
    background: transparent !important;
    min-width: auto;
    padding: 0 8px;
    color: #333 !important;
    font-weight: 600;
    font-size: 16px;
}

.pagination-btn.pagination-arrow:hover:not(:disabled) {
    border: none !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.pagination-btn.pagination-arrow:disabled {
    border: none !important;
    background: transparent !important;
    opacity: 0.6;
    color: #333 !important;
    font-weight: 600;
}

.pagination-ellipsis {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e1e4e8;
    background: #fff;
    color: #999;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    pointer-events: none;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .resources-header {
        padding-left: 20px;
    }
    
    .resources-title-wrapper {
        gap: 10px;
    }
    
    .resources-logo {
        width: 50px;
        height: 50px;
    }
    
    .resources-title-main {
        font-size: 32px;
    }
    
    .resources-title-sub {
        font-size: 24px;
    }
    
    .resources-subtitle {
        font-size: 16px;
    }
    
    .resources-logo {
        width: 50px;
        height: 50px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .resources-header {
        padding-left: 20px;
    }
    
    .resources-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .resources-title-main {
        font-size: 28px;
    }
    
    .resources-title-sub {
        font-size: 20px;
    }
    
    .resources-logo {
        width: 40px;
        height: 40px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}