/* 
* 奇妙单词王国 - 页面预览样式
* 用于index.html页面展示所有应用界面
*/

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 防止横向滚动 */
    width: 100%;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f0f2f5;
    padding: 1rem;
}

.page-header {
    background: linear-gradient(135deg, #FF6B6B, #6C5CE7);
    color: white;
    border-radius: 0.8rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3.5rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
    justify-items: center;
}

.device-container {
    background-color: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    position: relative;
    /* 自适应尺寸 - 调整高度确保完整显示 */
    width: 100%;
    max-width: 280px;
    height: 600px; /* 增加高度以显示完整内容 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.device-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.device-notch {
    display: none; /* 移除刘海 */
}

.device-frame {
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(0.98); /* 稍微缩小以确保内容完全可见 */
    transform-origin: top center;
}

.page-label {
    position: absolute;
    bottom: -35px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
    white-space: nowrap;
}

.color-badge {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.badge-primary {
    background-color: #FF6B6B;
}

.badge-secondary {
    background-color: #6C5CE7;
}

.badge-tertiary {
    background-color: #00B894;
}

.badge-quaternary {
    background-color: #FD79A8;
}

.badge-yellow {
    background-color: #FFC107;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    .device-container {
        height: 580px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    
    .page-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 3.5rem 1.5rem;
    }
    
    .device-container {
        width: 100%;
        max-width: 230px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .preview-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }
    
    .device-container {
        max-width: 280px;
        height: 580px;
    }
    
    .page-label {
        font-size: 1rem;
    }
} 