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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f7f7f7;
    padding: 20px;
    line-height: 1.6;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}



.coupons-container {
    max-width: 600px;
    margin: 0 auto;
}

.card {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.card-right {
    display: flex;
    align-items: center;
}

.icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    border-radius: 8px;
}

.text {
    flex: 1;
}

.title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    color: #ff0000; /* 改为红色 */
    font-weight: 500;
}

.btn {
    background-color: #ff5000;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: #e64600;
    transform: translateY(-2px);
}

.btn.copied {
    background-color: #4caf50;
    animation: pulse 0.5s;
}

.btn-text {
    margin-right: 5px;
}

.btn-icon {
    font-size: 12px;
}

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

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: white;
    color: #333;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.error {
    background: #ffebee;
    color: #c62828;
}

.toast-content {
    display: flex;
    align-items: center;
}

.toast-icon {
    font-size: 24px;
    margin-right: 12px;
}

.toast-icon.success {
    color: #4caf50;
}

.toast-icon.error {
    color: #f44336;
}

.toast-message p {
    margin: 0;
    line-height: 1.4;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
}

.toast-text {
    font-size: 14px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }
    
    .card {
        flex-direction: column;
    }
    
    .card-right {
        margin-top: 15px;
        justify-content: center;
    }
    
    .btn {
        width: 100%;
    }
    
    .toast {
        width: 90%;
        padding: 12px 16px;
    }
    
    .toast-icon {
        font-size: 20px;
        margin-right: 10px;
    }
    
    .toast-title {
        font-size: 15px;
    }
    
    .toast-text {
        font-size: 13px;
    }
}



