*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bar-bg: #1a1a2e;
    --bar-bg-deep: #12121f;
    --bar-bg-soft: #16213e;
    --bar-bg-card: #252542;
    --bar-bg-card-hover: #2e2e4d;
    --bar-accent: #ff6b9d;
    --bar-accent-deep: #c44569;
    --bar-gold: #ffd700;
    --bar-text: #f5eef3;
    --bar-text-soft: #d4c4d0;
    --bar-text-muted: #9a8fa3;
    --bar-border: rgba(255, 107, 157, 0.18);
    --bar-glass: rgba(255, 255, 255, 0.06);
    --bar-glow: rgba(255, 107, 157, 0.25);
}

html {
    scroll-behavior: smooth;
}

body.website-body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bar-text-soft);
    background: linear-gradient(180deg, var(--bar-bg) 0%, var(--bar-bg-deep) 100%);
    min-height: 100vh;
}

a {
    color: var(--bar-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #ff8fb3;
}

img {
    max-width: 100%;
    display: block;
}

.website-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.website-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bar-border);
}

.website-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.website-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bar-text);
    font-weight: 600;
    font-size: 18px;
}

.website-brand:hover {
    color: var(--bar-accent);
}

.website-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--bar-border);
}

.website-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.website-nav a {
    color: var(--bar-text-muted);
    font-size: 15px;
}

.website-nav a:hover {
    color: var(--bar-accent);
}

/* Hero / Carousel */
.website-hero {
    background: var(--bar-bg-deep);
    position: relative;
}

.website-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bar-bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.website-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.website-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.website-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.website-carousel-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.website-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.website-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.55);
    color: var(--bar-text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.website-carousel-btn:hover {
    background: rgba(255, 107, 157, 0.35);
    border-color: var(--bar-accent);
}

.website-carousel-prev {
    left: 12px;
}

.website-carousel-next {
    right: 12px;
}

.website-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.website-carousel-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.website-carousel-dot.is-active {
    background: var(--bar-accent);
    transform: scale(1.15);
}

/* Sections */
.website-section {
    padding: 48px 0;
}

.website-section-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--bar-text);
    text-align: center;
}

.website-section-subtitle {
    margin: 0 0 32px;
    text-align: center;
    color: var(--bar-text-muted);
    font-size: 15px;
}

.website-intro {
    background: var(--bar-bg);
}

.website-intro-content {
    max-width: 760px;
    margin: 0 auto 32px;
    color: var(--bar-text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.website-intro-content p {
    margin: 0 0 12px;
}

/* Features */
.website-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}

.website-feature-card {
    background: var(--bar-glass);
    border: 1px solid var(--bar-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.website-feature-card:hover {
    background: rgba(255, 107, 157, 0.08);
    border-color: rgba(255, 107, 157, 0.35);
    transform: translateY(-2px);
}

.website-feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.website-feature-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--bar-text);
}

.website-feature-desc {
    margin: 0;
    color: var(--bar-text-muted);
    font-size: 14px;
}

/* Games */
.website-games {
    background: linear-gradient(180deg, var(--bar-bg-soft) 0%, var(--bar-bg) 100%);
}

.website-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.website-game-card {
    display: flex;
    gap: 12px;
    background: var(--bar-bg-card);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--bar-border);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.website-game-card:hover {
    background: var(--bar-bg-card-hover);
    border-color: rgba(255, 107, 157, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.website-game-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255, 107, 157, 0.12);
    border-radius: 12px;
}

.website-game-body {
    min-width: 0;
}

.website-game-name {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--bar-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.website-game-hot {
    display: inline-block;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--bar-accent), var(--bar-accent-deep));
    border-radius: 4px;
}

.website-game-category {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--bar-accent);
    background: rgba(255, 107, 157, 0.15);
    padding: 2px 8px;
    border-radius: 999px;
}

.website-game-desc {
    margin: 0;
    font-size: 13px;
    color: var(--bar-text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA / QR */
.website-cta {
    background: var(--bar-bg);
    padding: 48px 0 40px;
}

.website-cta .website-container {
    padding-bottom: 0;
}

.website-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    padding: 56px 24px;
    background: linear-gradient(145deg, rgba(255, 107, 157, 0.12) 0%, rgba(37, 37, 66, 0.95) 45%, rgba(26, 26, 46, 0.98) 100%);
    border-radius: 20px;
    border: 1px solid var(--bar-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.website-cta-inner::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.website-cta .website-section-title {
    color: var(--bar-text);
    margin-bottom: 8px;
    position: relative;
}

.website-cta .website-section-subtitle {
    color: var(--bar-text-muted);
    margin-bottom: 0;
    position: relative;
}

.website-qrcode-wrap {
    background: #fff;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
    position: relative;
}

.website-qrcode {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.website-qrcode-placeholder {
    width: 160px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px dashed rgba(255, 107, 157, 0.35);
    border-radius: 12px;
    background: rgba(255, 107, 157, 0.06);
    color: var(--bar-text-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

/* Footer */
.website-footer {
    background: var(--bar-bg-deep);
    color: var(--bar-text-muted);
    padding: 28px 0 36px;
    text-align: center;
    border-top: 1px solid var(--bar-border);
}

.website-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 12px;
}

.website-footer-links a {
    color: var(--bar-text-soft);
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.website-footer-links a:hover {
    color: var(--bar-accent);
    border-bottom-color: rgba(255, 107, 157, 0.4);
}

.website-footer-copy {
    margin: 0;
    font-size: 12px;
    color: var(--bar-text-muted);
}

.website-footer-copy a {
    color: var(--bar-text-muted);
    margin-left: 8px;
}

.website-footer-copy a:hover {
    color: var(--bar-accent);
}

/* Agreement page */
.website-agreement-page {
    background: var(--bar-bg);
    min-height: calc(100vh - 64px - 120px);
}

.website-agreement-wrap {
    max-width: 800px;
    padding-top: 32px;
    padding-bottom: 64px;
}

.website-back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--bar-text-muted);
}

.website-back-link:hover {
    color: var(--bar-accent);
}

.website-agreement-title {
    margin: 0 0 8px;
    font-size: 28px;
    color: var(--bar-text);
}

.website-agreement-meta {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--bar-text-muted);
}

.website-agreement-content {
    color: var(--bar-text-soft);
    line-height: 1.8;
    font-size: 15px;
}

.website-agreement-content h1,
.website-agreement-content h2,
.website-agreement-content h3 {
    color: var(--bar-text);
    margin-top: 24px;
    margin-bottom: 12px;
}

.website-agreement-content p {
    margin: 0 0 12px;
}

.website-agreement-content ul,
.website-agreement-content ol {
    padding-left: 24px;
    margin: 0 0 12px;
}

.website-agreement-content a {
    color: var(--bar-accent);
}

/* Responsive */
@media (min-width: 768px) {
    .website-carousel {
        height: 420px;
    }

    .website-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .website-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .website-cta-inner {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }

    .website-cta-text {
        max-width: 360px;
    }

    .website-cta .website-section-title,
    .website-cta .website-section-subtitle {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .website-nav {
        gap: 14px;
    }

    .website-nav a {
        font-size: 14px;
    }

    .website-brand-name {
        font-size: 16px;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
