/* 暗黑简洁主题 - 卡密领取模板样式（极简扁平设计） */

.card-redeem-container {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    min-height: calc(100vh - 140px);
    background: #1f2833; /* 白色背景，与外围一致 */
    padding: 50px 40px;
    box-sizing: border-box;
}

.card-redeem-header {
    text-align: center;
    margin-bottom: 50px;
}

.card-redeem-title {
    font-size: 36px;
    font-weight: 700;
    color: #CCCCCC;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.card-redeem-description {
    font-size: 16px;
    color: #a0a8b0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.card-redeem-tools-section {
    max-width: 1200px;
    margin: 0 auto;
}

.card-redeem-tools-title {
    font-size: 20px;
    font-weight: 600;
    color: #CCCCCC;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.card-redeem-tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.card-redeem-tool-card {
    background: #1f2833;
    border: 1px solid #2a3441;
    border-radius: 8px;
    padding: 30px 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 280px;
}

.card-redeem-tool-card:hover {
    border-color: #5dade2;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.card-redeem-tool-card.active {
    border-color: #5dade2;
    background: #1f2f4a;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.card-redeem-tool-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5dade2;
    border-radius: 8px;
    font-size: 32px;
    overflow: hidden;
}

.card-redeem-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-redeem-tool-icon:has(img) {
    background: transparent;
    padding: 0;
}

.card-redeem-tool-card.active .card-redeem-tool-icon {
    background: #4a9bc7;
}

.card-redeem-tool-card.active .card-redeem-tool-icon:has(img) {
    background: transparent;
}

.card-redeem-tool-name {
    font-size: 18px;
    font-weight: 600;
    color: #CCCCCC;
    text-align: center;
    margin-bottom: 12px;
}

.card-redeem-tool-description {
    font-size: 14px;
    color: #a0a8b0;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 0;
}

.card-redeem-tool-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background: #5dade2;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #CCCCCC;
    font-size: 12px;
    font-weight: 600;
}

.card-redeem-tool-card.active .card-redeem-tool-check {
    display: flex;
}

.card-redeem-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #a0a8b0;
}

.card-redeem-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.card-redeem-empty-text {
    font-size: 16px;
    line-height: 1.6;
}

.card-redeem-redeem-section {
    max-width: 800px;
    margin: 50px auto 0;
    display: none;
}

.card-redeem-redeem-section.active {
    display: block;
}

.card-redeem-redeem-card {
    background: #1f2833;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #2a3441;
}

.card-redeem-redeem-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #2a3441;
}

.card-redeem-redeem-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5dade2;
    border-radius: 8px;
    font-size: 32px;
    overflow: hidden;
}

.card-redeem-redeem-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-redeem-redeem-icon:has(img) {
    background: transparent;
    padding: 0;
}

.card-redeem-redeem-title {
    font-size: 24px;
    font-weight: 700;
    color: #CCCCCC;
    margin-bottom: 8px;
}

.card-redeem-redeem-subtitle {
    font-size: 14px;
    color: #a0a8b0;
}

.card-redeem-card-display {
    margin-bottom: 30px;
    padding: 20px;
    background: #2a3441;
    border-radius: 8px;
    border: 1px solid #2a3441;
    border-left: 4px solid #5dade2;
    text-align: center;
    display: none;
}

.card-redeem-card-display.show {
    display: block;
}

.card-redeem-card-label {
    font-size: 14px;
    font-weight: 600;
    color: #5dade2;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.card-redeem-card-value {
    font-size: 18px;
    font-weight: 600;
    color: #CCCCCC;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    word-break: break-all;
    padding: 12px;
    background: #1f2833;
    border-radius: 6px;
    border: 1px solid #2a3441;
    margin-bottom: 12px;
}

.card-redeem-card-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #5dade2;
    color: #CCCCCC;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-redeem-card-copy-btn:hover {
    background: #4a9bc7;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.card-redeem-card-copy-btn.copied {
    background: #4CAF50;
}

.card-redeem-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #5dade2;
    color: #CCCCCC;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

.card-redeem-submit-btn:hover {
    background: #4a9bc7;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.card-redeem-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #2a3441;
    box-shadow: none;
}

.card-redeem-result {
    margin-top: 30px;
    padding: 16px;
    border-radius: 6px;
    display: none;
    border: 1px solid;
}

.card-redeem-result.show {
    display: block;
}

.card-redeem-result.success {
    background: #1f4a2f;
    border-color: #2a5a3f;
    color: #4ade80;
}

.card-redeem-result.error {
    background: #4a1f1f;
    border-color: #5a2a2a;
    color: #ff6b6b;
}

.card-redeem-result.info {
    background: #1f2f4a;
    border-color: #2f3f5a;
    color: #60a5fa;
}

.card-redeem-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
}

.card-redeem-result-content {
    font-size: 14px;
    line-height: 1.6;
}

.card-redeem-result-data {
    margin-top: 15px;
    padding: 15px;
    background: #2a3441;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    color: #CCCCCC;
}

.card-redeem-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2a3441;
    color: #a0a8b0;
    border: 1px solid #2a3441;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.card-redeem-back-btn:hover {
    background: #2a3441;
    border-color: #5dade2;
    color: #5dade2;
}

.toast-notification {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: none;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    display: block;
}

.toast-notification.error {
    background: #4a1f1f;
    color: #ff6b6b;
    border: 1px solid #5a2a2a;
}

.toast-notification.warning {
    background: #1f2833;
    color: #fbbf24;
    border: 1px solid #ffeaa7;
}

@media (max-width: 1024px) {
    .card-redeem-container {
        padding: 40px 30px;
    }
    
    .card-redeem-tools-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .card-redeem-container {
        padding: 30px 20px;
    }
    
    .card-redeem-header {
        margin-bottom: 35px;
    }
    
    .card-redeem-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .card-redeem-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .card-redeem-tools-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .card-redeem-tools-grid {
        gap: 18px;
    }
    
    .card-redeem-tool-card {
        padding: 25px 20px;
    }
    
    .card-redeem-redeem-card {
        padding: 25px 20px;
    }
}

