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

/* 手机框架样式 */
.phone-frame {
    width: 375px;
    height: 812px;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    border: 12px solid #1a1a1a;
}

.phone-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.prototype-container {
    margin-bottom: 40px;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .phone-frame {
        width: 320px;
        height: 690px;
        border-radius: 30px;
        border-width: 8px;
    }
}

/* 通用组件样式 */
.ios-status-bar {
    height: 44px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.ios-tab-bar {
    height: 83px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
    font-size: 10px;
    padding: 6px 0;
}

.tab-item.active {
    color: #ff9500;
}

.tab-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

/* 儿童友好的颜色和样式 */
.kid-primary {
    color: #FF9500;
}

.kid-secondary {
    color: #5AC8FA;
}

.kid-accent {
    color: #FF2D55;
}

.kid-green {
    color: #4CD964;
}

.kid-purple {
    color: #AF52DE;
}

.kid-bg-primary {
    background-color: #FF9500;
}

.kid-bg-secondary {
    background-color: #5AC8FA;
}

.kid-bg-accent {
    background-color: #FF2D55;
}

.kid-bg-green {
    background-color: #4CD964;
}

.kid-bg-purple {
    background-color: #AF52DE;
}

/* 圆角按钮 */
.kid-btn {
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.kid-btn:active {
    transform: scale(0.98);
}

/* 卡片样式 */
.kid-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 专辑封面样式 */
.album-cover {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

/* 播放控制按钮 */
.play-control {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF9500;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(255, 149, 0, 0.3);
}

/* 黑白像素风格 */
.pixel-mode {
    filter: grayscale(100%);
    image-rendering: pixelated;
    font-family: 'Press Start 2P', cursive;
}

/* 进度条样式 */
.progress-bar {
    height: 6px;
    background-color: #E5E5EA;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: #FF9500;
    border-radius: 3px;
    position: absolute;
    top: 0;
    left: 0;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E5E5EA;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4CD964;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}