/**
 * 成为合伙人页面样式 - 方案二（明亮卡片分步引导）
 * V8.7 新建
 * 兼容PC端 + 移动端
 */

/* ===== 全局背景 ===== */
body {
    background: #f5f3ff;
}

/* ===== 页面容器 ===== */
.apply-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 30px 16px 40px;
}

/* ===== 品牌区 ===== */
.apply-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.apply-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
}

.apply-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
}

.apply-brand-text span {
    color: #7C3AED;
}

/* ===== 步骤进度条 ===== */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: #e9ecef;
    color: #adb5bd;
    transition: all 0.3s ease;
}

.step-circle.active {
    background: #7C3AED;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.step-circle.done {
    background: #10B981;
    color: #fff;
}

.step-label {
    font-size: 12px;
    color: #adb5bd;
    font-weight: 500;
}

.step-label.active {
    color: #7C3AED;
    font-weight: 600;
}

.step-label.done {
    color: #10B981;
}

.step-line {
    width: 36px;
    height: 2px;
    background: #e9ecef;
    margin: 0 6px;
}

.step-line.done {
    background: #10B981;
}

/* ===== 表单卡片 ===== */
.apply-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #ede9fe;
}

.apply-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.apply-card-title i {
    color: #7C3AED;
    font-size: 14px;
}

/* ===== 角色选择卡片 ===== */
.role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.role-card {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 20px 14px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #fafafa;
}

.role-card:hover {
    border-color: #c4b5fd;
    background: #faf5ff;
}

.role-card.selected {
    border-color: #7C3AED;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.role-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.role-card-icon.branch {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
}

.role-card-icon.partner {
    background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
}

.role-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.role-card-desc {
    font-size: 12px;
    color: #6c757d;
}

.role-card-fee {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #7C3AED;
}

.role-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.role-card.selected .role-card-check {
    background: #7C3AED;
    border-color: #7C3AED;
    color: #fff;
}

.hot-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
}

/* ===== 表单组 ===== */
.apply-form-group {
    margin-bottom: 14px;
}

.apply-form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
}

.apply-form-label .required-star {
    color: #ef4444;
    margin-right: 2px;
}

.apply-form-input,
.apply-form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fafafa;
    transition: all 0.2s;
    outline: none;
    box-sizing: border-box;
}

.apply-form-input:focus,
.apply-form-select:focus {
    border-color: #7C3AED;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.apply-form-input::placeholder {
    color: #adb5bd;
}

/* ===== 费用提示条 ===== */
.fee-banner {
    display: none;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f3ff 100%);
    border-radius: 12px;
    border-left: 3px solid #7C3AED;
    margin-top: 16px;
}

.fee-banner.show {
    display: block;
}

.fee-banner-amount {
    color: #7C3AED;
    font-weight: 700;
    font-size: 16px;
}

/* ===== 提交按钮 ===== */
.apply-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.apply-submit-btn:hover {
    opacity: 0.9;
}

.apply-submit-btn:active {
    transform: scale(0.98);
}

/* ===== 底部链接 ===== */
.apply-footer-links {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.apply-footer-links a {
    color: #6c757d;
    text-decoration: none;
}

.apply-footer-links a:hover {
    color: #7C3AED;
}

.apply-footer-links .divider {
    margin: 0 8px;
    color: #dee2e6;
}

/* ===== 错误提示 ===== */
.apply-errors {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.apply-errors .error-title {
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 6px;
    font-size: 14px;
}

.apply-errors .error-item {
    padding: 3px 0;
    font-size: 13px;
    color: #ef4444;
}

/* ===== 响应式 ===== */
@media (max-width: 576px) {
    .apply-container {
        padding: 16px 12px 32px;
    }
    .apply-card {
        padding: 20px 16px;
    }
    .role-cards {
        gap: 10px;
    }
    .role-card {
        padding: 16px 10px 14px;
    }
}

@media (min-width: 769px) {
    .apply-container {
        padding: 40px 16px 60px;
    }
    .apply-card {
        padding: 28px 24px;
    }
}

/* ===== V8.7.1-V16 返回按钮+品牌导航栏（普通文档流） ===== */
.m-apply-nav {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.m-nav-back {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
    transition: all 0.2s ease;
}

.m-nav-back:active {
    transform: scale(0.92);
    background: #6d28d9;
}

.m-nav-brand {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.m-nav-brand .apply-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
}

.m-nav-brand .apply-brand-text {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

.m-nav-brand .apply-brand-text span {
    color: #7C3AED;
}

/* ===== V8.7.1-V17 返回按钮+品牌导航栏（PC和移动端统一） ===== */
.m-apply-nav {
    display: grid;
    grid-template-columns: 52px 1fr 52px;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.m-nav-back {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(124,58,237,0.3);
    transition: all 0.2s ease;
}

.m-nav-back:active {
    transform: scale(0.92);
    background: #6d28d9;
}

.m-nav-brand {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.m-nav-brand .apply-brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #fff;
}

.m-nav-brand .apply-brand-text {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

.m-nav-brand .apply-brand-text span {
    color: #7C3AED;
}
