﻿/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 导航菜单 */
.nav-menu {
    background: white;
    border-radius: 8px;
    padding: 10px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
    justify-content: center;
}

.nav-menu a {
    color: #495057;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

/* 搜索区域 */
.search-area {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
}

.search-select {
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    background: white;
}

.search-button {
    padding: 10px 25px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #0056b3;
}

/* 内容区域 */
.content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.main-content {
    display: grid;
    gap: 20px;
}

.sidebar {
    display: grid;
    gap: 20px;
}

/* 卡片组件 */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.card-header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #495057;
}

.card-header a {
    color: inherit;
}

.card-header a:hover {
    color: #007bff;
}

/* 信息列表 */
.info-list {
    list-style: none;
}

.info-list li {
    padding: 0;
    border-bottom: 1px solid #f1f3f4;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list a {
    color: #495057;
    display: block;
    padding: 5px 0;
}

.info-list a:hover {
    color: #007bff;
}

.info-date {
    color: #6c757d;
    font-size: 12px;
    margin-left: 8px;
}
.sub-categories td{
    padding: 8px 0;
}
/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #007bff;
}

.category-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}

.sub-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.sub-categories a {
    background: #e9ecef;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    color: #495057;
}

.sub-categories a:hover {
    background: #007bff;
    color: white;
}

/* 页脚 */
.footer {
    background: #343a40;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin: 15px 0;
}

.footer-links a {
    color: #adb5bd;
    margin: 0 10px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #6c757d;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .header-top {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.p-20 { padding: 20px; }

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

/* 信息详情页面样式 */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.info-header {
    border-bottom: 2px solid #007bff;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.info-header h1 {
    color: #495057;
    font-size: 24px;
    margin-bottom: 10px;
}

.info-meta {
    color: #6c757d;
    font-size: 14px;
}

.info-content {
    display: inline-block;
    grid-template-columns: 1fr 200px;
    gap: 30px;
    margin: 20px 0;
}

.info-main {
    display: grid;
    gap: 20px;
}

.info-text {
    line-height: 1.8;
    color: #495057;
    font-size: 15px;
}

.info-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    color: #856404;
}

.contact-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #007bff;
}

.info-sidebar {
    display: none;
}

.info-sidebar img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 评论区域 */
.comments-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.comments-section h3 {
    color: #495057;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.comment-item {
    border-bottom: 1px solid #e9ecef;
    padding: 15px 0;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6c757d;
}

.comment-author {
    font-weight: bold;
    color: #495057;
}

.comment-content {
    color: #495057;
    line-height: 1.6;
}

/* 评论表单 */
.comment-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comment-form h3 {
    color: #495057;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.comment-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

.comment-textarea:focus {
    outline: none;
    border-color: #007bff;
}

.comment-limit {
    color: #6c757d;
    font-size: 12px;
    margin: 5px 0 15px;
}

/* 分页样式 */
.AspNetPager {
    margin: 20px 0;
    text-align: center;
}

.AspNetPager a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #007bff;
    text-decoration: none;
}

.AspNetPager a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.AspNetPager span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 2px;
    border: 1px solid #007bff;
    border-radius: 5px;
    background: #007bff;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .info-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-header h1 {
        font-size: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 5px;
    }
}
