:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f5f7fb;
    --card: #ffffff;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand { font-size: 20px; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand span { color: var(--primary); }
.main-nav { display: flex; gap: 16px; align-items: center; }
.main-nav a { color: var(--muted); font-weight: 500; }
.main-nav a:hover { color: var(--primary); }
.header-search { margin-left: auto; display: flex; }
.header-search input {
    border: 1px solid var(--border);
    border-radius: 8px 0 0 8px;
    padding: 7px 12px;
    width: 180px;
    outline: none;
}
.header-search button {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    border-radius: 0 8px 8px 0;
    padding: 0 14px;
    cursor: pointer;
}
.header-user { display: flex; align-items: center; gap: 12px; }
.header-user .avatar-sm { width: 32px; height: 32px; }
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
    min-width: 150px;
    padding: 6px;
    z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    background: none;
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--bg); color: var(--primary); }
.badge-dot {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 4px;
}

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; padding: 24px 0; align-items: start; }
.layout.single { grid-template-columns: 1fr; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-body { padding: 18px; }
.card-body.p0 { padding: 0; }

.page-title { font-size: 22px; font-weight: 700; margin: 0 0 16px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
    text-decoration: none;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
.btn-block { width: 100%; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: var(--text);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > * { flex: 1; }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.avatar { border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 80px; height: 80px; }

.post-list { display: flex; flex-direction: column; }
.post-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: #fafbff; }
.post-main { flex: 1; min-width: 0; }
.post-title { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--primary); }
.post-meta { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.post-excerpt { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.post-stats { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; text-align: center; color: var(--muted); font-size: 12px; }
.post-stats strong { font-size: 16px; color: var(--text); display: block; }

.tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: #eff6ff;
    color: var(--primary);
}
.tag-pinned { background: #fef3c7; color: #b45309; }
.tag-featured { background: #ede9fe; color: #7c3aed; }
.tag-pending { background: #fef3c7; color: #b45309; }
.tag-hidden { background: #f3f4f6; color: #6b7280; }
.tag-banned { background: #fee2e2; color: #b91c1c; }
.tag-role-admin { background: #ede9fe; color: #7c3aed; }
.tag-role-moderator { background: #dbeafe; color: #1d4ed8; }

.board-list .board-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.board-list .board-item:last-child { border-bottom: none; }
.board-icon { width: 40px; height: 40px; border-radius: 10px; background: #eff6ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.board-info h3 { margin: 0 0 2px; font-size: 15px; }
.board-info p { margin: 0; color: var(--muted); font-size: 13px; }

.rich-content { font-size: 15px; line-height: 1.8; word-break: break-word; }
.rich-content img { max-width: 100%; height: auto; border-radius: 6px; }
.rich-content p { margin: 0 0 12px; }
.rich-content blockquote { border-left: 4px solid var(--border); margin: 12px 0; padding: 6px 14px; color: var(--muted); background: #fafafa; }
.rich-content pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 8px; overflow-x: auto; }
.rich-content code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; font-size: 90%; }
.rich-content pre code { background: none; padding: 0; }
.rich-content table { border-collapse: collapse; width: 100%; }
.rich-content th, .rich-content td { border: 1px solid var(--border); padding: 8px; }

.reply-item { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.reply-item:last-child { border-bottom: none; }
.reply-main { flex: 1; min-width: 0; }
.reply-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.reply-author { font-weight: 600; }
.reply-time { color: var(--muted); font-size: 12px; }

.like-bar { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; border: 1px solid var(--border); background: #fff; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--muted); }
.like-btn:hover { border-color: var(--primary); color: var(--primary); }
.like-btn.active { background: #eff6ff; border-color: var(--primary); color: var(--primary); }

.pagination { display: flex; gap: 6px; padding: 16px 18px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 14px; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .ellipsis { border: none; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat-card .num { font-size: 26px; font-weight: 700; }
.stat-card .label { color: var(--muted); font-size: 13px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13.5px; vertical-align: middle; }
.table th { background: #f9fafb; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 8px; color: var(--muted); background: #fff; border: 1px solid var(--border); font-size: 14px; }
.tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

.auth-wrap { max-width: 420px; margin: 40px auto; }
.auth-title { text-align: center; margin-bottom: 20px; }

.user-hero { display: flex; gap: 18px; align-items: center; padding: 22px; }
.user-hero .info h2 { margin: 0 0 4px; }
.muted { color: var(--muted); }
.text-sm { font-size: 13px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap { gap: 10px; }
.wrap { flex-wrap: wrap; }

.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px; }

.notice-item { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; }
.notice-item:last-child { border-bottom: none; }
.notice-item.unread { background: #f8fbff; }

/* Admin */
.admin-body { background: #eef2f7; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #111827; color: #cbd5e1; flex-shrink: 0; }
.admin-sidebar .brand { display: block; padding: 20px; color: #fff; font-size: 18px; border-bottom: 1px solid #1f2937; }
.admin-sidebar nav { padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.admin-sidebar nav a { color: #cbd5e1; padding: 10px 14px; border-radius: 8px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: #1f2937; color: #fff; }
.admin-sidebar .count { background: #dc2626; color: #fff; font-size: 11px; border-radius: 10px; padding: 0 6px; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.admin-content { padding: 24px; }
.admin-content .card { margin-bottom: 20px; }
.admin-login { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #111827; }
.admin-login .card { width: 380px; }

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { order: 2; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .header-search { display: none; }
    .main-nav { gap: 10px; }
}
@media (max-width: 700px) {
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
    .post-stats { display: none; }
    .header-inner { gap: 10px; }
    .main-nav a span.hide-mobile { display: none; }
}

/* Home decoration */
.page-full { padding-top: 24px; }

.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(120deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.25);
}
.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.home-hero::before { width: 320px; height: 320px; right: -80px; top: -120px; }
.home-hero::after { width: 220px; height: 220px; left: -80px; bottom: -120px; background: rgba(255,255,255,0.06); }
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.9fr;
    gap: 32px;
    padding: 42px 44px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 16px;
}
.hero-copy h1 { margin: 0 0 12px; font-size: 38px; line-height: 1.22; letter-spacing: .5px; }
.hero-desc { margin: 0 0 24px; color: rgba(255, 255, 255, 0.86); max-width: 540px; font-size: 15px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-light { background: #fff; color: #1d4ed8; }
.btn-light:hover { background: #eef2ff; color: #1e3a8a; }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.32); }
.btn-ghost:hover { background: rgba(255,255,255,0.24); color: #fff; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 23px; line-height: 1.2; }
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,0.78); }

.hero-art { display: flex; justify-content: flex-end; }
.hero-art-card {
    width: 100%;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(6px);
}
.hero-art-head { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22); }
.hero-art-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.14); color: #fff; }
.hero-art-item:last-child { border-bottom: none; }
.hero-art-no { width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.hero-art-title { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-art-meta { font-size: 12px; color: rgba(255,255,255,0.72); flex-shrink: 0; }
.hero-art-more { display: block; margin-top: 12px; font-size: 13px; color: #fff; text-align: right; opacity: .9; }
.hero-art-empty { font-size: 13px; color: rgba(255,255,255,0.8); padding: 10px 0; }

.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 4px; }
.stat-pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-green { background: #ecfdf5; color: #16a34a; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-orange { background: #fff7ed; color: #ea580c; }
.stat-pill strong { display: block; font-size: 22px; line-height: 1.2; }
.stat-pill span { font-size: 12.5px; color: var(--muted); }

.home-section { margin-top: 28px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0 0 2px; font-size: 20px; }
.section-head p { margin: 0; font-size: 13px; color: var(--muted); }

.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.board-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.board-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,23,42,.1); border-color: #c7d2fe; }
.board-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.board-badge { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.badge-1 { background: #eff6ff; color: #2563eb; }
.badge-2 { background: #ecfdf5; color: #16a34a; }
.badge-3 { background: #fef3c7; color: #b45309; }
.badge-4 { background: #f5f3ff; color: #7c3aed; }
.badge-5 { background: #fce7f3; color: #db2777; }
.board-count { font-size: 12px; color: var(--muted); background: #f3f4f6; border-radius: 999px; padding: 3px 10px; }
.board-card h3 { margin: 0 0 6px; font-size: 16px; }
.board-card p { margin: 0 0 14px; font-size: 13px; color: var(--muted); flex: 1; }
.board-enter { font-size: 13px; color: var(--primary); font-weight: 500; }

.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.featured-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
.featured-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,.09); }
.featured-tag { position: absolute; top: 0; right: 0; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #7c3aed; background: #ede9fe; border-radius: 0 0 0 10px; }
.featured-card h3 { margin: 0 0 8px; font-size: 16px; padding-right: 40px; }
.featured-card p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.featured-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }

.home-layout { margin-top: 28px; }
.tabs.small a { padding: 5px 12px; font-size: 13px; }

.hot-list { display: flex; flex-direction: column; }
.hot-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { background: #fafbff; }
.hot-rank { width: 20px; height: 20px; border-radius: 6px; background: #f3f4f6; color: var(--muted); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-rank.top { background: #eff6ff; color: var(--primary); }
.hot-title { flex: 1; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-meta { font-size: 12px; color: var(--muted); flex-shrink: 0; }

.rank-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.rank-item:last-child { border-bottom: none; }
.rank-no { width: 18px; font-size: 13px; color: var(--muted); }
.rank-no.top { color: var(--primary); }
.rank-name { flex: 1; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-stats { display: flex; gap: 8px; margin: 12px 0; }
.mini-stats div { flex: 1; background: #f8fafc; border-radius: 8px; padding: 8px; text-align: center; }
.mini-stats strong { display: block; font-size: 16px; }
.mini-stats span { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; padding: 30px 24px; }
    .hero-art { justify-content: stretch; }
    .hero-art-card { max-width: none; }
    .hero-copy h1 { font-size: 30px; }
    .home-stats { grid-template-columns: repeat(2, 1fr); }
    .board-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .home-stats { grid-template-columns: 1fr; }
    .board-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 26px; }
    .hero-stats { gap: 20px; }
}

/* Home hero illustration & icon assets */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero-illustration {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 22px 46px rgba(8, 15, 40, 0.4);
}
.hero-float {
    position: absolute;
    left: 0;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(11, 19, 43, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 13px;
    box-shadow: 0 10px 24px rgba(8, 15, 40, 0.3);
}
.hero-float strong { font-size: 15px; }
.hero-float span { color: rgba(255, 255, 255, 0.82); }

.stat-icon-img {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.12));
}

/* Richer board badges */
.board-card { position: relative; overflow: hidden; }
.board-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0));
    pointer-events: none;
}
.board-badge {
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 18px rgba(30, 58, 138, 0.22);
}
.badge-1 { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.badge-2 { background: linear-gradient(135deg, #34d399, #059669); }
.badge-3 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.badge-4 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.badge-5 { background: linear-gradient(135deg, #f472b6, #db2777); }

@media (max-width: 900px) {
    .hero-visual { justify-content: center; margin-top: 4px; }
    .hero-illustration { max-width: 100%; }
    .hero-float { left: 12px; bottom: 12px; }
}

/* Home notice bar */
.home-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #eff6ff, #f5f3ff);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 10px 16px;
    margin-bottom: 18px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.06);
}
.home-notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}
.home-notice p { margin: 0; font-size: 13.5px; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Quick actions */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}
.quick-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.1); border-color: #c7d2fe; }
.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 16px rgba(15, 23, 42, 0.18);
}
.quick-icon svg { width: 22px; height: 22px; }
.qc-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.qc-green { background: linear-gradient(135deg, #34d399, #059669); }
.qc-orange { background: linear-gradient(135deg, #fbbf24, #ea580c); }
.qc-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.quick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.quick-text strong { font-size: 14px; color: var(--text); }
.quick-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-arrow { color: #c7d2fe; font-size: 15px; transition: transform .15s, color .15s; }
.quick-card:hover .quick-arrow { transform: translateX(3px); color: var(--primary); }

/* Board icons & latest */
.board-icon-img {
    width: 52px;
    height: 52px;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.2);
}
.board-latest {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -4px 0 12px;
    padding: 7px 10px;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 9px;
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.board-latest-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }

/* Tag cloud */
.tag-cloud { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tag-cloud-label { font-size: 12.5px; color: var(--muted); }
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 12.5px;
    color: #475569;
    transition: all .15s;
}
.tag-chip:hover { border-color: #c7d2fe; color: var(--primary); background: #eef2ff; }
.tag-chip em { font-style: normal; font-size: 11px; color: #94a3b8; background: #f1f5f9; border-radius: 999px; padding: 0 6px; }

/* Latest replies & new members */
.duo-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.panel-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfdff, #fff);
}
.panel-head h3 { margin: 0; font-size: 15px; }
.reply-feed { list-style: none; margin: 0; padding: 0; }
.reply-feed li {
    display: flex;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
}
.reply-feed li:last-child { border-bottom: none; }
.reply-feed li:hover { background: #fafbff; }
.reply-feed-main { min-width: 0; flex: 1; }
.reply-feed-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reply-feed-title:hover { color: var(--primary); }
.reply-feed-excerpt { margin: 3px 0; font-size: 12.5px; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-feed-meta { font-size: 11.5px; color: #94a3b8; }
.reply-feed-empty { color: var(--muted); font-size: 13px; justify-content: center; }
.member-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 18px; }
.member-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1px solid #f1f5f9;
    background: #fbfdff;
    transition: all .15s;
    min-width: 0;
}
.member-chip:hover { border-color: #c7d2fe; background: #eef2ff; }
.member-chip .avatar { width: 30px; height: 30px; flex-shrink: 0; }
.member-name { flex: 1; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-level { font-size: 10.5px; color: #7c3aed; background: #f5f3ff; border-radius: 999px; padding: 1px 6px; flex-shrink: 0; }

/* Join banner */
.join-banner {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 30px 36px;
    border-radius: 18px;
    background: linear-gradient(120deg, #312e81 0%, #4f46e5 55%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(49, 46, 129, 0.28);
}
.join-banner::before,
.join-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.join-banner::before { width: 220px; height: 220px; right: 80px; top: -120px; }
.join-banner::after { width: 160px; height: 160px; right: -40px; bottom: -90px; }
.join-banner-copy { position: relative; z-index: 1; }
.join-banner-copy h2 { margin: 0 0 6px; font-size: 22px; }
.join-banner-copy p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.82); }
.join-banner-actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 900px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .duo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .quick-grid { grid-template-columns: 1fr; }
    .member-strip { grid-template-columns: 1fr; }
    .join-banner { padding: 24px; }
    .join-banner-copy h2 { font-size: 19px; }
    .home-notice p { white-space: normal; }
}

/* Sidebar board navigation */
.board-nav-card { overflow: hidden; }
.board-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    border-bottom: 1px solid var(--border);
}
.board-nav-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-nav-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, #60a5fa, #4f46e5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px rgba(79, 70, 229, 0.24);
}
.board-nav-title-icon svg { width: 18px; height: 18px; }
.board-nav-title h3 { margin: 0; font-size: 15px; }
.board-nav-title p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.board-nav-count {
    flex-shrink: 0;
    font-size: 11.5px;
    color: #4f46e5;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    padding: 2px 9px;
}
.board-list-rich { display: flex; flex-direction: column; gap: 2px; padding: 6px; }
.board-list-rich .board-item-rich {
    align-items: center;
    gap: 11px;
    padding: 10px;
    border-bottom: none;
    border-radius: 10px;
    transition: background .15s, transform .15s;
}
.board-item-rich:hover { background: #f8faff; transform: translateX(2px); }
.board-nav-icon-img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 5px 12px rgba(30, 58, 138, 0.16);
}
.board-info { min-width: 0; flex: 1; }
.board-info-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-info-top h3 { margin: 0; font-size: 14px; }
.board-post-count {
    flex-shrink: 0;
    font-size: 10.5px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 1px 7px;
}
.board-item-rich p { margin: 2px 0 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sidebar leaderboard */
.rank-card { overflow: hidden; }
.rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 16px 12px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed 65%, #fff);
    border-bottom: 1px solid #ffedd5;
}
.rank-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-head-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 14px rgba(245, 158, 11, 0.28);
}
.rank-head-icon svg { width: 20px; height: 20px; }
.rank-head h3 { margin: 0; font-size: 15px; }
.rank-head p { margin: 1px 0 0; font-size: 12px; color: var(--muted); }
.rank-head-link {
    flex-shrink: 0;
    font-size: 11.5px;
    color: #b45309;
    background: #fef3c7;
    border-radius: 999px;
    padding: 3px 9px;
    transition: background .15s;
}
.rank-head-link:hover { background: #fde68a; color: #92400e; }
.rank-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    padding: 28px 12px 14px;
    background: linear-gradient(180deg, #fffbeb, #fff);
}
.podium-item {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 6px 10px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #fff;
    transition: transform .15s, box-shadow .15s;
}
.podium-item:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1); }
.podium-1 {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffdf5, #fff);
    transform: translateY(-10px);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.14);
}
.podium-1:hover { transform: translateY(-13px); }
.podium-2 { border-color: #e2e8f0; background: linear-gradient(180deg, #f8fafc, #fff); }
.podium-3 { border-color: #fed7aa; background: linear-gradient(180deg, #fffaf5, #fff); }
.podium-rank {
    position: absolute;
    top: 6px;
    left: 7px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #94a3b8;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.14);
}
.podium-1 .podium-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.podium-2 .podium-rank { background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.podium-3 .podium-rank { background: linear-gradient(135deg, #fdba74, #f97316); }
.podium-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
    background: #e5e7eb;
}
.podium-1 .podium-avatar { width: 48px; height: 48px; border-color: #fde68a; }
.podium-name { max-width: 100%; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-points { font-size: 10.5px; color: #b45309; background: #fef3c7; border-radius: 999px; padding: 1px 7px; }
.podium-crown {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    color: #f59e0b;
    filter: drop-shadow(0 2px 3px rgba(245, 158, 11, 0.4));
}
.podium-crown svg { width: 22px; height: 22px; display: block; }
.rank-list { padding: 6px; border-top: 1px solid #f1f5f9; }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; transition: background .15s; }
.rank-row:hover { background: #fafbff; }
.rank-badge {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
}
.rank-user { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rank-user strong { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-user small { font-size: 10.5px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-points { flex-shrink: 0; font-size: 12px; font-weight: 600; color: #b45309; }
.rank-points small { font-size: 10px; font-weight: 400; color: #94a3b8; margin-left: 1px; }

@media (max-width: 560px) {
    .rank-podium { padding-left: 8px; padding-right: 8px; gap: 4px; }
    .podium-item { padding-left: 4px; padding-right: 4px; }
    .podium-name { font-size: 11px; }
}

/* Mobile refinements */
.mobile-tabbar { display: none; }

@media (max-width: 700px) {
    body { padding-bottom: 66px; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .header-inner { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 8px 10px; }
    .brand { font-size: 18px; }
    .main-nav { display: none; }
    .header-search { display: none; }
    .header-user { margin-left: auto; gap: 8px; }
    .site-footer { padding: 22px 12px 30px; }

    .mobile-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 150;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
        padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
    }
    .mtab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        padding: 4px 0 2px;
        font-size: 10.5px;
        color: #94a3b8;
        transition: color .15s;
    }
    .mtab svg { width: 22px; height: 22px; }
    .mtab.active { color: var(--primary); font-weight: 600; }
    .mtab-icon-wrap { position: relative; display: flex; }
    .mtab-dot {
        position: absolute;
        top: -2px;
        right: -3px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ef4444;
        border: 1.5px solid #fff;
    }
    .mtab-post { justify-content: flex-end; }
    .mtab-post-icon {
        width: 42px;
        height: 42px;
        margin-top: -20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: linear-gradient(135deg, #3b82f6, #4f46e5);
        border: 3px solid #fff;
        box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    }
    .mtab-post-icon svg { width: 20px; height: 20px; }

    .container { padding: 0 12px; }
    .page-full { padding-top: 14px; }
    .card { border-radius: 12px; }
}

@media (max-width: 560px) {
    .header-user .dropdown .text-sm { display: none; }
    .header-user > .text-sm { font-size: 12px; }

    .home-hero { border-radius: 16px; }
    .hero-inner { padding: 22px 16px; gap: 18px; }
    .hero-eyebrow { font-size: 12px; margin-bottom: 10px; }
    .hero-copy h1 { font-size: 24px; line-height: 1.28; margin-bottom: 8px; }
    .hero-desc { font-size: 13.5px; margin-bottom: 18px; }
    .hero-actions { gap: 8px; margin-bottom: 18px; }
    .hero-actions .btn { flex: 1 1 40%; padding: 8px 10px; font-size: 13px; }
    .hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
    .hero-stats strong { font-size: 19px; }
    .hero-stats span { font-size: 11.5px; }
    .hero-float { left: 10px; bottom: 10px; padding: 6px 12px; font-size: 11.5px; }
    .hero-float strong { font-size: 13px; }

    .home-notice { padding: 9px 12px; gap: 8px; border-radius: 12px; }
    .home-notice-badge { font-size: 11px; padding: 3px 8px; }
    .home-notice p { font-size: 12.5px; }

    .home-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-pill { padding: 12px; gap: 9px; border-radius: 12px; }
    .stat-icon-img { width: 36px; height: 36px; }
    .stat-pill strong { font-size: 18px; }
    .stat-pill span { font-size: 11px; }

    .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .quick-card { padding: 10px; gap: 9px; border-radius: 12px; }
    .quick-icon { width: 36px; height: 36px; border-radius: 10px; }
    .quick-icon svg { width: 18px; height: 18px; }
    .quick-text strong { font-size: 12.5px; }
    .quick-text small, .quick-arrow { display: none; }

    .home-section { margin-top: 22px; }
    .section-head { margin-bottom: 10px; }
    .section-head h2 { font-size: 18px; }
    .section-head p { font-size: 12px; }
    .board-grid { gap: 12px; }
    .board-card { padding: 15px; }
    .board-icon-img { width: 46px; height: 46px; }
    .board-card h3 { font-size: 15px; }
    .tag-cloud { gap: 8px; }
    .join-banner { padding: 22px 18px; gap: 16px; }
    .join-banner-actions { width: 100%; }
    .join-banner-actions .btn { flex: 1; }

    .post-item { padding: 14px; gap: 10px; }
    .post-item .avatar-md { width: 38px; height: 38px; }
    .post-title { font-size: 14.5px; }
    .post-meta { gap: 8px; font-size: 11.5px; }
    .post-excerpt { font-size: 12.5px; }
    .card-header { padding: 12px 14px; }
    .card-body { padding: 14px; }
    .pagination { justify-content: center; padding: 14px; }
    .reply-item { padding: 14px; gap: 10px; }
    .reply-head { gap: 6px; }
    .rich-content { font-size: 14.5px; }

    .user-hero { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .user-hero .avatar-lg { width: 60px; height: 60px; }
    .user-hero .info { flex: 1 1 180px; }
    .user-hero .btn { flex: 0 0 100%; }

    .auth-wrap { margin: 20px auto; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row > * { flex: 1 1 100%; width: 100%; }
    .tabs a { font-size: 13px; padding: 6px 12px; }
    .table th, .table td { padding: 9px 10px; font-size: 12.5px; }
}

@media (max-width: 560px) {
    .page-title { font-size: 20px; }
    .btn { padding: 8px 14px; }
    .btn-sm { padding: 5px 10px; }
    .flex-between.wrap { align-items: flex-start; }
    .flex-between.wrap .btn { flex-shrink: 0; }
}

@media (max-width: 700px) {
    .admin-content { padding: 14px; }
    .admin-topbar { padding: 12px 14px; gap: 10px; }
    .admin-sidebar .brand { padding: 14px 16px; font-size: 16px; }
    .admin-sidebar nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 8px;
    }
    .admin-sidebar nav a { white-space: nowrap; padding: 7px 12px; font-size: 13px; }
    .admin-login .card { width: calc(100% - 32px); }
}
@media (max-width: 560px) {
    .admin-content { padding: 12px; }
    .stat-card { padding: 14px; }
    .stat-card .num { font-size: 22px; }
}

/* Hot page */
.main-nav a.active { color: var(--primary); }

.hot-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(120deg, #7c2d12 0%, #dc2626 48%, #db2777 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(190, 24, 93, 0.24);
}
.hot-hero::before,
.hot-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.hot-hero::before { width: 300px; height: 300px; right: -90px; top: -130px; }
.hot-hero::after { width: 200px; height: 200px; left: -70px; bottom: -110px; }
.hot-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 40px 44px;
}
.hot-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    margin-bottom: 14px;
}
.hot-hero h1 { margin: 0 0 10px; font-size: 36px; line-height: 1.2; }
.hot-hero p { margin: 0 0 22px; max-width: 560px; font-size: 14.5px; color: rgba(255, 255, 255, 0.86); }
.hot-hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hot-hero-stats div { display: flex; flex-direction: column; }
.hot-hero-stats strong { font-size: 22px; line-height: 1.2; }
.hot-hero-stats span { font-size: 12px; color: rgba(255, 255, 255, 0.78); }
.hot-hero-art {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.hot-hero-art svg { width: 86px; height: 86px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.24)); }
.hot-hero-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08);
}

.hot-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; margin-top: 24px; align-items: start; }
.hot-main { min-width: 0; }
.hot-side { display: flex; flex-direction: column; gap: 16px; }
.hot-main-head { margin-bottom: 12px; }
.hot-rank-card { overflow: hidden; }
.hot-rank-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff7ed, #fff);
    font-weight: 600;
}
.hot-rank-count { font-size: 12px; font-weight: 400; color: var(--muted); }
.hot-post-list { display: flex; flex-direction: column; }
.hot-post-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.hot-post-item:last-child { border-bottom: none; }
.hot-post-item:hover { background: #fffaf5; }
.hot-post-item.hot-top { background: linear-gradient(90deg, #fffbf2, #fff); }
.hot-post-item.hot-top-1 { background: linear-gradient(90deg, #fffbeb, #fff); }
.hot-post-rank {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
}
.hot-post-rank.rank-1 { color: #fff; background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3); }
.hot-post-rank.rank-2 { color: #fff; background: linear-gradient(135deg, #cbd5e1, #94a3b8); }
.hot-post-rank.rank-3 { color: #fff; background: linear-gradient(135deg, #fdba74, #f97316); }
.hot-post-body { flex: 1; min-width: 0; }
.hot-post-title { margin: 0 0 6px; font-size: 15.5px; line-height: 1.45; color: var(--text); }
.hot-post-item:hover .hot-post-title { color: var(--primary); }
.hot-post-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.hot-post-meta .avatar-sm { width: 24px; height: 24px; }
.hot-post-board { color: #b45309; }
.hot-post-excerpt {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hot-post-heat { flex-shrink: 0; min-width: 86px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.hot-post-heat strong { font-size: 20px; line-height: 1.2; color: #ea580c; }
.hot-post-heat span { font-size: 11px; color: #fb923c; }
.hot-post-heat em { margin-top: 4px; font-style: normal; font-size: 11px; color: var(--muted); }

.hot-side-card { overflow: hidden; }
.hot-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff7ed, #fff);
}
.hot-side-head h3 { margin: 0; font-size: 15px; }
.hot-side-head a { font-size: 12px; }
.hot-board-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.hot-board-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; transition: background .15s; }
.hot-board-row:hover { background: #fffaf5; }
.hot-board-row img { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: block; box-shadow: 0 5px 12px rgba(30, 58, 138, 0.16); }
.hot-board-info { flex: 1; min-width: 0; }
.hot-board-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hot-board-line strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-board-line span { flex-shrink: 0; font-size: 11px; color: var(--muted); }
.hot-board-bar { margin-top: 6px; height: 5px; border-radius: 999px; background: #f1f5f9; overflow: hidden; }
.hot-board-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #fb923c, #ef4444); }
.hot-side-card .rank-list { border-top: none; }
.hot-cta {
    padding: 22px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fb923c, #e11d48);
    color: #fff;
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.22);
}
.hot-cta h3 { margin: 0 0 6px; font-size: 16px; }
.hot-cta p { margin: 0 0 14px; font-size: 12.5px; color: rgba(255, 255, 255, 0.86); }
.hot-cta .btn { width: 100%; }

@media (max-width: 900px) {
    .hot-hero-inner { padding: 30px 24px; }
    .hot-hero h1 { font-size: 30px; }
    .hot-hero-art { width: 110px; height: 110px; opacity: .9; }
    .hot-layout { grid-template-columns: 1fr; }
    .hot-side { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
    .hot-cta { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .hot-hero { border-radius: 16px; }
    .hot-hero-inner { padding: 22px 16px; gap: 10px; }
    .hot-hero-art { display: none; }
    .hot-hero h1 { font-size: 24px; }
    .hot-hero p { font-size: 13px; margin-bottom: 16px; }
    .hot-hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
    .hot-hero-stats strong { font-size: 18px; }
    .hot-layout { margin-top: 18px; gap: 14px; }
    .hot-side { grid-template-columns: 1fr; }
    .hot-post-item { padding: 13px 12px; gap: 10px; }
    .hot-post-rank { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
    .hot-post-title { font-size: 14px; }
    .hot-post-excerpt { font-size: 12px; }
    .hot-post-heat { min-width: 54px; }
    .hot-post-heat strong { font-size: 16px; }
    .hot-post-heat em { display: none; }
    .hot-rank-head { padding: 12px 14px; }
}
