/* 基础重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

a:hover {
    color: #3498db;
}

ul, ol {
    list-style: none;
}

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

/* 首页头部 */
.site-header {
    background: linear-gradient(45deg, #1a2980, #26d0ce);
    color: white;
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-area {
    flex: 1;
}

.logo-link {
    color: white;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-slogan {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.main-nav {
    flex: 2;
    text-align: center;
}

.header-decoration {
    flex: 1;
    text-align: right;
}

.decoration-img {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* 首页主体 */
.home-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.hero-banner {
    margin-bottom: 3rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.banner-inner {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.banner-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-wrapper {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.section-header {
    margin-bottom: 2rem;
    position: relative;
}

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-line {
    height: 3px;
    width: 80px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin-top: 10px;
    border-radius: 2px;
}

.news-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.news-marquee {
    overflow: hidden;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-list li {
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.3s ease;
}

.news-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 3px 10px rgba(52,152,219,0.2);
}

.layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.large-card {
    grid-column: 1 / -1;
    height: 200px;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    align-items: flex-end;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-content h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.article-list li {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #2ecc71;
}

.article-list li:hover {
    background: #e8f4fc;
}

.latest-articles {
    background: linear-gradient(45deg, #fdfcfb, #e2d1c3);
    padding: 1.5rem;
    border-radius: 15px;
}

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

.ranking-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.top-list {
    counter-reset: ranking;
}

.top-list li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    padding-left: 50px;
}

.top-list li:before {
    counter-increment: ranking;
    content: counter(ranking);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.cloud-item {
    padding: 8px 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.cloud-item:hover {
    transform: scale(1.05);
}

.decoration-side {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1.5rem;
}

/* 首页尾部 */
.site-footer {
    margin-top: 4rem;
}

.footer-top {
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
    position: relative;
}

.footer-top:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-column {
    color: white;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-text {
    opacity: 0.9;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ddd;
}

.footer-links a:hover {
    color: #3498db;
    padding-left: 5px;
}

.friend-links li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom {
    background: #1a1a1a;
    padding: 1.5rem 0;
    text-align: center;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

.copyright p {
    margin-bottom: 5px;
}

/* 列表页样式 */
.list-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.list-header {
    margin-bottom: 3rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #3498db;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.title-decoration {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 2px;
    margin-top: 10px;
}

.list-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.list-sidebar {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sidebar-block {
    margin-bottom: 2rem;
}

.sidebar-block h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.filter-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-list li.active {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
}

.filter-list li:hover:not(.active) {
    background: #f0f7ff;
    padding-left: 20px;
}

.list-main {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.article-grid li {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-grid li:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3498db, #2ecc71);
}

.article-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(52,152,219,0.15);
}

.pagination-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.pagelist {
    display: inline-flex;
    gap: 10px;
    background: white;
    padding: 1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.pagelist li a {
    display: block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 50%;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagelist li a:hover {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    transform: scale(1.1);
}

.list-recommend {
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.list-recommend h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.recommend-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
}

.recommend-slider li {
    flex: 0 0 300px;
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.recommend-slider li:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* 详情页样式 */
.detail-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.article-main {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-info {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.cat-link {
    display: inline-block;
    padding: 6px 15px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.2rem;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 2rem;
    color: #666;
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin: 2rem 0;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-tags {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.tag-label {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 10px;
}

.tag-item {
    display: inline-block;
    padding: 5px 15px;
    margin: 0 5px 5px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.article-nav a {
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.article-nav a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
}

.u-back-list {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 25px;
    font
