:root {
    --bg-color: #f4f4f4;
    --panel-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --line-color: #e5e5e5;
    --brand-purple: #67008a;
    --brand-purple-dark: #24002f;
    --brand-purple-2: #7a009f;
    --live-green: #079414;
    --link-purple: #6b088d;
    --score-purple: #5d1090;
}

@keyframes live-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.live-icon-animated path {
    animation: live-pulse 1.5s infinite ease-in-out;
}

.announcement-domain {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 3px;
    padding: 1px 7px 3px;
    border: 1px solid rgba(103, 0, 138, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #52006e;
    font-size: 1.2em;
    font-weight: 950;
    line-height: 1.18;
    letter-spacing: 0;
    text-decoration: none !important;
    vertical-align: baseline;
    word-break: break-all;
    box-shadow: 0 1px 5px rgba(103, 0, 138, 0.12);
    animation: announcementDomainPulse 2.4s ease-in-out infinite;
}

.announcement-domain::after {
    display: none;
}

.announcement-domain:hover {
    color: #fb5621;
    border-color: rgba(251, 86, 33, 0.28);
    background: #fff;
    box-shadow: 0 2px 8px rgba(251, 86, 33, 0.16);
}

@keyframes announcementDomainPulse {
    0%, 100% {
        text-shadow: 0 0 0 rgba(251, 86, 33, 0);
        filter: saturate(1);
    }
    50% {
        text-shadow: 0 0 8px rgba(103, 0, 138, 0.24), 0 0 10px rgba(251, 86, 33, 0.18);
        filter: saturate(1.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .announcement-domain,
    .announcement-domain::after {
        animation: none;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    color: inherit;
}

.main,
.container {
    width: min(1000px, calc(100% - 24px));
    margin: 0 auto;
}

.only-pc {
    display: block;
}

.site-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 68px;
    background: linear-gradient(#26002e 0%, #590070 54%, #8100a6 100%);
    color: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.header-main {
    height: 68px;
    display: flex;
    align-items: center;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 210px;
    color: #fff;
    text-decoration: none;
}

.brand-logo {
    display: block;
    border-radius: 50%;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-text {
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    white-space: nowrap;
}

.brand-subtext {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.top-domain-links {
    display: flex;
    align-items: center;
    gap: 32px;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.top-domain-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.top-domain-links a:hover {
    opacity: 0.8;
}

.menu-icon {
    flex-shrink: 0;
    color: currentColor;
}

.top-home-link {
    display: none !important;
}

.site-language-switch {
    position: fixed;
    top: 16px;
    right: max(14px, calc((100vw - 1000px) / 2 + 12px));
    z-index: 10050;
    min-width: 72px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.site-language-switch:hover {
    background: rgba(255, 255, 255, 0.26);
}

.video-dot,
.download-dot {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
    border-radius: 4px;
    background: #fff;
}

.video-dot::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 4px;
    border-left: 8px solid #fff;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.download-dot {
    width: 24px;
    height: 18px;
    border-radius: 10px;
}

.download-dot::after {
    content: "";
    position: absolute;
    left: 9px;
    top: 3px;
    width: 6px;
    height: 10px;
    background: var(--brand-purple);
    box-shadow: 0 7px 0 -2px var(--brand-purple);
}

.btn-bookmark,
.search-bar-wrapper,
.search-bar-inner,
#searchInput {
    display: none;
}

.bookmark-instruction {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.68);
}

.bookmark-instruction-content {
    width: min(400px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 6px;
    background: #fff;
    padding: 22px;
    text-align: center;
    color: #222;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.bookmark-instruction-close {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 4px;
    background: var(--brand-purple);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.toast-message {
    position: fixed;
    top: 78px;
    right: 20px;
    z-index: 10002;
    padding: 10px 16px;
    border-radius: 4px;
    background: #219653;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.toast-message.error {
    background: #d32f2f;
}

.site-footer {
    margin-top: 32px;
    padding: 20px 0;
    border-top: 1px solid var(--line-color);
    background: #151019;
    color: rgba(255, 255, 255, 0.82);
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.site-footer-link {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.site-footer-link:hover {
    color: #fff;
}

.site-footer-button {
    padding: 0;
}

.site-contact-open {
    overflow: hidden;
}

.site-contact-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.site-contact-modal[hidden] {
    display: none;
}

.site-contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.site-contact-panel {
    position: relative;
    width: min(360px, 100%);
    padding: 26px 22px 24px;
    border-radius: 8px;
    background: #fff;
    color: var(--text-main);
    text-align: center;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.site-contact-panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.site-contact-label {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 13px;
}

.site-contact-account {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(103, 0, 138, 0.08);
    color: var(--brand-purple);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-contact-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #777;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.site-contact-close:hover {
    color: #111;
    background: #f1f1f1;
}

@media (max-width: 760px) {
    .announcement-domain {
        margin: 1px 2px;
        padding: 2px 7px 4px;
        font-size: 1.22em;
        line-height: 1.15;
    }

    .main {
        width: 100%;
    }

    .only-pc {
        display: none !important;
    }

    body {
        padding-bottom: 54px !important;
        background: #fff;
    }

    .site-topbar {
        position: fixed;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        height: 54px;
        background: linear-gradient(#8a00a8, #3a004b);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.22);
    }

    .header-main {
        width: 100%;
        height: 54px;
        padding: 0;
        gap: 0;
    }

    .brand-link,
    .btn-bookmark,
    .top-home-link {
        display: none !important;
    }

    .top-domain-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        font-size: 11px !important;
        font-weight: 700;
    }

    body[data-lan="lan_en"] .top-domain-links,
    .top-domain-links.top-domain-links-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-domain-links a {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 54px;
        gap: 4px;
        font-size: 11px !important;
    }

    .top-domain-links.top-domain-links-two {
        height: 54px;
        padding: 0 8px;
        box-sizing: border-box;
    }

    .top-domain-links.top-domain-links-two a {
        height: 44px;
        margin: 5px 4px;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 12px !important;
        font-weight: 800;
    }

    .top-domain-links.top-domain-links-two a.active {
        background: rgba(255, 255, 255, 0.16);
        color: #fff !important;
    }

    .top-domain-links.top-domain-links-two a.active .menu-icon {
        color: #fff;
    }

    .site-language-switch {
        top: 7px;
        right: 8px;
        min-width: 54px;
        height: 30px;
        padding: 0 10px;
        border-radius: 15px;
        border-color: rgba(103, 0, 138, 0.3);
        background: rgba(255, 255, 255, 0.96);
        color: var(--brand-purple);
        font-size: 12px;
        box-shadow: 0 4px 12px rgba(103, 0, 138, 0.22);
    }

    .video-dot,
    .download-dot {
        width: 22px;
        height: 17px;
    }

    .site-footer {
        margin-top: 24px;
        padding: 18px 0 20px;
    }

    .site-footer-inner {
        width: 100%;
        gap: 26px;
    }

    .site-contact-panel {
        width: min(320px, 100%);
    }
}

.top-domain-links a.active {
    color: #ffeb3b !important;
    font-weight: 900;
    opacity: 1;
}

@media (max-width: 760px) {
    .brand-text {
        font-size: 16px !important;
    }
    .brand-subtext {
        font-size: 14px !important;
    }
}
