:root {
    --bg-page: #f3f7fc;
    --bg-page-2: #eef4fb;
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-soft: rgba(255, 255, 255, 0.62);
    --text-main: #1f2a3d;
    --text-soft: #5f6f85;
    --text-faint: #8a9ab1;
    --brand: #4b8cff;
    --brand-strong: #3f78f5;
    --brand-2: #72b2ff;
    --brand-strong-2: #63a6ff;
    --brand-rgb: 75, 140, 255;
    --brand-2-rgb: 114, 178, 255;
    --brand-soft: rgba(75, 140, 255, 0.12);
    --brand-outline: rgba(75, 140, 255, 0.38);
    --brand-outline-strong: rgba(75, 140, 255, 0.6);
    --brand-shadow: rgba(86, 139, 235, 0.28);
    --brand-glow: rgba(95, 145, 229, 0.35);
    --line: rgba(153, 174, 205, 0.34);
    --line-strong: rgba(153, 174, 205, 0.48);
    --success-soft: rgba(70, 178, 140, 0.18);
    --warning-soft: rgba(232, 168, 66, 0.2);
    --danger-soft: rgba(231, 99, 120, 0.18);
    --shadow-soft: 0 14px 34px rgba(122, 150, 186, 0.18);
    --shadow-hover: 0 22px 44px rgba(117, 146, 184, 0.22);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --top-navbar-offset: 84px;
}

html[data-accent="ocean"] {
    --brand: #4b8cff;
    --brand-strong: #3f78f5;
    --brand-2: #72b2ff;
    --brand-strong-2: #63a6ff;
    --brand-rgb: 75, 140, 255;
    --brand-2-rgb: 114, 178, 255;
    --brand-soft: rgba(75, 140, 255, 0.12);
    --brand-outline: rgba(75, 140, 255, 0.38);
    --brand-outline-strong: rgba(75, 140, 255, 0.6);
    --brand-shadow: rgba(86, 139, 235, 0.28);
    --brand-glow: rgba(95, 145, 229, 0.35);
}

html[data-accent="emerald"] {
    --brand: #33b18a;
    --brand-strong: #2c9b77;
    --brand-2: #57d2a7;
    --brand-strong-2: #4cc79a;
    --brand-rgb: 51, 177, 138;
    --brand-2-rgb: 87, 210, 167;
    --brand-soft: rgba(51, 177, 138, 0.14);
    --brand-outline: rgba(51, 177, 138, 0.38);
    --brand-outline-strong: rgba(51, 177, 138, 0.6);
    --brand-shadow: rgba(51, 177, 138, 0.28);
    --brand-glow: rgba(51, 177, 138, 0.35);
}

html[data-accent="amber"] {
    --brand: #f39c32;
    --brand-strong: #d98620;
    --brand-2: #ffc36a;
    --brand-strong-2: #f5ad4d;
    --brand-rgb: 243, 156, 50;
    --brand-2-rgb: 255, 195, 106;
    --brand-soft: rgba(243, 156, 50, 0.16);
    --brand-outline: rgba(243, 156, 50, 0.38);
    --brand-outline-strong: rgba(243, 156, 50, 0.6);
    --brand-shadow: rgba(243, 156, 50, 0.28);
    --brand-glow: rgba(243, 156, 50, 0.35);
}

html[data-accent="violet"] {
    --brand: #7c6cff;
    --brand-strong: #6a59f0;
    --brand-2: #a59bff;
    --brand-strong-2: #8c7dff;
    --brand-rgb: 124, 108, 255;
    --brand-2-rgb: 165, 155, 255;
    --brand-soft: rgba(124, 108, 255, 0.16);
    --brand-outline: rgba(124, 108, 255, 0.38);
    --brand-outline-strong: rgba(124, 108, 255, 0.6);
    --brand-shadow: rgba(124, 108, 255, 0.28);
    --brand-glow: rgba(124, 108, 255, 0.35);
}

html[data-accent="rose"] {
    --brand: #f06292;
    --brand-strong: #d95182;
    --brand-2: #ff9cbc;
    --brand-strong-2: #f37aa4;
    --brand-rgb: 240, 98, 146;
    --brand-2-rgb: 255, 156, 188;
    --brand-soft: rgba(240, 98, 146, 0.18);
    --brand-outline: rgba(240, 98, 146, 0.38);
    --brand-outline-strong: rgba(240, 98, 146, 0.6);
    --brand-shadow: rgba(240, 98, 146, 0.28);
    --brand-glow: rgba(240, 98, 146, 0.35);
}

html[data-accent="slate"] {
    --brand: #5c7aa6;
    --brand-strong: #4b678f;
    --brand-2: #8aa2c4;
    --brand-strong-2: #728db2;
    --brand-rgb: 92, 122, 166;
    --brand-2-rgb: 138, 162, 196;
    --brand-soft: rgba(92, 122, 166, 0.18);
    --brand-outline: rgba(92, 122, 166, 0.38);
    --brand-outline-strong: rgba(92, 122, 166, 0.6);
    --brand-shadow: rgba(92, 122, 166, 0.28);
    --brand-glow: rgba(92, 122, 166, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-padding-top: var(--top-navbar-offset);
}

body {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 8% 14%, rgba(var(--brand-2-rgb), 0.34) 0, transparent 42%),
        radial-gradient(circle at 94% 8%, rgba(var(--brand-rgb), 0.2) 0, transparent 38%),
        radial-gradient(circle at 88% 88%, rgba(var(--brand-rgb), 0.24) 0, transparent 42%),
        linear-gradient(160deg, var(--bg-page), var(--bg-page-2));
    overflow-x: hidden;
}

a {
    color: var(--brand-strong);
    text-decoration: none;
}

a:hover {
    color: var(--brand);
}

.app-bg-shape {
    position: fixed;
    border-radius: 999px;
    filter: blur(96px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.shape-1 {
    width: 420px;
    height: 420px;
    top: -140px;
    left: -90px;
    background: rgba(var(--brand-2-rgb), 0.52);
}

.shape-2 {
    width: 460px;
    height: 460px;
    right: -140px;
    bottom: -170px;
    background: rgba(var(--brand-rgb), 0.44);
}

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: grid;
    grid-template-columns: 1fr minmax(360px, 760px) 1fr;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(var(--brand-rgb), 0.14));
    backdrop-filter: blur(18px) saturate(138%);
    box-shadow: 0 10px 28px rgba(124, 149, 182, 0.14);
    width: 100%;
    max-width: 100%;
}

.top-nav-left,
.top-nav-center,
.top-nav-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.top-nav-right {
    justify-content: flex-end;
}

.btn-hamburger {
    width: 42px;
    height: 42px;
    margin-right: 0.8rem;
    border-radius: 13px;
    color: var(--text-main);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.btn-hamburger:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--line-strong);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    color: var(--text-main);
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 8px 20px var(--brand-glow);
    overflow: hidden;
}

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

.brand-name {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-weight: 700;
    color: #274063;
    letter-spacing: 0.02em;
}

.glass-search-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}

.glass-search-wrapper > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f91ab;
}

.glass-search-wrapper input {
    width: 100%;
    padding: 0.82rem 1rem 0.82rem 2.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    color: var(--text-main);
    backdrop-filter: blur(10px) saturate(120%);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.glass-search-wrapper input::placeholder {
    color: #8ca0bc;
}

.glass-search-wrapper input:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(92, 145, 245, 0.5);
    box-shadow: 0 0 0 4px rgba(82, 140, 247, 0.16);
}

.search-suggest-box {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1080;
}

.search-suggest-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.74rem 0.92rem;
    color: #364d72;
    border-bottom: 1px solid rgba(160, 178, 202, 0.18);
}

.search-suggest-item > i {
    position: static;
    transform: none;
    flex: 0 0 16px;
    width: 16px;
    text-align: center;
    color: #7f91ab;
}

.search-suggest-item:last-child {
    border-bottom: none;
}

.search-suggest-item:hover {
    background: rgba(var(--brand-rgb), 0.16);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    margin-right: 0.45rem;
    border: 1px solid rgba(146, 171, 204, 0.45);
}

.user-menu-btn {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
    color: #2a3f61;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.theme-switcher {
    margin-right: 0.6rem;
}

.theme-btn {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: #2a3f61;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.theme-menu {
    min-width: 240px;
    padding: 0.75rem;
}

.theme-menu-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
    margin-bottom: 0.5rem;
}

.theme-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.theme-swatch {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.theme-swatch.is-active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(80, 130, 220, 0.2);
}

.theme-menu-divider {
    height: 1px;
    background: var(--line);
    margin: 0.6rem 0;
}

.theme-mode-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.theme-mode-toggle {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: #335074;
    padding: 0.3rem 0.75rem;
}

.btn-brand {
    border: none;
    color: #fff;
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    box-shadow: 0 8px 18px var(--brand-shadow);
}

.btn-brand:hover {
    color: #fff;
    background: linear-gradient(120deg, var(--brand-strong), var(--brand-strong-2));
}

.btn-brand-soft {
    border: 1px solid var(--brand-outline);
    color: var(--brand-strong);
    background: rgba(241, 248, 255, 0.96);
}

.btn-brand-soft:hover {
    color: var(--brand-strong);
    border-color: var(--brand-outline-strong);
    background: rgba(229, 241, 255, 1);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: #375272;
    background: rgba(255, 255, 255, 0.64);
}

.btn-ghost:hover {
    color: #243b5b;
    background: rgba(255, 255, 255, 0.95);
}

.app-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    flex: 1 0 auto;
    min-height: 0;
    min-width: 0;
    padding-top: var(--top-navbar-offset);
}

.sidebar {
    width: 255px;
    flex: 0 0 255px;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.68), rgba(var(--brand-rgb), 0.16));
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease;
    z-index: 1030;
}

.sidebar-inner {
    padding: 1rem 0.84rem;
}

.sidebar-title {
    color: #6e819d;
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem 0.8rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #3f587b;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.24rem;
    transition: all 0.16s ease;
}

.sidebar-item i {
    width: 18px;
    text-align: center;
    color: #5f7dab;
}

.sidebar-item:hover,
.sidebar-item.active {
    color: #2d4f80;
    background: rgba(95, 145, 235, 0.14);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(119, 137, 165, 0.26);
    z-index: 1020;
}

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

.main-content.no-sidebar {
    width: 100%;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.3rem;
}

.hero-card {
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(130deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.64)),
        radial-gradient(circle at 90% 18%, rgba(var(--brand-rgb), 0.3), transparent 44%);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.hero-card h1,
.hero-card h2,
.hero-card h3 {
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    color: #1f395b;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.tool-card {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(130, 164, 214, 0.56);
}

.tool-cover {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e7effa;
}

.tool-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.tool-card:hover .tool-cover img {
    transform: scale(1.05);
}

.cover-badge {
    position: absolute;
    right: 12px;
    top: 12px;
}

.tool-body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 210px;
}

.tool-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}

.tool-title-row h3 {
    margin: 0;
    font-size: 1.06rem;
    color: #233b5c;
}

.tool-meta {
    color: var(--text-faint);
    font-size: 0.84rem;
}

.tool-summary {
    color: var(--text-soft);
    line-height: 1.56;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.badge-web,
.badge-download,
.badge-tutorial {
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 0.26rem 0.6rem;
}

.badge-web {
    color: #287f54;
    background: var(--success-soft);
}

.badge-download {
    color: #3669c8;
    background: rgba(76, 136, 255, 0.18);
}

.badge-tutorial {
    color: #986316;
    background: var(--warning-soft);
}

.tool-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.glass-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    padding: 1rem;
}

.detail-cover {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 16 / 5.8;
    max-height: 320px;
    background:
        linear-gradient(135deg, rgba(225, 236, 252, 0.95), rgba(214, 229, 248, 0.9));
}

.detail-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(14, 28, 50, 0.1), rgba(14, 28, 50, 0.24)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 48%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(8px) saturate(122%);
    pointer-events: none;
}

.detail-cover::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    height: 38%;
    background: linear-gradient(180deg, rgba(18, 33, 57, 0), rgba(18, 33, 57, 0.32));
    pointer-events: none;
}

.detail-cover img {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.02);
    filter: saturate(1.04) contrast(1.02);
}

.detail-layout {
    width: 100%;
    max-width: 980px;
    min-width: 0;
    margin: 0 auto;
}

.detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem 1.2rem;
}

.detail-head-meta {
    flex: 1 1 460px;
    min-width: 260px;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.detail-title-row .h4 {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-back-link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.detail-actions {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.detail-author-panel {
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.82)),
        radial-gradient(circle at 88% 16%, rgba(var(--brand-rgb), 0.3), transparent 38%);
}

.author-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1.1rem;
    align-items: start;
}

.author-card-avatar,
.author-preview-avatar,
.comment-avatar {
    object-fit: cover;
    border-radius: 999px;
    border: 1px solid rgba(156, 179, 210, 0.4);
    background: #eef4fb;
}

.author-card-avatar {
    width: 88px;
    height: 88px;
    box-shadow: 0 12px 26px rgba(128, 156, 192, 0.18);
}

.author-card-main {
    min-width: 0;
}

.author-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 0.65rem;
}

.author-card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.author-card-bio,
.author-preview-bio {
    color: #4d6788;
    line-height: 1.75;
    white-space: normal;
}

.interaction-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 255, 0.84)),
        radial-gradient(circle at 100% 0, rgba(var(--brand-rgb), 0.28), transparent 38%);
}

.interaction-header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
    flex-wrap: wrap;
}

.interaction-stats,
.interaction-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.interaction-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: #406188;
    background: rgba(232, 242, 255, 0.9);
    border: 1px solid rgba(163, 186, 219, 0.34);
    font-size: 0.84rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 20px rgba(135, 160, 192, 0.12);
}

.interaction-actions {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(163, 186, 219, 0.32);
    background: rgba(248, 251, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.interaction-actions form {
    margin: 0;
}

.interaction-actions .btn {
    min-height: 42px;
}

.interaction-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(120, 148, 182, 0.16);
}

.interaction-actions .btn.btn-outline-light {
    background: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .interaction-actions .btn.btn-outline-light {
    background: rgba(22, 33, 49, 0.94);
    color: var(--text-main);
    border-color: rgba(120, 150, 190, 0.34);
    box-shadow: 0 10px 20px rgba(6, 10, 18, 0.42);
}

html[data-theme="dark"] .interaction-actions .btn.btn-outline-light:hover {
    background: rgba(32, 46, 68, 0.97);
    color: #f2f7ff;
    border-color: rgba(145, 176, 220, 0.46);
}

.interaction-hint {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: #4b688d;
    background: rgba(233, 242, 255, 0.88);
    border: 1px solid rgba(163, 186, 219, 0.34);
}

.comment-form textarea {
    min-height: 128px;
}

.comment-form {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(163, 186, 219, 0.28);
    background: rgba(252, 254, 255, 0.9);
}

.comment-login-tip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    color: #496584;
    background: rgba(244, 249, 255, 0.78);
    border: 1px solid rgba(160, 181, 208, 0.32);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.comment-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid rgba(160, 181, 209, 0.28);
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.96), rgba(245, 250, 255, 0.82));
    box-shadow: 0 12px 26px rgba(132, 158, 191, 0.1);
}

.comment-avatar-wrap {
    display: flex;
    align-items: start;
    justify-content: center;
}

.comment-avatar {
    width: 46px;
    height: 46px;
}

.comment-body {
    min-width: 0;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: start;
    margin-bottom: 0.45rem;
}

.comment-head strong {
    color: #2b4567;
}

.comment-head form {
    margin: 0;
}

.comment-content {
    color: var(--text-soft);
    line-height: 1.75;
    word-break: break-word;
}

.author-preview-card {
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.74)),
        radial-gradient(circle at 88% 12%, rgba(var(--brand-rgb), 0.28), transparent 38%);
}

.author-preview-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.author-preview-avatar {
    width: 72px;
    height: 72px;
}

.author-preview-meta {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
    color: #44617f;
}

.author-preview-reward {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(164, 183, 209, 0.28);
}

.reward-qr-preview {
    width: min(240px, 100%);
    border-radius: 18px;
    border: 1px solid rgba(160, 181, 209, 0.35);
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 10px 24px rgba(130, 157, 193, 0.18);
}

html[data-theme="dark"] {
    --bg-page: #0b111a;
    --bg-page-2: #101826;
    --surface: rgba(18, 27, 41, 0.78);
    --surface-strong: rgba(21, 31, 46, 0.92);
    --surface-soft: rgba(18, 27, 41, 0.6);
    --text-main: #e6edf7;
    --text-soft: #c2d0e2;
    --text-faint: #93a7c2;
    --line: rgba(146, 171, 201, 0.18);
    --line-strong: rgba(146, 171, 201, 0.32);
    --shadow-soft: 0 18px 38px rgba(6, 10, 18, 0.58);
    --shadow-hover: 0 24px 52px rgba(6, 10, 18, 0.72);
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 8% 14%, rgba(var(--brand-rgb), 0.22) 0, transparent 46%),
        radial-gradient(circle at 92% 10%, rgba(var(--brand-2-rgb), 0.16) 0, transparent 42%),
        radial-gradient(circle at 88% 88%, rgba(var(--brand-rgb), 0.18) 0, transparent 46%),
        linear-gradient(160deg, var(--bg-page), var(--bg-page-2));
    color: var(--text-main);
}

html[data-theme="dark"] a {
    color: var(--brand-2);
}

html[data-theme="dark"] a:hover {
    color: #d7e8ff;
}

html[data-theme="dark"] .app-bg-shape {
    opacity: 0.32;
    filter: blur(110px);
}

html[data-theme="dark"] .top-navbar,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .admin-navbar {
    background:
        linear-gradient(150deg, rgba(15, 22, 34, 0.9), rgba(var(--brand-rgb), 0.16));
    border-color: var(--line);
    box-shadow: 0 12px 28px rgba(5, 10, 20, 0.5);
}

html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .comment-item,
html[data-theme="dark"] .interaction-actions,
html[data-theme="dark"] .comment-form,
html[data-theme="dark"] .comment-login-tip,
html[data-theme="dark"] .search-suggest-box,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .admin-menu,
html[data-theme="dark"] .card,
html[data-theme="dark"] .glass-card {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .detail-author-panel,
html[data-theme="dark"] .interaction-panel,
html[data-theme="dark"] .author-preview-card {
    background: var(--surface-strong);
}

html[data-theme="dark"] .tool-title-row h3,
html[data-theme="dark"] .hero-card h1,
html[data-theme="dark"] .hero-card h2,
html[data-theme="dark"] .hero-card h3,
html[data-theme="dark"] .brand-name,
html[data-theme="dark"] .detail-head .h4,
html[data-theme="dark"] .comment-head strong,
html[data-theme="dark"] .admin-brand,
html[data-theme="dark"] .admin-menu-item,
html[data-theme="dark"] .table {
    color: var(--text-main);
}

html[data-theme="dark"] .tool-summary,
html[data-theme="dark"] .comment-content,
html[data-theme="dark"] .author-card-bio,
html[data-theme="dark"] .author-preview-bio,
html[data-theme="dark"] .tool-meta {
    color: var(--text-soft);
}

html[data-theme="dark"] .btn-hamburger,
html[data-theme="dark"] .user-menu-btn,
html[data-theme="dark"] .theme-btn,
html[data-theme="dark"] .theme-mode-toggle,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] .btn-outline-light {
    background: rgba(18, 27, 41, 0.85);
    color: var(--text-soft);
    border-color: var(--line);
}

html[data-theme="dark"] .btn-hamburger:hover,
html[data-theme="dark"] .user-menu-btn:hover,
html[data-theme="dark"] .theme-btn:hover,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] .btn-outline-light:hover {
    background: rgba(28, 40, 58, 0.92);
}

html[data-theme="dark"] .btn-brand-soft {
    background: rgba(20, 30, 44, 0.9);
    color: var(--brand-2);
}

html[data-theme="dark"] .btn-brand-soft:hover {
    background: rgba(28, 40, 58, 0.94);
    color: var(--brand-2);
}

html[data-theme="dark"] .glass-search-wrapper input,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .form-check-input {
    background-color: rgba(18, 27, 41, 0.86);
    border-color: var(--line);
    color: var(--text-main);
}

html[data-theme="dark"] .glass-search-wrapper input::placeholder,
html[data-theme="dark"] .form-control::placeholder {
    color: var(--text-faint);
}

html[data-theme="dark"] .glass-search-wrapper input:focus,
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: rgba(24, 36, 54, 0.95);
    border-color: var(--brand-outline-strong);
    box-shadow: 0 0 0 4px rgba(88, 136, 220, 0.18);
}

html[data-theme="dark"] .search-suggest-item {
    color: var(--text-soft);
    border-bottom-color: rgba(100, 120, 150, 0.22);
}

html[data-theme="dark"] .search-suggest-item:hover {
    background: rgba(70, 110, 180, 0.2);
}

html[data-theme="dark"] .interaction-stats span,
html[data-theme="dark"] .interaction-hint {
    background: rgba(20, 32, 50, 0.9);
    border-color: rgba(120, 150, 190, 0.2);
    color: var(--text-soft);
}

html[data-theme="dark"] .sidebar-item {
    color: var(--text-soft);
}

html[data-theme="dark"] .sidebar-item:hover,
html[data-theme="dark"] .sidebar-item.active {
    color: var(--text-main);
    background: rgba(70, 110, 180, 0.22);
}

html[data-theme="dark"] .admin-user-pill,
html[data-theme="dark"] .admin-nav-btn,
html[data-theme="dark"] .admin-brand {
    background: rgba(20, 30, 44, 0.92);
    border-color: var(--line);
}

html[data-theme="dark"] .admin-menu-item:hover {
    background: rgba(70, 110, 180, 0.2);
}

html[data-theme="dark"] .table > :not(caption) > * > * {
    border-color: var(--line);
}

html[data-theme="dark"] .page-link {
    background: rgba(20, 30, 44, 0.86);
    border-color: var(--line);
    color: var(--text-soft);
}

html[data-theme="dark"] .page-item.active .page-link {
    color: #fff;
}

html[data-theme="dark"] .reward-qr-preview {
    background: rgba(18, 27, 41, 0.9);
    border-color: var(--line);
}

html[data-theme="dark"] .markdown-body {
    color: var(--text-soft);
}

html[data-theme="dark"] .markdown-body :not(pre) > code {
    color: #cfe2ff;
    background: rgba(90, 145, 242, 0.2);
    border-color: rgba(120, 150, 200, 0.28);
}

html[data-theme="dark"] .markdown-body pre,
html[data-theme="dark"] .markdown-body pre[class*="language-"] {
    border-color: var(--line);
    background: rgba(15, 22, 34, 0.96) !important;
    box-shadow: 0 12px 24px rgba(5, 10, 18, 0.6);
}

html[data-theme="dark"] .markdown-body pre code,
html[data-theme="dark"] .markdown-body pre[class*="language-"] code {
    color: #d9e6ff !important;
}

html[data-theme="dark"] .markdown-body .code-toolbar {
    border-bottom-color: var(--line);
    background: rgba(18, 27, 41, 0.9);
}

html[data-theme="dark"] .markdown-body .code-lang {
    color: var(--text-soft);
    background: rgba(70, 110, 180, 0.24);
    border-color: rgba(120, 150, 200, 0.28);
}

html[data-theme="dark"] .copy-btn {
    color: var(--text-soft);
    background: rgba(25, 38, 56, 0.9);
    border-color: rgba(120, 150, 200, 0.34);
}

html[data-theme="dark"] .copy-btn:hover {
    background: rgba(35, 50, 74, 0.95);
}

html[data-theme="dark"] .markdown-body .md-table-wrap {
    background: rgba(18, 27, 41, 0.9);
    border-color: var(--line);
}

html[data-theme="dark"] .markdown-body table {
    color: var(--text-main);
}

html[data-theme="dark"] .markdown-body table th,
html[data-theme="dark"] .markdown-body table td {
    border-right-color: var(--line);
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .markdown-body table tr {
    background: rgba(18, 27, 41, 0.86);
}

html[data-theme="dark"] .markdown-body table thead th {
    background: rgba(20, 32, 50, 0.92);
    color: var(--text-main);
}

html[data-theme="dark"] .markdown-body table tbody tr:nth-child(even) td {
    background: rgba(22, 34, 52, 0.86);
}

html[data-theme="dark"] .markdown-body .token.comment,
html[data-theme="dark"] .markdown-body .token.prolog,
html[data-theme="dark"] .markdown-body .token.doctype,
html[data-theme="dark"] .markdown-body .token.cdata {
    color: #8fa6c2 !important;
}

html[data-theme="dark"] .markdown-body .token.punctuation {
    color: #b4c5dc !important;
}

html[data-theme="dark"] .markdown-body .token.property,
html[data-theme="dark"] .markdown-body .token.tag,
html[data-theme="dark"] .markdown-body .token.boolean,
html[data-theme="dark"] .markdown-body .token.number,
html[data-theme="dark"] .markdown-body .token.constant,
html[data-theme="dark"] .markdown-body .token.symbol {
    color: #ffb7a9 !important;
}

html[data-theme="dark"] .markdown-body .token.selector,
html[data-theme="dark"] .markdown-body .token.attr-name,
html[data-theme="dark"] .markdown-body .token.string,
html[data-theme="dark"] .markdown-body .token.char,
html[data-theme="dark"] .markdown-body .token.builtin {
    color: #8adcae !important;
}

html[data-theme="dark"] .markdown-body .token.operator,
html[data-theme="dark"] .markdown-body .token.entity,
html[data-theme="dark"] .markdown-body .token.url {
    color: #89d2ef !important;
    background: transparent !important;
}

html[data-theme="dark"] .markdown-body .token.atrule,
html[data-theme="dark"] .markdown-body .token.attr-value,
html[data-theme="dark"] .markdown-body .token.keyword {
    color: #9dbdff !important;
}

html[data-theme="dark"] .markdown-body .token.function,
html[data-theme="dark"] .markdown-body .token.class-name {
    color: #ceb4ff !important;
}

@media (min-width: 1440px) {
    .detail-layout {
        max-width: 1060px;
    }
}

.site-footer {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.66), rgba(var(--brand-rgb), 0.12));
    backdrop-filter: blur(12px);
    width: 100%;
    max-width: 100%;
}

.footer-inner {
    padding: 0.9rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem 1.2rem;
    color: #7084a2;
    font-size: 0.9rem;
}

.footer-inner a {
    color: #426fc0;
}

.footer-custom-html {
    display: inline-flex;
    align-items: center;
    min-height: 1.2rem;
}

.footer-links {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-link-sep {
    color: #91a4bb;
}

.form-control,
.form-select,
.form-check-input {
    border-color: rgba(158, 177, 203, 0.5);
    background-color: rgba(255, 255, 255, 0.9);
    color: #233652;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(85, 142, 240, 0.56);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(90, 145, 242, 0.15);
    color: #1f2f49;
}

.form-control::placeholder {
    color: #8ea1bc;
}

.form-label {
    color: #516782;
    font-weight: 500;
}

.table {
    color: #2b3f5d;
}

.table > :not(caption) > * > * {
    background: transparent;
    border-color: rgba(160, 178, 203, 0.32);
}

.table thead th {
    color: #4f6686;
    font-weight: 600;
}

.auth-wrapper {
    max-width: 480px;
    margin: 7vh auto;
}

.markdown-body {
    color: #2b3f5f;
    line-height: 1.82;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.markdown-body img,
.markdown-body video,
.markdown-body iframe {
    max-width: 100%;
    height: auto;
}

.page-html-content > :last-child {
    margin-bottom: 0 !important;
}

.markdown-body .md-table-wrap {
    margin: 1rem 0;
    border: 1px solid rgba(156, 180, 214, 0.36);
    border-radius: 14px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.markdown-body table {
    width: 100%;
    min-width: 520px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #2f4569;
    font-size: 0.92rem;
}

.markdown-body table th,
.markdown-body table td {
    padding: 0.62rem 0.74rem;
    border-right: 1px solid rgba(159, 182, 213, 0.3);
    border-bottom: 1px solid rgba(159, 182, 213, 0.28);
    vertical-align: top;
}

.markdown-body table thead th {
    color: #345680;
    font-weight: 600;
    background: linear-gradient(180deg, rgba(236, 245, 255, 0.95), rgba(232, 242, 255, 0.8));
}

.markdown-body table tbody tr:nth-child(even) td {
    background: rgba(244, 249, 255, 0.64);
}

.markdown-body table tr > *:last-child {
    border-right: none;
}

.markdown-body table tbody tr:last-child > * {
    border-bottom: none;
}

.markdown-body table thead tr:first-child > *:first-child {
    border-top-left-radius: 14px;
}

.markdown-body table thead tr:first-child > *:last-child {
    border-top-right-radius: 14px;
}

.markdown-body table tbody tr:last-child > *:first-child {
    border-bottom-left-radius: 14px;
}

.markdown-body table tbody tr:last-child > *:last-child {
    border-bottom-right-radius: 14px;
}

@media (max-width: 576px) {
    .markdown-body table {
        min-width: 460px;
        font-size: 0.86rem;
    }

    .markdown-body table th,
    .markdown-body table td {
        padding: 0.5rem 0.56rem;
    }
}

.markdown-body :not(pre) > code {
    padding: 0.08rem 0.42rem;
    border-radius: 7px;
    color: #27539f;
    background: rgba(90, 145, 242, 0.14);
    border: 1px solid rgba(141, 173, 218, 0.38);
}

.markdown-body pre,
.markdown-body pre[class*="language-"] {
    position: relative;
    margin: 1.1rem 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(163, 186, 218, 0.42);
    background:
        radial-gradient(circle at 0 0, rgba(114, 170, 247, 0.14), transparent 38%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 255, 0.95)) !important;
    box-shadow: 0 12px 24px rgba(118, 148, 188, 0.18);
    padding: 3.2rem 1.05rem 1.05rem !important;
    overflow: auto;
}

.markdown-body pre code,
.markdown-body pre[class*="language-"] code {
    display: block;
    color: #2f4d76 !important;
    text-shadow: none !important;
    font-size: 0.9rem;
    line-height: 1.72;
}

.markdown-body .code-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    padding: 0.62rem 0.76rem;
    border-bottom: 1px solid rgba(166, 190, 222, 0.34);
    background: linear-gradient(180deg, rgba(246, 251, 255, 0.9), rgba(243, 249, 255, 0.6));
    backdrop-filter: blur(6px);
}

.markdown-body .code-lang {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(152, 181, 227, 0.38);
    color: #3f5f93;
    background: rgba(188, 214, 249, 0.32);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-width: 66px;
    border: 1px solid rgba(151, 184, 231, 0.45);
    border-radius: 999px;
    padding: 0.22rem 0.68rem;
    color: #355786;
    background: rgba(208, 228, 252, 0.62);
    font-size: 0.76rem;
    line-height: 1.1;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: rgba(125, 164, 220, 0.7);
    background: rgba(186, 213, 247, 0.72);
}

.copy-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(150, 186, 238, 0.34);
}

.copy-btn i {
    font-size: 0.78rem;
}

.copy-btn.is-copied {
    border-color: rgba(96, 183, 147, 0.54);
    color: #2f6a53;
    background: rgba(160, 228, 198, 0.5);
}

.markdown-body .token.comment,
.markdown-body .token.prolog,
.markdown-body .token.doctype,
.markdown-body .token.cdata {
    color: #7e8fa6 !important;
}

.markdown-body .token.punctuation {
    color: #5e708e !important;
}

.markdown-body .token.property,
.markdown-body .token.tag,
.markdown-body .token.boolean,
.markdown-body .token.number,
.markdown-body .token.constant,
.markdown-body .token.symbol {
    color: #a05854 !important;
}

.markdown-body .token.selector,
.markdown-body .token.attr-name,
.markdown-body .token.string,
.markdown-body .token.char,
.markdown-body .token.builtin {
    color: #3f7c57 !important;
}

.markdown-body .token.operator,
.markdown-body .token.entity,
.markdown-body .token.url {
    color: #2b7393 !important;
    background: transparent !important;
}

.markdown-body .token.atrule,
.markdown-body .token.attr-value,
.markdown-body .token.keyword {
    color: #4468b6 !important;
}

.markdown-body .token.function,
.markdown-body .token.class-name {
    color: #6f4fa7 !important;
}

.review-markdown {
    padding: 0.7rem 0.84rem;
    border-radius: 12px;
    border: 1px solid rgba(164, 184, 212, 0.3);
    background: rgba(248, 252, 255, 0.74);
    max-height: 460px;
    overflow: auto;
}

.icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
}

.icon-choice {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.md-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.md-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.72rem;
}

.md-editor-textarea {
    min-height: 420px;
    font-family: 'Consolas', 'SFMono-Regular', Menlo, monospace;
    font-size: 0.88rem;
    line-height: 1.6;
}

.md-editor-preview {
    min-height: 420px;
    padding: 0.78rem;
    border-radius: 12px;
    border: 1px solid rgba(160, 178, 203, 0.34);
    background: rgba(255, 255, 255, 0.75);
    overflow: auto;
}

.admin-body {
    background:
        radial-gradient(circle at 5% 16%, rgba(var(--brand-2-rgb), 0.36) 0, transparent 42%),
        radial-gradient(circle at 92% 10%, rgba(var(--brand-rgb), 0.28) 0, transparent 42%),
        linear-gradient(165deg, #f4f7fd, #edf3fb);
}

.admin-navbar {
    position: sticky;
    top: 0;
    z-index: 1090;
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(var(--brand-rgb), 0.14));
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 28px rgba(131, 155, 189, 0.12);
}

.admin-navbar a,
.admin-navbar span {
    color: inherit;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(155, 179, 212, 0.36);
    color: #21476f;
    background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.24), rgba(255, 255, 255, 0.9));
    box-shadow: 0 10px 22px rgba(133, 160, 196, 0.12);
    font-family: 'Trebuchet MS', 'Segoe UI', sans-serif;
    font-weight: 700;
}

.admin-brand i {
    color: var(--brand-strong);
}

.admin-nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-user-pill,
.admin-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(155, 179, 212, 0.34);
    box-shadow: 0 10px 22px rgba(133, 160, 196, 0.1);
}

.admin-user-pill {
    color: #4d698c;
    background: rgba(var(--brand-rgb), 0.12);
}

.admin-nav-btn {
    color: #35577f;
    background: rgba(255, 255, 255, 0.92);
}

.admin-nav-btn:hover,
.admin-brand:hover {
    color: #244d7b;
}

.admin-menu {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: 0.5rem;
}

.admin-menu-item {
    display: block;
    padding: 0.58rem 0.62rem;
    border-radius: 10px;
    margin-bottom: 0.22rem;
    color: #425c82;
}

.admin-menu-item:hover {
    background: rgba(90, 145, 242, 0.14);
    color: #2c4c7e;
}

.card,
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    color: #2b425f;
    box-shadow: var(--shadow-soft);
}

.card .card-header {
    border-bottom: 1px solid rgba(160, 178, 203, 0.34);
    color: #4d6689;
    background: rgba(255, 255, 255, 0.6);
}

.admin-thumb {
    width: 74px;
    height: 42px;
    border-radius: 9px;
    object-fit: cover;
    border: 1px solid rgba(161, 179, 203, 0.38);
    background: #ecf2fb;
}

.review-cover {
    width: min(360px, 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(161, 179, 203, 0.38);
    background: #ecf2fb;
}

.review-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.dropdown-menu {
    border: 1px solid var(--line);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.94);
}

.page-link {
    border-color: rgba(160, 178, 203, 0.42);
    color: #3d5f93;
    background: rgba(255, 255, 255, 0.82);
}

.page-item.active .page-link {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

.btn-outline-light {
    color: #4a617f;
    border-color: rgba(163, 181, 206, 0.5);
    background: rgba(255, 255, 255, 0.86);
}

.btn-outline-light:hover {
    color: #324b71;
    border-color: rgba(120, 150, 191, 0.65);
    background: rgba(236, 244, 255, 0.96);
}

@media (max-width: 992px) {
    :root {
        --top-navbar-offset: 136px;
    }

    .top-navbar {
        grid-template-columns: auto 1fr auto;
        gap: 0.74rem;
        padding-top: 0.76rem;
        padding-bottom: 0.76rem;
    }

    .top-nav-left,
    .top-nav-right {
        justify-content: flex-start;
        min-width: 0;
    }

    .top-nav-left {
        position: static;
    }

    .top-navbar .brand-link {
        position: static;
        transform: none;
        white-space: nowrap;
        min-width: 0;
        max-width: 100%;
    }

    .top-navbar .brand-name {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.93rem;
    }

    .top-nav-right {
        justify-content: flex-end;
    }

    .top-nav-center {
        order: 3;
        grid-column: 1 / -1;
        min-width: 0;
    }

    .top-nav-right .user-menu-name {
        display: none;
    }

    .theme-btn-label {
        display: none;
    }

    .top-nav-right .user-menu-btn {
        padding-left: 0.48rem;
        padding-right: 0.48rem;
    }

    .top-nav-right .user-menu-btn .avatar {
        margin-right: 0;
    }

    .top-nav-right .user-menu-btn::after {
        margin-left: 0.25rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        width: 260px;
        z-index: 1105;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        display: block;
        z-index: 1100;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .detail-actions {
        width: 100%;
        margin-left: 0;
    }

    .detail-title-row {
        gap: 0.65rem;
    }

    .footer-links {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .author-card {
        grid-template-columns: 1fr;
    }

    .author-card-head,
    .comment-login-tip {
        flex-direction: column;
        align-items: start;
    }
}

body.sidebar-collapsed .sidebar {
    width: 84px;
    flex-basis: 84px;
}

body.sidebar-collapsed .sidebar-item span,
body.sidebar-collapsed .sidebar-title {
    display: none;
}

body.sidebar-collapsed .sidebar-item {
    justify-content: center;
}

@media (max-width: 992px) {
    body.sidebar-collapsed .sidebar {
        width: 260px;
    }

    body.sidebar-collapsed .sidebar-item span,
    body.sidebar-collapsed .sidebar-title {
        display: initial;
    }

    body.sidebar-collapsed .sidebar-item {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    :root {
        --top-navbar-offset: 128px;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .top-navbar .brand-name {
        display: none;
    }

    .top-navbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .glass-panel,
    .hero-card {
        padding: 0.9rem;
    }

    .detail-cover {
        aspect-ratio: 16 / 7.2;
        max-height: none;
    }

    .detail-layout {
        width: 100%;
        max-width: 100%;
    }

    .detail-head-meta {
        min-width: 0;
    }

    .tool-body {
        min-height: 190px;
        padding: 0.9rem;
    }

    .footer-inner {
        font-size: 0.84rem;
    }

    .admin-navbar {
        min-height: 0;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        flex-wrap: wrap;
    }

    .admin-nav-right {
        width: 100%;
        justify-content: space-between;
        gap: 0.65rem;
    }

    .comment-item {
        grid-template-columns: 1fr;
    }

    .comment-avatar-wrap {
        justify-content: start;
    }
}

@media (max-width: 992px) {
    .md-editor-grid {
        grid-template-columns: 1fr;
    }

    .md-editor-textarea,
    .md-editor-preview {
        min-height: 300px;
    }
}
