/* ===== css/style.css - BG电子 公共样式 ===== */

:root {
    --bg-primary: #00FF88;
    --bg-secondary: #FF6B35;
    --bg-dark: #0B0A1A;
    --bg-card-bg: #15132B;
    --bg-text-light: #E8E6F0;
    --bg-text-muted: #9895B0;
    --bg-gradient: linear-gradient(135deg, #00FF88 0%, #00CC66 50%, #FF6B35 100%);
    --bg-glow: 0 0 40px rgba(0, 255, 136, 0.3);
}

* {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--bg-text-light);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-secondary);
}

.navbar {
    background: rgba(11, 10, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.25);
    padding: 12px 0;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-brand i {
    -webkit-text-fill-color: var(--bg-secondary);
    margin-right: 6px;
}
.navbar .nav-link {
    color: var(--bg-text-light) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.navbar .nav-link:hover {
    background: rgba(0, 255, 136, 0.15);
    color: #fff !important;
}
.navbar .nav-link.active {
    background: rgba(0, 255, 136, 0.15);
    color: #fff !important;
}

.btn-bg-primary {
    background: var(--bg-gradient);
    border: none;
    color: #1a1a2e;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.35);
}
.btn-bg-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(0, 255, 136, 0.5);
    color: #1a1a2e;
}
.btn-bg-outline {
    background: transparent;
    border: 2px solid var(--bg-primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-bg-outline:hover {
    background: var(--bg-primary);
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 25px rgba(0, 255, 136, 0.3);
}

.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 10% 20%, rgba(0, 255, 136, 0.10) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
}
.hero h1 {
    font-weight: 800;
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -1px;
}
.hero h1 .highlight {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero .lead {
    color: var(--bg-text-muted);
    font-size: 1.25rem;
    max-width: 560px;
}
.hero-stats .stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-stats .stat-item:last-child {
    border-right: none;
}
.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--bg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-weight: 800;
    font-size: 2.6rem;
    letter-spacing: -0.5px;
}
.section-title .highlight {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    color: var(--bg-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.game-card {
    background: var(--bg-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), var(--bg-glow);
}
.game-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid rgba(0, 255, 136, 0.2);
    background-color: #1a1a2e;
}
.game-card .card-body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.game-card .card-tag {
    display: inline-block;
    background: rgba(0, 255, 136, 0.15);
    color: #00FF88;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    align-self: flex-start;
    margin-bottom: 8px;
}
.game-card .card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.game-card .card-text {
    color: var(--bg-text-muted);
    font-size: 0.92rem;
    flex: 1;
}
.game-card .card-footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.game-card .card-play-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 12px;
}
.game-card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}
.game-card .card-play-btn .btn {
    padding: 6px 20px;
    font-size: 0.85rem;
    border-radius: 50px;
    font-weight: 600;
}

.news-card {
    background: var(--bg-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    height: 100%;
}
.news-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.news-card .news-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 6px 0;
}
.news-card .news-excerpt {
    color: var(--bg-text-muted);
    font-size: 0.92rem;
}

.feature-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: 20px;
    background: rgba(21, 19, 43, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    height: 100%;
}
.feature-item:hover {
    background: rgba(21, 19, 43, 0.8);
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-4px);
}
.feature-item .feature-icon {
    font-size: 2.8rem;
    color: var(--bg-secondary);
    margin-bottom: 16px;
}
.feature-item h5 {
    font-weight: 700;
}
.feature-item p {
    color: var(--bg-text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.review-card {
    background: var(--bg-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px 24px 20px;
    transition: all 0.3s ease;
    height: 100%;
}
.review-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.review-card .review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
}
.review-card .review-name {
    font-weight: 700;
    font-size: 1rem;
}
.review-card .review-time {
    font-size: 0.75rem;
    color: var(--bg-text-muted);
}
.review-card .review-stars {
    color: #FFB800;
    font-size: 0.9rem;
    letter-spacing: 2px;
}
.review-card .review-text {
    color: var(--bg-text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.app-download-section {
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
}
.app-card {
    background: var(--bg-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
}
.app-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
    box-shadow: var(--bg-glow);
}
.app-card .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #1a1a2e;
}
.app-card .app-qr {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: #fff;
    padding: 8px;
}
.app-card .app-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.app-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 24px 12px 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--bg-text-light);
}
.app-download-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--bg-primary);
    transform: translateY(-2px);
    color: #fff;
}
.app-download-btn .btn-icon {
    font-size: 2rem;
}
.app-download-btn .btn-text-small {
    font-size: 0.65rem;
    color: var(--bg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.app-download-btn .btn-text-large {
    font-size: 1.1rem;
    font-weight: 700;
}

.about-section {
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 255, 136, 0.06) 0%, transparent 60%);
    padding: 80px 0;
}
.about-section .about-text {
    color: var(--bg-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}
.about-section .about-list li {
    color: var(--bg-text-light);
    margin-bottom: 12px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}
.about-section .about-list li i {
    color: var(--bg-secondary);
    font-size: 1.3rem;
}

.cta-section {
    background: var(--bg-gradient);
    border-radius: 32px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}
.cta-section h2 {
    font-weight: 800;
    font-size: 2.6rem;
    color: #1a1a2e;
}
.cta-section .btn-light {
    border-radius: 50px;
    padding: 14px 40px;
    font-weight: 700;
    background: #1a1a2e;
    color: #00FF88;
    border: none;
    transition: all 0.3s ease;
}
.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: #1a1a2e;
    color: #00FF88;
}

.game-detail-hero {
    padding: 140px 0 60px;
    background: radial-gradient(ellipse at 20% 30%, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
}
.game-info-list {
    color: var(--bg-text-muted);
    font-size: 0.95rem;
    line-height: 2;
}
.game-info-list i {
    color: var(--bg-primary);
    margin-right: 8px;
}

.news-detail-hero {
    padding: 140px 0 60px;
    background: radial-gradient(ellipse at 20% 30%, rgba(0, 255, 136, 0.2) 0%, transparent 70%);
}
.news-content {
    color: var(--bg-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}
.news-content strong {
    color: var(--bg-text-light);
}
.news-content ul {
    padding-left: 20px;
}
.news-content ul li {
    margin-bottom: 6px;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 0 30px;
    background: rgba(11, 10, 26, 0.8);
}
.footer .footer-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer .footer-text {
    color: var(--bg-text-muted);
    font-size: 0.92rem;
    max-width: 300px;
}
.footer .footer-link {
    color: var(--bg-text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.92rem;
    display: inline-block;
    margin-bottom: 6px;
}
.footer .footer-link:hover {
    color: #fff;
}
.footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--bg-text-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer .social-icon:hover {
    background: var(--bg-primary);
    color: #1a1a2e;
    transform: translateY(-3px);
}
.footer .copyright {
    color: var(--bg-text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s ease forwards;
}
.fade-in-d1 {
    animation-delay: 0.1s;
}
.fade-in-d2 {
    animation-delay: 0.2s;
}
.fade-in-d3 {
    animation-delay: 0.3s;
}
.fade-in-d4 {
    animation-delay: 0.4s;
}
.fade-in-d5 {
    animation-delay: 0.5s;
}
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .hero {
        padding: 120px 0 60px;
    }
    .hero-stats .stat-item {
        border-right: none;
        padding: 8px 0;
    }
    .cta-section {
        padding: 40px 24px;
    }
    .cta-section h2 {
        font-size: 2rem;
    }
}
@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .navbar-brand {
        font-size: 1.4rem;
    }
    .game-card .card-img-top {
        height: 160px;
    }
    .app-card {
        padding: 24px;
    }
    .app-card .app-qr {
        width: 100px;
        height: 100px;
    }
}