/* 基础重置与全局样式 */
* { 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; }

/* 通用容器 */
.header-container, .main-container, .footer-container, .list-page-container, .detail-page-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 头部样式 */
.site-header { background: linear-gradient(to right, #1a2980, #26d0ce); padding: 15px 0; box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: relative; }
.logo-area { position: relative; display: inline-block; }
.logo-link { display: block; }
.logo-text { font-size: 2.5rem; font-weight: 800; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); letter-spacing: 1px; }
.header-bg { position: absolute; top: -10px; right: -30px; width: 120px; height: 120px; background-size: cover; background-position: center; border-radius: 50%; opacity: 0.7; z-index: 0; }
.main-nav { margin-top: 15px; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 25px; justify-content: center; }
.main-nav a { color: white; font-size: 1.1rem; padding: 8px 16px; border-radius: 30px; background: rgba(255,255,255,0.15); }
.main-nav a:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

/* 首页主体 */
.hero-banner { margin-bottom: 40px; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.banner-inner { height: 400px; background-size: cover; background-position: center; position: relative; }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7)); display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; text-align: center; padding: 20px; }
.banner-title { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 3px 3px 6px rgba(0,0,0,0.5); }
.banner-desc { font-size: 1.3rem; opacity: 0.9; }

.content-section { background: white; border-radius: 15px; padding: 30px; margin-bottom: 40px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); position: relative; overflow: hidden; }
.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, #ff7e5f, #feb47b); margin-right: 12px; border-radius: 5px; }
.section-bg { position: absolute; top: -20px; right: -20px; width: 150px; height: 150px; background-size: cover; border-radius: 50%; opacity: 0.1; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.article-grid li { background: #f8f9fa; padding: 20px; border-radius: 12px; border-left: 5px solid #3498db; transition: all 0.3s; }
.article-grid li:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(52,152,219,0.2); background: #e3f2fd; }
.article-grid a { font-size: 1.1rem; font-weight: 500; display: block; }

.layout-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.content-column { background: white; border-radius: 15px; padding: 25px; box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.column-header { border-bottom: 2px dashed #eee; padding-bottom: 15px; margin-bottom: 20px; }
.column-title { font-size: 1.5rem; color: #2c3e50; display: flex; align-items: center; }

.decorated-list li { padding: 12px 0; border-bottom: 1px dotted #ddd; position: relative; padding-left: 20px; }
.decorated-list li:before { content: '▶'; position: absolute; left: 0; color: #e74c3c; }
.news-ticker { background: #fff8e1; border-radius: 10px; padding: 15px; border: 1px dashed #ffb74d; }
.ticker-list { height: 200px; overflow-y: auto; }
.ticker-list li { padding: 10px; background: #fff; margin-bottom: 8px; border-radius: 8px; border-left: 3px solid #ffb74d; }
.featured-list li { background: linear-gradient(to right, #fdfcfb, #f5f7fa); padding: 15px; margin-bottom: 12px; border-radius: 10px; border: 1px solid #e0e0e0; }

.highlight-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.highlight-section .section-title { color: white; }
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.highlight-grid li { background: rgba(255,255,255,0.15); padding: 18px; border-radius: 12px; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); }
.highlight-grid a { color: white; font-weight: 500; }

/* 尾部样式 */
.site-footer { background: linear-gradient(to right, #2c3e50, #4a6491); color: #ddd; padding: 50px 0 20px; margin-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-widget { position: relative; }
.widget-title { font-size: 1.4rem; color: white; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.2); }
.widget-content { margin-bottom: 12px; line-height: 1.8; }
.widget-bg { position: absolute; bottom: -10px; right: -10px; width: 80px; height: 80px; background-size: cover; border-radius: 50%; opacity: 0.2; }
.friend-links li { padding: 8px 0; border-bottom: 1px dotted rgba(255,255,255,0.1); }
.friend-links a { color: #bdc3c7; }
.friend-links a:hover { color: #1abc9c; }
.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); }
.copyright { font-size: 0.95rem; color: #95a5a6; }

/* 列表页样式 */
.list-page-header { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); color: white; padding: 60px 0; text-align: center; border-radius: 0 0 30px 30px; margin-bottom: 40px; position: relative; overflow: hidden; }
.page-header-bg { position: absolute; inset: 0; background-size: cover; opacity: 0.2; }
.page-header-content { position: relative; z-index: 1; }
.page-title { font-size: 3rem; margin-bottom: 15px; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
.current-category { font-size: 1.2rem; }
.category-link { color: #ffeb3b; font-weight: bold; border-bottom: 2px dotted #ffeb3b; }

.list-filter-bar { background: white; padding: 18px 25px; border-radius: 12px; display: flex; align-items: center; gap: 20px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); position: relative; }
.filter-bg { position: absolute; top: 0; right: 0; width: 100px; height: 100%; background-size: cover; border-radius: 0 12px 12px 0; opacity: 0.1; }
.filter-label { font-weight: bold; color: #555; }
.filter-option { padding: 8px 20px; border-radius: 30px; background: #f1f1f1; }
.filter-option.active { background: linear-gradient(to right, #36d1dc, #5b86e5); color: white; }

.list-article-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.list-article-items li { background: white; padding: 25px; border-radius: 15px; box-shadow: 0 7px 20px rgba(0,0,0,0.07); border-left: 6px solid #9b59b6; transition: all 0.3s; }
.list-article-items li:hover { transform: translateX(10px); border-left-color: #e74c3c; }
.list-article-items a { font-size: 1.2rem; font-weight: 500; display: block; }

.list-pagination { text-align: center; margin: 40px 0; }
.pagelist { display: inline-flex; gap: 12px; background: white; padding: 15px 30px; border-radius: 50px; box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.pagelist li { display: inline-block; }
.pagelist a { display: block; width: 45px; height: 45px; line-height: 45px; text-align: center; border-radius: 50%; background: #f8f9fa; font-weight: bold; }
.pagelist a:hover { background: linear-gradient(to right, #ff7e5f, #feb47b); color: white; }

.list-side-recommend { background: white; border-radius: 15px; padding: 25px; margin-top: 40px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.side-title { font-size: 1.5rem; color: #2c3e50; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 3px solid #a29bfe; }
.side-article-list li { padding: 12px 0; border-bottom: 1px dashed #eee; }
.side-article-list a { color: #555; }
.side-article-list a:hover { color: #fd79a8; }

/* 详情页样式 */
.detail-page-container { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 15px 50px rgba(0,0,0,0.1); margin: 30px auto; max-width: 1000px; }
.detail-header-bg { height: 200px; background-size: cover; background-position: center; }

.detail-main-content { padding: 40px; }
.article-info { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 3px double #eee; }
.cat-link { display: inline-block; background: linear-gradient(to right, #00b09b, #96c93d); color: white; padding: 8px 25px; border-radius: 30px; font-size: 0.95rem; margin-bottom: 20px; }
.article-title { font-size: 2.8rem; color: #2c3e50; margin: 20px 0; line-height: 1.3; }
.article-meta { display: flex; justify-content: center; gap: 30px; color: #7f8c8d; font-size: 1rem; }

.article-tags { margin: 30px 0; }
.tags-label { font-weight: bold; margin-right: 15px; }
.tag-item { display: inline-block; background: #e0f7fa; color: #00695c; padding: 6px 15px; border-radius: 20px; margin-right: 10px; font-size: 0.9rem; border: 1px solid #80deea; }
.tag-item:hover { background: #b2ebf2; }

.article-nav { display: flex; justify-content: space-between; margin: 40px 0; padding: 25px; background: #f9f9f9; border-radius: 15px; border: 1px dashed #ccc; }
.article-nav a { padding: 12px 25px; border-radius: 30px; background: white; border: 2px solid #ddd; font-weight: 500; }
.article-nav a[rel="prev"] { border-color: #3498db; color: #3498db; }
.article-nav a[rel="next"] { border-color: #e74c3c; color: #e74c3c; }
.article-nav a:hover { background: #f0f0f0; }

.detail-recommend { margin: 50px 0; }
.recommend-title { font-size: 1.8rem; color: #2c3e50; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 3px solid #ff7675; }
.recommend-article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.recommend-article-list li { background: #f8f9fa; padding: 18px; border-radius: 12px; border-left: 4px solid #74b9ff; }
.recommend-article-list a { font-weight: 500; }

.u-back-list { display: block; width: 200px; margin: 40px auto; text-align: center; padding: 15px 30px; background: linear-gradient(to right, #6a89cc, #4a69bd); color: white; border-radius: 30px; font-size: 1.1rem; font-weight: bold; box-shadow: 0 8px 20px rgba(106,137,204,0.4); }
.u-back-list:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(106,137,204,0.6); }

/* 响应式调整 */
@media (max-width: 768px) {
    .main-nav ul { gap: 10px; }
    .banner-title { font-size: 2.5rem; }
    .layout-columns { grid-template-columns: 1fr; }
    .article-grid, .highlight-grid { grid-template-columns: 1fr; }
    .article-nav { flex-direction: column; gap: 20px; }
    .pagelist { flex-wrap: wrap; justify-content: center; }
}
