/* ==========================================================================
   1. 设计变量与背景重塑 (CSS Variables & Global Reset)
   ========================================================================== */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-active: #1e40af;
    --primary-light: rgba(37, 99, 235, 0.08);
    --primary-glow: rgba(37, 99, 235, 0.25);
    
    --accent-purple: #6366f1;
    --accent-amber: #d97706;
    --accent-emerald: #10b981;
    
    --bg-page: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-card-hover: #ffffff;
    
    --border-color: rgba(226, 232, 240, 0.9);
    --border-hover: rgba(203, 213, 225, 1);
    --border-glow: rgba(37, 99, 235, 0.3);
    
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px -12px rgba(37, 99, 235, 0.12);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.18);
    
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    background-image: radial-gradient(rgba(203, 213, 225, 0.35) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* 弥散光背景 */
.glow-bg {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    height: 480px;
    background: radial-gradient(circle at 40% 30%, rgba(99, 102, 241, 0.08) 0%, rgba(37, 99, 235, 0.04) 45%, transparent 75%),
                radial-gradient(circle at 70% 60%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
    filter: blur(90px);
    pointer-events: none;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* 顶栏 / 底栏样式见 ../_shared/css/site-chrome.css */

/* ==========================================================================
   3. 面包屑与容器布局
   ========================================================================== */
.skill-detail-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px 40px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.skill-detail-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.skill-detail-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   4. 左侧：技能头部信息与 Avatar Tile
   ========================================================================== */
.skill-header-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.3s ease;
}

.skill-header-info:hover {
    box-shadow: var(--shadow-md);
}

/* 技能头部 Avatar */
.skill-avatar-tile {
    display: none !important;
}

.skill-header-main {
    flex: 1;
    min-width: 0;
}

.tags-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.tag {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: var(--text-body);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag.primary {
    background: linear-gradient(135deg, #fffbe6 0%, #fef3c7 100%);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 1px 4px rgba(245, 158, 11, 0.08);
}

.tag.free {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
}

.skill-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.skill-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.favorite-icon-btn {
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.favorite-icon-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background-color: #fffbeb;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.favorite-icon-btn.active {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.favorite-icon-btn.active svg {
    fill: #f59e0b;
}

.skill-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(241, 245, 249, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 99px;
    padding: 2px 8px;
}

.skill-description {
    font-size: 13px;
    color: var(--text-body);
    line-height: 1.5;
}

.skill-description strong {
    color: var(--text-main);
}

/* ==========================================================================
   5. 左侧：Tabs 模块化导航与面板 (Tabs Navigation)
   ========================================================================== */
.detail-tabs {
    display: flex;
    gap: 4px;
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 3px;
    backdrop-filter: blur(8px);
    margin-bottom: 2px;
}

.tab-item {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
    border: none;
}

.tab-item:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.6);
}

.tab-item.active {
    color: var(--primary-color);
    font-weight: 700;
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

/* 面板内容容器 */
.tab-panel {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* 淡入动画 */
    animation: fadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 28px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 99px;
}


/* ==========================================================================
   6. 模块面板：📖 概述 (Overview Panel)
   ========================================================================== */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-body);
}

.feature-list li::before {
    content: "✦";
    color: var(--primary-color);
    font-weight: bold;
}

/* 对比图设计 */
.example-compare {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-top: 12px;
}

.example-card {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.example-card-header {
    background: #f1f5f9;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.example-card-body {
    padding: 12px;
    flex: 1;
    font-size: 12.5px;
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
}

/* 对比图头部标签切换 */
.card-header-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px;
    border-radius: 6px;
}

.header-tab {
    padding: 2px 8px;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.header-tab:hover {
    color: var(--text-main);
}

.header-tab.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 对比切换面板 */
.compare-tab-panel {
    display: none;
    height: 100%;
}

.compare-tab-panel.active {
    display: block;
}

.compare-tab-panel pre {
    margin: 0;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    overflow: auto;
}

.compare-tab-panel code {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.5;
}

.raw-text-preview {
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-body);
    font-size: 12px;
    line-height: 1.6;
    height: 100%;
    box-sizing: border-box;
}

/* 中间流程指示 */
.example-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
}

.flow-arrow {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: bold;
}

.flow-badge {
    font-size: 9.5px;
    font-weight: 700;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.flow-line {
    width: 2px;
    height: 24px;
    background: repeating-linear-gradient(to bottom, var(--border-color) 0px, var(--border-color) 4px, transparent 4px, transparent 8px);
}

.example-after .example-card-header {
    background: #e6f0ff;
    color: var(--primary-color);
}

.markdown-preview-mock {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
    font-family: monospace;
}

/* 解决的痛点：仅保留 Markdown 排版，外层无卡片框（配合 .html-content-display.borderless） */
.html-content-display.skill-pain-points {
    margin-top: 12px;
}

.md-h1 {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 8px;
}

.md-p {
    color: var(--text-body);
    margin-bottom: 8px;
}

.md-img {
    color: #10b981;
    font-size: 11px;
    margin-bottom: 6px;
}

.solved-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.solved-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
}

.solved-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.solved-card p {
    font-size: 12.5px;
    color: var(--text-body);
    line-height: 1.4;
}

/* ==========================================================================
   7. 模块面板：🛠️ 使用指南与评价 (Usage & Reviews & History)
   ========================================================================== */
.usage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.usage-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.usage-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.usage-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
}

.usage-steps li {
    display: flex;
    gap: 8px;
}

.step-num {
    background-color: var(--primary-light);
    color: var(--primary-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 10.5px;
    flex-shrink: 0;
}

/* 版本历史时间线 */
.timeline {
    position: relative;
    padding-left: 20px;
    margin-left: 8px;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--text-muted);
}

.timeline-item.active .timeline-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 101, 255, 0.2);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.timeline-version {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.timeline-date {
    font-size: 11px;
    color: var(--text-muted);
}

.timeline-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.timeline-desc {
    font-size: 12.5px;
    color: var(--text-body);
}

/* 用户评价 */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.summary-score {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
}

.summary-stars {
    color: #f59e0b;
    font-size: 18px;
}

.summary-text {
    font-size: 12px;
    color: var(--text-muted);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
}

.review-user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.review-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
}

.review-stars {
    color: #f59e0b;
    font-size: 12px;
}

.review-text {
    font-size: 12.5px;
    color: var(--text-body);
    line-height: 1.4;
}

/* ==========================================================================
   9. 右侧吸顶操作卡片 (Right Sticky Actions Panel)
   ========================================================================== */
.skill-detail-right {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 84px; /* 贴合在顶栏之下 */
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 大型大数据指标卡片 */
.stats-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
    opacity: 0.8;
}

.stat-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(37, 99, 235, 0.25);
}

.stat-number {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

/* 右侧大操作区 */
.actions-panel-host {
    width: 100%;
}

.actions-panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.3s ease;
}

.actions-panel-card:hover {
    box-shadow: var(--shadow-sm);
}

.download-sub-info {
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: -2px;
    font-weight: 500;
}

.download-sub-info .free-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    border: 1px solid rgba(134, 239, 172, 0.6);
}

.panel-member-active {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    border: 1px solid rgba(134, 239, 172, 0.8);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.06);
}

.panel-member-active-icon {
    font-size: 18px;
}

.panel-member-active-info {
    flex: 1;
}

.panel-member-active-title {
    font-size: 13px;
    font-weight: 700;
    color: #15803d;
}

.panel-member-active-desc {
    font-size: 11px;
    color: #16a34a;
}

/* 渐变发光一键使用大按钮 */
.panel-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    padding: 10px 18px;
    border-radius: 99px;
    border: none;
    box-shadow: 0 4px 16px -2px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.panel-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -2px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
}

.panel-action-btn:active {
    transform: translateY(0) scale(0.98);
}

.panel-action-btn svg {
    fill: currentColor;
}

.action-tip {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

/* 升级 VIP 卡片 */
.vip-guide-card {
    background: linear-gradient(135deg, #fffbe6 0%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.06);
}

.vip-guide-title {
    font-size: 13px;
    font-weight: 800;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vip-guide-desc {
    font-size: 11.5px;
    color: #b45309;
    line-height: 1.45;
    font-weight: 500;
}

.vip-guide-link {
    font-size: 11.5px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    padding: 4px 12px;
    border-radius: 6px;
    align-self: flex-start;
    margin-top: 2px;
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.15);
    transition: all 0.2s ease;
}

.vip-guide-link:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
    transform: translateY(-1px);
}

/* 创作者详情卡片 */
.creator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.3s ease;
}

.creator-card:hover {
    box-shadow: var(--shadow-sm);
}

.creator-profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.creator-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

.creator-info-block {
    flex: 1;
    min-width: 0;
}

.creator-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.creator-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creator-badge {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.creator-stats-desc {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 1px;
}

.creator-bio {
    font-size: 12px;
    color: var(--text-body);
    line-height: 1.45;
}

.creator-actions {
    display: flex;
    gap: 8px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.btn-follow {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-follow:hover {
    background-color: #334155;
}

.btn-follow.followed {
    background-color: #e2e8f0;
    color: var(--text-body);
}

.btn-home {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-body);
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-home:hover {
    border-color: var(--border-hover);
    background-color: #f8fafc;
    color: var(--text-main);
}

/* ==========================================================================
   10. Toast 提示与响应式 (Toast & Responsive)
   ========================================================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #0f172a;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-success-icon {
    color: #10b981;
}

/* ==========================================================================
   11. ZIP 交付包可视化 (Zip Package Explorer)
   ========================================================================== */
.delivery-panel-host {
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.zip-explorer-container {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    height: 540px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    margin-bottom: 0;
}

.zip-explorer-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.zip-explorer-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
}

.zip-explorer-count {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.zip-fullscreen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.zip-fullscreen-btn:hover {
    color: #0f172a;
    background: #ffffff;
    border-color: #94a3b8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* 交付包全屏预览 - 顶级 Body 弹窗 */
.zip-modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: zipModalMaskFade 0.2s ease-out;
}

@keyframes zipModalMaskFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.zip-modal-dialog {
    width: 92vw;
    max-width: 1380px;
    height: 86vh;
    max-height: 880px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: zipModalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zipModalPopIn {
    from { transform: scale(0.96); opacity: 0.8; }
    to { transform: scale(1); opacity: 1; }
}

.zip-modal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.zip-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.zip-modal-badge {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 99px;
}

.zip-modal-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.zip-modal-close-btn:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

.zip-modal-content-host {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.zip-modal-content-host .zip-explorer-container {
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.zip-modal-content-host .zip-explorer-top-bar {
    display: none !important;
}

.zip-modal-content-host .zip-explorer-main {
    grid-template-columns: 260px 1fr !important;
}

/* 不支持在线预览的文件格式提示卡片 */
.zip-unsupported-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 320px;
    padding: 32px 24px;
    text-align: center;
    background: #ffffff;
    box-sizing: border-box;
}

.zip-unsupported-preview .unsupported-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #f1f5f9;
    margin-bottom: 14px;
}

.zip-unsupported-preview .unsupported-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.zip-unsupported-preview .unsupported-filepath {
    font-family: "Fira Code", monospace, SFMono-Regular, Consolas;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    word-break: break-all;
}

.zip-unsupported-preview .unsupported-desc {
    font-size: 12px;
    color: #94a3b8;
    max-width: 320px;
    line-height: 1.5;
}

.zip-explorer-main {
    display: grid;
    grid-template-columns: 210px 1fr;
    flex: 1;
    min-height: 0;
    background: #ffffff;
}

.zip-tree-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 6px;
}

.zip-tree-sidebar::-webkit-scrollbar,
.zip-tree-nodes::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.zip-tree-sidebar::-webkit-scrollbar-track,
.zip-tree-nodes::-webkit-scrollbar-track {
    background: transparent;
}
.zip-tree-sidebar::-webkit-scrollbar-thumb,
.zip-tree-nodes::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
.zip-tree-sidebar::-webkit-scrollbar-thumb:hover,
.zip-tree-nodes::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.zip-tree-node {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    margin-bottom: 1px;
}

.zip-tree-node:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.zip-tree-node.active {
    background: #e2e8f0;
    color: #0f172a;
    font-weight: 600;
    border-left: none;
    border-radius: 6px;
}

.chevron-holder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.tree-chevron {
    transition: transform 0.2s ease;
}

.zip-tree-node.directory.open .tree-chevron {
    transform: rotate(90deg);
}

.zip-tree-node.directory::before {
    display: none;
}

.zip-tree-subnodes {
    margin-left: 0;
    display: none;
    flex-direction: column;
    gap: 1px;
    border-left: none;
    padding-left: 0;
}

.zip-tree-subnodes.active {
    display: flex;
}

.tree-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.tree-svg-icon {
    display: block;
}

.tree-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12.5px;
}

/* 预览区 */
.zip-preview-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #ffffff;
}

.zip-preview-header {
    padding: 6px 14px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.zip-preview-file-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.preview-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.preview-file-path {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-lang-tag {
    display: none;
}

.zip-preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.md-mode-switch {
    display: inline-flex;
    background: #f1f5f9;
    padding: 2px;
    border-radius: 6px;
    gap: 2px;
    border: 1px solid #e2e8f0;
}

.md-mode-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 3px 9px;
    font-size: 11.5px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.md-mode-btn:hover {
    color: #0f172a;
}

.md-mode-btn.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.zip-preview-copy-btn {
    display: none;
}

.zip-preview-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: #ffffff;
}

.zip-markdown-rendered {
    padding: 10px 14px;
    color: #0f172a;
    background: #ffffff;
    min-height: 100%;
    overflow: visible;
    line-height: 1.55;
}

/* 高密度 Markdown 渲染元素间距（专用于 ZIP 交付包预览） */
.zip-markdown-rendered .html-content-display h1 {
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 6px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.zip-markdown-rendered .html-content-display h2 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 10px 0 4px 0;
}

.zip-markdown-rendered .html-content-display h3 {
    font-size: 13.5px;
    font-weight: 700;
    margin: 8px 0 4px 0;
}

.zip-markdown-rendered .html-content-display h4,
.zip-markdown-rendered .html-content-display h5,
.zip-markdown-rendered .html-content-display h6 {
    font-size: 12.5px;
    font-weight: 600;
    margin: 6px 0 3px 0;
}

.zip-markdown-rendered .html-content-display p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.zip-markdown-rendered .html-content-display ul,
.zip-markdown-rendered .html-content-display ol {
    margin: 4px 0;
    padding-left: 18px;
}

.zip-markdown-rendered .html-content-display li {
    margin: 2px 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.zip-markdown-rendered .html-content-display blockquote {
    margin: 6px 0;
    padding: 6px 12px;
    font-size: 12.5px;
    border-left: 3px solid #3b82f6;
    background: #f8fafc;
    border-radius: 0 6px 6px 0;
}

.zip-markdown-rendered .html-content-display table {
    margin: 6px 0;
    font-size: 12.5px;
}

.zip-markdown-rendered .html-content-display th,
.zip-markdown-rendered .html-content-display td {
    padding: 5px 10px;
}

.zip-markdown-rendered .html-content-display hr {
    margin: 8px 0;
}

.zip-markdown-rendered .html-content-display pre {
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 8px;
}

.zip-markdown-rendered::-webkit-scrollbar {
    width: 6px;
}
.zip-markdown-rendered::-webkit-scrollbar-track {
    background: #ffffff;
}
.zip-markdown-rendered::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

.md-rendered-content {
    color: #334155;
    font-size: 14px;
}

.md-rendered-content h1 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    border-bottom: none;
    padding-bottom: 0;
}

.md-rendered-content h2 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 16px;
    margin-bottom: 8px;
}

.md-rendered-content h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 14px;
    margin-bottom: 8px;
}

.md-rendered-content p {
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 12px;
    line-height: 1.65;
}

.md-rendered-content ul {
    margin-bottom: 12px;
    padding-left: 20px;
}

.md-rendered-content li {
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 4px;
}

.md-code-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 14px 0;
    overflow-x: auto;
}

.md-code-block code {
    font-family: "Fira Code", Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 13px;
    color: #334155;
    line-height: 1.65;
    background: transparent !important;
    border: none;
    padding: 0;
}

.md-inline-code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    border: 1px solid #e2e8f0;
}

.zip-preview-body::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.zip-preview-body::-webkit-scrollbar-track {
    background: transparent;
}
.zip-preview-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}
.zip-preview-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.zip-code-viewer {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    padding: 8px 0;
    font-family: "Fira Code", JetBrains Mono, Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
}

.code-line-row {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    padding: 1px 12px;
    transition: background 0.1s ease;
}

.code-line-row:hover {
    background: #f8fafc;
}

.code-line-num {
    min-width: 36px;
    flex-shrink: 0;
    text-align: right;
    padding-right: 10px;
    color: #94a3b8;
    user-select: none;
    border-right: 1px solid #e5e7eb;
    font-size: 11.5px;
    font-family: inherit;
}

.code-line-text {
    flex: 1;
    min-width: 0;
    padding-left: 10px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #0f172a;
    font-family: inherit;
}

/* ==========================================================================
   12. Toast 提示与响应式 (Toast & Responsive)
   ========================================================================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #0f172a;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-success-icon {
    color: #10b981;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .skill-detail-main {
        flex-direction: column;
        gap: 24px;
    }
    
    .skill-detail-right {
        width: 100%;
        position: static;
    }
    
    .solved-card-grid, .usage-grid {
        grid-template-columns: 1fr;
    }

    .zip-explorer-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .zip-tree-sidebar {
        height: 200px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .zip-preview-pane {
        height: 280px;
        min-height: 0;
    }
}

/* ==========================================================================
   13. 相关推荐板块样式与卡片混合支持 (Related Recommendations & Cards)
   ========================================================================== */
.related-skills-section {
    margin-top: 48px;
    border-top: 1px dashed var(--border-color);
    padding-top: 40px;
}

.related-skills-section .section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 24px;
    border-bottom: none;
    padding-bottom: 0;
    position: relative;
    padding-left: 12px;
}

.related-skills-section .section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-hover));
    border-radius: 99px;
}

.related-skills-section .section-title::after {
    display: none; /* 覆盖旧有 title 渐变下划线 */
}

.related-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

/* 提示词/技能卡片样式在详情页的适配（支持卡片混排与高保真还原） */
.prompt-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.prompt-card:hover {
    border-color: rgba(0, 101, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.prompt-card-type-tag-positioned {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background-color: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    line-height: 1.2;
}

.prompt-card-category-tag-positioned {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 101, 255, 0.12);
}

.prompt-card-header-section {
    height: 120px;
    padding: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-color: #f1f5f9;
    overflow: hidden;
    text-decoration: none;
}

.prompt-card-logo-container {
    height: 38px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 2;
}

.prompt-card-description {
    margin-top: 4px;
}

.prompt-card-description-text {
    height: 36px;
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prompt-card-content-section {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.prompt-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    text-decoration: none;
}

.prompt-card-title-link:hover {
    color: var(--primary-color);
}

.prompt-card-payment-type {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.prompt-card-payment-type-free {
    background-color: #dcfce7;
    color: #16a34a;
}

.prompt-card-payment-type-payment {
    background-color: #fef9c3;
    color: #ca8a04;
}

.prompt-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prompt-card-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prompt-card-user-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.prompt-card-user-name {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.prompt-card-stats {
    display: flex;
    gap: 8px;
}

.prompt-card-stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-muted);
}

.prompt-card-stat-icon {
    color: var(--text-muted);
    width: 11px;
    height: 11px;
}

.prompt-card-params {
    margin-top: 2px;
}

.prompt-card-param-scroll-container {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.prompt-card-param-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.prompt-card-param-tag {
    padding: 1px 6px;
    background-color: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-body);
    border-radius: 99px;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
}

.prompt-card-actions {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
}

.prompt-card-price-section {
    display: flex;
    align-items: center;
    flex: 1;
}

.prompt-card-price-value {
    font-size: 12.5px;
    font-weight: 700;
}

.prompt-card-price-free {
    color: #10b981;
}

.prompt-card-price-vip {
    color: #d97706;
}

.prompt-card-try-button {
    padding: 3px 12px;
    background-color: transparent;
    border: 1px solid #e2e8f0;
    color: var(--text-body);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.prompt-card:hover .prompt-card-try-button {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 101, 255, 0.2);
}

.prompt-card:hover .prompt-card-try-button:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: scale(1.04);
}

@media (max-width: 1024px) {
    .related-skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .related-skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .example-compare {
        flex-direction: column;
    }
    .example-flow-step {
        flex-direction: row;
        padding: 10px 0;
    }
    .flow-line {
        width: 40px;
        height: 2px;
        background: repeating-linear-gradient(to right, var(--border-color) 0px, var(--border-color) 4px, transparent 4px, transparent 8px);
        margin: 0 4px;
    }
    .flow-arrow {
        transform: rotate(90deg);
    }
}

/* ==========================================================================
   14. 安装方式 (LobeHub 风格 Segmented Controls + Platform Tabs + Collapsables)
   ========================================================================== */
/* Segment Control (Agent vs Human) */
.install-segment-control {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.segment-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.segment-btn:hover {
    color: var(--text-main);
}

.segment-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Mode container panels */
.install-mode-content {
    display: none;
    animation: fadeInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.install-mode-content.active {
    display: block;
}

/* 我是 Agent */
.install-agent-instruction {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 12px;
}

.agent-prompt-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-body);
}

.copy-prompt-btn {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    background: #18181b;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-prompt-btn:hover {
    background: #27272a;
    transform: translateY(-1px);
}

.copy-prompt-btn:active {
    transform: translateY(1px);
}

.copy-prompt-btn.copied {
    background: #10b981;
}

/* 我是 Human - Platform Tabs */
.install-platform-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.platform-tab {
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-body);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.platform-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.platform-tab.active {
    background: #eff6ff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Steps list */
.install-steps-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.install-step-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.install-step {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.install-step-icon {
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.install-step-body h4 {
    margin: 0 0 4px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.install-step-body p {
    margin: 0;
    font-size: 12.5px;
    color: var(--text-body);
    line-height: 1.5;
}

/* Collapsable panel box */
.install-collapsable-box {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 12px;
    background: #ffffff;
    overflow: hidden;
}

.collapsable-box-header {
    background: #f8fafc;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.collapsable-box-header:hover {
    background: #f1f5f9;
}

.collapse-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.collapsable-box-body {
    display: none;
    padding: 14px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}

.install-collapsable-box.open .collapsable-box-body {
    display: block;
}

/* Code Copy wrapper */
.code-copy-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-copy-wrapper pre {
    margin: 0;
    padding: 12px 48px 12px 12px;
    background: #f8fafc;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 11px;
    line-height: 1.5;
    overflow-x: auto;
    color: var(--text-body);
}

.code-copy-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.code-copy-btn:hover {
    color: var(--text-main);
    border-color: #cbd5e1;
    background: #f8fafc;
}

.code-copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

/* Platform content container hidden state */
.platform-content {
    display: none;
}

.platform-content.active {
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .install-segment-control {
        display: flex;
        width: 100%;
    }

    .segment-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ==========================================================================
   10. 使用示例、独门之处与用法样式
   ========================================================================== */
.example-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.scenario-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.2s;
}

.scenario-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.scenario-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
    background: #eff6ff;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scenario-text {
    margin: 0;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
    font-weight: 500;
    font-style: italic;
}

/* ✨ 主要特性（Features List - 每条一行） */
.unique-features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.unique-feature-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.15s ease;
}

.unique-feature-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.unique-feature-icon {
    color: #10b981;
    background: #ecfdf5;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    flex-shrink: 0;
    border: 1px solid #d1fae5;
}

.unique-feature-body strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
}

/* 💡 解决的痛点 (Pain Points Solved Table - 原生渲染，无色彩填充) */
.html-content-display.skill-pain-points {
    margin-top: 12px;
    margin-bottom: 24px;
}

.html-content-display.skill-pain-points table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.html-content-display.skill-pain-points th {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.html-content-display.skill-pain-points td {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
    vertical-align: middle;
}

/* ⭐ 亮点（Highlights List - 每条一行） */
.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.highlight-item {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.15s ease;
}

.highlight-item:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.highlight-icon {
    color: #f59e0b;
    background: #fef3c7;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.highlight-body {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
}

/* 📝 使用示例 (Usage Examples) */
.usage-example-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1.5px 4px rgba(15, 23, 42, 0.02);
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.usage-example-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.usage-example-item h4 {
    margin: 0 0 10px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.usage-example-item h4::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #3b82f6;
    border-radius: 99px;
}

.skill-usage-example {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}

.skill-usage-example code {
    font-family: "Fira Code", monospace, SFMono-Regular, Consolas;
    font-size: 11.5px;
    background: #f1f5f9;
    color: #0284c7;
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}



/* ===== 交付包权限蒙层 (Delivery Glass Lock Mask) ===== */
#panel-delivery {
  position: relative;
  min-height: 320px;
}

.delivery-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.delivery-mask p {
  margin: 0;
  font-size: 16px;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.delivery-mask .panel-action-btn {
  max-width: 260px;
}

.related-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.related-skill-card {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
