/* iPhone 15 外观样式 */
.iphone-frame {
    width: 320px;
    height: 680px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 45px;
    padding: 8px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.iphone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 14px;
    z-index: 10;
}

.iphone-screen {
    width: 100%;
    height: calc(100% - 16px);
    background: #fff;
    border-radius: 37px;
    overflow: hidden;
    position: relative;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background: #000;
    border-radius: 3px;
    z-index: 10;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 动画效果 */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wave-animation {
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* 渐变背景 */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 自动滚动效果 */
.auto-scroll {
    scroll-behavior: smooth;
}

.auto-scroll::-webkit-scrollbar {
    width: 2px;
}

.auto-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.auto-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 1px;
}

/* 新消息淡入动画 */
.message-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 停止按钮脉冲效果 */
.stop-button-pulse {
    animation: stopPulse 2s infinite;
}

@keyframes stopPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}
