:root {
    --t3-purple: #bf58f5;
    --t3-purple-dark: #a63ae6;
    --t3-border: #eeeeee;
    --t3-muted: #92999f;
    --t3-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: #263442;
    font: 14px/1.6 Arial, "Microsoft YaHei", sans-serif;
}

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

button {
    font: inherit;
}

[hidden] {
    display: none !important;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #6520df;
    outline-offset: 3px;
}

.t3-wrap {
    width: var(--t3-width);
    max-width: calc(100% - 36px);
    margin: 0 auto;
}

.t3-brand {
    display: flex;
    min-height: 67px;
    align-items: center;
    gap: 8px;
    color: #421de7;
    font-size: 28px;
    font-weight: 700;
}

.t3-ball {
    font-size: 37px;
    line-height: 1;
}

.t3-nav-bar {
    background: var(--t3-purple);
    color: #fff;
}

.t3-nav {
    display: flex;
    min-height: 48px;
    align-items: stretch;
}

.t3-nav a {
    display: flex;
    padding: 0 23px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.t3-nav a:hover {
    background: rgb(255 255 255 / 13%);
}

.t3-nav a.active {
    background: linear-gradient(
        180deg,
        #ffae00 0%,
        #ff8616 25%,
        #cc43ed 100%
    );
}

.t3-description {
    margin: 17px 0;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.t3-intro {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 22px;
}

.t3-feature {
    position: relative;
    display: block;
    min-width: 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f1e7fa;
}

.t3-feature img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t3-feature-title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 14px 16px;
    background: rgb(255 255 255 / 92%);
    color: #17212b;
    font-size: 21px;
    line-height: 1.5;
}

.t3-news {
    min-width: 0;
    margin: 0;
    padding: 5px 0;
    list-style: none;
}

.t3-news li {
    padding: 9px 0;
    border-bottom: 1px solid var(--t3-border);
}

.t3-news a {
    display: block;
    overflow: hidden;
    color: #7f8891;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t3-news li:first-child a {
    color: #34404b;
    font-size: 17px;
    font-weight: 700;
}

.t3-news a:hover {
    color: var(--t3-purple-dark);
}

.t3-section-title {
    margin: 16px 0 12px;
    padding: 9px 17px;
    border: 1px solid var(--t3-border);
    background: #fff;
    font-size: 17px;
    line-height: 25px;
}

.t3-table-head {
    display: grid;
    min-height: 47px;
    padding: 0 20px;
    grid-template-columns: 90px 150px minmax(0, 1fr) 115px;
    align-items: center;
    background: var(--t3-purple);
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.t3-group {
    margin: 14px 0;
    padding: 15px 18px 10px;
    border: 1px solid var(--t3-border);
}

.t3-date {
    display: inline-flex;
    margin: 0 0 12px -18px;
    padding: 5px 18px 5px 12px;
    align-items: center;
    gap: 6px;
    border-radius: 0 20px 20px 0;
    background: #eeeeef;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
}

.t3-row {
    display: grid;
    min-height: 68px;
    grid-template-columns: 90px 150px minmax(0, 1fr) 115px;
    align-items: center;
    border-bottom: 1px solid var(--t3-border);
}

.t3-time {
    padding-left: 15px;
    color: var(--t3-muted);
    font-size: 13px;
}

.t3-league {
    min-width: 0;
    padding-right: 12px;
    overflow: hidden;
    color: var(--t3-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t3-teams {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.t3-team {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.t3-team-away {
    justify-content: flex-end;
}

.t3-team-away img {
    order: 2;
}

.t3-team img {
    display: block;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    object-fit: contain;
}

.t3-team span {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t3-vs {
    color: #17212b;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.t3-watch {
    display: inline-flex;
    width: 101px;
    min-height: 34px;
    padding: 5px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border: 1px solid var(--t3-purple);
    border-radius: 5px;
    background: #fff;
    color: var(--t3-purple-dark);
    font-size: 12px;
    white-space: nowrap;
}

.t3-watch.is-live {
    background: var(--t3-purple);
    color: #fff;
}

.t3-watch.is-finished {
    border-color: #d9c3e5;
    color: #9b83a9;
}

a.t3-watch:hover {
    background: var(--t3-purple);
    color: #fff;
}

.t3-empty {
    padding: 35px 15px;
    color: var(--t3-muted);
    text-align: center;
}

.t3-filters {
    display: flex;
    margin: 14px 0;
    flex-wrap: wrap;
    gap: 9px;
}

.t3-filter {
    padding: 6px 16px;
    border: 1px solid #e5d2ef;
    border-radius: 4px;
    background: #fff;
    color: #9453b5;
    cursor: pointer;
}

.t3-filter.active {
    border-color: var(--t3-purple);
    background: var(--t3-purple);
    color: #fff;
}

.t3-ribbon {
    margin: 15px 0 0;
    padding: 11px 16px;
    background:
        linear-gradient(135deg, #ffa000 0 45px, transparent 46px),
        var(--t3-purple);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.t3-detail {
    padding: 18px;
    border: 1px solid var(--t3-border);
}

.t3-detail-meta {
    display: flex;
    margin-bottom: 15px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--t3-purple-dark);
}

.t3-scoreboard {
    width: 900px;
    max-width: 100%;
    margin: 0 auto 25px;
    padding: 27px 20px;
    background:
        radial-gradient(ellipse at center bottom, #29735b, transparent 70%),
        linear-gradient(135deg, #142a4b, #103954 55%, #142343);
    color: #fff;
    text-align: center;
}

.t3-match-title {
    margin: 0 0 20px;
    font-size: 21px;
    line-height: 1.6;
}

.t3-score-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
}

.t3-score-team img {
    display: block;
    width: 82px;
    height: 82px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.t3-score-team p {
    margin: 0;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.t3-signals-title {
    padding-left: 8px;
    border-left: 4px solid var(--t3-purple);
    color: var(--t3-purple-dark);
    font-size: 19px;
}

.t3-signals {
    display: flex;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.t3-signals a {
    padding: 10px 17px;
    background: var(--t3-purple);
    color: #fff;
}

.t3-detail-info {
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.t3-note {
    margin: 20px 0;
    color: #92999f;
    font-size: 12px;
    text-align: center;
}

.t3-footer {
    margin-top: 35px;
    padding: 26px 18px;
    background: var(--t3-purple);
    color: #fff;
    text-align: center;
}

.t3-footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.t3-footer-info,
.t3-footer p {
    margin: 13px 0;
    font-size: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .t3-row,
    .t3-table-head {
        grid-template-columns: 70px 95px minmax(0, 1fr) 100px;
    }

    .t3-teams {
        grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
        gap: 5px;
    }

    .t3-watch {
        width: 90px;
    }

    .t3-feature-title {
        font-size: 17px;
    }
}

@media (max-width: 600px) {
    .t3-wrap {
        max-width: 100%;
    }

    .t3-brand {
        min-height: 51px;
        justify-content: center;
        font-size: 24px;
    }

    .t3-ball {
        font-size: 31px;
    }

    .t3-nav {
        min-height: 41px;
    }

    .t3-nav a {
        min-width: 0;
        padding: 0 12px;
        font-size: 14px;
    }

    /* 与手机截图一致：不在首屏放置新闻大图 */
    .t3-description,
    .t3-intro {
        display: none;
    }

    .t3-section-title {
        margin-top: 30px;
        margin-bottom: 0;
        padding: 7px 15px;
        font-size: 17px;
    }

    .t3-table-head {
        min-height: 50px;
        padding: 0 15px;
        grid-template-columns: 65px 65px minmax(0, 1fr) 90px;
    }

    .t3-group {
        margin: 0;
        padding: 15px 15px 14px;
        border: 0;
        border-bottom: 15px solid #efefef;
    }

    .t3-date {
        margin-left: -15px;
        margin-bottom: 16px;
        padding-left: 15px;
        font-size: 12px;
    }

    .t3-row {
        position: relative;
        min-height: 107px;
        padding: 29px 15px 10px;
        grid-template-columns: minmax(0, 1fr) 88px;
        column-gap: 12px;
    }

    .t3-time {
        position: absolute;
        top: 8px;
        left: 15px;
        padding: 0;
        font-size: 14px;
    }

    .t3-league {
        position: absolute;
        top: 8px;
        left: 80px;
        max-width: calc(100% - 105px);
        padding: 0;
        font-size: 14px;
    }

    .t3-teams {
        position: relative;
        display: flex;
        min-width: 0;
        padding-right: 25px;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .t3-team,
    .t3-team-away {
        justify-content: flex-start;
        gap: 5px;
    }

    .t3-team-away img {
        order: 0;
    }

    .t3-team img {
        width: 25px;
        height: 25px;
    }

    .t3-team span {
        font-size: 14px;
    }

    .t3-vs {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        font-size: 14px;
    }

    .t3-watch {
        width: 80px;
        min-height: 34px;
        font-size: 12px;
    }

    .t3-filters {
        padding: 0 12px;
    }

    .t3-ribbon {
        font-size: 12px;
    }

    .t3-detail {
        padding: 14px 12px;
    }

    .t3-detail-meta {
        font-size: 12px;
    }

    .t3-scoreboard {
        padding: 22px 10px;
    }

    .t3-match-title {
        font-size: 16px;
    }

    .t3-score-teams {
        grid-template-columns: minmax(0, 1fr) 75px minmax(0, 1fr);
        gap: 8px;
    }

    .t3-score-team img {
        width: 58px;
        height: 58px;
    }

    .t3-score-team p {
        font-size: 13px;
    }

    .t3-note {
        padding: 0 12px;
    }

    .t3-footer {
        margin-top: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }
}
