/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义工具类 */
.text-shadow-gold {
    text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.bg-gradient-gold {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.border-glow {
    box-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37;
}

.gold-hover {
    transition: all 0.3s ease;
}

.gold-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 10px #d4af37, 0 0 20px #d4af37;
}

/* 按钮样式 */
.gold-button {
    background-color: #d4af37;
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gold-button:hover {
    animation: glow 2s ease-in-out infinite alternate;
    transform: translateY(-2px);
}

/* 导航链接样式 */
.nav-link {
    color: #fff;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 章节标题样式 */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: #d4af37;
}

/* 角色卡片样式 */
.character-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.5s ease;
}

.character-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.character-card:hover .character-overlay {
    opacity: 1;
}

.character-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* 模态框样式 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #1a1a1a;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 90%;
    width: 500px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #d4af37;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: #2d2d2d;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.25rem;
    color: #fff;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* 统计数字样式 */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4af37;
    text-align: center;
}

.stat-label {
    color: #a0aec0;
    text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37;
    text-align: center;
    margin-top: 0.25rem;
}

/* 添加到现有样式中 */
#loader {
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
}

#loader.active {
    opacity: 1;
    display: flex;
}