/* style.css - 提取所有内联样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* 顶部导航栏 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.logo {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
}

.search-input {
    width: 200px;
    height: 36px;
    padding: 0 15px 0 35px;
    border: 1px solid #eee;
    border-radius: 18px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #3498db;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 14px;
}

.dropdown-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 10px 0;
    width: 150px;
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f8f8f8;
    color: #3498db;
}

/* 主体内容区 */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 专题板块 */
.topic-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.topic-item {
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background-color 0.3s;
}

.topic-item:hover {
    background-color: #e9ecef;
    color: #3498db;
}

/* 分类板块 */
.category-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.category-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.category-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.category-card h3 {
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.category-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-item {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-item:hover {
    background-color: #3498db;
    color: #fff;
}

/* 底部 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 40px 20px;
    margin-top: 50px;
}

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

.footer-nav {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #3498db;
}

.copyright {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.gnlogo {
    width: 15px;
    height: 15px;
    margin-left: 5px;
    margin-right: 2px;
}

a {
    color: gray;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .search-input {
        width: 150px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}