html {
    font-size: 16px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  height: 100%;
}

body {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 主页样式 */
.home-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.home-title {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

/* 支付页面样式 */
.pay-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
    max-width: 600px;
    margin: 0 auto;
}

.pay-title {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 2rem;
}

.qr-container {
    position: relative;
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.qr-container img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.qr-container:hover img {
    transform: scale(1.02);
}

.blockchain-info {
    background: linear-gradient(135deg, #ff6b6b, #ffa726);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.address-display {
    background: rgba(248, 249, 250, 0.8);
    padding: 8px 12px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    color: #dc3545;
    font-weight: 600;
    word-break: break-all;
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    font-size: 12px;
    border: 2px solid #fff;
}

.payment-details {
    background: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    animation: slideInFromLeft 0.6s ease-out;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #dc3545;
    font-weight: 600;
}

.countdown-timer {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 75, 43, 0.3);
    animation: pulse 1s infinite;
}

.copy-address-group {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.copy-address-group input {
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.copy-address-group .btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-address-group .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.warning-text {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    animation: slideInFromLeft 0.8s ease-out;
}


/* 订单过期页面样式 */
.expired-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 3rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.expired-title {
    background: linear-gradient(45deg, #dc3545, #c82333);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 2rem;
}

.expired-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

/* 按钮增强 */
.btn-enhanced {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .pay-container {
        margin: 10px;
        padding: 1.5rem;
    }
    
    .copy-address-group {
        width: 100% !important;
    }
    
    .qr-container {
        padding: 15px;
    }
    
    .address-display {
        font-size: 10px;
        max-width: 95%;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}