/* 随机案例界面样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Serif SC', serif;
    position: relative;
    min-height: 100vh;
    background: #1A1E28;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2D3B4F 0%, #1A1E28 100%);
    z-index: -2;
}

/* 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;
}

/* 主容器 */
.case-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 */
}

.case-container::-webkit-scrollbar {
    width: 0;
    background: transparent; /* Chrome/Safari/Webkit */
}

/* 添加纹理 */
.case-container::after {
    content: '';
    position: fixed;
    top: 0;
    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;
}

/* 标题区域 */
.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);
}

/* 案例网格布局 */
.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    padding: 0 10px;
}

/* 案例卡片 */
.case-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    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;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 案例标题与标签 */
.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.case-badge {
    background: rgba(255, 160, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.case-difficulty {
    display: flex;
    gap: 3px;
    color: var(--primary-accent);
    font-size: 14px;
}

.case-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

.case-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    margin-bottom: 16px;
}

/* 案例元数据 */
.case-meta {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.case-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-time i {
    color: var(--primary-accent);
}

/* 开始按钮 */
.start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary-accent);
    color: var(--text-light);
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.start-btn:hover {
    background: rgba(255, 180, 20, 0.9);
}

.start-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 刷新按钮 */
.refresh-btn-container {
    display: flex;
    justify-content: center;
    margin: 10px 0 30px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    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;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.refresh-btn:active {
    transform: translateY(2px);
}

/* 底部返回按钮 */
.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 (min-width: 768px) {
    .cases-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
} 