/* ===========================================================================
   AgentWork — 用户侧前端
   清新简洁 · 近单色（黑 / 白 / 灰 + 一抹克制柔紫）
   去掉彩虹棱镜，单色光 + 克制动效（Moonshot 式）
   ========================================================================= */

:root {
    color-scheme: light;

    /* 字体 */
    --font-sans: "Sora Variable", "Sora", -apple-system, BlinkMacSystemFont,
        "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    --font-mono: "Space Mono", ui-monospace, "JetBrains Mono", Consolas, monospace;

    /* 灰阶 */
    --bg: #fafafa;
    --panel: #ffffff;
    --panel-soft: #fafafa;
    --panel-glass: rgba(255, 255, 255, 0.7);
    --text: #0c0c0f;
    --muted: #74747e;
    --muted-strong: #45454d;
    --line: #ececee;
    --soft-line: #f3f3f4;
    --line-strong: #dededf;

    /* 主操作色：墨黑。点缀：克制柔紫（仅交互态、小面积） */
    --accent: #111114;
    --accent-dark: #000000;
    --purple: #6b5cf0;
    --purple-deep: #5848d8;
    --purple-soft: #f1effb;
    --purple-line: #e0dcf6;
    --prism-cyan: #39d9ff;
    --prism-blue: #3d73ff;
    --prism-violet: #7a5cff;
    --prism-pink: #ff4fc4;
    --prism-red: #ff5b5f;
    --prism-gold: #ffbc42;
    --prism-green: #65e6a9;
    --prism-aurora: linear-gradient(110deg,
        var(--prism-cyan) 0%,
        var(--prism-blue) 18%,
        var(--prism-violet) 34%,
        var(--prism-pink) 50%,
        var(--prism-red) 64%,
        var(--prism-gold) 80%,
        var(--prism-green) 100%);

    /* 暗色（日食/封面用，纯单色光） */
    --ink: #0a0a0e;
    --ink-2: #101015;

    /* 语义色 */
    --amber: #8a5a12;
    --red: #b42318;
    --red-bg: #fdf4f4;
    --green-bg: #f4f4f5;

    --sidebar: rgba(255, 255, 255, 0.82);

    /* 阴影（更轻） */
    --shadow: 0 12px 30px rgba(15, 15, 25, 0.06);
    --shadow-subtle: 0 6px 18px rgba(15, 15, 25, 0.04);
    --shadow-card: 0 1px 2px rgba(15, 15, 25, 0.04);
    --ring: 0 0 0 3px rgba(107, 92, 240, 0.16);

    --radius: 14px;
    --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-sans);
    background:
        linear-gradient(180deg, rgba(122, 92, 255, 0.025), transparent 420px),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ----- 背景层（极简，近乎纯净，仅一层极淡网格） ------------------------- */
.bg-cosmos {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(125deg, transparent 0 18%, rgba(57, 217, 255, 0.035) 24%, transparent 32%),
        linear-gradient(145deg, transparent 0 52%, rgba(255, 79, 196, 0.032) 60%, transparent 70%),
        radial-gradient(60% 50% at 50% -10%, rgba(15, 15, 30, 0.025), transparent 60%);
}

.bg-cosmos::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 15, 35, 0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 15, 35, 0.022) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 100%);
    mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 100%);
}

/* ----- 控件基础 ----------------------------------------------------------- */
button, .button-link, input, select, textarea { font: inherit; }

button, .button-link {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0 16px;
    background:
        linear-gradient(var(--accent), var(--accent)) padding-box,
        linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(122, 92, 255, 0.28), rgba(57, 217, 255, 0.18)) border-box;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}

button:hover, .button-link:hover {
    background:
        linear-gradient(var(--accent-dark), var(--accent-dark)) padding-box,
        var(--prism-aurora) border-box;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(15, 15, 25, 0.16), 0 0 24px rgba(122, 92, 255, 0.12);
    text-decoration: none;
}

.button-link:hover,
.button-link:active,
.button-link:visited {
    color: #fff;
}

button:active, .button-link:active { transform: translateY(0); }

.button-link-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    transition: transform .15s ease;
}

.button-link:hover .button-link-icon {
    transform: translateX(2px);
}

button:focus-visible, .button-link:focus-visible, a:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: none;
}

.secondary:hover {
    background: #fff;
    color: var(--text);
    border-color: #c9c9cc;
    box-shadow: var(--shadow-card);
}

.button-link.secondary:hover,
.button-link.secondary:active,
.button-link.secondary:visited {
    color: var(--text);
}

.ghost-button, .text-button {
    background: transparent;
    color: var(--muted-strong);
    border-color: transparent;
    padding: 0;
    min-height: 28px;
    box-shadow: none;
    text-decoration: none;
}

.ghost-button:hover, .text-button:hover {
    background: transparent;
    color: var(--text);
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

.text-button { font-size: 13px; font-weight: 600; }

input, textarea, select {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 11px 13px;
    background: #fff;
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
    border-color: var(--purple);
    box-shadow: var(--ring);
}

input.readonly-field,
input.readonly-field:disabled {
    background: #f3f3f4;
    border-color: #dededf;
    color: var(--muted-strong);
    cursor: not-allowed;
    box-shadow: none;
    user-select: none;
    -webkit-text-fill-color: var(--muted-strong);
}

select {
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
    padding-right: 42px;
    cursor: pointer;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2345454d'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px 18px;
}

select:hover {
    border-color: #c9c9cc;
    box-shadow: var(--shadow-card);
}

select:focus {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%235848d8'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m18%2015-6-6-6%206'/%3E%3C/svg%3E");
}

select option {
    color: var(--text);
    background: #fff;
}

select option:disabled {
    color: var(--muted);
}

textarea { min-height: 84px; resize: vertical; }

h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }

.sub { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }

/* ----- 布局 --------------------------------------------------------------- */
.app-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
}

/* ----- 侧栏 --------------------------------------------------------------- */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: 232px;
    height: 100vh;
    overflow: visible;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    padding: 24px 16px;
    background: var(--sidebar);
    backdrop-filter: saturate(120%) blur(14px);
    -webkit-backdrop-filter: saturate(120%) blur(14px);
    border-right: 1px solid var(--line);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 6px 16px;
    border-bottom: 1px solid var(--soft-line);
}

.brand-mark, .avatar {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-family: var(--font-mono);
    background:
        linear-gradient(var(--ink), var(--ink)) padding-box,
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(57, 217, 255, 0.55), rgba(255, 79, 196, 0.55)) border-box;
    border: 1px solid transparent;
}

.avatar {
    flex: 0 0 40px;
    overflow: hidden;
}

a.brand-mark { text-decoration: none; }
a.brand-mark:hover { text-decoration: none; }

.brand-mark img, .avatar img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: inherit;
    object-fit: cover;
}

.brand-wordmark {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.sidebar-brand > div { min-width: 0; }
.sidebar-brand-title { display: block; font-size: 19px; letter-spacing: -0.02em; }
.sidebar-wordmark-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.sidebar-wordmark-link:hover { text-decoration: none; }
.sidebar-brand .brand-wordmark { width: min(166px, 100%); }
.sidebar-brand p { color: var(--muted); font-size: 12px; margin-top: 3px; }

.side-nav {
    display: grid;
    gap: 4px;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

.nav-item {
    justify-content: flex-start;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted-strong);
    font-size: 15px;
    font-weight: 500;
    box-shadow: none;
    text-decoration: none;
    transition: background .14s ease, color .14s ease;
}

.nav-item .nav-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #f1f1f3;
    color: var(--muted-strong);
    transition: background .14s ease, color .14s ease;
}

.nav-svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item:hover {
    background: #f4f4f5;
    color: var(--text);
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

.nav-item:hover .nav-icon { background: #e9e9ec; color: var(--text); }

.nav-item.active {
    position: relative;
    background: #f4f4f5;
    color: var(--text);
    border-color: var(--line);
    font-weight: 600;
}

.nav-item.active .nav-icon {
    background:
        linear-gradient(var(--ink), var(--ink)) padding-box,
        var(--prism-aurora) border-box;
    border: 1px solid transparent;
    color: #fff;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    right: 10px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--purple);
}

.sidebar-footer { display: grid; gap: 10px; min-width: 0; }

.nav-action-item {
    justify-self: stretch;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    letter-spacing: 0;
    text-align: left;
}

.login-card, .account-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: var(--panel-soft);
}

.login-card h2 { font-size: 16px; }

.account-head { display: flex; gap: 10px; align-items: center; min-width: 0; }

.account-head strong, .account-trigger-text > strong {
    display: block;
    max-width: 142px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.account-head p, .account-trigger small { color: var(--muted); font-size: 12px; margin-top: 3px; }

.account-menu { position: relative; z-index: 40; min-width: 0; }

.account-trigger {
    width: 100%;
    min-height: 60px;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-color: var(--line);
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-card);
}

.account-trigger:hover, .account-trigger[aria-expanded="true"] {
    background: #fff;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-subtle);
    transform: none;
}

.account-trigger[aria-expanded="true"] .avatar { box-shadow: 0 0 0 3px var(--purple-soft); }

.account-trigger-text {
    min-width: 0;
    display: grid;
    gap: 4px;
    text-align: left;
}

.account-trigger-stats {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-trigger-stat {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--muted-strong);
    line-height: 1;
}

.account-trigger-stat-icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: #8a8a92;
}

.account-stat-svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-trigger-member.is-active .account-trigger-stat-icon {
    color: #a36b0a;
}

.account-trigger-member.is-inactive .account-trigger-stat-icon {
    color: #8a8a92;
}

.account-trigger-points .account-trigger-stat-icon {
    color: var(--muted-strong);
}

.account-trigger-points strong {
    flex: 0 0 auto;
    min-width: max-content;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.account-trigger-help {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fafafa;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
}

.account-trigger-help::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    z-index: 60;
    width: 230px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 15, 25, 0.2);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    white-space: pre-line;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .14s ease, transform .14s ease;
}

.account-trigger-help:hover::after,
.account-trigger:focus-visible .account-trigger-help::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.account-popover {
    position: absolute;
    left: 0;
    right: auto;
    bottom: calc(100% + 10px);
    z-index: 45;
    display: grid;
    gap: 8px;
    width: min(276px, calc(100vw - 32px));
    max-height: none;
    overflow: visible;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 56px rgba(15, 15, 25, 0.16);
}

.account-popover .login-card, .account-popover .account-card {
    border: 0; padding: 4px; background: transparent;
}

.account-menu-card { display: grid; gap: 10px; }

.account-menu-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px;
}

.account-menu-profile > div:last-child { min-width: 0; }

.account-menu-profile strong {
    display: block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.account-menu-profile p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0 0 5px;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f7f7f8;
}

.account-menu-summary-icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: var(--muted-strong);
    background: #fff;
    border: 1px solid var(--line);
}

.account-menu-summary.is-active {
    border-color: rgba(216, 150, 26, 0.32);
    background: linear-gradient(180deg, rgba(255, 249, 235, 0.92), rgba(255, 255, 255, 0.9));
}

.account-menu-summary.is-active .account-menu-summary-icon {
    color: #a36b0a;
    border-color: rgba(216, 150, 26, 0.26);
    background: rgba(255, 255, 255, 0.72);
}

.account-menu-summary-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.account-menu-summary-copy strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-summary-copy small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu-summary.is-active .account-menu-summary-copy small {
    color: #7a5109;
}

.account-menu-list {
    display: grid;
    gap: 1px;
    padding-top: 4px;
    border-top: 1px solid var(--soft-line);
}

.account-menu-item {
    width: 100%;
    min-height: 36px;
    justify-content: flex-start;
    gap: 9px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    text-align: left;
}

a.account-menu-item {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.account-menu-item:hover {
    background: #f5f5f6;
    border: 0;
    box-shadow: none;
    transform: none;
}

.account-menu-item-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    color: var(--muted-strong);
}

.account-menu-svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-menu-item span { min-width: 0; }

.account-menu-item strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
}

.account-menu-badge {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.account-menu-badge.is-done {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.account-menu-item small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.account-menu-item.danger .account-menu-item-icon,
.account-menu-item.danger strong { color: var(--red); }

.account-status { display: grid; gap: 8px; margin-top: 12px; }

.account-status div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    background: #f5f5f6;
    font-size: 13px;
}

.account-status span { color: var(--muted); }

.account-status strong {
    min-width: 0;
    text-align: right;
    overflow-wrap: anywhere;
    font-family: var(--font-mono);
    font-weight: 700;
}

.menu-row {
    width: 100%;
    justify-content: flex-start;
    margin-top: 12px;
    background: #fff;
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: none;
}

.menu-row:hover { background: #fafafa; border-color: #c9c9cc; }

/* ----- 主面板 ------------------------------------------------------------- */
.main-panel { grid-column: 2; min-width: 0; padding: 30px 34px 56px; }

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin: 0 auto 18px;
    max-width: 1220px;
}

.topbar-actions, .inline-actions, .actions {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

.view { max-width: 1220px; margin: 0 auto; }

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--soft-line);
}

.list-search {
    flex: 1 1 360px;
    max-width: 560px;
    min-width: 220px;
}

.list-search input {
    min-height: 44px;
    border-radius: 12px;
}

.list-menus {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
}

.list-menus select {
    width: auto;
    min-width: 136px;
    min-height: 44px;
    border-radius: 12px;
}

.list-tools {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.chip-strip {
    min-width: 0;
    max-width: min(680px, 100%);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: thin;
}

.chip-btn {
    flex: 0 0 auto;
    min-height: 30px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted-strong);
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: none;
}

.chip-btn:hover {
    border-color: var(--line-strong);
    background: #f8f8f9;
    transform: none;
    box-shadow: none;
}

.chip-btn.active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.chip-count {
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #f1f1f3;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    line-height: 1;
}

.chip-btn.active .chip-count {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.86);
}

.category-chip {
    border-color: var(--category-line, var(--line));
    background: var(--category-bg, #fff);
    color: var(--category-text, var(--muted-strong));
}

.category-chip:hover {
    border-color: var(--category-text, var(--line-strong));
    background: var(--category-bg, #fff);
}

.category-chip.active {
    border-color: var(--category-text, var(--ink));
    background: var(--category-text, var(--ink));
    color: #fff;
}

.category-chip .chip-count {
    background: rgba(255, 255, 255, 0.65);
    color: var(--category-text, var(--muted));
}

.category-chip.active .chip-count {
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

.segmented.tiny {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7f7f8;
}

.segmented.tiny button {
    min-height: 30px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-strong);
    padding: 0 11px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: none;
}

.segmented.tiny button:hover {
    background: #fff;
    color: var(--text);
    transform: none;
    box-shadow: none;
}

.segmented.tiny button.active {
    background: var(--ink);
    color: #fff;
}

.view > .section-title:first-child {
    min-height: 70px;
    align-items: flex-end;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--soft-line);
}

.view > .section-title:first-child h3 {
    font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em;
}

.view > .section-title:first-child .sub { max-width: 720px; margin-top: 8px; font-size: 15px; }

/* ----- App 内 Hero（克制：单色微光呼吸） -------------------------------- */
.hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: center;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -8%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(15, 15, 30, 0.06), transparent 65%);
    pointer-events: none;
    animation: breathe 14s ease-in-out infinite;
}

.hero-panel > * { position: relative; z-index: 1; }

.hero-panel h2 { max-width: 620px; margin-top: 12px; font-size: 32px; line-height: 1.18; letter-spacing: -0.02em; }
.hero-panel p { max-width: 620px; margin-top: 12px; color: var(--muted); line-height: 1.7; }

.eyebrow {
    display: inline-block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-metrics { display: grid; gap: 10px; }

.hero-metrics div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--panel-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-metrics span {
    display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}

.hero-metrics small { color: var(--muted); font-size: 12px; }

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
    align-items: stretch;
}

.home-carousel {
    position: relative;
    min-height: 390px;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #111114;
    box-shadow: var(--shadow-card);
}

.home-banner-stage {
    position: relative;
    min-height: 390px;
    height: 100%;
}

.home-banner-slide {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .45s ease;
}

.home-banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.home-banner-slide:hover {
    color: #fff;
    text-decoration: none;
}

.home-banner-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(57, 217, 255, 0.2), rgba(255, 79, 196, 0.16)),
        #17171c;
}

.home-banner-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 20, .78) 0%, rgba(17, 17, 20, .56) 38%, rgba(17, 17, 20, .12) 72%, transparent 100%);
    pointer-events: none;
}

.home-banner-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-banner-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 72px;
    font-weight: 800;
    background: var(--prism-aurora);
}

.home-banner-copy {
    position: relative;
    z-index: 1;
    width: min(560px, 62%);
    min-height: 390px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 42px 42px 62px;
    background: transparent;
}

.home-banner-copy .eyebrow {
    color: rgba(255, 255, 255, .62);
    letter-spacing: .08em;
}

.home-banner-copy h2 {
    margin-top: 12px;
    max-width: 520px;
    font-size: 34px;
    line-height: 1.12;
}

.home-banner-copy p {
    margin-top: 12px;
    max-width: 520px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.7;
}

.home-banner-link {
    width: fit-content;
    min-height: 42px;
    margin-top: 22px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #111114;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-banner-link:hover {
    color: #111114;
    text-decoration: none;
    transform: translateY(-1px);
}

.home-banner-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .24);
}

.home-banner-rail {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    width: min(34%, 360px);
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
    pointer-events: none;
}

.home-banner-progress {
    flex: 1 1 0;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .28);
}

.home-banner-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
}

.home-banner-progress.complete > span {
    transform: scaleX(1);
}

.home-banner-progress.active > span {
    animation: homeBannerProgress var(--home-banner-duration, 5200ms) linear forwards;
}

.home-carousel:hover .home-banner-progress.active > span {
    animation-play-state: paused;
}

@keyframes homeBannerProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.home-banner-empty {
    height: 100%;
    min-height: 318px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    color: #fff;
    background:
        linear-gradient(130deg, rgba(57, 217, 255, .22), transparent 34%),
        linear-gradient(30deg, rgba(255, 79, 196, .18), transparent 42%),
        #111114;
}

.home-banner-empty .eyebrow { color: rgba(255, 255, 255, .62); }
.home-banner-empty h2 { max-width: 620px; margin-top: 12px; font-size: 34px; line-height: 1.12; }
.home-banner-empty p { max-width: 560px; margin-top: 12px; color: rgba(255, 255, 255, .72); line-height: 1.7; }

.home-side-cards {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
    min-height: 390px;
}

.home-side-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(17, 17, 20, .05), rgba(17, 17, 20, .015)),
        #f3f3f4;
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-card);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-side-card.has-image {
    background-image:
        linear-gradient(90deg, rgba(12, 12, 15, .72) 0%, rgba(12, 12, 15, .52) 54%, rgba(12, 12, 15, .18) 100%),
        var(--home-side-card-bg);
    background-position: center;
    background-size: cover;
    color: #fff;
}

.home-side-card:hover {
    border-color: var(--line-strong);
    color: var(--text);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.home-side-card.has-image:hover {
    color: #fff;
}

.home-side-card-copy {
    min-width: 0;
    width: 100%;
    text-align: left;
}

.home-side-card-copy strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-side-card-copy p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-side-card.has-image .home-side-card-copy p {
    color: rgba(255, 255, 255, .78);
}

/* ----- 区块标题 ----------------------------------------------------------- */
.section-row { margin-top: 26px; }

.section-title {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px;
}

/* ----- 卡片网格 ----------------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-list { display: grid; gap: 10px; }

@keyframes skeletonPulse {
    0%, 100% { opacity: .72; }
    50% { opacity: 1; }
}

.is-loading {
    pointer-events: none;
}

.home-banner-skeleton,
.home-side-card-skeleton,
.card-skeleton,
.claim-skeleton,
.course-hero-skeleton,
.lesson-row-skeleton {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-card);
    animation: skeletonPulse 1.35s ease-in-out infinite;
}

.home-banner-skeleton {
    min-height: 390px;
    height: 100%;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 42px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 34%),
        linear-gradient(30deg, rgba(255, 255, 255, .06), transparent 46%),
        #111114;
    box-shadow: none;
}

.home-banner-skeleton i {
    display: block;
    height: 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.home-banner-skeleton i:nth-child(1) {
    width: min(150px, 42%);
}

.home-banner-skeleton i:nth-child(2) {
    width: min(440px, 72%);
    height: 34px;
}

.home-banner-skeleton i:nth-child(3) {
    width: min(360px, 58%);
}

.home-side-card-skeleton {
    min-height: 116px;
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .52) 0 28%, transparent 28%),
        #f3f3f4;
}

.card-skeleton {
    min-height: 264px;
    border-radius: var(--radius);
}

.card-skeleton::before {
    content: "";
    display: block;
    height: 140px;
    background: #f0f2f5;
}

.card-skeleton::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 20px;
    height: 74px;
    border-radius: 8px;
    background:
        linear-gradient(#e7ebf0, #e7ebf0) 0 0 / 76% 14px no-repeat,
        linear-gradient(#eef1f5, #eef1f5) 0 28px / 100% 10px no-repeat,
        linear-gradient(#eef1f5, #eef1f5) 0 46px / 64% 10px no-repeat;
}

.claim-skeleton {
    min-height: 76px;
    border-radius: 10px;
    background:
        linear-gradient(#e7ebf0, #e7ebf0) 16px 18px / 42% 13px no-repeat,
        linear-gradient(#eef1f5, #eef1f5) 16px 43px / 72% 10px no-repeat,
        #fff;
}

.course-detail-skeleton {
    display: grid;
    gap: 14px;
}

.course-hero-skeleton {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) minmax(180px, 220px);
    gap: 18px;
    align-items: stretch;
    border-radius: var(--radius);
}

.course-hero-cover-skeleton {
    min-height: 190px;
    background: #f0f2f5;
}

.course-hero-body-skeleton {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 22px 0;
}

.course-hero-body-skeleton i,
.course-hero-cta-skeleton i {
    display: block;
    border-radius: 999px;
    background: #edf0f4;
}

.course-hero-body-skeleton i:nth-child(1) {
    width: min(180px, 42%);
    height: 24px;
}

.course-hero-body-skeleton i:nth-child(2) {
    width: min(360px, 76%);
    height: 26px;
}

.course-hero-body-skeleton i:nth-child(3) {
    width: min(540px, 94%);
    height: 12px;
}

.course-hero-body-skeleton i:nth-child(4) {
    width: min(320px, 66%);
    height: 12px;
}

.course-hero-cta-skeleton {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 10px;
    padding: 22px 22px 22px 0;
}

.course-hero-cta-skeleton i:nth-child(1) {
    width: 82px;
    height: 24px;
}

.course-hero-cta-skeleton i:nth-child(2) {
    width: 148px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.lesson-list-skeleton {
    margin-top: 0;
}

.lesson-row-skeleton {
    min-height: 68px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(260px, auto);
    gap: 12px;
    align-items: center;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(16, 16, 24, 0.04);
}

.lesson-row-skeleton i {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f0f1f4;
}

.lesson-row-skeleton span {
    display: block;
    min-width: 0;
}

.lesson-row-skeleton span:nth-child(2) {
    height: 42px;
    border-radius: 8px;
    background:
        linear-gradient(#eef1f5, #eef1f5) 0 1px / 54px 22px no-repeat,
        linear-gradient(#e6e9ef, #e6e9ef) 64px 5px / 36% 14px no-repeat,
        linear-gradient(#eef1f5, #eef1f5) 0 31px / 68% 10px no-repeat;
}

.lesson-row-skeleton span:nth-child(3) {
    justify-self: end;
    width: 260px;
    height: 34px;
    border-radius: 8px;
    background:
        linear-gradient(#eef1f5, #eef1f5) 0 6px / 72px 22px no-repeat,
        linear-gradient(#e6e9ef, #e6e9ef) right 0 / 132px 34px no-repeat;
}

.content-card, .benefit-card {
    position: relative;
    min-height: 264px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: grid;
    grid-template-rows: 140px minmax(0, 1fr);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.content-card:hover, .benefit-card:hover, .about-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.benefit-card.is-offline {
    background: #f7f8fa;
    filter: grayscale(.45);
    opacity: .72;
}

.benefit-card.is-offline:hover {
    border-color: var(--line);
    box-shadow: var(--shadow-card);
    transform: none;
}

.content-list .content-card {
    min-height: 112px;
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-rows: none;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(16, 16, 24, 0.05);
}

.content-list .content-card:hover { transform: translateY(-1px); }

.content-list .card-cover {
    height: 100%;
    min-height: 112px;
}

.content-list .content-card .card-body {
    gap: 8px;
    min-height: 0;
    grid-template-rows: auto minmax(0, auto) auto auto 1fr;
    padding: 13px 14px;
}

.content-list .item-title h3 {
    font-size: 15px;
    line-height: 1.35;
}

.content-list .summary {
    -webkit-line-clamp: 1;
    font-size: 13px;
}

.content-list .category-badges {
    max-height: 24px;
}

.content-list .meta {
    padding-top: 5px;
}

.content-list .course-card-footer {
    align-self: center;
}

.course-detail {
    display: grid;
    gap: 14px;
}

.course-back {
    justify-self: start;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-card);
}

.course-back:hover {
    background: #f7f7f8;
    border-color: #cfcfd3;
    box-shadow: var(--shadow-card);
}

.course-back-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f4f4f5;
    color: var(--muted-strong);
}

.course-back-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.course-hero {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) minmax(180px, 220px);
    gap: 18px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.course-hero .card-cover {
    height: 100%;
    min-height: 190px;
}

.course-hero-body {
    display: grid;
    gap: 12px;
    align-content: center;
    padding: 22px 0;
}

.course-hero-body h2 {
    font-size: 26px;
    line-height: 1.2;
}

.course-hero-body p {
    color: var(--muted);
    line-height: 1.7;
}

.course-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.course-hero-cta {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 10px;
    padding: 22px 22px 22px 0;
}

.course-hero-actions {
    width: 100%;
    display: grid;
    gap: 10px;
}

.course-hero-cta .button-link {
    width: 100%;
    min-width: 148px;
}

.lesson-filter-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0;
    margin: 8px 0 10px;
    padding: 0 2px;
}

.lesson-filter-label {
    flex: 0 0 auto;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 700;
}

.lesson-filter-panel .chip-strip {
    max-width: 100%;
}

.lesson-list {
    display: grid;
    gap: 8px;
}

.lesson-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(260px, auto);
    gap: 12px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(16, 16, 24, 0.04);
}

.lesson-index {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #f4f4f5;
    color: var(--muted-strong);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.lesson-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.lesson-title-line {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.lesson-title-line h3 {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 15px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-title-badges {
    flex: 0 0 auto;
    max-width: 36%;
    flex-wrap: nowrap;
    overflow: hidden;
}

.lesson-title-badges .category-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-summary-line {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-pills {
    flex: 0 0 auto;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.lesson-main p {
    min-width: 0;
    flex: 0 1 auto;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lesson-date {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.lesson-date::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: #c9c9cc;
}

.lesson-action {
    justify-self: end;
    min-width: 260px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.lesson-action > button,
.lesson-action > .content-action-link {
    width: 132px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 13px;
}

.lesson-action > button.locked-action,
.actions > button.locked-action {
    background: #f6f6f7;
    color: var(--muted-strong);
    border-color: var(--line-strong);
    box-shadow: none;
}

.lesson-action > button.locked-action:hover,
.actions > button.locked-action:hover {
    background: #eeeeef;
    border-color: #d2d2d6;
    transform: none;
    box-shadow: var(--shadow-card);
}

.card-cover {
    position: relative;
    height: 140px;
    background: #f0f0f1;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ----- 深色封面占位（单色光，无彩虹） ----------------------------------- */
.card-cover.cosmic {
    background:
        radial-gradient(120% 120% at 20% 10%, rgba(57, 217, 255, 0.18), transparent 34%),
        radial-gradient(100% 100% at 80% 20%, rgba(255, 79, 196, 0.16), transparent 38%),
        radial-gradient(100% 100% at 52% 78%, rgba(255, 188, 66, 0.14), transparent 34%),
        linear-gradient(140deg, #050509, #10101a 48%, #050508);
}

.card-cover.cosmic::before { content: ""; position: absolute; inset: -10%; z-index: 0; }

.card-cover.cosmic::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(115deg, transparent 0 26%, rgba(255, 255, 255, 0.18) 30%, rgba(57, 217, 255, 0.2) 34%, transparent 42%),
        linear-gradient(70deg, transparent 0 55%, rgba(255, 79, 196, 0.18) 62%, transparent 72%),
        radial-gradient(120% 100% at 50% -10%, transparent 50%, rgba(0, 0, 0, 0.5));
    mix-blend-mode: screen;
}

.cosmic .cover-placeholder {
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

/* 学习：斜向光流 */
.cosmic-learning::before {
    background:
        linear-gradient(118deg, transparent 22%, rgba(57, 217, 255, 0.55) 34%, rgba(122, 92, 255, 0.34) 43%, transparent 58%),
        linear-gradient(35deg, transparent 40%, rgba(255, 255, 255, 0.34) 48%, transparent 56%);
    filter: blur(1px);
}

/* 案例：日食光环 */
.cosmic-cases::before {
    background:
        radial-gradient(closest-side at 48% 52%, transparent 24%, rgba(255, 255, 255, 0.92) 29%,
            rgba(255, 188, 66, 0.46) 34%, rgba(255, 79, 196, 0.2) 40%, transparent 52%),
        radial-gradient(120% 90% at 50% 50%, rgba(61, 115, 255, 0.22), transparent 72%);
}

/* 活动：双柔光 */
.cosmic-events::before {
    background:
        radial-gradient(70% 55% at 30% 32%, rgba(57, 217, 255, 0.34), transparent 60%),
        radial-gradient(70% 60% at 74% 66%, rgba(255, 79, 196, 0.36), transparent 60%),
        linear-gradient(100deg, transparent 28%, rgba(255, 255, 255, 0.24) 44%, transparent 60%);
    filter: blur(2px);
}

/* 回看：光轨椭圆 */
.cosmic-replays::before {
    background:
        conic-gradient(from 210deg at 50% 50%, transparent 0 16%, rgba(57, 217, 255, 0.55), rgba(255, 79, 196, 0.42), rgba(255, 188, 66, 0.32), transparent 56% 100%),
        radial-gradient(closest-side at 50% 50%, transparent 30%, rgba(255, 255, 255, 0.44) 34%, transparent 44%);
    transform: rotate(-14deg) scaleY(0.7);
}

/* 福利：柔光晕 */
.cosmic-benefits::before {
    background:
        linear-gradient(112deg, transparent 24%, rgba(255, 255, 255, 0.44) 38%, rgba(57, 217, 255, 0.3) 44%, rgba(255, 79, 196, 0.24) 54%, transparent 68%),
        radial-gradient(80% 80% at 56% 42%, rgba(255, 188, 66, 0.22), transparent 62%),
        radial-gradient(120% 100% at 56% 42%, rgba(60, 62, 82, 0.4), var(--ink) 74%);
    filter: blur(1px);
}

/* 浅色占位回退 */
.cover-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #f0f0f1;
    color: var(--muted-strong);
    font-size: 34px;
    font-weight: 800;
}

.card-body { display: grid; gap: 10px; align-content: start; padding: 16px; }

.item-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.item-title h3 { font-size: 16px; }

.summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.01em;
}

.benefit-card {
    min-height: 354px;
    height: 100%;
}

.course-card,
.content-card {
    min-height: 354px;
    height: 100%;
}

.course-card {
    min-height: 320px;
}

.content-card:not(.course-card) {
    min-height: 320px;
}

.benefit-card .card-body {
    min-height: 214px;
    grid-template-rows: auto 45px auto 1fr;
    align-content: stretch;
    gap: 10px;
}

.content-card .card-body {
    min-height: 180px;
    grid-template-rows: auto 45px auto;
    align-content: start;
    gap: 10px;
}

.course-card .card-body {
    min-height: 180px;
    grid-template-rows: auto 45px auto;
    align-content: start;
    gap: 10px;
}

.benefit-card .item-title h3,
.content-card .item-title h3 {
    min-width: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .item-title {
    min-height: 28px;
    align-items: flex-start;
}

.course-card .item-title h3 {
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card .category-badges {
    flex: 0 0 auto;
    max-width: 46%;
    max-height: 28px;
    overflow: hidden;
    justify-content: flex-end;
}

.content-card:not(.course-card) .item-title {
    min-height: 28px;
    align-items: flex-start;
}

.content-card:not(.course-card) .item-title h3 {
    flex: 1 1 auto;
}

.content-card:not(.course-card) .category-badges {
    flex: 0 0 auto;
    max-width: 46%;
    max-height: 28px;
    overflow: hidden;
    justify-content: flex-end;
}

.benefit-title-row {
    min-height: 28px;
}

.benefit-category-badges {
    flex: 0 0 auto;
    max-width: 42%;
    max-height: 24px;
    overflow: hidden;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.benefit-summary {
    min-height: 45px;
}

.course-card .summary,
.content-card .summary {
    min-height: 45px;
}

.course-card .summary {
    max-height: 45px;
}

.benefit-commerce {
    display: grid;
    gap: 6px;
    padding: 10px 0 2px;
    border-top: 1px solid var(--soft-line);
}

.benefit-buy-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.benefit-price {
    min-width: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: var(--text);
}

.benefit-price strong {
    font-family: var(--font-mono);
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
}

.benefit-price small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.benefit-price.is-free strong {
    font-family: var(--font-sans);
    font-size: 18px;
}

.benefit-stock {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.benefit-actions {
    align-self: end;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.benefit-button-group {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.benefit-actions button {
    min-width: 112px;
    flex: 0 0 auto;
    margin-left: 0;
}

.course-card-footer {
    align-self: end;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.course-card-footer button,
.course-card-footer .content-action-link {
    min-width: 112px;
    flex: 0 0 auto;
    margin-left: auto;
}

.course-card .course-card-footer {
    align-self: stretch;
    min-height: 54px;
    padding-top: 12px;
    border-top: 1px solid var(--soft-line);
}

.content-card:not(.course-card) .course-card-footer {
    align-self: stretch;
    min-height: 54px;
    padding-top: 12px;
    border-top: 1px solid var(--soft-line);
}

.content-list .content-card:not(.course-card) .category-badges {
    max-height: 24px;
}

.content-list .content-card:not(.course-card) .course-card-footer {
    align-self: center;
}

.benefit-claim-note {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.benefit-instructions-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 84px;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #f8f9fb;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
}

.benefit-instructions-link:hover {
    border-color: #c9c9cc;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-card);
    transform: none;
    text-decoration: none;
}

.learning-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--muted-strong);
    font-size: 12px;
    line-height: 1.2;
}

.learning-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    white-space: nowrap;
}

.learning-stat svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.learning-stats-compact {
    min-width: 0;
    flex: 1 1 auto;
}

.learning-stats-compact .learning-stat {
    gap: 4px;
    font-family: var(--font-mono);
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-height: 0;
}

.category-badge {
    --category-bg: #f5f5f6;
    --category-line: #dededf;
    --category-text: #45454d;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid var(--category-line);
    border-radius: 999px;
    padding: 0 9px;
    background: var(--category-bg);
    color: var(--category-text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.category-badge.small {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
}

.category-cyan {
    --category-bg: #eefbfd;
    --category-line: #c7edf4;
    --category-text: #087489;
}

.category-violet {
    --category-bg: #f4f1ff;
    --category-line: #ded6ff;
    --category-text: #5848d8;
}

.category-gold {
    --category-bg: #fff8e8;
    --category-line: #f2dfae;
    --category-text: #8a5a12;
}

.category-green {
    --category-bg: #eefbf4;
    --category-line: #cbeedb;
    --category-text: #1d7a4c;
}

.category-rose {
    --category-bg: #fff2f7;
    --category-line: #f5cddd;
    --category-text: #a83263;
}

.category-slate,
.category-muted {
    --category-bg: #f5f5f6;
    --category-line: #dededf;
    --category-text: #45454d;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: #f5f5f6;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.pill.member { border-color: var(--purple-line); background: var(--purple-soft); color: var(--purple-deep); }
.pill.login { border-color: var(--line-strong); background: #f3f3f4; color: var(--text); }
.pill.warn { border-color: #e7d8ba; background: #faf7f0; color: var(--amber); }
.pill.bad { border-color: #f0cdc7; background: var(--red-bg); color: var(--red); }

/* ----- 表单/消息 --------------------------------------------------------- */
.form-grid { display: grid; gap: 10px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.form-note {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--purple-line);
    border-radius: var(--radius-sm);
    background: var(--purple-soft);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-line;
}

.profile-avatar-editor {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar-editor > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.profile-avatar-preview {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 14px;
    font-size: 18px;
}

.profile-avatar-upload {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.profile-avatar-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.profile-avatar-upload-button {
    min-height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.profile-avatar-upload-button:hover {
    border-color: #c9c9cc;
    box-shadow: var(--shadow-card);
    transform: translateY(-1px);
}

.profile-avatar-file-input:focus-visible + .profile-avatar-upload-button {
    box-shadow: var(--ring);
}

.profile-avatar-upload-svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.profile-avatar-file-name {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-profile-form {
    gap: 14px;
}

.community-privacy-note {
    border: 1px solid #d8e5ff;
    border-radius: var(--radius-sm);
    padding: 12px 13px;
    background: #f4f8ff;
    color: #1d3f78;
}

.community-privacy-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.community-privacy-note p {
    color: #35527f;
    font-size: 13px;
    line-height: 1.6;
}

.community-section {
    display: grid;
    gap: 9px;
    padding-top: 2px;
}

.community-section h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.required-star {
    margin-left: 3px;
    color: var(--red);
    font-weight: 800;
}

.community-location-mode {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.community-region-fields {
    min-height: 44px;
    display: grid;
}

.community-location-mode label,
.checkbox-row,
.choice-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}

.community-location-mode input,
.checkbox-row input {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line-strong);
    background-color: #fff;
    outline: none;
    box-shadow: none;
    display: inline-block;
    transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.community-location-mode input[type="radio"] {
    border-radius: 50%;
}

.checkbox-row input[type="checkbox"] {
    border-radius: 3px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px 10px;
}

.community-location-mode input[type="radio"]:checked {
    border-color: var(--text);
    background-color: #fff;
    background-image: radial-gradient(circle at center, var(--text) 0 3.5px, transparent 4px);
    box-shadow: none;
}

.checkbox-row input[type="checkbox"]:checked {
    border-color: var(--text);
    background-color: var(--text);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='14'%20height='14'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fff'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m5%2012%204%204%2010-10'/%3E%3C/svg%3E");
    box-shadow: none;
}

.community-location-mode label {
    min-height: 34px;
    padding: 0 11px 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.checkbox-row {
    width: 100%;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.community-location-mode label:hover,
.checkbox-row:hover,
.choice-check:hover {
    border-color: var(--line-strong);
    background: #f8f8f9;
}

.community-location-mode label:has(input:checked),
.checkbox-row:has(input:checked) {
    border-color: var(--purple-line);
    background: var(--purple-soft);
    color: var(--purple-deep);
}

.community-location-mode label:has(input:focus-visible),
.checkbox-row:has(input:focus-visible),
.choice-check:has(input:focus-visible) {
    border-color: var(--purple);
    box-shadow: var(--ring);
}

.choice-badge-grid,
.choice-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.choice-badge {
    min-height: 32px;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 0 10px 0 7px;
    background: #fff;
    color: var(--muted-strong);
    box-shadow: none;
    font-size: 12px;
    font-weight: 650;
    gap: 6px;
}

.choice-badge span {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f1f2f5;
    color: var(--text);
    font-size: 13px;
    line-height: 1;
}

.choice-badge:hover {
    background: #fff;
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
    transform: none;
}

.choice-badge.active {
    border-color: var(--purple);
    background: var(--purple-soft);
    color: var(--purple-deep);
}

.choice-badge.active span {
    background: #fff;
    color: var(--purple-deep);
}

.choice-check {
    position: relative;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.choice-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.choice-check.active,
.choice-check:has(input:checked) {
    border-color: var(--purple);
    background: var(--purple-soft);
    color: var(--purple-deep);
}

.choice-check-icon {
    line-height: 1;
    font-size: 14px;
}

@media (max-width: 680px) {
    .form-grid.two,
    .form-grid.three {
        grid-template-columns: 1fr;
    }

    .choice-badge-grid,
    .choice-check-grid {
        gap: 6px;
    }
}

label { display: block; color: var(--muted-strong); font-size: 13px; font-weight: 600; margin-bottom: 7px; }

.message {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.5;
}

.message.ok { background: var(--green-bg); border-color: var(--line-strong); color: var(--text); }
.message.bad { background: var(--red-bg); border-color: #f0cdc7; color: var(--red); }

.empty {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    padding: 36px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.6);
}

/* ----- 关于页 ------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.about-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.about-card p { margin-top: 12px; color: var(--muted); line-height: 1.8; }

/* ----- 领取记录 ----------------------------------------------------------- */
.claim-list { display: grid; gap: 10px; }
.point-history-list { display: grid; gap: 10px; }

.claim-item, .code-box {
    display: block;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.code-box { background: #f5f5f6; font-family: var(--font-mono); font-size: 15px; }

.claim-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.claim-value {
    display: grid;
    gap: 8px;
    margin: 8px 0;
}

.claim-status-line {
    font-weight: 700;
}

.point-history-item {
    display: grid;
    gap: 6px;
}

.point-history-item > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.point-plus { color: #067647; }
.point-minus { color: var(--red); }
.mt-12 { margin-top: 12px; }

/* ----- 弹窗 --------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 16, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 20px;
    display: grid;
    place-items: center;
    z-index: 20;
}

.modal.login-modal {
    z-index: 120;
}

.modal-box {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: 0 24px 70px rgba(10, 10, 16, 0.24);
    padding: 22px;
}

.modal-box > .section-title {
    flex: 0 0 auto;
    margin: 0 0 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

#modalBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}

.modal-close-icon {
    flex: 0 0 auto;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted-strong);
    box-shadow: none;
    line-height: 1;
}

.modal-close-icon:hover,
.modal-close-icon:focus-visible {
    background: transparent;
    color: #dc2626;
    transform: none;
    box-shadow: none;
}

.modal-close-svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-modal .modal-box {
    width: min(420px, 100%);
}

.login-modal-mount .login-card {
    border: 0;
    padding: 0;
    background: transparent;
}

/* ----- 阅读器（保持原样） ------------------------------------------------- */
.reader-page { background: #fff; width: 100vw; height: 100vh; min-height: 0; overflow: hidden; }
.reader-page, .reader-page .reader-shell, .reader-page .reader-main { overscroll-behavior: none; }
.reader-shell { width: 100%; height: 100vh; min-height: 0; overflow: hidden; }

.reader-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.reader-main { position: relative; width: 100%; height: 100vh; min-height: 0; overflow: hidden; background: #fff; }

.reader-main > .message {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 30;
    width: min(560px, calc(100vw - 32px));
    margin: 0;
    transform: translateX(-50%);
}

.reader-main > .reader-message.with-actions {
    top: 50%;
    width: min(420px, calc(100vw - 32px));
    padding: 22px;
    transform: translate(-50%, -50%);
    text-align: center;
    background: #fff;
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: 0 24px 70px rgba(10, 10, 16, 0.16);
}

.reader-message-text {
    display: block;
    margin: 0;
}

.reader-message-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.reader-message-actions .button-link {
    min-width: 112px;
}

.doc-mount { width: 100%; height: 100vh; min-height: 560px; overflow: hidden; background: #fff; }

.reader-watermark {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    background-repeat: repeat;
    background-size: 360px 210px;
    opacity: 1;
}

/* ----- 工具类 ------------------------------------------------------------- */
.hidden { display: none !important; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--purple-deep); }

/* ----- 关键帧 ------------------------------------------------------------- */
@keyframes breathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
    50% { transform: translateX(-50%) scale(1.12); opacity: 1; }
}

@keyframes ticker-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes ticker-right {
    from { transform: translateX(var(--ticker-start, -50%)); }
    to   { transform: translateX(0); }
}

@keyframes card-float-soft {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.35deg); }
    21% { transform: translate3d(2px, -5px, 0) rotate(0.2deg); }
    47% { transform: translate3d(-2px, 3px, 0) rotate(-0.15deg); }
    73% { transform: translate3d(1px, -3px, 0) rotate(0.28deg); }
}

/* 滚动揭示 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .hero-panel::before,
    .lhero-glow,
    .membership-card-art,
    .lhero-marquee-track,
    .ticker-mini-track,
    .l-host-cta::before { animation: none !important; }
    .home-banner-slide { transition: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----- 响应式 ------------------------------------------------------------- */
@media (max-width: 1120px) {
    .app-shell { grid-template-columns: 212px minmax(0, 1fr); }
    .sidebar { width: 212px; }
    .card-grid, .compact-grid, .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-panel { grid-template-columns: 1fr; }
    .home-hero { grid-template-columns: 1fr; }
    .home-side-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: none;
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .app-shell { display: block; }
    .sidebar {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .side-nav { display: flex; overflow-x: auto; padding-bottom: 4px; }
    .side-nav { overflow-y: visible; padding-right: 0; }
    .nav-item { flex: 0 0 auto; }
    .nav-item.active::after { display: none; }
    .main-panel { grid-column: auto; padding: 16px 16px 40px; }
    .topbar { flex-direction: column; }
    .list-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        min-height: 0;
    }
    .list-search {
        max-width: none;
        min-width: 0;
        flex-basis: auto;
    }
    .list-menus {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
    }
    .list-menus select {
        width: 100%;
        min-width: 0;
    }
    .list-tools {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }
    .chip-strip {
        max-width: 100%;
    }
    .segmented.tiny {
        align-self: flex-start;
    }
    .card-grid, .compact-grid, .about-grid { grid-template-columns: 1fr; }
    .content-list .content-card {
        grid-template-columns: 94px minmax(0, 1fr);
        min-height: 96px;
    }
    .content-list .card-cover {
        min-height: 96px;
    }
    .content-list .card-body {
        padding: 11px 12px;
    }
    .content-list .summary {
        display: none;
    }
    .course-hero {
        grid-template-columns: 1fr;
    }
    .course-hero-skeleton {
        grid-template-columns: 1fr;
    }
    .course-hero .card-cover {
        min-height: 160px;
    }
    .course-hero-cover-skeleton {
        min-height: 160px;
    }
    .course-hero-body {
        padding: 0 16px 18px;
    }
    .course-hero-body-skeleton {
        padding: 0 16px 18px;
    }
    .course-hero-body h2 {
        font-size: 20px;
    }
    .course-hero-cta {
        padding: 0 16px 18px;
        justify-items: stretch;
    }
    .course-hero-cta-skeleton {
        padding: 0 16px 18px;
        justify-items: stretch;
    }
    .course-hero-cta-skeleton i:nth-child(2) {
        width: 100%;
    }
    .lesson-filter-panel {
        align-items: flex-start;
        flex-direction: row;
        gap: 0;
    }
    .lesson-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .lesson-row-skeleton {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .lesson-row-skeleton span:nth-child(3) {
        grid-column: 2;
        justify-self: start;
        width: min(100%, 240px);
    }
    .lesson-action {
        grid-column: 2;
        justify-self: stretch;
        min-width: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .lesson-action > button,
    .lesson-action > .content-action-link {
        width: auto;
        min-width: 132px;
    }
    .lesson-title-line {
        align-items: center;
        gap: 7px;
    }
    .lesson-title-badges {
        max-width: 42%;
    }
    .lesson-summary-line {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .home-carousel {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    .home-banner-stage {
        min-height: 0;
        height: 100%;
    }
    .home-banner-skeleton {
        min-height: 0;
        height: 100%;
        padding: 18px;
        justify-content: stretch;
    }
    .home-banner-slide {
        display: block;
    }
    .home-banner-image::after {
        background: linear-gradient(0deg, rgba(17, 17, 20, .82) 0%, rgba(17, 17, 20, .56) 54%, rgba(17, 17, 20, .08) 100%);
    }
    .home-banner-copy {
        width: 100%;
        min-height: 0;
        height: 100%;
        padding: 18px 20px 46px;
        justify-content: flex-end;
    }
    .home-banner-copy h2,
    .home-banner-empty h2 {
        font-size: 20px;
        line-height: 1.18;
    }
    .home-banner-copy p,
    .home-banner-empty p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 12.5px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .home-banner-link {
        min-height: 40px;
        margin-top: 14px;
        padding: 0 14px;
        font-size: 13px;
    }
    .home-banner-rail {
        left: 50%;
        bottom: 18px;
        width: min(44%, 190px);
        gap: 6px;
    }
    .home-banner-progress {
        height: 3px;
    }
    .home-side-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .home-side-card {
        min-height: 82px;
        padding: 10px;
        border-radius: 10px;
    }
    .home-side-card-copy strong {
        display: -webkit-box;
        overflow: hidden;
        white-space: normal;
        font-size: 12px;
        line-height: 1.25;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .home-side-card-copy p {
        display: none;
    }
    .hero-panel { padding: 22px; }
    .hero-panel h2 { font-size: 23px; }
    .bg-cosmos::before { display: none; }
}

/* =========================================================================
   官网（竖版静态单页 / landing.html）
   ========================================================================= */

.landing-body {
    background:
        radial-gradient(900px 520px at 50% -120px, rgba(122, 92, 255, 0.08), transparent 60%),
        radial-gradient(760px 420px at 8% 18%, rgba(57, 217, 255, 0.055), transparent 62%),
        radial-gradient(740px 420px at 92% 14%, rgba(255, 79, 196, 0.05), transparent 64%),
        var(--bg);
}

.landing {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 68px 28px 0;
}

/* ----- 顶部导航 ----------------------------------------------------------- */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.landing-nav.scrolled {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom-color: rgba(222, 222, 223, 0.9);
    box-shadow: 0 14px 38px rgba(15, 15, 25, 0.07);
}

.landing-nav-inner {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.landing-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.landing-logo:hover { text-decoration: none; }
.landing-logo-text { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.landing-logo .brand-wordmark { width: min(178px, 44vw); }

.landing-links { display: flex; gap: 4px; margin-left: 12px; }

.landing-links a {
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--muted-strong);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color .14s ease, font-weight .14s ease;
}

.landing-links a:hover {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.landing-nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* ----- Hero（Moonshot 式：大字漂移 + 柔光呼吸） ------------------------- */
.lhero {
    position: relative;
    text-align: center;
    padding: 64px 0 78px;
    overflow: visible;
}

.lhero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -108px;
    z-index: 0;
    width: 100vw;
    height: 440px;
    pointer-events: none;
    transform: translateX(-50%);
    background:
        linear-gradient(112deg, transparent 10%, rgba(255, 255, 255, 0.45) 30%, rgba(57, 217, 255, 0.11) 38%, rgba(255, 79, 196, 0.1) 47%, transparent 64%),
        linear-gradient(68deg, transparent 48%, rgba(255, 188, 66, 0.09) 58%, rgba(101, 230, 169, 0.08) 65%, transparent 78%);
    filter: blur(28px);
    opacity: 0.74;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 78%, transparent 100%);
}

/* 背后超大品牌文字缓慢向左漂移 */
.lhero-marquee {
    position: relative;
    z-index: 0;
    margin-top: 38px;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.lhero-marquee-track {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker-left 80s linear infinite;
    will-change: transform;
}

.lhero-marquee .marquee-sequence {
    font-size: clamp(64px, 12vw, 168px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(15, 15, 25, 0.04);
    padding: 0;
}

.lhero-marquee .marquee-sep {
    display: inline-grid;
    width: 0.82em;
    place-items: center;
    letter-spacing: 0;
}

/* 小字信息带，向右滚动 */
.ticker-mini {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    pointer-events: none;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-mini-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-right 46s linear infinite;
}

.ticker-group {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(69, 69, 77, 0.68);
}

/* 柔光呼吸 */
.lhero-glow {
    position: absolute;
    top: -82px;
    left: 50%;
    width: min(100vw, 1440px);
    height: 680px;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 46% 38%, rgba(255, 255, 255, 0.9), transparent 8%),
        radial-gradient(circle at 50% 42%, rgba(57, 217, 255, 0.12), transparent 32%),
        radial-gradient(circle at 56% 38%, rgba(255, 79, 196, 0.1), transparent 36%),
        radial-gradient(circle, rgba(20, 20, 40, 0.045), transparent 64%);
    filter: blur(1px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 84%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 84%, transparent 100%);
    animation: breathe 18s ease-in-out infinite;
}

.lhero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }

.lhero-title {
    margin-top: 18px;
    font-size: clamp(38px, 6.2vw, 66px);
    line-height: 1.07;
    font-weight: 800;
    letter-spacing: -0.035em;
}

/* “光”字：克制的墨色渐变，非彩虹 */
.prism-text {
    background: linear-gradient(112deg,
        #16161c 0%,
        var(--prism-blue) 24%,
        var(--prism-violet) 42%,
        var(--prism-pink) 58%,
        var(--prism-gold) 76%,
        #4d4d58 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 18px 46px rgba(122, 92, 255, 0.18);
}

.lhero-sub { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: 17px; line-height: 1.7; }

.lhero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.lhero-cta .button-link { min-height: 48px; padding: 0 24px; font-size: 15px; }

/* ----- 图片展示区（滚动大字下方，后续放最新活动跑马灯） ---------------- */
.lhero-media {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 360px;
    max-width: 980px;
    margin: 18px auto 0;
    padding: 28px;
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(8, 8, 14, 0.96), rgba(18, 18, 28, 0.94)) padding-box,
        linear-gradient(118deg, rgba(255, 255, 255, 0.62), rgba(57, 217, 255, 0.42), rgba(122, 92, 255, 0.32), rgba(255, 79, 196, 0.38), rgba(255, 188, 66, 0.32)) border-box;
    box-shadow: 0 30px 80px rgba(10, 10, 18, 0.2), 0 0 58px rgba(122, 92, 255, 0.1);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
}

.lhero-media::before,
.lhero-media::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.lhero-media::before {
    inset: -24%;
    background:
        linear-gradient(118deg, transparent 16%, rgba(255, 255, 255, 0.3) 29%, rgba(57, 217, 255, 0.28) 34%, rgba(122, 92, 255, 0.22) 42%, rgba(255, 79, 196, 0.24) 50%, transparent 66%),
        linear-gradient(72deg, transparent 52%, rgba(255, 188, 66, 0.2) 61%, rgba(101, 230, 169, 0.16) 69%, transparent 80%);
    filter: blur(10px);
    opacity: 0.72;
}

.lhero-media::after {
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.38));
}

.membership-card-art,
.lhero-media-copy {
    position: relative;
    z-index: 1;
}

.membership-card-art {
    display: block;
    width: min(100%, 400px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 400 / 263;
    margin: 0 auto;
    justify-self: center;
    filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.38));
    animation: card-float-soft 7.8s ease-in-out infinite;
    will-change: transform;
}

.lhero-media-copy {
    color: #fff;
    text-align: left;
}

.lhero-media-copy .eyebrow { color: rgba(255, 255, 255, 0.62); }

.lhero-media-copy h2 {
    margin-top: 12px;
    font-size: clamp(22px, 2.8vw, 32px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.lhero-media-copy p {
    max-width: 360px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.7;
}

.landing-pay-button {
    position: relative;
    margin-top: 24px;
    min-height: 46px;
    padding: 0 22px;
    border-width: 3px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        conic-gradient(from 150deg, var(--prism-cyan), var(--prism-blue), var(--prism-violet), var(--prism-pink), var(--prism-gold), var(--prism-green), var(--prism-cyan)) border-box;
    color: var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.landing-pay-button:hover {
    background:
        linear-gradient(#f7f7fa, #f7f7fa) padding-box,
        conic-gradient(from 300deg, var(--prism-green), var(--prism-cyan), var(--prism-blue), var(--prism-violet), var(--prism-pink), var(--prism-gold), var(--prism-green)) border-box;
    color: var(--ink);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.landing-pay-button:active {
    color: var(--ink);
}

.landing-pass-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.landing-pass-actions .landing-pay-button {
    margin-top: 0;
}

.button-link.secondary.landing-pass-secondary {
    min-height: 46px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
}

.button-link.secondary.landing-pass-secondary:hover,
.button-link.secondary.landing-pass-secondary:visited,
.button-link.secondary.landing-pass-secondary:active {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

body.modal-open { overflow: hidden; }

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8, 8, 14, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.payment-modal-panel {
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    border: 1px solid transparent;
    border-radius: 22px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 250, 0.96)) padding-box,
        linear-gradient(118deg, rgba(255, 255, 255, 0.76), rgba(57, 217, 255, 0.42), rgba(122, 92, 255, 0.32), rgba(255, 79, 196, 0.36)) border-box;
    box-shadow: 0 28px 90px rgba(6, 6, 12, 0.32);
    outline: none;
}

.payment-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.payment-modal-head h3 {
    margin-top: 8px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.payment-modal-head p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.payment-modal-close {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--muted-strong);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
}

.payment-modal-close:hover {
    background: #f5f5f6;
    border-color: var(--line-strong);
    color: var(--text);
    transform: none;
    box-shadow: var(--shadow-card);
}

.payment-qr-image-wrap {
    display: grid;
    place-items: center;
    width: min(320px, 100%);
    margin: 24px auto 4px;
    padding: 10px;
    border: 1px solid rgba(222, 222, 223, 0.9);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.payment-qr-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ----- 通用区块 ----------------------------------------------------------- */
.l-section { padding: 76px 0; scroll-margin-top: 92px; }

.l-section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }

.l-section-head h2 { margin-top: 10px; font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }

.l-section-sub { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* ----- 服务内容 ----------------------------------------------------------- */
.l-community-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}

.l-community-path {
    position: relative;
    min-height: 430px;
    padding: 32px;
    border: 1px solid transparent;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(8, 8, 14, 0.96), rgba(19, 19, 28, 0.95)) padding-box,
        linear-gradient(120deg, rgba(255, 255, 255, 0.62), rgba(57, 217, 255, 0.36), rgba(122, 92, 255, 0.28), rgba(255, 79, 196, 0.3), rgba(255, 188, 66, 0.24)) border-box;
    box-shadow: var(--shadow), 0 28px 70px rgba(15, 15, 25, 0.14);
    overflow: hidden;
}

.l-community-path::before,
.l-community-path::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.l-community-path::before {
    inset: -28%;
    background:
        linear-gradient(118deg, transparent 16%, rgba(255, 255, 255, 0.22) 29%, rgba(57, 217, 255, 0.22) 35%, rgba(122, 92, 255, 0.18) 43%, rgba(255, 79, 196, 0.2) 52%, transparent 68%),
        radial-gradient(circle at 72% 12%, rgba(255, 188, 66, 0.24), transparent 28%),
        radial-gradient(circle at 16% 86%, rgba(101, 230, 169, 0.18), transparent 26%);
    filter: blur(12px);
    opacity: 0.76;
}

.l-community-path::after {
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 82%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 82%);
}

.l-community-kicker,
.l-community-path h3,
.l-community-path > p,
.l-community-loop {
    position: relative;
    z-index: 1;
}

.l-community-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.66);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.l-community-path h3 {
    max-width: 600px;
    margin-top: 18px;
    color: #fff;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: 0;
}

.l-community-path > p {
    max-width: 560px;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.75;
}

.l-community-loop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.l-loop-step {
    position: relative;
    min-height: 178px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.l-loop-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 31px;
    right: -15px;
    width: 15px;
    height: 1px;
    background: rgba(255, 255, 255, 0.42);
}

.l-loop-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.l-step-index,
.l-step-icon {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.l-step-index {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.l-step-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.86);
}

.l-step-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.l-loop-step h4 {
    margin-top: 16px;
    color: #fff;
    font-size: 17px;
    letter-spacing: 0;
}

.l-loop-step p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.65;
}

.l-community-support {
    display: grid;
    gap: 14px;
}

.l-support-item {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 134px;
    padding: 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(236, 236, 238, 0.98), rgba(57, 217, 255, 0.16), rgba(255, 79, 196, 0.12), rgba(236, 236, 238, 0.98)) border-box;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow .18s ease, transform .18s ease;
}

.l-support-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(57, 217, 255, 0.04), transparent 42%, rgba(255, 79, 196, 0.045));
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}

.l-support-item.is-featured {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 0.96)) padding-box,
        linear-gradient(135deg, rgba(57, 217, 255, 0.32), rgba(122, 92, 255, 0.24), rgba(255, 188, 66, 0.24)) border-box;
}

.l-support-item:hover {
    box-shadow: var(--shadow), 0 0 30px rgba(122, 92, 255, 0.08);
    transform: translateY(-2px);
}

.l-support-item:hover::before { opacity: 1; }

.l-support-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(222, 222, 223, 0.9);
    border-radius: 15px;
    background:
        radial-gradient(circle at 30% 18%, rgba(57, 217, 255, 0.18), transparent 38%),
        radial-gradient(circle at 72% 82%, rgba(255, 79, 196, 0.12), transparent 38%),
        #fff;
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.l-support-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.l-support-label,
.l-support-item h3,
.l-support-item p {
    position: relative;
    z-index: 1;
}

.l-support-label {
    display: inline-flex;
    margin-bottom: 6px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.l-support-item h3 {
    font-size: 18px;
    letter-spacing: 0;
}

.l-support-item p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.68;
}

/* ----- 规模 / 成果 / 反馈 ------------------------------------------------- */
.l-feedback-panel {
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)) padding-box,
        linear-gradient(120deg, rgba(236, 236, 238, 0.95), rgba(57, 217, 255, 0.18), rgba(122, 92, 255, 0.14), rgba(236, 236, 238, 0.95)) border-box;
    border: 1px solid transparent;
    padding: 32px;
    box-shadow: 0 22px 60px rgba(15, 15, 25, 0.045);
}

.l-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.l-stat {
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--radius);
    background: var(--panel-soft);
    border: 1px solid var(--soft-line);
}

.l-stat-num {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.l-stat small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.l-achieve { list-style: none; margin: 36px auto 0; padding: 0; max-width: 760px; display: grid; gap: 12px; }

.l-achieve li {
    position: relative;
    padding: 14px 16px 14px 42px;
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
    border: 1px solid var(--line);
    color: var(--muted-strong);
    font-size: 14.5px;
}

.l-achieve li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--prism-aurora);
}

.l-testimonials,
.l-feedback-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.l-testimonial {
    min-height: 210px;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
}

.l-testimonial p {
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}

.l-testimonial span {
    display: block;
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.l-feedback-shot {
    min-height: 258px;
    overflow: hidden;
    border: 1px solid rgba(222, 222, 223, 0.9);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 251, 0.94));
    box-shadow: var(--shadow-card), 0 18px 38px rgba(15, 15, 25, 0.045);
}

.feedback-window-head {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-bottom: 1px solid var(--soft-line);
    background: rgba(250, 250, 250, 0.86);
}

.feedback-window-head span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #dededf;
}

.feedback-window-head span:nth-child(1) { background: #ffb8b8; }
.feedback-window-head span:nth-child(2) { background: #ffd98a; }
.feedback-window-head span:nth-child(3) { background: #9ee6bb; }

.feedback-chat {
    display: grid;
    align-content: space-between;
    gap: 20px;
    min-height: 222px;
    padding: 22px;
}

.feedback-chat p {
    position: relative;
    margin: 0;
    padding: 16px 18px;
    border-radius: 16px 16px 16px 4px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 15px;
    line-height: 1.72;
    box-shadow: 0 10px 24px rgba(15, 15, 25, 0.045);
}

.feedback-chat small {
    display: block;
    padding-top: 14px;
    border-top: 1px solid var(--soft-line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

/* ----- 会员权益 ----------------------------------------------------------- */
.l-membership-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 20px;
    align-items: stretch;
}

.l-benefit-table-wrap,
.l-membership-qr {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card), 0 18px 46px rgba(15, 15, 25, 0.045);
}

.l-benefit-table-wrap {
    overflow: hidden;
}

.l-benefit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.l-benefit-table th,
.l-benefit-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--soft-line);
    text-align: left;
    vertical-align: middle;
}

.l-benefit-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.l-benefit-table thead th:first-child {
    width: 24%;
}

.l-benefit-table thead th:not(:first-child),
.l-benefit-table td:not(:first-child) {
    text-align: center;
}

.l-benefit-table thead th:nth-child(3) {
    background: linear-gradient(180deg, rgba(255, 249, 235, 0.96), rgba(255, 255, 255, 0.96));
    color: #7a5109;
}

.l-benefit-table tbody td:nth-child(3) {
    background: rgba(255, 188, 66, 0.055);
}

.l-benefit-table td:first-child {
    color: var(--text);
    font-weight: 750;
}

.l-benefit-table td:nth-child(2),
.l-benefit-table td:nth-child(3) {
    color: var(--text);
}

.benefit-plan-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
}

.benefit-plan-label svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.benefit-plan-label.is-annual {
    color: #7a5109;
    font-weight: 850;
}

.l-benefit-table .benefit-group-row th,
.l-benefit-table .benefit-group-row td {
    position: static;
    padding: 12px 18px;
    border-bottom: 1px solid var(--soft-line);
    background: #fff;
}

.l-benefit-table .benefit-group-row th {
    color: var(--text);
    font-size: 15px;
    font-weight: 850;
}

.l-benefit-table .benefit-group-row th::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 15px;
    margin-right: 9px;
    border-radius: 99px;
    background: #d8961a;
    vertical-align: -2px;
}

.l-benefit-table .benefit-group-row td:nth-child(3) {
    background: rgba(255, 188, 66, 0.055);
}

.benefit-note {
    display: inline-block;
    max-width: 220px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 560;
    line-height: 1.45;
}

.l-benefit-table td:nth-child(2) .benefit-note {
    color: var(--muted);
}

.l-benefit-table td:nth-child(3) .benefit-note {
    color: #63420a;
    font-weight: 560;
}

.l-benefit-table tr:last-child td {
    border-bottom: 0;
}

.l-membership-qr {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 24px;
}

.l-membership-qr h3 {
    font-size: 22px;
    letter-spacing: -0.02em;
}

.membership-poster-frame {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(222, 222, 223, 0.9);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.membership-poster-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 13px;
}

.l-membership-qr p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

/* ----- 合作伙伴 ----------------------------------------------------------- */
.l-partner-strip {
    padding-top: 54px;
    padding-bottom: 54px;
}

.l-partner-wall {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.l-partner-logo-placeholder {
    display: grid;
    place-items: center;
    width: 150px;
    height: 82px;
    border-radius: 10px;
    border: 1px solid rgba(236, 236, 238, 0.95);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 15, 25, 0.055);
    color: rgba(69, 69, 77, 0.42);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.l-partner-logo-placeholder img {
    display: block;
    max-width: 116px;
    max-height: 44px;
    object-fit: contain;
}

/* ----- 主理人 ------------------------------------------------------------- */
.l-host-card {
    display: grid;
    grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 38px 42px;
    border-radius: 24px;
    border: 1px solid transparent;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)) padding-box,
        linear-gradient(130deg, rgba(236, 236, 238, 0.9), rgba(255, 188, 66, 0.2), rgba(122, 92, 255, 0.16), rgba(236, 236, 238, 0.9)) border-box;
    box-shadow: var(--shadow-card), 0 24px 70px rgba(15, 15, 25, 0.055);
}

.l-host-founders {
    display: grid;
    gap: 18px;
}

.l-founder-profile {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--soft-line);
}

.l-founder-profile:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.l-founder-photo {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 18px;
    border: 1px solid rgba(222, 222, 223, 0.95);
    background: #f4f4f6;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 14px 34px rgba(15, 15, 25, 0.08);
}

.l-founder-copy {
    min-width: 0;
}

.l-founder-copy h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: 0;
}

.l-founder-profile.is-blue .l-founder-copy h3 { color: #1267d8; }
.l-founder-profile.is-orange .l-founder-copy h3 { color: #ef5b16; }

.l-founder-copy ul {
    display: grid;
    gap: 5px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.l-founder-copy li {
    position: relative;
    padding-left: 13px;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.45;
}

.l-founder-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.66em;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--muted);
    transform: translateY(-50%);
}

.l-founder-profile.is-blue .l-founder-copy li::before { background: #1267d8; }
.l-founder-profile.is-orange .l-founder-copy li::before { background: #ef5b16; }

.l-host-body {
    max-width: 680px;
}

.l-host-body .eyebrow {
    color: rgba(69, 69, 77, 0.62);
}

.l-host-body h3 {
    margin-top: 8px;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.l-host-body p {
    max-width: 620px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.72;
}

.l-host-lines span {
    display: block;
    font-size: 14px;
    line-height: 1.65;
}

.l-host-lines span + span {
    margin-top: 3px;
}

.l-host-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.l-host-methods span {
    display: inline-flex;
    position: relative;
    align-items: center;
    min-height: 38px;
    padding: 9px 14px 9px 34px;
    border: 1px solid var(--soft-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.3;
}

.l-host-methods span::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--prism-aurora);
    transform: translateY(-50%);
}

.l-host-methods strong {
    margin-right: 6px;
    color: var(--text);
}

/* ----- 主理人行动区 ------------------------------------------------------- */
.l-host-cta {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    padding: 54px 44px;
    border-radius: 28px;
    text-align: center;
    color: #fff;
    border: 1px solid transparent;
    background:
        linear-gradient(150deg, rgba(6, 6, 10, 0.98), rgba(18, 18, 28, 0.98)) padding-box,
        var(--prism-aurora) border-box;
    box-shadow: 0 30px 90px rgba(10, 10, 18, 0.2), 0 0 60px rgba(122, 92, 255, 0.12);
}

.l-host-cta::before {
    content: "";
    position: absolute;
    top: -48%;
    left: 52%;
    width: 660px;
    height: 560px;
    transform: translateX(-50%);
    background:
        linear-gradient(112deg, transparent 14%, rgba(255, 255, 255, 0.24) 30%, rgba(57, 217, 255, 0.26) 36%, rgba(255, 79, 196, 0.22) 48%, transparent 66%),
        radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.18), transparent 48%),
        radial-gradient(circle at 70% 45%, rgba(255, 188, 66, 0.14), transparent 56%);
    filter: blur(8px);
    pointer-events: none;
    animation: breathe 16s ease-in-out infinite;
}

.l-host-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(520px 240px at 18% 20%, rgba(57, 217, 255, 0.12), transparent 64%),
        radial-gradient(520px 240px at 82% 20%, rgba(255, 79, 196, 0.12), transparent 64%);
}

.l-host-cta h3,
.l-host-cta p,
.l-host-cta .lhero-cta {
    position: relative;
    z-index: 1;
}

.l-host-cta h3 {
    max-width: 720px;
    margin: 0 auto;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.l-host-cta p {
    max-width: 680px;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.7;
}

.l-host-cta .button-link {
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(115deg, rgba(255, 255, 255, 0.75), rgba(57, 217, 255, 0.48), rgba(255, 79, 196, 0.42)) border-box;
    color: var(--ink);
}
.l-host-cta .button-link:hover { background:
        linear-gradient(#f7f7fa, #f7f7fa) padding-box,
        var(--prism-aurora) border-box;
}

.l-host-cta .button-link.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}
.l-host-cta .button-link.secondary:hover { background: rgba(255, 255, 255, 0.16); }

/* ----- 页脚 --------------------------------------------------------------- */
.landing-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.6); }

.landing-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 28px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.landing-foot-brand { display: flex; align-items: center; gap: 12px; }
.landing-foot-brand strong { display: block; width: min(150px, 48vw); font-size: 16px; }
.landing-foot-brand p { color: var(--muted); font-size: 13px; margin-top: 2px; }

.landing-foot-links { display: flex; gap: 6px; flex-wrap: wrap; }

.landing-foot-links a { padding: 6px 10px; border-radius: 8px; color: var(--muted-strong); font-size: 14px; text-decoration: none; }
.landing-foot-links a:hover { background: #f3f3f4; color: var(--text); text-decoration: none; }

.landing-copy { max-width: 1180px; margin: 0 auto; padding: 12px 28px 28px; color: var(--muted); font-family: var(--font-mono); font-size: 12px; }

/* ----- 官网响应式 --------------------------------------------------------- */
@media (max-width: 980px) {
    .l-community-showcase { grid-template-columns: 1fr; }
    .l-community-path { min-height: 0; }
    .l-testimonials,
    .l-feedback-grid { grid-template-columns: 1fr; }
    .l-membership-layout { grid-template-columns: 1fr; }
    .l-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .l-partner-wall { gap: 14px; }
    .lhero-media { grid-template-columns: 1fr; }
    .lhero-media-copy { text-align: center; }
    .lhero-media-copy p { margin-left: auto; margin-right: auto; }
    .landing-pass-actions { justify-content: center; }
    .l-host-card { grid-template-columns: 1fr; text-align: left; }
    .l-host-founders { max-width: 640px; width: 100%; margin: 0 auto; }
    .l-host-body { text-align: left; }
    .landing-links { display: none; }
}

@media (max-width: 600px) {
    .landing, .landing-nav-inner { padding-left: 16px; padding-right: 16px; }
    .landing-nav-inner {
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .landing-logo { gap: 8px; flex: 0 1 auto; }
    .landing-logo .brand-mark {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        border-radius: 9px;
    }
    .landing-logo .brand-wordmark {
        width: min(142px, 38vw);
        flex: 0 1 auto;
    }
    .landing-nav-cta { gap: 0; }
    .landing-nav-cta .button-link {
        min-height: 36px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 13px;
    }
    .lhero { padding: 42px 0 46px; }
    .lhero-title {
        margin-top: 14px;
        font-size: clamp(32px, 9.2vw, 36px);
        line-height: 1.08;
        letter-spacing: -0.025em;
    }
    .lhero-sub {
        margin-top: 16px;
        font-size: 15px;
        line-height: 1.62;
    }
    .lhero-cta {
        gap: 10px;
        margin-top: 24px;
    }
    .lhero-cta .button-link {
        min-height: 44px;
        padding: 0 18px;
        font-size: 14px;
    }
    .lhero-marquee {
        margin-top: 24px;
    }
    .lhero-marquee .marquee-sequence {
        font-size: clamp(40px, 15vw, 58px);
    }
    .ticker-mini {
        margin-top: 6px;
    }
    .ticker-group {
        font-size: 10px;
        letter-spacing: .05em;
    }
    .lhero-media {
        min-height: 0;
        margin-top: 10px;
        padding: 12px;
        border-radius: 16px;
        gap: 12px;
    }
    .membership-card-art { width: min(100%, 300px); margin: 0 auto; }
    .lhero-media-copy h2 { font-size: 17px; line-height: 1.18; }
    .lhero-media-copy p { font-size: 12px; line-height: 1.45; }
    .landing-pass-actions { gap: 8px; }
    .landing-pass-actions .button-link {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12px;
    }
    .l-section { padding: 54px 0; }
    .l-community-path { padding: 22px; border-radius: 16px; }
    .l-community-path h3 { font-size: 26px; }
    .l-community-loop { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
    .l-loop-step { min-height: 0; }
    .l-loop-step:not(:last-child)::after {
        top: auto;
        right: auto;
        left: 35px;
        bottom: -13px;
        width: 1px;
        height: 13px;
    }
    .l-community-support {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .l-support-item {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 8px;
        padding: 10px;
        border-radius: 12px;
        text-align: center;
    }
    .l-support-icon { width: 36px; height: 36px; margin: 0 auto; border-radius: 11px; }
    .l-support-icon svg { width: 18px; height: 18px; }
    .l-support-label { display: none; }
    .l-support-item h3 { font-size: 13px; }
    .l-support-item p { display: none; }
    .l-testimonials, .l-feedback-grid, .l-stats { grid-template-columns: 1fr; }
    .l-benefit-table {
        min-width: 0;
        font-size: 12px;
    }
    .l-benefit-table-wrap { overflow-x: hidden; }
    .l-benefit-table th,
    .l-benefit-table td {
        padding: 10px 6px;
        overflow-wrap: anywhere;
    }
    .l-benefit-table th { font-size: 12px; }
    .l-benefit-table thead th:first-child { width: 26%; }
    .benefit-plan-label { gap: 4px; }
    .benefit-plan-label svg {
        width: 14px;
        height: 14px;
    }
    .l-benefit-table .benefit-group-row th,
    .l-benefit-table .benefit-group-row td { padding: 10px 6px; }
    .l-benefit-table .benefit-group-row th { font-size: 12px; }
    .l-benefit-table .benefit-group-row th::before {
        height: 13px;
        margin-right: 5px;
    }
    .benefit-note {
        font-size: 11px;
        line-height: 1.5;
    }
    .l-membership-qr { padding: 18px; }
    .l-host-card { padding: 24px; border-radius: 20px; }
    .l-founder-profile { grid-template-columns: 82px minmax(0, 1fr); gap: 14px; }
    .l-founder-photo { width: 82px; height: 82px; border-radius: 16px; }
    .l-founder-copy h3 { font-size: 24px; }
    .l-founder-copy li { font-size: 12.5px; }
    .l-feedback-panel { padding: 18px; border-radius: 20px; }
    .l-feedback-shot,
    .feedback-chat { min-height: 0; }
    .l-host-cta { padding: 40px 22px; border-radius: 22px; }
    .l-host-cta h3 { font-size: 26px; }
    .landing-nav-cta .button-link.secondary { display: none; }
}

/* Token Rank ring metric */
.token-rank-ring-card-inner {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
}

.token-rank-ring-card-inner h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.15;
}

.token-rank-ring-stage {
    min-width: 0;
    min-height: 0;
    display: grid;
    place-items: center;
}

.token-rank-ring-visual {
    position: relative;
    width: min(238px, 76%);
    aspect-ratio: 1;
}

.token-rank-ring-visual svg {
    width: 100%;
    height: 100%;
    display: block;
}

.token-rank-ring-track,
.token-rank-ring-progress {
    fill: none;
}

.token-rank-ring-track {
    stroke: #eef2f7;
}

.token-rank-ring-progress {
    stroke-linecap: round;
    transition: opacity .16s ease, stroke-dashoffset .45s ease, stroke-width .16s ease;
}

.token-rank-ring-center {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(170px, 72%);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    transform: translate(-50%, -50%);
}

.token-rank-ring-center strong {
    overflow: hidden;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    color: var(--text);
    font-size: var(--token-rank-ring-size, 38px);
    font-weight: 800;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-rank-ring-center .token-rank-ring-number {
    color: inherit;
    font: inherit;
    line-height: 1;
}

.token-rank-ring-center small {
    color: var(--text);
    font-size: .62em;
    font-weight: 800;
    line-height: 1;
}

.token-rank-ring-center em {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
    line-height: 1;
}

.token-rank-ring-center .token-rank-ring-rank {
    margin-top: 11px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.token-rank-ring-center .token-rank-ring-total-rank {
    display: block;
    margin-top: 8px;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
