:root {
    --primary-color: #5D3FD3;
    --primary-light: #7B5FE6;
    --primary-dark: #4A2FB8;
    --secondary-color: #F8F9FA;
    --text-color: #333;
    --text-light: #666;
    --border-color: #E9ECEF;
    --hover-color: #F1F3F4;
}

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

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FAFBFC;
}

/* 顶部导航 */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    box-shadow: 0 2px 10px rgba(93, 63, 211, 0.2);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
}

.navbar-brand img {
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
}

.navbar-brand .site-logo {
    height: 32px;
    width: 32px;
    margin-right: 10px;
    vertical-align: middle;
    transform: translateY(-2px); /* 微调垂直对齐 */
}

.navbar-brand:hover .site-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(93, 63, 211, 0.4));
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.navbar-toggler {
    border: none;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* 主要内容区域 */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 面包屑导航 */
.breadcrumb-section {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.breadcrumb-item.active {
    color: var(--text-light);
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.3);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 内容区域布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

/* 主内容区域 */
.main-content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* 收藏资讯列表 */
.news-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

/* 资讯列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 63, 211, 0.15);
    background: white;
}

.news-image {
    width: 200px;
    height: 150px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-meta-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.news-category {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.news-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
}

.news-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.news-meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.news-meta-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
}

.news-meta-item a:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* 标签云 */
.tags-section {
    margin-bottom: 2rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag-item {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.tag-item.popular {
    background: var(--primary-light);
    color: white;
    font-size: 1rem;
}

.tag-item.popular:hover {
    background: var(--primary-dark);
}

.tag-item.tag-hot {
    background-color: #fd7e14; /* Orange */
    color: white;
}
.tag-item.tag-hot:hover {
    background-color: #e86a04;
}

.tag-item.tag-new {
    background-color: #20c997; /* Teal */
    color: white;
}
.tag-item.tag-new:hover {
    background-color: #1baa80;
}

.tag-item.tag-expert {
    background-color: #0d6efd; /* Blue */
    color: white;
}
.tag-item.tag-expert:hover {
    background-color: #0b5ed7;
}

/* 侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* 热门文章 */
.hot-article {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-article:last-child {
    border-bottom: none;
}

.hot-article-image {
    width: 80px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hot-article-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.hot-article-content h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.hot-article-content h4 a:hover {
    color: var(--primary-color);
}

.hot-article-meta {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .news-item {
        flex-direction: column;
        padding: 1rem;
    }

    .news-image {
        width: 100%;
        height: 200px;
        font-size: 2rem;
    }

    .tag-cloud {
        gap: 0.5rem;
    }

    .tag-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .main-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .sidebar-section {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .page-header {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .news-image {
        height: 150px;
        font-size: 1.5rem;
    }

    .sidebar-section {
        padding: 1rem;
    }
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* 为LOGO添加呼吸效果 */
@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 4px rgba(93, 63, 211, 0.2));
    }
    50% {
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.6));
    }
}

.site-logo {
    animation: logoGlow 3s ease-in-out infinite;
}

/* 当鼠标悬停时停止呼吸效果 */
.navbar-brand:hover .site-logo {
    animation: none;
}