:root {
    --primary-color: #0077b6;
    --primary-dark: #023e8a;
    --primary-light: #48cae4;
    --secondary-color: #6930c3;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --black: #212529;
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-like {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-like:hover {
    background-color: var(--medium-gray);
}

.btn-like.liked {
    color: var(--error);
}

.btn-like.liked i {
    color: var(--error);
}

.btn-share {
    background-color: var(--light-gray);
    color: var(--dark-gray);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-share:hover {
    background-color: var(--medium-gray);
}

.btn-reply {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.btn-reply:hover {
    text-decoration: underline;
}

.btn-refresh {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-refresh:hover {
    background-color: var(--light-gray);
}

.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 600;
    color: var(--black);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--medium-gray);
}

.badge {
    background-color: var(--error);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 160px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--black);
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    display: block;
    padding: 10px;
    font-weight: 600;
    color: var(--black);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.mobile-badge {
    background-color: var(--error);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    padding: 2px 6px;
    margin-left: 5px;
}

.main-footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-text {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-link i {
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    opacity: 0.8;
    font-size: 14px;
}

.hero-section {
    position: relative;
    background: #f8f9fa;
    text-align: center;
    overflow: hidden;
}

/* Articles Hero Section */
.articles-hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.articles-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.articles-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.articles-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.articles-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.articles-hero-description {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.articles-hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.articles-hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.articles-hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.articles-hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.articles-hero-stats .stat-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.articles-hero-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
}

/* 响应式设计 */
@media (max-width: 768px) {
    .articles-hero {
        padding: 60px 0 40px;
    }
    
    .articles-hero-title {
        font-size: 2.2rem;
    }
    
    .articles-hero-description {
        font-size: 1rem;
    }
    
    .articles-hero-stats {
        gap: 20px;
    }
    
    .articles-hero-stats .stat-number {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .articles-hero {
        padding: 50px 0 30px;
    }
    
    .articles-hero-title {
        font-size: 1.8rem;
    }
    
    .articles-hero-badge {
        font-size: 13px;
        padding: 10px 20px;
    }
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    max-height: 70vh;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.carousel-slide.active {
    opacity: 1;
    display: block;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide:hover .carousel-overlay {
    opacity: 1;
}

.carousel-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-content {
    transform: translateY(0);
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.carousel-description {
    font-size: 1.2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 四个按钮样式 */
.hero-actions-below {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    flex-wrap: wrap;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.hero-actions-below .btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-title {
        font-size: 1.8rem;
    }
    
    .carousel-description {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .hero-actions-below {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 20px;
    }
    
    .hero-actions-below .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
    }
    
    .carousel-description {
        font-size: 0.9rem;
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.hero-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.articles-section {
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    color: var(--primary-dark);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    animation: fadeIn 0.5s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.2);
}

.article-link {
    display: block;
    color: var(--black);
}

.article-cover {
    height: 200px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-cover img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}

.article-title {
    font-size: 18px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--dark-gray);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item i {
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 16px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.article-detail-section {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    padding-bottom: 20px;
}

.article-detail-section .article-cover {
    height: 400px;
}

.article-header {
    padding: 30px;
    border-bottom: 1px solid var(--medium-gray);
}

.article-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--medium-gray);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
}

.article-date {
    font-size: 14px;
    color: var(--dark-gray);
}

.article-stats {
    display: flex;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dark-gray);
}

.stat-item i {
    font-size: 18px;
}

.article-content {
    padding: 30px;
    line-height: 1.8;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 20px 0 15px;
    color: var(--primary-dark);
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

.article-content pre {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 15px 0;
}

.article-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--light-gray);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 14px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    margin: 15px 0;
    color: var(--dark-gray);
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 20px;
}

.article-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 30px;
}

.comments-section {
    max-width: 1000px;
    margin: 40px auto 0;
}

.comment-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    resize: vertical;
    transition: var(--transition);
}

.comment-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 15px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--medium-gray);
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 12px;
    color: var(--dark-gray);
}

.comment-text {
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
}

.reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray);
}

.replies-list {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 2px solid var(--medium-gray);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reply-item {
    display: flex;
    gap: 15px;
}

.no-comments {
    text-align: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--dark-gray);
}

.post-article-section {
    max-width: 800px;
    margin: 0 auto;
}

.post-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.2);
}

.form-group input[type="file"] {
    width: 100%;
}

.file-hint {
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 5px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--dark-gray);
    margin-top: 5px;
}

.editor-container {
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--medium-gray);
}

.editor-toolbar button {
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    font-size: 18px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-toolbar button:hover {
    background-color: var(--medium-gray);
    color: var(--primary-color);
}

.editor-container textarea {
    width: 100%;
    min-height: 300px;
    padding: 15px;
    border: none;
    resize: vertical;
}

.editor-preview {
    padding: 15px;
    border-top: 1px solid var(--medium-gray);
}

.editor-preview h4 {
    margin-bottom: 10px;
    color: var(--dark-gray);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    width: 100px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 4px;
    user-select: none;
}

.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 140px);
    padding: 40px 0;
}

.auth-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title {
    font-size: 28px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--dark-gray);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-link {
    color: var(--dark-gray);
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-color);
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.message-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    display: flex;
    gap: 15px;
    transition: var(--transition);
}

.message-item.unread {
    border-left: 4px solid var(--primary-color);
}

.message-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--medium-gray);
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.message-sender {
    font-weight: 600;
}

.message-date {
    font-size: 14px;
    color: var(--dark-gray);
}

.mark-as-read {
    font-size: 14px;
    color: var(--primary-color);
}

.message-text {
    margin-bottom: 10px;
}

.message-article {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 14px;
}

.message-article i {
    font-size: 18px;
}

.no-messages {
    text-align: center;
    padding: 50px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: var(--dark-gray);
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail-section .article-cover {
        height: 250px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .auth-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .article-actions {
        flex-direction: column;
        gap: 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
    transform: translateY(20px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options a {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    transition: var(--transition);
}

.sort-options a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sort-options a:hover {
    background-color: var(--primary-light);
}

.page-info {
    margin: 0 15px;
    color: var(--dark-gray);
}

.user-profile-link {
    display: block;
    padding: 8px 16px;
    color: var(--black);
    transition: var(--transition);
}

.user-profile-link:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.profile-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.profile-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--primary-light);
}

.avatar-form {
    display: flex;
    gap: 10px;
}

#avatar-upload {
    display: none;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 28px;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.profile-username {
    color: var(--dark-gray);
    font-size: 16px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 20px;
}

.tab-link {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-link:hover:not(.active) {
    border-bottom-color: var(--primary-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.article-item:hover {
    border-color: var(--primary-color);
}

.article-info h3 {
    margin-bottom: 5px;
}

.article-meta {
    display: flex;
    gap: 15px;
    color: var(--dark-gray);
    font-size: 14px;
}

.article-meta i {
    margin-right: 5px;
}

.no-articles {
    text-align: center;
    padding: 40px;
    color: var(--dark-gray);
}

.no-articles p {
    margin-bottom: 20px;
}

.profile-form, .password-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-hint {
    color: var(--dark-gray);
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    counter-reset: step;
}

.step {
    position: relative;
    flex: 1;
    text-align: center;
    color: var(--dark-gray);
}

.step:before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    color: var(--white);
}

.step.active:before {
    background-color: var(--primary-color);
}

.step.completed:before {
    background-color: var(--success);
    content: '✓';
}

.step:after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--medium-gray);
    z-index: -1;
}

.step:last-child:after {
    display: none;
}

.step.active:after,
.step.completed:after {
    background-color: var(--primary-color);
}

.form-hint.warning {
    color: #dc3545;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    counter-reset: step;
}

.step {
    position: relative;
    flex: 1;
    text-align: center;
    color: var(--dark-gray);
}

.step:before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    color: var(--white);
}

.step.active:before {
    background-color: var(--primary-color);
}

.step.completed:before {
    background-color: var(--success);
    content: '✓';
}

.step:after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--medium-gray);
    z-index: -1;
}

.step:last-child:after {
    display: none;
}

.step.active:after,
.step.completed:after {
    background-color: var(--primary-color);
}

.form-info {
    background-color: var(--light-gray);
    padding: 10px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 15px;
}

.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-articles-icon {
    font-size: 60px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.no-articles h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.no-articles p {
    color: var(--dark-gray);
    margin-bottom: 20px;
}
/* 排序选项样式 */
.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options a {
    padding: 5px 10px;
    border-radius: 4px;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    transition: var(--transition);
}

.sort-options a.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.sort-options a:hover {
    background-color: var(--primary-light);
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--primary-color);
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.page-info {
    color: var(--dark-gray);
}

/* 无文章提示样式 */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-articles-icon {
    font-size: 60px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.no-articles h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle::after {
    content: '\f150';
    font-family: 'Material Design Icons';
    font-size: 16px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 160px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-dropdown-menu {
    display: none;
    padding-left: 20px;
}

.mobile-dropdown-item {
    display: block;
    padding: 8px 0;
    color: var(--black);
}

.mobile-dropdown-item:hover {
    color: var(--primary-color);
}
.btn-edit {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-edit:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.current-cover {
    margin-top: 15px;
    text-align: center;
}

.current-cover img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.current-cover p {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}
.index-notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.index-notice i {
    color: #ffc107;
    font-size: 24px;
}

.index-notice p {
    margin: 0;
    color: #856404;
}

.index-warning {
    background-color: #ffcece;
    border-left: 4px solid #ff5353;
    padding: 10px 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.index-warning i {
    color: #ffc107;
    font-size: 24px;
}

.index-warning p {
    margin: 0;
    color: #856404;
}

.icon-notice,.icon-comment,.icon-send,.icon-warning {
    width: 30px;
    height: auto;
}