/* 职就帮网站公共样式文件 */
:root {
    --primary-color: #e81123;
    --primary-light: #fde8ea;
    --primary-dark: #c00e1d;
    --secondary-color: #2c3e50;
    --accent-color: #f39c12;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --text-color: #444;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 17, 35, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    height: 40px; /* 缩小logo高度 */
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
}

.logo h1 {
    font-size: 24px;
    color: #000; /* 改为黑色 */
    margin-left: 10px;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.login-buttons {
    display: flex;
}

.login-btn {
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

/* 修改登录按钮样式 */
.school-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.enterprise-btn, .teacher-btn, .student-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.school-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(232, 17, 35, 0.3);
}

.enterprise-btn:hover, .teacher-btn:hover, .student-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.login-btn:hover, .login-btn.active {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.user-center-btn {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
}

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

.user-buttons {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Banner轮播图 */
.banner {
    position: relative;
    height: 550px;
    overflow: hidden;
    margin-bottom: 60px;
}

.slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slide-1 { 
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f0ff 100%);
}

.slide-2 { 
    background: linear-gradient(135deg, #fff0f5 0%, #ffeef0 100%);
}

.slide-3 { 
    background: linear-gradient(135deg, #f0fff0 0%, #e8f8e8 100%);
}

.slide-content {
    text-align: center;
    color: var(--dark-gray);
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #555;
}

.banner-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
}

.control-dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* 服务区域 */
.services {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.service-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto 40px;
}

.tab-btn {
    padding: 12px 30px;
    margin: 0 5px;
    background-color: transparent;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    text-align: center;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content.active {
    display: block;
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.service-img {
    height: 180px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, var(--primary-light), rgba(255,255,255,0.8));
    opacity: 0.7;
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-info p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* 视频和招聘列表 */
.list-section {
    padding: 80px 0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.list-header h3 {
    font-size: 28px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 15px;
}

.list-header h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.view-all i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.view-all:hover i {
    transform: translateX(5px);
}

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

.list-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.item-img {
    height: 160px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.item-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: var(--transition);
}

.item-img:hover::before {
    opacity: 1;
}

.item-img:hover .view-text {
    transform: scale(1.1);
}

.view-text {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.item-info {
    padding: 20px;
}

.item-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-gray);
    line-height: 1.4;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 14px;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 20px;
    opacity: 0.9;
}

/* 网格布局 */
.grid-2, .grid-3 {
    display: grid;
    gap: 30px;
}

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

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

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.card-img {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    opacity: 0;
    transition: var(--transition);
}

.card-img:hover::before {
    opacity: 1;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card-text {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* 底部区域 */
.footer {
    background-color: var(--secondary-color);
    color: #ecf0f1;
    padding: 70px 0 30px;
    margin-top: auto;
}

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

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.footer-links a {
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px; /* 缩小间隙 */
}

.app-item {
    position: relative;
    background-color: rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    padding: 10px; /* 缩小内边距 */
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    transform: scale(0.85); /* 整体缩小30% */
    transform-origin: center;
}

.app-item:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-3px) scale(0.85);
}

.app-item .qrcode {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px;
    display: none;
    z-index: 100;
    margin-bottom: 10px;
}

.app-item:hover .qrcode {
    display: block;
    animation: fadeIn 0.3s ease;
}

.app-icon {
    font-size: 18px; /* 缩小图标 */
    margin-bottom: 5px; /* 缩小间距 */
    color: var(--primary-color);
}

.app-name {
    font-size: 12px; /* 缩小字体 */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #95a5a6;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.qrcode-img {
    width: 200px;
    height: 200px;
    background-color: #f8f9fa;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border: 1px solid #eee;
    border-radius: 8px;
}

.modal-desc {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.close-modal {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: var(--primary-dark);
}

/* 登录页面样式 */
.login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 90%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-form-container {
    padding: 50px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 17, 35, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-bottom: 20px;
}

.login-divider {
    text-align: center;
    position: relative;
    margin: 30px 0;
    color: #999;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
    z-index: 1;
}

.login-divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: #333;
    transition: var(--transition);
}

.social-btn:hover {
    background: #f9f9f9;
}

.social-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.wechat-btn:hover {
    border-color: #09bb07;
    color: #09bb07;
}

.qq-btn:hover {
    border-color: #12b7f5;
    color: #12b7f5;
}

.register-link {
    text-align: center;
    color: #666;
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.login-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px;
    display: flex;
    align-items: center;
}

.info-content h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.feature-list li i {
    font-size: 24px;
    margin-right: 15px;
    margin-top: 5px;
}

.feature-list h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-list p {
    opacity: 0.9;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
        text-align: center;
    }
    
    .nav-links a {
        padding: 15px;
        display: block;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .login-buttons {
        display: none;
    }
    
    .banner {
        height: 450px;
    }
    
    .slide-content h2 {
        font-size: 28px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .service-tabs, .tab-buttons {
        flex-direction: column;
        border-radius: 10px;
    }
    
    .tab-btn {
        margin: 5px 0;
        border-radius: 5px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-header h3 {
        margin-bottom: 15px;
    }
    
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .login-info {
        display: none;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .banner {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .item-list {
        grid-template-columns: 1fr;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
}