:root {
    --primary: rgb(213, 5, 5);
    --primary-dark: rgb(178, 0, 0);
    --text: #191919;
    --muted: #666666;
    --light: #f5f5f5;
    --line: #e7e7e7;
    --white: #ffffff;
    --dark: #111111;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 20;
}

.top-red-bar {
    display: none;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
}

.top-red-inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mobile-header {
    height: 62px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 58px 1fr 78px;
    align-items: center;
    background: #fff;
}

.menu-toggle {
    width: 42px;
    height: 42px;
    border: 0;
    background: #fff;
    padding: 9px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #111;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-logo {
    justify-self: center;
}

.mobile-logo img {
    height: 34px;
    width: auto;
}

.top-action-btn,
.main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(213, 5, 5, 0.2);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.top-action-btn:hover,
.main-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(213, 5, 5, 0.25);
}

.mobile-header .top-action-btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
    justify-self: end;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--light);
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.mobile-nav a.active {
    background: var(--primary);
    color: #fff;
}

.desktop-header {
    display: none;
    background: #fff;
}

.desktop-inner {
    height: 78px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-logo img {
    width: 128px;
    height: auto;
}

.search-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #dddddd;
    position: relative;
    flex: 0 0 auto;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background: #dddddd;
    transform: rotate(45deg);
    right: -5px;
    bottom: 4px;
    border-radius: 2px;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.desktop-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #222;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    background: var(--primary);
    color: #fff;
}

.section {
    padding: 54px 0;
}

.section.light {
    background: var(--light);
}

.section-head {
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(213, 5, 5, 0.08);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(30px, 6vw, 54px);
    line-height: 1.14;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.24;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

h3 {
    font-size: 19px;
    line-height: 1.35;
    margin-bottom: 10px;
}

p {
    color: var(--muted);
}

.hero-slider {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.hero-slider .slides {
    position: relative;
    width: 100%;
}

.slide {
    display: none;
    position: relative;
    background: #f7f7f7;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 580px;
    object-fit: contain;
    background: #f7f7f7;
}

.slide-caption {
    position: static;
    padding: 22px 16px 32px;
    background: #fff;
}

.slide-caption .eyebrow {
    margin-bottom: 12px;
}

.slide-caption p {
    margin-bottom: 18px;
}

.slider-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    z-index: 4;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,.22);
    padding: 0;
    cursor: pointer;
}

.slider-dot.active {
    width: 24px;
    border-radius: 999px;
    background: var(--primary);
}

.slider-prev,
.slider-next {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .86);
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    z-index: 5;
}

.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.hero-note {
    padding: 20px 0 0;
    background: #fff;
}

.hero-note-inner {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--light);
    border: 1px solid var(--line);
}

.category-grid,
.card-grid,
.focus-grid,
.service-grid,
.security-grid,
.score-grid,
.faq-grid,
.link-grid {
    display: grid;
    gap: 16px;
}

.category-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card,
.sports-card,
.focus-card,
.service-card,
.score-panel,
.data-panel,
.security-card,
.faq-item,
.info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}

.sports-card {
    position: relative;
    overflow: hidden;
}

.sports-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--primary);
}

.card-tag,
.status-tag,
.red-tag {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(213, 5, 5, .08);
    font-size: 13px;
    font-weight: 800;
}

.status-tag {
    color: #333;
    background: #f0f0f0;
}

.more-link {
    color: var(--primary);
    font-weight: 800;
}

.light-link {
    display: inline-flex;
    margin-top: 8px;
    color: #fff;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.focus-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.focus-card .more-link {
    margin-top: auto;
}

.two-col,
.app-showcase,
.platform-info,
.sports-hero,
.data-feature,
.content-layout {
    display: grid;
    gap: 24px;
    align-items: center;
}

.feature-list,
.clean-list,
.check-list {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.feature-list li,
.clean-list li,
.check-list li {
    position: relative;
    padding-left: 26px;
    color: #3a3a3a;
}

.feature-list li::before,
.clean-list li::before,
.check-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--primary);
    position: absolute;
    left: 4px;
    top: .78em;
}

.image-card {
    border-radius: 24px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.score-panel strong,
.data-panel strong {
    font-size: 26px;
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.score-row:last-child {
    border-bottom: 0;
}

.score-row b {
    color: #111;
}

.responsible-box,
.cta-section {
    border-radius: 26px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(213,5,5,.98), rgba(180,0,0,.98));
    color: #fff;
    overflow: hidden;
    position: relative;
}

.responsible-box p,
.cta-section p {
    color: rgba(255, 255, 255, .88);
}

.cta-section .main-btn,
.responsible-box .main-btn {
    background: #fff;
    color: var(--primary);
    box-shadow: none;
}

.cta-section .main-btn:hover,
.responsible-box .main-btn:hover {
    background: #f4f4f4;
}

.faq-item h3 {
    margin-bottom: 8px;
}

.page-hero {
    background: var(--light);
    padding: 52px 0;
    border-bottom: 1px solid var(--line);
}

.page-hero p {
    max-width: 860px;
    font-size: 17px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: #777;
    font-size: 14px;
    margin-bottom: 14px;
}

.breadcrumbs a {
    color: var(--primary);
    font-weight: 700;
}

.article-section {
    padding: 42px 0;
}

.article-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.article-block p:last-child {
    margin-bottom: 0;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.related-links a {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--primary);
    font-weight: 800;
}

.download-steps {
    counter-reset: step;
    display: grid;
    gap: 14px;
}

.download-step {
    position: relative;
    padding: 20px 20px 20px 64px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.download-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.site-footer {
    background: #111;
    color: #fff;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    gap: 24px;
    padding: 42px 0 32px;
}

.footer-logo {
    width: 118px;
    margin-bottom: 12px;
}

.site-footer p {
    color: rgba(255, 255, 255, .7);
}

.site-footer h3 {
    color: #fff;
}

.site-footer a {
    display: block;
    color: rgba(255, 255, 255, .72);
    margin: 7px 0;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

@media (min-width: 560px) {
    .category-grid,
    .score-grid,
    .link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .section {
        padding: 72px 0;
    }
    .focus-grid,
    .service-grid,
    .security-grid,
    .faq-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .two-col,
    .app-showcase,
    .platform-info,
    .sports-hero,
    .data-feature,
    .content-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    }
    .hero-note-inner {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .mobile-header,
    .mobile-nav {
        display: none !important;
    }
    .top-red-bar,
    .desktop-header {
        display: block;
    }
    .slide img {
        height: 560px;
        object-fit: cover;
    }
    .slide-caption {
        position: absolute;
        left: max(32px, calc((100vw - 1180px) / 2));
        top: 50%;
        transform: translateY(-50%);
        max-width: 470px;
        padding: 30px;
        border-radius: 24px;
        background: rgba(255,255,255,.92);
        box-shadow: var(--shadow);
    }
    .slider-prev,
    .slider-next {
        display: block;
    }
    .slider-controls {
        bottom: 26px;
    }
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .score-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .focus-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .security-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
