* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --bg-body: #11161c;
    --bg-card: #1a2028;
    --bg-card-hover: #232b36;
    --border-light: #2a313b;
    --text-primary: #e8edf2;
    --text-secondary: #b0b8c2;
    --text-muted: #6a7a8a;
    --accent: #6a8a9a;
    --accent-bright: #8ab0c8;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --transition: 0.2s ease;
    --nav-width: 120px;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    padding: 0;
    min-height: 100vh;
}
.bg-layer {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-body);
    background-image: radial-gradient(circle at 20% 30%, rgba(106, 138, 154, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(106, 138, 154, 0.04) 0%, transparent 50%);
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 40px;
    position: relative;
    z-index: 1;
}
a {
    text-decoration: none;
    color: inherit;
}
.top-banner {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-image: url('/background');
    background-size: cover;
    background-position: center;
    height: 180px;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    pointer-events: none;
}
.banner-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.brand img {
    height: 56px;
    display: block;
}
.brand .highlight {
    color: #55d88b;
}
.banner-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.random-saying {
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    max-width: 400px;
    white-space: normal;
    word-break: break-word;
    flex: 0 1 auto;
    min-width: 0;
}
.local-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    padding: 0 4px;
    letter-spacing: 0.5px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
    padding-left: 16px;
}
.banner-user {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav-login-btn {
    padding: 10px 24px;
    border-radius: 24px;
    background: #55d88b;
    color: #111;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}
.nav-login-btn:hover {
    background: #69e79b;
    transform: translateY(-2px);
}
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    color: #fff;
    font-size: 15px;
    backdrop-filter: blur(4px);
    cursor: pointer;
    border: none;
}
.nav-user-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}
.nav-user-btn.impersonating {
    background: rgba(245, 166, 35, 0.25);
    border: 1px solid rgba(245, 166, 35, 0.3);
}
.nav-user-btn.impersonating .nav-avatar {
    background: #f5a623;
}
.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #55d88b;
    color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 14px;
}
.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-msg-btn {
    position: relative;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    line-height: 1;
}
.nav-msg-btn:hover {
    color: #55d88b;
}
.msg-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    background: #ff3b3b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid rgba(0, 0, 0, 0.6);
    box-sizing: content-box;
    pointer-events: none;
}
.impersonate-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(245, 166, 35, 0.2);
    color: #f5a623;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    border: 1px solid rgba(245, 166, 35, 0.2);
}
.dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    background: transparent;
}
.dropdown-overlay.active {
    display: block;
}
.dropdown-menu-root {
    position: fixed;
    z-index: 9999;
    background: rgba(22, 27, 34, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    display: none;
    opacity: 0;
    transform: translateY(6px) scale(0.97);
    transition: opacity 0.15s, transform 0.15s;
}
.dropdown-menu-root.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.dropdown-menu-root a {
    display: block;
    padding: 10px 18px;
    color: #d4dbe3;
    font-size: 14px;
    transition: 0.15s;
    text-decoration: none;
}
.dropdown-menu-root a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #55d88b;
}
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 4px 12px;
}
.logout-btn {
    color: #ff7a7a !important;
}
.logout-btn:hover {
    background: rgba(255, 80, 80, 0.08) !important;
}
.stop-impersonate-btn {
    color: #f5a623 !important;
    font-weight: 600;
}
.stop-impersonate-btn:hover {
    background: rgba(245, 166, 35, 0.12) !important;
    color: #f5a623 !important;
}
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 32px;
}
.toolbar-left {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
}
.toolbar-left a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}
.toolbar-left a:hover {
    color: var(--accent-bright);
}
.toolbar-left .sep {
    color: var(--text-muted);
    user-select: none;
    opacity: 0.3;
}
.toolbar-center {
    flex: 0 1 420px;
    min-width: 160px;
    display: flex;
    justify-content: center;
}
.toolbar-center .search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 4px 4px 4px 14px;
    transition: var(--transition);
    width: 100%;
}
.toolbar-center .search-box:focus-within {
    border-color: var(--accent-bright);
    background: #1e2630;
}
.toolbar-center .search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    padding: 8px 4px;
    width: 100%;
    min-width: 60px;
}
.toolbar-center .search-box input::placeholder {
    color: var(--text-muted);
}
.toolbar-center .search-box button {
    background: var(--accent);
    border: none;
    border-radius: 4px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #0b0f14;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.toolbar-center .search-box button:hover {
    background: var(--accent-bright);
}
.toolbar-right {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.toolbar-right .add-links {
    display: flex;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}
.toolbar-right .add-links a {
    padding: 6px 14px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.toolbar-right .add-links a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}
.toolbar-right .add-links .prefix {
    color: var(--accent-bright);
    font-weight: 700;
}

/* ===== 三列布局（修改比例） ===== */
.three-col {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;  /* 原为 1fr 2fr 1fr，轮播占比加大 */
    gap: 24px;
    margin-bottom: 40px;
}

.col-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 16px 16px;
    border: 1px solid var(--border-light);
}
.col-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.col-header .sub {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}
.card-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.resource-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    display: block;
}
.resource-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}
.card-cover {
    position: relative;
    padding-bottom: 62.5%;
    background: #0b0f14;
    overflow: hidden;
}
.card-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-cover .placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    background: #0b0f14;
}
.card-cover .placeholder .icon {
    font-size: 24px;
    margin-bottom: 2px;
    opacity: 0.4;
}
.card-info {
    padding: 8px 10px 10px;
}
.card-info .name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-info .meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    align-items: center;
}
.card-info .meta .tag {
    background: rgba(255, 255, 255, 0.04);
    padding: 0 8px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 18px;
}
.card-info .meta .views {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ===== 轮播（修改高度） ===== */
.carousel-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    padding: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.carousel-container {
    position: relative;
    flex: 1;
    min-height: 180px;
    background: #0b0f14;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}
.carousel-slide-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 67.5%; /* 原为 62.5%，调高轮播 */
    height: 0;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: #0b0f14;
    overflow: hidden;
}
.carousel-slide.active {
    opacity: 1;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-slide .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}
.carousel-slide .placeholder .icon {
    font-size: 30px;
    margin-bottom: 4px;
    opacity: 0.3;
}
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 20px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: var(--text-primary);
    pointer-events: none;
}
.carousel-overlay .tag {
    display: inline-block;
    background: var(--accent);
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    color: #0b0f14;
    margin-bottom: 4px;
}
.carousel-overlay .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.carousel-overlay .desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}
.carousel-overlay .meta {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    border-radius: 50%;
    transition: var(--transition);
}
.carousel-arrow:hover {
    background: rgba(0,0,0,0.75);
}
.carousel-arrow.left { left: 8px; }
.carousel-arrow.right { right: 8px; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: var(--transition);
}
.carousel-dots .dot.active {
    background: var(--accent-bright);
}
.carousel-dots .dot:hover {
    background: rgba(255,255,255,0.3);
}
.carousel-dots.hidden,
.carousel-arrow.hidden {
    display: none;
}

/* ===== 底部双栏（修改高度） ===== */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}
.activity-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px 20px;
}
.activity-section .section-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.activity-section:first-child .activity-list {
    height: 200px; /* 原为 220px */
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
}
.activity-section:first-child .activity-list::-webkit-scrollbar {
    width: 4px;
}
.activity-section:first-child .activity-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
.activity-section:first-child .activity-list::-webkit-scrollbar-track {
    background: transparent;
}
.feed-scroll-container {
    height: 200px; /* 原为 220px */
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}
.feed-scroll-list {
    margin: 0;
    padding: 0;
    list-style: none;
    will-change: transform;
}
.feed-scroll-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-scroll-list li:last-child {
    border-bottom: none;
}
.feed-scroll-list .highlight {
    color: var(--accent-bright);
    font-weight: 500;
}
.feed-scroll-list .highlight a {
    color: var(--accent-bright);
    text-decoration: none;
}
.feed-scroll-list .highlight a:hover {
    text-decoration: underline;
    color: #55d88b;
}
.feed-scroll-list .time {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 12px;
}
.activity-list {
    list-style: none;
}
.activity-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    align-items: baseline;
}
.activity-list li:last-child {
    border-bottom: none;
}
.activity-list .highlight {
    color: var(--accent-bright);
    font-weight: 500;
}
.activity-list .time {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: auto;
    flex-shrink: 0;
}
.empty-placeholder {
    color: var(--text-muted);
    font-size: 14px;
    padding: 12px 0;
    text-align: center;
}

/* ===== 分类展示区块（完全保留原样） ===== */
.section-block {
    margin-top: 40px;
    scroll-margin-top: 80px;
}
.section-header-block {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.section-header-block .badge {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-card);
    padding: 0 12px;
    border-radius: 12px;
    line-height: 24px;
    border: 1px solid var(--border-light);
}
.section-header-block .more-link {
    margin-left: auto;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 2px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
}
.section-header-block .more-link:hover {
    color: var(--accent-bright);
    background: rgba(255,255,255,0.08);
}
.category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 20px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    scroll-margin-top: 80px;
}
.category-title .count {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}
.card-grid-5col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* ===== 侧边导航 ===== */
.side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    width: var(--nav-width);
    box-shadow: var(--shadow);
    transition: opacity 0.3s ease;
}
.side-nav::-webkit-scrollbar {
    width: 3px;
}
.side-nav::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
.side-nav a {
    display: block;
    padding: 4px 12px;
    color: var(--text-secondary);
    font-size: 13px;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.side-nav a.active {
    background: var(--accent);
    color: #fff;
    font-weight: 500;
}
.side-nav-left {
    left: 8px;
}
.side-nav-left a {
    font-weight: 600;
    font-size: 14px;
    padding: 6px 12px;
}
.side-nav-left a .icon {
    margin-right: 6px;
}
.side-nav-right {
    right: 8px;
}
.side-nav-right a {
    font-size: 12px;
    padding: 3px 12px;
    padding-left: 16px;
    position: relative;
}
.side-nav-right a::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--text-muted);
    opacity: 0.4;
}
.side-nav-right a.active::before {
    color: #fff;
    opacity: 1;
}
@media (max-width: 1400px) {
    .side-nav {
        display: none;
    }
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-bright);
}
.footer {
    margin-top: 48px;
    padding: 24px 0 16px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
@media (max-width: 1024px) {
    .three-col {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card-grid-5col {
        grid-template-columns: repeat(4, 1fr);
    }
    .activity-grid {
        grid-template-columns: 1fr;
    }
    .side-nav {
        display: none;
    }
}
@media (max-width: 820px) {
    .top-banner {
        height: auto;
        min-height: 180px;
        padding: 16px 0;
    }
    .banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .banner-left {
        justify-content: center;
    }
    .brand {
        font-size: 22px;
    }
    .brand img {
        height: 34px;
    }
    .banner-right {
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    .random-saying {
        font-size: 15px;
        max-width: 280px;
        border-right: none;
        padding-right: 0;
        text-align: center;
        word-break: break-word;
    }
    .local-time {
        font-size: 15px;
        padding-left: 0;
        border-left: none;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .toolbar-left {
        justify-content: center;
    }
    .toolbar-center {
        flex: 1 1 auto;
        width: 100%;
    }
    .toolbar-right {
        margin-left: 0;
        justify-content: center;
    }
    .card-grid-2x2 {
        grid-template-columns: 1fr 1fr;
    }
    .card-grid-5col {
        grid-template-columns: repeat(2, 1fr);
    }
    .dropdown-menu-root {
        min-width: 180px;
    }
}
@media (max-width: 480px) {
    .brand {
        font-size: 18px;
    }
    .brand img {
        height: 28px;
    }
    .random-saying {
        font-size: 13px;
        max-width: 200px;
        text-align: center;
    }
    .local-time {
        font-size: 13px;
        padding-left: 0;
        border-left: none;
    }
    .nav-user-btn span {
        display: none;
    }
    .toolbar-left a {
        font-size: 13px;
    }
    .toolbar-left .sep {
        display: none;
    }
    .card-grid-2x2 {
        grid-template-columns: 1fr;
    }
    .card-grid-5col {
        grid-template-columns: 1fr 1fr;
    }
    .carousel-overlay .title {
        font-size: 17px;
    }
    .carousel-overlay .desc {
        font-size: 13px;
    }
    .dropdown-menu-root {
        min-width: 160px;
    }
    .dropdown-menu-root a {
        padding: 8px 14px;
        font-size: 13px;
    }
}
@media (max-width: 360px) {
    .card-grid-5col {
        grid-template-columns: 1fr;
    }
}
.col-card:first-child .col-header i {
    color: #f97316;
}
.col-card:last-child .col-header i {
    color: #38bdf8;
}
#section-resourcepack .section-header-block i {
    color: #55d88b;
}
#section-shaderpack .section-header-block i {
    color: #f5a623;
}
#section-map .section-header-block i {
    color: #4A90D9;
}
.activity-section:first-child .section-header i {
    color: #f59e0b;
}
.activity-section:last-child .section-header i {
    color: #22d3ee;
}
.side-nav-left a[data-target="section-resourcepack"] i {
    color: #55d88b;
}
.side-nav-left a[data-target="section-shaderpack"] i {
    color: #f5a623;
}
.side-nav-left a[data-target="section-map"] i {
    color: #4A90D9;
}
.side-nav-left a.active {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(56, 189, 248, 0.2));
    border-left: 3px solid #4ade80;
    color: #e8edf2;
}
.carousel-overlay .tag {
    background: linear-gradient(135deg, #4ade80, #38bdf8);
    color: #0b0f14;
    font-weight: 700;
    border: none;
}
.section-header-block .more-link:hover {
    color: #4ade80 !important;
    background: rgba(74, 222, 128, 0.1) !important;
}
.category-title {
    border-bottom: 2px solid rgba(74, 222, 128, 0.15);
}
.category-title .count {
    color: #6a7a8a;
}
.resource-card:hover {
    border-color: rgba(74, 222, 128, 0.3);
}
.empty-placeholder i {
    color: #4ade80;
    opacity: 0.4;
}
.views i {
    color: #6a7a8a;
}
.views {
    color: #b0b8c2;
}
.msg-badge {
    background: #ef4444;
}
.impersonate-tag {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}
.hamburger-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.hamburger-overlay.active {
    opacity: 1;
    visibility: visible;
}
.hamburger-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-body);
    border-left: 1px solid var(--border-light);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.hamburger-panel.active {
    transform: translateX(0);
}
.hamburger-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
    background: var(--bg-card);
}
.hamburger-header span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
.hamburger-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    transition: var(--transition);
    line-height: 1;
}
.hamburger-close:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}
.hamburger-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0 30px;
}
.hamburger-body::-webkit-scrollbar {
    width: 4px;
}
.hamburger-body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
.hamburger-body::-webkit-scrollbar-track {
    background: transparent;
}
.hamburger-section {
    padding: 0 12px;
}
.hamburger-section + .hamburger-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.hamburger-section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hamburger-section-title i {
    margin-right: 6px;
    opacity: 0.7;
}
.hamburger-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.hamburger-nav-list li {
    margin: 0;
}
.hamburger-nav-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}
.hamburger-nav-list a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.hamburger-nav-list a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}
.hamburger-nav-list a .nav-icon-color-rp { color: #55d88b; }
.hamburger-nav-list a .nav-icon-color-sp { color: #f5a623; }
.hamburger-nav-list a .nav-icon-color-map { color: #4A90D9; }
.hamburger-btn-fixed {
    position: fixed;
    bottom: 82px;
    right: 30px;
    z-index: 9997;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(22, 27, 34, 0.85);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hamburger-btn-fixed:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-bright);
    transform: scale(1.05);
}
.hamburger-btn-fixed:active {
    transform: scale(0.94);
}
@media (max-width: 1400px) {
    .side-nav {
        display: none !important;
    }
    .hamburger-btn-fixed {
        display: flex;
    }
}
@media (min-width: 1400px) {
    .hamburger-btn-fixed {
        display: none !important;
    }
    .hamburger-overlay,
    .hamburger-panel {
        display: none !important;
    }
}
@media (max-width: 600px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .hamburger-btn-fixed {
        bottom: 68px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
@media (max-width: 400px) {
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .hamburger-btn-fixed {
        bottom: 62px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}
/* ===== 主页顶部横幅 · 登录按钮组 ===== */
.banner-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 三个按钮的共同基础 */
.nav-qq-btn,
.nav-github-btn,
.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 36px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* ===== QQ：亮蓝实心 ===== */
.nav-qq-btn {
    background: #2B9BFF;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(43, 155, 255, 0.3);
}
.nav-qq-btn i { font-size: 16px; }
.nav-qq-btn:hover {
    background: #1a8cff;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(43, 155, 255, 0.45);
    color: #fff !important;
}

/* ===== GitHub：深灰实心 ===== */
.nav-github-btn {
    background: #24292e;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(36, 41, 46, 0.3);
}
.nav-github-btn i { font-size: 16px; }
.nav-github-btn:hover {
    background: #1a1e22;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(36, 41, 46, 0.5);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff !important;
}

/* ===== 普通登录：玻璃次要按钮 ===== */
.nav-login-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff !important;
    transform: translateY(-1px);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
    /* 第三方按钮只留图标，登录保留文字 */
    .nav-qq-btn span,
    .nav-github-btn span { display: none; }

    .nav-qq-btn,
    .nav-github-btn {
        padding: 0;
        width: 36px;
        flex: 0 0 36px;
    }
    .nav-qq-btn i,
    .nav-github-btn i { font-size: 17px; }

    .nav-login-btn {
        padding: 0 12px;
        height: 34px;
        font-size: 12.5px;
    }
}

@media (max-width: 600px) {
    .banner-user { gap: 6px; }

    .nav-qq-btn,
    .nav-github-btn {
        width: 32px;
        flex: 0 0 32px;
        height: 32px;
    }
    .nav-qq-btn i,
    .nav-github-btn i { font-size: 15px; }

    .nav-login-btn {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }
}


/* ===== 由模板内联样式提取 ===== */
/* mcres/static/css/pages/index/index.css */
/* ============================================================
           首页专属：navbar 始终可见，初始透明叠在 banner 上
           ============================================================ */
  .index-page .mn-navbar {
    background: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  /* 滚过 banner 后变实心（靠 navbar.html 里的 mn-scrolled 逻辑） */
  .index-page .mn-navbar.mn-scrolled {
    background: rgba(11, 15, 20, 0.88) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  }

  /* banner 顶部留出 navbar 高度，避免内容被遮挡 */
  .index-page .top-banner {
    padding-top: 64px;
    box-sizing: content-box;
  }

  /* ============================================================
           随机一言：毛玻璃竖线 + 加大加粗 + 半透明引号
           ============================================================ */
  .random-saying-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    padding-left: 20px;
  }

  /* 竖线：用伪元素实现真正的毛玻璃条 */
  .random-saying-wrap::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px) saturate(160%);
    -webkit-backdrop-filter: blur(8px) saturate(160%);
    box-shadow:
      0 0 12px rgba(255, 255, 255, 0.35),
      inset 0 0 4px rgba(255, 255, 255, 0.5);
  }

  .random-saying {
    display: inline-flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 560px;
    padding: 2px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.4px;
    color: #ffffff;
    /* 双层阴影：近处压暗 + 远处柔光，防止文字融进背景图 */
    text-shadow:
      0 1px 2px rgba(0, 0, 0, 0.85),
      0 4px 18px rgba(0, 0, 0, 0.55);
  }

  /* 引号：半透明白 + 白光柔化，模拟毛玻璃 */
  .random-saying .fa-quote-left {
    flex-shrink: 0;
    font-size: 1.35em;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
    transform: translateY(2px);
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.55))
      drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7));
  }

  /* ============================================================
           banner 右侧：天气 + 竖线 + 时间（一行）
           ============================================================ */
  .banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* 天气：和时钟同款素色文字，无背景无边框 */
  .weather-widget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    transition: opacity 0.4s;
  }
  .weather-widget[hidden] {
    display: none;
  }
  .weather-widget .weather-icon {
    opacity: 0.85;
  }
  .weather-widget .weather-temp {
    color: #fff;
  }
  .weather-widget .weather-city {
    opacity: 0.7;
  }

  /* 竖线分隔符：天气没出来时自动隐藏 */
  .banner-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    user-select: none;
  }
  .weather-widget[hidden] + .banner-sep {
    display: none;
  }

  /* 移动端适配：随机一言稍小一点 */
  @media (max-width: 820px) {
    .random-saying {
      font-size: 17px;
      max-width: 320px;
    }
    .random-saying .fa-quote-left {
      font-size: 1.1em;
      margin-top: 2px;
    }
    .random-saying-wrap {
      padding-left: 14px;
    }
    .random-saying-wrap::before {
      width: 2px;
    }
  }
  @media (max-width: 480px) {
    .random-saying {
      font-size: 15px;
      max-width: 240px;
    }
  }
