/* SAVES Forum — 6.0客户端视觉 */

:root {
    --bg-body: #1a2438;
    --bg-body-2: #223049;
    --bg-card: #2a3650;
    --bg-elevated: #33415c;
    --bg-hover: #3d4d6a;
    --border-primary: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.22);
    --border-glow: rgba(96, 165, 250, 0.55);
    --color-primary: #3b82f6;
    --color-primary-hover: #2563eb;
    --color-primary-soft: rgba(59, 130, 246, 0.22);
    --color-violet: #6366f1;
    --color-accent: #93c5fd;
    --color-accent-warm: #bfdbfe;
    --text-primary: #ffffff;
    --text-secondary: #eef2f8;
    --text-muted: #c5d0e0;
    --text-dimmed: #9fb0c8;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-card: 0 10px 32px rgba(15, 23, 42, 0.28);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.18);
    --transition: 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    --gradient-title: linear-gradient(120deg, #ffffff 0%, #dbeafe 30%, #93c5fd 55%, #60a5fa 100%);
    --gradient-bg: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-body-2) 100%);
    --font-display: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Noto Sans SC", "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-label: "Plus Jakarta Sans", "Noto Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.dev-ui-preview {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    background: var(--gradient-bg);
    background-color: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.dev-preview-banner {
    display: none;
}

.rb-light-pillar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.rb-light-pillar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(26, 36, 56, 0.42) 0%,
        rgba(34, 48, 73, 0.58) 45%,
        rgba(26, 36, 56, 0.72) 100%
    );
    pointer-events: none;
}

.rb-light-pillar.light-pillar-container {
    width: 100%;
    height: 100%;
}

.rb-page {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* ── Navbar ── */
.rb-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 12px 20px 0;
}

.rb-nav-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: transparent;
    transition: var(--transition);
}

.rb-nav-inner.is-scrolled {
    background: rgba(42, 54, 80, 0.88);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card);
}

.rb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rb-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
    overflow: hidden;
}

.rb-brand-mark img,
.rb-brand-mark .site-brand-logo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.rb-brand-text h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.rb-brand-text span {
    display: block;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-accent-warm);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.rb-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-primary);
}

.rb-nav-link {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
}

.rb-nav-link:hover,
.rb-nav-link.is-active {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.14);
}

.rb-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.rb-nav-user-menu {
    position: relative;
}

.rb-nav-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font: inherit;
    color: var(--text-primary);
    max-width: min(100%, 240px);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.rb-nav-user-trigger:hover {
    border-color: rgba(59, 130, 246, 0.42);
    background: rgba(255, 255, 255, 0.11);
}

.rb-nav-user-trigger .rb-nav-user-avatar.ui-avatar {
    --ui-avatar-size: 32px;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #2563eb 0%, #3b82f6 100%);
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.14),
        0 0 0 3px rgba(59, 130, 246, 0.28);
}

.rb-nav-user-trigger .rb-nav-user-avatar.ui-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rb-nav-user-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 132px;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.rb-nav-user-label .vip-nick,
.rb-nav-user-label .svip-nick,
.rb-nav-user-label .smod-nick,
.rb-nav-user-label .fadmin-nick {
    min-width: 0;
    max-width: 100%;
}

.rb-nav-user-label .vip-nick-text,
.rb-nav-user-label .svip-nick-text,
.rb-nav-user-label .smod-nick-text,
.rb-nav-user-label .fadmin-nick-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 88px;
}

.rb-nav-user-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.rb-nav-user-menu.is-open .rb-nav-user-chevron {
    transform: rotate(180deg);
}

.rb-nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 188px;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: rgba(18, 16, 32, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 20;
}

.rb-nav-user-menu.is-open .rb-nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rb-nav-user-dropdown a,
.rb-nav-user-dropdown button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    transition: background 0.15s ease;
}

.rb-nav-user-dropdown a:hover,
.rb-nav-user-dropdown button:hover {
    background: rgba(59, 130, 246, 0.14);
}

.rb-nav-user-dropdown .is-danger {
    color: #f87171;
}

.rb-nav-user-divider {
    height: 1px;
    margin: 6px 4px;
    background: var(--border-primary);
}

.rb-trial-banner-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 12px;
}

.rb-trial-banner-wrap .trial-account-banner {
    margin: 0;
}

.rb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
    min-width: 190px;
}

.rb-search input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    min-width: 0;
}

.rb-search input::placeholder { color: var(--text-dimmed); }

.rb-search button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}

.rb-search svg { width: 16px; height: 16px; }

.rb-btn {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.rb-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.32);
}

.rb-btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.38);
}

.rb-btn-ghost {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
}

.rb-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

/* ── Hero ── */
.rb-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(16px, 2.5vw, 28px) 20px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.rb-hero-left {
    min-width: 0;
}

.rb-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    margin-bottom: 22px;
}

.rb-hero-tag-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.rb-hero-title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(34px, 5.2vw, 58px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.rb-hero-title-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(10px, 1.8vw, 18px);
}

.rb-hero-title .gradient:not(.rb-hero-rotate) {
    background: var(--gradient-title);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}

.rb-hero-rotate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5em;
    min-height: 1.15em;
    padding: 0.1em 0.42em 0.16em;
    border-radius: var(--radius-md);
    border: 1px solid rgba(186, 230, 253, 0.42);
    background: rgba(59, 130, 246, 0.16);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 8px 24px rgba(14, 165, 233, 0.14);
    vertical-align: middle;
    overflow: hidden;
}

.rb-hero-rotate.text-rotate {
    display: inline-flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: center;
}

.rb-hero-rotate .text-rotate-stage {
    display: inline-block;
}

.rb-hero-rotate .text-rotate-layer {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.rb-hero-rotate .text-rotate-char-wrap {
    line-height: 1.12;
    overflow: hidden;
}

.rb-hero-rotate .text-rotate-element {
    background: var(--gradient-title);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}

/* 渐变只作用于逐字 span，避免父级 background-clip:text 与子级叠出重影 */
.rb-hero-rotate.text-rotate {
    background-image: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: inherit;
    color: inherit;
    animation: none;
}

@media (prefers-reduced-motion: reduce) {
    .rb-hero-rotate .text-rotate-element {
        animation: none;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.rb-hero-desc {
    margin: 0 0 30px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 540px;
    font-weight: 400;
}

.rb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.rb-magnet--hero-download {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
    vertical-align: middle;
    cursor: pointer;
}

.rb-magnet--hero-download .rb-download-btn--hero {
    pointer-events: auto;
}

.js-client-download.is-downloading {
    pointer-events: none;
    cursor: wait;
}

.js-client-download.is-downloading .rb-download-btn--hero {
    opacity: 0.82;
    cursor: wait;
    transform: none;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.22);
}

.rb-download-btn--hero {
    min-height: 56px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: 1px solid rgba(186, 230, 253, 0.42);
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.28);
    transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    gap: 12px;
}

.rb-download-btn--hero svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.rb-download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.15;
}

.rb-download-btn-label {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.rb-download-btn-version {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.04em;
}

.rb-magnet--hero-download:hover .rb-download-btn--hero,
.rb-magnet--hero-download:focus-visible .rb-download-btn--hero {
    background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
    border-color: rgba(186, 230, 253, 0.55);
    color: #fff;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.36);
}

.rb-magnet--hero-download:focus-visible {
    outline: none;
}

.rb-magnet--hero-download:focus-visible .rb-download-btn--hero {
    outline: 2px solid rgba(125, 211, 252, 0.55);
    outline-offset: 2px;
}

.rb-hero-panel {
    position: relative;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    padding: 26px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    overflow: hidden;
}

.rb-hero-panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.55), transparent 42%, rgba(99, 102, 241, 0.28));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rb-hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
}

.rb-hero-panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.55);
    animation: pulse 2.4s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

.rb-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.rb-stat-item {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-primary);
}

.rb-stat-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.rb-stat-item span {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.rb-hero-panel--announce {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.rb-announce-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: auto;
    max-height: 320px;
    padding-right: 2px;
}

.rb-announce-list::-webkit-scrollbar {
    width: 4px;
}

.rb-announce-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.rb-announce-item {
    position: relative;
    padding: 14px 14px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-primary);
}

.rb-announce-item.is-pinned {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.08);
}

.rb-announce-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.18);
    border: 1px solid rgba(245, 158, 11, 0.28);
}

.rb-announce-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.rb-hero-panel--announce .rb-hero-panel-head > span:first-child {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.rb-announce-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rb-announce-time {
    display: block;
    margin-top: 8px;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ── Sections ── */
.rb-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 72px;
}

.rb-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.rb-section-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.rb-section-head p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.rb-section-link {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent-warm);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(147, 197, 253, 0.22);
    transition: var(--transition);
}

.rb-section-link:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.35);
    color: var(--text-primary);
}

/* ── Community stats dock (fixed bottom-left) ── */
.rb-community-stats-dock {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 90;
    pointer-events: none;
}

.rb-community-stats-stack {
    position: relative;
    min-width: 196px;
    padding: 10px 8px;
    border-radius: var(--radius-lg);
    background: rgba(42, 54, 80, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
}

.rb-community-stats-stack.focus-container--lines {
    display: block;
}

.rb-community-stats-stack .focus-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rb-community-stats-stack .focus-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.rb-community-stats-stack .focus-line.is-active {
    background: rgba(59, 130, 246, 0.1);
}

.rb-community-stats-stack .focus-line-label {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.rb-community-stats-stack .focus-line-value {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #eef2ff;
    font-variant-numeric: tabular-nums;
}

.rb-community-stats-stack .focus-frame {
    border-radius: var(--radius-sm);
}

/* ── Forum cards ── */
.rb-forum-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.rb-forum-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 208px;
    padding: 18px 18px 16px;
    border-radius: var(--radius-lg);
    background: rgba(42, 54, 80, 0.92);
    border: 1px solid var(--border-strong);
    color: inherit;
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    overflow: hidden;
}

.rb-forum-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-card);
}

.rb-forum-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rb-forum-card-desc {
    margin: 0;
    flex: 1;
    min-height: 2.75em;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rb-forum-card-slot {
    display: flex;
    align-items: center;
    flex: 0 0 48px;
    min-height: 48px;
    margin-top: 8px;
}

.rb-forum-card-slot:empty {
    pointer-events: none;
}

.rb-forum-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-primary);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.rb-forum-meta span:last-child {
    color: var(--color-accent-warm);
    font-weight: 600;
}

.rb-forum-card:hover .rb-forum-meta span:last-child {
    color: var(--text-primary);
}

.rb-forum-card--tutorial {
    border-color: rgba(59, 130, 246, 0.22);
}

.rb-forum-card--welfare {
    border-color: rgba(245, 158, 11, 0.24);
}

.rb-forum-card--feedback {
    border-color: rgba(139, 92, 246, 0.22);
}

.rb-forum-card--download {
    border-color: rgba(56, 189, 248, 0.32);
    background: linear-gradient(160deg, rgba(14, 165, 233, 0.1) 0%, rgba(42, 54, 80, 0.95) 100%);
}

.rb-forum-card--download .rb-forum-card-desc {
    color: #dbeafe;
}

.rb-forum-card-slot--download:empty {
    display: none;
    flex: 0;
    min-height: 0;
    margin: 0;
}

.rb-forum-meta--download {
    padding-top: 12px;
}

.rb-forum-meta--download .rb-magnet--download {
    flex-shrink: 0;
}

.rb-forum-card.is-dev-locked {
    pointer-events: none;
    cursor: not-allowed;
    user-select: none;
}

.rb-forum-card.is-dev-locked:hover {
    transform: none;
    border-color: inherit;
    box-shadow: none;
}

.rb-forum-glass-shield {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 38%, rgba(15, 23, 42, 0.34) 100%);
    backdrop-filter: blur(16px) saturate(1.18);
    -webkit-backdrop-filter: blur(16px) saturate(1.18);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.rb-forum-dev-lock {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 16px;
    pointer-events: none;
}

.rb-forum-dev-lock-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 11px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(1.25);
    -webkit-backdrop-filter: blur(20px) saturate(1.25);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #f8fafc;
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow:
        0 14px 36px rgba(2, 6, 23, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.rb-forum-meta-disabled {
    color: rgba(148, 163, 184, 0.88) !important;
    font-weight: 600 !important;
}

.rb-forum-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    margin-bottom: 0;
    flex-shrink: 0;
}

.rb-forum-icon-svg {
    width: 20px;
    height: 20px;
    display: block;
}

.rb-forum-icon--tutorial {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.14));
    color: #93c5fd;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
}

.rb-forum-icon--welfare {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.28), rgba(217, 119, 6, 0.14));
    color: #fcd34d;
    box-shadow: inset 0 0 0 1px rgba(252, 211, 77, 0.22);
}

.rb-forum-icon--feedback {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.28), rgba(109, 40, 217, 0.14));
    color: #c4b5fd;
    box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.22);
}

.rb-forum-icon--download {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.14));
    color: #7dd3fc;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.22);
}

.rb-forum-icon--discuss {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.28), rgba(13, 148, 136, 0.14));
    color: #5eead4;
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.22);
}

.rb-magnet {
    position: relative;
    display: inline-block;
}

.rb-magnet-inner {
    will-change: transform;
}

.rb-magnet--download {
    width: auto;
    display: inline-block;
}

.rb-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(186, 230, 253, 0.35);
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
}

.rb-download-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.rb-forum-meta-accent {
    color: #7dd3fc !important;
    font-weight: 700 !important;
}

.rb-forum-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-primary);
}

.rb-welfare-countdown {
    position: relative;
    z-index: 1;
}

.rb-welfare-countdown--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

.rb-welfare-countdown.is-refreshing .rb-welfare-countdown-label {
    animation: rb-welfare-pulse 1.2s ease-in-out infinite;
}

@keyframes rb-welfare-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.rb-welfare-countdown-label {
    display: block;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.rb-welfare-countdown--compact .rb-welfare-countdown-label {
    margin: 0;
}

.rb-welfare-countdown-track {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.rb-welfare-counter-slot {
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rb-welfare-countdown .counter-digit {
    overflow: hidden;
}

.rb-welfare-counter-sep {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: rgba(252, 211, 77, 0.88);
    line-height: 1;
    padding-bottom: 1px;
    user-select: none;
}

.rb-welfare-countdown--post {
    justify-content: center;
}

.rb-welfare-countdown--post .rb-welfare-countdown-track {
    width: 100%;
    justify-content: center;
}

/* ── Post list ── */
.rb-post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rb-post-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(12px);
}

.rb-post-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rb-post-item:hover {
    background: var(--bg-elevated);
    border-color: rgba(59, 130, 246, 0.28);
}

.rb-post-rank {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-accent-warm);
    background: rgba(59, 130, 246, 0.12);
    font-variant-numeric: tabular-nums;
}

.rb-post-body h4 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.rb-post-body h4:hover { color: var(--color-accent-warm); }

.rb-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.rb-post-stats {
    text-align: right;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.rb-post-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

/* ── CTA ── */
.rb-cta {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.rb-cta-inner {
    position: relative;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.rb-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(30, 41, 59, 0.62) 100%);
    pointer-events: none;
}

.rb-cta-content {
    position: relative;
    z-index: 2;
}

.rb-cta-content h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.rb-cta-content p {
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ── Footer ── */
.rb-footer {
    border-top: 1px solid var(--border-strong);
    padding: 32px 20px 48px;
    text-align: center;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.rb-footer a { color: var(--color-accent-warm); }

/* ── Reveal animation ── */
.rb-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--transition), transform 0.65s var(--transition);
}

.rb-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .rb-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .rb-community-stats-dock {
        left: max(12px, env(safe-area-inset-left, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    .rb-community-stats-stack {
        min-width: 176px;
        padding: 8px 6px;
    }

    .rb-community-stats-stack .focus-line {
        padding: 8px 10px;
        gap: 14px;
    }

    .rb-community-stats-stack .focus-line-value {
        font-size: 16px;
    }

    .rb-hero-panel--announce {
        min-height: auto;
    }

    .rb-announce-list {
        max-height: none;
    }

    .rb-nav-links { display: none; }

    .rb-search { display: none; }

    .rb-post-item {
        grid-template-columns: auto 1fr;
    }

    .rb-post-stats {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 1100px) {
    .rb-forum-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .rb-nav-actions .rb-btn-ghost { display: none; }

    .rb-nav-user-label { display: none; }

    .rb-cta-inner { padding: 32px 20px; }

    .rb-forum-grid { grid-template-columns: 1fr; }
}
