/**
 * 小红袍 v2.6 新增页面样式
 *
 * 申请共建 / 导师详情 / 关于我们 / 商务合作 / FAQ / 服务协议 / 隐私政策
 *
 * @package XHP
 */

/* ============================================================
 * 1. 申请共建 - 可选择角色卡片
 * ============================================================ */
.xhp-roles-selectable .xhp-role-selectable-card {
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}
.xhp-roles-selectable .xhp-role-selectable-card:hover,
.xhp-roles-selectable .xhp-role-selectable-card:focus {
    border-color: var(--xhp-primary) !important;
    box-shadow: 0 4px 16px oklch(0.52 0.19 27 / 0.15) !important;
}
.xhp-roles-selectable .xhp-role-selectable-card.is-selected {
    border-color: var(--xhp-primary) !important;
    border-width: 2px !important;
    background: linear-gradient(135deg, oklch(0.52 0.19 27 / 0.03), oklch(0.72 0.16 65 / 0.03)) !important;
}
.xhp-role-select-btn {
    margin-top: 16px;
    width: 100%;
}

/* ============================================================
 * 2. 申请流程步骤
 * ============================================================ */
.xhp-apply-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.xhp-apply-step {
    text-align: center;
    padding: 24px 16px;
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius);
    position: relative;
}
.xhp-apply-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--xhp-gradient-hong);
    color: var(--xhp-primary-foreground);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 12px;
    box-shadow: var(--xhp-shadow-primary);
}
.xhp-apply-step h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}
.xhp-apply-step p {
    font-size: 13px;
    color: var(--xhp-muted-foreground);
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
 * 3. FAQ 列表
 * ============================================================ */
.xhp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.xhp-faq-item {
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius);
    overflow: hidden;
    transition: all 0.2s;
}
.xhp-faq-item[open] {
    border-color: oklch(0.52 0.19 27 / 0.3);
    box-shadow: var(--xhp-shadow-sm);
}
.xhp-faq-q {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--xhp-foreground);
    list-style: none;
}
.xhp-faq-q::-webkit-details-marker { display: none; }
.xhp-faq-q::after {
    content: '+';
    margin-left: auto;
    font-size: 20px;
    color: var(--xhp-muted-foreground);
    transition: transform 0.2s;
}
.xhp-faq-item[open] .xhp-faq-q::after {
    transform: rotate(45deg);
}
.xhp-faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: oklch(0.52 0.19 27 / 0.1);
    color: var(--xhp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}
.xhp-faq-a {
    display: flex;
    gap: 12px;
    padding: 0 20px 16px;
    font-size: 14px;
    color: oklch(0.4 0.02 30);
    line-height: 1.7;
}
.xhp-faq-icon-a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--xhp-emerald-light);
    color: var(--xhp-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ============================================================
 * 4. 导师详情页
 * ============================================================ */
.xhp-mentor-hero {
    padding: 32px 0;
}
.xhp-mentor-hero-inner {
    display: flex;
    gap: 24px;
    align-items: center;
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius-lg);
    padding: 32px;
    flex-wrap: wrap;
    box-shadow: var(--xhp-shadow-sm);
}
.xhp-avatar-xl {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid var(--xhp-primary);
}
.xhp-mentor-hero-info {
    flex: 1;
    min-width: 240px;
}
.xhp-mentor-hero-info .xhp-hero-title {
    font-size: 28px;
    margin: 8px 0;
}
.xhp-mentor-bio {
    font-size: 14px;
    color: var(--xhp-muted-foreground);
    margin: 8px 0 16px;
    line-height: 1.6;
}
.xhp-mentor-stats-row {
    display: flex;
    gap: 24px;
}
.xhp-mentor-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: var(--xhp-primary);
}
.xhp-mentor-stat-label {
    font-size: 12px;
    color: var(--xhp-muted-foreground);
}
.xhp-mentor-hero-cta {
    flex-shrink: 0;
}

/* ============================================================
 * 5. 关于我们
 * ============================================================ */
.xhp-prose {
    font-size: 15px;
    line-height: 1.8;
    color: var(--xhp-foreground);
}
.xhp-prose p { margin: 0 0 16px; }
.xhp-prose h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: var(--xhp-foreground);
}
.xhp-prose ul {
    margin: 0 0 16px 24px;
}
.xhp-prose li { margin-bottom: 8px; }
.xhp-prose strong { color: var(--xhp-primary); }

.xhp-about-roles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.xhp-about-role {
    text-align: center;
    padding: 24px 16px;
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius);
}
.xhp-about-role-icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.xhp-about-role h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}
.xhp-about-role p {
    font-size: 13px;
    color: var(--xhp-muted-foreground);
    margin: 0;
    line-height: 1.5;
}

.xhp-about-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.xhp-about-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius);
}
.xhp-about-contact-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.xhp-about-contact-label {
    font-size: 12px;
    color: var(--xhp-muted-foreground);
}
.xhp-about-contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--xhp-foreground);
    margin-top: 2px;
}

/* ============================================================
 * 6. 商务合作卡片
 * ============================================================ */
.xhp-biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.xhp-biz-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius-lg);
    text-align: center;
    transition: all 0.2s;
}
.xhp-biz-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--xhp-shadow-md);
    border-color: oklch(0.52 0.19 27 / 0.3);
}
.xhp-biz-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.xhp-biz-name {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
}
.xhp-biz-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--xhp-primary);
    margin-bottom: 12px;
}
.xhp-biz-desc {
    font-size: 13px;
    color: var(--xhp-muted-foreground);
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}
.xhp-biz-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 13px;
    text-align: left;
}
.xhp-biz-features li {
    padding: 4px 0;
    color: var(--xhp-foreground);
}
.xhp-biz-contact {
    width: 100%;
}

/* ============================================================
 * 7. 法律文档（服务协议 / 隐私政策）
 * ============================================================ */
.xhp-legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 0;
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius-lg);
    padding: 32px 40px;
    box-shadow: var(--xhp-shadow-sm);
}
.xhp-legal-content h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--xhp-border);
    color: var(--xhp-primary);
}
.xhp-legal-content h2:first-child { margin-top: 0; }
.xhp-legal-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--xhp-foreground);
    margin: 0 0 12px;
}
.xhp-legal-content strong { color: var(--xhp-primary); }

/* ============================================================
 * 8. 申请表单容器
 * ============================================================ */
.xhp-apply-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}
.xhp-apply-form-wrap .xhp-app-form {
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius-lg);
    padding: 32px;
    box-shadow: var(--xhp-shadow-sm);
}

/* ============================================================
 * 9. 响应式
 * ============================================================ */
@media (max-width: 768px) {
    .xhp-mentor-hero-inner { flex-direction: column; text-align: center; }
    .xhp-mentor-stats-row { justify-content: center; }
    .xhp-legal-content { padding: 24px 20px; }
    .xhp-apply-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .xhp-apply-steps { grid-template-columns: 1fr; }
    .xhp-mentor-stats-row { flex-direction: column; gap: 12px; }
}
