h1, h2, h3, h4, h5, h6 {
    font-weight: 500 !important;
}

.fa-solid, .fas {
    font-weight: 900 !important;
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Alibaba PuHuiTi', 'SimHei', sans-serif;
    margin: 0;
    padding: 0;
    /* 改为akasha风格的深色背景 - 深蓝黑色调 */
    background: linear-gradient(135deg, #0a101e 0%, #0f172a 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    min-width: 300px; /* 确保小屏幕上也有良好显示 */
}

/* 标题区域样式 - 调整为与页面同色系 */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    /* 改为与页面同色系的深蓝黑色渐变 */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fef3c7;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/kaiqiangtitle.png');
    background-size: auto 100px;
    background-repeat: repeat;
    background-position: top left;
    opacity: 0.15;
}

.title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
    margin: 0;
    position: relative;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Alibaba PuHuiTi', 'SimHei', sans-serif;
    letter-spacing: 2px;
    -webkit-text-stroke: 0.5px rgba(234, 179, 8, 0.3);
}

/* 版本信息区域样式 */
.version-info {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.3rem;
    color: #eab308;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 版本信息区域超链接样式 */
.version-info a {
    color: #fef3c7;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding: 2px 5px;
    border-radius: 4px;
}

.version-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #eab308 0%, #f59e0b 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.version-info a:hover {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.version-info a:hover::after {
    transform: scaleX(1);
}

/* 筛选控件样式 - 改为深色半透明 */
.filter-controls {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.filter-group {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #eab308;
}

.filter-group select {
    padding: 9px 15px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 6px;
    background-color: rgba(15, 23, 42, 0.6);
    font-size: 0.9rem;
    color: #e0e0e0;
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    /* 添加自定义箭头 */
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23eab308" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    /* 添加统一宽度设置 */
    min-width: 150px;
    width: 100%;
    max-width: 200px;
}

/* 下拉菜单选项样式 */
.filter-group select option {
    background-color: #0f172a;
    color: #e0e0e0;
    padding: 8px 10px;
}

/* 选中的选项样式 */
.filter-group select option:checked {
    background-color: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

/* 鼠标悬停选项样式 */
.filter-group select option:hover {
    background-color: rgba(234, 179, 8, 0.1);
}
.filter-group select:hover {
    border-color: #eab308;
}

.filter-group select:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
}

#reset-filters {
    padding: 9px 18px;
    background: linear-gradient(135deg, #eab308 0%, #f59e0b 100%);
    color: #0f172a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-end;
    box-shadow: 0 3px 10px rgba(234, 179, 8, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

#reset-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 179, 8, 0.4);
}

/* 角色列表区域样式 - 改为深色半透明 */
.character-list {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid rgba(234, 179, 8, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 角色区域容器样式 */
.character-section {
    /* margin-bottom: 30px; 移除边距，因为character-list有边距 */
}

/* 原来的character-list h2样式已移除，由character-list-header h2替代 */

/* 角色卡片网格 - 宽度从180px改为150px */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* 角色列表收起状态样式 */
.character-list.collapsed {
    opacity: 0;
    transform: translateY(-30px);
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.character-card {
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.character-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 48%, rgba(234, 179, 8, 0.1) 50%, transparent 52%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: rgba(234, 179, 8, 0.5);
}

.character-card:hover::before {
    opacity: 1;
    animation: shine 1.5s;
}

/* 角色头像容器样式 */
.character-image-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    border: 3px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.2);
}

.character-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
    border-color: rgba(234, 179, 8, 0.6);
}

.character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.character-card:hover .character-image {
    transform: scale(1.1);
}

/* 角色名称样式 */
.character-name {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #eab308;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 角色国籍样式 */
.character-nation {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #94a3b8;
}

/* 添加日期时间样式 */
.datetime {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 星级评分样式 */
.star-rating {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.star {
    color: transparent; /* 未填充星星为全透明 */
    transition: color 0.3s ease;
}

.star.filled {
    color: #eab308; /* 填充星星为金色 */
    text-shadow: 0 0 8px rgba(234, 179, 8, 0.6);
}
/* 元素类型标签样式 */
.element-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    margin-top: 5px;
}

/* hat覆盖图样式 */
.hat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 33%;
    height: 33%;
    object-fit: contain;
    z-index: 10;
    opacity: 0.9;
}

/* 版权信息样式 */
.copyright {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(234, 179, 8, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.copyright p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 角色列表标题区域样式 */
.character-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
    padding: 0 5px;
}

.character-list-header h2 {
    margin: 0;
    color: #eab308;
    font-size: 1.8rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    padding-bottom: 10px;
}

.character-list-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #eab308 0%, #f59e0b 100%);
    border-radius: 3px;
}

.character-toggle {
    background: none;
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
}

.character-toggle:hover {
    color: #f59e0b;
    background-color: rgba(234, 179, 8, 0.1);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
    border-color: rgba(234, 179, 8, 0.5);
    transform: translateY(-2px);
}

.character-toggle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
    .character-list-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .character-list-header h2 {
        text-align: center;
        font-size: 1.5rem;
    }
    
    .character-toggle {
        align-self: center;
        width: fit-content;
        min-width: 120px;
    }
}

/* 动画效果 */
@keyframes shine {
    0% { opacity: 0; transform: rotate(30deg); }
    100% { opacity: 0; transform: rotate(60deg); }
}

/* 随机池规则说明样式 */
.rule-container {
    margin-top: 15px;
}

.rule-toggle {
    background: none;
    border: none;
    color: #eab308;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    border-radius: 6px;
}

.rule-toggle:hover {
    color: #f59e0b;
    background-color: rgba(234, 179, 8, 0.1);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.rule-toggle i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.rule-content {
    margin-top: 10px;
}

.rule-textbox {
    width: 75%;
    padding: 15px;
    background-color: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 8px;
    margin: 10px auto 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rule-textbox p {
    font-size: 14px;
    text-align: left;
    margin: 8px 0;
    line-height: 1.6;
    color: #e0e0e0;
}

.rule-textbox p:first-child {
    margin-top: 0;
}

.rule-textbox p:last-child {
    margin-bottom: 0;
}

/* 历届开枪杯样式 */
.tournament-history {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(234, 179, 8, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tournament-title {
    color: #fef3c7;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Alibaba PuHuiTi', 'SimHei', sans-serif;
}

.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tournament-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border-left: 4px solid #eab308;
    transition: all 0.3s ease;
    gap: 10px;
}

.tournament-item:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
}

.tournament-date {
    color: #eab308;
    font-weight: bold;
    min-width: 80px;
}

.tournament-name {
    color: #f1f5f9;
    flex: 1;
    margin: 0 15px;
}

.tournament-project {
    color: #94a3b8;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.tournament-info {
    color: #94a3b8;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.tournament-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.1);
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.tournament-link:hover {
    background: rgba(234, 179, 8, 0.2);
    color: #fef3c7;
    text-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

.tournament-champion {
    color: #fef3c7;
    font-weight: bold;
    text-align: right;
    flex: 0 0 auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tournament-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tournament-date,
    .tournament-name,
    .tournament-project,
    .tournament-info,
    .tournament-link,
    .tournament-champion {
        width: 100%;
        text-align: left;
    }
}

/* BP入口区域样式 */
.bp-section {
    margin: 20px 0;
    padding: 20px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(234, 179, 8, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bp-title {
    text-align: center;
    color: #fef3c7;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.3);
    letter-spacing: 2px;
}

.bp-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.bp-card {
    background: rgba(10, 16, 30, 0.8);
    border-radius: 12px;
    padding: 15px;
    min-width: 260px;
    max-width: 320px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.bp-card-title {
    text-align: center;
    color: #fef3c7;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
}

.bp-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 8px;
    border-left: 4px solid #eab308;
    color: #f1f5f9;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.bp-btn:hover,
.bp-btn:active,
.bp-btn:focus {
    background: rgba(30, 41, 59, 0.7);
    color: #fef3c7;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(234, 179, 8, 0.2);
    text-decoration: none !important;
}

/* BP入口响应式调整 */
@media (max-width: 600px) {
    .bp-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .bp-card {
        width: 100%;
        max-width: 100%;
    }
}

.hat-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 33%;
    height: 33%;
    object-fit: contain;
    z-index: 10;
    opacity: 0.9;
}
/* ELO积分系统说明弹窗样式 */
.elo-info-link {
    color: #eab308;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elo-info-link:hover {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
    text-decoration: underline;
}

.elo-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.elo-modal-content {
    background-color: #0f172a;
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.elo-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.elo-modal-close:hover {
    color: #fef3c7;
}

.elo-modal-content h3 {
    color: #fef3c7;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(234, 179, 8, 0.2);
    padding-bottom: 15px;
    font-weight: 500;
}

.elo-modal-content p {
    font-size: 14px;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 12px 0;
    text-align: left;
    font-weight: 400;
}

.elo-expandable {
    margin: 15px 0;
}

.elo-expand-btn {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #eab308;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.elo-expand-btn:hover {
    background: rgba(234, 179, 8, 0.2);
    color: #f59e0b;
}

.elo-expand-btn::after {
    content: '+';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.elo-expand-btn.expanded::after {
    transform: rotate(45deg);
}

.elo-expand-content {
    display: none;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    margin-top: 8px;
}

.elo-expand-content p {
    margin: 8px 0;
    padding-left: 10px;
    border-left: 2px solid rgba(234, 179, 8, 0.3);
    font-weight: 400;
}
