/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #e83e8c;
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #ff7eb3 0%, #ff5e83 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.com-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.com-logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: white;
}

.com-logo span {
    margin-left: 10px;
}

.com-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.com-main-nav {
    display: flex;
    flex-wrap: wrap;
    margin-left: 8px;
    margin-right: 8px;
}

.com-main-nav a {
    color: white;
    margin-right: 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.com-main-nav a:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.com-search-box {
    margin-left: auto;
    display: flex;
}

.com-search-box input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.com-search-box button {
    background: #ff3e6c;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

/* 主要内容区域 */
.com-content-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.com-section-header {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff5e83;
    display: flex;
    align-items: center;
}

.com-section-header span {
    margin-right: 10px;
}

/* 面包屑导航 */
.com-breadcrumb {
    background-color: #fff;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.com-breadcrumb a {
    color: #e83e8c;
}

.com-breadcrumb span {
    margin: 0 5px;
    color: #666;
}

/* 首页样式 */
.com-hero-section {
    background-color: #ff5e83;;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.com-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.com-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.com-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.com-hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.com-cta-button {
    display: inline-block;
    background-color: #ff5e83;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.com-cta-button:hover {
    background-color: #ff3e6c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 94, 131, 0.4);
}

.com-news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.com-news-card {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.com-news-card:hover {
    transform: translateY(-5px);
}

.com-news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.com-news-card-content {
    padding: 15px;
}

.com-news-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.com-news-card-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.com-news-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.8rem;
}

.com-news-meta span {
    display: flex;
    align-items: center;
}

.com-news-meta i {
    margin-right: 5px;
}

.com-section-filter {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.com-filter-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.com-filter-item.active {
    border-bottom: 2px solid #ff5e83;
    color: #ff5e83;
    font-weight: bold;
}

.com-filter-item:hover:not(.active) {
    background-color: #f1f1f1;
}

/* 栏目页样式 */
.com-category-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.com-article-item {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.com-article-image {
    flex: 0 0 200px;
}

.com-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.com-article-content {
    flex: 1;
    padding: 20px;
}

.com-article-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.com-article-content p {
    color: #666;
    margin-bottom: 15px;
}

.com-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.com-page-link {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.com-page-link:hover {
    background-color: #ff5e83;
    color: white;
}

.com-page-link.active {
    background-color: #ff5e83;
    color: white;
}

/* 文章页样式 */
.com-article-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.com-article-main {
    flex: 2;
    min-width: 300px;
}

.com-article-sidebar {
    flex: 1;
    min-width: 250px;
}

.com-article-header {
    margin-bottom: 20px;
}

.com-article-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.com-article-meta {
    display: flex;
    gap: 20px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.com-article-meta span {
    display: flex;
    align-items: center;
}

.com-article-meta i {
    margin-right: 5px;
}

.com-featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.com-article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.com-article-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
}

.com-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.com-tag {
    background-color: #f1f1f1;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.com-related-articles {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.com-related-article {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.com-related-article:last-child {
    border-bottom: none;
}

.com-related-article-image {
    flex: 0 0 80px;
    margin-right: 15px;
}

.com-related-article-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.com-related-article-content span {
    font-size: 0.8rem;
    color: #666;
}

.com-comments-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
}

.com-comment {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.com-comment:last-child {
    border-bottom: none;
}

.com-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.com-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.com-author {
    font-weight: bold;
}

.com-comment-date {
    margin-left: auto;
    color: #666;
    font-size: 0.8rem;
}

.com-comment-content p {
    margin-bottom: 10px;
}

.com-comment-form {
    margin-top: 30px;
}

.com-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
    min-height: 100px;
}

.com-submit-button {
    background-color: #ff5e83;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.com-sidebar-widget {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.com-sidebar-widget h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.com-widget-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.com-widget-list li:last-child {
    border-bottom: none;
}

/* 注册页面样式 */
.com-register-form-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.com-form-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.com-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.com-form-group label {
    font-weight: 500;
}

.com-form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.com-register-button {
    background-color: #ff5e83;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.com-register-button:hover {
    background-color: #ff3e6c;
}

.com-form-footer {
    text-align: center;
    margin-top: 20px;
}

.com-form-footer a {
    color: #ff5e83;
}

/* 导航页样式 */
.com-nav-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.com-nav-section {
    flex: 1;
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.com-nav-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.com-nav-links li {
    margin-bottom: 10px;
}

.com-faq-item {
    margin-bottom: 15px;
}

.com-faq-question {
    font-weight: bold;
    margin-bottom: 5px;
    cursor: pointer;
}

.com-faq-answer {
    padding-left: 15px;
    color: #666;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
}

.com-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.com-footer-section {
    flex: 1;
    min-width: 200px;
}

.com-footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.com-footer-links li {
    margin-bottom: 10px;
}

.com-footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.com-footer-links a:hover {
    color: #ff5e83;
    text-decoration: none;
}

.com-social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.com-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    color: white;
    transition: background-color 0.3s ease;
}

.com-social-links a:hover {
    background-color: #ff5e83;
}

.com-copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .com-nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .com-main-nav {
        margin-top: 15px;
        width: 100%;
    }

    .com-main-nav a {
        margin-right: 1rem;
        margin-bottom: 10px;
    }

    .com-search-box {
        margin: 15px 0 0 0;
        width: 100%;
    }

    .com-search-box input {
        flex: 1;
    }

    .com-article-item {
        flex-direction: column;
    }

    .com-article-image {
        flex: auto;
    }

    .com-hero-content h1 {
        font-size: 2rem;
    }

    .com-hero-content p {
        font-size: 1rem;
    }
}

/* 页面隐藏与显示 */
.com-page {
    display: none;
}

.com-page.active {
    display: block;
}

.middle-btn{
    display: flex;
    align-items: center;
    justify-content: center;

}