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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}


.black_overlay{display:none;position: fixed;top:0%;left:0%;width:100%;height:100%;background-color:black;z-index:1001;-moz-opacity:0.6;opacity:.60;filter:alpha(opacity=60);}
			.blank_content{display:none;position:fixed;top:35%;left:40%;width:50%;height:270px;z-index:1002;width:470px;border-radius:5px;padding:5px; background: #FFFFFF; }
			.blank_content h2{height:40px;line-height:40px;clear:both;font-size:18px;padding:0px 5px 0px 10px;font-weight:normal}
			.blank_content h2 span{float:right}
			.blank_content h3{height:40px;line-height:40px;clear:both;font-size:18px}
			.blank_content h3 a{color:#ee2e2c}
			.blank_content .open{padding:10px 15px 20px 15px;overflow:hidden;}
			.blank_content .open img{width: 100%;}


/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
    background-color: #f0f8ff;
}

/* Banner样式 */
.banner {
    /*background: linear-gradient(135deg, #3498db, #8e44ad);*/
   background-image: url(../images/banner.jpg);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

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

.btn-secondary {
    background-color: #ecf0f1;
    color: #333;
    border: 1px solid #bdc3c7;
}

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

/* 主要内容样式 */
main {
    padding: 40px 0;
}

section {
    margin-bottom: 50px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 10px;
}



/* 网格布局 */
.job-grid,
.second-hand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* 卡片样式 */
.job-card,
.second-hand-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.job-card:hover,
.second-hand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.job-card-image{
    height: 200px;
    overflow: hidden;
}

.second-hand-card-image {
    height: 360px;
    overflow: hidden;
}

.job-card-image img,
.second-hand-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.job-card:hover .job-card-image img,
.second-hand-card:hover .second-hand-card-image img {
    transform: scale(1.05);
}

.job-card-content,
.second-hand-card-content {
    padding: 20px;
}

.job-card-title,
.second-hand-card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.job-card-title a,
.second-hand-card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.job-card-title a:hover,
.second-hand-card-title a:hover {
    color: #3498db;
}

.job-card-info,
.second-hand-card-info {
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 14px;
}

.job-card-desc,
.second-hand-card-desc {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #7f8c8d;
}

/* 列表页样式 */
.job-list,
.second-hand-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-list-item,
.second-hand-list-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.job-list-item:hover,
.second-hand-list-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.job-list-item a,
.second-hand-list-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.list-item-image {
    width: 240px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.list-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-content {
    flex: 1;
}

.list-item-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.list-item-info {
    margin-bottom: 10px;
    color: #7f8c8d;
    font-size: 14px;
}

.list-item-desc {
    color: #555;
    line-height: 1.6;
}

/* 详情页样式 */
.job-detail,
.second-hand-detail {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.detail-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: #7f8c8d;
}

.detail-image {
    width: 100%;
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

.detail-content {
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.detail-content h3 {
    color: #2c3e50;
    margin: 25px 0 15px;
}

.detail-content p {
    margin-bottom: 15px;
}

/* 发布人信息样式 */
.publisher-info {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.publisher-info h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.publisher-details {
    display: flex;
    align-items: center;
}

.publisher-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.publisher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publisher-text-info {
    flex: 1;
}

.publisher-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.publisher-contact {
    color: #7f8c8d;
    margin-bottom: 5px;
}

.publisher-contact strong {
    color: #2c3e50;
}

/* 表单样式 */
.post-form,
.login-form-container,
.register-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    margin-top: 20px;
}

.form-links {
    margin-top: 20px;
    text-align: center;
}

.form-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-info h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info p,
.footer-links ul,
.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* 返回按钮样式 */
.back-btn {
    margin-top: 30px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        padding: 10px 20px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 5px 10px;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: center;
    }
    
    .job-grid,
    .second-hand-grid {
        grid-template-columns: 1fr;
    }
    
    .job-list-item a,
    .second-hand-list-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .list-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .publisher-details {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .publisher-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 60px 0;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .job-detail,
    .second-hand-detail,
    .post-form,
    .login-form-container,
    .register-form-container {
        padding: 20px;
    }
    
    .footer-content {
        gap: 20px;
    }
}