/**
 * 赞助支付页面样式
 */

.sponsor-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sponsor-item-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.sponsor-item-card:hover {
    transform: translateY(-8px);
    border-color: #1f2937;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.sponsor-item-icon {
    font-size: 48px;
    margin-bottom: 1rem;
}

.sponsor-item-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.sponsor-item-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.sponsor-item-price {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.sponsor-buy-btn {
    width: 100%;
    padding: 12px 24px;
    background: #1f2937;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.sponsor-buy-btn:hover {
    transform: scale(1.05);
    background: #374151;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 支付方式选择样式 */
.payment-method-option {
    display: block;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

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

.payment-method-option span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.payment-method-option:hover {
    border-color: #1f2937;
    background: #f3f4f6;
}

.payment-method-option input[type="radio"]:checked + span {
    color: #1f2937;
}

.payment-method-option:has(input[type="radio"]:checked) {
    border-color: #1f2937;
    background: #f9fafb;
}

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
}

.modal-overlay[style*="flex"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

body.dark-mode .modal-content {
    background: #1f2937;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    transition: all 0.2s ease;
    z-index: 10001;
}

.modal-close:hover {
    color: #1f2937;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-buttons .btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1f2937;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #374151;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* 暗色模式适配 */
body.dark-mode .sponsor-item-card {
    background: #1f2937;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .sponsor-item-card:hover {
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.1);
}

body.dark-mode .payment-method-option {
    border-color: #374151;
    background: #1f2937;
}

body.dark-mode .payment-method-option span {
    color: #e5e7eb;
}

body.dark-mode .payment-method-option:hover {
    border-color: #e5e7eb;
    background: #374151;
}

body.dark-mode .modal-content {
    background: #1f2937;
}

body.dark-mode .btn-secondary {
    background: #374151;
    color: #e5e7eb;
}

body.dark-mode .btn-secondary:hover {
    background: #4b5563;
}
