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

/* 首页头部 */
.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); background: linear-gradient(45deg, #ffd700, #ff8c00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: white; font-weight: 600; padding: 8px 16px; border-radius: 20px; }
.main-nav a:hover { background: rgba(255,255,255,0.2); 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; }

/* 首页主体 */
.home-main { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.hero-banner { height: 400px; border-radius: 20px; overflow: hidden; position: relative; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.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: white; }
.hero-title { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-subtitle { font-size: 1.5rem; opacity: 0.9; }
.content-wrapper { display: flex; flex-direction: column; gap: 40px; }
.section-header { display: flex; align-items: center; margin-bottom: 25px; position: relative; }
.section-title { font-size: 1.8rem; color: #2c3e50; display: flex; align-items: center; }
.title-icon { display: inline-block; width: 10px; height: 25px; background: linear-gradient(to bottom, #ff6b6b, #ee5a24); margin-right: 10px; border-radius: 5px; }
.section-decoration { flex: 1; height: 2px; background: linear-gradient(to right, transparent, #3498db, transparent); margin-left: 20px; }
.news-container { background: white; border-radius: 15px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-list li { padding: 12px 0; border-bottom: 1px dashed #eee; }
.news-list li:last-child { border-bottom: none; }
.news-list a { display: block; font-size: 1.1rem; padding-left: 20px; position: relative; }
.news-list a::before { content: '▶'; position: absolute; left: 0; color: #3498db; font-size: 0.8rem; }
.layout-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.grid-item { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s; }
.grid-item:hover { transform: translateY(-10px); }
.item-img { height: 180px; background-size: cover; background-position: center; }
.item-title { display: block; padding: 15px; font-weight: 600; font-size: 1.1rem; }
.item-meta { padding: 0 15px 15px; display: flex; justify-content: space-between; color: #7f8c8d; font-size: 0.9rem; }
.recommend-list { background: white; border-radius: 15px; padding: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.recommend-item { padding: 15px 0; border-bottom: 1px solid #f1f1f1; }
.recommend-item:last-child { border-bottom: none; }
.rec-title { font-size: 1.05rem; display: block; margin-bottom: 5px; }
.rec-info { display: flex; justify-content: space-between; color: #95a5a6; font-size: 0.9rem; }
.scroll-news { background: linear-gradient(45deg, #8e2de2, #4a00e0); color: white; border-radius: 10px; padding: 15px; }
.marquee-container { display: flex; align-items: center; overflow: hidden; }
.marquee-label { font-weight: bold; margin-right: 15px; white-space: nowrap; }
.marquee-content { flex: 1; white-space: nowrap; overflow: hidden; }
.marquee-content a { color: white; margin-right: 30px; display: inline-block; position: relative; }
.marquee-content a::after { content: '•'; position: absolute; right: -18px; }

/* 首页尾部 */
.site-footer { margin-top: 60px; }
.footer-top { height: 250px; position: relative; border-radius: 20px 20px 0 0; overflow: hidden; }
.footer-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); display: flex; justify-content: center; align-items: center; }
.footer-links { text-align: center; color: white; }
.links-title { font-size: 2rem; margin-bottom: 20px; }
.friend-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.friend-links li a { color: #ddd; padding: 8px 16px; border: 1px solid rgba(255,255,255,0.3); border-radius: 20px; }
.friend-links li a:hover { background: white; color: #333; }
.footer-bottom { background: #2c3e50; color: #bdc3c7; text-align: center; padding: 25px; }
.footer-info { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.copyright, .icp { font-size: 0.95rem; }

/* 列表页 */
.list-page { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.list-header { margin-bottom: 40px; }
.breadcrumb { font-size: 0.95rem; color: #7f8c8d; margin-bottom: 15px; }
.page-title { position: relative; }
.page-title h1 { font-size: 2.5rem; color: #2c3e50; margin-bottom: 15px; }
.title-decoration { height: 5px; width: 150px; border-radius: 5px; }
.list-container { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.list-sidebar { background: white; border-radius: 15px; padding: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); align-self: start; }
.sidebar-title { font-size: 1.4rem; color: #2c3e50; padding-bottom: 10px; margin-bottom: 20px; border-bottom: 2px solid #3498db; }
.sidebar-list li { padding: 12px 0; border-bottom: 1px dashed #eee; }
.sidebar-list a { display: block; padding-left: 15px; position: relative; }
.sidebar-list a::before { content: '›'; position: absolute; left: 0; color: #e74c3c; }
.list-main { background: white; border-radius: 15px; padding: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.article-list { display: flex; flex-direction: column; gap: 30px; }
.list-item { display: grid; grid-template-columns: 250px 1fr; gap: 25px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.list-item:last-child { border-bottom: none; }
.item-media { border-radius: 10px; overflow: hidden; }
.item-img { display: block; height: 180px; background-size: cover; background-position: center; transition: transform 0.5s; }
.item-img:hover { transform: scale(1.05); }
.item-title { font-size: 1.5rem; margin-bottom: 10px; }
.item-title a { color: #2c3e50; }
.item-title a:hover { color: #e74c3c; }
.item-meta { display: flex; gap: 20px; color: #7f8c8d; font-size: 0.9rem; margin-bottom: 15px; }
.meta-cat a { background: #ecf0f1; padding: 3px 10px; border-radius: 12px; }
.item-excerpt { color: #555; line-height: 1.7; }
.pagination-area { margin-top: 50px; text-align: center; }
.pagelist { display: inline-flex; gap: 10px; background: white; padding: 15px 30px; border-radius: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.pagelist li a { display: block; width: 40px; height: 40px; line-height: 40px; border-radius: 50%; text-align: center; font-weight: 600; }
.pagelist li a:hover, .pagelist li a[data-page="0"] { background: #3498db; color: white; }

/* 详情页 */
.detail-page { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.detail-header { grid-column: 1 / -1; }
.detail-breadcrumb { font-size: 0.95rem; color: #7f8c8d; margin-bottom: 20px; }
.article-detail { background: white; border-radius: 20px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.article-info { margin-bottom: 30px; }
.cat-link { display: inline-block; background: linear-gradient(45deg, #ff6b6b, #ee5a24); color: white; padding: 5px 15px; border-radius: 15px; font-size: 0.9rem; margin-bottom: 15px; }
.article-title { font-size: 2.5rem; color: #2c3e50; line-height: 1.3; margin-bottom: 20px; }
.article-meta { display: flex; gap: 25px; color: #7f8c8d; font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.article-detail .article-content { margin: 30px 0; line-height: 1.8; font-size: 1.1rem; color: #444; }
.article-detail .article-content img { border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.article-nav { display: flex; justify-content: space-between; margin: 40px 0; padding: 20px; background: #f8f9fa; border-radius: 10px; }
.article-nav a { padding: 10px 20px; background: white; border-radius: 20px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.u-back-list { display: inline-block; margin-top: 20px; padding: 12px 30px; background: linear-gradient(45deg, #3498db, #2c3e50); color: white; border-radius: 25px; font-weight: 600; }
.detail-sidebar { align-self: start; }
.related-list { display: flex; flex-direction: column; gap: 20px; }
.related-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.related-img { display: block; height: 120px; background-size: cover; background-position: center; }
.related-title { display: block; padding: 15px; font-weight: 600; }

/* 响应式 */
@media (max-width: 992px) {
    .layout-columns, .list-container, .detail-page { grid-template-columns: 1fr; }
    .news-list, .article-grid { grid-template-columns: repeat(2, 1fr); }
    .list-item { grid-template-columns: 1fr; }
    .header-container { flex-direction: column; gap: 20px; }
    .footer-info { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
    .news-list, .article-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 1.5rem; }
}
