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

/* 首页头部 */
.site-header { background: linear-gradient(to right, #1a2980, #26d0ce); color: white; box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.header-container { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.logo-area .logo-link { display: inline-block; }
.logo-text { font-size: 2.2rem; font-weight: 800; letter-spacing: 1px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); color: white; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: rgba(255,255,255,0.9); font-weight: 600; padding: 8px 16px; border-radius: 20px; }
.main-nav a:hover { background: rgba(255,255,255,0.15); color: white; transform: translateY(-2px); }
.header-decoration { position: absolute; top: 0; right: 0; width: 300px; height: 100%; background-size: cover; background-position: center; opacity: 0.2; z-index: 1; }

/* 首页主体 */
.hero-banner { height: 400px; background-size: cover; background-position: center; position: relative; border-radius: 0 0 30px 30px; overflow: hidden; margin-bottom: 40px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.4)); display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; }
.hero-title { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 3px 3px 6px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.3rem; opacity: 0.9; }
.main-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 40px; }
.content-section { background: white; border-radius: 20px; padding: 30px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.section-header { display: flex; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; }
.section-title { font-size: 1.8rem; color: #2c3e50; display: flex; align-items: center; }
.title-icon, .hot-icon, .rec-icon, .news-icon { width: 24px; height: 24px; margin-right: 10px; background: linear-gradient(45deg, #ff6b6b, #ffa726); border-radius: 50%; }
.section-decoration { height: 4px; flex-grow: 1; background: linear-gradient(to right, #1a2980, #26d0ce); margin-left: 20px; border-radius: 2px; }
.article-list-primary { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.article-list-primary li { background: #f8f9fa; padding: 18px; border-radius: 12px; border-left: 5px solid #3498db; transition: transform 0.3s, box-shadow 0.3s; }
.article-list-primary li:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3); }
.article-list-primary a { font-weight: 600; font-size: 1.1rem; display: block; }
.content-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; margin-bottom: 30px; }
.content-block { background: white; border-radius: 18px; padding: 25px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.block-header { margin-bottom: 20px; }
.block-title { font-size: 1.5rem; color: #2c3e50; display: flex; align-items: center; }
.ranking-list li, .recommend-list li { padding: 12px 0; border-bottom: 1px dashed #eee; display: flex; align-items: center; }
.ranking-list li:before, .recommend-list li:before { content: '›'; color: #e74c3c; margin-right: 10px; font-size: 1.2rem; }
.news-ticker-container { background: linear-gradient(90deg, #fdfcfb, #e2d1c3); border-radius: 12px; padding: 15px; overflow: hidden; }
.ticker-mask { overflow: hidden; }
.news-ticker { display: flex; animation: ticker 30s linear infinite; white-space: nowrap; }
.news-ticker li { padding: 0 25px; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

/* 首页尾部 */
.site-footer { background: linear-gradient(to right, #2c3e50, #4a6491); color: #ecf0f1; padding: 40px 0 20px; margin-top: 50px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-links { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; position: relative; }
.links-section { flex: 1; }
.links-title { font-size: 1.4rem; margin-bottom: 20px; color: #1abc9c; }
.friend-links { display: flex; flex-wrap: wrap; gap: 15px; }
.friend-links li { background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 20px; }
.friend-links a { color: #bdc3c7; }
.friend-links a:hover { color: white; }
.footer-decoration { width: 200px; height: 150px; background-size: cover; background-position: center; border-radius: 15px; opacity: 0.4; }
.footer-info { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.copyright, .icp { margin: 8px 0; font-size: 0.95rem; opacity: 0.8; }

/* 列表页 */
.list-page-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.list-page-header { margin-bottom: 40px; }
.breadcrumb { font-size: 0.95rem; color: #7f8c8d; margin-bottom: 15px; }
.breadcrumb a { color: #3498db; }
.category-link { font-weight: bold; color: #e74c3c; }
.page-title-area { position: relative; }
.page-title { font-size: 2.8rem; color: #2c3e50; margin-bottom: 10px; text-shadow: 2px 2px 0 #f0f0f0; }
.title-ornament { width: 100px; height: 6px; background: linear-gradient(to right, #ff6b6b, #ffa726); border-radius: 3px; }
.list-content-wrapper { display: flex; gap: 40px; }
.list-sidebar { flex: 0 0 280px; }
.sidebar-block { background: white; border-radius: 18px; padding: 25px; margin-bottom: 25px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.sidebar-title { font-size: 1.4rem; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }
.sidebar-list li { padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.sidebar-list a { display: block; padding-left: 15px; position: relative; }
.sidebar-list a:before { content: '•'; color: #3498db; position: absolute; left: 0; }
.sidebar-decoration { height: 150px; background-size: cover; background-position: center; border-radius: 15px; margin-top: 20px; }
.list-main-content { flex: 1; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-bottom: 40px; }
.grid-item { background: white; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: transform 0.4s, box-shadow 0.4s; }
.grid-item:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.item-inner { display: flex; flex-direction: column; height: 100%; }
.item-img { height: 180px; background-size: cover; background-position: center; }
.item-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.item-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: #2c3e50; }
.item-title:hover { color: #e74c3c; }
.item-meta { display: flex; justify-content: space-between; margin-top: auto; font-size: 0.9rem; color: #95a5a6; }
.item-cat { background: #e8f4fc; color: #3498db; padding: 3px 10px; border-radius: 12px; }
.pagination-container { display: flex; justify-content: center; }
.pagelist { display: flex; gap: 10px; }
.pagelist li a { display: block; width: 45px; height: 45px; line-height: 45px; text-align: center; background: white; border-radius: 50%; font-weight: 600; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.pagelist li a:hover, .pagelist li a.active { background: linear-gradient(45deg, #1a2980, #26d0ce); color: white; }

/* 详情页 */
.detail-page-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: flex; gap: 40px; }
.detail-header { margin-bottom: 30px; }
.detail-breadcrumb { font-size: 0.95rem; color: #7f8c8d; }
.article-detail { flex: 1; background: white; border-radius: 25px; padding: 40px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.article-detail:before { content: ''; position: absolute; top: 0; left: 0; width: 8px; height: 100%; background: linear-gradient(to bottom, #1a2980, #26d0ce); }
.article-info { margin-bottom: 30px; }
.cat-link { display: inline-block; background: linear-gradient(45deg, #ff6b6b, #ffa726); color: white; padding: 8px 20px; border-radius: 20px; font-weight: 600; margin-bottom: 15px; }
.article-title { font-size: 2.8rem; line-height: 1.3; color: #2c3e50; margin-bottom: 20px; border-bottom: 3px solid #f0f0f0; padding-bottom: 20px; }
.article-meta { display: flex; gap: 25px; font-size: 0.95rem; color: #7f8c8d; margin-bottom: 30px; }
.article-meta span { display: flex; align-items: center; }
.article-meta span:before { content: '⏱'; margin-right: 8px; }
.article-content-wrapper { font-size: 1.1rem; line-height: 1.9; color: #444; margin-bottom: 30px; }
.article-content-wrapper p { margin-bottom: 1.5em; }
.article-tags { margin-bottom: 30px; }
.tags-label { font-weight: 600; color: #2c3e50; margin-right: 10px; }
.tag-item { display: inline-block; background: #e8f4fc; color: #3498db; padding: 6px 15px; border-radius: 20px; margin-right: 10px; font-size: 0.9rem; }
.tag-item:hover { background: #3498db; color: white; }
.article-nav { display: flex; justify-content: space-between; background: #f8f9fa; padding: 25px; border-radius: 18px; margin-bottom: 25px; }
.article-nav a { flex: 0 0 48%; text-align: center; padding: 15px; background: white; border-radius: 12px; font-weight: 600; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.article-nav a:hover { background: linear-gradient(45deg, #1a2980, #26d0ce); color: white; }
.u-back-list { display: inline-block; background: linear-gradient(45deg, #2c3e50, #4a6491); color: white; padding: 15px 35px; border-radius: 30px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; }
.u-back-list:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(44, 62, 80, 0.4); }
.detail-sidebar { flex: 0 0 300px; }
.related-list li { padding: 15px; background: #f8f9fa; margin-bottom: 12px; border-radius: 12px; border-left: 4px solid #1abc9c; }
.related-list a { font-weight: 600; display: block; }

/* 响应式 */
@media (max-width: 992px) {
    .list-content-wrapper, .detail-page-container { flex-direction: column; }
    .list-sidebar, .detail-sidebar { flex: none; width: 100%; }
    .content-layout { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .article-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 20px; }
    .main-nav { flex-wrap: wrap; justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .article-list-primary { grid-template-columns: 1fr; }
    .article-nav { flex-direction: column; gap: 15px; }
    .article-nav a { flex: none; width: 100%; }
}
