/* ------------------------------------
 * JikeGame Theme
 *
 * @package JikeGame
 * @author  Codex
 * @version 1.0.0
 * --------------------------------- */

:root {
    --jg-bg: #f8f9fd;
    --jg-surface: #ffffff;
    --jg-surface-soft: #f1f4f8;
    --jg-surface-muted: #e9edf3;
    --jg-border: #dfe5ec;
    --jg-border-strong: #cfd7e1;
    --jg-text: #191c1f;
    --jg-text-soft: #56616f;
    --jg-text-faint: #7b8794;
    --jg-green: #18a058;
    --jg-green-dark: #158c4d;
    --jg-blue: #1e88e5;
    --jg-gold: #f0a020;
    --jg-red: #e44c4c;
    --jg-shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
    --jg-shadow-md: 0 16px 40px rgba(15, 23, 42, 0.1);
    --jg-radius-sm: 12px;
    --jg-radius-md: 18px;
    --jg-radius-lg: 24px;
    --jg-container: 1440px;
    --jg-font-title: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --jg-font-body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

body.jg-body {
    margin: 0;
    min-width: 320px;
    background: var(--jg-bg);
    color: var(--jg-text);
    font: 16px/1.65 var(--jg-font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea {
    font: inherit;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.jg-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.jg-container {
    width: min(var(--jg-container), calc(100% - 32px));
    margin: 0 auto;
}

.jg-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(223, 229, 236, 0.92);
    background: rgba(248, 249, 253, 0.94);
    backdrop-filter: blur(14px);
}

.jg-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 14px 0;
}

.jg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.jg-brand-icon {
    color: var(--jg-green);
    font-size: 34px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.jg-brand-text {
    color: var(--jg-green);
    font: 700 30px/1 var(--jg-font-title);
    letter-spacing: -0.02em;
}

.jg-topnav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.jg-topnav a {
    position: relative;
    padding: 8px 0;
    color: var(--jg-text);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.jg-topnav a:hover,
.jg-topnav a.is-active {
    color: var(--jg-green);
}

.jg-topnav a.is-active::after,
.jg-topnav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--jg-green);
}

.jg-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jg-search {
    position: relative;
    width: 260px;
}

.jg-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #9aa4af;
    font-size: 20px;
    pointer-events: none;
}

.jg-search input {
    width: 100%;
    height: 40px;
    padding: 0 16px 0 44px;
    border: 1px solid var(--jg-border);
    border-radius: 999px;
    background: #fff;
    color: var(--jg-text);
    box-shadow: var(--jg-shadow-sm);
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jg-search input:focus {
    border-color: rgba(24, 160, 88, 0.72);
    box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.12);
}

.jg-icon-button,
.jg-outline-button,
.jg-solid-button,
.jg-glass-button,
.jg-mini-download,
.jg-rank-download,
.jg-save {
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jg-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: #52606d;
}

.jg-icon-button:hover {
    background: #eef2f7;
    color: var(--jg-green);
}

.jg-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--jg-border-strong);
    border-radius: 999px;
    color: var(--jg-text);
    font-size: 14px;
    font-weight: 600;
}

.jg-outline-button:hover {
    border-color: var(--jg-green);
    color: var(--jg-green);
}

.jg-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--jg-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.jg-save:hover {
    background: var(--jg-green-dark);
}

.jg-home-main {
    padding: 32px 0 72px;
}

.jg-home-section {
    margin-top: 64px;
}

.jg-home-section-tight {
    margin-top: 22px;
}

.jg-hero {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    border-radius: var(--jg-radius-lg);
    background: linear-gradient(135deg, #152334 0%, #20324b 48%, #172a3d 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: var(--jg-shadow-md);
}

.jg-hero-fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(30, 136, 229, 0.28), transparent 36%),
        radial-gradient(circle at right center, rgba(24, 160, 88, 0.22), transparent 32%),
        linear-gradient(135deg, #17202d 0%, #243448 52%, #0f1622 100%);
}

.jg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 58%, rgba(0, 0, 0, 0.08) 100%);
}

.jg-hero-bottom {
    position: absolute;
    inset: auto 0 0;
    height: 160px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.52));
}

.jg-hero-card {
    position: absolute;
    left: 48px;
    bottom: 48px;
    z-index: 1;
    max-width: 680px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--jg-radius-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    color: #fff;
}

.jg-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.jg-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.jg-badge-primary {
    background: var(--jg-green);
    color: #fff;
}

.jg-badge-glass {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
}

.jg-hero h1 {
    margin: 0;
    font: 700 48px/1.15 var(--jg-font-title);
    letter-spacing: -0.03em;
}

.jg-hero p {
    margin: 18px 0 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.8;
}

.jg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.jg-solid-button,
.jg-glass-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
}

.jg-solid-button {
    background: var(--jg-green);
    color: #fff;
    box-shadow: 0 12px 28px rgba(24, 160, 88, 0.28);
}

.jg-solid-button:hover {
    background: var(--jg-green-dark);
    transform: translateY(-1px);
}

.jg-glass-button {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.jg-glass-button:hover {
    background: rgba(255, 255, 255, 0.16);
}

.jg-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.jg-section-head h2,
.jg-section-title-with-icon {
    margin: 0;
    color: var(--jg-text);
    font: 700 32px/1.2 var(--jg-font-title);
    letter-spacing: -0.025em;
}

.jg-section-head p {
    margin: 8px 0 0;
    color: var(--jg-text-soft);
    font-size: 15px;
}

.jg-section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--jg-green);
    font-size: 15px;
    font-weight: 700;
}

.jg-section-link:hover {
    color: var(--jg-green-dark);
}

.jg-section-link .material-symbols-outlined {
    font-size: 18px;
}

.jg-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.jg-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.jg-category-card,
.jg-topic-card {
    display: block;
    padding: 20px;
    border: 1px solid var(--jg-border);
    border-radius: var(--jg-radius-md);
    background: var(--jg-surface);
    box-shadow: var(--jg-shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.jg-category-card:hover,
.jg-topic-card:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 160, 88, 0.24);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.jg-category-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.jg-category-card-top strong {
    color: var(--jg-text);
    font: 700 18px/1.35 var(--jg-font-title);
}

.jg-category-card-top span {
    color: var(--jg-green);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.jg-category-card p,
.jg-topic-card p {
    margin: 12px 0 0;
    color: var(--jg-text-soft);
    font-size: 14px;
}

.jg-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.jg-topic-card {
    position: relative;
    min-height: 220px;
}

.jg-topic-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(30, 136, 229, 0.1);
    color: var(--jg-blue);
    font-size: 12px;
    font-weight: 700;
}

.jg-topic-card h3 {
    margin: 18px 0 0;
}

.jg-topic-card h3 a {
    color: var(--jg-text);
    font: 700 22px/1.35 var(--jg-font-title);
}

.jg-topic-card h3 a:hover {
    color: var(--jg-green);
}

.jg-topic-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    color: var(--jg-text-faint);
    font-size: 13px;
}

.jg-game-card,
.jg-rank-card,
.jg-latest-card,
.jg-panel {
    border: 1px solid var(--jg-border);
    border-radius: var(--jg-radius-md);
    background: var(--jg-surface);
    box-shadow: var(--jg-shadow-sm);
}

.jg-game-card {
    overflow: hidden;
}

.jg-game-card:hover,
.jg-rank-card:hover,
.jg-latest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.jg-game-thumb,
.jg-rank-cover,
.jg-latest-thumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #dfe8f6, #eef4fb);
}

.jg-game-thumb {
    display: block;
    aspect-ratio: 16 / 9;
}

.jg-rank-cover {
    width: 78px;
    height: 78px;
    border-radius: 16px;
    flex: 0 0 78px;
}

.jg-latest-thumb {
    display: block;
    width: 240px;
    flex: 0 0 240px;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
}

.jg-game-thumb img,
.jg-rank-cover img,
.jg-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jg-game-card:hover img,
.jg-rank-card:hover img,
.jg-latest-card:hover img {
    transform: scale(1.04);
}

.jg-thumb-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(25, 28, 31, 0.48);
    font: 700 18px/1 var(--jg-font-title);
    letter-spacing: 0.18em;
}

.jg-score-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 26px;
}

.jg-score-badge .material-symbols-outlined {
    font-size: 13px;
    color: var(--jg-gold);
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.jg-card-badges {
    position: absolute;
    inset: 12px 12px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jg-flag-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--jg-red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.jg-game-card-body {
    padding: 16px;
}

.jg-game-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.jg-game-card h3,
.jg-rank-card h3,
.jg-latest-card h3,
.jg-content h2,
.jg-form h2 {
    margin: 0;
}

.jg-game-card h3 a,
.jg-rank-card h3 a,
.jg-latest-card h3 a {
    color: var(--jg-text);
    font: 700 18px/1.35 var(--jg-font-title);
}

.jg-game-card h3 a:hover,
.jg-rank-card h3 a:hover,
.jg-latest-card h3 a:hover {
    color: var(--jg-green);
}

.jg-mini-download {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--jg-green);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.jg-mini-download:hover,
.jg-rank-download:hover {
    background: var(--jg-green-dark);
}

.jg-mini-download .material-symbols-outlined,
.jg-rank-download .material-symbols-outlined {
    font-size: 17px;
}

.jg-game-meta,
.jg-latest-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--jg-text-faint);
    font-size: 13px;
}

.jg-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--jg-border-strong);
}

.jg-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.jg-pill-group a,
.jg-pill-group span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid var(--jg-border);
    border-radius: 999px;
    background: var(--jg-surface-soft);
    color: var(--jg-text-soft);
    font-size: 12px;
    font-weight: 600;
}

.jg-rank-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.jg-rank-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
}

.jg-rank-num {
    width: 30px;
    flex: 0 0 30px;
    text-align: center;
    color: var(--jg-red);
    font: 700 32px/1 var(--jg-font-title);
}

.jg-rank-card:nth-child(2) .jg-rank-num {
    color: var(--jg-gold);
}

.jg-rank-card:nth-child(3) .jg-rank-num {
    color: var(--jg-green);
}

.jg-rank-body {
    min-width: 0;
    flex: 1;
}

.jg-rank-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--jg-text-faint);
    font-size: 14px;
}

.jg-rank-meta .material-symbols-outlined {
    font-size: 16px;
}

.jg-rank-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(24, 160, 88, 0.12);
    color: var(--jg-green);
    flex: 0 0 44px;
}

.jg-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 8px;
    border-radius: 14px;
    background: rgba(228, 76, 76, 0.1);
    color: var(--jg-red);
    vertical-align: middle;
}

.jg-title-icon .material-symbols-outlined {
    font-size: 24px;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.jg-title-icon-blue {
    background: rgba(30, 136, 229, 0.1);
    color: var(--jg-blue);
}

.jg-latest-grid {
    display: grid;
    gap: 18px;
}

.jg-latest-card {
    display: flex;
    gap: 20px;
    padding: 18px;
}

.jg-latest-body {
    min-width: 0;
    flex: 1;
}

.jg-latest-body p {
    margin: 12px 0 0;
    color: var(--jg-text-soft);
    font-size: 15px;
}

.jg-pagination-wrap {
    margin-top: 28px;
}

.jg-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-navigator {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.page-navigator li {
    list-style: none;
}

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--jg-border);
    border-radius: 12px;
    background: #fff;
    color: var(--jg-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.page-navigator a:hover {
    border-color: var(--jg-green);
    color: var(--jg-green);
}

.page-navigator .current a,
.page-navigator .current span {
    border-color: var(--jg-green);
    background: var(--jg-green);
    color: #fff;
}

.jg-pagination a,
.jg-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--jg-border);
    border-radius: 12px;
    background: #fff;
    color: var(--jg-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.jg-pagination a:hover {
    border-color: var(--jg-green);
    color: var(--jg-green);
}

.jg-pagination .is-current span,
.jg-pagination .current span {
    border-color: var(--jg-green);
    background: var(--jg-green);
    color: #fff;
}

.jg-site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--jg-border);
    background: #eaecef;
}

.jg-site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 36px 0;
}

.jg-site-footer-brand {
    color: var(--jg-green);
    font: 700 28px/1 var(--jg-font-title);
    letter-spacing: -0.02em;
}

.jg-site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.jg-site-footer-links a {
    color: var(--jg-text-soft);
    font-size: 14px;
    font-weight: 600;
}

.jg-site-footer-links a:hover {
    color: var(--jg-green);
}

.jg-site-footer-copy {
    color: var(--jg-text-faint);
    font-size: 13px;
    text-align: right;
}

.jg-empty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 32px;
    border: 1px dashed var(--jg-border-strong);
    border-radius: var(--jg-radius-md);
    background: rgba(255, 255, 255, 0.65);
    color: var(--jg-text-soft);
    text-align: center;
}

.jg-detail-main {
    padding-bottom: 48px;
}

.jg-detail-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #152334 0%, #20324b 48%, #172a3d 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.jg-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 249, 253, 0.04) 0%, rgba(248, 249, 253, 0.28) 50%, rgba(248, 249, 253, 1) 100%);
}

.jg-detail-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 48px;
}

.jg-detail-hero-copy {
    max-width: 760px;
}

.jg-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.jg-detail-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(24, 160, 88, 0.14);
    background: rgba(24, 160, 88, 0.1);
    color: var(--jg-green);
    font-size: 13px;
    font-weight: 700;
}

.jg-detail-pill-soft {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(223, 229, 236, 0.88);
    color: var(--jg-text);
}

.jg-detail-hero-copy h1,
.jg-page-hero-card h1 {
    margin: 0;
    color: var(--jg-text);
    font: 700 58px/1.08 var(--jg-font-title);
    letter-spacing: -0.03em;
}

.jg-detail-hero-copy p,
.jg-page-hero-card p {
    margin: 18px 0 0;
    max-width: 680px;
    color: var(--jg-text-soft);
    font-size: 19px;
    line-height: 1.8;
}

.jg-download-card {
    width: min(360px, 100%);
    flex: 0 0 360px;
    padding: 24px;
    border: 1px solid var(--jg-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--jg-shadow-sm);
}

.jg-download-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--jg-border);
}

.jg-download-card-head span,
.jg-download-card-meta span {
    display: block;
    color: var(--jg-text-faint);
    font-size: 12px;
    font-weight: 600;
}

.jg-download-card-head strong,
.jg-download-card-meta strong {
    display: block;
    margin-top: 6px;
    color: var(--jg-text);
    font: 700 24px/1.25 var(--jg-font-title);
}

.jg-download-card-meta {
    text-align: right;
}

.jg-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border-radius: 14px;
    background: var(--jg-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(24, 160, 88, 0.2);
}

.jg-download-button:hover {
    background: var(--jg-green-dark);
}

.jg-download-note {
    margin: 16px 0 0;
    color: var(--jg-text-faint);
    font-size: 13px;
    line-height: 1.75;
    text-align: center;
}

.jg-download-note .material-symbols-outlined {
    position: relative;
    top: 3px;
    margin-right: 4px;
    font-size: 16px;
}

.jg-detail-shell {
    display: grid;
    gap: 28px;
    margin-top: 28px;
}

.jg-detail-section {
    padding: 32px;
    border: 1px solid var(--jg-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--jg-shadow-sm);
}

.jg-detail-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--jg-border);
    color: var(--jg-text);
    font: 700 30px/1.25 var(--jg-font-title);
}

.jg-detail-section h2 .material-symbols-outlined {
    color: var(--jg-green);
}

.jg-detail-article {
    color: var(--jg-text-soft);
}

.jg-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.jg-spec-card {
    position: relative;
    padding: 24px;
    border: 1px solid var(--jg-border);
    border-radius: 18px;
    background: #fafbfc;
}

.jg-spec-card.is-recommend {
    border-color: rgba(24, 160, 88, 0.24);
    background: #f3fbf6;
}

.jg-spec-tag {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 0 18px 0 14px;
    background: var(--jg-green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.jg-spec-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--jg-text);
    font: 700 20px/1.35 var(--jg-font-title);
}

.jg-spec-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--jg-gold);
}

.jg-spec-card.is-recommend .jg-spec-dot {
    background: var(--jg-green);
}

.jg-spec-list {
    display: grid;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.jg-spec-list li span {
    display: block;
    color: var(--jg-text-faint);
    font-size: 12px;
    font-weight: 600;
}

.jg-spec-list li strong {
    display: block;
    margin-top: 6px;
    color: var(--jg-text);
    font-size: 16px;
    font-weight: 600;
}

.jg-home-section-detail {
    margin-top: 0;
}

.jg-page-hero {
    padding-top: 28px;
}

.jg-page-hero-card {
    padding: 40px;
    border: 1px solid var(--jg-border);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fc 100%);
    box-shadow: var(--jg-shadow-sm);
}

/* 通用内容页兼容 */
.jg-panel {
    width: min(var(--jg-container), calc(100% - 32px));
    margin: 32px auto 0;
    padding: 28px;
}

.jg-content,
.jg-form {
    max-width: 920px;
}

.jg-content h2,
.jg-form h2 {
    margin-bottom: 16px;
    color: var(--jg-text);
    font: 700 30px/1.25 var(--jg-font-title);
}

.jg-content p,
.jg-form p,
.jg-post-meta {
    color: var(--jg-text-soft);
}

.jg-post-meta {
    margin-bottom: 18px;
    font-size: 14px;
}

.jg-field {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 18px;
}

.jg-field label {
    padding-top: 10px;
    color: var(--jg-text-soft);
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.jg-input,
.jg-textarea {
    width: 100%;
    border: 1px solid var(--jg-border);
    border-radius: 14px;
    background: #fff;
    color: var(--jg-text);
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jg-input {
    min-height: 44px;
    padding: 0 14px;
}

.jg-textarea {
    min-height: 120px;
    padding: 12px 14px;
    resize: vertical;
}

.jg-input:focus,
.jg-textarea:focus {
    border-color: rgba(24, 160, 88, 0.72);
    box-shadow: 0 0 0 4px rgba(24, 160, 88, 0.12);
}

.post-content,
.page-content {
    color: var(--jg-text);
}

.post-content img,
.page-content img {
    border-radius: 16px;
    max-width: 100% !important;
    height: auto !important;
}

.post-content figure,
.page-content figure,
.post-content video,
.page-content video,
.post-content iframe,
.page-content iframe,
.post-content embed,
.page-content embed {
    max-width: 100% !important;
}

.post-content iframe,
.page-content iframe {
    width: 100% !important;
}

.post-content h2,
.post-content h3,
.post-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 1.4em 0 0.7em;
    color: var(--jg-text);
    font-family: var(--jg-font-title);
}

.post-content p,
.page-content p {
    margin: 0 0 1em;
}

.post-content pre,
.page-content pre,
.post-content code,
.page-content code {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.post-content pre,
.page-content pre {
    padding: 16px;
    border-radius: 16px;
    background: #111827;
    color: #f3f4f6;
    overflow: auto;
}

.post-content code,
.page-content code {
    padding: 2px 6px;
    border-radius: 8px;
    background: #eef2f7;
    color: #b42318;
}

.post-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--jg-border);
    border-radius: 16px;
    display: block;
    overflow-x: auto;
}

.post-content th,
.post-content td,
.page-content th,
.page-content td {
    padding: 12px 14px;
    border: 1px solid var(--jg-border);
}

.post-content th,
.page-content th {
    background: var(--jg-surface-soft);
}

.jg-post-list {
    display: grid;
    gap: 14px;
}

.jg-post-item {
    padding: 18px;
    border: 1px solid var(--jg-border);
    border-radius: 16px;
    background: #fff;
}

.jg-post-item h3 {
    margin: 0 0 8px;
    color: var(--jg-text);
    font: 700 18px/1.35 var(--jg-font-title);
}

@media (max-width: 1280px) {
    .jg-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jg-rank-grid {
        grid-template-columns: 1fr;
    }

    .jg-category-grid,
    .jg-topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .jg-topbar-inner {
        flex-wrap: wrap;
    }

    .jg-topnav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .jg-topbar-actions {
        margin-left: auto;
    }
}

@media (max-width: 960px) {
    .jg-search {
        display: none;
    }

    .jg-hero {
        min-height: 460px;
    }

    .jg-hero-card {
        left: 24px;
        right: 24px;
        bottom: 24px;
        max-width: none;
        padding: 24px;
    }

    .jg-hero h1 {
        font-size: 38px;
    }

    .jg-latest-card {
        flex-direction: column;
    }

    .jg-latest-thumb {
        width: 100%;
        flex-basis: auto;
    }

    .jg-detail-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .jg-download-card {
        width: 100%;
        flex-basis: auto;
    }

    .jg-detail-hero-copy h1,
    .jg-page-hero-card h1 {
        font-size: 44px;
    }

    .jg-spec-grid {
        grid-template-columns: 1fr;
    }

    .jg-site-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .jg-site-footer-copy {
        text-align: center;
    }
}

@media (max-width: 720px) {
    .jg-container {
        width: calc(100% - 20px);
    }

    .jg-topbar-inner {
        min-height: auto;
        padding: 12px 0;
    }

    .jg-brand-text {
        font-size: 24px;
    }

    .jg-topbar-actions {
        gap: 8px;
    }

    .jg-outline-button {
        display: none;
    }

    .jg-home-main {
        padding-top: 20px;
    }

    .jg-hero {
        min-height: 420px;
        border-radius: 20px;
    }

    .jg-hero-card {
        padding: 18px;
    }

    .jg-hero h1 {
        font-size: 30px;
    }

    .jg-hero p {
        font-size: 15px;
    }

    .jg-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .jg-section-head h2,
    .jg-section-title-with-icon,
    .jg-content h2,
    .jg-form h2 {
        font-size: 26px;
    }

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

    .jg-category-grid,
    .jg-topic-grid {
        grid-template-columns: 1fr;
    }

    .jg-field {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jg-field label {
        padding-top: 0;
        text-align: left;
    }

    .jg-detail-hero {
        min-height: 520px;
    }

    .jg-detail-hero-inner {
        padding-bottom: 28px;
    }

    .jg-detail-section,
    .jg-page-hero-card {
        padding: 24px 18px;
    }

    .jg-detail-section h2 {
        font-size: 24px;
    }

    .jg-detail-hero-copy h1,
    .jg-page-hero-card h1 {
        font-size: 34px;
    }

    .jg-detail-hero-copy p,
    .jg-page-hero-card p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
