/**
 * Zibll Donation 样式
 */

/* 打赏按钮容器 */
.zbd-donate-container {
    margin: 30px 0;
    text-align: center;
}

/* 打赏按钮 */
.zbd-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.zbd-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.zbd-donate-btn i {
    margin-right: 8px;
    animation: heartBeat 1.5s infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* 模态框样式 */
.modal[id*="zbd-donate-modal"] .modal-dialog {
    max-width: 400px;
}

.modal[id*="zbd-donate-modal"] .modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal[id*="zbd-donate-modal"] .modal-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    border: none;
    padding: 16px 20px;
}

.modal[id*="zbd-donate-modal"] .modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal[id*="zbd-donate-modal"] .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
}

.modal[id*="zbd-donate-modal"] .close:hover {
    opacity: 1;
}

.modal[id*="zbd-donate-modal"] .modal-body {
    padding: 20px;
}

/* 作者信息 */
.zbd-author-info {
    display: flex;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    margin-bottom: 20px;
}

.zbd-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.zbd-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zbd-author-details h6 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.zbd-author-details p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* 金额选择区域 */
.zbd-amount-section {
    margin-bottom: 15px;
}

.zbd-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.zbd-amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.zbd-amount-item {
    padding: 12px 8px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zbd-amount-item:hover {
    background: #fff;
    border-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.zbd-amount-item.active {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border-color: #ff6b6b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.zbd-amount-mark {
    font-size: 12px;
    margin-right: 2px;
}

.zbd-amount-value {
    font-size: 18px;
    font-weight: 700;
}

/* 自定义金额输入 */
.zbd-custom-amount {
    margin-bottom: 15px;
}

.zbd-custom-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.zbd-custom-input:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.zbd-custom-input::placeholder {
    color: #bbb;
}

.zbd-input-error {
    border-color: #dc3545 !important;
}

.zbd-amount-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.zbd-amount-error.show {
    display: block;
}

/* 留言输入框 */
.zbd-message-section {
    margin-bottom: 15px;
}

.zbd-message-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    min-height: 60px;
}

.zbd-message-textarea:focus {
    border-color: #ff6b6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.zbd-message-textarea::placeholder {
    color: #bbb;
}

/* 支付方式选择 */
.zbd-payment-methods {
    margin-bottom: 15px;
}

.zbd-gateway-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.zbd-gateway-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zbd-gateway-item:hover {
    background: #fff;
    border-color: #ff6b6b;
}

.zbd-gateway-item.active {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border-color: #ff6b6b;
}

.zbd-gateway-item input[type="radio"] {
    display: none;
}

.zbd-gateway-icon {
    margin-right: 10px;
    font-size: 20px;
}

.zbd-gateway-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 确认支付按钮 */
.zbd-confirm-pay-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.zbd-confirm-pay-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.zbd-confirm-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.zbd-pay-btn-text {
    font-size: 16px;
}

.zbd-pay-btn-amount {
    font-size: 18px;
    font-weight: 700;
}

/* 支付表单区域 */
.zbd-payment-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e9ecef;
}

/* 后台管理样式 */
.wrap.zbd-admin-wrap {
    max-width: 800px;
    margin: 20px auto;
}

.wrap.zbd-admin-wrap h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
}

.wrap.zbd-admin-wrap h1::before {
    content: '🎁';
    margin-right: 12px;
    font-size: 32px;
}

.wrap.zbd-admin-wrap .form-table {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.wrap.zbd-admin-wrap .form-table th {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 16px 20px 16px 0;
    width: 160px;
}

.wrap.zbd-admin-wrap .form-table td {
    padding: 16px 20px;
}

.wrap.zbd-admin-wrap .regular-text {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    max-width: 400px;
}

.wrap.zbd-admin-wrap .regular-text:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
    outline: none;
}

.wrap.zbd-admin-wrap select {
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.wrap.zbd-admin-wrap select:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
    outline: none;
}

.wrap.zbd-admin-wrap .description {
    color: #888;
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.6;
}

.wrap.zbd-admin-wrap .button-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.wrap.zbd-admin-wrap .button-primary:hover {
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.zbd-notice-card {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.zbd-notice-card .notice-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.zbd-notice-card .notice-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.zbd-notice-card .notice-content strong {
    color: #333;
}