/* style.css - 禁漫天堂下载安装18 完整样式表 */
/* 全局重置与基础 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.8;
    transition: background 0.3s, color 0.3s;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 4px;
}
/* 渐变Banner - 头部 */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e94560;
    text-shadow: 0 2px 8px rgba(233,69,96,0.3);
}
.logo span {
    color: #fff;
}
nav a {
    color: #ddd;
    text-decoration: none;
    margin: 0 12px;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
}
nav a:hover {
    color: #e94560;
    transform: translateY(-2px);
}
.search-box {
    display: flex;
    gap: 6px;
}
.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}
.search-box input::placeholder {
    color: #aaa;
}
.search-box input:focus {
    background: rgba(255,255,255,0.2);
    outline: none;
}
.search-box button {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}
.search-box button:hover {
    background: #c73a52;
    transform: scale(1.05);
}
/* 渐变Banner - Hero */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    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(233,69,96,0.1) 0%, transparent 60%);
    animation: heroGlow 6s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}
.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.btn-primary {
    background: #e94560;
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    position: relative;
    z-index: 1;
}
.btn-primary:hover {
    background: #c73a52;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233,69,96,0.4);
}
/* 圆角卡片与毛玻璃效果 */
.section {
    padding: 60px 0;
    background: #fff;
    margin-bottom: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.section:nth-child(even) {
    background: #fafafa;
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a2e;
    border-left: 6px solid #e94560;
    padding-left: 16px;
}
.section h3 {
    font-size: 1.4rem;
    margin: 20px 0 12px;
    color: #333;
}
.section h4 {
    font-size: 1.1rem;
    margin: 16px 0 8px;
    color: #555;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}
.card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.card svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}
.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.card p {
    color: #666;
    font-size: 0.95rem;
}
.article-list {
    list-style: none;
}
.article-list li {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    transition: padding-left 0.2s;
}
.article-list li:hover {
    padding-left: 10px;
}
.article-list li:last-child {
    border-bottom: none;
}
.article-list a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.article-list a:hover {
    color: #e94560;
}
.article-list .meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 4px;
}
.faq-item {
    margin-bottom: 16px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.faq-question {
    background: #f9f9f9;
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}
.faq-question:hover {
    background: #f0f0f0;
}
.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    transition: transform 0.2s;
}
.faq-question.active::after {
    content: "-";
}
.faq-answer {
    padding: 0 20px 16px;
    display: none;
}
.faq-answer.show {
    display: block;
}
.howto-steps {
    counter-reset: step;
}
.howto-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
    transition: transform 0.2s;
}
.howto-step:hover {
    transform: translateX(5px);
}
.howto-step::before {
    counter-increment: step;
    content: counter(step);
    background: #e94560;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
/* 底部 */
footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}
footer a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: #ff6b81;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.footer-links a {
    color: #aaa;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
}
.footer-links a:hover {
    color: #e94560;
    transform: translateY(-2px);
}
/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #e94560;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(233,69,96,0.3);
    border: none;
    z-index: 999;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.back-to-top:hover {
    background: #c73a52;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233,69,96,0.5);
}
/* 暗色模式支持 */
body.dark-mode {
    background: #1a1a2e;
    color: #eee;
}
body.dark-mode .section {
    background: #222;
    color: #eee;
}
body.dark-mode .section:nth-child(even) {
    background: #1e1e30;
}
body.dark-mode .card {
    background: rgba(42,42,62,0.9);
    border-color: #444;
    backdrop-filter: blur(10px);
}
body.dark-mode .card p {
    color: #bbb;
}
body.dark-mode .faq-question {
    background: #2a2a3e;
    color: #eee;
}
body.dark-mode .faq-question:hover {
    background: #333;
}
body.dark-mode .faq-item {
    border-color: #444;
}
body.dark-mode .article-list li {
    border-color: #333;
}
body.dark-mode .article-list a {
    color: #ddd;
}
body.dark-mode .article-list a:hover {
    color: #e94560;
}
body.dark-mode .article-list .meta {
    color: #888;
}
body.dark-mode .section h2 {
    color: #eee;
}
body.dark-mode .section h3 {
    color: #ddd;
}
body.dark-mode .section h4 {
    color: #bbb;
}
body.dark-mode .howto-step::before {
    background: #e94560;
}
body.dark-mode .search-box input {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
body.dark-mode .search-box input::placeholder {
    color: #888;
}
body.dark-mode .search-box input:focus {
    background: rgba(255,255,255,0.2);
}
/* 滚动动画（由JS触发） */
.section.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
/* 响应式布局 */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    header .container {
        flex-direction: column;
        gap: 12px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    nav a {
        margin: 0 6px;
        font-size: 0.85rem;
    }
    .hero {
        padding: 60px 0;
    }
    .hero p {
        font-size: 1rem;
    }
    .section {
        padding: 40px 0;
    }
    .section h2 {
        font-size: 1.6rem;
    }
    .card {
        padding: 16px;
    }
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .footer-links {
        gap: 10px;
    }
    .footer-links a {
        font-size: 0.8rem;
    }
}
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.4rem;
    }
    .btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    nav a {
        font-size: 0.8rem;
        margin: 0 4px;
    }
    .search-box input {
        width: 120px;
    }
}