/* common.css - 所有页面通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
}

body {
    background-color: #f7f9fc;
    min-height: 100vh;
}

a {
    color: #000; /* 黑色 */
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }
header {
    background: #0073c6;
    text-align: center;
}

    header img {
        width: 100%;
    }

footer {
    background: url("../images/footer.jpg") no-repeat center center /100% 100%;
    color: #fff;
    padding: 15px 10px 35px;
    font-size: 13px;
    line-height: 24px;
}
.t2 {
    text-indent: 2em;
}
/* 刷新按钮 */
.refresh-btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    font-size: 20px;
    color: #34495e;
    margin-bottom: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.2s;
    font-weight: 500;
}

    .refresh-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
/* 顶部蓝色标题栏 */
.banner img {
    width: 100%;
}
.fixed-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

/* 导航路径栏 */
.nav-path {
    background-color: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f2f5;
}

.nav-path .back-btn {
    color: #1a73e8;
    font-size: 24px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.nav-path .back-btn:hover {
    opacity: 0.8;
}

.nav-path .title {
    color: #1a73e8;
    font-size: 20px;
    font-weight: 500;
}

/* 右上角菜单按钮 */
.menu-btn {
    position: static;
    width: 34px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: 0.2s;
}

.menu-btn:hover {
    background: #f0f5ff;
}

.menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #1a73e8;
    border-radius: 2px;
    transition: 0.3s;
}

/* 主内容容器 */
.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* 标题样式 */
.page-title {
    text-align: center;
    font-size: 28px;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 600;
}

/* 通用按钮样式 */
.btn {
    width: 100%;
    height: 58px;
    border: none;
    border-radius: 14px;
    font-size: 20px;
    margin-bottom: 24px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: 0.2s;
    font-weight: 500;
    background-color: rgba(0,0,0,0.06);
    
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(90deg, #1a73e8, #0052b8);
    color: #fff;
}

.btn-orange {
    background: linear-gradient(90deg, #ff9f43, #ee5a24);
    color: #fff;
}

.btn-blue {
    background: linear-gradient(90deg, #4a69bd, #1e3799);
    color: #fff;
}

/* 选项卡样式 */
.tab-wrap {
    display: flex;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 18px;
    font-size: 20px;
    background-color: #fff;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.tab-item.active {
    background: linear-gradient(90deg, #1a73e8, #0052b8);
    color: #fff;
}
/* 外层容器 */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex:1;
}

    /* 让 span 变成完整可点击块 */
    .radio-group span {
        position: relative;
        display: inline-block;
        padding: 8px 18px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        color: #000;
        background: #fff;
        user-select: none;
    }

        /* 把 input 铺满整个 span，实现整区点击 */
        .radio-group span input[type="radio"] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0; /* 看不见，但能点 */
            cursor: pointer;
            z-index: 10; /* 保证在最上层 */
        }

        /* 选中后整段 span 变蓝底白字 */
        .radio-group span:has(input:checked) {
            background-color: #1a73e8 !important;
            color: #ffffff !important;
        }


/* 兼容你当前结构最强写法 */
.radio-group span:has([type="radio"]:checked) {
    background-color: #1a73e8 !important;
    color: #fff !important;
}
/* 卡片列表样式 */
.card-list {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f2f4f7;
    transition: 0.2s;
}

.card-item:hover {
    background: #fafbfc;
}

.card-item:last-child {
    border-bottom: none;
}

.card-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-text {
    font-size: 18px;
    color: #444;
}

.card-text.highlight {
    color: #1a73e8;
    font-weight: 500;
}

/* 信息卡片样式 */
.info-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 18px;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #2c3e50;
    font-weight: 600;
}

/* 队员列表样式 */
.member-list {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.member-header {
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid #f2f4f7;
}

.member-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f2f4f7;
}

.member-avatar {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 16px;
    background: #e6f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 30px;
}

.member-name {
    font-size: 20px;
    font-weight: 600;
}

/* 双列按钮组 */
.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.button-groupCreative {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

    .button-group .btn {
        margin: 0;
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center;
    }
.button-groupCreative .btn {
    margin: 0;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;
}

/* 输入框样式 */
.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}


.input-group .input-txt {
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 18px;
}

.input-group .btn {
    width: auto;
    padding: 0 24px;
    margin: 0;
}

/* 比赛介绍文本 */
.intro-text {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    line-height: 1.8;
    font-size: 18px;
    color: #333;
}

/* 比赛场地图片占位 */
.arena-image {
    height: 100%;
    border-radius: 16px;
    margin-bottom: 20px;
    background: #e6f0ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 20px;
}


/* ========== 遮罩层 & 比赛项目选择弹窗 ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* 1. 调整弹窗位置，避免覆盖顶部功能按钮区 */
.modal-box {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    max-height: calc(100vh - 80px);
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-header {
    text-align: center;
    font-size: 22px;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
}

/* 比赛项目网格 */
.event-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-height: 60vh;
    overflow-y: auto;
    padding-bottom: 10px;
}

.event-item {
    background: linear-gradient(135deg, #f0f5ff, #e6f0ff);
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 2px solid transparent;
}

    .event-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(26,115,232,0.15);
        border-color: #1a73e8;
    }

.event-icon {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a73e8;
    font-size: 24px;
}

.event-name {
    font-size: 18px;
    color: #222;
    font-weight: 600;
}

/* 弹窗打开状态 */
.modal-overlay.show,
.modal-box.show {
    display: block;
    opacity: 1;
}
/* 3. 弹窗打开时，body滚动限制优化（可选） */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0); /* 避免滚动条消失导致布局偏移 */
}
/* 响应式适配 */
@media (max-width: 768px) {
    .header-bar {
        font-size: 20px;
        padding: 16px 14px;
    }

    .nav-path .title {
        font-size: 14px;
    }
    .tab-item {
        font-size: 14px;
        padding: 16px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-text {
        font-size: 14px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    .modal-box {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 500px;
        background: #ffffff;
        border-radius: 16px;
        padding: 24px;
        display: none;
        opacity: 0;
        transition: all 0.3s ease;
    }
    .input-group {
        display: flex;
        gap: 8px; /* 缩小输入框和按钮之间的间距（原12px） */
        margin-bottom: 24px;
        /* 可选：限制容器最大宽度，避免占满整行 */
        max-width: 600px;
    }
        .input-group .input-txt {
            padding: 8px 12px; /* 缩小内边距，减少高度 */
            font-size: 14px; /* 缩小字体 */
            height: 36px; /* 固定高度，或去掉height用padding控制 */
            border-radius: 4px;
        }

        .input-group .btn {
            padding: 8px 16px; /* 缩小按钮内边距 */
            font-size: 14px; /* 缩小按钮文字 */
            height: 36px; /* 和输入框高度保持一致 */
            border-radius: 4px;
            white-space: nowrap; /* 防止按钮文字换行 */
        }
    .tab-item {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }

    .tab-wrap {
        gap: 4px !important;
        padding: 3px !important;
    }

    .modal-header {
        text-align: center;
        font-size: 16px;
        color: #333;
        font-weight: 600;
        margin-bottom: 20px;
    }
    .event-name {
        font-size: 14px;
        color: #222;
        font-weight: 600;
    }
    /* 标题样式 */
    .page-title {
        text-align: center;
        font-size: 18px;
        color: #2c3e50;
        margin: 20px 0;
        font-weight: 600;
        margin-top:0;
    }
    /* 通用按钮样式 */
    .btn {
        width: 100%;
        height: 35px;
        border: none;
        border-radius: 14px;
        font-size: 16px;
        margin-bottom: 24px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: 0.2s;
        font-weight: 500;
        background-color: rgba(0,0,0,0.06);
    }
    .card-title {
        font-size: 14px;
        color: #2c3e50;
        margin-bottom: 10px;
    }
    .intro-text {
        font-size: 14px;
    }
    .refresh-btn {
        font-size: 16px;
        margin-bottom: 14px;
        height:45px;
    }
    .input-group {
        margin-bottom: 14px;
    }
    .txt {
        font-size:14px;
    }
    .info-card {
        padding: 14px;
        margin-bottom: 14px;
    }
    .info-row {
        font-size: 14px;
    }
}
/*改样式*/
/* 按钮条：扁平、无圆角、无激活、等分一行 */
.btn-bar {
    display: flex;
    width: 100%;
    background: #f5f7fa;
    border: 1px solid #e5e6eb;
    margin-top: 10px;
}

.btn-bar-item {
    flex: 1;
    text-align: center;
    padding: 7px 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-right: 1px solid #e5e6eb;
}

    .btn-bar-item:last-child {
        border-right: none;
    }

    .btn-bar-item:hover {
        background-color: #e6eaf0;
        color: #000;
    }
