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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 粘性页脚 */
footer {
    margin-top: auto;
}

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

/* 导航栏 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #667eea;
}

.login-buttons .btn {
    margin-left: 10px;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-btn {
    background-color: #667eea;
    color: white;
}

.admin-btn:hover {
    background-color: #5a6fd8;
}

.employee-btn {
    background-color: #2da0a8;
    color: white;
}

.employee-btn:hover {
    background-color: #248a91;
}

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.search-section h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

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

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    outline: none;
}

.search-btn {
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    background-color: #667eea;
    color: white;
}

.search-btn:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
}

/* 分类区域 */
.categories-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.categories-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

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

.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.category-card i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.category-card p {
    color: #666;
    margin-bottom: 25px;
}

.category-card .btn {
    background-color: #667eea;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card .btn:hover {
    background-color: #5a6fd8;
}

/* 内容区域 */
.hot-content-section, .latest-content-section {
    padding: 80px 0;
    background-color: white;
}

.latest-content-section {
    background-color: #f8f9fa;
}

.hot-content-section h2, .latest-content-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.content-item h3 {
    margin-bottom: 0;
    flex: 1;
    margin-right: 20px;
}

.content-item h3 a {
    color: #333;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

.content-item h3 a:hover {
    color: #667eea;
}

.content-item .meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.content-item .meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.empty-content {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 10px;
}

/* 页脚 */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0;
    margin-top: auto;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-logo i {
    margin-right: 10px;
    font-size: 28px;
    color: #667eea;
}

.footer-links a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}



/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    
    nav {
        margin: 15px 0;
    }
    
    .search-section h1 {
        font-size: 36px;
    }
    
    .search-section p {
        font-size: 18px;
    }
    
    .search-box {
        flex-direction: column;
        padding: 15px;
        border-radius: 15px;
    }
    
    .search-box input {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .search-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    footer .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 20px;
    }
    
    .footer-links a {
        display: block;
        margin: 10px 0;
    }
    
    .content-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-item h3 {
        margin-bottom: 10px;
        margin-right: 0;
    }
}
