/* 基础样式 */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #e63946;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 24px;
    margin: 20px 0;
    color: #333;
    border-left: 4px solid #e63946;
    padding-left: 10px;
}

h3 {
    font-size: 18px;
    margin: 10px 0;
}

p {
    margin: 10px 0;
}

.btn {
    display: inline-block;
    background-color: #e63946;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #d62828;
    color: white;
}

.tag {
    display: inline-block;
    background-color: #e63946;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 10px;
}

.tag.hot {
    background-color: #e63946;
}

.tag.breaking {
    background-color: #fca311;
}

.tag.exclusive {
    background-color: #1d3557;
}

.tag.behind {
    background-color: #457b9d;
}

.tag.relationship {
    background-color: #a8dadc;
    color: #333;
}

.tag.controversy {
    background-color: #e63946;
}

/* 导航栏 */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s;
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #e63946;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 25px;
}

.nav ul li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
}

.nav ul li a.active {
    color: #e63946;
}

.nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e63946;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 200px;
    outline: none;
}

.search-box button {
    padding: 8px 15px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 移动端导航 */
.mobile-menu {
    display: none;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-menu-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    padding: 15px 0;
}

.mobile-nav ul {
    margin-bottom: 15px;
}

.mobile-nav ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li:last-child {
    border-bottom: none;
}

.mobile-search-box {
    display: flex;
    align-items: center;
}

.mobile-search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    flex: 1;
    outline: none;
}

.mobile-search-box button {
    padding: 8px 15px;
    background-color: #e63946;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 轮播图 */
.hero {
    margin: 20px 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.hero-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 30px;
    color: white;
}

.slide-content h2 {
    font-size: 28px;
    margin: 10px 0;
    color: white;
    border: none;
    padding: 0;
}

.slide-content p {
    margin-bottom: 15px;
    max-width: 800px;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots {
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

/* 分类导航 */
.categories {
    margin: 30px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.category-item span {
    font-weight: 500;
}

/* 最新爆料 */
.latest-news {
    margin: 30px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-cover {
    position: relative;
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s;
}

.card-cover:hover img {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e63946;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 3px;
    z-index: 10;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.meta {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.meta span {
    margin-right: 15px;
}

.excerpt {
    margin-bottom: 15px;
    flex: 1;
}

.read-more {
    color: #e63946;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

/* 热门话题 */
.hot-topics {
    margin: 30px 0;
}

.topics-container {
    display: flex;
    gap: 20px;
}

.topic-trending {
    flex: 1;
}

.topic-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.topic-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.topic-card.large {
    height: 620px;
}

.topic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.topic-card:hover img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 20px;
    color: white;
}

.topic-rank {
    background-color: #e63946;
    color: white;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 10px;
}

.topic-card.large .topic-rank {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
}

.topic-card h3 {
    margin: 0;
    font-size: 18px;
}

.topic-card.large h3 {
    font-size: 24px;
}

.topic-meta {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-size: 14px;
}

.topic-comments {
    margin-right: 15px;
}

/* 明星动态 */
.star-activities {
    margin: 30px 0;
}

.activities-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.star-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.star-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.star-card:hover {
    background-color: #f8f8f8;
}

.star-avatar {
    margin-right: 15px;
}

.star-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.star-info {
    flex: 1;
}

.star-info h3 {
    margin: 0;
    font-size: 16px;
}

.star-title {
    font-size: 14px;
    color: #666;
}

.star-update {
    font-size: 14px;
    margin-top: 5px;
    line-height: 1.4;
}

/* 页脚 */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 40px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h3 {
    margin-top: 0;
    font-size: 18px;
    color: white;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.social-links {
    display: flex;
    margin-top: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background-color: #333;
    color: #ccc;
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
    background-color: #e63946;
    color: white;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li i {
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.copyright {
    font-size: 12px;
    margin-top: 10px;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #e63946;
    color: white;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background-color: #d62828;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .topics-container {
        flex-direction: column;
    }
    
    .topic-card.large {
        height: 300px;
    }
    
    .star-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .slide img {
        height: 300px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h2 {
        font-size: 20px;
    }
    
    .slide-content p {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
    }
    
    .star-grid {
        grid-template-columns: 1fr;
    }
}
    