/* 基础重置与全局样式 */
* { 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; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 首页头部 */
.site-header { position: relative; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.header-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo-area .logo-link { display: block; }
.logo-text { font-size: 2.2rem; font-weight: 800; background: linear-gradient(90deg, #ff6b6b, #4ecdc4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-weight: 600; font-size: 1.05rem; padding: 8px 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px; background: linear-gradient(90deg, #ff6b6b, #4ecdc4); transition: width 0.3s; }
.main-nav a:hover::after { width: 100%; }
.header-banner { height: 320px; background-size: cover; background-position: center; border-radius: 0 0 20px 20px; position: relative; overflow: hidden; }
.header-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, rgba(0,0,0,0.4), transparent); }

/* 首页主体 */
.hero-section { position: relative; margin: 30px 0; border-radius: 20px; overflow: hidden; }
.hero-bg { height: 400px; background-size: cover; background-position: center; filter: brightness(0.9); }
.hero-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: white; z-index: 2; }
.hero-title { font-size: 3.5rem; font-weight: 900; margin-bottom: 15px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.hero-desc { font-size: 1.3rem; opacity: 0.9; }
.main-container { padding: 40px 0; }
.content-section { margin-bottom: 50px; }
.section-header { text-align: center; margin-bottom: 35px; position: relative; }
.section-title { font-size: 2rem; font-weight: 700; color: #2c3e50; display: inline-block; padding: 0 20px; background: white; z-index: 1; position: relative; }
.section-title span { background: linear-gradient(90deg, #ff6b6b, #4ecdc4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-decoration { position: absolute; top: 50%; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #ff6b6b, #4ecdc4, transparent); transform: translateY(-50%); z-index: 0; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.grid-item { background: white; border-radius: 15px; 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); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.item-inner { height: 100%; display: flex; flex-direction: column; }
.item-img { height: 200px; background-size: cover; background-position: center; transition: transform 0.5s; }
.grid-item:hover .item-img { transform: scale(1.05); }
.item-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.item-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; color: #2c3e50; line-height: 1.4; }
.item-meta { display: flex; justify-content: space-between; margin-top: auto; font-size: 0.9rem; color: #7f8c8d; }
.item-cat, .item-date { display: inline-flex; align-items: center; }
.layout-sidebar { display: flex; gap: 40px; margin-top: 50px; }
.main-content { flex: 1; }
.article-list { background: white; border-radius: 15px; padding: 25px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.article-list li { padding: 12px 0; border-bottom: 1px solid #eee; }
.article-list li:last-child { border-bottom: none; }
.article-list a { display: block; font-weight: 600; color: #34495e; padding-left: 15px; position: relative; }
.article-list a::before { content: '›'; position: absolute; left: 0; color: #ff6b6b; font-size: 1.2rem; }
.article-list a:hover { color: #ff6b6b; padding-left: 20px; }
.news-ticker { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 15px; padding: 20px; color: white; overflow: hidden; }
.ticker-container { overflow: hidden; }
.ticker-list { display: flex; animation: ticker 30s linear infinite; }
.ticker-list li { flex-shrink: 0; padding: 0 30px; }
.ticker-list a { color: white; font-weight: 500; white-space: nowrap; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.sidebar { width: 300px; flex-shrink: 0; }
.sidebar-widget { background: white; border-radius: 15px; padding: 25px; margin-bottom: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.widget-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.widget-title { font-size: 1.4rem; font-weight: 700; color: #2c3e50; }
.widget-icon { width: 30px; height: 30px; background: linear-gradient(135deg, #ff6b6b, #4ecdc4); border-radius: 50%; }
.rank-list li { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px dashed #eee; }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: linear-gradient(135deg, #ff6b6b, #4ecdc4); color: white; border-radius: 50%; font-size: 0.9rem; font-weight: bold; margin-right: 12px; flex-shrink: 0; }
.rank-list a { flex-grow: 1; font-weight: 600; color: #34495e; }
.rank-list a:hover { color: #ff6b6b; }
.cat-list { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-link { display: block; padding: 8px 18px; background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; border-radius: 50px; font-weight: 600; font-size: 0.95rem; }
.cat-link:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4); }
.sidebar-decoration { height: 200px; border-radius: 15px; background-size: cover; background-position: center; margin-top: 30px; }

/* 首页尾部 */
.site-footer { position: relative; background: #2c3e50; color: #ecf0f1; padding: 60px 0 30px; margin-top: 80px; }
.footer-bg { position: absolute; top: 0; left: 0; right: 0; height: 200px; background-size: cover; background-position: center; opacity: 0.15; }
.footer-container { position: relative; z-index: 2; }
.footer-links { display: flex; justify-content: center; margin-bottom: 40px; }
.links-section { text-align: center; }
.links-title { font-size: 1.5rem; margin-bottom: 25px; color: #fff; font-weight: 700; }
.friend-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.friend-links li a { display: block; padding: 10px 20px; background: rgba(255,255,255,0.1); border-radius: 50px; color: #bdc3c7; font-weight: 500; }
.friend-links li a:hover { background: rgba(255,255,255,0.2); color: white; }
.footer-info { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); }
.copyright { font-size: 1rem; margin-bottom: 10px; }
.icp { font-size: 0.95rem; color: #95a5a6; }

/* 列表页 */
.list-page { padding: 40px 0; }
.page-header { position: relative; margin-bottom: 50px; border-radius: 20px; overflow: hidden; }
.header-bg { height: 250px; background-size: cover; background-position: center; filter: brightness(0.7); }
.header-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: white; z-index: 2; width: 100%; }
.category-link { display: inline-block; padding: 10px 25px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: 50px; color: white; font-weight: 700; font-size: 1.1rem; margin-bottom: 15px; }
.page-title { font-size: 3rem; font-weight: 900; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
.list-container { display: flex; gap: 40px; }
.list-main { flex: 1; }
.filter-bar { background: white; border-radius: 15px; padding: 20px; margin-bottom: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.filter-options { display: flex; align-items: center; gap: 15px; }
.filter-label { font-weight: 600; color: #2c3e50; }
.filter-btn { padding: 8px 20px; background: #f8f9fa; border-radius: 50px; color: #7f8c8d; font-weight: 600; }
.filter-btn.active { background: linear-gradient(135deg, #ff6b6b, #4ecdc4); color: white; }
.article-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; margin-bottom: 50px; }
.list-item { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: all 0.3s; }
.list-item:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.list-item-inner { display: flex; flex-direction: column; height: 100%; }
.list-item-img { height: 200px; background-size: cover; background-position: center; }
.list-item-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.list-item-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; color: #2c3e50; line-height: 1.4; }
.list-item-desc { color: #7f8c8d; margin-bottom: 20px; flex-grow: 1; }
.list-item-meta { display: flex; gap: 20px; font-size: 0.9rem; color: #95a5a6; }
.meta-item { display: inline-flex; align-items: center; gap: 5px; }
.pagination-wrapper { text-align: center; }
.pagelist { display: inline-flex; gap: 10px; background: white; padding: 15px 30px; border-radius: 50px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.pagelist li a { display: block; width: 45px; height: 45px; line-height: 45px; text-align: center; background: #f8f9fa; border-radius: 50%; font-weight: 700; color: #2c3e50; }
.pagelist li a:hover { background: linear-gradient(135deg, #ff6b6b, #4ecdc4); color: white; }
.list-sidebar { width: 300px; flex-shrink: 0; }
.sidebar-block { background: white; border-radius: 15px; padding: 25px; margin-bottom: 30px; box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.block-header { margin-bottom: 20px; }
.block-title { font-size: 1.4rem; font-weight: 700; color: #2c3e50; padding-bottom: 10px; border-bottom: 3px solid #ff6b6b; }

/* 详情页 */
.detail-page { padding: 40px 0; }
.detail-header { position: relative; margin-bottom: 50px; border-radius: 20px; overflow: hidden; }
.detail-container { display: flex; gap: 40px; }
.detail-main { flex: 1; }
.article-info { background: white; border-radius: 15px; padding: 35px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.cat-link { display: inline-block; padding: 8px 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 50px; font-weight: 700; font-size: 0.95rem; margin-bottom: 20px; }
.article-title { font-size: 2.8rem; font-weight: 900; line-height: 1.3; color: #2c3e50; margin-bottom: 25px; }
.article-meta { display: flex; gap: 30px; font-size: 1rem; color: #7f8c8d; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-content { background: white; border-radius: 15px; padding: 40px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); font-size: 1.1rem; line-height: 1.8; color: #444; }
.article-content p { margin-bottom: 1.5em; }
.article-nav { display: flex; justify-content: space-between; background: white; border-radius: 15px; padding: 25px; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.article-nav a { display: block; padding: 15px 25px; background: #f8f9fa; border-radius: 10px; font-weight: 600; color: #2c3e50; max-width: 45%; }
.article-nav a:hover { background: linear-gradient(135deg, #ff6b6b, #4ecdc4); color: white; }
.u-back-list { display: inline-block; padding: 15px 35px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 50px; font-weight: 700; font-size: 1.1rem; text-align: center; margin-bottom: 50px; }
.u-back-list:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(102, 126,
