* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
}

/* ==================== PC端样式 ==================== */
@media (min-width: 769px) {
    body {
        background: #f5f5f5;
    }

    /* PC端顶部导航 */
    .pc-header {
        background: linear-gradient(90deg, #2fa14b 0%, #3eb16a 100%);
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .pc-logo {
        height: 32px;
    }

    /* 语言切换下拉框 */
    .lang-selector {
        position: relative;
        margin-left: 16px;
    }

    .lang-current {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 20px;
        padding: 4px 12px;
        cursor: pointer;
        transition: all 0.3s;
        color: #fff;
        font-size: 13px;
    }

    .lang-current:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .lang-current img {
        width: 20px;
        height: 14px;
        border-radius: 2px;
        object-fit: cover;
    }

    .lang-current i {
        font-size: 10px;
    }

    .lang-dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 8px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        min-width: 120px;
        display: none;
        z-index: 1000;
    }

    .lang-dropdown.show {
        display: block;
    }

    .lang-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        cursor: pointer;
        transition: background 0.3s;
        color: #333;
        font-size: 13px;
    }

    .lang-option:first-child {
        border-radius: 8px 8px 0 0;
    }

    .lang-option:last-child {
        border-radius: 0 0 8px 8px;
    }

    .lang-option:hover {
        background: #f5f5f5;
    }

    .lang-option.active {
        background: #e8f5e9;
        color: #2fa14b;
        font-weight: bold;
    }

    .lang-option img {
        width: 20px;
        height: 14px;
        border-radius: 2px;
        object-fit: cover;
    }

    .pc-nav {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    /* PC端菜单按钮 */
    .pc-menu-btn {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        border-radius: 8px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .pc-menu-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

    .pc-time {
        color: #fff;
        font-size: 13px;
    }

    .pc-btn {
        background: #fff;
        color: #2fa14b;
        border: none;
        border-radius: 20px;
        padding: 6px 20px;
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s;
    }

    .pc-btn:hover {
        background: #e8f5e9;
    }

    .pc-btn.primary {
        background: #2fa14b;
        color: #fff;
    }

    .pc-btn.primary:hover {
        background: #27853f;
    }

    /* PC端账户导航按钮 */
    /* 客服按钮（始终显示） */
    .customer-service-nav {
        display: flex;
        align-items: center;
        gap: 12px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .customer-service-nav li {
        list-style: none;
    }

    .customer-service-nav a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s;
        cursor: pointer;
    }

    .customer-service-nav .checkInfo-icon {
        background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }

    .customer-service-nav .checkInfo-icon:hover {
        background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    }

    /* 账户导航按钮（登录后显示） */
    .account-nav {
        display: none;
        /* 默认隐藏，登录后显示 */
        align-items: center;
        gap: 12px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .account-nav.show {
        display: flex;
    }

    .account-nav li {
        list-style: none;
    }

    .account-nav a {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 16px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.3s;
        cursor: pointer;
    }

    .account-nav .checkInfo-icon {
        background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    }

    .account-nav .checkInfo-icon:hover {
        background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    }

    .account-nav .icon1 {
        background: linear-gradient(135deg, #2fa14b 0%, #3eb16a 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(47, 161, 75, 0.3);
    }

    .account-nav .icon1:hover {
        background: linear-gradient(135deg, #27853f 0%, #359b5e 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(47, 161, 75, 0.4);
    }

    .account-nav .icon2 {
        background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
        color: #fff;
        box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    }

    .account-nav .icon2:hover {
        background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    }

    /* 未登录按钮组 */
    .pc-nav-btns {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .pc-nav-btns.hide {
        display: none;
    }

    /* PC端轮播 */
    .pc-carousel {
        width: 100%;
        height: 420px;
        position: relative;
        overflow: hidden;
        background: #000;
    }

    .carousel-inner {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .carousel-slide {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-slide.active {
        opacity: 1;
        z-index: 2;
    }

    .carousel-slide img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
    }

    .carousel-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.4);
        color: #fff;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 24px;
        cursor: pointer;
        z-index: 10;
        transition: background 0.3s;
    }

    .carousel-control:hover {
        background: rgba(0, 0, 0, 0.6);
    }

    .carousel-control.prev {
        left: 20px;
    }

    .carousel-control.next {
        right: 20px;
    }

    .carousel-indicators {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 10;
    }

    .carousel-indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s;
    }

    .carousel-indicator.active {
        background: #fff;
        width: 30px;
        border-radius: 6px;
    }

    /* PC端主内容 */
    .pc-main {
        background: #1a1a1a;
        padding: 40px 20px 90px 20px;
        /* 增加底部内边距为底部导航留出空间 */
        margin: 0;
    }

    .pc-main-inner {
        max-width: 1400px;
        margin: 0 auto;
    }

    .section-title {
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 24px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .section-title i {
        color: #2fa14b;
    }

    /* 赛事卡片网格 */
    .matches-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    .match-card {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-radius: 20px;
        padding: 24px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(47, 161, 75, 0.1);
        position: relative;
        overflow: hidden;
    }

    .match-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #2fa14b 0%, #3eb16a 100%);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .match-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 28px rgba(47, 161, 75, 0.2);
        border-color: rgba(47, 161, 75, 0.3);
    }

    .match-card:hover::before {
        transform: scaleX(1);
    }

    .match-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 16px;
        border-bottom: 2px solid #f0f0f0;
    }

    .match-time {
        font-size: 15px;
        color: #333;
        font-weight: 600;
    }

    .match-countdown {
        background: linear-gradient(135deg, #ff9800 0%, #ff6b00 100%);
        color: #fff;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: bold;
        box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
        }
    }

    .match-league {
        color: #2fa14b;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 12px;
        display: inline-block;
        position: relative;
    }

    .match-league::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, #2fa14b 0%, transparent 100%);
        border-radius: 2px;
    }

    /* VIP标识样式 */
    .vip-badge {
        display: inline-block;
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
        color: #333;
        font-size: 12px;
        font-weight: bold;
        padding: 4px 10px;
        border-radius: 12px;
        margin-left: 8px;
        vertical-align: middle;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
        animation: vip-glow 2s ease-in-out infinite;
    }

    @keyframes vip-glow {

        0%,
        100% {
            box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
        }

        50% {
            box-shadow: 0 2px 12px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.3);
        }
    }

    .match-volume {
        display: flex;
        align-items: baseline;
        gap: 10px;
        margin-bottom: 16px;
        padding: 12px;
        background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
        border-radius: 12px;
        border-left: 4px solid #2fa14b;
    }

    .volume-label {
        font-size: 12px;
        color: #666;
        font-weight: 500;
    }

    .volume-value {
        font-size: 32px;
        font-weight: 900;
        background: linear-gradient(135deg, #2fa14b 0%, #3eb16a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 1px;
    }

    .match-teams {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding: 16px;
        background: #fff;
        border-radius: 12px;
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    .team-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-height: 90px;
        /* 固定最小高度，确保所有卡片高度一致 */
        justify-content: flex-start;
        /* 从顶部开始对齐 */
    }

    .team-logo {
        width: 48px;
        height: 48px;
        object-fit: contain;
        border-radius: 8px;
        background: #f8f9fa;
        padding: 4px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s;
        flex-shrink: 0;
        /* 防止logo被压缩 */
    }

    .team-logo:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(47, 161, 75, 0.2);
    }

    .team-name {
        font-size: 15px;
        color: #333;
        font-weight: 600;
        text-align: center;
        width: 100%;
        line-height: 1.3;
        min-height: 40px;
        /* 确保队名区域有固定高度 */
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: break-word;
        /* 允许长单词换行 */
    }

    .vs-badge {
        color: #2fa14b;
        padding: 0 16px;
        font-size: 16px;
        font-weight: bold;
        letter-spacing: 2px;
        flex-shrink: 0;
    }

    .match-score {
        text-align: center;
        margin-bottom: 16px;
        color: #666;
        font-size: 15px;
        font-weight: 600;
        padding: 8px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .match-action {
        text-align: center;
    }

    .enter-btn {
        background: linear-gradient(135deg, #2fa14b 0%, #3eb16a 100%);
        color: #fff;
        border: none;
        border-radius: 25px;
        padding: 12px 36px;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        box-shadow: 0 4px 16px rgba(47, 161, 75, 0.3);
        position: relative;
        overflow: hidden;
    }

    .enter-btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .enter-btn:hover::before {
        width: 300px;
        height: 300px;
    }

    .enter-btn:hover {
        background: linear-gradient(135deg, #27853f 0%, #359b5e 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(47, 161, 75, 0.4);
    }

    .enter-btn:active {
        transform: translateY(0);
    }

    /* PC端Footer */
    .pc-footer {
        background: linear-gradient(180deg, #e6f5e9 0%, #f8fcf9 100%);
        padding: 40px 20px;
        padding-bottom: 90px;
        /* 为底部导航留出空间 */
        margin-top: 60px;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }

    .footer-info {
        color: #666;
        font-size: 13px;
        margin-bottom: 20px;
    }

    .footer-copyright {
        color: #999;
        font-size: 12px;
    }

    /* 隐藏移动端元素（保留底部导航） */
    .mobile-header,
    .mobile-carousel,
    .mobile-main {
        display: none;
    }

    /* PC端隐藏底部导航 */
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* ==================== 移动端样式 ==================== */
@media (max-width: 768px) {
    body {
        background: #f5f5f5;
        padding-bottom: 70px;
    }

    /* 移动端顶部 */
    .mobile-header {
        background: #2fa14b;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-logo {
        height: 32px;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-login-btn {
        background: #fff;
        color: #2fa14b;
        border: none;
        border-radius: 16px;
        padding: 6px 16px;
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-login-btn:active {
        background: #e8f5e9;
    }

    .mobile-register-btn {
        background: linear-gradient(90deg, #2fa14b 0%, #3eb16a 100%);
        color: #fff;
        border: none;
        border-radius: 16px;
        padding: 6px 16px;
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-register-btn:active {
        opacity: 0.8;
    }

    /* 移动端登录/注册按钮隐藏（必须放在按钮样式之后） */
    .mobile-login-btn.hide,
    .mobile-register-btn.hide {
        display: none !important;
    }

    .mobile-menu-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }

    /* 移动端轮播 */
    .mobile-carousel {
        width: 100%;
        height: 220px;
        position: relative;
        overflow: hidden;
        background: #000;
    }

    .carousel-inner {
        width: 100%;
        height: 100%;
        position: relative;
    }

    .carousel-slide {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        transition: opacity 0.8s ease-in-out;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-slide.active {
        opacity: 1;
        z-index: 2;
    }

    .carousel-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-indicators {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 10;
    }

    .carousel-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
    }

    .carousel-indicator.active {
        background: #fff;
        width: 24px;
        border-radius: 4px;
    }

    /* 移动端主内容 */
    .mobile-main {
        padding: 16px;
        padding-bottom: 80px;
        /* 底部导航60px + 额外20px间距 */
    }

    .section-title {
        color: #333;
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .section-title i {
        color: #2fa14b;
    }

    /* 移动端赛事列表 */
    .matches-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .match-card {
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .match-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .match-time {
        font-size: 13px;
        color: #666;
    }

    .match-countdown {
        background: #fff3e0;
        color: #ff6b00;
        padding: 3px 10px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: bold;
    }

    .match-league {
        color: #2fa14b;
        font-size: 15px;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .match-teams {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }

    .team-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        flex: 1;
    }

    .team-logo {
        width: 36px;
        height: 36px;
        object-fit: contain;
        border-radius: 6px;
        background: #f8f9fa;
        padding: 3px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .team-name {
        font-size: 13px;
        color: #333;
        font-weight: 600;
        flex: 1;
        text-align: center;
    }

    .team-name:first-child {
        text-align: left;
    }

    .team-name:last-child {
        text-align: right;
    }

    .vs-badge {
        color: #2fa14b;
        padding: 0 12px;
        font-size: 14px;
        font-weight: bold;
        letter-spacing: 2px;
        flex-shrink: 0;
    }

    .match-score {
        text-align: center;
        margin-bottom: 10px;
        color: #666;
        font-size: 13px;
    }

    .match-action {
        text-align: center;
    }

    .enter-btn {
        background: linear-gradient(90deg, #2fa14b 0%, #3eb16a 100%);
        color: #fff;
        border: none;
        border-radius: 20px;
        padding: 8px 24px;
        font-size: 13px;
        font-weight: bold;
        cursor: pointer;
        width: 100%;
    }

    /* 移动端底部导航 */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        height: 60px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #999;
        text-decoration: none;
        font-size: 11px;
        flex: 1;
        padding: 8px 0;
    }

    .nav-item.active {
        color: #2fa14b;
    }

    .nav-item i {
        font-size: 20px;
    }

    /* 隐藏PC端元素 */
    .pc-header,
    .pc-carousel,
    .pc-main,
    .pc-footer {
        display: none;
    }
}