/* 学习中心公共样式 */
body.lc-page { padding-top: 68px; }
.lc-container { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.lc-main { padding: 26px 0 30px; min-height: 60vh; }
.lc-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 700;
    border: 1px solid rgba(124,92,255,0.35); color: var(--brand); background: rgba(255,255,255,0.55);
    transition: all .2s ease; cursor: pointer;
}
.lc-btn:hover { background: rgba(124,92,255,0.08); transform: translateY(-1px); }
.lc-btn-primary { background: var(--grad); color: #fff; border-color: rgba(255,255,255,0.45); box-shadow: 0 8px 20px rgba(124,92,255,0.26); }
.lc-btn-primary:hover { color: #fff; background: var(--grad); box-shadow: 0 12px 26px rgba(124,92,255,0.34); }

/* Hero */
.lc-hero { padding: 44px 0 14px; }
.lc-hero-inner {
    position: relative; overflow: hidden; text-align: center; padding: 46px 34px 38px;
    background: rgba(255,255,255,0.46); border: 1px solid rgba(255,255,255,0.7); border-radius: 28px;
    backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 16px 50px rgba(80,70,200,0.10);
}
.lc-hero-inner::before {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    right: -90px; top: -160px; background: radial-gradient(circle, rgba(124,92,255,0.22), transparent 65%);
    pointer-events: none;
}
.lc-eyebrow {
    display: inline-block; padding: 6px 15px; border-radius: 999px; font-size: 12px; font-weight: 800;
    letter-spacing: .12em; color: var(--brand); background: rgba(124,92,255,0.10); margin-bottom: 14px;
}
.lc-hero h1 { font-size: 40px; line-height: 1.2; letter-spacing: -.6px; font-weight: 800; }
.lc-hero-sub { color: var(--text-soft); font-size: 16px; margin-top: 10px; }
.lc-stats { display: flex; justify-content: center; gap: 26px; margin-top: 20px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.lc-stats b { color: var(--brand); font-size: 18px; margin-right: 3px; }

/* 搜索 */
.lc-search {
    display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 22px auto 0;
    padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(255,255,255,0.9);
    border: 1px solid rgba(124,92,255,0.20); box-shadow: 0 8px 24px rgba(80,70,200,0.08);
}
.lc-search-icon { color: var(--muted); font-size: 20px; line-height: 1; }
.lc-search input[type=search] {
    flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 14.5px; color: var(--text);
}
.lc-search input::placeholder { color: var(--muted); }
.lc-search button {
    flex: 0 0 auto; height: 38px; padding: 0 20px; border: 0; border-radius: 999px;
    background: var(--grad); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.lc-search button:hover { filter: brightness(1.04); }

/* 两栏布局 */
.lc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.lc-content-col { min-width: 0; }
.lc-sidebar { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 116px); overflow: auto; }
.lc-side-card {
    background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.75); border-radius: 18px;
    padding: 14px; backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 10px 30px rgba(80,70,200,0.07);
}
.lc-side-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); padding: 4px 8px 10px; }
.lc-side-close { display: none; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.lc-tree { list-style: none; font-size: 14px; }
.lc-tree ul { list-style: none; }
.lc-tree a {
    display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px;
    color: var(--text-soft); font-weight: 500; line-height: 1.35; transition: all .16s ease;
}
.lc-tree a:hover { background: rgba(124,92,255,0.07); color: var(--brand); }
.lc-tree a.is-active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(124,92,255,0.22); }
.lc-tree a.is-in-path { color: var(--brand); font-weight: 600; }
.lc-tree-home { margin-bottom: 2px; }
.lc-tree-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; flex: 0 0 auto; }
.lc-tree a.is-active .lc-tree-dot { opacity: .9; background: #fff; }
.lc-tree-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-tree-count { font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(124,92,255,0.09); color: var(--brand); flex: 0 0 auto; }
.lc-tree a.is-active .lc-tree-count { background: rgba(255,255,255,0.24); color: #fff; }
.lc-tree-sub { margin-left: 15px; padding-left: 9px; border-left: 1px dashed rgba(124,92,255,0.18); }
.lc-tree-sub a { padding-top: 6px; padding-bottom: 6px; font-size: 13.5px; }

/* 面包屑 */
.lc-breadcrumb { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 2px 0 16px; }
.lc-breadcrumb a { color: var(--text-soft); }
.lc-breadcrumb a:hover { color: var(--brand); }
.lc-bc-sep { opacity: .45; }
.lc-bc-current { color: var(--text); font-weight: 600; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 栏目头 */
.lc-cat-head { padding: 24px 26px; border-radius: 20px; background: rgba(255,255,255,0.52); border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 10px 32px rgba(80,70,200,0.07); }
.lc-cat-eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: var(--brand); text-transform: uppercase; }
.lc-cat-head h1 { font-size: 32px; line-height: 1.25; letter-spacing: -.4px; margin-top: 6px; }
.lc-cat-head p { color: var(--text-soft); margin-top: 8px; font-size: 15px; }
.lc-cat-stat { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.lc-cat-stat span { padding: 3px 10px; border-radius: 999px; background: rgba(124,92,255,0.07); color: var(--brand); font-weight: 600; }

/* 子栏目 */
.lc-subcat-section { margin-top: 22px; }
.lc-sub-title { font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.lc-subcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.lc-subcat {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 15px;
    background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.8); border-radius: 13px;
    transition: all .2s ease;
}
.lc-subcat:hover { border-color: rgba(124,92,255,0.35); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(80,70,200,0.10); }
.lc-subcat-name { font-size: 14px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-subcat-count { font-size: 11.5px; color: var(--brand); flex: 0 0 auto; }

/* 板块 */
.lc-section { margin-top: 34px; }
.lc-section-tight { margin-top: 24px; }
.lc-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.lc-section-kicker { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: var(--brand); text-transform: uppercase; }
.lc-section-head h2 { font-size: 24px; letter-spacing: -.3px; margin-top: 2px; }
.lc-section-more { font-size: 13px; color: var(--muted); white-space: nowrap; }
a.lc-section-more:hover { color: var(--brand); }

/* 栏目卡片 */
.lc-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.lc-cat-card {
    display: flex; gap: 15px; padding: 20px; border-radius: 18px;
    background: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.8);
    transition: all .22s ease;
}
.lc-cat-card:hover { transform: translateY(-3px); border-color: rgba(124,92,255,0.32); box-shadow: 0 16px 36px rgba(80,70,200,0.12); }
.lc-cat-icon {
    width: 46px; height: 46px; border-radius: 13px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
    font-size: 22px; background: rgba(124,92,255,0.10); border: 1px solid rgba(124,92,255,0.14);
}
.lc-cat-body { min-width: 0; flex: 1; }
.lc-cat-body h3 { font-size: 18px; letter-spacing: -.2px; }
.lc-cat-body p { font-size: 13px; color: var(--text-soft); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-cat-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.lc-cat-more { color: var(--brand); font-weight: 700; }
.lc-cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.lc-cat-chips span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(124,92,255,0.07); color: var(--brand); }

/* 文章卡片 */
.lc-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lc-card {
    display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
    background: rgba(255,255,255,0.58); border: 1px solid rgba(255,255,255,0.82);
    transition: all .22s ease;
}
.lc-card:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.32); box-shadow: 0 18px 40px rgba(80,70,200,0.14); }
.lc-card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad); }
.lc-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.lc-card:hover .lc-card-cover img { transform: scale(1.035); }
.lc-card-cover.is-fallback { display: flex; align-items: center; justify-content: center; }
.lc-card-cover.is-fallback span { font-size: 46px; font-weight: 800; color: rgba(255,255,255,0.92); }
.lc-pin { position: absolute; left: 10px; top: 10px; font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(29,33,41,0.55); color: #fff; backdrop-filter: blur(6px); }
.lc-card-body { display: flex; flex-direction: column; flex: 1; padding: 15px 16px 14px; min-width: 0; }
.lc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.lc-card-cat { color: var(--brand); font-weight: 700; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-card-body h3 { font-size: 16.5px; line-height: 1.4; margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-card-body p { font-size: 12.5px; color: var(--text-soft); margin-top: 7px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; font-size: 11.5px; color: var(--muted); }
.lc-read-more { color: var(--brand); font-weight: 700; }
.lc-views { color: var(--muted); }

/* 搜索结果 */
.lc-search-head { padding: 6px 0 18px; }
.lc-search-head h1 { font-size: 28px; letter-spacing: -.4px; }
.lc-search-head p { color: var(--text-soft); font-size: 14px; margin-top: 6px; }
.lc-search-head .lc-search { margin-left: 0; margin-right: 0; }
.lc-result-list { display: flex; flex-direction: column; gap: 12px; }
.lc-result {
    display: block; padding: 18px 20px; border-radius: 15px; background: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.8); transition: all .2s ease;
}
.lc-result:hover { border-color: rgba(124,92,255,0.32); transform: translateX(3px); box-shadow: 0 10px 26px rgba(80,70,200,0.10); }
.lc-result-meta { display: flex; align-items: center; gap: 12px; font-size: 11.5px; color: var(--muted); }
.lc-result h2 { font-size: 17px; margin-top: 6px; line-height: 1.4; }
.lc-result p { font-size: 13px; color: var(--text-soft); margin-top: 6px; }
mark { background: rgba(251,191,36,0.35); color: inherit; border-radius: 3px; padding: 0 2px; }

/* 空状态 / 提示 */
.lc-empty { text-align: center; padding: 58px 24px; background: rgba(255,255,255,0.45); border: 1px dashed rgba(124,92,255,0.22); border-radius: 20px; }
.lc-empty-icon { font-size: 40px; margin-bottom: 8px; }
.lc-empty h3, .lc-empty h1 { font-size: 20px; }
.lc-empty p { color: var(--text-soft); font-size: 14px; margin-top: 6px; }
.lc-empty .lc-search { margin: 18px auto; }
.lc-error-wrap { padding-top: 40px; }
.lc-home-notice { margin-top: 18px; padding: 13px 18px; border-radius: 12px; background: rgba(124,92,255,0.08); color: var(--brand); font-size: 13.5px; border: 1px solid rgba(124,92,255,0.15); }
.lc-alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }
.lc-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.lc-alert-error { background: #fff1f2; color: #b42318; border: 1px solid #fecdd3; }
.lc-alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.lc-alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* 分页 */
.lc-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 28px 0 8px; }
.lc-pager-btn, .lc-pager-num { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13px; color: var(--text-soft); background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8); }
.lc-pager-btn:hover, .lc-pager-num:hover { color: var(--brand); border-color: rgba(124,92,255,0.3); }
.lc-pager-num.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(124,92,255,0.24); }
.is-disabled { opacity: .45; pointer-events: none; }
.lc-pager-gap { color: var(--muted); padding: 0 2px; }

/* 预览提示 */
.lc-preview-banner { padding: 11px 16px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; margin-bottom: 16px; }
.lc-preview-banner a { color: #b45309; text-decoration: underline; font-weight: 600; }

/* 移动端侧栏 */
.lc-side-toggle {
    display: none; align-items: center; gap: 6px; height: 38px; padding: 0 15px; margin-bottom: 12px;
    border-radius: 999px; border: 1px solid rgba(124,92,255,0.25); background: rgba(255,255,255,0.7);
    color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
@media (max-width: 1000px) {
    .lc-layout { grid-template-columns: 1fr; }
    .lc-side-toggle { display: inline-flex; }
    .lc-sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); z-index: 1500;
        transform: translateX(-102%); transition: transform .28s ease; max-height: none;
        padding: 12px; background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
        box-shadow: 0 20px 60px rgba(20,20,40,0.22); overflow: auto;
    }
    .lc-sidebar.is-open { transform: translateX(0); }
    .lc-side-card { background: transparent; border: 0; box-shadow: none; padding: 0; }
    .lc-side-close { display: block; }
    body.lc-side-lock { overflow: hidden; }
    .lc-side-overlay { position: fixed; inset: 0; z-index: 1450; background: rgba(20,20,40,0.38); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: all .25s ease; }
    .lc-side-overlay.is-open { opacity: 1; visibility: visible; }
}
@media (max-width: 700px) {
    .lc-container { padding: 0 18px; }
    .lc-hero { padding: 24px 0 8px; }
    .lc-hero-inner { padding: 34px 20px 28px; border-radius: 22px; }
    .lc-hero h1 { font-size: 29px; }
    .lc-hero-sub { font-size: 14px; }
    .lc-stats { gap: 14px; }
    .lc-cat-head h1 { font-size: 26px; }
    .lc-cat-grid, .lc-card-grid { grid-template-columns: 1fr; }
    .lc-section-head { align-items: flex-start; }
    .lc-section-head h2 { font-size: 21px; }
    .lc-bc-current { max-width: 180px; }
}