/* 基础与重置 */
* { 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%, #e4e8f0 100%); min-height: 100vh; }
a { color: #4a6cf7; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #ff6b6b; text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* 首页样式 */
.site-header { background: linear-gradient(90deg, #1a2a6c, #2a3a7c); color: #fff; 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; }
.logo-area .logo-link { font-size: 2rem; font-weight: 800; color: #fff; }
.logo-text { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.main-nav ul { display: flex; gap: 2rem; }
.main-nav a { color: #d1d8ff; font-weight: 500; padding: 0.5rem 1rem; border-radius: 4px; }
.main-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.header-decoration { position: absolute; top: 0; right: 0; width: 300px; height: 100%; background-size: cover; background-position: center; opacity: 0.2; z-index: 0; }

.home-main { max-width: 1200px; margin: 2rem auto; padding: 0 20px; }
.hero-banner { height: 400px; border-radius: 20px; overflow: hidden; position: relative; margin-bottom: 3rem; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; }
.hero-title { font-size: 3.5rem; margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.5rem; opacity: 0.9; }

.content-wrapper { background: #fff; border-radius: 15px; padding: 2rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.section-header { display: flex; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid #4a6cf7; }
.section-title { font-size: 2rem; color: #1a2a6c; display: flex; align-items: center; }
.title-icon { display: inline-block; width: 10px; height: 30px; background: #ff6b6b; margin-right: 10px; border-radius: 5px; }
.section-decoration { flex: 1; height: 2px; background: linear-gradient(90deg, #4a6cf7, transparent); margin-left: 1rem; }

.news-container { margin-bottom: 3rem; }
.featured-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.featured-list li { background: #f8f9ff; padding: 1.5rem; border-radius: 10px; border-left: 5px solid #4a6cf7; transition: transform 0.3s; }
.featured-list li:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(74, 108, 247, 0.2); }
.featured-list a { font-size: 1.1rem; font-weight: 600; color: #333; display: block; }
.featured-list a:hover { color: #4a6cf7; text-decoration: none; }

.layout-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.news-column { background: #f8f9ff; border-radius: 15px; padding: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.column-header { display: flex; align-items: center; margin-bottom: 1rem; }
.column-title { font-size: 1.5rem; color: #2a3a7c; display: flex; align-items: center; }
.icon-fire, .icon-chart, .icon-star { width: 24px; height: 24px; margin-right: 10px; background-size: contain; }
.icon-fire { background: url('/static/background/<?= rand(1001, 1175) ?>.jpg') center/cover; }
.icon-chart { background: url('/static/background/<?= rand(1001, 1175) ?>.jpg') center/cover; }
.icon-star { background: url('/static/background/<?= rand(1001, 1175) ?>.jpg') center/cover; }

.scroll-news-list li, .ranking-list li, .latest-list li { padding: 0.8rem 0; border-bottom: 1px dashed #ddd; }
.scroll-news-list li:last-child, .ranking-list li:last-child, .latest-list li:last-child { border-bottom: none; }
.ranking-list li { counter-increment: rank; padding-left: 2rem; position: relative; }
.ranking-list li::before { content: counter(rank); position: absolute; left: 0; top: 0.8rem; background: #4a6cf7; color: #fff; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

.highlight-section { position: relative; border-radius: 15px; overflow: hidden; margin-top: 3rem; }
.highlight-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; }
.highlight-content { position: relative; padding: 3rem; text-align: center; }
.highlight-title { font-size: 2.5rem; color: #1a2a6c; margin-bottom: 2rem; }
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.highlight-item { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s; }
.highlight-item:hover { transform: scale(1.05); }
.item-icon { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem; background-size: cover; }
.highlight-item h5 { font-size: 1.3rem; color: #333; }

.site-footer { background: linear-gradient(90deg, #1a2a6c, #2a3a7c); color: #d1d8ff; padding: 3rem 0 0; margin-top: 4rem; }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.footer-section h6 { font-size: 1.3rem; color: #fff; margin-bottom: 1rem; }
.footer-text { line-height: 1.8; }
.footer-nav { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-nav a { color: #d1d8ff; }
.friend-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.friend-links li { background: rgba(255,255,255,0.1); padding: 0.5rem 1rem; border-radius: 4px; }
.footer-bottom { margin-top: 3rem; padding: 2rem 0; background: rgba(0,0,0,0.2); text-align: center; position: relative; }
.footer-info p { margin: 0.5rem 0; color: #a0a8ff; }
.footer-decoration { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background-size: cover; opacity: 0.3; }

/* 列表页样式 */
.list-page-container { max-width: 1200px; margin: 2rem auto; padding: 0 20px; }
.list-page-header { background: #fff; border-radius: 15px 15px 0 0; padding: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.breadcrumb { color: #666; margin-bottom: 1rem; }
.breadcrumb a { color: #4a6cf7; }
.category-link { font-weight: 600; color: #ff6b6b; }
.page-title-area { display: flex; align-items: center; margin-bottom: 1rem; }
.page-main-title { font-size: 2.5rem; color: #1a2a6c; flex: 1; }
.title-ornament { width: 100px; height: 8px; border-radius: 4px; margin-left: 1rem; background-size: cover; }
.page-description { color: #666; font-size: 1.1rem; }

.list-content-wrapper { display: flex; gap: 2rem; }
.list-sidebar { flex: 0 0 250px; }
.sidebar-block { background: #f8f9ff; border-radius: 10px; padding: 1.5rem; margin-bottom: 2rem; }
.sidebar-title { font-size: 1.3rem; color: #2a3a7c; margin-bottom: 1rem; display: flex; align-items: center; }
.sidebar-icon { display: inline-block; width: 6px; height: 20px; background: #ff6b6b; margin-right: 10px; border-radius: 3px; }
.sidebar-menu li { margin-bottom: 0.8rem; }
.sidebar-menu a { display: block; padding: 0.8rem; border-radius: 6px; color: #555; }
.sidebar-menu a.active, .sidebar-menu a:hover { background: #4a6cf7; color: #fff; }
.sidebar-recommend li { padding: 0.8rem 0; border-bottom: 1px dashed #ddd; }
.sidebar-recommend li:last-child { border-bottom: none; }

.list-main-content { flex: 1; }
.list-controls { display: flex; justify-content: space-between; align-items: center; background: #f8f9ff; padding: 1rem 1.5rem; border-radius: 10px; margin-bottom: 2rem; }
.view-options { display: flex; align-items: center; gap: 1rem; }
.view-label { color: #666; }
.view-option { padding: 0.5rem 1rem; border-radius: 6px; color: #666; }
.view-option.active, .view-option:hover { background: #4a6cf7; color: #fff; }
.list-stats { color: #666; }

.article-list-container { background: #fff; border-radius: 10px; padding: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 2rem; }
.article-list li { padding: 1.2rem; border-bottom: 1px solid #eee; transition: background 0.3s; }
.article-list li:hover { background: #f8f9ff; }
.article-list a { font-size: 1.1rem; color: #333; display: block; }
.article-list a:hover { color: #4a6cf7; text-decoration: none; }

.pagination-wrapper { text-align: center; }
.pagelist { display: inline-flex; gap: 0.5rem; background: #f8f9ff; padding: 1rem; border-radius: 10px; }
.pagelist li a { display: block; width: 40px; height: 40px; line-height: 40px; text-align: center; background: #fff; border-radius: 6px; color: #333; font-weight: 600; }
.pagelist li a:hover, .pagelist li a.active { background: #4a6cf7; color: #fff; }

.list-page-bottom { margin-top: 3rem; }
.bottom-promo { background-size: cover; background-position: center; border-radius: 15px; padding: 3rem; text-align: center; color: #fff; position: relative; }
.bottom-promo::before { content: ''; position: absolute; inset: 0; background: rgba(26, 42, 108, 0.7); border-radius: 15px; }
.bottom-promo h5, .bottom-promo p { position: relative; z-index: 1; }
.bottom-promo h5 { font-size: 2rem; margin-bottom: 1rem; }

/* 详情页样式 */
.detail-page-container { max-width: 1200px; margin: 2rem auto; padding: 0 20px; }
.detail-header { margin-bottom: 2rem; }
.detail-breadcrumb { color: #666; margin-bottom: 1rem; }
.detail-breadcrumb a { color: #4a6cf7; }
.detail-hero { height: 200px; border-radius: 15px; background-size: cover; background-position: center; opacity: 0.3; }

.detail-content-wrapper { display: flex; gap: 2rem; }
.main-article { flex: 1; background: #fff; border-radius: 15px; padding: 2.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.article-info { margin-bottom: 2rem;
