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

/* 状态切换动画 */
.status-transition {
    transition: all 0.3s ease-in-out;
}

/* 内容淡入淡出动画 */
.content-fade {
    animation: contentFade 0.5s ease-in-out;
}

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

/* 状态指示器悬停效果 */
.status-indicator-hover {
    transition: all 0.2s ease-in-out;
}

.status-indicator-hover:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 4px 8px;
}

/* 功能卡片悬停效果 */
.feature-card {
    transition: all 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 开始按钮悬停效果 */
.start-button {
    transition: all 0.3s ease-in-out;
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.start-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 状态点动画 */
.status-dot-offline {
    animation: statusDotOffline 2s infinite;
}

@keyframes statusDotOffline {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
}
