/* style.css - 成人动漫 bfzk999.com */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.8;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: #0a0a1a;
    color: #d0d0e0;
}

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

a:hover {
    color: #d4bfff;
}

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

/* 头部 */
header {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42, 42, 74, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #b388ff;
    text-shadow: 0 0 20px rgba(179, 136, 255, 0.3);
}

.logo span {
    color: #ff6f91;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    font-size: 1rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s, color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b388ff, #ff6f91);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #d4bfff;
}

.search-box {
    display: flex;
    gap: 5px;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid rgba(58, 58, 90, 0.6);
    background: rgba(37, 37, 64, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    border-color: #b388ff;
    box-shadow: 0 0 15px rgba(179, 136, 255, 0.3);
}

.search-box button {
    background: linear-gradient(135deg, #b388ff, #9a6fef);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(179, 136, 255, 0.4);
}

.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(58, 58, 90, 0.5);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    backdrop-filter: blur(4px);
}

.dark-mode-toggle:hover {
    background: rgba(179, 136, 255, 0.2);
}

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

.breadcrumb a {
    color: #b388ff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2a1a3e 50%, #1a1a2e 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(179, 136, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 111, 145, 0.1) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-20px, 20px); }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(179, 136, 255, 0.2);
}

.hero h1 span {
    color: #ff6f91;
    background: linear-gradient(45deg, #ff6f91, #b388ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #c0c0d0;
    position: relative;
    z-index: 1;
}

.hero .btn {
    display: inline-block;
    background: linear-gradient(135deg, #b388ff, #9a6fef);
    padding: 12px 30px;
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(179, 136, 255, 0.3);
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(179, 136, 255, 0.5);
}

/* 通用段落 */
.section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(30, 30, 58, 0.8);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #d4bfff;
    position: relative;
    padding-left: 15px;
}

.section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #b388ff, #ff6f91);
    border-radius: 3px;
}

.section h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: #c0b0e0;
}

.section h4 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #a090c0;
}

/* 网格 */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

/* 卡片 */
.card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(42, 42, 74, 0.5);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    cursor: default;
}

.card:hover {
    border-color: #b388ff;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(179, 136, 255, 0.15);
}

.card h3 {
    margin-top: 0;
}

.card p {
    color: #b0b0c0;
}

/* SVG图标 */
.svg-icon {
    width: 50px;
    height: 50px;
    fill: url(#iconGradient);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(179, 136, 255, 0.3));
}

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

.faq-item:hover {
    background: rgba(179, 136, 255, 0.05);
}

.faq-item h4 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-item h4::after {
    content: '+';
    font-size: 1.5rem;
    color: #b388ff;
    transition: transform 0.3s;
}

.faq-item.active h4::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding-top: 0;
    padding-left: 5px;
    padding-right: 5px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 15px;
}

/* 教程步骤 */
.howto-steps {
    counter-reset: step;
}

.howto-step {
    padding: 15px 0;
    border-left: 3px solid #b388ff;
    padding-left: 20px;
    margin-bottom: 15px;
    background: rgba(26, 26, 46, 0.4);
    border-radius: 0 8px 8px 0;
    transition: background 0.3s, border-color 0.3s;
}

.howto-step:hover {
    background: rgba(26, 26, 46, 0.7);
    border-left-color: #ff6f91;
}

.howto-step::before {
    counter-increment: step;
    content: "步骤 " counter(step) ": ";
    font-weight: 700;
    color: #b388ff;
}

/* 文章列表 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(42, 42, 74, 0.5);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-4px);
    border-color: #b388ff;
    box-shadow: 0 10px 30px rgba(179, 136, 255, 0.1);
}

.article-item h3 {
    margin: 0 0 5px;
}

.article-item .meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.article-item p {
    color: #b0b0c0;
}

.article-item .read-more {
    color: #b388ff;
    font-weight: 600;
}

/* 底部 */
footer {
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(30, 30, 58, 0.8);
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

footer .footer-links a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer .footer-links a:hover {
    color: #b388ff;
}

footer p {
    color: #666;
    font-size: 0.85rem;
    margin: 5px 0;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #b388ff, #9a6fef);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(179, 136, 255, 0.3);
    z-index: 99;
}

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

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(179, 136, 255, 0.5);
}

/* Banner滑块 */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(8px);
}

.banner-slide {
    display: none;
    padding: 40px;
    text-align: center;
}

.banner-slide.active {
    display: block;
}

.banner-slide h3 {
    font-size: 1.8rem;
    color: #fff;
}

.banner-slide p {
    color: #c0c0d0;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    background: rgba(58, 58, 90, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.banner-dot.active {
    background: #b388ff;
    transform: scale(1.2);
}

/* 计数器 */
.counter-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.counter-item {
    text-align: center;
}

.counter-item .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b388ff;
    text-shadow: 0 0 20px rgba(179, 136, 255, 0.3);
}

.counter-item .label {
    color: #888;
}

/* 联系信息 */
.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact-info div {
    padding: 10px;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 74, 0.3);
}

.contact-info strong {
    color: #d4bfff;
}

/* EEAT框 */
.eeat-box {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(42, 42, 74, 0.5);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.eeat-box h3 {
    margin-top: 0;
}

/* 隐藏 */
.schema-hidden {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .banner-slide h3 {
        font-size: 1.4rem;
    }
}

/* 滚动动画 */
.card, .article-item, .faq-item, .howto-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card.visible, .article-item.visible, .faq-item.visible, .howto-step.visible {
    opacity: 1;
    transform: translateY(0);
}