/* ====== 娱乐资讯网 (星瓜网) 全局样式 ====== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans SC', sans-serif; background-color: #fff4f8; color: #333; line-height: 1.6; }
a { text-decoration: none; color: #333; transition: color 0.3s ease; }
a:hover { color: #ff3366; }
ul, li { list-style: none; }
.container { width: 1200px; margin: 0 auto; }

/* 顶部导航区 - 渐变粉紫时尚风 */
.header-wrapper { background: linear-gradient(135deg, #ff3366 0%, #ff6b81 100%); padding: 15px 0; box-shadow: 0 4px 15px rgba(255,51,102,0.2); }
.header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.logo a { font-size: 36px; color: #fff; font-weight: 900; letter-spacing: 2px; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); }
.logo span { font-size: 14px; font-weight: 400; color: #ffe6ea; margin-left: 10px; letter-spacing: 1px; }

/* 搜索框 (圆润可爱) */
.search-box { display: flex; background: #fff; border-radius: 30px; padding: 4px; width: 300px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.search-box input { flex: 1; border: none; outline: none; padding: 8px 15px; background: transparent; font-size: 14px; }
.search-box button { background: #ff3366; color: #fff; border: none; padding: 8px 20px; border-radius: 25px; cursor: pointer; font-weight: bold; }
.search-box button:hover { background: #e62e5c; }

/* 主导航栏 */
.nav-wrapper { background: rgba(255,255,255,0.1); border-radius: 8px; backdrop-filter: blur(5px); }
.nav { display: flex; justify-content: center; }
.nav li { margin: 0 5px; }
.nav a { color: #fff; font-size: 16px; font-weight: 500; display: block; padding: 12px 25px; border-radius: 8px; transition: all 0.3s; }
.nav a:hover, .nav .current a { background: #fff; color: #ff3366; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* 主体布局 */
.main-wrapper { margin-top: 30px; display: flex; justify-content: space-between; gap: 20px; margin-bottom: 50px; }
.content-main { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; }

/* 通用模块块 */
.module { background: #fff; border-radius: 16px; padding: 25px; margin-bottom: 25px; box-shadow: 0 4px 20px rgba(255,51,102,0.05); }
.module-title { font-size: 22px; font-weight: 900; color: #ff3366; margin-bottom: 20px; position: relative; padding-left: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.module-title::before { content: ''; position: absolute; left: 0; top: 4px; width: 6px; height: 22px; background: linear-gradient(to bottom, #ff3366, #ff6b81); border-radius: 3px; }
.module-title a.more { font-size: 14px; font-weight: 400; color: #999; }
.module-title a.more:hover { color: #ff3366; }

/* 首页 - 头条吃瓜区 */
.gossip-top { text-align: center; margin-bottom: 30px; }
.gossip-top h2 a { font-size: 32px; font-weight: 900; color: #111; line-height: 1.4; background: linear-gradient(90deg, #ff3366, #9b59b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gossip-top p { color: #666; margin-top: 10px; font-size: 15px; }

/* 首页 - 瀑布流/网格图文 */
.grid-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-item { border-radius: 12px; overflow: hidden; transition: transform 0.3s; position: relative; }
.grid-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.grid-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.grid-title { padding: 15px; background: #fff; }
.grid-title h3 { font-size: 16px; font-weight: bold; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 首页 - 图文横排列表 */
.list-news li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px dashed #ffe6ea; }
.list-news li:last-child { border-bottom: none; }
.list-thumb { width: 160px; height: 110px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.list-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.list-news li:hover .list-thumb img { transform: scale(1.1); }
.list-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.list-info h3 { font-size: 18px; font-weight: bold; }
.list-info p { color: #888; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.list-meta { font-size: 12px; color: #bbb; }

/* 侧边栏 - 明星热搜榜 */
.star-rank li { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #f9f9f9; }
.star-rank-num { width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0; color: #999; text-align: center; line-height: 28px; font-weight: bold; font-size: 14px; margin-right: 15px; font-style: italic; }
.star-rank li:nth-child(1) .star-rank-num { background: #ff3366; color: #fff; transform: scale(1.2); }
.star-rank li:nth-child(2) .star-rank-num { background: #ff6b81; color: #fff; transform: scale(1.1); }
.star-rank li:nth-child(3) .star-rank-num { background: #ff99a8; color: #fff; }
.star-rank-title { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.star-rank-hot { font-size: 12px; color: #ff3366; background: #ffe6ea; padding: 2px 8px; border-radius: 10px; }

/* 底部区域 */
.footer { background: #fff; padding: 40px 0; margin-top: 40px; border-top: 3px solid #ff3366; text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #666; margin: 0 15px; font-weight: 500; }
.footer-links a:hover { color: #ff3366; }
.footer-copy { color: #999; font-size: 14px; }

/* ====== 内容页专属样式 ====== */
.article-wrap { padding: 40px; }
.breadcrumb { font-size: 14px; color: #999; margin-bottom: 30px; }
.breadcrumb a { color: #ff3366; }

.article-header { text-align: center; margin-bottom: 30px; }
.article-header h1 { font-size: 32px; font-weight: 900; color: #222; margin-bottom: 20px; line-height: 1.4; }
.article-meta { display: inline-flex; gap: 20px; background: #fff4f8; padding: 8px 25px; border-radius: 20px; font-size: 13px; color: #888; }
.article-meta span { display: flex; align-items: center; }
.article-meta i { color: #ff3366; margin-right: 5px; font-style: normal; }

.article-body { font-size: 18px; line-height: 2; color: #444; }
.article-body p { margin-bottom: 25px; text-indent: 2em; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 20px auto; display: block; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* 分页与交互 */
.article-actions { margin-top: 40px; border-top: 1px dashed #eee; padding-top: 30px; }
.article-tags { display: flex; gap: 12px; margin-bottom: 30px; }
.article-tags span { font-size: 14px; color: #999; line-height: 30px; }
.article-tags a { display: inline-block; padding: 0 15px; height: 30px; line-height: 30px; background: #fff; border: 1px solid #ff3366; color: #ff3366; border-radius: 15px; font-size: 13px; }
.article-tags a:hover { background: #ff3366; color: #fff; }

.article-prenext { display: flex; justify-content: space-between; background: #fafafa; padding: 20px; border-radius: 12px; font-size: 15px; }
.article-prenext p { width: 48%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-prenext a { font-weight: bold; }