/**
 * 短信接码平台 - 样式文件
 */

body { background: #f8f9fa; padding-top: 20px; }
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.card { margin-bottom: 15px; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.code-highlight { font-size: 28px; font-weight: bold; color: #dc3545; background: linear-gradient(135deg, #fff5f5, #ffe3e3); padding: 15px; border-radius: 8px; border: 2px dashed #dc3545; text-align: center; margin: 10px 0; cursor: pointer; transition: all 0.3s; }
.code-highlight:hover { background: linear-gradient(135deg, #ffe3e3, #ffc9c9); transform: scale(1.02); }
.code-highlight-inline { font-weight: bold; color: #dc3545; background-color: #fff5f5; padding: 2px 6px; border-radius: 4px; border: 1px solid #ffcccc; }
.task-card.new-sms { border: 2px solid #28a745; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40,167,69,0.4); } 70% { box-shadow: 0 0 0 10px rgba(40,167,69,0); } 100% { box-shadow: 0 0 0 0 rgba(40,167,69,0); } }
.sms-content { max-height: 200px; overflow-y: auto; background: #f8f9fa; padding: 10px; border-radius: 5px; font-family: monospace; font-size: 14px; margin-top: 10px; }
.expiry-badge { font-size: 12px; }
.api-expiry { color: #6c757d; }
.sms-expiry { color: #198754; }
.result-card { transition: all 0.3s; }
.result-card.new { border-left: 5px solid #28a745; }
.refresh-badge { position: absolute; top: 5px; right: 5px; font-size: 10px; }
.auto-refresh-indicator { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }
.auto-refresh-on { background-color: #28a745; animation: pulse 1s infinite; }
.auto-refresh-off { background-color: #dc3545; }
/* 复制号码按钮样式 */
.copy-phone-btn { 
    color: #28a745; 
    font-weight: bold; 
    background-color: #e8f5e9; 
    padding: 2px 8px; 
    border-radius: 4px; 
    border: 1px solid #81c784;
    font-size: 12px;
    margin-left: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.copy-phone-btn:hover { 
    background-color: #c8e6c9; 
    border-color: #4caf50;
    transform: translateY(-1px);
    text-decoration: none;
}
.copy-phone-btn:active { 
    transform: translateY(0);
}
.copy-phone-btn i { 
    margin-right: 3px; 
    font-size: 10px;
}
.phone-display { font-weight: bold; font-size: 16px; display: inline-block; }
.task-header { display: flex; align-items: center; justify-content: space-between; }
.task-phone-section { display: flex; align-items: center; }
.task-expiry-container { display: flex; align-items: center; margin-top: 3px; }
.expiry-warning { color: #ff6b35; }
.expiry-normal { color: #28a745; }
.expiry-unknown { color: #6c757d; }
.copy-success { animation: copySuccess 0.5s; }
@keyframes copySuccess {
    0% { background-color: #e8f5e9; }
    50% { background-color: #c8e6c9; }
    100% { background-color: #e8f5e9; }
}
.api-expiry-info {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    display: flex;
    align-items: center;
}
.api-expiry-info i {
    margin-right: 3px;
    font-size: 10px;
}
.api-expiry-with-phone {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
.api-expiry-with-phone strong {
    color: #333;
}
/* 自动停止警告样式 */
.auto-stop-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    animation: warningPulse 2s infinite;
}
@keyframes warningPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,193,7,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,193,7,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,193,7,0); }
}
.auto-stop-warning i {
    margin-right: 10px;
    font-size: 20px;
}
.auto-stop-countdown {
    font-weight: bold;
    color: #dc3545;
    margin-left: 5px;
}
.auto-stop-timer {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
    display: flex;
    align-items: center;
}
.auto-stop-timer i {
    margin-right: 5px;
    font-size: 10px;
}
/* 手机端音频提示按钮 */
.sound-prompt-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 9998;
    animation: pulse-ring 2s infinite;
    border: none;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}
.sound-prompt-btn:hover {
    transform: scale(1.1);
}
.sound-prompt-btn:active {
    transform: scale(0.95);
}


/* 新短信视觉提示 */
.sms-visual-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9997;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    animation: slideInRight 0.5s, flash 1s infinite;
    max-width: 300px;
}
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}
.sms-visual-alert i {
    font-size: 24px;
    margin-right: 10px;
}
/* 安卓专用音频提示 */
.android-audio-fix {
    display: none;
    position: absolute;
    top: -9999px;
    left: -9999px;
}
/* 强制交互按钮 */
.force-interact-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 5px;
}
.force-interact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}
.force-interact-btn:active {
    transform: translateY(0);
}
.force-interact-btn i {
    margin-right: 8px;
}
/* 音频状态指示器 */
.audio-status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}
.audio-status-enabled {
    background-color: #4CAF50;
    animation: audioPulse 2s infinite;
}
@keyframes audioPulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}
.audio-status-disabled {
    background-color: #f44336;
}
/* 手机端优化 */
@media (max-width: 768px) {
    .code-highlight {
        font-size: 24px;
        padding: 12px;
    }
    .sound-prompt-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    .sms-visual-alert {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    .sound-prompt-content {
        padding: 20px;
        border-radius: 10px;
    }
}