/* 角色选择界面样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif SC', serif;
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #2D3B4F 0%, #1A1E28 100%);
}

/* iOS状态栏 */
.ios-statusbar {
    height: 44px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.time {
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 8px;
}

/* 主容器 */
.role-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 44px); /* 最小高度，允许内容增长 */
    position: relative;
    padding: 20px;
    padding-bottom: 80px; /* 为底部返回按钮留出空间 */
    overflow-y: auto; /* 启用垂直滚动 */
    scrollbar-width: none; /* Firefox */
}

/* 隐藏滚动条但保留滚动功能 */
.role-container::-webkit-scrollbar {
    width: 0;
    background: transparent; /* Chrome/Safari/Webkit */
}

/* 标题区域 */
.title-area {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.title-text {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 160, 0, 0.4);
    margin: 0;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 角色网格布局 */
.roles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* 角色卡片 */
.role-card {
    width: 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 角色图片容器 */
.role-image-container {
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.role-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
}

/* 角色名称 */
.role-name {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* 角色描述 */
.role-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-bottom: 16px;
}

/* 角色目标 */
.role-goal {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.role-goal h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.role-goal p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* 选择按钮 */
.select-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.select-btn i {
    font-size: 16px;
}

.select-btn:active {
    transform: translateY(2px);
}

/* 法官卡片特有样式 */
.judge-card {
    background: linear-gradient(135deg, rgba(77, 59, 89, 0.6) 0%, rgba(47, 36, 56, 0.6) 100%);
    border-color: rgba(159, 126, 185, 0.3);
}

.judge-btn {
    background: rgba(159, 126, 185, 0.8);
    color: white;
    box-shadow: 0 4px 12px rgba(159, 126, 185, 0.3);
}

.judge-btn:hover {
    background: rgba(159, 126, 185, 1);
}

/* 原告卡片特有样式 */
.plaintiff-card {
    background: linear-gradient(135deg, rgba(59, 77, 89, 0.6) 0%, rgba(36, 47, 56, 0.6) 100%);
    border-color: rgba(126, 159, 185, 0.3);
}

.plaintiff-btn {
    background: rgba(126, 159, 185, 0.8);
    color: white;
    box-shadow: 0 4px 12px rgba(126, 159, 185, 0.3);
}

.plaintiff-btn:hover {
    background: rgba(126, 159, 185, 1);
}

/* 被告卡片特有样式 */
.defendant-card {
    background: linear-gradient(135deg, rgba(77, 89, 59, 0.6) 0%, rgba(47, 56, 36, 0.6) 100%);
    border-color: rgba(159, 185, 126, 0.3);
}

.defendant-btn {
    background: rgba(159, 185, 126, 0.8);
    color: white;
    box-shadow: 0 4px 12px rgba(159, 185, 126, 0.3);
}

.defendant-btn:hover {
    background: rgba(159, 185, 126, 1);
}

/* 底部返回按钮 */
.back-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn:active {
    transform: translateY(2px);
}

/* 响应式布局 */
@media (max-width: 900px) {
    .roles-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .role-card {
        width: 100%;
        max-width: 320px;
    }
}

/* 添加纹理 */
.role-container::before {
    content: '';
    position: fixed;
    top: 44px;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1516541196182-6bdb0516ed27?q=80&w=2034&auto=format&fit=crop');
    background-size: cover;
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: -1;
} 