/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
    overflow-x: hidden;
}

:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --accent: #fd79a8;
    --dark-bg: #0a0a0f;
    --card-bg: #14141f;
    --card-bg2: #1a1a2e;
}

/* ===== 导航栏 ===== */
.navbar {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-logo {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.footer-logo {
    height: 32px;
    width: auto;
    border-radius: 8px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    font-size: 14px;
    margin-right: 4px;
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.nav-link {
    color: #adb5bd !important;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 60%;
}

/* ===== 通用组件 ===== */
.badge-custom {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(108, 92, 231, 0.15);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(108, 92, 231, 0.3);
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
}

.section-desc {
    color: #adb5bd;
    max-width: 600px;
    margin: 10px auto 0;
    line-height: 1.8;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Hero 首屏 ===== */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(108, 92, 231, 0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 30% 80%, rgba(253, 121, 168, 0.08) 0%, transparent 50%);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.hero-desc {
    font-size: 1.1rem;
    color: #adb5bd;
    line-height: 1.8;
    max-width: 520px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid rgba(108, 92, 231, 0.5);
    color: var(--primary-light);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
    color: #fff;
}

.hero-phone-mockup {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.phone-img {
    border-radius: 24px;
}

/* ===== 数据统计 ===== */
.stats-section {
    background: var(--card-bg);
    border-top: 1px solid rgba(108, 92, 231, 0.1);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
}

.stat-item {
    padding: 20px 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 4px;
    margin-bottom: 0;
}

/* ===== 特色功能 ===== */
.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: 16px;
    padding: 40px 24px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(253, 121, 168, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--primary-light);
}

.feature-card h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== 短剧滚动展示 ===== */
.bg-dark-section {
    background: var(--card-bg);
}

.scroll-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.scroll-track {
    display: flex;
    gap: 16px;
    width: max-content;
}

.scroll-left {
    animation: scrollLeft 40s linear infinite;
}

.scroll-right {
    animation: scrollRight 40s linear infinite;
}

.scroll-wrapper:hover .scroll-track {
    animation-play-state: paused;
}

.scroll-item {
    flex-shrink: 0;
    width: 200px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.scroll-item img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    cursor: pointer;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ===== 平台介绍 ===== */
.about-img-grid img {
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(108, 92, 231, 0.1);
    transition: all 0.3s;
}

.advantage-item:hover {
    border-color: rgba(108, 92, 231, 0.3);
    background: var(--card-bg2);
}

.advantage-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(0.7) sepia(1) saturate(3) hue-rotate(220deg);
}

.advantage-icon-bi {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.advantage-item span {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== 关于我们 ===== */
.about-card {
    background: var(--card-bg2);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-tag {
    padding: 6px 16px;
    background: rgba(108, 92, 231, 0.12);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

/* ===== 联系我们 ===== */
.contact-card {
    background: var(--card-bg);
    border: 1px solid rgba(108, 92, 231, 0.1);
    border-radius: 16px;
    padding: 40px 24px;
    transition: all 0.3s;
    height: 100%;
}

.contact-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(253, 121, 168, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--primary-light);
}

.contact-card h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-card p {
    color: #adb5bd;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== 页脚 ===== */
footer {
    background: var(--card-bg);
    border-top: 1px solid rgba(108, 92, 231, 0.1);
}

/* ===== 回到顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.4rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero-phone-mockup {
        max-width: 340px;
    }
    .nav-link::after {
        left: 16px;
        transform: none;
        max-width: 40px;
    }
    .nav-link:hover::after {
        width: 40px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-desc {
        margin: 0 auto;
    }
    .hero-section .d-flex {
        justify-content: center;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .about-card {
        padding: 24px;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .scroll-item {
        width: 130px;
    }

}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 92, 231, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.5);
}

/* ===== 图片灯箱 ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(108, 92, 231, 0.3);
    animation: lightboxIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.3);
    border-radius: 50%;
    transition: all 0.2s;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(108, 92, 231, 0.6);
    transform: translateY(-50%) scale(1.1);
}

@keyframes lightboxIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== 动画 ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
