/* 基础重置与全局样式 */
* { 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: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 首页头部 */
.site-header { background: linear-gradient(to right, #2c3e50, #4a6491); color: #fff; padding: 1rem 0; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.header-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.logo-area .logo-link { display: flex; align-items: center; }
.logo-text { font-size: 2.2rem; font-weight: 700; background: linear-gradient(45deg, #ff9a9e, #fad0c4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { padding: 0.5rem 1rem; border-radius: 20px; font-weight: 500; }
.main-nav a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.header-decoration { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; }
.decoration-img { width: 100%; height: 100%; object-fit: cover; }

/* 首页主体 */
.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 { position: relative; }
.hero-image { width: 100%; height: 400px; object-fit: cover; }
.banner-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); padding: 2rem; color: #fff; }
.banner-overlay h2 { font-size: 2.5rem; font-weight: 300; }
.content-wrapper { display: flex; flex-direction: column; gap: 3rem; }
.section-header { margin-bottom: 2rem; text-align: center; }
.section-title { font-size: 1.8rem; color: #2c3e50; display: inline-block; padding-bottom: 10px; position: relative; }
.section-title span { background: linear-gradient(45deg, #6a11cb, #2575fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.title-decoration { height: 4px; width: 60px; background: linear-gradient(to right, #6a11cb, #2575fc); margin: 10px auto; border-radius: 2px; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.grid-item { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.grid-item:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.article-thumb { height: 200px; width: 100%; object-fit: cover; }
.item-content { padding: 1.5rem; }
.item-content h4 { font-size: 1.2rem; margin-bottom: 0.5rem; color: #2c3e50; }
.meta { display: flex; justify-content: space-between; color: #7f8c8d; font-size: 0.9rem; }
.layout-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.news-list, .ranking-list { background: #fff; border-radius: 15px; padding: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.news-item, .rank-item { padding: 0.8rem 0; border-bottom: 1px dashed #eee; display: flex; align-items: center; }
.news-item:last-child, .rank-item:last-child { border-bottom: none; }
.news-dot { width: 8px; height: 8px; background: #ff6b6b; border-radius: 50%; margin-right: 10px; }
.news-title { flex: 1; }
.news-date { color: #95a5a6; font-size: 0.9rem; }
.rank-order { display: inline-block; width: 24px; height: 24px; line-height: 24px; text-align: center; background: linear-gradient(45deg, #ff9a9e, #fad0c4); color: #fff; border-radius: 50%; margin-right: 10px; font-size: 0.8rem; }
.scroll-news { background: linear-gradient(90deg, #1a2980, #26d0ce); color: #fff; border-radius: 15px; padding: 1rem; overflow: hidden; }
.scroll-header { text-align: center; margin-bottom: 1rem; }
.scroll-container { overflow: hidden; }
.scroll-content { display: flex; animation: scroll 30s linear infinite; }
.scroll-item { white-space: nowrap; padding: 0 2rem; font-size: 1.1rem; }
@keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* 首页尾部 */
.site-footer { background: #2c3e50; color: #ecf0f1; margin-top: 4rem; }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 3rem 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-links h4 { font-size: 1.3rem; margin-bottom: 1rem; color: #3498db; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links li a { padding: 0.5rem 1rem; background: rgba(255,255,255,0.1); border-radius: 5px; }
.footer-links li a:hover { background: #3498db; }
.footer-info p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-bottom { text-align: center; padding: 1.5rem; background: rgba(0,0,0,0.2); font-size: 0.9rem; }

/* 列表页 */
.list-page { max-width: 1200px; margin: 2rem auto; padding: 0 20px; display: flex; gap: 3rem; }
.page-header { margin-bottom: 2rem; }
.breadcrumb { color: #7f8c8d; margin-bottom: 1rem; }
.category-link { color: #3498db; font-weight: bold; }
.category-title-wrapper { position: relative; margin-bottom: 1rem; }
.page-title { font-size: 2.5rem; color: #2c3e50; background: linear-gradient(45deg, #6a11cb, #2575fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.title-ornament { width: 100px; height: 6px; background: linear-gradient(to right, #6a11cb, #2575fc); border-radius: 3px; margin-top: 10px; }
.page-description { color: #7f8c8d; font-size: 1.1rem; }
.list-container { flex: 1; }
.list-filter { background: #fff; padding: 1rem; border-radius: 10px; margin-bottom: 2rem; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.list-filter a { padding: 0.5rem 1rem; margin-right: 1rem; border-radius: 20px; background: #f8f9fa; }
.filter-active { background: linear-gradient(45deg, #6a11cb, #2575fc) !important; color: #fff; }
.article-list-main { display: flex; flex-direction: column; gap: 2rem; }
.list-article { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); display: flex; transition: transform 0.3s; }
.list-article:hover { transform: translateX(10px); }
.list-img { flex: 0 0 250px; }
.list-img img { width: 100%; height: 200px; object-fit: cover; }
.list-content { flex: 1; padding: 1.5rem; }
.list-content h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color: #2c3e50; }
.list-excerpt { color: #7f8c8d; margin-bottom: 1rem; line-height: 1.5; }
.list-meta { display: flex; gap: 1.5rem; color: #95a5a6; font-size: 0.9rem; }
.cat-tag { background: #e3f2fd; color: #1976d2; padding: 0.2rem 0.8rem; border-radius: 12px; }
.pagination-area { margin-top: 3rem; text-align: center; }
.pagelist { display: inline-flex; gap: 0.5rem; background: #fff; padding: 1rem; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.pagelist li a { display: block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; text-align: center; }
.pagelist li a:hover { background: #3498db; color: #fff; }
.list-sidebar { flex: 0 0 300px; }
.sidebar-block { background: #fff; border-radius: 15px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.sidebar-block h4 { font-size: 1.3rem; margin-bottom: 1rem; color: #2c3e50; border-left: 4px solid #6a11cb; padding-left: 10px; }
.sidebar-list { display: flex; flex-direction: column; gap: 0.8rem; }
.sidebar-item { padding: 0.8rem; border-radius: 8px; background: #f8f9fa; }
.sidebar-item:hover { background: #e3f2fd; color: #1976d2; }
.sidebar-decoration { height: 150px; border-radius: 15px; overflow: hidden; }
.sidebar-decoration img { width: 100%; height: 100%; object-fit: cover; }

/* 详情页 */
.detail-page { max-width: 900px; margin: 2rem auto; padding: 0 20px; }
.detail-container { background: #fff; border-radius: 20px; padding: 3rem; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.article-info { margin-bottom: 2rem; }
.cat-link { display: inline-block; background: linear-gradient(45deg, #6a11cb, #2575fc); color: #fff; padding: 0.5rem 1.5rem; border-radius: 20px; font-size: 0.9rem; margin-bottom: 1rem; }
.article-title { font-size: 2.5rem; line-height: 1.3; color: #2c3e50; margin-bottom: 1rem; }
.article-meta { display: flex; gap: 2rem; color: #7f8c8d; font-size: 0.95rem; }
.article-tags { margin: 2rem 0; }
.tag { display: inline-block; background: #e3f2fd; color: #1976d2; padding: 0.3rem 1rem; border-radius: 15px; margin-right: 0.8rem; font-size: 0.9rem; }
.tag:hover { background: #bbdefb; }
.article-nav { display: flex; justify-content: space-between; margin: 3rem 0; padding: 1.5rem; background: #f8f9fa; border-radius: 15px; }
.nav-prev, .nav-next { flex: 1; padding: 1rem; border-radius: 10px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.05); }
.nav-prev { margin-right: 1rem; text-align: left; }
.nav-next { margin-left: 1rem; text-align: right; }
.u-back-list { display: inline-block; background: linear-gradient(45deg, #ff9a9e, #fad0c4); color: #fff; padding: 0.8rem 2rem; border-radius: 25px; font-weight: bold; margin-top: 2rem; }
.u-back-list:hover { transform: scale(1.05); }
.related-articles { margin-top: 4rem; }
.related-articles h3 { font-size: 1.8rem; margin-bottom: 1.5rem; color: #2c3e50; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.related-item { background: #f8f9fa; border-radius: 10px; overflow: hidden; transition: transform 0.3s; }
.related-item:hover { transform: translateY(-5px); }
.related-item img { height: 120px; width: 100%; object-fit: cover; }
.related-item h4 { padding: 1rem; font-size: 1rem; color: #2c3e50; }

/* 响应式 */
@media (max-width: 992px) {
    .layout-columns, .list-page { flex-direction: column; }
    .list-sidebar { order: -1; }
    .article-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .header-container { flex-direction: column; gap: 1rem; }
    .main-nav { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
    .article-list-main .list-article { flex-direction: column; }
    .list-img { flex: 0 0 auto; height: 200px; }
    .article-nav { flex-direction: column; gap: 1rem; }
    .nav-prev, .nav-next { margin: 0; }
    .detail-container { padding: 1.5rem; }
    .article-title { font-size: 1.8rem; }
}
