/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

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

/* 顶部导航栏 */
.header {
    background-color: #1A1F26;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF6A00;
}

.register-btn {
    background-color: #FF6A00;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.register-btn:hover {
    background-color: #E65C00;
    color: #ffffff;
}

/* LOGO与搜索区 */
.logo-search-section {
    background-color: #ffffff;
    padding: 24px 0;
    margin-top: 60px;
    border-bottom: 1px solid #CCCCCC;
}

.logo-search-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    flex-shrink: 0;
}

.logo {
    height: 48px;
    width: auto;
}

.search-area {
    flex: 1;
    max-width: 600px;
    margin-left: 40px;
}

.search-box {
    display: flex;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: #FF6A00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-btn {
    background-color: #FF6A00;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #E65C00;
}

/* 主横幅 */
.hero-banner {
    background: linear-gradient(rgba(26, 31, 38, 0.8), rgba(26, 31, 38, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-left {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #ffffff;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #FF6A00;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #ffffff;
}

.hero-right {
    flex-shrink: 0;
    width: 350px;
}

.mobile-login {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 8px;
    color: #333333;
}

.mobile-login h3 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
    color: #333333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-input {
    padding: 12px 16px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-input:focus {
    border-color: #FF6A00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
}

.login-submit {
    background-color: #FF6A00;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-submit:hover {
    background-color: #E65C00;
}

.login-tip {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-top: 16px;
}

/* 区域标题 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 40px;
    text-align: center;
}

/* 热门岗位区域 */
.hot-jobs-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.jobs-container {
    display: flex;
    gap: 40px;
}

.industry-selector {
    flex-shrink: 0;
    width: 200px;
}

.selector-item {
    padding: 16px 20px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.selector-item:hover,
.selector-item.active {
    background-color: #FF6A00;
    color: #ffffff;
    border-color: #FF6A00;
}

.jobs-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.job-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.job-company {
    font-size: 16px;
    color: #666666;
    margin-bottom: 12px;
}

.job-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.job-salary {
    font-size: 16px;
    font-weight: 600;
    color: #FF6A00;
}

.job-location {
    font-size: 14px;
    color: #666666;
}

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

.job-tag {
    background-color: #FFF0E6;
    color: #FF6A00;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 合作企业展示区 */
.partners-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.partner-item {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.partner-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.partner-item img {
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

/* 事业单位招考区 */
.public-institutions-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.institution-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.institution-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.institution-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.institution-item p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.publish-time {
    font-size: 12px;
    color: #999999;
}

/* 服务矩阵 */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.service-item {
    background-color: #ffffff;
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.service-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.service-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
}

/* 分领域招聘 */
.sector-recruitment-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.sector-item {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sector-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sector-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
}

.sector-item p {
    font-size: 14px;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.sector-link {
    color: #FF6A00;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.sector-link:hover {
    color: #E65C00;
}

/* 求职者招募大图 */
.recruitment-banner {
    background: linear-gradient(rgba(255, 106, 0, 0.9), rgba(255, 106, 0, 0.9)), url('../images/recruitment-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    color: #ffffff;
}

.banner-content h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 32px;
}

.cta-button {
    background-color: #ffffff;
    color: #FF6A00;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 网站尾部 */
.footer {
    background-color: #1A1F26;
    color: #ffffff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #FF6A00;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #333333;
    padding-top: 20px;
    text-align: center;
    color: #cccccc;
    font-size: 14px;
}

/* 悬浮咨询框 */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1000;
}

.contact-trigger {
    background-color: #FF6A00;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-trigger:hover {
    background-color: #E65C00;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 20px;
}

.contact-text {
    font-weight: 500;
}

.contact-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 320px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.contact-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panel-header {
    background-color: #FF6A00;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h4 {
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 16px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #FF6A00;
    box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.2);
}

.contact-form textarea {
    resize: vertical;
    font-family: inherit;
}

.contact-form button {
    background-color: #FF6A00;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #E65C00;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .hero-right {
        width: 300px;
    }
}

@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .nav-left,
    .nav-right {
        gap: 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-right {
        width: 100%;
        max-width: 400px;
    }
    
    .jobs-container {
        flex-direction: column;
    }
    
    .industry-selector {
        width: 100%;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    
    .selector-item {
        white-space: nowrap;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-left,
    .nav-right {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .logo-search-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-area {
        margin-left: 0;
        max-width: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .jobs-grid,
    .partners-grid,
    .institutions-grid,
    .services-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .floating-contact {
        right: 16px;
        bottom: 20px;
    }
    
    .contact-panel {
        width: calc(100vw - 32px);
        right: 0;
    }
}

@media (max-width: 479px) {
    .nav-left {
        display: none;
    }
    
    .hero-banner {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .mobile-login {
        padding: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .recruitment-banner {
        padding: 60px 0;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}
