
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff3366;
    --secondary-color: #663399;
    --accent-color: #ffcc00;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --text-color: #444;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo span {
    margin-right: 10px;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-bar {
    display: flex;
    margin-bottom: 15px;
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
}

.search-bar button {
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--dark-color);
    border: none;
    border-radius: 0 30px 30px 0;
    font-weight: bold;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 5px;
}

nav li {
    flex: 1;
    text-align: center;
}

nav a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

/* 主内容区域 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
    gap: 20px;
}

.page {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

.home-page .featured-news {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.featured-card {
    position: relative;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.featured-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.news-card {
    flex: 1 1 calc(33.333% - 20px);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
    margin-top: 10px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
}

/* 文章页样式 */
.article-header {
    margin-bottom: 20px;
}

.article-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.article-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.article-content p {
    margin-bottom: 20px;
}

.related-articles {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.related-card {
    flex: 1 1 calc(33.333% - 20px);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.comments-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
    min-height: 100px;
}

.comment-list {
    margin-top: 30px;
}

.comment {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #777;
    font-size: 14px;
}

/* 注册页样式 */
.register-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.register-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
}

.register-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.register-btn:hover {
    background: #e62e5c;
}

/* 网址导航页样式 */
.nav-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.nav-category {
    padding: 10px 20px;
    background: rgba(102, 51, 153, 0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-category.active, .nav-category:hover {
    background: var(--secondary-color);
    color: white;
}

.nav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.nav-card {
    flex: 1 1 calc(25% - 20px);
    min-width: 200px;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.nav-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.nav-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.nav-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.nav-card a:hover {
    text-decoration: underline;
}

.nav-description {
    margin-top: 10px;
    font-size: 14px;
    color: #777;
}

.why-us, .faq {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
}

.why-us h2, .faq h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit {
    flex: 1 1 calc(33.333% - 20px);
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.faq-question {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.faq-question::before {
    content: "❓";
    margin-right: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination a {
    display: block;
    padding: 8px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    text-decoration: none;
    color: var(--dark-color);
}

.pagination a.active, .pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 底部样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1 1 300px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #777;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-card, .related-card, .nav-card {
        flex: 1 1 100%;
    }

    .featured-card {
        height: 300px;
    }

    .benefit {
        flex: 1 1 100%;
    }

    nav ul {
        flex-wrap: wrap;
    }

    nav li {
        flex: 1 1 50%;
        margin-bottom: 5px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button.entry{
    background-color: #dc3545;
    padding:10px;
    font-size: 20px;
    color: white;
}
