/* 哔咔漫画官网全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --c1: #ff6b9d;
    --c2: #c44569;
    --c3: #ffa502;
    --c4: #2c3e50;
    --c5: #34495e;
    --c6: #ecf0f1;
    --c7: #ffffff;
    --c8: #95a5a6;
    --shadow1: 0 4px 20px rgba(0,0,0,0.1);
    --shadow2: 0 8px 30px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.7;
    color: var(--c4);
    background: var(--c6);
    opacity: 0;
    animation: k9f2j8a 0.6s ease forwards;
}

@keyframes k9f2j8a {
    to { opacity: 1; }
}

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

img[data-src] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img.loaded {
    opacity: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.q7w3n5m {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.p8k2m4n {
    background: linear-gradient(135deg, var(--c1) 0%, var(--c2) 100%);
    color: var(--c7);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow1);
    animation: x5d9k2l 0.5s ease;
}

@keyframes x5d9k2l {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.r4t7y9p {
    background: rgba(0,0,0,0.15);
    padding: 12px 0;
    font-size: 14px;
}

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

.w8e5r2t {
    display: flex;
    gap: 20px;
}

.w8e5r2t a:hover {
    color: var(--c3);
}

.m3n8b6v {
    padding: 20px 0;
}

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

.l2p9k5j {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 32px;
    font-weight: 700;
}

.t6y4u8i {
    width: 50px;
    height: 50px;
    background: var(--c7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.n7m4k9l ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.n7m4k9l a {
    color: var(--c7);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.n7m4k9l a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c3);
    transition: width 0.3s ease;
}

.n7m4k9l a:hover::after {
    width: 100%;
}

/* 面包屑导航 */
.b5g8h3j {
    background: var(--c7);
    padding: 15px 0;
    font-size: 14px;
    color: var(--c8);
    border-bottom: 1px solid #ddd;
}

.b5g8h3j a {
    color: var(--c1);
}

.b5g8h3j a:hover {
    text-decoration: underline;
}

/* 英雄区域 */
.h9j6k3l {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--c7);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.h9j6k3l::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.d4f7g2h {
    position: relative;
    z-index: 1;
}

.d4f7g2h h2 {
    font-size: 56px;
    margin-bottom: 25px;
    animation: z2x5c8v 0.8s ease;
}

@keyframes z2x5c8v {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.d4f7g2h p {
    font-size: 22px;
    margin-bottom: 35px;
    opacity: 0.95;
    animation: z2x5c8v 0.8s ease 0.2s backwards;
}

.v3b8n5m {
    display: inline-block;
    background: var(--c3);
    color: var(--c7);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: z2x5c8v 0.8s ease 0.4s backwards;
}

.v3b8n5m:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* 内容区域 */
.c8x4z9q {
    padding: 70px 0;
}

.a2s5d8f {
    text-align: center;
    margin-bottom: 60px;
}

.a2s5d8f h2 {
    font-size: 42px;
    color: var(--c4);
    margin-bottom: 18px;
}

.a2s5d8f p {
    color: var(--c8);
    font-size: 18px;
}

/* 网格布局 */
.g4h7j2k {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.k9l3m6n {
    background: var(--c7);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow1);
    transition: all 0.4s ease;
}

.k9l3m6n:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow2);
}

.p2o8i5u {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.y7t6r4e {
    padding: 30px;
}

.y7t6r4e h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--c4);
}

.y7t6r4e p {
    color: var(--c8);
    line-height: 1.8;
    margin-bottom: 20px;
}

.w3e6r9t {
    display: inline-block;
    color: var(--c1);
    font-weight: 600;
    padding: 10px 25px;
    border: 2px solid var(--c1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.w3e6r9t:hover {
    background: var(--c1);
    color: var(--c7);
}

/* 特色区域 */
.q5w8e3r {
    background: var(--c7);
    padding: 70px 0;
}

.t2y7u4i {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.o9p3k7l {
    text-align: center;
    padding: 35px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.o9p3k7l:hover {
    background: var(--c6);
    transform: scale(1.05);
}

.m5n9b2v {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(255,107,157,0.3);
}

.o9p3k7l h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--c4);
}

.o9p3k7l p {
    color: var(--c8);
    line-height: 1.8;
}

/* 文章内容 */
.x7c2v8b {
    background: var(--c7);
    border-radius: 15px;
    padding: 50px;
    margin: 40px 0;
    box-shadow: var(--shadow1);
}

.x7c2v8b h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--c4);
}

.x7c2v8b h3 {
    font-size: 26px;
    margin: 30px 0 15px;
    color: var(--c4);
}

.x7c2v8b p {
    margin-bottom: 20px;
    line-height: 2;
    color: var(--c5);
}

.x7c2v8b ul, .x7c2v8b ol {
    margin: 20px 0 20px 30px;
    line-height: 2;
}

.x7c2v8b li {
    margin-bottom: 10px;
    color: var(--c5);
}

.z4x9c5v {
    background: var(--c6);
    padding: 15px 25px;
    border-left: 4px solid var(--c1);
    margin: 25px 0;
    border-radius: 5px;
}

/* 底部 */
.f3g7h8j {
    background: var(--c4);
    color: var(--c7);
    padding: 60px 0 25px;
}

.k6l2p9o {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 45px;
    margin-bottom: 40px;
}

.i5u8y3t h3 {
    margin-bottom: 22px;
    font-size: 20px;
}

.i5u8y3t ul {
    list-style: none;
}

.i5u8y3t li {
    margin-bottom: 12px;
}

.i5u8y3t a {
    color: rgba(255,255,255,0.8);
}

.i5u8y3t a:hover {
    color: var(--c3);
}

.r8t5y2u {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* 返回顶部 */
.e9w3q6a {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 55px;
    height: 55px;
    background: var(--c1);
    color: var(--c7);
    border: none;
    border-radius: 50%;
    font-size: 26px;
    cursor: pointer;
    box-shadow: var(--shadow1);
    transition: all 0.3s ease;
    z-index: 999;
    display: none;
}

.e9w3q6a.show {
    display: block;
    animation: d5f8g4h 0.3s ease;
}

@keyframes d5f8g4h {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.e9w3q6a:hover {
    background: var(--c2);
    transform: translateY(-5px);
}

/* 响应式 */
@media (max-width: 768px) {
    .m3n8b6v .q7w3n5m {
        flex-direction: column;
        gap: 20px;
    }

    .n7m4k9l ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .d4f7g2h h2 {
        font-size: 36px;
    }

    .g4h7j2k {
        grid-template-columns: 1fr;
    }

    .x7c2v8b {
        padding: 30px 20px;
    }
}
