/* styles.css */

/* --- 全局与重置 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

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

a {
    text-decoration: none;
    color: #337ab7;
}

a:hover {
    color: #23527c;
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* --- 头部导航 --- */
.main-nav {
    background: #fff;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #d9534f;
}
.logo:hover {
    color: #c9302c;
    text-decoration: none;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li a {
    padding: 0.5rem 1rem;
    color: #555;
    font-weight: 500;
}

.main-nav ul li a:hover, .main-nav ul li a.active {
    color: #d9534f;
    text-decoration: none;
}

/* --- 面包屑 --- */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #777;
}

/* --- Hero区域 --- */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.btn {
    background: #d9534f;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
}
.btn:hover {
    background: #c9302c;
    color: #fff;
    text-decoration: none;
}

/* --- 轮播图 --- */
.slider-section {
    background: #fff;
    padding: 1rem 0;
}
.slider {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
}
.slider-nav span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
}
.slider-nav .prev { left: 0; }
.slider-nav .next { right: 0; }
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}
.slider-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
}
.slider-dots span.active {
    background: #d9534f;
}

/* --- 主内容区 (黄金布局) --- */
.main-content {
    display: flex;
    gap: 30px;
    padding: 2rem 0;
}
.content-left {
    flex: 0 0 70%;
    background: #fff;
    padding: 20px;
}
.sidebar-right {
    flex: 0 0 30%;
}

/* --- 文章列表 --- */
.post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}
.post-item img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}
.post-info h3 a {
    color: #333;
}
.post-info .meta {
    font-size: 0.8rem;
    color: #888;
    margin: 0.5rem 0;
}
.read-more {
    display: inline-block;
    margin-top: 10px;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* --- 侧边栏 --- */
.widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.widget h3 {
    margin-bottom: 1rem;
    border-bottom: 2px solid #d9534f;
    padding-bottom: 0.5rem;
    display: inline-block;
}
.widget ol, .widget ul {
    padding-left: 20px;
}
.widget ol li, .widget ul li {
    margin-bottom: 0.5rem;
}
.widget ol { list-style-type: decimal; }
.widget ul { list-style-type: disc; }

.friend-links-widget ul {
    padding-left: 0;
    list-style: none;
}
.friend-links-widget li {
    margin-bottom: 8px;
}
.friend-links-widget a {
    font-size: 0.9rem;
}

/* --- 关于我们页面 --- */
.about-page {
    background: #fff;
    padding: 2rem;
}
.about-content h1, .about-content h2 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}
.about-content p, .about-content li {
    margin-bottom: 1rem;
}

/* --- 页脚 --- */
footer {
    background: #333;
    color: #ccc;
    padding-top: 2rem;
    margin-top: 2rem;
}
.footer-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}
.footer-top .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links {
    flex: 1;
    min-width: 200px;
}
.footer-links h4 {
    color: #fff;
    margin-bottom: 1rem;
}
.footer-links ul li a {
    color: #ccc;
    font-size: 0.9rem;
}
.footer-links ul li a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
}
.copyright {
    margin-bottom: 0.5rem;
}
.footer-meta a {
    color: #ccc;
    margin: 0 5px;
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
    }
    .main-nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-content {
        flex-direction: column;
    }
    .content-left, .sidebar-right {
        flex: 100%;
    }
    .post-item {
        flex-direction: column;
    }
    .post-item img {
        width: 100%;
        height: auto;
    }
    .footer-top .container {
        flex-direction: column;
        text-align: center;
    }
}
/* Hero区域背景图 */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%), 
                url('https://via.placeholder.com/1920x600/667eea/FFFFFF?text=YY漫画Hero背景') no-repeat center center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: #ff6b6b;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    border: 2px solid #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

/* 内容板块 */
.content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.content-section:last-child {
    border-bottom: none;
}

.section-icon {
    margin-right: 10px;
}

/* 文章网格 */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1.5rem;
}

.post-card {
    display: flex;
    gap: 1rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.post-image {
    position: relative;
    flex-shrink: 0;
}

.post-image img {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.post-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ff6b6b;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.post-badge.new {
    background: #4ecdc4;
}

.post-badge.hot {
    background: #f38181;
}

.post-content {
    flex: 1;
}

.post-content h3 {
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.post-meta span {
    margin-right: 10px;
}

.post-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.5rem;
}

.post-tags {
    margin: 0.5rem 0;
}

.tag {
    display: inline-block;
    background: #e9ecef;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-right: 5px;
    color: #666;
}

.read-more {
    display: inline-block;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* 最新更新列表 */
.latest-list {
    list-style: none;
    margin-top: 1.5rem;
}

.latest-list li {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.latest-list li:hover {
    background: #f9f9f9;
}

.list-number {
    width: 30px;
    height: 30px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-weight: bold;
}

.list-title {
    flex: 1;
    font-weight: 500;
}

.list-time, .list-chapter {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: #888;
}

/* 漫画介绍 */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.intro-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b6b;
}

.intro-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.intro-card p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.intro-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* 标签云 */
.tags-cloud {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.tag-cloud-item {
    display: inline-block;
    margin: 5px 10px;
    color: #667eea;
    transition: color 0.3s;
}

.tag-cloud-item:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* 排行榜 */
.ranking-list {
    list-style: none;
    counter-reset: ranking;
}

.ranking-list li {
    counter-increment: ranking;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 30px;
}

.ranking-list li::before {
    content: counter(ranking);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ff6b6b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.ranking-list li:nth-child(-n+3)::before {
    background: #f38181;
}

.rank-name {
    font-weight: 500;
}

.rank-hot {
    float: right;
    font-size: 0.8rem;
}

.rank-new {
    background: #4ecdc4;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-left: 5px;
}

/* 推荐列表 */
.recommend-list {
    list-style: none;
}

.recommend-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.recommend-list li:last-child {
    border-bottom: none;
}

/* 关于我们页面 */
.about-page {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
}

.about-content h1 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.lead {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.feature-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.feature-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* 时间线 */
.timeline {
    margin: 1.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ff6b6b;
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 12px;
    height: 12px;
    background: #ff6b6b;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ff6b6b;
}

.timeline-date {
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #666;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* 团队卡片 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.team-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

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

.team-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.team-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.team-role {
    color: #ff6b6b;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.team-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* 联系信息 */
.contact-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-info {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #ff6b6b;
    padding-bottom: 0.5rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* 职位列表 */
.job-list {
    margin: 1.5rem 0;
}

.job-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #ff6b6b;
}

.job-item h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.job-item p {
    font-size: 0.9rem;
    color: #666;
}

/* 法律声明 */
.legal-section {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.legal-section h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.legal-section h4:first-child {
    margin-top: 0;
}

.legal-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .post-grid,
    .intro-grid,
    .feature-grid,
    .stats-grid,
    .team-grid,
    .contact-section {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
