:root {
    --primary-color: #2d3436;
    --secondary-color: #0984e3;
    --background-color: #f5f6fa;
    --text-color: #2d3436;
    --primary-color-rgb: 45, 52, 54;
    --secondary-color-rgb: 9, 132, 227;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.hero {
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(to right, #0984e3, #74b9ff);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.latest-news, .key-updates {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.region-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.featured-updates {
    padding: 2rem;
    background: white;
    margin-top: -4rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
    border-left: 4px solid var(--secondary-color);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    background: #e9ecef;
    color: var(--text-color);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.tag.urgent {
    background: #dc3545;
    color: white;
}

.status-indicator {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.status-indicator.active {
    background: #dc3545;
    color: white;
}

.status-indicator.pending {
    background: #ffc107;
    color: #000;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.topic-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.newsletter {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.subscribe-form {
    max-width: 500px;
    margin: 2rem auto 0;
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
}

.subscribe-form button {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    gap: 1rem;
}

.search-box input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-box button {
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Comments Section Styles */
.comments-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    font-size: 1rem;
}

.submit-comment {
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.comment {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comment.reply {
    margin-left: 3rem;
    border-left: 3px solid var(--secondary-color);
    background: #f8f9fa;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.comment-avatar:hover {
    transform: scale(1.1);
}

.comment-meta {
    flex: 1;
}

.comment-author {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.comment-date {
    font-size: 0.875rem;
    color: #666;
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.like-button,
.reply-button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.like-button:hover,
.reply-button:hover {
    background: #f0f0f0;
}

.comments-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.prev-page,
.next-page {
    padding: 0.5rem 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background: white;
    cursor: pointer;
}

.prev-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-number {
    font-size: 0.875rem;
    color: #666;
}

/* Enhanced Comments Section Styles */
.featured-section {
    margin-top: -4rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    opacity: 0.9;
}

.comments-stats {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.comment-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.comment-form h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-guidelines {
    font-size: 0.875rem;
    color: #666;
}

.featured-comment {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(to right, white, #f8f9fa);
}

.featured-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-left: 1rem;
}

.comments-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.filter-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button.active {
    background: var(--secondary-color);
    color: white;
}

.like-button.active {
    background: var(--secondary-color);
    color: white;
}

.share-button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s;
}

.share-button:hover {
    background: #f0f0f0;
}

/* 增强的部分标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-description {
    color: #666;
    font-size: 1.1rem;
}

/* 增强的新闻卡片样式 */
.news-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: var(--primary-color);
}

/* 图片加载状态样式 */
.news-bg.loading {
    animation: shimmer 1.5s infinite;
    background: linear-gradient(
        90deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--primary-color) 100%
    );
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 图片加载失败时的样式 */
.news-bg:not([src]), 
.news-bg[src=""],
.news-bg:-moz-loading,
.news-bg:not([src]):not([srcset]) {
    opacity: 0.8;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.news-image::after {
    content: '📰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0.8;
    z-index: 1;
    pointer-events: none;
}

.news-card:hover .news-bg {
    transform: scale(1.05);
}

.news-meta {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    color: #666;
    font-size: 0.875rem;
}

.read-time::before {
    content: "🕒";
    margin-right: 0.5rem;
}

.views::before {
    content: "👁";
    margin-right: 0.5rem;
}

/* 增强的地区卡片样式 */
.region-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.region-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.region-icon {
    font-size: 2rem;
}

.region-card .update-list {
    padding: 1.5rem;
    margin: 0;
}

.region-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

.details-link {
    display: block;
    padding: 1rem;
    text-align: center;
    background: #f8f9fa;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.details-link:hover {
    background: var(--secondary-color);
    color: white;
} 

/* 统计数字动画 */
.number-changed {
    animation: numberPulse 0.5s ease-out;
}

@keyframes numberPulse {
    0% {
        transform: scale(1);
        color: var(--secondary-color);
    }
    50% {
        transform: scale(1.1);
        color: #2ecc71;
    }
    100% {
        transform: scale(1);
        color: var(--secondary-color);
    }
}

/* 增强统计数字样式 */
.stat-number {
    transition: color 0.3s ease;
}

.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.stat-item:hover::after {
    width: 50%;
} 

/* 讨论区头部样式增强 */
.discussion-header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

.discussion-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/discussion-pattern.svg') center/cover;
    opacity: 0.1;
    pointer-events: none;
}

.discussion-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.discussion-header .section-description {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.discussion-highlights {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
}

.highlight-item {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    min-width: 140px;
    max-width: 180px;
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.25rem;
}

.highlight-item .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.25rem 0;
}

.highlight-item .stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-item {
    animation: fadeInUp 0.5s ease-out forwards;
}

.highlight-item:nth-child(1) { animation-delay: 0.1s; }
.highlight-item:nth-child(2) { animation-delay: 0.2s; }
.highlight-item:nth-child(3) { animation-delay: 0.3s; }

/* 响应式调整 */
@media (max-width: 768px) {
    .discussion-highlights {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .highlight-item {
        min-width: 100px;
        max-width: 140px;
        margin: 0 auto;
    }

    .discussion-header {
        padding: 2rem 1rem;
    }

    .discussion-header h2 {
        font-size: 2rem;
    }

    .highlight-item:not(:last-child)::after {
        display: none;
    }
} 

/* 讨论区标题样式增强 */
.discussion-intro {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.95), 
        rgba(var(--secondary-color-rgb), 0.95));
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.discussion-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.title-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

.discussion-intro h2 {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-intro .section-description {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 700px;
    margin: 1rem auto 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discussion-intro .section-description:hover {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.1)
    );
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.discussion-intro .section-description::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.discussion-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.discussion-tag {
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.discussion-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 背景图案 */
.discussion-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    z-index: -1;
    border-radius: 15px 15px 0 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .discussion-intro {
        padding: 1.5rem;
    }

    .discussion-intro h2 {
        font-size: 2rem;
    }

    .discussion-intro .section-description {
        font-size: 1rem;
        margin: 1rem auto;
    }

    .discussion-tags {
        margin-top: 1.5rem;
    }

    .discussion-tag {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
} 

/* 添加分隔线 */
.highlight-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
} 