/* 先行者权益模块样式 */

/* 加载状态 */
#pioneer-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

#pioneer-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 权益详情容器 */
#pioneer-benefit-details {
    max-width: 100%;
}

/* 权益头部 */
.benefit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.benefit-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.benefit-header p {
    color: #6b7280;
    margin-top: 4px;
}

/* 状态标签 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-active {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-badge.status-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.status-inactive {
    background-color: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* 权益详情卡片 */
.benefit-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .benefit-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 20px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

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

/* 权益项 */
.benefit-item {
    margin-bottom: 16px;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.benefit-value {
    font-weight: 500;
    color: #1f2937;
    font-size: 1rem;
}

/* 特殊样式 - 剩余天数 */
.benefit-item .benefit-value.text-2xl {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 2px;
}

.benefit-unit {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 进度条 */
.progress-container {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3b82f6;
    border-radius: 9999px;
    transition: width 0.3s ease-in-out;
}

.progress-info {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 8px;
    text-align: right;
}

/* 权益列表 */
.benefits-list {
    margin-top: 24px;
}

.benefits-list h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 12px;
}

.benefits-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    color: #4b5563;
}

.benefits-list li i {
    color: #3b82f6;
    margin-right: 8px;
    margin-top: 2px;
}

/* 未开通状态 */
.not-pioneer-state {
    text-align: center;
    padding: 48px 20px;
    min-height: 400px; /* 增加高度以确保与其他卡片高度一致 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.not-pioneer-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 16px;
}

.not-pioneer-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.not-pioneer-state p {
    color: #6b7280;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 1px solid transparent;
}

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

.btn-primary {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .benefit-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .benefit-card {
        padding: 16px;
    }
    
    .benefits-list li {
        font-size: 0.875rem;
    }
}

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

.benefit-card,
.not-pioneer-state {
    animation: fadeIn 0.3s ease-out;
}

/* 确保与现有样式兼容 */
#pioneer-benefit-content {
    color: inherit;
}

#pioneer-benefit-content .form-section {
    margin-bottom: 24px;
}

#pioneer-benefit-content .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}