/* style.css - 51漫画 官方网站 */
/* 全局重置与基础样式 */
* {
    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: #f8f9fa;
    color: #222;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

body.dark {
    background: #0f0f1a;
    color: #e0e0e0;
}

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

body.dark a {
    color: #66b0ff;
}

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

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

/* 头部导航 */
header {
    background: #1a1a2e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark header {
    background: #0a0a14;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: #f5c518;
    letter-spacing: 1px;
}

.logo span {
    color: #fff;
}

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

nav a {
    color: #ccc;
    font-size: 15px;
    padding: 6px 0;
    transition: color 0.2s;
    position: relative;
}

nav a:hover {
    color: #f5c518;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #f5c518;
    transition: width 0.3s;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid #f5c518;
    color: #f5c518;
    font-size: 24px;
    padding: 4px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.menu-toggle:hover {
    background: #f5c518;
    color: #1a1a2e;
}

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

.search-box input {
    padding: 8px 14px;
    border: 1px solid #444;
    border-radius: 20px;
    background: #2a2a3e;
    color: #fff;
    width: 180px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #f5c518;
    box-shadow: 0 0 0 2px rgba(245, 197, 24, 0.3);
}

.search-box button {
    padding: 8px 16px;
    background: #f5c518;
    border: none;
    border-radius: 20px;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

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

.dark-toggle {
    background: none;
    border: 1px solid #555;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dark-toggle:hover {
    background: #333;
    border-color: #f5c518;
}

/* 面包屑导航 */
.breadcrumb {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

body.dark .breadcrumb {
    background: #1a1a2e;
    border-color: #333;
    color: #aaa;
}

.breadcrumb a {
    color: #1a73e8;
}

body.dark .breadcrumb a {
    color: #66b0ff;
}

/* 横幅Banner - 渐变风格 */
.banner {
    position: relative;
    overflow: hidden;
    height: 420px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d5e 50%, #1a1a2e 100%);
    color: #fff;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.1) 0%, transparent 60%);
    animation: bannerGlow 10s ease-in-out infinite alternate;
}

@keyframes bannerGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}

.banner-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    padding: 40px 20px;
    text-align: center;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
}

.banner-content h2 {
    font-size: 38px;
    margin-bottom: 16px;
    color: #f5c518;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 24px;
    color: #ddd;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.banner-content .btn {
    display: inline-block;
    padding: 12px 36px;
    background: #f5c518;
    color: #1a1a2e;
    font-weight: 700;
    border-radius: 30px;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.4);
}

.banner-content .btn:hover {
    background: #e0b014;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.6);
}

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

.banner-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.banner-dots span.active {
    background: #f5c518;
    transform: scale(1.2);
}

.banner-dots span:hover {
    background: #f5c518;
}

/* 通用标题 */
.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin: 50px 0 30px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #f5c518;
    margin: 12px auto 0;
    border-radius: 2px;
}

/* 品牌介绍 */
.brand-intro {
    background: #fff;
    padding: 50px 20px;
}

body.dark .brand-intro {
    background: #16162a;
}

.brand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.brand-text h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: #1a1a2e;
}

body.dark .brand-text h1 {
    color: #f0f0f0;
}

.brand-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
}

body.dark .brand-text p {
    color: #bbb;
}

.brand-svg {
    text-align: center;
}

.brand-svg svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

/* 统计数字 */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 0;
    flex-wrap: wrap;
}

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

.stat-num {
    font-size: 40px;
    font-weight: 800;
    color: #f5c518;
    transition: color 0.3s;
}

.stat-label {
    color: #888;
    font-size: 14px;
}

/* 产品优势 */
.advantages {
    background: #f0f2f5;
    padding: 50px 20px;
}

body.dark .advantages {
    background: #12122a;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.adv-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body.dark .adv-card {
    background: rgba(30, 30, 56, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.adv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.dark .adv-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.adv-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.adv-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.adv-card p {
    color: #666;
    font-size: 14px;
}

body.dark .adv-card p {
    color: #aaa;
}

/* 解决方案 */
.solutions {
    background: #fff;
    padding: 50px 20px;
}

body.dark .solutions {
    background: #16162a;
}

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

.sol-item {
    background: #f8f9fa;
    padding: 28px;
    border-radius: 16px;
    border-left: 4px solid #f5c518;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

body.dark .sol-item {
    background: #1e1e38;
    border-left-color: #f5c518;
}

.sol-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body.dark .sol-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.sol-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.sol-item p {
    color: #555;
    font-size: 15px;
}

body.dark .sol-item p {
    color: #bbb;
}

/* 行业案例 */
.cases {
    background: #f0f2f5;
    padding: 50px 20px;
}

body.dark .cases {
    background: #12122a;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark .case-card {
    background: #1e1e38;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

body.dark .case-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.case-card .case-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a4e, #3a3a6e);
}

.case-card .case-body {
    padding: 20px;
}

.case-card h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.case-card p {
    color: #666;
    font-size: 14px;
}

body.dark .case-card p {
    color: #aaa;
}

/* 文章列表 */
.articles {
    background: #fff;
    padding: 50px 20px;
}

body.dark .articles {
    background: #16162a;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.article-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
}

body.dark .article-card {
    background: #1e1e38;
}

.article-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

body.dark .article-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.article-card .tag {
    display: inline-block;
    background: #f5c518;
    color: #1a1a2e;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.article-card .meta {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

body.dark .article-card .meta {
    color: #aaa;
}

.article-card p {
    color: #555;
    font-size: 14px;
    margin-bottom: 12px;
}

body.dark .article-card p {
    color: #bbb;
}

.article-card .read-more {
    color: #f5c518;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

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

/* FAQ */
.faq-section {
    background: #f0f2f5;
    padding: 50px 20px;
}

body.dark .faq-section {
    background: #12122a;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 16px 0;
    transition: border-color 0.3s;
}

body.dark .faq-item {
    border-color: #333;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    padding: 6px 0;
    transition: color 0.2s;
}

.faq-question:hover {
    color: #f5c518;
}

.faq-question .icon {
    font-size: 22px;
    transition: transform 0.3s;
    color: #f5c518;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

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

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

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

/* HowTo */
.howto-section {
    background: #fff;
    padding: 50px 20px;
}

body.dark .howto-section {
    background: #16162a;
}

.howto-steps {
    max-width: 800px;
    margin: 0 auto;
}

.howto-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
    transition: transform 0.3s;
}

.howto-step:hover {
    transform: translateX(4px);
}

.step-num {
    width: 40px;
    height: 40px;
    background: #f5c518;
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

.step-content h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.step-content p {
    color: #555;
    font-size: 15px;
}

body.dark .step-content p {
    color: #bbb;
}

/* 企业信息 */
.company-info {
    background: linear-gradient(135deg, #1a1a2e, #2d2d5e);
    color: #ddd;
    padding: 50px 20px;
}

body.dark .company-info {
    background: linear-gradient(135deg, #0a0a14, #1a1a2e);
}

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

.info-grid h3 {
    color: #f5c518;
    font-size: 18px;
    margin-bottom: 14px;
}

.info-grid p {
    font-size: 14px;
    margin-bottom: 6px;
    color: #bbb;
}

.info-grid a {
    color: #66b0ff;
    transition: color 0.2s;
}

.info-grid a:hover {
    color: #f5c518;
}

.copyright {
    text-align: center;
    padding: 20px;
    background: #0f0f1a;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #222;
}

body.dark .copyright {
    background: #050510;
}

.copyright a {
    color: #66b0ff;
}

.copyright a:hover {
    color: #f5c518;
}

/* 返回顶部 */
.back-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #f5c518;
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.back-top.show {
    display: flex;
}

.back-top:hover {
    background: #e0b014;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
}

/* 滚动动画 */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #1a1a2e;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    nav ul.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .search-box input {
        width: 120px;
    }

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

    .banner {
        height: 300px;
    }

    .banner-content h2 {
        font-size: 26px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .stats {
        gap: 30px;
    }

    .stat-num {
        font-size: 30px;
    }

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

    .section-title {
        font-size: 24px;
    }

    .back-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 8px 12px;
    }

    .logo {
        font-size: 20px;
    }

    .search-box input {
        width: 90px;
        font-size: 12px;
    }

    .search-box button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .banner {
        height: 240px;
    }

    .banner-content h2 {
        font-size: 22px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .banner-content .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

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

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

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

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

    .stat-num {
        font-size: 26px;
    }

    .faq-question {
        font-size: 15px;
    }
}