:root {
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.07);
}


.reward-hero {
    background: var(--gradient);
    color: white;
    border-radius: 1rem;
    padding: 3rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.reward-hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.reward-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.reward-card {
    border: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    height: 100%;
    background: white;
}

.reward-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.reward-card .card-body {
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* border: 1px solid #eee; */
    box-shadow: var(--shadow-lg);
}

.reward-title {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.reward-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
    position: relative;
}

.reward-amount::before {
    content: "¥";
    font-size: 1.5rem;
    position: absolute;
    left: -1.2rem;
    top: 0.5rem;
    color: var(--secondary);
}

.reward-amount span {
    font-size: 1rem;
    color: var(--secondary);
}

.btn-reward {
    background: var(--nav-bg-color);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    width: 100%;
    max-width: 200px;
    line-height: 30px;
}

.btn-reward:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: white;
    background: var(--primary-dark);
}

.reward-custom-section {
    background: var(--gradient);
    border-radius: 0 0 1rem 1rem;
    padding: 3rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
    text-align: center;
    color: var(--aid-color);
}

.reward-custom-section h5 {
    color: var(--aid-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.reward-list-section {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-top: 1.5rem;
}

.reward-list-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary);
}

.reward-list-header h5 {
    color: var(--dark);
    font-weight: 700;
    margin: 0;
    font-size: 1.4rem;
}

.reward-list-header i {
    color: var(--primary);
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.table-reward {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
}

.table-reward thead {
    background: var(--gradient);
    color: white;
}

.table-reward thead th {
    border: none;
    padding: 1.25rem 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.table-reward tbody tr {
    transition: all 0.2s ease;
}

.table-reward tbody tr:hover {
    background-color: rgba(67, 97, 238, 0.05);
    transform: scale(1.01);
}

.table-reward tbody td {
    padding: 1.25rem 1rem;
    border-color: #f1f3f9;
    vertical-align: middle;
    font-weight: 500;
}

.no-records {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--secondary);
}

.no-records h3 {
    font-weight: 300;
    margin-bottom: 1rem;
}

.no-records i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.pagination-custom .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

.pagination-custom .page-link {
    color: var(--primary);
    border-radius: 0.5rem;
    margin: 0 4px;
    border: 1px solid #e9ecef;
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-custom .page-link:hover {
    background-color: rgba(67, 97, 238, 0.1);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* 模态框样式优化 - 修复关闭问题 */
.modal-reward .modal-content {
    border-radius: 1.25rem;
    border: none;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-reward .modal-header {
    background: var(--gradient);
    color: white;
    padding: 1.75rem 2rem;
    border-bottom: none;
    position: relative;
}

.modal-reward .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.modal-reward .modal-title {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-reward .modal-title i {
    font-size: 1.4rem;
}

/* 修复关闭按钮样式 - 兼容Bootstrap 4和5 */
.modal-reward .close {
    color: white;
    opacity: 0.8;
    text-shadow: none;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-reward .close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-reward .btn-close {
    /* 如果使用Bootstrap 5 */
    filter: invert(1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.modal-reward .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-reward .modal-body {
    padding: 2.5rem;
}

.modal-reward .form-control {
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 2px solid #eef2f7;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.modal-reward .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
    transform: translateY(-1px);
}

.modal-reward .input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #eef2f7;
    border-right: none;
    color: var(--secondary);
    font-weight: 500;
}

.modal-reward .input-group .form-control {
    border-left: none;
}

/* 支付方式样式优化 */
.payment-section {
    margin: 2rem 0;
}

.payment-section .section-title {
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.payment-option {
    text-align: center;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.payment-option label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

.payment-option label i {
    font-size: 2rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.payment-option label .payment-text {
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + label {
    border-color: var(--primary);
    background-color: rgba(67, 97, 238, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15);
}

.payment-option input[type="radio"]:checked + label::before {
    transform: scaleX(1);
}

.payment-option input[type="radio"]:checked + label i,
.payment-option input[type="radio"]:checked + label .payment-text {
    color: var(--primary);
}

.payment-option label:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.1);
}

/* 支付宝和微信特定样式 */
.payment-option.alipay label i {
    color: #1677ff;
}

.payment-option.wechat label i {
    color: #07c160;
}

.payment-option input[type="radio"]:checked + label.alipay-style i {
    color: #1677ff;
}

.payment-option input[type="radio"]:checked + label.wechat-style i {
    color: #07c160;
}

.amount-section {
    margin-bottom: 2rem;
}

.amount-section .section-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.btn-submit {
    background: var(--gradient);
    border: none;
    border-radius: 0.75rem;
    padding: 1.25rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    width: 100%;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4);
    color: white;
    background: var(--primary-dark);
}

.btn-submit i {
    margin-right: 0.5rem;
}

.login-prompt {
    text-align: center;
    padding: 3rem 2rem;
}

.login-prompt i {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.login-prompt h4 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.login-prompt p {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .reward-hero h1 {
        font-size: 2rem;
    }
    
    .reward-hero p {
        font-size: 1rem;
    }
    
    .reward-amount {
        font-size: 2rem;
    }
    
    .table-reward thead {
        display: none;
    }
    
    .table-reward tbody tr {
        display: block;
        margin-bottom: 1rem;
        border-radius: 0.75rem;
        box-shadow: var(--shadow);
    }
    
    .table-reward tbody td {
        display: block;
        text-align: right;
        padding: 1rem;
        border-bottom: 1px solid #f1f3f9;
    }
    
    .table-reward tbody td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--dark);
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .modal-reward .modal-body {
        padding: 1.5rem;
    }
    
    .reward-custom-section {
        padding: 2rem 1.5rem;
    }
    
    .reward-list-section {
        padding: 2rem 1.5rem;
    }
}

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

.reward-card, .reward-custom-section, .reward-list-section {
    animation: fadeIn 0.5s ease forwards;
}

.reward-card:nth-child(1) { animation-delay: 0.1s; }
.reward-card:nth-child(2) { animation-delay: 0.2s; }
.reward-card:nth-child(3) { animation-delay: 0.3s; }
.reward-card:nth-child(4) { animation-delay: 0.4s; }
.reward-card:nth-child(5) { animation-delay: 0.5s; }
.reward-card:nth-child(6) { animation-delay: 0.6s; }
