/* B体育官方网站 - 响应式品牌官网样式 */
:root {
    --brand: rgb(213, 5, 5);
    --brand-dark: rgb(180, 4, 4);
    --brand-deep: rgb(145, 0, 0);
    --text: #171717;
    --muted: #5f6368;
    --light: #f6f7f9;
    --line: #e8e8e8;
    --white: #ffffff;
    --black: #000000;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 12px 30px rgba(20, 20, 20, 0.08);
    --soft-shadow: 0 8px 20px rgba(20, 20, 20, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.72;
    overflow-x: hidden;
}

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

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

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

.site-header {
    width: 100%;
    background: var(--white);
    position: relative;
    z-index: 50;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.desktop-topbar,
.desktop-header {
    display: none;
}

/* mobile header */
.mobile-header {
    height: 62px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    background: var(--white);
    border-bottom: 3px solid var(--brand-dark);
}

.menu-toggle {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--brand-dark);
    border-radius: 10px;
    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: 38px;
    width: auto;
}

.top-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(213, 5, 5, 0.18);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.top-action:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.mobile-nav {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 14px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-nav.open {
    display: grid;
}

.mobile-nav a {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    background: #fbfbfb;
}

.mobile-nav a.active {
    color: var(--white);
    background: var(--brand);
    border-color: var(--brand);
}

/* common */
.section {
    padding: 52px 0;
}

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

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

.section-kicker,
.badge,
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(213, 5, 5, 0.08);
    color: var(--brand);
    border: 1px solid rgba(213, 5, 5, 0.14);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

.section-title h2,
.page-title h1 {
    margin: 12px 0 10px;
    color: var(--text);
    line-height: 1.22;
}

.section-title h2 {
    font-size: clamp(26px, 5vw, 38px);
}

.section-title p,
.page-title p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(213, 5, 5, 0.22);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.main-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(180, 4, 4, 0.25);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand);
    font-weight: 800;
    font-size: 14px;
}

.text-link::after {
    content: "›";
    font-size: 18px;
    line-height: 1;
}

.panel,
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

/* sports hero / official entry section */
.sports-hero {
    background:
        linear-gradient(180deg, rgba(180, 4, 4, 0.10), rgba(255, 255, 255, 0.92)),
        var(--white);
    padding: 32px 0 48px;
}

.hero-grid {
    display: grid;
    gap: 26px;
    align-items: center;
}

.hero-copy {
    background: var(--white);
    border: 1px solid rgba(213, 5, 5, 0.13);
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: var(--shadow);
}

.hero-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(30px, 8vw, 58px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 22px;
    color: var(--muted);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    background: #f7f7f7;
    border: 1px solid var(--line);
    font-size: 13px;
    color: #3b3b3b;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 8px solid var(--white);
}

.hero-stat {
    margin-top: -18px;
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--soft-shadow);
}

.hero-stat strong {
    display: block;
    color: var(--text);
}

.hero-stat span {
    color: var(--muted);
    font-size: 14px;
}

/* category navigation section */
.category-section {
    background: var(--light);
}

.category-main-grid,
.category-sub-grid {
    display: grid;
    gap: 14px;
}

.category-main-grid {
    margin-bottom: 16px;
}

.category-main-card,
.category-sub-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--soft-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-main-card:hover,
.category-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(213, 5, 5, 0.25);
}

.category-main-card {
    padding: 22px;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-main-card h3,
.category-sub-card h3 {
    margin: 0 0 8px;
    color: var(--text);
}

.category-main-card p,
.category-sub-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.category-sub-card {
    padding: 18px;
}

/* focus match cards */
.focus-match-grid {
    display: grid;
    gap: 16px;
}

.focus-card {
    position: relative;
    padding: 20px;
    overflow: hidden;
}

.focus-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--brand);
}

.focus-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: rgba(213, 5, 5, 0.08);
    color: var(--brand);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.focus-card h3 {
    margin: 0 0 8px;
}

.focus-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

/* info split section */
.info-split {
    display: grid;
    gap: 18px;
}

.info-column {
    padding: 22px;
}

.info-column h2 {
    margin: 0 0 16px;
    font-size: 24px;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-item {
    padding: 14px;
    border-radius: 14px;
    background: #fbfbfb;
    border: 1px solid var(--line);
}

.info-item strong {
    display: block;
    margin-bottom: 4px;
}

.info-item span {
    color: var(--muted);
    font-size: 14px;
}

/* sports showcase */
.showcase-grid,
.app-grid,
.score-data-grid {
    display: grid;
    gap: 24px;
    align-items: center;
}

.showcase-image img,
.app-image img,
.data-image img {
    border-radius: 24px;
    border: 8px solid var(--white);
    box-shadow: var(--shadow);
}

.showcase-copy h2,
.app-copy h2,
.data-copy h2 {
    margin: 10px 0 12px;
    font-size: clamp(26px, 5vw, 38px);
    line-height: 1.22;
}

.showcase-copy p,
.app-copy p,
.data-copy p {
    color: var(--muted);
    margin: 0 0 18px;
}

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

.check-list li {
    position: relative;
    padding-left: 28px;
    color: #333;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(213, 5, 5, 0.12);
}

/* score and data section */
.score-data-section {
    background: var(--white);
}

.data-board {
    display: grid;
    gap: 14px;
}

.data-card {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff, #fafafa);
    border: 1px solid var(--line);
}

.data-card span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.data-card strong {
    display: block;
    font-size: 22px;
}

.data-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* app showcase */
.app-showcase {
    background: linear-gradient(180deg, #f7f7f7, #fff);
}

.app-card {
    padding: 24px;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

/* security help section */
.security-grid {
    display: grid;
    gap: 14px;
}

.security-card {
    padding: 18px;
    border-left: 4px solid var(--brand);
}

.security-card h3 {
    margin: 0 0 8px;
}

.security-card p {
    margin: 0;
    color: var(--muted);
}

/* responsible play section */
.responsible-section {
    background: var(--light);
}

.responsible-box {
    border-radius: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 6px solid var(--brand);
    padding: 22px;
    box-shadow: var(--soft-shadow);
}

.responsible-box h2 {
    margin: 0 0 10px;
}

.responsible-box p {
    color: var(--muted);
    margin: 0 0 12px;
}

.responsible-box ul {
    margin: 0;
    padding-left: 20px;
    color: #333;
}

/* FAQ item */
.faq-grid {
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 18px;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--line);
}

.faq-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

/* CTA */
.cta-section {
    background: #fff;
    padding: 52px 0;
}

.cta-box {
    text-align: center;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(213, 5, 5, 0.08), rgba(213, 5, 5, 0.02)),
        var(--white);
    border: 1px solid rgba(213, 5, 5, 0.16);
    padding: 34px 20px;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 5vw, 40px);
}

.cta-box p {
    margin: 0 auto 22px;
    color: var(--muted);
    max-width: 700px;
}

/* page header */
.page-hero {
    padding: 42px 0 34px;
    background:
        linear-gradient(180deg, rgba(180, 4, 4, 0.12), rgba(255,255,255,0.94)),
        var(--white);
}

.page-title {
    background: var(--white);
    border: 1px solid rgba(213, 5, 5, 0.13);
    border-radius: 24px;
    padding: 26px 22px;
    box-shadow: var(--shadow);
}

.page-title h1 {
    font-size: clamp(30px, 7vw, 52px);
}

.content-layout {
    display: grid;
    gap: 18px;
    padding: 34px 0 54px;
}

.article-panel {
    padding: 22px;
}

.article-panel h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-panel h3 {
    margin: 22px 0 8px;
    color: var(--text);
}

.article-panel p {
    color: var(--muted);
    margin: 0 0 14px;
}

.article-panel ul,
.article-panel ol {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #333;
}

.tip-box {
    padding: 18px;
    border-radius: 16px;
    background: #fff7f7;
    border: 1px solid rgba(213, 5, 5, 0.18);
    color: #333;
}

.tip-box strong {
    display: block;
    color: var(--brand);
    margin-bottom: 6px;
}

.related-grid,
.info-card-grid {
    display: grid;
    gap: 14px;
}

.info-card {
    padding: 18px;
}

.info-card h3 {
    margin: 0 0 8px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.steps li {
    counter-increment: step;
    padding: 16px 16px 16px 54px;
    position: relative;
    background: #fbfbfb;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 16px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.table-like {
    display: grid;
    gap: 10px;
}

.table-like div {
    display: grid;
    gap: 6px;
    padding: 14px;
    background: #fbfbfb;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.table-like strong {
    color: var(--text);
}

.table-like span {
    color: var(--muted);
}

.download-panel {
    text-align: center;
    padding: 28px 22px;
}

.download-panel .main-btn {
    margin: 10px 0 22px;
}

.notice-line {
    font-size: 14px;
    color: var(--muted);
}

/* footer */
.site-footer {
    background: #1d1d1d;
    color: #f4f4f4;
}

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

.footer-brand img {
    height: 42px;
    width: auto;
    margin-bottom: 14px;
    background: var(--white);
    border-radius: 10px;
    padding: 4px;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
    color: #cfcfcf;
}

.footer-warning {
    color: #f4f4f4 !important;
    border-left: 4px solid var(--brand);
    padding-left: 12px;
}

.footer-links h3 {
    margin: 0 0 12px;
    color: var(--white);
}

.footer-links a {
    display: block;
    margin: 8px 0;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 14px 0;
    font-size: 13px;
}

.footer-bottom .container {
    display: grid;
    gap: 6px;
}

/* tablet */
@media (min-width: 700px) {
    .section {
        padding: 64px 0;
    }

    .category-main-grid,
    .focus-match-grid,
    .security-grid,
    .info-card-grid,
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-sub-grid,
    .data-board {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr;
    }
}

/* desktop header and layout */
@media (min-width: 980px) {
    .mobile-header,
    .mobile-nav {
        display: none !important;
    }

    .desktop-topbar,
    .desktop-header {
        display: block;
    }

    .desktop-topbar {
        background: var(--brand-dark);
        color: var(--white);
        font-size: 13px;
    }

    .topbar-inner {
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
    }

    .desktop-header {
        background: var(--white);
        border-bottom: 1px solid var(--line);
    }

    .desktop-nav-wrap {
        height: 76px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 26px;
    }

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

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

    .desktop-nav a {
        padding: 10px 12px;
        border-radius: 999px;
        font-weight: 700;
        color: #333;
        white-space: nowrap;
    }

    .desktop-nav a:hover,
    .desktop-nav a.active {
        color: var(--brand);
        background: rgba(213, 5, 5, 0.07);
    }

    .header-tools {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .search-icon {
        width: 36px;
        height: 36px;
        border: 1px solid var(--line);
        border-radius: 999px;
        position: relative;
        display: inline-flex;
        background: #fafafa;
    }

    .search-icon::before {
        content: "";
        position: absolute;
        width: 12px;
        height: 12px;
        border: 2px solid var(--brand-dark);
        border-radius: 50%;
        left: 9px;
        top: 8px;
    }

    .search-icon::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 2px;
        background: var(--brand-dark);
        transform: rotate(45deg);
        left: 20px;
        top: 22px;
        border-radius: 2px;
    }

    .sports-hero {
        padding: 54px 0 70px;
    }

    .hero-grid,
    .showcase-grid,
    .app-grid,
    .score-data-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy {
        padding: 44px;
    }

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

    .category-main-card:nth-child(1),
    .category-main-card:nth-child(4) {
        transform: translateY(18px);
    }

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

    .focus-match-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .info-split {
        grid-template-columns: 1fr 1fr;
    }

    .data-board {
        grid-template-columns: repeat(3, 1fr);
    }

    .security-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-layout {
        grid-template-columns: 1.7fr .9fr;
        align-items: start;
    }

    .content-layout.full-width {
        grid-template-columns: 1fr;
    }

    .related-grid,
    .info-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-bottom .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1160px) {
    .desktop-nav a {
        padding-left: 15px;
        padding-right: 15px;
    }
}
