/**
 * GEA 会员升级页面专属样式
 */

/* 箭头型步骤条 */
.stepper-arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding: 1.25rem 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
    background: transparent;
}

.step-arrow::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 28px solid transparent;
    border-bottom: 28px solid transparent;
    border-left: 20px solid #f3f4f6;
    z-index: 1;
}

.step-arrow:last-child::after {
    display: none;
}

.step-arrow:hover:not(.active):not(.completed) {
    background: #e5e7eb;
}

.step-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #9ca3af;
    margin-right: 0.75rem;
}

.step-text {
    font-size: 0.9rem;
    color: #9ca3af;
    line-height: 1.4;
}

.step-sub {
    font-size: 0.8rem;
}

/* 激活状态 */
.step-arrow.active {
    background: #3b82f6;
}

.step-arrow.active::after {
    border-left-color: #3b82f6;
}

.step-arrow.active .step-num,
.step-arrow.active .step-text {
    color: white;
}

/* 完成状态 */
.step-arrow.completed {
    background: #10b981;
}

.step-arrow.completed::after {
    border-left-color: #10b981;
}

.step-arrow.completed .step-num,
.step-arrow.completed .step-text {
    color: white;
}

.plan-cards-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1rem !important;
    width: 100% !important;
}

/* 修复嵌套 div 导致的布局问题 */
#planCards {
    display: contents !important;
}

/* 套餐卡片样式（原型样式） */
.plan-card-alt {
    border: 2px solid #9ca3af;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
    width: 220px;
    flex-shrink: 0;
    position: relative;
}

.plan-card-alt.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

/* 当前套餐样式 */
.plan-card-alt.current-plan {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    color: white;
    cursor: not-allowed;
    pointer-events: none;
}

/* 禁用套餐样式 */
.plan-card-alt.disabled-plan {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.plan-card-alt.disabled-plan:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* 徽章样式 */
.current-plan-badge,
.disabled-plan-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.current-plan-badge {
    background: #fbbf24;
    color: #92400e;
}

.disabled-plan-badge {
    background: #ef4444;
    color: white;
}

.plan-name-alt {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.plan-price-alt {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.unit {
    font-size: 0.85rem;
    font-weight: 400;
}

.plan-desc-alt {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 支付区域 */
.payment-area {
    margin-top: 2rem;
}

.selected-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-num {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.price-unit {
    font-size: 1rem;
    color: #3b82f6;
    font-weight: 500;
}

.pay-button {
    background: #3b82f6;
    color: white;
    padding: 0.6rem 2.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.pay-button:hover {
    background: #2563eb;
}

.pay-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.step-content {
    max-width: 800px;
    margin: 0 auto;
}

.step-content .membership-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    padding: 2.5rem;
}

.step-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.profile-form,
.solution-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-form > div,
.solution-form > div {
    display: flex;
    flex-direction: column;
}

.profile-form label,
.solution-form label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
}

.btn-secondary {
    flex: 1;
    height: 3rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.btn-primary {
    flex: 1;
    height: 3rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 文件上传按钮 */
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-upload-btn {
    padding: 0.6rem 1.25rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.file-upload-btn:hover {
    background: #f9fafb;
}

.file-name-display {
    font-size: 0.9rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
}

.modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 1rem;
}

.btn-cancel, .btn-confirm {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-confirm {
    background: #3b82f6;
    border: none;
    color: white;
}

.btn-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 组织列表项 */
.org-list-item {
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.org-list-item:hover {
    background-color: #f9fafb;
}

.org-list-item.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.step-content.hidden {
    display: none;
}

.step-content.active {
    display: block;
}