/**
 * 小红袍子主题 v2.2 补充样式
 * 模式对比卡 + 站长核心能力条 + 空状态设计
 *
 * @package XHP
 */

/* 模式对比卡 */
.xhp-mode-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
    max-width: 1000px;
    margin: 56px auto 0;
}
.xhp-mode-card {
    border-radius: var(--xhp-radius-lg);
    padding: 28px;
    position: relative;
}
.xhp-mode-old {
    background: var(--xhp-muted);
    border: 1px solid var(--xhp-border);
    opacity: 0.7;
}
.xhp-mode-new {
    background: linear-gradient(135deg, oklch(0.52 0.19 27 / 0.05), oklch(0.72 0.16 65 / 0.05));
    border: 2px solid oklch(0.52 0.19 27 / 0.4);
    box-shadow: var(--xhp-shadow);
}
.xhp-mode-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.xhp-mode-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.xhp-mode-tag-old { background: var(--xhp-muted-foreground); color: var(--xhp-card); }
.xhp-mode-tag-new { background: var(--xhp-primary); color: var(--xhp-primary-foreground); }
.xhp-mode-shield { font-size: 22px; }
.xhp-mode-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.3;
}
.xhp-mode-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.xhp-mode-list li {
    padding: 6px 0;
    color: var(--xhp-muted-foreground);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.xhp-mode-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}
.xhp-mode-old .xhp-mode-list li::before { background: var(--xhp-muted-foreground); opacity: 0.4; }
.xhp-mode-new .xhp-mode-list li::before { background: var(--xhp-primary); }
.xhp-mode-new .xhp-mode-list li { color: var(--xhp-foreground); }
.xhp-mode-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--xhp-primary);
    font-weight: 800;
}

/* 站长核心能力条 */
.xhp-master-cap {
    max-width: 1000px;
    margin: 40px auto 0;
    background: var(--xhp-card);
    border: 1px solid var(--xhp-border);
    border-radius: var(--xhp-radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.xhp-master-cap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--xhp-gradient-hong);
}
.xhp-master-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.xhp-master-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--xhp-primary);
}
.xhp-master-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--xhp-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.xhp-master-desc {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 24px;
    line-height: 1.6;
}
.xhp-master-desc .xhp-plus { color: var(--xhp-muted-foreground); margin: 0 6px; }
.xhp-master-desc .xhp-arrow {
    margin: 0 12px;
    color: var(--xhp-primary);
    font-weight: 800;
}
.xhp-master-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.xhp-master-item {
    background: var(--xhp-muted);
    border-radius: var(--xhp-radius);
    padding: 16px;
    transition: all 0.2s;
}
.xhp-master-item:hover {
    background: var(--xhp-card);
    box-shadow: var(--xhp-shadow);
    transform: translateY(-2px);
}
.xhp-master-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}
.xhp-master-name { font-size: 14px; font-weight: 700; }
.xhp-master-item-desc {
    font-size: 12px;
    color: var(--xhp-muted-foreground);
    margin: 0;
    line-height: 1.5;
}

/* 统计卡片图标 */
.xhp-stat-icon { font-size: 20px; margin-bottom: 4px; }

/* 空状态设计 */
.xhp-sop-card.xhp-sop-sample {
    opacity: 0.65;
    pointer-events: none;
    border-style: dashed;
}
.xhp-sop-sample-tag {
    font-size: 11px;
    color: var(--xhp-muted-foreground);
    background: var(--xhp-muted);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.xhp-empty-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, oklch(0.52 0.19 27 / 0.04), oklch(0.72 0.16 65 / 0.04));
    border: 1px solid oklch(0.52 0.19 27 / 0.2);
    border-radius: var(--xhp-radius-lg);
    padding: 28px 32px;
    margin-top: 24px;
}
.xhp-empty-banner-full { grid-column: 1 / -1; margin-top: 0; }
.xhp-empty-banner-icon { font-size: 48px; flex-shrink: 0; }
.xhp-empty-banner-content { flex: 1; }
.xhp-empty-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--xhp-foreground);
}
.xhp-empty-banner-desc {
    font-size: 13px;
    color: var(--xhp-muted-foreground);
    margin: 0;
    line-height: 1.6;
}
.xhp-empty-banner-desc a { color: var(--xhp-primary); }

.xhp-empty-rich {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    background: var(--xhp-muted);
    border-radius: var(--xhp-radius-lg);
    border: 2px dashed var(--xhp-border);
}
.xhp-empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.5; }
.xhp-empty-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--xhp-foreground);
}
.xhp-empty-desc {
    font-size: 13px;
    color: var(--xhp-muted-foreground);
    margin: 0;
}

.xhp-empty-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--xhp-muted);
    border-radius: var(--xhp-radius-lg);
    font-size: 14px;
    color: var(--xhp-muted-foreground);
}
.xhp-empty-inline-icon { font-size: 24px; }
.xhp-empty-inline a { color: var(--xhp-primary); font-weight: 600; }

.xhp-subsection-title {
    font-size: 20px;
    font-weight: 700;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .xhp-mode-compare { grid-template-columns: 1fr; }
    .xhp-mode-arrow { transform: rotate(90deg); padding: 8px 0; }
    .xhp-master-grid { grid-template-columns: 1fr; }
    .xhp-empty-banner { flex-direction: column; text-align: center; padding: 24px; }
    .xhp-empty-banner-icon { font-size: 40px; }
}
