* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a:hover {
    color: #004c99;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

.logo span {
    margin-left: 10px;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
}

.main-nav a {
    margin-left: 20px;
    font-weight: 500;
}

.search-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.search-bar input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

.search-bar button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
}

/* 主要布局 */
.main-layout {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 侧边导航栏 */
.sidebar {
    width: 200px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    padding: 15px;
    flex-shrink: 0;
}

.sidebar h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

.sidebar h3 span {
    margin-left: 5px;
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar-menu a:hover {
    background-color: #f8f8f8;
}

/* 主内容区 */
.main-content {
    flex: 1;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 10px;
    color: #999;
}

/* 内容区块 */
.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    margin-bottom: 15px;
    color: #e74c3c;
    display: flex;
    align-items: center;
}

.content-section h2 span {
    margin-left: 5px;
}

/* 网址导航页样式 */
.site-list {
    display: flex;
    flex-wrap: wrap;
}

.site-item {
    width: 25%;
    padding: 10px;
    text-align: center;
}

.site-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.site-name {
    font-size: 14px;
    color: #333;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-wrap: wrap;
}

.article-card {
    width: calc(50% - 15px);
    margin-right: 30px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-card:nth-child(even) {
    margin-right: 0;
}

.article-image {
    height: 180px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.article-image img {
    max-width: 100%;
    height: auto;
}


.article-content {
    padding: 15px;
    margin-top: 30px;
    background-color: #dc3545;
    color: white;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.article-meta {
    font-size: 12px;
    color: white;
    margin-bottom: 10px;
}

.article-excerpt {
    font-size: 14px;
    color: white;
}

/* 注册表单 */
.register-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    width: 23%;
    margin-bottom: 20px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #e74c3c;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ddd;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .article-card {
        width: 100%;
        margin-right: 0;
    }

    .site-item {
        width: 33.333%;
    }

    .footer-section {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .site-item {
        width: 50%;
    }

    .footer-section {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        margin: 15px 0;
    }

    .search-bar {
        width: 100%;
        margin-top: 15px;
    }

    .search-bar input {
        flex: 1;
    }

    .site-item {
        width: 100%;
    }
}

/* 页面特定样式 */
/* 首页 */
.hero-banner {
    height: 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.hero-content {
    text-align: center;
    color: #fff;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    max-width: 600px;
}

.hot-topics {
    display: flex;
    flex-wrap: wrap;
}

.hot-topic {
    width: 33.333%;
    padding: 10px;
    text-align: center;
}

.hot-topic-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.hot-topic-title {
    font-size: 16px;
    font-weight: 500;
}

/* 导航页 */
.nav-section {
    margin-bottom: 30px;
}

.nav-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #e74c3c;
}

.nav-title span {
    margin-left: 5px;
}

.faq-list, .why-choose-list {
    list-style: none;
}

.faq-item, .why-choose-item {
    margin-bottom: 15px;
}

.faq-question, .why-choose-title {
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
}

.faq-answer {
    color: #666;
    padding-left: 15px;
    border-left: 3px solid #e74c3c;
}

/* 文章页 */
.article-header {
    margin-bottom: 20px;
}

.article-title-large {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.article-meta-large {
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.article-content-main {
    line-height: 1.8;
    font-size: 16px;
    margin-top: 18px;
    margin-bottom: 18px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.article-content-main p {
    margin-top: 20px;
    margin-bottom: 20px;
}

.article-tags {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.article-tags h3 {
    margin-bottom: 10px;
    color: #666;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 3px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.related-articles {
    margin-top: 40px;
}

/* 注册页面 */
.register-intro {
    margin-bottom: 30px;
}

.register-intro h2 {
    margin-bottom: 15px;
    color: #e74c3c;
}

.register-steps {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.register-step {
    width: 33.333%;
    padding: 15px;
    text-align: center;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    margin-bottom: 10px;
}

/* 页面切换 */
.page-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #e74c3c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 99;
}

/* 页面容器 */
.page-container {
    display: none;
    animation: fadeIn 0.5s;
}

.page-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 分页模块 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    transition: all 0.3s;
}

.pagination a:hover {
    background-color: #f5f5f5;
}

.pagination a.active {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.pagination a.prev, .pagination a.next {
    padding: 8px 15px;
}

.pagination a.prev {
    margin-right: 10px;
}

.pagination a.next {
    margin-left: 10px;
}

#article-page h2, #article-page h3, #article-page p {
    padding: 10px;
}

/* 最佳用户评论模块 */
.best-comments {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.best-comments h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.comment-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 500;
    color: #333;
}

.comment-date {
    color: #999;
    font-size: 14px;
}

.comment-content {
    line-height: 1.6;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.comment-actions button:hover {
    color: #e74c3c;
}

.comment-actions button svg {
    margin-right: 5px;
}

.comment-form {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comment-form h3 {
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 10px;
}

.comment-form button {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

.comment-form button:hover {
    background-color: #c0392b;
}
