/* 设置应用样式 */
#settings-app .app-content {
    background: #000;
    padding: 0;
}

.settings-section {
    margin-bottom: 32px;
    padding: 0 16px;
}

.settings-section:first-child {
    margin-top: 8px;
}

.settings-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.settings-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 14px;
    color: #007AFF;
}

.settings-info {
    flex: 1;
}

.settings-label {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 2px;
}

.settings-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.settings-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* 相机应用样式 */
#camera-app .app-content {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.camera-viewfinder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    position: relative;
    overflow: hidden;
}

.camera-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.camera-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto;
}

.camera-mode {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.capture-button {
    width: 64px;
    height: 64px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.capture-button:hover {
    transform: scale(1.1);
}

.capture-button:active {
    transform: scale(0.9);
}

.capture-outer {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.capture-inner {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.capture-button:active .capture-outer {
    border-color: rgba(255, 255, 255, 1);
}

.capture-button:active .capture-inner {
    background: rgba(255, 255, 255, 1);
    transform: scale(0.8);
}

.camera-switch {
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.camera-switch:hover {
    transform: rotate(180deg);
}

/* 相册应用样式 */
#gallery-app .app-content {
    background: #000;
    padding: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.gallery-item {
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(0.98);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 24px;
}

/* 信息应用样式 */
#messages-app .app-content {
    background: #000;
    padding: 0;
}

.messages-list {
    padding: 8px 0;
}

.message-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.message-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.message-avatar {
    width: 48px;
    height: 48px;
    margin-right: 12px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.message-preview {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 8px;
    white-space: nowrap;
}

/* 电话应用样式 */
#phone-app .app-content {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.phone-keypad {
    max-width: 300px;
    width: 100%;
}

.number-display {
    height: 60px;
    font-size: 32px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 32px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.keypad-key {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.keypad-key:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.keypad-key:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

.key-number {
    font-size: 24px;
    font-weight: 400;
    color: white;
    line-height: 1;
}

.key-letters {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    letter-spacing: 1px;
}

.call-button {
    width: 64px;
    height: 64px;
    background: #34C759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 24px;
    color: white;
}

.call-button:hover {
    background: #30D158;
    transform: scale(1.1);
}

.call-button:active {
    transform: scale(0.9);
}

/* 浏览器应用样式 */
#browser-app .app-content {
    background: #000;
    padding: 0;
}

.browser-address-bar {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.address-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.address-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.address-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.browser-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.browser-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.browser-placeholder p {
    font-size: 16px;
}

/* 音乐应用样式 */
#music-app .app-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.music-player {
    max-width: 300px;
    width: 100%;
    text-align: center;
}

.album-art {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.album-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

.music-info {
    margin-bottom: 32px;
}

.song-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.artist-name {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.control-button {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 16px;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.control-button:active {
    transform: scale(0.9);
}

.play-button {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.3);
    font-size: 20px;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 天气应用样式 */
#weather-app .app-content {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.weather-info {
    text-align: center;
    color: white;
}

.weather-location {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

.weather-temp {
    font-size: 72px;
    font-weight: 200;
    margin-bottom: 8px;
    line-height: 1;
}

.weather-desc {
    font-size: 20px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.weather-icon {
    font-size: 48px;
    opacity: 0.8;
}

/* 计算器应用样式 */
.calculator-container {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.calculator-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    font-size: 36px;
    text-align: right;
    margin-bottom: 20px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calc-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-btn.operator {
    background: rgba(255, 149, 0, 0.3);
}

.calc-btn.operator:hover {
    background: rgba(255, 149, 0, 0.5);
}

.calc-btn.zero {
    grid-column: span 2;
}

/* 日历应用样式 */
.calendar-container {
    padding: 20px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 20px;
}

.current-month {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    max-width: 400px;
    margin: 0 auto;
}

.weekday {
    text-align: center;
    font-weight: 600;
    padding: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-day.today {
    background: rgba(0, 122, 255, 0.5);
    font-weight: 600;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

/* 备忘录应用样式 */
.notes-container {
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.note-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.note-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.note-content {
    font-size: 16px;
    margin-bottom: 8px;
}

.note-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.delete-note {
    background: rgba(255, 59, 48, 0.3);
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.delete-note:hover {
    background: rgba(255, 59, 48, 0.5);
}

/* 时钟应用样式 */
.clock-container {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.clock-time {
    font-size: 48px;
    font-weight: 200;
    margin-bottom: 10px;
    font-family: 'SF Mono', monospace;
}

.clock-date {
    font-size: 18px;
    opacity: 0.8;
}

/* 相机应用样式 */
.camera-container {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.camera-preview {
    flex: 1;
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.camera-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s var(--mi-easing);
}

.camera-btn:hover {
    background: white;
    transform: scale(1.1);
}

.camera-btn:active {
    transform: scale(0.9);
}

/* 录音应用样式 */
.voice-container {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.voice-recorder {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.recording-status {
    text-align: center;
    margin-bottom: 30px;
}

.recording-status i {
    font-size: 48px;
    color: #FF3B30;
    margin-bottom: 10px;
    animation: breathe 2s infinite;
}

.voice-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.record-btn, .stop-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s var(--mi-easing);
}

.record-btn {
    background: #FF3B30;
    color: white;
}

.record-btn:hover {
    background: #FF453A;
    transform: scale(1.1);
}

.stop-btn {
    background: #34C759;
    color: white;
}

.stop-btn:hover {
    background: #30D158;
    transform: scale(1.1);
}

.recordings-list {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.recording-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recording-info {
    flex: 1;
}

.recording-duration {
    font-size: 12px;
    opacity: 0.7;
}

.recording-actions {
    display: flex;
    gap: 10px;
}

.recording-actions button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .album-art {
        width: 160px;
        height: 160px;
    }
    
    .keypad-grid {
        gap: 12px;
    }
    
    .keypad-key {
        font-size: 20px;
    }
    
    .key-letters {
        font-size: 9px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .settings-item {
        padding: 15px;
    }
    
    .app-icon-bg {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .calculator-display {
        font-size: 28px;
        padding: 15px;
    }
    
    .calc-btn {
        font-size: 20px;
        padding: 15px;
    }
    
    .clock-time {
        font-size: 36px;
    }
    
    .camera-btn, .record-btn, .stop-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}