:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #1abc9c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-color));
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 200px;
    padding: 5px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

/* 主要内容区 */
.main-content {
    display: flex;
    margin: 30px 0;
    gap: 30px;
}

/* 左侧新闻内容 */
.news-detail {
    flex: 2;
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-header {
    margin-bottom: 30px;
}

.news-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--secondary-color);
    line-height: 1.3;
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.news-meta span {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    font-size: 14px;
}

.news-tag {
    display: inline-block;
    background: var(--light-color);
    color: var(--accent-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 10px;
}

.news-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-content {
    font-size: 16px;
    line-height: 1.8;
}

.news-content p {
    margin-bottom: 20px;
}

.news-content h2 {
    font-size: 22px;
    margin: 30px 0 15px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

.news-content h3 {
    font-size: 18px;
    margin: 25px 0 10px;
    color: var(--secondary-color);
}

.news-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 15px 20px;
    background: var(--light-color);
    margin: 20px 0;
    font-style: italic;
    border-radius: 0 5px 5px 0;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--light-color);
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.news-author {
    display: flex;
    align-items: center;
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    border: 3px solid var(--accent-color);
    padding: 3px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.author-info p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 10px;
}

.social-share {
    display: flex;
    margin-top: 30px;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.share-btn i {
    margin-right: 5px;
}

.share-weibo {
    background: #e6162d;
}

.share-weibo:hover {
    background: #c41226;
}

.share-wechat {
    background: #07c160;
}

.share-wechat:hover {
    background: #05a84e;
}

.share-twitter {
    background: #1da1f2;
}

.share-twitter:hover {
    background: #0d8ecf;
}

/* 右侧边栏 */
.sidebar {
    flex: 1;
}

.widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 10px;
    color: var(--accent-color);
}

.author-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-avatar-sidebar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
    padding: 3px;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.author-bio {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-color);
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 10px;
}

.category-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: var(--light-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-item a:hover {
    background: var(--accent-color);
    color: white;
    padding-left: 15px;
}

.category-item span {
    background: white;
    color: var(--accent-color);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.related-news {
    list-style: none;
}

.related-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--light-color);
}

.related-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.related-item a:hover {
    color: var(--accent-color);
}

.related-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 5px;
}

/* 页脚 */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .nav-links li {
        margin: 5px 15px 5px 0;
    }

    .search-box {
        margin-top: 15px;
        width: 100%;
    }

    .search-box input {
        width: 100%;
    }

    .main-content {
        flex-direction: column;
    }

    .news-author {
        flex-direction: column;
        text-align: center;
    }

    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer-column {
        flex: 100%;
    }
}