/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    line-height: 1.6;
    background-image: url('https://global-losure-1302170004.cos.na-siliconvalley.myqcloud.com/last-will/backgrounds/startScreenBackground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    color: #f8f9fa;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #4cc9f0;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(76, 201, 240, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(76, 201, 240, 0.1) 0%, transparent 20%);
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.剧本选择 h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #f8f9fa;
    position: relative;
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.3);
}

.剧本选择 h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #4cc9f0, #3a86ff);
    margin: 0.5rem auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

/* 剧本列表样式 */
.剧本列表 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.剧本卡片 {
    background: linear-gradient(145deg, rgba(30, 30, 46, 0.9), rgba(37, 37, 54, 0.9));
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    border: 1px solid rgba(76, 201, 240, 0.2);
    position: relative;
}

.剧本卡片::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #4cc9f0, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.剧本卡片:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
    border-color: rgba(76, 201, 240, 0.4);
}

.剧本卡片:hover::before {
    transform: scaleX(1);
}

.剧本图片 {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.3s ease;
}

.剧本卡片:hover .剧本图片 {
    filter: brightness(0.9) contrast(1.2);
    transform: scale(1.03);
}

.剧本信息 {
    padding: 1.5rem;
}

.剧本标题 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    color: #f8f9fa;
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.3);
}

.剧本描述 {
    color: #a0a0a0;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.选择按钮 {
    display: inline-block;
    background: linear-gradient(135deg, #4cc9f0 0%, #3a86ff 100%);
    color: #000;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.3);
    letter-spacing: 1px;
}

.选择按钮:hover {
    background: linear-gradient(135deg, #3a86ff 0%, #4cc9f0 100%);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.5);
}

/* 游戏页面样式 */
.游戏区域 h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #f8f9fa;
    position: relative;
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.3);
}

.游戏角色信息, .游戏对话 {
    background: rgba(30, 30, 46, 0.7);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(76, 201, 240, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.游戏角色信息 h3, .游戏对话 h3 {
    color: #4cc9f0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 5px rgba(76, 201, 240, 0.3);
}

.对话历史 {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(20, 20, 35, 0.7);
    border-radius: 5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(76, 201, 240, 0.1);
}

.对话消息 {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    border-radius: 5px;
    background: rgba(40, 40, 60, 0.5);
}

.输入区域 {
    display: flex;
    gap: 10px;
}

#玩家输入 {
    flex: 1;
    padding: 0.8rem;
    border-radius: 25px;
    border: 1px solid rgba(76, 201, 240, 0.3);
    background: rgba(20, 20, 35, 0.7);
    color: #e0e0e0;
    outline: none;
}

#玩家输入:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
}

#发送按钮 {
    background: linear-gradient(135deg, #4cc9f0 0%, #3a86ff 100%);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#发送按钮:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(20, 20, 35, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4cc9f0, #3a86ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3a86ff, #4cc9f0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        margin: 1rem auto;
    }
    
    .剧本选择 h2 {
        font-size: 1.6rem;
    }
    
    .剧本列表 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}