/* style.css - 双男主M砰砰砰漫画完整百度 网站样式 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    line-height: 1.8;
    transition: background 0.3s, color 0.3s;
}

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

/* 导航吸顶 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(233, 69, 96, 0.3);
}

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

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #e94560;
    text-decoration: none;
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.3);
    transition: transform 0.3s, text-shadow 0.3s;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.6);
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e94560;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: rotate(90deg);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.5);
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #d63851, #c42d45);
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 30px rgba(233, 69, 96, 0.7);
}

/* 通用区块 */
section {
    padding: 70px 0;
    position: relative;
}

h1 {
    font-size: 38px;
    text-align: center;
    margin-bottom: 24px;
    color: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e, #e94560);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 30px;
    margin: 44px 0 24px;
    color: #1a1a2e;
    border-left: 5px solid #e94560;
    padding-left: 18px;
    position: relative;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e94560, transparent);
    border-radius: 2px;
}

h3 {
    font-size: 24px;
    margin: 30px 0 16px;
    color: #16213e;
}

h4 {
    font-size: 19px;
    margin: 22px 0 12px;
    color: #333;
}

p {
    margin-bottom: 18px;
    font-size: 16px;
    color: #444;
    line-height: 1.9;
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 30px;
    margin: 34px 0;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(233, 69, 96, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.03), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(233, 69, 96, 0.3);
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    padding: 6px 18px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(233, 69, 96, 0.3);
    letter-spacing: 0.5px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(233, 69, 96, 0.35);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::after {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #d63851, #c42d45);
    transform: scale(1.04) translateY(-2px);
    box-shadow: 0 8px 24px rgba(233, 69, 96, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #e94560;
    color: #e94560;
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border-color: transparent;
}

/* Banner 轮播 - 渐变风格 */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #1a1a2e 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(233, 69, 96, 0.15), transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(233, 69, 96, 0.1), transparent 50%);
    pointer-events: none;
}

.banner-slide {
    display: none;
    width: 100%;
    padding: 70px 0;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.banner-slide.active {
    display: block;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.banner h2 {
    color: #fff;
    border-left: none;
    font-size: 40px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding-left: 0;
}

.banner h2::before {
    display: none;
}

.banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 700px;
    margin: 20px auto;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.banner-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-dots span.active {
    background: #e94560;
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(233, 69, 96, 0.6);
    border-color: #e94560;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 18px 0;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 8px;
    padding-left: 12px;
    padding-right: 12px;
}

.faq-item:hover {
    background: rgba(233, 69, 96, 0.03);
}

.faq-question {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a2e;
}

.faq-question::after {
    content: "+";
    font-size: 26px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #e94560;
    font-weight: 300;
}

.faq-item.open .faq-question::after {
    content: "−";
    transform: rotate(180deg);
    color: #d63851;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.3s;
    padding-top: 0;
}

.faq-item.open .faq-answer {
    max-height: 600px;
    padding-top: 16px;
}

.faq-answer p {
    color: #555;
    margin-bottom: 0;
}

/* 数字动画 */
.stat-number {
    font-size: 44px;
    font-weight: 800;
    color: #e94560;
    text-shadow: 0 2px 12px rgba(233, 69, 96, 0.2);
}

/* 文章卡片 */
.article-card .date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.article-card .read-more {
    color: #e94560;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-card .read-more::after {
    content: '→';
    transition: transform 0.3s;
}

.article-card .read-more:hover::after {
    transform: translateX(4px);
}

.article-card .read-more:hover {
    color: #d63851;
}

/* 暗黑模式 */
body.dark {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    color: #e0e0e0;
}

body.dark .card {
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.05);
    color: #ddd;
}

body.dark .card:hover {
    border-color: rgba(233, 69, 96, 0.3);
}

body.dark h1, body.dark h2, body.dark h3, body.dark h4 {
    color: #eee;
}

body.dark p {
    color: #ccc;
}

body.dark .navbar {
    background: rgba(13, 13, 26, 0.95);
}

body.dark .banner {
    background: linear-gradient(135deg, #0d0d1a 0%, #1a0d0d 30%, #0d1a2e 60%, #0d0d1a 100%);
}

body.dark .faq-item {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark .faq-item:hover {
    background: rgba(233, 69, 96, 0.05);
}

body.dark .faq-question {
    color: #eee;
}

body.dark .faq-answer p {
    color: #bbb;
}

body.dark .stat-number {
    text-shadow: 0 2px 12px rgba(233, 69, 96, 0.4);
}

body.dark .article-card .date {
    color: #777;
}

.dark-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    margin-left: 16px;
    transition: transform 0.3s;
    padding: 4px;
}

.dark-toggle:hover {
    transform: rotate(20deg);
}

/* 搜索 */
.search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-box input {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    width: 200px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-box input:focus {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(233, 69, 96, 0.2);
}

.search-box button {
    padding: 8px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #bbb;
    padding: 50px 0;
    margin-top: 50px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e94560, transparent);
}

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

footer a:hover {
    color: #e94560;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin: 24px 0;
}

/* SVG占位 */
.svg-placeholder {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 12px 0;
    display: block;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 12px;
    transition: all 0.3s;
    opacity: 0.9;
}

.card:hover .svg-placeholder {
    opacity: 1;
    transform: scale(1.02);
}

body.dark .svg-placeholder {
    background: linear-gradient(135deg, #2a2a2a, #333);
}

/* 滚动动画 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 面包屑 */
.breadcrumb {
    padding: 14px 0;
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #d63851;
}

.breadcrumb span {
    margin: 0 8px;
    color: #aaa;
}

/* 内部锚点导航 */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 34px 0;
}

.anchor-nav a {
    padding: 8px 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.anchor-nav a:hover {
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

body.dark .anchor-nav a {
    background: rgba(42, 42, 42, 0.85);
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark .anchor-nav a:hover {
    background: linear-gradient(135deg, #e94560, #d63851);
    color: #fff;
}

/* 联系信息 */
.contact-info p {
    margin: 6px 0;
    padding: 4px 0;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e94560, #d63851);
    border-radius: 4px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d63851, #c42d45);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(22, 33, 62, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px;
        margin-top: 12px;
        border-radius: 12px;
        gap: 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    .nav-links.open {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .search-box {
        width: 100%;
    }
    .search-box input {
        width: 100%;
    }
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    .banner h2 {
        font-size: 28px;
    }
    .banner p {
        font-size: 16px;
    }
    section {
        padding: 40px 0;
    }
    .card {
        padding: 20px;
    }
    .grid-2, .grid-3 {
        gap: 20px;
    }
    .back-to-top {
        bottom: 20px;
        right: 16px;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    .footer-links {
        gap: 12px;
    }
    .anchor-nav {
        gap: 8px;
    }
    .anchor-nav a {
        padding: 6px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
        padding-left: 12px;
    }
    .banner h2 {
        font-size: 22px;
    }
    .banner p {
        font-size: 14px;
    }
    .banner-slide {
        padding: 40px 0;
    }
    .banner {
        min-height: 320px;
    }
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    .card {
        padding: 16px;
    }
    .stat-number {
        font-size: 32px;
    }
    .faq-question {
        font-size: 16px;
    }
}

/* 暗黑模式滚动条适配 */
body.dark ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* 打印样式 */
@media print {
    .navbar, .back-to-top, .banner-dots, .anchor-nav, footer {
        display: none;
    }
    body {
        background: #fff;
        color: #000;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}