/* 支付结果页样式 - 优化版本 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.content {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 50px;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.status::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed;
    opacity: 0.3;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.status.success {
    background: linear-gradient(135deg, #52c41a, #73d13d);
    box-shadow: 0 10px 30px rgba(82, 196, 26, 0.3);
}

.status.success::after {
    border-color: #52c41a;
}

.status.fail {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    box-shadow: 0 10px 30px rgba(255, 77, 79, 0.3);
}

.status.fail::after {
    border-color: #ff4d4f;
}

.status .anticon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.message {
    margin-top: 20px;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    line-height: 1.6;
    max-width: 320px;
}

.orderSn {
    margin-top: 20px;
    font-size: 16px;
    color: #6c757d;
    text-align: center;
    padding: 12px 24px;
    background: #f8f9fa;
    border-radius: 10px;
    letter-spacing: 0.5px;
    border: 1px solid #e9ecef;
    width: 100%;
    max-width: 300px;
}

.btn {
    width: 100%;
    max-width: 280px;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border-radius: 25px;
    text-align: center;
    background: linear-gradient(135deg, #1890ff, #40a9ff);
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(24, 144, 255, 0.3);
    user-select: none;
    border: none;
    outline: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(24, 144, 255, 0.4);
    background: linear-gradient(135deg, #40a9ff, #69c0ff);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.3);
}

/* 成功状态特殊样式 */
.status.success .anticon {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* 失败状态特殊样式 */
.status.fail .anticon {
    animation: shake 0.6s ease-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

/* 响应式设计 - 平板设备 */
@media (max-width: 768px) {
    .content {
        padding: 40px 30px;
        border-radius: 16px;
    }
    
    .status {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 25px;
    }
    
    .status .anticon {
        font-size: 38px;
    }
    
    .message {
        font-size: 18px;
        margin-top: 15px;
    }
    
    .orderSn {
        font-size: 14px;
        padding: 10px 20px;
        margin-top: 15px;
    }
    
    .btn {
        height: 45px;
        line-height: 45px;
        font-size: 15px;
        margin-top: 25px;
    }
}

/* 响应式设计 - 移动设备 */
@media (max-width: 480px) {
    .result-container {
        padding: 15px;
    }
    
    .content {
        padding: 35px 25px;
        border-radius: 12px;
    }
    
    .status {
        width: 70px;
        height: 70px;
        font-size: 35px;
        margin-bottom: 20px;
    }
    
    .status .anticon {
        font-size: 32px;
    }
    
    .message {
        font-size: 16px;
        margin-top: 12px;
    }
    
    .orderSn {
        font-size: 13px;
        padding: 8px 16px;
        margin-top: 12px;
    }
    
    .btn {
        height: 42px;
        line-height: 42px;
        font-size: 14px;
        margin-top: 20px;
    }
}

/* 语言切换器样式 */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-switcher select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-switcher select:hover {
    border-color: #40a9ff;
}

.lang-switcher select:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* PC端语言切换器样式 */
@media (min-width: 768px) {
    .lang-switcher {
        top: 30px;
        right: 30px;
    }
    
    .lang-switcher select {
        padding: 10px 16px;
        font-size: 16px;
    }
}

/* 深色模式支持（可选） */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a2e;
    }
    
    .content {
        background: #16213e;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .message {
        color: #e0e0e0;
    }
    
    .orderSn {
        background: #1a1a2e;
        border-color: #2a2a4a;
        color: #b0b0b0;
    }
    
    .lang-switcher select {
        background: #1a1a2e;
        color: #e0e0e0;
        border-color: #2a2a4a;
    }
}