/* ========== 基础全局样式 ========== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #333;
}
header {
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header .logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.3s, color 0.3s;
}
nav a:hover {
    background: rgba(255,255,255,0.3);
}
main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑 */
.breadcrumb-nav {
    padding: 10px 0;
    margin-bottom: 5px;
    font-size: 14px;
}
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
.breadcrumb li {
    display: flex;
    align-items: center;
}
.breadcrumb li+li::before {
    content: "›";
    padding: 0 8px;
    color: #999;
}
.breadcrumb a {
    color: #d63384;
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb .active {
    color: #666;
    pointer-events: none;
}

/* Hero 通用容器（首页使用 article.hero，其他页面沿用） */
article.hero, .about-intro, .channel-banner, .mv-header, .community-header {
    background: #fff;
    padding: 40px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    line-height: 1.8;
}
article.hero h1, .about-intro h1, .channel-banner h1, .mv-header h1, .community-header h1 {
    color: #d63384;
    margin-bottom: 20px;
}
article.hero p, .about-intro p {
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 轮播图 */
.slideshow-container {
    max-width: 1200px;
    margin: 20px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.slide {
    display: none;
    width: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    display: block;
    border-radius: 12px;
}
/* 轮播图文字覆盖层 */
.slide .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 30px 20px 20px;
    text-align: center;
}
.caption h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: bold;
}
.caption p {
    margin: 0 0 15px;
    font-size: 16px;
}
.caption .btn {
    display: inline-block;
    background: #d63384;
    color: #fff;
    padding: 8px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.caption .btn:hover {
    background: #b52a6e;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: background 0.3s;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0,0,0,0.4);
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}
.dot-container {
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.05);
}
.dot {
    cursor: pointer;
    height: 14px;
    width: 14px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s;
}
.active, .dot:hover {
    background: #d63384;
}

/* 内容推荐卡片 */
.content-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}
.block {
    flex: 1 1 280px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.block:hover {
    transform: translateY(-5px);
}
.block img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}
.block h3 {
    color: #d63384;
    margin-bottom: 10px;
}

/* FAQ 问答 */
.faq-section {
    background: #fff;
    padding: 30px 40px;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.faq-section h2 {
    color: #d63384;
    margin-bottom: 25px;
    text-align: center;
}
details {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 18px;
    background: #fafafa;
    transition: background 0.2s;
}
details[open] {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
summary {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    outline: none;
    padding: 5px 0;
}
summary:hover {
    color: #d63384;
}
details p {
    margin: 12px 0 5px;
    color: #555;
    line-height: 1.7;
}

/* ========== 首页新增板块样式 ========== */
/* 水平时间线 */
.timeline-horizontal {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
}
.tl-item {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid #d63384;
}
.tl-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}
.tl-desc {
    font-size: 14px;
    color: #333;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.tag {
    background: #f0e0f0;
    color: #d63384;
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}
.tag:hover {
    background: #e0c0e0;
}

/* ========== 关于页样式 ========== */
.about-intro {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.timeline {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.timeline h2 {
    border-left: 4px solid #d63384;
    padding-left: 12px;
}
.timeline-item {
    display: flex;
    margin: 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}
.timeline-item .year {
    font-weight: bold;
    color: #d63384;
    min-width: 80px;
}
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.team-card {
    flex: 1 1 200px;
    background: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.team-card img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

/* 用户评价 */
.testimonials {
    margin: 30px 0;
}
.testimonial-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.testimonial-card {
    flex: 1 1 250px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}
.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.testimonial-card p {
    font-style: italic;
    color: #555;
}
.testimonial-card span {
    color: #999;
    font-size: 13px;
}

/* 合作伙伴 */
.partners {
    margin: 30px 0;
}
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}
.partner-logos img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.partner-logos img:hover {
    filter: none;
    opacity: 1;
}

/* ========== 彩虹社区页样式 ========== */
.community-header {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.community-announcement {
    background: #fff3cd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 5px solid #ffc107;
}
.community-announcement h3 {
    margin: 0 0 5px;
    color: #856404;
}
.hot-tags a {
    display: inline-block;
    background: #f0e0f0;
    padding: 4px 12px;
    margin: 3px;
    border-radius: 15px;
    text-decoration: none;
    color: #d63384;
    font-size: 14px;
}
.post-list {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}
.post-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.post-item:last-child {
    border-bottom: none;
}
.avatar {
    border-radius: 50%;
    margin-right: 15px;
    width: 48px;
    height: 48px;
}
.post-content h3 a {
    color: #333;
    text-decoration: none;
}
.post-content h3 a:hover {
    color: #d63384;
}
.post-meta {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}
.post-tag {
    display: inline-block;
    background: #eee;
    color: #d63384;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 8px;
}
.active-users {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}
.user-card {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    flex: 1;
}
.user-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 8px;
}
.badge {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ========== 男男频道页样式 ========== */
.channel-banner {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.editor-picks {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
}
.pick-card {
    flex: 0 0 250px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.pick-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.pick-card h3 {
    padding: 10px 15px 0;
    font-size: 16px;
    margin: 0;
}
.pick-card h3 a {
    color: #333;
    text-decoration: none;
}
.pick-card p {
    padding: 0 15px 10px;
    color: #999;
    font-size: 13px;
}
.topic-collection {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}
.topic-item {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.topic-item:hover {
    transform: translateY(-3px);
}
.topic-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}
.topic-item h4 {
    margin: 0 0 5px;
    color: #d63384;
}
.topic-item p {
    font-size: 13px;
    color: #666;
}
.article-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.card {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.card img {
    width: 100%;
    display: block;
}
.card h3 {
    padding: 15px 15px 0;
    font-size: 18px;
    color: #333;
}
.card p {
    padding: 0 15px;
    color: #666;
}
.card-meta {
    font-size: 12px;
    color: #999;
    padding: 0 15px 5px;
}
.read-more {
    display: inline-block;
    margin: 10px 15px 15px;
    color: #d63384;
    text-decoration: none;
    font-weight: 600;
}

/* ========== 小蓝MV页样式 ========== */
.mv-header {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.mv-categories {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}
.cat-btn {
    padding: 8px 18px;
    border: 1px solid #d63384;
    background: #fff;
    color: #d63384;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.cat-btn.active,
.cat-btn:hover {
    background: #d63384;
    color: #fff;
}
.mv-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.mv-main {
    flex: 3;
}
.mv-sidebar {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    align-self: flex-start;
}
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.mv-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 10px;
    position: relative;
}
.mv-card img {
    width: 100%;
    display: block;
}
.mv-card h4 {
    margin: 10px 0 5px;
    color: #333;
}
.mv-card p {
    font-size: 13px;
    color: #999;
}
.mv-duration {
    position: absolute;
    bottom: 40px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.mv-rank {
    list-style: none;
    padding: 0;
}
.mv-rank li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.mv-rank li span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #d63384;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    line-height: 20px;
}
.sidebar-tags a {
    display: inline-block;
    background: #f0e0f0;
    color: #d63384;
    padding: 4px 10px;
    margin: 3px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 12px;
}
.more-link {
    text-align: center;
    margin: 20px 0;
}

/* ========== 页脚 ========== */
footer {
    background: #2d2d2d;
    color: #ccc;
    padding: 25px 20px;
    margin-top: 50px;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 15px;
}
.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #ff9a9e;
}
.footer-info {
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}
.footer-info p {
    margin: 5px 0;
}
time {
    font-weight: bold;
    color: #ff9a9e;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .mv-layout {
        flex-direction: column;
    }
    .timeline-horizontal {
        flex-wrap: nowrap;
    }
}