:root {
    --c-bg-deep: #0F0E0C;
    --c-bg: #141210;
    --c-bg-alt: #1A1815;
    --c-surface: #1F1D19;
    --c-surface-alt: #24211C;
    --c-surface-hover: #2A2621;
    --c-panel: #12110E;

    --c-text: #E8E0D0;
    --c-text-bright: #F5F0E8;
    --c-text-muted: #9A8E7A;
    --c-text-dim: #6B6255;
    --c-text-faint: #4A443B;

    --c-amber: #FFB347;
    --c-amber-dim: #D49130;
    --c-amber-dark: #A66D20;
    --c-amber-bg: rgba(255, 179, 71, 0.08);
    --c-amber-glow: rgba(255, 179, 71, 0.12);
    --c-amber-aura: rgba(255, 179, 71, 0.04);

    --c-teal: #4FD1C5;
    --c-teal-dim: #3AA89E;
    --c-teal-dark: #2A7D75;
    --c-teal-bg: rgba(79, 209, 197, 0.08);
    --c-teal-glow: rgba(79, 209, 197, 0.12);

    --c-pink: #FF6B9D;
    --c-pink-dim: #D45580;
    --c-pink-bg: rgba(255, 107, 157, 0.08);

    --c-red: #E85D5D;
    --c-red-dim: #C94949;
    --c-red-dark: #A03636;
    --c-red-bg: rgba(232, 93, 93, 0.08);

    --c-border: #2E2A25;
    --c-border-light: #3C3730;
    --c-border-focus: #4A443B;
    --c-border-active: var(--c-amber-dim);

    --c-scrollbar: #3C3730;
    --c-scrollbar-hover: #4A443B;

    --ff-mono: ui-monospace, 'Cascadia Code', 'Consolas', 'SF Mono', monospace;
    --ff-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ff-serif: ui-serif, Georgia, 'Times New Roman', serif;

    --fs-2xs: 0.65rem;
    --fs-xs: 0.7rem;
    --fs-sm: 0.85rem;
    --fs-base: 0.9375rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 2rem;
    --fs-4xl: 2.8rem;
    --fs-5xl: 3.5rem;
    --fs-hero: clamp(3rem, 8vw, 5.5rem);

    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-14: 56px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    --container-max: 1200px;
    --header-height: 60px;
    --radius: 2px;
    --radius-sm: 1px;
    --radius-lg: 6px;
    --transition: 200ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 500ms cubic-bezier(0.22, 1, 0.36, 1);

    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--c-bg-deep);
}

html::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 179, 71, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 179, 71, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.25;
}

body {
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.75;
    background-color: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: var(--c-amber);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--c-teal);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-body);
    font-weight: 500;
    line-height: 1.15;
    color: var(--c-text-bright);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }

p {
    margin-bottom: var(--sp-4);
}

::selection {
    background-color: var(--c-amber);
    color: var(--c-bg);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--c-scrollbar);
    border-radius: 1px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--c-scrollbar-hover);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

@media (max-width: 576px) {
    .container { padding: 0 var(--sp-4); }
}

.grid {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: repeat(2, 1fr);
}

.grid-2 {
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    display: grid;
    gap: var(--sp-5);
    grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 768px) {
    .grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .grid-4 { grid-template-columns: 1fr; }
    .grid, .grid-2, .grid-3 { gap: var(--sp-4); }
}

.section {
    padding: var(--sp-16) 0;
}

.section-alt {
    background-color: var(--c-bg-alt);
    position: relative;
}

.section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-max);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--c-border-light), transparent);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--sp-8);
    gap: var(--sp-4);
}

.section-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-3xl);
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 0;
    color: var(--c-text-bright);
    position: relative;
    font-style: italic;
}

.section-title::before {
    content: '// ';
    font-family: var(--ff-mono);
    font-size: 0.5em;
    font-style: normal;
    color: var(--c-amber);
    opacity: 0.6;
    vertical-align: 0.3em;
}

.section-alt .section-title {
    color: var(--c-text-bright);
}

.section-link {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    transition: color var(--transition), gap var(--transition);
    padding-bottom: 2px;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--c-amber);
    gap: var(--sp-3);
}

.main-content {
    padding-top: var(--header-height);
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: var(--z-fixed);
    background: var(--c-panel);
    border-bottom: 1px solid var(--c-border);
    transition: box-shadow var(--transition-slow);
}

.site-header.scrolled {
    box-shadow: 0 1px 0 rgba(255, 179, 71, 0.04), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── Header Dynamic Background ── */
.header-dynamic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* 微噪点纹理层 */
.header-noise-layer {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    animation: hdrNoiseShift 30s linear infinite;
}

@keyframes hdrNoiseShift {
    0%   { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

/* 底部流动光条 */
.header-glow-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
}

.header-glow-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background: repeating-linear-gradient(90deg,
        transparent 0%,
        rgba(255, 179, 71, 0.6) 3%,
        rgba(79, 209, 197, 0.4) 7%,
        rgba(130, 120, 255, 0.5) 11%,
        rgba(255, 107, 157, 0.3) 15%,
        transparent 19%,
        transparent 33.33%
    );
    animation: hdrGlowSlide 4s linear infinite;
}

/* 光条上方柔和发光 */
.header-glow-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300%;
    height: 12px;
    background: repeating-linear-gradient(90deg,
        transparent 0%,
        rgba(255, 179, 71, 0.08) 3%,
        rgba(79, 209, 197, 0.06) 7%,
        rgba(130, 120, 255, 0.07) 11%,
        rgba(255, 107, 157, 0.04) 15%,
        transparent 19%,
        transparent 33.33%
    );
    animation: hdrGlowSlide 4s linear infinite;
    filter: blur(4px);
}

@keyframes hdrGlowSlide {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--sp-6);
    position: relative;
    z-index: 1;
}

.logo {
    font-family: var(--ff-serif);
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--c-text-bright);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-style: italic;
    transition: color var(--transition);
    justify-self: start;
}

.logo:hover {
    color: var(--c-amber);
}

.logo-icon {
    width: 60px;
    height: 28px;
    flex-shrink: 0;
}

.logo-text {
    color: inherit;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    font-family: var(--ff-mono);
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    padding: var(--sp-3) var(--sp-5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color var(--transition), background var(--transition);
    position: relative;
}

.nav-link::before {
    content: '/ ';
    color: var(--c-text-faint);
    font-weight: 400;
}

.nav-link:hover {
    color: var(--c-amber);
    background: var(--c-amber-bg);
}

.nav-link.active {
    color: var(--c-amber);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.header-search-form {
    position: relative;
}

.search-input {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: 6px 12px 6px 28px;
    width: 180px;
    transition: border-color var(--transition), width var(--transition), box-shadow var(--transition);
    outline: none;
}

.search-input::placeholder {
    color: var(--c-text-faint);
}

.search-input:focus {
    border-color: var(--c-amber-dim);
    width: 240px;
    box-shadow: 0 0 0 1px var(--c-amber-bg), 0 0 12px var(--c-amber-aura);
}

.dark-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.dark-toggle:hover {
    color: var(--c-amber);
    border-color: var(--c-amber-dim);
}

.dark-toggle .icon-sun { display: inline-flex; }
.dark-toggle .icon-moon { display: none; }
html.light .dark-toggle .icon-sun { display: none; }
html.light .dark-toggle .icon-moon { display: inline-flex; }

.header-auth-link {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--c-border);
    transition: color var(--transition), border-color var(--transition);
}

.header-auth-link:hover {
    color: var(--c-amber);
    border-color: var(--c-amber-dim);
}

.header-user {
    position: relative;
}

.header-user-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: border-color var(--transition);
}

.header-user-toggle:hover {
    border-color: var(--c-amber-dim);
}

.header-user-avatar {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--c-amber);
}

.header-user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    min-width: 160px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    z-index: 100;
}

.header-user.open .header-user-dropdown {
    display: block;
}

.header-user-info {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
}

.header-user-name {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-bright);
}

.header-user-link {
    display: block;
    padding: 8px 12px;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    text-decoration: none;
    transition: color var(--transition), background var(--transition);
}

.header-user-link:hover {
    color: var(--c-amber);
    background: var(--c-surface-hover);
}

.header-user-logout {
    border-top: 1px solid var(--c-border);
}

.header-user-logout .header-user-link {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--ff-mono);
    padding: 8px 12px;
    font-size: var(--fs-xs);
    color: var(--c-red-dim);
}

.header-user-logout .header-user-link:hover {
    color: var(--c-red);
    background: var(--c-red-bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    padding: 6px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--c-text);
    transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--c-panel);
        border-bottom: 1px solid var(--c-border);
        flex-direction: column;
        padding: var(--sp-4);
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        padding: var(--sp-3) var(--sp-4);
        width: 100%;
    }

    .nav-link::before {
        content: '> ';
    }

    .hamburger { display: flex; }

    .search-input { width: 140px; }
    .search-input:focus { width: 180px; }
}

/* ── Hero / CRT Terminal ────────────────────────────── */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-terminal {
    margin-top: var(--sp-10);
    margin-bottom: var(--sp-10);
    position: relative;
    background: var(--c-panel);
    border: 1px solid var(--c-border);
    overflow: hidden;
}

/* 底层：渐变底色 + 光斑 */
.hero-terminal::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 200px at 20% 40%, rgba(255, 179, 71, 0.12) 0%, transparent 70%),
        radial-gradient(circle 160px at 75% 30%, rgba(79, 209, 197, 0.08) 0%, transparent 70%),
        radial-gradient(circle 140px at 50% 80%, rgba(130, 120, 255, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(0,0,0,0.3) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 179, 71, 0.012) 2px,
            rgba(255, 179, 71, 0.012) 4px
        );
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
    animation: heroBgPulse 8s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    0%   { opacity: 0.8; }
    50%  { opacity: 1; }
    100% { opacity: 0.7; }
}

.hero-terminal::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255, 179, 71, 0.08);
    opacity: 0;
    z-index: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
    box-shadow:
        inset 0 0 60px rgba(255, 179, 71, 0.02),
        0 0 30px rgba(255, 179, 71, 0.03);
}

.hero-terminal:hover::after {
    opacity: 1;
}

/* ── Hero SVG 动态线条 ── */
.hero-dynamic-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-svg-lines {
    width: 100%;
    height: 100%;
}

.hero-svg-line {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: heroLineDraw 5s ease-out forwards, heroLineFloat 14s ease-in-out 5s infinite;
}

.hero-svg-line-1 { animation-delay: 0.3s, 5.3s; }
.hero-svg-line-2 { animation-delay: 0.9s, 5.9s; }
.hero-svg-line-3 { animation-delay: 1.5s, 6.5s; }
.hero-svg-line-4 { animation-delay: 2.1s, 7.1s; }

.hero-svg-dot {
    animation: heroDotPulse 4s ease-in-out infinite;
}
.hero-svg-dot-1 { animation-delay: 0s; }
.hero-svg-dot-2 { animation-delay: 0.6s; }
.hero-svg-dot-3 { animation-delay: 1.2s; }
.hero-svg-dot-4 { animation-delay: 1.8s; }
.hero-svg-dot-5 { animation-delay: 2.4s; }
.hero-svg-dot-6 { animation-delay: 3s; }

@keyframes heroLineDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes heroLineFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-6px) translateX(5px); }
    50% { transform: translateY(4px) translateX(-4px); }
    75% { transform: translateY(-3px) translateX(7px); }
}

@keyframes heroDotPulse {
    0%, 100% { opacity: 0.15; r: 2; }
    50% { opacity: 0.65; r: 4.5; }
}

.hero-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    position: relative;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
}

.hero-dot--red { background: var(--c-red); }
.hero-dot--amber { background: var(--c-amber); }
.hero-dot--green { background: var(--c-teal); }

.hero-chrome-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-faint);
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.04em;
}

.hero-content {
    padding: var(--sp-16) var(--sp-12);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-content {
        padding: var(--sp-10) var(--sp-6);
    }
}

.hero-eyebrow {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--sp-5);
}

.hero-eyebrow::before {
    content: '$ ';
    color: var(--c-amber-dim);
}

.hero-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-hero);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: var(--sp-4);
    text-shadow:
        0 0 40px var(--c-amber-aura),
        0 0 80px rgba(255, 179, 71, 0.04);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--c-amber);
    margin-left: 6px;
    vertical-align: baseline;
    animation: cursorBlink 1s step-end infinite;
    box-shadow: 0 0 8px var(--c-amber-glow);
}

/* ── Hero Typewriter (cursor state) ────────────────── */

.hero-title.typing::after {
    animation: cursorBlink 0.6s step-end infinite;
}

/* ── Featured Slider ────────────────────────────────── */

.featured-slider {
    position: relative;
    margin-bottom: var(--sp-10);
    overflow: hidden;
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
}

/* ── Slider Dynamic Background ── */
.slider-slide {
    --sb-1: rgba(255, 179, 71, 0.35);
    --sb-2: rgba(79, 209, 197, 0.3);
    --sb-3: rgba(255, 107, 157, 0.25);
    --sb-4: rgba(130, 120, 255, 0.2);
}

/* 底层：主渐变 */
.slider-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg,
        #1A1815 0%,
        #221E18 20%,
        #1E1A16 40%,
        #262019 60%,
        #1A1815 80%,
        #201C17 100%
    );
    background-size: 200% 200%;
    animation: sliderGradient 10s ease infinite;
}

/* 中层：动态网格线条 + 光斑 */
.slider-slide::after {
    content: '';
    position: absolute;
    inset: -50%;
    z-index: 0;
    width: 200%;
    height: 200%;
    background:
        /* 动态光斑 */
        radial-gradient(circle 180px at 20% 30%, var(--sb-1) 0%, transparent 70%),
        radial-gradient(circle 150px at 70% 25%, var(--sb-2) 0%, transparent 70%),
        radial-gradient(circle 120px at 45% 75%, var(--sb-3) 0%, transparent 70%),
        radial-gradient(circle 100px at 85% 65%, var(--sb-4) 0%, transparent 70%),
        /* 网格线条 */
        repeating-linear-gradient(0deg,
            transparent, transparent 58px,
            rgba(255, 179, 71, 0.04) 58px, rgba(255, 179, 71, 0.04) 60px
        ),
        repeating-linear-gradient(90deg,
            transparent, transparent 58px,
            rgba(79, 209, 197, 0.03) 58px, rgba(79, 209, 197, 0.03) 60px
        ),
        /* 对角线 */
        linear-gradient(45deg,
            transparent 0%, transparent 42%,
            rgba(255, 179, 71, 0.06) 42%, rgba(255, 179, 71, 0.06) 42.5%,
            transparent 42.5%, transparent 100%
        ),
        linear-gradient(-35deg,
            transparent 0%, transparent 55%,
            rgba(79, 209, 197, 0.05) 55%, rgba(79, 209, 197, 0.05) 55.5%,
            transparent 55.5%, transparent 100%
        );
    animation: sliderMeshMove 20s linear infinite;
}

@keyframes sliderGradient {
    0%   { background-position: 0% 0%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

@keyframes sliderMeshMove {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(-8%, -4%) rotate(0.5deg); }
    50%  { transform: translate(-4%, -8%) rotate(0deg); }
    75%  { transform: translate(2%, -4%) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* 当有封面图时隐藏动态背景 */
.slider-slide:has(.slider-bg)::before,
.slider-slide:has(.slider-bg)::after {
    display: none;
}

/* ── SVG 动态线条 ── */
.slider-dynamic-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.slider-svg-lines {
    width: 100%;
    height: 100%;
}

.svg-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: svgLineDraw 4s ease-out forwards, svgLineFloat 12s ease-in-out 4s infinite;
}

.svg-line-1 { animation-delay: 0s, 4s; }
.svg-line-2 { animation-delay: 0.6s, 4.6s; }
.svg-line-3 { animation-delay: 1.2s, 5.2s; }

.svg-dot {
    animation: svgDotPulse 3s ease-in-out infinite;
}
.svg-dot-1 { animation-delay: 0s; }
.svg-dot-2 { animation-delay: 0.5s; }
.svg-dot-3 { animation-delay: 1s; }
.svg-dot-4 { animation-delay: 1.5s; }
.svg-dot-5 { animation-delay: 2s; }

@keyframes svgLineDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes svgLineFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-8px) translateX(4px); }
    50% { transform: translateY(5px) translateX(-3px); }
    75% { transform: translateY(-3px) translateX(6px); }
}

@keyframes svgDotPulse {
    0%, 100% { opacity: 0.2; r: 2; }
    50% { opacity: 0.7; r: 4; }
}

/* 有封面图时隐藏 SVG 背景 */
.slider-slide:has(.slider-bg) ~ .slider-dynamic-bg,
.featured-slider:has(.slider-bg) .slider-dynamic-bg {
    opacity: 0;
}

/* 没有封面图时，overlay 使用更轻的渐变让动态背景可见 */
.slider-slide:not(:has(.slider-bg)) .slider-overlay {
    background: linear-gradient(90deg,
        rgba(20, 18, 16, 0.55) 0%,
        rgba(20, 18, 16, 0.25) 50%,
        rgba(20, 18, 16, 0.05) 100%
    );
}

.slider-track {
    position: relative;
    min-height: 360px;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(1.02);
    pointer-events: none;
}

.slider-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

.slider-link {
    display: block;
    position: relative;
    width: 100%;
    height: 360px;
    overflow: hidden;
    text-decoration: none;
}

.slider-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(20, 18, 16, 0.85) 0%,
        rgba(20, 18, 16, 0.5) 50%,
        rgba(20, 18, 16, 0.3) 100%
    );
    z-index: 1;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-8);
    z-index: 2;
    max-width: 650px;
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}

.slider-date {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.slider-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-3xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    line-height: 1.15;
    margin-bottom: var(--sp-3);
}

.slider-summary {
    font-size: var(--fs-base);
    color: var(--c-text-muted);
    line-height: 1.7;
}

.slider-dots {
    position: absolute;
    bottom: var(--sp-4);
    right: var(--sp-8);
    z-index: 3;
    display: flex;
    gap: var(--sp-3);
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border: 1px solid var(--c-text-muted);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition);
}

.slider-dot.active {
    background: var(--c-amber);
    border-color: var(--c-amber);
    box-shadow: 0 0 6px var(--c-amber-glow);
}

.slider-dot:hover {
    border-color: var(--c-amber-dim);
}

@media (max-width: 768px) {
    .slider-link { height: 280px; }
    .slider-title { font-size: var(--fs-2xl); }
    .slider-content { padding: var(--sp-6); }
    .slider-summary { display: none; }
    .slider-dots { right: var(--sp-6); bottom: var(--sp-3); }
    .slider-track { min-height: 280px; }
}

.hero-desc {
    font-family: var(--ff-body);
    font-size: var(--fs-lg);
    color: var(--c-text-muted);
    max-width: 600px;
    margin-bottom: var(--sp-10);
    line-height: 1.9;
    min-height: 1.9em;
}

.hero-desc::before {
    content: '# ';
    font-family: var(--ff-mono);
    font-size: 0.8em;
    color: var(--c-text-dim);
}

.hero-desc-link {
    color: var(--c-amber);
    text-decoration: none;
    border-bottom: 1px solid var(--c-amber-dim);
    transition: border-color var(--transition), color var(--transition);
}

.hero-desc-link:hover {
    color: var(--c-text-bright);
    border-bottom-color: var(--c-amber);
}

.hero-actions {
    display: flex;
    gap: var(--sp-5);
    flex-wrap: wrap;
}

/* ── Keyframes ──────────────────────────────────────── */

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.92; }
    94% { opacity: 1; }
    96% { opacity: 0.96; }
    97% { opacity: 1; }
}

@keyframes scanlineMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* ── Article Card ───────────────────────────────────── */

.article-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--c-amber);
    transition: height var(--transition-slow);
    z-index: 2;
}

.article-card:hover {
    border-color: var(--c-border-light);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.article-card:hover::before {
    height: 100%;
}

.article-card .card-image-link {
    display: block;
    overflow: hidden;
    position: relative;
}

.article-card .card-image-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 14, 12, 0.4));
    pointer-events: none;
}

.article-card .card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image {
    transform: scale(1.04);
}

.card-body {
    padding: var(--sp-5);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.card-body > .badge {
    margin-bottom: var(--sp-1);
}

.card-body > .card-summary {
    margin-top: var(--sp-1);
}

.badge {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
}

.badge-category {
    background: var(--c-amber-bg);
    color: var(--c-amber);
    border: 1px solid rgba(255, 179, 71, 0.15);
}

.badge-difficulty-beginner {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    border: 1px solid rgba(79, 209, 197, 0.15);
}

.badge-difficulty-intermediate {
    background: var(--c-amber-bg);
    color: var(--c-amber);
    border: 1px solid rgba(255, 179, 71, 0.15);
}

.badge-difficulty-advanced {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.15);
}

.badge-pricing {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    border: 1px solid rgba(79, 209, 197, 0.15);
}

.badge-success {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    border: 1px solid rgba(79, 209, 197, 0.15);
}

.badge-warning {
    background: var(--c-amber-bg);
    color: var(--c-amber);
    border: 1px solid rgba(255, 179, 71, 0.15);
}

.badge-danger {
    background: var(--c-red-bg);
    color: var(--c-red);
    border: 1px solid rgba(232, 93, 93, 0.15);
}

.card-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    margin-bottom: var(--sp-1);
    line-height: 1.25;
}

.card-title a {
    color: inherit;
    transition: color var(--transition);
}

.card-title a:hover {
    color: var(--c-amber);
}

.card-summary,
.card-description {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.75;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    margin-top: auto;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--c-border);
}

.card-link {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--transition), gap var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: auto;
}

.card-link:hover {
    color: var(--c-teal);
    gap: var(--sp-3);
}

/* ── Product Card ───────────────────────────────────── */

.product-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-6);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--c-teal);
    transition: height var(--transition-slow);
    z-index: 2;
}

.product-card:hover {
    border-color: var(--c-border-light);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.product-card:hover::before {
    height: 100%;
}

.product-card .card-header {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}

.product-card.compact .card-header {
    margin-bottom: var(--sp-3);
}

.product-logo {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-border);
    object-fit: cover;
    flex-shrink: 0;
}

.product-logo-placeholder {
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-mono);
    font-size: var(--fs-lg);
    font-weight: 500;
    color: var(--c-teal);
    background: var(--c-teal-bg);
    flex-shrink: 0;
}

.product-logo-placeholder.large {
    width: 64px;
    height: 64px;
    font-size: var(--fs-3xl);
}

.card-title-area {
    flex: 1;
    min-width: 0;
}

.card-title-area .card-title {
    margin-bottom: var(--sp-1);
}

.card-badges {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.rating-bar-mini {
    flex: 1;
    height: 3px;
    background: var(--c-border);
    overflow: hidden;
}

.rating-bar-mini .rating-bar-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.rating-bar-fill.good { background: var(--c-amber); }
.rating-bar-fill.ok { background: var(--c-teal); }
.rating-bar-fill.bad { background: var(--c-red); }

.rating-score {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    font-weight: 500;
    min-width: 2.5ch;
    text-align: right;
}

.rating-score.good { color: var(--c-amber); }
.rating-score.ok { color: var(--c-teal); }
.rating-score.bad { color: var(--c-red); }

/* ── Buttons ────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-weight: 500;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 20px;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
    box-shadow: 0 0 12px var(--c-amber-aura);
}

.btn-primary {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-bg);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--c-amber-dim);
    border-color: var(--c-amber-dim);
    color: var(--c-bg);
    box-shadow: 0 0 20px var(--c-amber-glow);
}

.btn-secondary {
    background: transparent;
    border-color: var(--c-border);
    color: var(--c-text-muted);
}

.btn-secondary:hover {
    border-color: var(--c-text-muted);
    color: var(--c-text-bright);
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
}

.btn-outline:hover {
    background: var(--c-amber-bg);
    border-color: var(--c-amber);
    box-shadow: 0 0 12px var(--c-amber-aura);
}

.btn-danger {
    border-color: var(--c-red-dim);
    color: var(--c-red);
}

.btn-danger:hover {
    background: var(--c-red-bg);
    border-color: var(--c-red);
    box-shadow: 0 0 12px var(--c-red-bg);
}

.btn-lg {
    padding: 12px 28px;
    font-size: var(--fs-sm);
}

.btn-sm {
    padding: 4px 12px;
    font-size: var(--fs-xs);
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
    background: var(--c-panel);
    border-top: 1px solid var(--c-border);
    position: relative;
    margin-top: auto;
}

.footer-terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-2) var(--sp-6);
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

.footer-terminal-bar .prompt {
    color: var(--c-amber-dim);
}

.footer-terminal-bar .cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background: var(--c-amber);
    animation: cursorBlink 1s step-end infinite;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 0 6px var(--c-amber-glow);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-10);
    padding: var(--sp-12) var(--sp-6);
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.footer-tagline {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.7;
}

.footer-tagline::before {
    content: '# ';
    font-family: var(--ff-mono);
    font-size: 0.85em;
    color: var(--c-text-dim);
}

.footer-col h4 {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.footer-col h4::before {
    content: '$ ';
    font-family: var(--ff-mono);
    color: var(--c-text-dim);
}

.footer-col a {
    display: block;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    padding: 4px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--c-amber);
}

.footer-col a::before {
    content: '→ ';
    color: var(--c-text-dim);
    font-size: var(--fs-xs);
}

.footer-bottom {
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--c-border);
    text-align: center;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-faint);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-8);
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* ── Breadcrumb ─────────────────────────────────────── */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-dim);
    margin-top: var(--sp-4);
    margin-bottom: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--c-amber-dim);
    text-decoration: none;
    padding: 2px 0;
}

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

.breadcrumb .sep {
    color: var(--c-text-faint);
    font-size: 0.75em;
}

.breadcrumb-current {
    color: var(--c-text-bright) !important;
    font-weight: 500;
}

/* ── Sidebar Layout (News/Product Listing) ──────────── */

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--sp-10));
    align-self: start;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--sp-12);
    padding: var(--sp-10) 0 var(--sp-16);
}

.content-with-sidebar.sidebar-right {
    grid-template-columns: 1fr 240px;
}

.content-main {
    min-width: 0;
}

.sidebar-section {
    margin-bottom: var(--sp-10);
}

.sidebar-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.sidebar-title::before {
    content: '$ ';
    color: var(--c-text-dim);
}

.sidebar-list a {
    display: block;
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    padding: var(--sp-2) var(--sp-3);
    border-left: 2px solid transparent;
    transition: all var(--transition);
}

.sidebar-list a::before {
    content: '• ';
    color: var(--c-text-faint);
}

.sidebar-list a:hover {
    color: var(--c-amber);
    border-left-color: var(--c-amber-dim);
    background: var(--c-amber-bg);
}

.sidebar-list a.active {
    color: var(--c-amber);
    border-left-color: var(--c-amber);
    background: var(--c-amber-bg);
}

/* ── Tags ───────────────────────────────────────────── */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.tag-pill {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    padding: 3px 10px;
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}

.tag-pill:hover {
    background: var(--c-amber-bg);
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
}

/* ── Empty State ────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: var(--sp-16) 0;
    color: var(--c-text-dim);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
}

/* ── Sort Controls ──────────────────────────────────── */

.sort-controls {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
}

.sort-label {
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sort-btn {
    padding: 4px 10px;
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    transition: all var(--transition);
}

.sort-btn:hover {
    border-color: var(--c-text-muted);
    color: var(--c-text);
}

.sort-btn.active {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-bg);
}

/* ── Article Detail ─────────────────────────────────── */

.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: var(--sp-10);
    padding: var(--sp-10) 0 0;
    align-items: start;
}

.article-detail-main {
    min-width: 0;
}

.article-detail {
    max-width: 720px;
}

.article-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--sp-10));
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.article-cover {
    margin-bottom: var(--sp-10);
    border: 1px solid var(--c-border);
    overflow: hidden;
    position: relative;
}

.article-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 60px rgba(15, 14, 12, 0.4);
    pointer-events: none;
}

.article-cover img {
    width: 100%;
    display: block;
}

.article-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-4xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    margin-bottom: var(--sp-6);
    line-height: 1.2;
    letter-spacing: 0.008em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-10);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--c-border);
}

.article-meta svg {
    opacity: 0.5;
    vertical-align: middle;
    margin-right: 4px;
}

.meta-author,
.meta-date,
.meta-views {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
}

.article-content {
    font-family: var(--ff-body);
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--c-text);
    letter-spacing: 0.008em;
}

.article-content h2 {
    font-family: var(--ff-serif);
    font-size: var(--fs-2xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    margin-top: var(--sp-16);
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--c-border);
}

.article-content h3 {
    font-family: var(--ff-body);
    font-size: var(--fs-xl);
    font-weight: 500;
    color: var(--c-amber);
    margin-top: var(--sp-12);
    margin-bottom: var(--sp-4);
}

.article-content p {
    margin-bottom: var(--sp-6);
}

.article-content a {
    color: var(--c-teal);
    border-bottom: 1px solid var(--c-teal-dim);
}

.article-content a:hover {
    color: var(--c-amber);
    border-color: var(--c-amber);
}

.article-content code {
    font-family: var(--ff-mono);
    font-size: 0.9em;
    background: var(--c-bg-alt);
    padding: 1px 6px;
    border: 1px solid var(--c-border);
    color: var(--c-amber);
}

.article-content pre {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    padding: var(--sp-5);
    overflow-x: auto;
    margin-bottom: var(--sp-5);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text);
    line-height: 1.6;
}

.article-content pre::before {
    content: '$ ';
    font-family: var(--ff-mono);
    color: var(--c-amber-dim);
}

.article-content blockquote {
    border-left: 2px solid var(--c-amber-dim);
    padding: var(--sp-3) var(--sp-5);
    margin: var(--sp-5) 0;
    background: var(--c-amber-bg);
    color: var(--c-text-muted);
    font-style: italic;
}

.article-content blockquote::before {
    content: '> ';
    font-family: var(--ff-mono);
    color: var(--c-amber-dim);
}

.article-content ul, .article-content ol {
    margin-bottom: var(--sp-5);
    padding-left: var(--sp-6);
}

.article-content li {
    margin-bottom: var(--sp-2);
}

.article-content li::marker {
    color: var(--c-amber-dim);
}

.article-tags {
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.tags-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Share Sidebar ────────────────────────────────── */

.article-sidebar-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-5);
}

.article-sidebar-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.article-share-buttons {
    display: flex;
    gap: var(--sp-2);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.share-btn:hover {
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
    background: var(--c-amber-bg);
}

.share-btn[data-share="copy"].copied {
    border-color: var(--c-teal-dim);
    color: var(--c-teal);
    background: var(--c-teal-bg);
}

.share-btn-wechat:hover {
    border-color: #07C160;
    color: #07C160;
    background: rgba(7, 193, 96, 0.08);
}

.share-btn-qq:hover {
    border-color: #12B7F5;
    color: #12B7F5;
    background: rgba(18, 183, 245, 0.08);
}

.share-wechat-qrcode {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.share-wechat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.share-wechat-panel {
    position: relative;
    z-index: 1;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-10) var(--sp-8);
    text-align: center;
    min-width: 240px;
    animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.share-wechat-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--c-text-bright);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-5);
}

.share-wechat-title::before {
    content: '// ';
    color: var(--c-amber-dim);
}

.share-wechat-qr {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--sp-4);
    background: #fff;
    padding: var(--sp-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-wechat-qr canvas {
    display: block;
}

.share-wechat-hint {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.share-wechat-hint::before {
    content: '# ';
    color: var(--c-text-faint);
}

.share-wechat-close {
    position: absolute;
    top: var(--sp-3);
    right: var(--sp-3);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.share-wechat-close:hover {
    color: var(--c-red);
    border-color: var(--c-red-dim);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

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

/* ── Article Sidebar Info / Tags ─────────────────── */

.article-sidebar-defs {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.article-sidebar-def {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
}

.article-sidebar-def dt {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    flex-shrink: 0;
}

.article-sidebar-def dd {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.article-sidebar-tag {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-muted);
    border: 1px solid var(--c-border);
    padding: 2px 8px;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}

.article-sidebar-tag:hover {
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
}

/* ── Tutorial Detail (Two Column: Sidebar + Content) ── */

.tutorial-detail-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 0 var(--sp-10);
    padding-top: var(--sp-10);
    align-items: start;
}

.tutorial-detail-layout {
    min-width: 0;
    max-width: 800px;
    padding: 0;
}

.tutorial-widget {
    position: sticky;
    top: calc(var(--header-height) + var(--sp-6));
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.tutorial-widget-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-5);
}

.tutorial-widget-heading {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.tutorial-widget-defs {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.tutorial-widget-def {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
}

.tutorial-widget-def dt {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    flex-shrink: 0;
}

.tutorial-widget-def dd {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tutorial-widget-def dd a {
    color: var(--c-teal);
    text-decoration: none;
    border-bottom: 1px solid var(--c-teal-dim);
}

.tutorial-widget-def dd a:hover {
    color: var(--c-amber);
    border-color: var(--c-amber);
}

.tutorial-widget-share {
    display: flex;
    gap: var(--sp-2);
}

.tutorial-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.tutorial-header {
    margin-bottom: var(--sp-10);
}

.tutorial-header-top {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}

.tutorial-category-link {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-bottom: 1px solid var(--c-teal-dim);
    transition: color var(--transition), border-color var(--transition);
}

.tutorial-category-link:hover {
    color: var(--c-amber);
    border-color: var(--c-amber);
}

.tutorial-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-4xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    line-height: 1.2;
    letter-spacing: 0.008em;
    margin-bottom: var(--sp-5);
}

.tutorial-summary {
    font-family: var(--ff-body);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-6);
}

.tutorial-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex-wrap: wrap;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--c-border);
}

.tutorial-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
}

.tutorial-meta-item svg {
    opacity: 0.5;
}

.tutorial-content {
    font-family: var(--ff-body);
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--c-text);
    letter-spacing: 0.008em;
}

.tutorial-content h2 {
    font-family: var(--ff-serif);
    font-size: var(--fs-2xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    margin-top: var(--sp-16);
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--c-border);
}

.tutorial-content h3 {
    font-family: var(--ff-body);
    font-size: var(--fs-xl);
    font-weight: 500;
    color: var(--c-amber);
    margin-top: var(--sp-12);
    margin-bottom: var(--sp-4);
}

.tutorial-content p {
    margin-bottom: var(--sp-6);
}

.tutorial-content a {
    color: var(--c-teal);
    border-bottom: 1px solid var(--c-teal-dim);
}

.tutorial-content a:hover {
    color: var(--c-amber);
    border-color: var(--c-amber);
}

.tutorial-content code {
    font-family: var(--ff-mono);
    font-size: 0.9em;
    background: var(--c-bg-alt);
    padding: 1px 6px;
    border: 1px solid var(--c-border);
    color: var(--c-amber);
}

.tutorial-content pre {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    padding: var(--sp-5);
    overflow-x: auto;
    margin-bottom: var(--sp-5);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text);
    line-height: 1.6;
}

.tutorial-content pre::before {
    content: '$ ';
    font-family: var(--ff-mono);
    color: var(--c-amber-dim);
}

.tutorial-content blockquote {
    border-left: 2px solid var(--c-amber-dim);
    padding: var(--sp-3) var(--sp-5);
    margin: var(--sp-5) 0;
    background: var(--c-amber-bg);
    color: var(--c-text-muted);
    font-style: italic;
}

.tutorial-content ul, .tutorial-content ol {
    margin-bottom: var(--sp-5);
    padding-left: var(--sp-6);
}

.tutorial-content li {
    margin-bottom: var(--sp-2);
}

.tutorial-content li::marker {
    color: var(--c-amber-dim);
}

.tutorial-footer {
    margin-top: var(--sp-12);
    padding-top: var(--sp-8);
    border-top: 1px solid var(--c-border);
}

.tutorial-tags {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-bottom: var(--sp-6);
}

.tutorial-share-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.tutorial-share-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Tutorial List Page ──────────────────────────── */

/* Featured Tutorial */
.tutorial-featured {
    margin-bottom: var(--sp-10);
}

.tutorial-featured-link {
    display: block;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-8);
    text-decoration: none;
    transition: border-color var(--transition);
}

.tutorial-featured-link:hover {
    border-color: var(--c-amber-dim);
}

.tutorial-featured-badges {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.tutorial-featured-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-2xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    line-height: 1.3;
    margin-bottom: var(--sp-3);
}

.tutorial-featured-link:hover .tutorial-featured-title {
    color: var(--c-amber);
}

.tutorial-featured-summary {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-4);
}

.tutorial-featured-meta {
    display: flex;
    gap: var(--sp-4);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

/* Tutorial List */
.tutorial-list {
}

.tutorial-list-item {
    border-bottom: 1px solid var(--c-border);
}

.tutorial-list-link {
    display: block;
    padding: var(--sp-6) 0;
    text-decoration: none;
}

.tutorial-list-badges {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-2);
}

.tutorial-list-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    line-height: 1.3;
    margin-bottom: var(--sp-2);
    transition: color var(--transition);
}

.tutorial-list-link:hover .tutorial-list-title {
    color: var(--c-amber);
}

.tutorial-list-summary {
    font-family: var(--ff-body);
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--c-text-muted);
    margin-bottom: var(--sp-3);
}

.tutorial-list-meta {
    display: flex;
    gap: var(--sp-4);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

.tag-pill.active {
    border-color: var(--c-amber);
    color: var(--c-amber);
    background: var(--c-amber-bg);
}

/* ── Comments ──────────────────────────────────────── */

.article-comments {
    max-width: 720px;
    margin-top: var(--sp-12);
    padding-top: var(--sp-8);
    border-top: 1px solid var(--c-border);
}

.article-comments-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.comment-form {
    margin-bottom: var(--sp-8);
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-dim);
}

.comment-form-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.comment-textarea {
    width: 100%;
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: var(--sp-3);
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
}

.comment-textarea:focus {
    border-color: var(--c-amber-dim);
}

.comment-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--sp-3);
}

.comment-form-hint {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-faint);
}

.comment-form-hint::before {
    content: '# ';
}

.comment-list {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}

.comment-empty {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-faint);
    text-align: center;
    padding: var(--sp-8) 0;
}

/* ── Related Section ───────────────────────────────── */

.related-section {
    margin-bottom: var(--sp-16);
}

/* ── Product Detail ─────────────────────────────────── */

/* ── Product Detail (two-column layout) ───────────── */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--sp-10);
    padding: var(--sp-10) 0 var(--sp-16);
    align-items: start;
}

.product-detail-main {
    min-width: 0;
}

.product-detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--sp-10));
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

/* ── Product Header ────────────────────────────────── */

.pd-header {
    display: flex;
    gap: var(--sp-6);
    margin-bottom: var(--sp-10);
    padding-bottom: var(--sp-8);
    border-bottom: 1px solid var(--c-border);
}

.pd-header-media {
    flex-shrink: 0;
}

.pd-header-logo {
    width: 72px;
    height: 72px;
    border: 1px solid var(--c-border);
    object-fit: cover;
    background: var(--c-surface);
}

.pd-header-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-mono);
    font-size: var(--fs-3xl);
    color: var(--c-amber);
}

.pd-header-body {
    flex: 1;
    min-width: 0;
}

.pd-header-name {
    font-family: var(--ff-serif);
    font-size: var(--fs-4xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    line-height: 1.1;
    margin-bottom: var(--sp-2);
}

.pd-header-detail {
    margin-bottom: var(--sp-4);
}

.pd-header-tagline {
    font-size: var(--fs-base);
    color: var(--c-text-muted);
    line-height: 1.6;
}

.pd-header-meta {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

/* ── Section Titles ────────────────────────────────── */

.pd-section {
    margin-bottom: var(--sp-10);
}

.pd-section-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.pd-section-marker {
    color: var(--c-text-dim);
    margin-right: var(--sp-2);
}

/* ── Ratings (cirlce + bars) ───────────────────────── */

.pd-ratings {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-6);
}

.pd-ratings-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-8);
    align-items: center;
}

.pd-ratings-score {
    text-align: center;
}

.pd-score-ring {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto var(--sp-2);
}

.pd-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.pd-score-bg {
    fill: none;
    stroke: var(--c-border);
    stroke-width: 6;
}

.pd-score-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
}

.pd-score-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xl);
    font-weight: 600;
}

.pd-score-num.good { color: var(--c-amber); }
.pd-score-num.ok { color: var(--c-teal); }
.pd-score-num.bad { color: var(--c-red); }

.pd-score-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pd-ratings-bars {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.pd-ratings-row {
    display: grid;
    grid-template-columns: 56px 1fr 32px;
    align-items: center;
    gap: var(--sp-3);
}

.pd-ratings-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    text-align: right;
}

.pd-ratings-track {
    height: 5px;
    background: var(--c-border);
    overflow: hidden;
}

.pd-ratings-fill {
    height: 100%;
    transition: width 0.6s ease;
}

.pd-ratings-fill.good { background: var(--c-amber); }
.pd-ratings-fill.ok { background: var(--c-teal); }
.pd-ratings-fill.bad { background: var(--c-red); }

.pd-ratings-value {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    text-align: right;
}

.pd-ratings-value.good { color: var(--c-amber); }
.pd-ratings-value.ok { color: var(--c-teal); }
.pd-ratings-value.bad { color: var(--c-red); }

/* ── Description / Detail ──────────────────────────── */

.pd-desc-text {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--c-text);
}

.pd-detail-content {
    font-size: var(--fs-base);
    line-height: 1.8;
    color: var(--c-text);
}

.pd-detail-content h2,
.pd-detail-content h3,
.pd-detail-content h4 {
    font-family: var(--ff-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    margin-top: var(--sp-6);
    margin-bottom: var(--sp-3);
}

.pd-detail-content h2 { font-size: var(--fs-2xl); }
.pd-detail-content h3 { font-size: var(--fs-xl); }
.pd-detail-content h4 { font-size: var(--fs-lg); }

.pd-detail-content p {
    margin-bottom: var(--sp-4);
}

.pd-detail-content a {
    color: var(--c-amber-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-detail-content a:hover {
    color: var(--c-amber);
}

.pd-detail-content code {
    font-family: var(--ff-mono);
    font-size: 0.85em;
    background: var(--c-surface);
    padding: 2px 6px;
}

.pd-detail-content pre {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    padding: var(--sp-4);
    overflow-x: auto;
    margin-bottom: var(--sp-4);
}

.pd-detail-content ul,
.pd-detail-content ol {
    margin-bottom: var(--sp-4);
    padding-left: var(--sp-6);
}

.pd-detail-content li {
    margin-bottom: var(--sp-2);
}

/* ── Alternatives Grid ─────────────────────────────── */

.pd-alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--sp-4);
}

.pd-alt-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-4);
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative;
}

.pd-alt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--c-teal);
    transition: height var(--transition);
}

.pd-alt-card:hover {
    border-color: var(--c-teal-dim);
    box-shadow: 0 0 0 1px var(--c-teal-bg);
}

.pd-alt-card:hover::before {
    height: 100%;
}

.pd-alt-card-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.pd-alt-logo {
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-border);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--c-bg);
}

.pd-alt-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-amber);
}

.pd-alt-info {
    flex: 1;
    min-width: 0;
}

.pd-alt-name {
    font-family: var(--ff-serif);
    font-size: var(--fs-base);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-alt-pricing {
    font-size: var(--fs-2xs);
}

.pd-alt-rating {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    font-weight: 500;
    flex-shrink: 0;
}

.pd-alt-rating.good { color: var(--c-amber); }
.pd-alt-rating.ok { color: var(--c-teal); }
.pd-alt-rating.bad { color: var(--c-red); }

.pd-alt-desc {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    line-height: 1.6;
    margin-bottom: var(--sp-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-alt-footer {
    margin-top: auto;
    padding-top: var(--sp-2);
    border-top: 1px solid var(--c-border);
    display: flex;
    justify-content: flex-end;
}

.pd-alt-compare {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: color var(--transition);
}

.pd-alt-compare:hover {
    color: var(--c-amber);
}

.pd-alt-compare::before {
    content: '⇄ ';
}

/* ── Sidebar Cards ─────────────────────────────────── */

.pd-sidebar-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-5);
}

.pd-sidebar-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.pd-sidebar-defs {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.pd-sidebar-def {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-3);
}

.pd-sidebar-def dt {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    flex-shrink: 0;
}

.pd-sidebar-def dd {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-pricing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 6px;
    vertical-align: middle;
}

.pd-pricing-dot[data-model="free"] { background: var(--c-teal); }
.pd-pricing-dot[data-model="open_source"] { background: var(--c-teal); }
.pd-pricing-dot[data-model="freemium"] { background: var(--c-amber); }
.pd-pricing-dot[data-model="paid"] { background: var(--c-pink); }
.pd-pricing-dot[data-model="subscription"] { background: var(--c-pink); }
.pd-pricing-dot[data-model="unknown"] { background: var(--c-text-faint); }

.pd-sidebar-link {
    color: var(--c-amber-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-sidebar-link:hover {
    color: var(--c-amber);
}

.pd-sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.pd-sidebar-tag {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-muted);
    border: 1px solid var(--c-border);
    padding: 2px 8px;
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}

.pd-sidebar-tag:hover {
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
}

.pd-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    .product-detail-sidebar {
        position: static;
        order: -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-4);
    }
    .pd-sidebar-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .pd-ratings-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .pd-ratings-score {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .pd-alt-grid {
        grid-template-columns: 1fr;
    }
    .product-detail-sidebar {
        grid-template-columns: 1fr;
    }
}

/* ── Compare Table ──────────────────────────────────── */

.table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
}

.compare-table th,
.compare-table td {
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--c-border);
    text-align: left;
}

.compare-table th {
    background: var(--c-surface);
    color: var(--c-amber);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--fs-xs);
}

.compare-table td {
    color: var(--c-text);
}

.compare-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
}

.compare-label-col {
    width: 100px;
    font-weight: 500;
    color: var(--c-text-muted);
}

.compare-product-col {
    min-width: 160px;
}

.compare-description {
    font-size: var(--fs-sm);
    line-height: 1.6;
}

.compare-actions {
    display: flex;
    gap: var(--sp-4);
    margin-top: var(--sp-8);
}

.best {
    position: relative;
}

.best::after {
    content: '★';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 10px;
    color: var(--c-amber);
}

.compare-table tr:hover td {
    background: var(--c-surface-hover);
}

.rating-row.compact {
    gap: var(--sp-2);
}

.rating-row.compact .rating-label {
    display: none;
}

/* ── Alerts ─────────────────────────────────────────── */

.alert {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    padding: var(--sp-3) var(--sp-5);
    margin-bottom: var(--sp-4);
    border-left: 3px solid;
}

.alert::before {
    content: '// ';
    font-weight: 700;
}

.alert-success {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    border-left-color: var(--c-teal);
}

.alert-error {
    background: var(--c-red-bg);
    color: var(--c-red);
    border-left-color: var(--c-red);
}

.alert-warning {
    background: var(--c-amber-bg);
    color: var(--c-amber);
    border-left-color: var(--c-amber);
}

.alert-info {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    border-left-color: var(--c-teal);
}

/* ── Pagination ─────────────────────────────────────── */

.pagination {
    margin-top: var(--sp-8);
}

.pagination-info {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
    margin-bottom: var(--sp-3);
}

.pagination-links {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 var(--sp-3);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-muted);
    transition: all var(--transition);
    text-decoration: none;
}

.pagination-link:hover {
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
    background: var(--c-amber-bg);
}

.pagination-link.active {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-bg);
}

.pagination-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

/* ── Back to Top ────────────────────────────────────── */

.back-to-top {
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-6);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    cursor: pointer;
    z-index: var(--z-sticky);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-bg);
    box-shadow: 0 0 16px var(--c-amber-glow);
}

/* ── CRT Scanline Overlay ───────────────────────────── */

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 179, 71, 0.008) 2px,
        rgba(255, 179, 71, 0.008) 4px
    );
}

/* ── Reveal Animations ──────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 80ms; }
.stagger-2 { transition-delay: 160ms; }
.stagger-3 { transition-delay: 240ms; }
.stagger-4 { transition-delay: 320ms; }

/* ── Community ────────────────────────────────────────── */

.community-stats {
    display: flex;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
}

.community-stat-item {
    flex: 1;
    text-align: center;
    padding: var(--sp-3);
    background: var(--c-surface);
    border-radius: var(--radius-md);
}

.community-stat-num {
    display: block;
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--c-accent);
}

.community-stat-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--c-muted);
    margin-top: 2px;
}

/* Post List */
.community-post-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.community-post-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    background: var(--c-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.community-post-item:hover {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 1px var(--c-accent);
}

.community-post-item.is-pinned {
    border-left: 3px solid var(--c-accent);
}

.community-post-main {
    flex: 1;
    min-width: 0;
}

.community-post-header {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-1);
}

.community-post-title {
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 var(--sp-2);
}

.community-post-title a {
    color: var(--c-text);
    text-decoration: none;
}

.community-post-title a:hover {
    color: var(--c-accent);
}

.community-post-meta {
    display: flex;
    gap: var(--sp-3);
    font-size: var(--fs-xs);
    color: var(--c-muted);
    align-items: center;
    flex-wrap: wrap;
}

.community-post-author {
    color: var(--c-text);
    font-weight: 500;
}

.community-post-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.community-post-stat svg {
    opacity: 0.6;
}

.community-post-last-reply {
    flex-shrink: 0;
    text-align: right;
    font-size: var(--fs-xs);
    color: var(--c-muted);
    min-width: 100px;
}

.last-reply-label {
    display: block;
    color: var(--c-muted);
    margin-bottom: 2px;
}

.last-reply-user {
    color: var(--c-text);
    font-weight: 500;
}

.last-reply-time {
    display: block;
    margin-top: 2px;
}

.badge-pinned {
    background: var(--c-accent);
    color: var(--c-bg);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.badge-admin {
    background: var(--c-accent);
    color: var(--c-bg);
    font-size: 10px;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.badge-tag {
    background: var(--c-pink-bg);
    color: var(--c-pink);
    border: 1px solid rgba(255, 107, 157, 0.15);
    text-decoration: none;
    transition: all var(--transition);
}
.badge-tag:hover {
    background: rgba(255, 107, 157, 0.15);
    color: var(--c-pink);
}

.badge-info {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    border: 1px solid rgba(79, 209, 197, 0.15);
}

/* Community Tag Cloud / Chips */
.community-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.community-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-muted);
    padding: 3px 10px;
    border: 1px solid var(--c-border);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.community-tag-chip:hover,
.community-tag-chip.is-active {
    background: var(--c-teal-bg);
    border-color: var(--c-teal-dim);
    color: var(--c-teal);
}

.community-tag-count {
    font-size: 10px;
    opacity: 0.6;
}

.community-tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

/* Search Header */
.community-search-header {
    margin-bottom: var(--sp-4);
}

.community-search-header h2 {
    font-size: var(--fs-lg);
    margin-bottom: var(--sp-1);
}

.community-search-count {
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

/* Detail Page */
.community-detail-main {
    min-width: 0;
}

.community-detail-post {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    padding: var(--sp-6);
    margin-bottom: var(--sp-6);
}

.community-detail-header {
    margin-bottom: var(--sp-5);
}

.community-detail-badges {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-2);
}

.community-detail-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--sp-3);
}

.community-detail-meta {
    display: flex;
    gap: var(--sp-4);
    font-size: var(--fs-sm);
    color: var(--c-muted);
    align-items: center;
    flex-wrap: wrap;
}

.community-detail-author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--c-text);
    font-weight: 500;
}

.community-detail-time,
.community-detail-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.community-detail-content {
    margin-bottom: var(--sp-5);
}

.community-detail-actions {
    display: flex;
    gap: var(--sp-3);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}

.btn-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-muted);
    cursor: pointer;
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.btn-like:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.btn-like.is-liked {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: rgba(255, 179, 71, 0.1);
}

.btn-like-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: var(--c-bg-alt, rgba(255,255,255,0.03));
    color: var(--c-muted);
    cursor: pointer;
    font-size: var(--fs-xs);
    transition: all var(--transition-fast);
}

.btn-like-sm:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.btn-like-sm.is-liked {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: rgba(255, 179, 71, 0.1);
}

/* Replies */
.community-replies {
    margin-bottom: var(--sp-6);
}

.community-replies-title {
    font-size: var(--fs-lg);
    font-weight: 600;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--c-border);
}

.community-reply-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.community-reply-item {
    display: flex;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--c-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
}

.community-reply-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-alt);
    border-radius: 50%;
    color: var(--c-muted);
}

.community-reply-body {
    flex: 1;
    min-width: 0;
}

.community-reply-header {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-2);
    font-size: var(--fs-sm);
}

.community-reply-author {
    font-weight: 600;
    color: var(--c-text);
}

.community-reply-time {
    color: var(--c-muted);
    font-size: var(--fs-xs);
}

.btn-reply-quote {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-muted);
    cursor: pointer;
    font-size: var(--fs-xs);
    transition: all var(--transition-fast);
}

.btn-reply-quote:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.community-reply-content {
    font-size: var(--fs-sm);
    line-height: 1.6;
    margin-bottom: var(--sp-2);
}

.community-reply-actions {
    display: flex;
    gap: var(--sp-2);
}

/* Reply Form */
.community-reply-form {
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--c-border);
}

.community-reply-form-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
}

.community-reply-form-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.community-reply-textarea {
    width: 100%;
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: var(--sp-3);
    resize: vertical;
    outline: none;
    transition: border-color var(--transition);
    min-height: 100px;
}

.community-reply-textarea:focus {
    border-color: var(--c-amber-dim);
}

.community-reply-textarea::placeholder {
    color: var(--c-text-faint);
}

.community-reply-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--sp-3);
}

.community-login-prompt {
    text-align: center;
    padding: var(--sp-8) var(--sp-6);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    margin-top: var(--sp-8);
    border-top: 1px solid var(--c-border);
}

.community-login-prompt p {
    margin: var(--sp-3) 0 0;
}

.community-login-prompt a {
    color: var(--c-amber);
    border-bottom: 1px solid var(--c-amber-dim);
}

.community-login-prompt a:hover {
    color: var(--c-teal);
    border-color: var(--c-teal);
}

/* Create Page */
.community-create-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.community-create-title {
    font-size: var(--fs-2xl);
    font-weight: 700;
    margin-bottom: var(--sp-6);
}

.community-create-form .form-group {
    margin-bottom: var(--sp-4);
}

.community-create-textarea {
    min-height: 300px;
}

/* TinyMCE dark overrides for community editor */
.tox-tinymce {
    border-color: var(--c-border) !important;
    border-radius: 0 !important;
}
.tox .tox-menubar,
.tox .tox-toolbar-overlord,
.tox .tox-toolbar__primary {
    background: var(--c-surface) !important;
}
.tox .tox-toolbar__group {
    border-color: var(--c-border) !important;
}
.tox .tox-tbtn svg {
    fill: var(--c-text-muted) !important;
}
.tox .tox-tbtn:hover {
    background: var(--c-surface-hover) !important;
}
.tox .tox-tbtn:hover svg {
    fill: var(--c-text) !important;
}
.tox .tox-tbtn--enabled,
.tox .tox-tbtn--enabled:hover {
    background: var(--c-amber-bg) !important;
}
.tox .tox-tbtn--enabled svg {
    fill: var(--c-amber) !important;
}
.tox .tox-statusbar {
    background: var(--c-surface) !important;
    border-top: 1px solid var(--c-border) !important;
}
.tox .tox-statusbar__text-container {
    color: var(--c-text-dim) !important;
    font-family: var(--ff-mono) !important;
    font-size: var(--fs-2xs) !important;
}
.tox .tox-statusbar .tox-statusbar__resize-handle svg {
    fill: var(--c-text-dim) !important;
}
.tox .tox-toolbar__scroll-btn svg {
    fill: var(--c-text-muted) !important;
}
.tox .tox-collection--toolbar .tox-collection__item {
    color: var(--c-text) !important;
}
.tox .tox-collection--toolbar .tox-collection__item:hover {
    background: var(--c-surface-hover) !important;
}
.tox .tox-collection--toolbar .tox-collection__item--active {
    background: var(--c-amber-bg) !important;
    color: var(--c-amber) !important;
}
.tox .tox-swatches__picker-btn svg {
    fill: var(--c-text-muted) !important;
}
.tox .tox-dialog {
    background: var(--c-surface) !important;
    border: 1px solid var(--c-border) !important;
}
.tox .tox-dialog__header {
    border-bottom: 1px solid var(--c-border) !important;
}
.tox .tox-dialog__title {
    color: var(--c-text-bright) !important;
    font-family: var(--ff-mono) !important;
}
.tox .tox-dialog__body {
    color: var(--c-text) !important;
}
.tox .tox-dialog__footer {
    border-top: 1px solid var(--c-border) !important;
}
.tox .tox-button {
    font-family: var(--ff-mono) !important;
    font-size: var(--fs-xs) !important;
    background: var(--c-surface-hover) !important;
    color: var(--c-text) !important;
    border-color: var(--c-border) !important;
}
.tox .tox-button:hover {
    background: var(--c-amber-bg) !important;
    border-color: var(--c-amber-dim) !important;
    color: var(--c-amber) !important;
}
.tox .tox-button--primary {
    background: var(--c-amber) !important;
    color: var(--c-bg-deep) !important;
    border-color: var(--c-amber) !important;
}
.tox .tox-button--primary:hover {
    background: var(--c-amber-dim) !important;
}
.tox .tox-label {
    color: var(--c-text-muted) !important;
    font-family: var(--ff-mono) !important;
    font-size: var(--fs-2xs) !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tox .tox-textfield {
    background: var(--c-bg) !important;
    border-color: var(--c-border) !important;
    color: var(--c-text) !important;
    font-family: var(--ff-mono) !important;
    font-size: var(--fs-sm) !important;
}
.tox .tox-textfield:focus {
    border-color: var(--c-amber-dim) !important;
    box-shadow: 0 0 0 1px var(--c-amber-bg) !important;
}
.tox .tox-listboxfield .tox-listbox {
    background: var(--c-bg) !important;
    border-color: var(--c-border) !important;
    color: var(--c-text) !important;
}
.tox .tox-collection--list .tox-collection__item {
    color: var(--c-text) !important;
}
.tox .tox-collection--list .tox-collection__item:hover {
    background: var(--c-surface-hover) !important;
}
.tox .tox-collection--list .tox-collection__item--active {
    background: var(--c-amber-bg) !important;
    color: var(--c-amber) !important;
}
.tox .tox-popover {
    background: var(--c-surface) !important;
    border: 1px solid var(--c-border) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}
.tox .tox-popover::before {
    border-bottom-color: var(--c-border) !important;
}
.tox .tox-color-input input {
    border-color: var(--c-border) !important;
}
.tox .tox-split-button .tox-tbtn:first-child {
    border-color: var(--c-border) !important;
}

.sidebar-info {
    font-size: var(--fs-sm);
    color: var(--c-muted);
}

.sidebar-info li {
    padding: var(--sp-1) 0;
}

/* Community Home CTA */
.community-home-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding: var(--sp-8) var(--sp-6);
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
}

.community-home-info h3 {
    font-size: var(--fs-xl);
    font-weight: 700;
    margin-bottom: var(--sp-2);
}

.community-home-info p {
    color: var(--c-muted);
    font-size: var(--fs-sm);
    max-width: 480px;
}

.community-home-actions {
    display: flex;
    gap: var(--sp-3);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .community-home-cta {
        flex-direction: column;
        text-align: center;
    }
    .community-home-info p {
        max-width: 100%;
    }
}

/* ── Utility ────────────────────────────────────────── */

.text-muted {
    color: var(--c-text-muted);
}

.page-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-3xl);
    font-weight: 400;
    font-style: italic;
    color: var(--c-text-bright);
    margin-bottom: var(--sp-8);
    letter-spacing: 0.01em;
}

.search-results-count {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-8);
}

.search-form {
    margin-bottom: var(--sp-8);
}

.search-input-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: var(--c-text-dim);
    pointer-events: none;
}

.form-group {
    margin-bottom: var(--sp-4);
}

.form-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--c-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-label-required::after {
    content: ' *';
    color: var(--c-red);
}

.form-input {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: 8px 12px;
    width: 100%;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
    border-color: var(--c-amber-dim);
    box-shadow: 0 0 0 1px var(--c-amber-bg);
}

.form-select {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: 8px 12px;
    width: 100%;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-select:focus {
    border-color: var(--c-amber-dim);
    box-shadow: 0 0 0 1px var(--c-amber-bg);
}

.form-select option {
    background: var(--c-bg);
    color: var(--c-text);
}

/* ── Auth Pages ─────────────────────────────────────── */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: var(--sp-8) var(--sp-4);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-8) var(--sp-8);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.auth-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-2xl);
    color: var(--c-text-bright);
    margin: 0;
}

.auth-subtitle {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-top: var(--sp-1);
}

.auth-field {
    margin-bottom: var(--sp-4);
}

.auth-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-input {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: 10px 12px;
    width: 100%;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-input:focus {
    border-color: var(--c-amber-dim);
    box-shadow: 0 0 0 1px var(--c-amber-bg);
}

.auth-submit {
    width: 100%;
    margin-top: var(--sp-2);
    padding: 10px;
    font-size: var(--fs-sm);
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    margin-bottom: var(--sp-4);
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    width: 100%;
    padding: 10px 12px;
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    text-decoration: none;
    border: 1px solid var(--c-border);
    color: var(--c-text);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}

.oauth-btn:hover {
    border-color: var(--c-border-light);
}

.oauth-btn-google:hover {
    background: rgba(66, 133, 244, 0.06);
    border-color: #4285F4;
}

.oauth-btn-github:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: #888;
}

.oauth-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
    color: var(--c-text-dim);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--c-border);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.captcha-input {
    flex: 1;
    min-width: 0;
}

.captcha-img {
    height: 46px;
    border-radius: 5px;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid var(--c-border);
    transition: opacity 0.2s;
}

.captcha-img:hover {
    opacity: 0.8;
}

.auth-footer {
    text-align: center;
    margin-top: var(--sp-6);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}

.auth-footer-text {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

.auth-link {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-amber);
    text-decoration: none;
    margin-left: var(--sp-1);
}

.auth-link:hover {
    color: var(--c-amber-dim);
    text-decoration: underline;
}

/* ── Comment Guest Prompt ───────────────────────────── */

.comment-guest-prompt {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: var(--c-surface-alt);
    border: 1px dashed var(--c-border-light);
    padding: var(--sp-4) var(--sp-5);
    margin-bottom: var(--sp-6);
}

.comment-guest-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text-dim);
}

.comment-guest-text {
    flex: 1;
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin: 0;
}

.comment-guest-actions {
    display: flex;
    gap: var(--sp-2);
}

.comment-avatar-letter {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--c-amber);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: var(--sp-10) var(--sp-6);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .pd-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
}

@media (max-width: 1200px) {
    .tutorial-detail-wrapper {
        grid-template-columns: 1fr;
        max-width: 800px;
        margin: 0 auto;
    }
    .tutorial-widget {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--sp-4);
    }
    .tutorial-widget-card {
        flex: 1;
        min-width: 180px;
    }
    .tutorial-detail-layout {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .article-detail-layout {
        grid-template-columns: 1fr;
    }
    .article-detail-sidebar {
        position: static;
        order: -1;
    }
    .article-share-buttons {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-title::after {
        animation: none;
        opacity: 0.6;
    }

    .scanline-overlay {
        background: none;
    }
}

/* ── Token Pages ─────────────────────────────────────── */

.token-hero {
    text-align: center;
    padding: var(--sp-8) 0 var(--sp-6);
}

.token-hero-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-4xl);
    color: var(--c-text-bright);
    margin: 0;
}

.token-hero-sub {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin-top: var(--sp-2);
}

.token-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-4);
}

.token-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.token-filter-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.token-filter-select {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    color: var(--c-text);
    padding: 6px 8px;
    outline: none;
}

.token-filter-select:focus {
    border-color: var(--c-amber-dim);
}

.token-price-alerts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-amber-aura);
    border: 1px solid rgba(255, 179, 71, 0.15);
    margin-bottom: var(--sp-4);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
}

.token-alert-badge {
    color: var(--c-amber);
    font-weight: 600;
    margin-right: var(--sp-2);
}

.token-alert-item {
    color: var(--c-text-muted);
}

.token-alert-up { color: var(--c-red); }
.token-alert-down { color: var(--c-teal); }

.token-alert-more {
    color: var(--c-amber-dim);
    text-decoration: none;
    margin-left: var(--sp-2);
}

.token-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--c-border);
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
}

.token-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--c-surface);
    color: var(--c-text-dim);
    font-size: var(--fs-2xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
}

.token-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-border);
    white-space: nowrap;
}

.token-table .tk-row:hover {
    background: var(--c-surface-hover);
}

.tk-model-link {
    color: var(--c-text-bright);
    text-decoration: none;
    font-weight: 600;
}

.tk-model-link:hover { color: var(--c-amber); }

.tk-endpoint-name {
    display: block;
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
    margin-top: 2px;
}

.tk-provider-link {
    color: var(--c-text-muted);
    text-decoration: none;
}

.tk-provider-link:hover { color: var(--c-teal); }

.tk-price-output {
    color: var(--c-amber);
    font-weight: 600;
}

.tk-tier {
    font-size: var(--fs-2xs);
    font-weight: 600;
    text-transform: uppercase;
}

.tk-tier-budget { color: var(--c-teal); }
.tk-tier-mid { color: var(--c-amber); }
.tk-tier-premium { color: var(--c-pink); }

.tk-flag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 10px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 2px;
    margin-right: 2px;
}

.token-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-amber-dim);
    padding: var(--sp-3) var(--sp-6);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text);
    z-index: 90;
}

.token-compare-count {
    color: var(--c-amber);
    font-weight: 600;
}

.token-detail-header {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--sp-8);
    padding: var(--sp-6) 0;
    align-items: start;
}

.token-detail-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-3xl);
    color: var(--c-text-bright);
    margin: 0;
}

.token-detail-meta {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
    margin-top: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.token-detail-badge {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    padding: 2px 8px;
    border: 1px solid rgba(79, 209, 197, 0.2);
}

.token-detail-desc {
    color: var(--c-text-muted);
    margin-top: var(--sp-3);
    font-size: var(--fs-base);
    line-height: 1.6;
}

.token-detail-provider {
    color: var(--c-teal);
    text-decoration: none;
}

.token-detail-provider:hover { text-decoration: underline; }

.token-detail-status {
    padding: 2px 8px;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    border: 1px solid;
}
.token-detail-status-deprecated {
    color: var(--c-red);
    border-color: rgba(220, 50, 47, 0.3);
    background: rgba(220, 50, 47, 0.08);
}
.token-detail-status-upcoming {
    color: var(--c-amber);
    border-color: rgba(200, 150, 50, 0.3);
    background: rgba(200, 150, 50, 0.08);
}

/* 规格卡片（右侧） */
.token-detail-specs-card {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    padding: var(--sp-4);
}

.token-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-2) 0;
    border-bottom: 1px solid var(--c-border);
}
.token-spec-row:last-child {
    border-bottom: none;
}

.token-spec-label {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

.token-spec-value {
    font-size: var(--fs-sm);
    color: var(--c-text-bright);
    font-weight: 600;
}

/* 能力标签 */
.token-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--c-border);
}

.token-capability-tag {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-teal);
    background: var(--c-teal-bg);
    padding: 3px 10px;
    border: 1px solid rgba(79, 209, 197, 0.15);
}

/* 模型简介 + 厂商介绍 */
.token-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    margin-top: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--c-border);
}

.token-intro-block {
    min-width: 0;
}

.token-intro-block .token-section-title {
    margin-top: 0;
}

.token-intro-content {
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.token-intro-provider {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.token-provider-logo-sm {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.token-provider-link {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-teal);
    text-decoration: none;
    margin-top: var(--sp-1);
}

.token-provider-link:hover { text-decoration: underline; }

/* 价格历史 */
.token-price-histories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-4);
}

.token-price-history {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    padding: var(--sp-4);
}

.token-ph-endpoint {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-bright);
    margin: 0 0 var(--sp-3);
}

.token-ph-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
}

.token-ph-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: var(--sp-1) 0;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
}

.token-ph-date {
    color: var(--c-text-dim);
    flex-shrink: 0;
}

.token-ph-prices {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    color: var(--c-text-muted);
}

.token-ph-old { color: var(--c-text-dim); }
.token-ph-arrow { color: var(--c-text-dim); }
.token-ph-new { color: var(--c-text-bright); font-weight: 600; }

.token-ph-up { color: var(--c-red); font-weight: 600; }
.token-ph-down { color: var(--c-teal); font-weight: 600; }

.token-section-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-xl);
    color: var(--c-text-bright);
    margin: var(--sp-8) 0 var(--sp-4);
}

.token-provider-logo {
    height: 48px;
    margin-bottom: var(--sp-3);
}

.token-provider-url {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-teal);
    text-decoration: none;
}

.token-empty {
    color: var(--c-text-dim);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
}

.token-benchmarks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--sp-3);
}

.token-benchmark-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-3) var(--sp-4);
    display: flex;
    justify-content: space-between;
}

.token-benchmark-name {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
}

.token-benchmark-score {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-amber);
    font-weight: 600;
}

.token-price-history {
    margin-bottom: var(--sp-3);
}

.token-ph-endpoint {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text);
    margin-bottom: 4px;
}

.token-ph-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-muted);
    padding: 2px 0;
}

.token-ph-up { color: var(--c-red); }
.token-ph-down { color: var(--c-teal); }

.token-compare-table-wrap { overflow-x: auto; }

.token-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
}

.token-compare-table th {
    padding: 10px 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    text-align: center;
    min-width: 140px;
}

.token-compare-table td {
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    text-align: center;
}

.tk-compare-model {
    display: block;
    font-weight: 600;
    color: var(--c-text-bright);
}

.tk-compare-provider {
    display: block;
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
}

.tk-compare-label {
    text-align: left !important;
    color: var(--c-text-muted);
    font-weight: 600;
}

.tk-best {
    color: var(--c-teal) !important;
    font-weight: 700;
    background: var(--c-teal-bg);
}

.token-compare-actions {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
}

.token-calc-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--sp-6);
    align-items: start;
}

.token-calc-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-5);
    margin-bottom: var(--sp-4);
}

.token-calc-card-title {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-amber);
    margin: 0 0 var(--sp-3);
}

.token-calc-field {
    margin-bottom: var(--sp-3);
}

.token-calc-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.token-calc-hint {
    font-size: var(--fs-2xs);
    color: var(--c-text-faint);
    margin-top: 2px;
}

.token-calc-presets {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
}

.token-calc-preset-btn {
    flex: 1;
    padding: 6px 0;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-muted);
    background: transparent;
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: all var(--transition);
}

.token-calc-preset-btn:hover,
.token-calc-preset-btn.active {
    color: var(--c-amber);
    border-color: var(--c-amber-dim);
    background: var(--c-amber-bg);
}

.token-calc-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-3);
}

.token-calc-count {
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
}

.token-calc-table-wrap {
    overflow-x: auto;
}

.token-calc-result-table {
    width: 100%;
    font-size: var(--fs-sm);
}

.token-calc-result-table .calc-model-name {
    font-weight: 500;
    color: var(--c-text-bright);
}

.token-calc-result-table .th-cost,
.token-calc-result-table .td-cost {
    text-align: right;
    white-space: nowrap;
}

.token-calc-result-table .row-cheapest {
    background: var(--c-amber-bg);
}

.token-calc-result-table .badge-cheapest {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 9px;
    color: var(--c-bg);
    background: var(--c-amber);
    padding: 1px 6px;
    border-radius: 2px;
    margin-right: 4px;
}

.token-calc-result-table .badge-sm {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 2px;
    background: var(--c-surface-alt);
    color: var(--c-text-dim);
    border: 1px solid var(--c-border);
}

.token-calc-result-table .badge-reasoning {
    color: var(--c-teal);
    border-color: var(--c-teal-dim);
}

.token-calc-empty {
    padding: var(--sp-8);
    text-align: center;
    color: var(--c-text-faint);
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
}

.token-section-desc {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-6);
}

.token-price-days-filter {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
}

.token-day-tab {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    padding: 6px 12px;
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    text-decoration: none;
    transition: all var(--transition);
}

.token-day-tab:hover {
    border-color: var(--c-amber-dim);
    color: var(--c-amber);
}

.token-day-tab.active {
    background: var(--c-amber);
    border-color: var(--c-amber);
    color: var(--c-bg);
}

.token-price-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.token-price-change-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    align-items: center;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
}

.token-pc-date {
    color: var(--c-text-dim);
}

.token-pc-model {
    color: var(--c-text-bright);
    font-weight: 600;
}

.token-pc-provider {
    color: var(--c-text-dim);
    margin-left: var(--sp-2);
}

.token-pc-prices {
    display: flex;
    gap: var(--sp-4);
}

.token-pc-price {
    color: var(--c-text-muted);
}

.token-pc-label {
    color: var(--c-text-dim);
    font-size: var(--fs-2xs);
}

.token-pc-up { color: var(--c-red); font-weight: 600; }
.token-pc-down { color: var(--c-teal); font-weight: 600; }

/* 费用估算器 */
.token-calc-cta {
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--c-border);
}

.token-calc-cta-inner {
    text-align: center;
    padding: var(--sp-8);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
}

.token-calc-cta-desc {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-dim);
    margin: 0 0 var(--sp-4);
}

@media (max-width: 768px) {
    .token-calc-layout {
        grid-template-columns: 1fr;
    }
    .token-calc-presets {
        flex-wrap: wrap;
    }
    .token-price-change-item {
        grid-template-columns: 1fr;
        gap: var(--sp-2);
    }
    .token-detail-header {
        grid-template-columns: 1fr;
    }
    .token-detail-specs-card {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--sp-2);
    }
    .token-spec-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        border-bottom: none;
        padding: var(--sp-1) 0;
    }
    .token-price-histories {
        grid-template-columns: 1fr;
    }
    .token-intro-grid {
        grid-template-columns: 1fr;
    }
}

/* ── User Panel ─────────────────────────────────────── */

.user-profile-header {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-6);
    padding: var(--sp-8);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    margin-bottom: var(--sp-6);
}

.user-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.user-profile-avatar-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--c-border);
}

.user-profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-amber-bg);
    border: 2px solid var(--c-amber-dark);
    color: var(--c-amber);
    font-family: var(--ff-serif);
    font-size: var(--fs-3xl);
    font-weight: 400;
}

.user-avatar-form {
    position: absolute;
    bottom: -4px;
    right: -4px;
}

.user-avatar-upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--c-surface-alt);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.user-avatar-upload-btn:hover {
    color: var(--c-amber);
    background: var(--c-amber-bg);
}

.user-avatar-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.user-profile-info {
    flex: 1;
    min-width: 0;
}

.user-profile-name {
    font-family: var(--ff-serif);
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--c-text-bright);
    margin: 0 0 var(--sp-1);
}

.user-profile-username {
    font-family: var(--ff-mono);
    font-size: var(--fs-sm);
    color: var(--c-text-dim);
    margin: 0 0 var(--sp-2);
}

.user-profile-bio {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin: 0 0 var(--sp-3);
    line-height: 1.6;
}

.user-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
}

.user-profile-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

.user-profile-meta-item:hover {
    color: var(--c-amber);
}

/* User Panel Sections */
.user-section {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    padding: var(--sp-6);
    margin-bottom: var(--sp-6);
}

.user-section-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-xl);
    font-weight: 400;
    color: var(--c-text-bright);
    margin: 0 0 var(--sp-6);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--c-border);
}

.user-section-title::before {
    content: '// ';
    font-family: var(--ff-mono);
    font-size: 0.5em;
    color: var(--c-amber);
    opacity: 0.6;
}

/* User Panel Form */
.user-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.user-form .form-group {
    margin-bottom: var(--sp-4);
}

.user-form .form-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    margin-bottom: var(--sp-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-form .form-text {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
    margin-top: var(--sp-1);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}

/* User Content Title */
.user-content-title {
    font-family: var(--ff-serif);
    font-size: var(--fs-2xl);
    font-weight: 400;
    color: var(--c-text-bright);
    margin: 0 0 var(--sp-6);
}

/* User List Items */
.user-list {
    display: flex;
    flex-direction: column;
}

.user-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--sp-4);
    border-bottom: 1px solid var(--c-border);
    transition: background var(--transition);
}

.user-list-item:hover {
    background: var(--c-surface-hover);
}

.user-list-item:last-child {
    border-bottom: none;
}

.user-list-main {
    flex: 1;
    min-width: 0;
}

.user-list-header {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-1);
}

.user-list-title {
    font-size: var(--fs-md);
    font-weight: 500;
    margin: 0 0 var(--sp-2);
    line-height: 1.4;
}

.user-list-title a {
    color: var(--c-text-bright);
}

.user-list-title a:hover {
    color: var(--c-amber);
}

.user-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-3);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-dim);
}

.user-list-stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.user-list-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

/* User Reply Content */
.user-reply-content {
    font-size: var(--fs-sm);
    color: var(--c-text-muted);
    margin: var(--sp-2) 0;
    line-height: 1.6;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-reply-post-link {
    color: var(--c-text-dim);
}

.user-reply-post-link a {
    color: var(--c-amber);
}

/* Sidebar Badge */
.sidebar-badge {
    margin-left: auto;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
    background: var(--c-bg);
    padding: 1px 6px;
    border: 1px solid var(--c-border);
}

/* Sidebar User Stats Grid */
.user-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2);
}

.user-stat-card {
    text-align: center;
    padding: var(--sp-3) var(--sp-2);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
}

.user-stat-num {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-lg);
    font-weight: 600;
    color: var(--c-amber);
    line-height: 1.2;
}

.user-stat-label {
    display: block;
    font-family: var(--ff-mono);
    font-size: var(--fs-2xs);
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* User Sidebar List */
.sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    margin: 0;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    padding: var(--sp-2) var(--sp-3);
    border-left: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
}

.sidebar-list a::before {
    display: none;
}

.sidebar-list a svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.sidebar-list a:hover svg,
.sidebar-list a.active svg {
    opacity: 1;
}

.sidebar-list a:hover {
    color: var(--c-amber);
    border-left-color: var(--c-amber-dim);
    background: var(--c-amber-bg);
}

.sidebar-list a.active {
    color: var(--c-amber);
    border-left-color: var(--c-amber);
    background: var(--c-amber-bg);
}

/* Favorites Filter */
.user-favorites-filter {
    display: flex;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
    flex-wrap: wrap;
}

.filter-btn {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    padding: var(--sp-1) var(--sp-3);
    border: 1px solid var(--c-border);
    background: transparent;
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.filter-btn:hover {
    color: var(--c-amber);
    border-color: var(--c-amber-dim);
}

.filter-btn.active {
    color: var(--c-bg);
    background: var(--c-amber);
    border-color: var(--c-amber);
}

/* Button variants */
.btn-sm {
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    padding: 4px 10px;
}

.btn-danger {
    color: var(--c-red);
    border: 1px solid var(--c-red-dark);
    background: transparent;
    transition: color var(--transition), background var(--transition);
}

.btn-danger:hover {
    color: var(--c-text-bright);
    background: var(--c-red-dark);
}

@media (max-width: 640px) {
    .user-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-profile-meta {
        justify-content: center;
    }

    .user-form .form-row {
        grid-template-columns: 1fr;
    }
}

/* ── Content Action Bar (Like / Favorite) ───────────── */

.content-action-bar {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-5) 0;
    margin-top: var(--sp-8);
    border-top: 1px solid var(--c-border);
}

.content-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-4);
    font-family: var(--ff-mono);
    font-size: var(--fs-xs);
    color: var(--c-text-muted);
    background: transparent;
    border: 1px solid var(--c-border);
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
    user-select: none;
}

.content-action-btn:hover {
    color: var(--c-amber);
    border-color: var(--c-amber-dim);
}

.content-action-btn.active {
    color: var(--c-amber);
    border-color: var(--c-amber);
    background: var(--c-amber-bg);
}

.content-action-btn[data-action="like"].active {
    color: var(--c-pink);
    border-color: var(--c-pink);
    background: rgba(236, 72, 153, 0.08);
}

.content-action-btn--wide {
    width: 100%;
    justify-content: center;
}

.content-action-btn--wide + .content-action-btn--wide,
.content-action-btn--wide + a.btn {
    margin-top: var(--sp-2);
}

@media (max-width: 640px) {
    .article-detail-layout {
        flex-direction: column;
    }

    .article-detail-sidebar {
        order: -1;
    }

    .content-action-bar {
        justify-content: flex-start;
    }
}

/* ─── Header Bell ─────────────────────────────────────────── */
.header-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-text-muted);
    text-decoration: none;
    transition: color var(--transition), border-color var(--transition);
}

.header-bell:hover {
    color: var(--c-amber);
    border-color: var(--c-amber-dim);
}

.header-bell-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-red, #e5484d);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
}

/* ─── Post actions / favorite / owner buttons ─────────────── */
.community-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-5);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border);
}

.btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-muted);
    cursor: pointer;
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
}

.btn-favorite:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
}

.btn-favorite.is-favorited {
    border-color: var(--c-accent);
    color: var(--c-accent);
    background: rgba(255, 179, 71, 0.1);
}

.community-delete-form {
    display: inline-flex;
}

.community-delete-form .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--radius-md);
}

/* ─── OP badge ────────────────────────────────────────────── */
.badge-op {
    background: var(--c-teal-bg);
    color: var(--c-teal);
    font-size: 10px;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid rgba(79, 209, 197, 0.15);
}

/* ─── Nested replies (楼中楼) ─────────────────────────────── */
.community-reply-children {
    margin: var(--sp-3) 0 0 var(--sp-6);
    padding-left: var(--sp-4);
    border-left: 2px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.community-reply-item-child {
    padding: var(--sp-3);
    background: var(--c-bg-alt, rgba(255, 255, 255, 0.02));
}

.community-reply-quote {
    margin: var(--sp-2) 0;
    padding: var(--sp-2) var(--sp-3);
    background: var(--c-bg);
    border-left: 2px solid var(--c-amber-dim);
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
    overflow: hidden;
}

.community-reply-quote-author {
    color: var(--c-amber);
    font-weight: 500;
}

/* ─── Reply editor / preview ──────────────────────────────── */
.btn-reply-quote-clear {
    margin-left: auto;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    background: transparent;
    color: var(--c-muted);
    cursor: pointer;
    font-size: var(--fs-xs);
    transition: all var(--transition-fast);
}

.btn-reply-quote-clear:hover {
    border-color: var(--c-red-dim);
    color: var(--c-red);
}

.community-reply-preview {
    margin-top: var(--sp-3);
    padding: var(--sp-4);
    background: var(--c-bg-alt, rgba(255, 255, 255, 0.02));
    border: 1px dashed var(--c-border);
    border-radius: var(--radius-md);
}

/* ─── Notifications page ──────────────────────────────────── */
.user-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}

.user-content-header .user-content-title {
    margin: 0;
}

.notification-list {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-4);
    border-bottom: 1px solid var(--c-border);
    cursor: pointer;
    transition: background var(--transition);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--c-surface-hover);
}

.notification-item.is-unread {
    background: rgba(255, 179, 71, 0.04);
}

.notification-item.is-unread .notification-icon {
    color: var(--c-amber);
}

.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-bg-alt);
    border-radius: 50%;
    color: var(--c-muted);
}

.notification-body {
    flex: 1;
    min-width: 0;
}

.notification-text {
    color: var(--c-text);
    text-decoration: none;
    line-height: 1.5;
}

.notification-text:hover {
    color: var(--c-amber);
}

.notification-snippet {
    margin-top: var(--sp-1);
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    margin-top: var(--sp-1);
    color: var(--c-text-faint);
    font-size: var(--fs-2xs);
}
