* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.phone-container {
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    min-height: 600px;
    padding: 40px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 头像样式 */
.avatar-container {
    margin-bottom: 30px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.avatar-text {
    color: white;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 呼叫中动画 */
.calling-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    }
}

/* 通话中动画 */
.active-call {
    position: relative;
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.active-call::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 3px solid #667eea;
    opacity: 0.3;
    animation: wave 2s infinite;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* 文字样式 */
.contact-name {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.call-status {
    font-size: 18px;
    color: #667eea;
    margin-top: 20px;
    animation: blink 1.5s ease-in-out infinite;
}

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

.call-status-active {
    font-size: 16px;
    color: #27ae60;
    margin-top: 10px;
    font-weight: 500;
}

.call-duration {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 20px;
    font-family: 'Courier New', monospace;
}

/* 呼叫按钮 */
.call-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 60px;
    padding: 20px 50px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.call-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.call-button:active {
    transform: translateY(0);
}

.phone-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

/* 挂断按钮 */
.hangup-button {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    margin-top: 40px;
}

.hangup-button:hover {
    background: #c0392b;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.5);
}

.hangup-button .phone-icon {
    width: 30px;
    height: 30px;
    transform: rotate(135deg);
}

/* 通话控制 */
.call-controls {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.control-button {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.control-button:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.control-button.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.control-button.active .control-icon {
    stroke: white;
}

.control-icon {
    width: 24px;
    height: 24px;
    stroke: #2c3e50;
    stroke-width: 2;
}

.control-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.control-button.active .control-label {
    color: white;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .phone-container {
        border-radius: 20px;
        padding: 30px 20px;
        min-height: 500px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .avatar-text {
        font-size: 30px;
    }

    .contact-name {
        font-size: 28px;
    }

    .call-button {
        padding: 18px 40px;
        font-size: 18px;
    }
}
