﻿/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    text-align: center;
    background-color: #023466;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#form1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 背景星空样式 */
#starBg {
    display: block;
    position: fixed;
    z-index: -6;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #023466;
}

/* 布局容器 */
.container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    color: #FFFF00;
    font-size: small;
    flex: 1;
}

/* 标题样式 */
.title-block {
    display: inline-block;
    position: relative;
    margin: 20px 0;
    padding: 0 25px;
    height: 45px;
    line-height: 45px;
    background: #F3715D;
    color: white;
    border-radius: 5px 5px 5px 0;
    letter-spacing: 2px;
    font-size: medium;
    text-align: center;
}

    .title-block .triangle {
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 0;
        height: 0;
        border: 5px solid transparent;
        border-top: 5px solid #DD6755;
        border-right: 5px solid #DD6755;
    }

/* 搜索面板 */
.search-panel {
    display: inline-block;
    margin: 10px auto;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

/* 主体内容 */
.main-content {
    margin: 15px;
    line-height: 160%;
}

/* 图片样式 */
.header-image {
    width: 100%;
}

/* 表单元素样式 */
.dropdownlist-style {
    margin: 0 5px;
    padding: 5px 10px;
    background: #F3715D;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
}

.textbox-style {
    width: 58px;
    height: 26px;
    margin: 0 5px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
}

.button-style {
    margin: 0 5px;
    padding: 6px 15px;
    background: #F3715D;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

    .button-style:hover {
        background: rgba(72, 126, 230, 0.9);
    }

.label-style {
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 网格视图样式 */
.gridview-container {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100% !important;
    margin: 0 auto;
    background-color: transparent;
}

    .gridview-container:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

    /* 表头样式 */
    .gridview-container th {
        padding: 8px 5px;
        text-align: center;
        background-color: #507CD1;
        color: white;
        font-weight: 600;
        font-size: 14px;
        white-space: nowrap;
        border-bottom: none;
    }

    /* 表格内容样式 */
    .gridview-container td {
        padding: 8px 5px;
        text-align: center;
        border-bottom: 1px solid #e0e6ed;
        transition: background-color 0.2s ease;
        font-size: 14px;
        white-space: nowrap;
    }

    /* 行悬停效果 - 提高优先级确保生效 */
    .gridview-container tr:hover td {
        background-color: #F3715D !important;
        cursor: pointer !important;
    }

    /* 交替行颜色 */
    .gridview-container tr:nth-child(even) td {
        background-color: #f7f9fc;
    }

    .gridview-container tr:nth-child(odd) td {
        background-color: #EFF3FB;
    }

/* 特定列样式 */
.gridview-name-header {
    width: 25%;
    height: 50px;
}

.gridview-item {
    height: 50px;
}

.rank-cell {
    font-weight: bold;
}

.yangshi {
    display: none;
}

/* 奖杯图标样式 */
.trophy {
    margin-right: 4px;
    font-size: 14px;
}

.gold {
    color: #FFD700;
}

.silver {
    color: #C0C0C0;
}

.bronze {
    color: #CD7F32;
}

/* Footer样式 - 已修改确保在同一行 */
.footer {
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 30px 0;
    background: transparent;
}

.hlong {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap; /* 修改：禁止换行 */
    color: white;
    font-size: 14px;
    white-space: nowrap; /* 新增：禁止文本换行 */
    overflow-x: auto; /* 新增：允许水平滚动 */
    padding: 0 10px; /* 新增：添加内边距 */
}

    .hlong * {
        display: inline-block;
        vertical-align: middle;
        flex-shrink: 0; /* 新增：防止元素收缩 */
    }

    .hlong img {
        vertical-align: middle;
        max-height: 24px;
    }

    .hlong a {
        color: white;
        text-decoration: underline;
    }

        .hlong a:hover {
            color: #ffd700;
        }

.footer-divider {
    color: rgba(255,255,255,0.5);
    margin: 0 4px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .gridview-container th,
    .gridview-container td {
        padding: 6px 3px;
        font-size: 12px;
    }

    .trophy {
        font-size: 12px;
        margin-right: 2px;
    }

    .hlong {
        flex-wrap: nowrap; /* 修改：小屏幕也禁止换行 */
        justify-content: center; 
        gap: 8px;
        font-size: 12px;
        padding: 0 5px;
    }

    .search-panel {
        padding: 10px 5px;
    }

    .dropdownlist-style,
    .textbox-style,
    .button-style {
        margin: 2px;
        padding: 4px 8px;
    }

    .title-block {
        padding: 0 15px;
        height: 40px;
        line-height: 40px;
        font-size: small;
    }
}
