/* ============================================================
   AI Skill 广场 — .sk-* component styles
   ============================================================ */

/* --- Layout wrapper --- */
.sk-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 32px 64px;
}

/* ============================================================
   Hero
   ============================================================ */
.sk-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    border-radius: 20px;
    padding: 64px 56px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.sk-hero::before {
    content: '';
    width: 300px;
    height: 300px;
    background: rgba(59, 126, 246, .30);
    border-radius: 50%;
    position: absolute;
    top: -100px;
    left: -100px;
    filter: blur(80px);
    pointer-events: none;
}
.sk-hero::after {
    content: '';
    width: 200px;
    height: 200px;
    background: rgba(124, 58, 237, .40);
    border-radius: 50%;
    position: absolute;
    bottom: -60px;
    right: -60px;
    filter: blur(60px);
    pointer-events: none;
}
.sk-hero-inner {
    position: relative;
    z-index: 1;
}
.sk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, .90);
    font-weight: 600;
    letter-spacing: .02em;
    margin-bottom: 4px;
}
.sk-hero h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    margin: 12px 0 8px;
    line-height: 1.2;
}
.sk-hero-sub {
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 600px;
}
.sk-hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.sk-hero-stat {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 14px 20px;
    backdrop-filter: blur(10px);
    min-width: 110px;
}
.sk-hero-stat__num {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    display: block;
}
.sk-hero-stat__label {
    color: rgba(255, 255, 255, .60);
    font-size: 11px;
    margin-top: 4px;
    display: block;
}
.sk-search {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .20);
    border-radius: 10px;
    display: flex;
    align-items: center;
    height: 48px;
    max-width: 560px;
    overflow: hidden;
}
.sk-search input[type="text"] {
    background: transparent;
    color: #fff;
    flex: 1;
    padding: 0 16px;
    font-size: 14px;
    border: none;
    outline: none;
    font-family: var(--font, 'Noto Sans SC', system-ui, sans-serif);
}
.sk-search input[type="text"]::placeholder {
    color: rgba(255, 255, 255, .40);
}
.sk-search-btn {
    background: #3b7ef6;
    color: #fff;
    border: none;
    padding: 0 24px;
    height: 100%;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
    font-family: inherit;
}
.sk-search-btn:hover {
    background: #2563d4;
}

/* ============================================================
   Featured Spotlight
   ============================================================ */
.sk-spotlight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.sk-spotlight-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text, #1a1d2e);
    margin: 0;
}
.sk-spotlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 36px;
}
.sk-featured {
    background: var(--bg2, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.07));
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.sk-featured:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover, 0 4px 12px rgba(59,126,246,.10));
    border-color: rgba(59, 126, 246, .25);
}
.sk-featured__banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sk-featured__banner--blue   { background: linear-gradient(135deg, #3b7ef6, #7c3aed); }
.sk-featured__banner--green  { background: linear-gradient(135deg, #10b981, #3b7ef6); }
.sk-featured__banner--amber  { background: linear-gradient(135deg, #d97706, #ef4444); }
.sk-featured__banner--purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.sk-featured__icon {
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.20));
    line-height: 1;
}
.sk-featured__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, .40);
    letter-spacing: .02em;
}
.sk-featured__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sk-featured__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1a1d2e);
    margin: 0 0 4px;
    line-height: 1.3;
}
.sk-featured__desc {
    font-size: 12px;
    color: var(--text3, #9499b0);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex: 1;
}
.sk-featured__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
}
.sk-diff-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}
.sk-diff-badge--beginner     { background: rgba(16,185,129,.10); color: #10b981; }
.sk-diff-badge--intermediate { background: rgba(59,126,246,.08); color: #3b7ef6; }
.sk-diff-badge--advanced     { background: rgba(239,68,68,.10);  color: #ef4444; }
.sk-featured__link {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue, #3b7ef6);
    text-decoration: none;
    transition: color .2s;
}
.sk-featured__link:hover {
    color: var(--blue2, #2563d4);
}

/* ============================================================
   Category Filter Bar
   ============================================================ */
.sk-cats-wrap {
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.sk-cats-wrap::-webkit-scrollbar { display: none; }
.sk-cats {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    padding-bottom: 2px;
}
.sk-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border-radius: 100px;
    border: 1px solid var(--border, rgba(0,0,0,.07));
    background: var(--bg2, #fff);
    color: var(--text2, #5a5e72);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all .2s;
}
.sk-cat:hover {
    border-color: var(--blue, #3b7ef6);
    color: var(--blue, #3b7ef6);
    background: var(--blue-dim, rgba(59,126,246,.08));
}
.sk-cat--active {
    background: var(--blue, #3b7ef6);
    border-color: var(--blue, #3b7ef6);
    color: #fff;
    font-weight: 600;
}
.sk-cat--active:hover {
    background: var(--blue2, #2563d4);
    border-color: var(--blue2, #2563d4);
    color: #fff;
}

/* ============================================================
   Secondary Filter Row
   ============================================================ */
.sk-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--bg2, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.07));
    border-radius: 10px;
}
.sk-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sk-filter-label {
    font-size: 12px;
    color: var(--text3, #9499b0);
    margin-right: 2px;
    white-space: nowrap;
}
.sk-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 12px;
    border-radius: 100px;
    border: 1px solid var(--border, rgba(0,0,0,.07));
    background: var(--bg, #f8f9fb);
    color: var(--text2, #5a5e72);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
}
.sk-pill-btn:hover {
    border-color: var(--blue, #3b7ef6);
    color: var(--blue, #3b7ef6);
}
.sk-pill-btn--active {
    background: var(--blue, #3b7ef6);
    border-color: var(--blue, #3b7ef6);
    color: #fff;
    font-weight: 600;
}
.sk-pill-btn--active:hover {
    background: var(--blue2, #2563d4);
    border-color: var(--blue2, #2563d4);
    color: #fff;
}
.sk-filter-count {
    font-size: 12px;
    color: var(--text3, #9499b0);
    white-space: nowrap;
}
.sk-filter-count strong {
    color: var(--text, #1a1d2e);
    font-weight: 600;
}

/* ============================================================
   Skill Grid + Cards
   ============================================================ */
.sk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sk-card {
    background: var(--bg2, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.07));
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.sk-card:hover {
    border-color: rgba(59, 126, 246, .25);
    box-shadow: var(--shadow-hover, 0 4px 12px rgba(59,126,246,.10));
    transform: translateY(-2px);
}
.sk-card__banner {
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sk-card__banner--blue   { background: linear-gradient(135deg, #3b7ef6, #7c3aed); }
.sk-card__banner--green  { background: linear-gradient(135deg, #10b981, #3b7ef6); }
.sk-card__banner--amber  { background: linear-gradient(135deg, #d97706, #ef4444); }
.sk-card__banner--purple { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.sk-card__icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
    line-height: 1;
}
.sk-card__free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 100px;
}
.sk-card__free-badge--free {
    background: rgba(16, 185, 129, .90);
    color: #fff;
}
.sk-card__free-badge--pro {
    background: rgba(124, 58, 237, .90);
    color: #fff;
}
.sk-card__diff-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(0,0,0,.30);
    color: #fff;
    backdrop-filter: blur(4px);
}
.sk-card__body {
    padding: 16px 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.sk-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1a1d2e);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.sk-card__desc {
    font-size: 12px;
    color: var(--text3, #9499b0);
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.55;
}
.sk-card__tools {
    font-size: 11px;
    color: var(--text3, #9499b0);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.sk-tool-label {
    color: var(--text3, #9499b0);
    margin-right: 2px;
    white-space: nowrap;
}
.sk-tool-badge {
    display: inline-block;
    background: var(--bg3, #f0f2f5);
    color: var(--text2, #5a5e72);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}
.sk-tool-badge--link {
    text-decoration: none;
    cursor: pointer;
    transition: .15s;
    color: #3b7ef6;
    background: rgba(59,126,246,.08);
    border: 1px solid rgba(59,126,246,.12);
}
.sk-tool-badge--link:hover {
    background: rgba(59,126,246,.14);
    border-color: rgba(59,126,246,.3);
}
.sk-tool-more {
    font-size: 10px;
    color: var(--text3, #9499b0);
    padding: 2px 4px;
}
.sk-card__stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text3, #9499b0);
    margin-top: auto;
    padding-top: 12px;
}
.sk-stars {
    color: #d97706;
    font-size: 11px;
}
.sk-stats-left {
    display: flex;
    align-items: center;
    gap: 4px;
}
.sk-duration-badge {
    background: var(--bg3, #f0f2f5);
    color: var(--text2, #5a5e72);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}
.sk-card__footer {
    padding: 14px 20px 16px;
    border-top: 1px solid var(--border, rgba(0,0,0,.07));
    background: var(--bg, #f8f9fb);
    margin-top: 14px;
}
.sk-start-btn {
    width: 100%;
    height: 36px;
    background: var(--bg2, #fff);
    border: 1px solid var(--border2, rgba(0,0,0,.13));
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2, #5a5e72);
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.sk-start-btn:hover {
    background: var(--blue, #3b7ef6);
    border-color: var(--blue, #3b7ef6);
    color: #fff;
}

/* ============================================================
   Empty State
   ============================================================ */
.sk-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: var(--text3, #9499b0);
}
.sk-empty__icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}
.sk-empty__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text2, #5a5e72);
    margin: 0 0 8px;
}
.sk-empty__sub {
    font-size: 13px;
    margin: 0;
}

/* ============================================================
   Pagination
   ============================================================ */
.sk-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 36px;
}
.sk-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(0,0,0,.07));
    background: var(--bg2, #fff);
    color: var(--text2, #5a5e72);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .18s;
    cursor: pointer;
}
.sk-page-btn:hover {
    border-color: var(--blue, #3b7ef6);
    color: var(--blue, #3b7ef6);
}
.sk-page-btn--active {
    background: var(--blue, #3b7ef6);
    border-color: var(--blue, #3b7ef6);
    color: #fff;
    font-weight: 600;
}
.sk-page-btn--active:hover {
    background: var(--blue2, #2563d4);
    border-color: var(--blue2, #2563d4);
    color: #fff;
}
.sk-page-btn--disabled {
    opacity: .4;
    pointer-events: none;
}

/* ============================================================
   Bottom CTA
   ============================================================ */
.sk-cta {
    margin-top: 48px;
    background: #0f172a;
    border-radius: 16px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sk-cta::before {
    content: '';
    width: 280px;
    height: 280px;
    background: rgba(59, 126, 246, .18);
    border-radius: 50%;
    position: absolute;
    top: -100px;
    left: -60px;
    filter: blur(70px);
    pointer-events: none;
}
.sk-cta::after {
    content: '';
    width: 200px;
    height: 200px;
    background: rgba(124, 58, 237, .22);
    border-radius: 50%;
    position: absolute;
    bottom: -80px;
    right: -40px;
    filter: blur(60px);
    pointer-events: none;
}
.sk-cta-inner {
    position: relative;
    z-index: 1;
}
.sk-cta__title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}
.sk-cta__sub {
    font-size: 15px;
    color: rgba(255, 255, 255, .70);
    margin: 0 0 32px;
}
.sk-cta__btns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}
.sk-cta__btn-outline {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, .45);
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
    font-family: inherit;
}
.sk-cta__btn-outline:hover {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .70);
}
.sk-cta__btn-primary {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 28px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #3b7ef6, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(59, 126, 246, .35);
}
.sk-cta__btn-primary:hover {
    opacity: .90;
    transform: translateY(-1px);
}

/* ============================================================
   Section heading utility
   ============================================================ */
.sk-section-mb { margin-bottom: 12px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .sk-grid,
    .sk-spotlight {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .sk-hero {
        padding: 40px 24px;
        border-radius: 14px;
    }
    .sk-hero h1 {
        font-size: 26px;
    }
    .sk-hero-stats {
        gap: 10px;
    }
    .sk-hero-stat {
        padding: 10px 14px;
    }
    .sk-hero-stat__num {
        font-size: 18px;
    }
    .sk-spotlight {
        grid-template-columns: 1fr;
    }
    .sk-wrap {
        padding: 20px 16px 48px;
    }
    .sk-cta {
        padding: 40px 24px;
    }
    .sk-cta__title {
        font-size: 20px;
    }
}
@media (max-width: 640px) {
    .sk-grid {
        grid-template-columns: 1fr;
    }
    .sk-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
}
