/* style.css - 羞羞漫画 官方网站 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #fafafa;
    color: #222;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.3s, color 0.3s;
}

a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.2s;
}

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

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

/* 渐变Banner */
.hero {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    padding: 60px 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(255,255,255,0.1) 0%, transparent 50%);
    animation: heroGlow 6s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 24px;
    opacity: .9;
    position: relative;
    z-index: 1;
}

.hero .btn {
    background: #fff;
    color: #e74c3c;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: transform .2s, box-shadow .2s;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero .btn:hover {
    transform: scale(1.05);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* 圆角卡片 + 毛玻璃效果 */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s, background .3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    background: rgba(255, 255, 255, 0.95);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #e74c3c;
}

.card p {
    color: #555;
    font-size: .95rem;
}

/* 响应式布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.header {
    background: #ff6b6b;
    color: #fff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: background 0.3s;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    color: #ffeaa7;
}

.nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a {
    color: #fff;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background .2s, transform .2s;
}

.nav a:hover {
    background: rgba(255,255,255,.2);
    text-decoration: none;
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 24px;
    font-size: 1rem;
    outline: none;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    transition: box-shadow 0.2s;
}

.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(255, 234, 167, 0.5);
}

.search-box button {
    background: #ffeaa7;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    transition: background .2s, transform .2s;
}

.search-box button:hover {
    background: #fdcb6e;
    transform: scale(1.05);
}

.section {
    padding: 50px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
.section:nth-child(6) { animation-delay: 0.5s; }
.section:nth-child(7) { animation-delay: 0.6s; }
.section:nth-child(8) { animation-delay: 0.7s; }

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: #ff6b6b;
    margin-top: 8px;
    border-radius: 2px;
    transition: width 0.3s;
}

.section:hover h2:after {
    width: 80px;
}

.badge {
    display: inline-block;
    background: #ffeaa7;
    color: #333;
    padding: 2px 12px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 600;
    margin-right: 6px;
    transition: background 0.2s;
}

.badge:hover {
    background: #fdcb6e;
}

.article-list .article-item {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    transition: padding-left 0.2s, background 0.2s;
}

.article-item:hover {
    padding-left: 12px;
    background: rgba(255, 107, 107, 0.05);
    border-radius: 8px;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

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

.article-item p {
    color: #555;
    font-size: .95rem;
}

.article-item a {
    color: #e74c3c;
    font-weight: 500;
    transition: color 0.2s;
}

.article-item a:hover {
    color: #c0392b;
}

/* FAQ 展开动画 */
.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover {
    background: rgba(255, 107, 107, 0.03);
}

.faq-item .question {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .question .icon {
    font-size: 1.2rem;
    transition: transform .3s;
}

.faq-item.active .question .icon {
    transform: rotate(180deg);
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding-top .4s ease;
    padding-top: 0;
    color: #555;
}

.faq-item.active .answer {
    max-height: 400px;
    padding-top: 12px;
}

.howto-steps {
    list-style: none;
    counter-reset: step;
}

.howto-steps li {
    counter-increment: step;
    padding: 16px 0 16px 40px;
    position: relative;
    border-left: 3px solid #ff6b6b;
    margin-left: 20px;
    transition: border-color 0.2s, background 0.2s;
}

.howto-steps li:hover {
    border-left-color: #ee5a24;
    background: rgba(255, 107, 107, 0.03);
    border-radius: 0 8px 8px 0;
}

.howto-steps li::before {
    content: counter(step);
    position: absolute;
    left: -18px;
    top: 12px;
    background: #ff6b6b;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}

.howto-steps li:hover::before {
    transform: scale(1.1);
    background: #ee5a24;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-info div {
    font-size: .95rem;
    color: #444;
    transition: transform 0.2s;
}

.contact-info div:hover {
    transform: translateY(-2px);
}

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

.footer {
    background: #2d3436;
    color: #ddd;
    padding: 40px 0;
    font-size: .9rem;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: #ff6b6b;
    margin-top: 4px;
    transition: width 0.3s;
}

.footer h4:hover::after {
    width: 50px;
}

.footer a {
    color: #bbb;
    transition: color 0.2s, padding-left 0.2s;
}

.footer a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    margin-top: 30px;
    color: #999;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ff6b6b;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    cursor: pointer;
    transition: opacity .3s, transform .2s;
    opacity: 0;
    z-index: 999;
}

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

.back-to-top:hover {
    transform: scale(1.1);
}

.breadcrumb {
    background: #f0f0f0;
    padding: 10px 0;
    font-size: .9rem;
}

.breadcrumb a {
    color: #555;
    transition: color 0.2s;
}

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

.breadcrumb span {
    color: #999;
}

.schema-org {
    display: none;
}

/* 暗色模式 */
.dark-mode {
    background: #1a1a2e;
    color: #eee;
}

.dark-mode .card {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #eee;
    border-color: rgba(255,255,255,0.1);
}

.dark-mode .card p {
    color: #ccc;
}

.dark-mode .header {
    background: #0f3460;
}

.dark-mode .hero {
    background: linear-gradient(135deg, #0f3460, #16213e);
}

.dark-mode .hero .btn {
    background: #e94560;
    color: #fff;
}

.dark-mode .hero .btn:hover {
    background: #d63851;
}

.dark-mode .section h2:after {
    background: #e94560;
}

.dark-mode .contact-info {
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #eee;
    border-color: rgba(255,255,255,0.1);
}

.dark-mode .contact-info strong {
    color: #fff;
}

.dark-mode .contact-info div {
    color: #ccc;
}

.dark-mode .footer {
    background: #0a0a1a;
}

.dark-mode .breadcrumb {
    background: #16213e;
}

.dark-mode .breadcrumb a {
    color: #aaa;
}

.dark-mode .search-box input {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.dark-mode .search-box input::placeholder {
    color: #aaa;
}

.dark-mode .search-box button {
    background: #e94560;
    color: #fff;
}

.dark-mode .search-box button:hover {
    background: #d63851;
}

.dark-mode .badge {
    background: #e94560;
    color: #fff;
}

.dark-mode .article-item:hover {
    background: rgba(233, 69, 96, 0.1);
}

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

.dark-mode .howto-steps li:hover {
    background: rgba(233, 69, 96, 0.05);
}

.dark-mode .howto-steps li::before {
    background: #e94560;
}

.dark-mode .howto-steps li:hover::before {
    background: #d63851;
}

.dark-mode .back-to-top {
    background: #e94560;
}

.dark-mode .back-to-top:hover {
    background: #d63851;
}

/* 响应式 */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .nav {
        justify-content: center;
        gap: 12px;
        margin-top: 10px;
        width: 100%;
    }
    .search-box {
        max-width: 100%;
        margin-top: 12px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .section h2 {
        font-size: 1.5rem;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer h4::after {
        margin: 4px auto 0;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ee5a24;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #e94560;
}

/* 选择文本样式 */
::selection {
    background: #ff6b6b;
    color: #fff;
}

.dark-mode ::selection {
    background: #e94560;
}

/* 打印样式 */
@media print {
    .header, .footer, .back-to-top, .search-box, .nav {
        display: none;
    }
    .hero {
        background: none;
        color: #222;
        padding: 20px 0;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}