/* ==========================================================
   Noctis · 玄夜
   ========================================================== */

:root {
    color-scheme: dark;
    --bg: #08090b;
    --glass: rgba(18, 21, 26, 0.62);
    --glass-light: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #e9ebee;
    --text-soft: #c3c8cf;
    --muted: #8b929c;
    --muted-2: #6f7680;
    --gold: #d8b06a;
    --gold-soft: #e8cb94;
    --gold-deep: #a97f3f;
    --red: #b6513c;
    --radius: 20px;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 22px 46px rgba(0, 0, 0, 0.42);
    --shadow-hover: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 56px rgba(0, 0, 0, 0.55);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(1000px 620px at 82% -10%, rgba(216, 176, 106, 0.10), transparent 62%),
        radial-gradient(840px 560px at -12% 8%, rgba(95, 157, 120, 0.07), transparent 60%),
        radial-gradient(760px 480px at 50% 110%, rgba(182, 81, 60, 0.05), transparent 62%),
        radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: auto, auto, auto, 30px 30px;
    color: var(--text-soft);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    background: var(--gold);
    color: #14100a;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #08090b;
}

::-webkit-scrollbar-thumb {
    background: #262b32;
    border: 2px solid #08090b;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #363c45;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin-top: 0;
}

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

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 880px;
}

.container-wide {
    max-width: 1280px;
}

.section {
    padding: 64px 0 24px;
}

.site-main {
    min-height: 50vh;
}

/* ---------- 顶部导航 ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 11, 14, 0.58);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    backdrop-filter: blur(22px) saturate(1.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 176, 106, 0.45), transparent);
    pointer-events: none;
}

.site-header.is-scrolled {
    background: rgba(8, 9, 11, 0.78);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 60px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 10px 20px rgba(0, 0, 0, 0.35);
}

.brand-mark svg {
    display: block;
    width: 23px;
    height: 23px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.brand-name {
    max-width: 260px;
    overflow: hidden;
    color: #f2f3f5;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: 7px 14px;
    color: #8b929c;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #e6e8eb;
}

.nav-link:hover::after {
    width: 10px;
}

.nav-link.is-active {
    color: #f2f3f5;
}

.nav-link.is-active::after {
    width: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--glass-light);
    color: #aeb4bd;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn svg {
    display: block;
    width: 17px;
    height: 17px;
}

.icon-btn:hover {
    border-color: rgba(216, 176, 106, 0.35);
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}

.icon-btn:active {
    transform: translateY(1px);
}

.nav-toggle {
    display: none;
}

.search-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
}

.search-panel.is-open {
    max-height: 130px;
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 14px 0 18px;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input:focus {
    border-color: rgba(216, 176, 106, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(216, 176, 106, 0.10);
}

.search-form input::placeholder {
    color: #6f7680;
}

/* ---------- 移动端菜单 ---------- */

.mobile-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 18px 0 26px;
    background: rgba(9, 10, 13, 0.94);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    backdrop-filter: blur(22px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.mobile-nav-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: #c3c8cf;
    font-size: 15.5px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-link svg {
    width: 17px;
    height: 17px;
    color: #6f7680;
}

.mobile-nav-link.is-active {
    border-color: rgba(216, 176, 106, 0.35);
    background: rgba(216, 176, 106, 0.10);
    color: var(--gold);
}

.mobile-search {
    margin-top: 6px;
}

/* ---------- 按钮 ---------- */

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.btn-primary {
    border-color: rgba(216, 176, 106, 0.5);
    background: linear-gradient(180deg, #e5c487, #cba059);
    color: #17120a;
    box-shadow: 0 12px 26px rgba(216, 176, 106, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #edd19a, #d3a962);
    box-shadow: 0 18px 34px rgba(216, 176, 106, 0.24);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.045);
    color: #dfe2e7;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 176, 106, 0.35);
    background: rgba(255, 255, 255, 0.075);
    color: var(--gold-soft);
}

.btn-sm {
    padding: 11px 18px;
    font-size: 13.5px;
    border-radius: 10px;
}

/* ---------- 首页 Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 560px at 80% 4%, rgba(216, 176, 106, 0.10), transparent 62%),
        radial-gradient(760px 520px at 6% 24%, rgba(95, 157, 120, 0.06), transparent 60%),
        linear-gradient(180deg, #0b0e12 0%, #0a0c10 58%, var(--bg) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 30px;
    padding-top: 62px;
    padding-bottom: 46px;
}

.hero-copy {
    padding-bottom: 8px;
}

.hero-avatar {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    margin-bottom: 28px;
    padding: 4px;
    border-radius: 50%;
    background: linear-gradient(150deg, rgba(216, 176, 106, 0.45), rgba(255, 255, 255, 0.06) 55%, rgba(255, 255, 255, 0.02));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-avatar img,
.hero-avatar-fallback {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.hero-avatar img {
    border: 2px solid #0a0c0f;
}

.hero-avatar-fallback {
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.hero-avatar-fallback svg {
    width: 44px;
    height: 44px;
}

.hero-title {
    margin: 0 0 16px;
    color: #f4f5f7;
    font-family: var(--font);
    font-size: clamp(2.05rem, 4.4vw, 3.15rem);
    font-weight: 700;
    line-height: 1.38;
    letter-spacing: 1.5px;
}

.hero-desc {
    max-width: 470px;
    margin-bottom: 30px;
    color: #949ba5;
    font-size: 15px;
    line-height: 1.95;
}

.hero-art {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 4px;
}

.hero-art::before {
    content: "";
    position: absolute;
    top: 6%;
    right: 4%;
    bottom: 2%;
    left: 6%;
    background: radial-gradient(circle at 55% 46%, rgba(216, 176, 106, 0.16), transparent 62%);
    filter: blur(34px);
    pointer-events: none;
}

.hero-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    filter: drop-shadow(0 26px 46px rgba(0, 0, 0, 0.55));
}

.hero-svg .layer-a {
    transform-box: fill-box;
    transform-origin: center;
    animation: layer-float 10s ease-in-out infinite;
}

.hero-svg .layer-b {
    transform-box: fill-box;
    transform-origin: center;
    animation: layer-float 12s ease-in-out infinite reverse;
}

.hero-home .hero-inner {
    min-height: calc(100vh - 78px);
    padding-top: 96px;
    padding-bottom: 96px;
}

/* ---------- 关于 ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.about-panel {
    padding: 34px 36px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(26, 30, 37, 0.72), rgba(12, 15, 19, 0.86));
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
}

.about-title {
    margin: 0 0 18px;
    color: #f1f3f5;
    font-family: var(--font);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-text {
    color: #a9b0b9;
    font-size: 14.5px;
    line-height: 2;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.about-info {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-info li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.about-info li:last-child {
    border-bottom: 0;
}

.about-info span {
    color: #6f7680;
}

.about-info strong {
    color: #d5dade;
    font-weight: 600;
    text-align: right;
}

.about-links {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- 区块标题 ---------- */

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

.section-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    color: #eef0f3;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(216, 176, 106, 0.55);
}

.section-note {
    color: var(--muted-2);
    font-size: 12.5px;
    letter-spacing: 0.6px;
}

/* ---------- 文章卡片 ---------- */

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

.post-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(24, 27, 33, 0.72), rgba(14, 17, 21, 0.86));
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(216, 176, 106, 0.28);
    box-shadow: var(--shadow-hover);
}

.card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0d1014;
}

.post-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: saturate(0.92) contrast(1.02);
}

.post-card:hover .post-thumb {
    transform: scale(1.04);
    filter: saturate(1) contrast(1.04);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(216, 176, 106, 0.92);
    color: #17120a;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.thumb-fallback {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(420px 240px at 78% 6%, rgba(216, 176, 106, 0.12), transparent 66%),
        radial-gradient(360px 220px at 12% 94%, rgba(127, 167, 201, 0.08), transparent 62%),
        linear-gradient(160deg, #12161c 0%, #0d1014 58%, #0a0c0f 100%);
}

.thumb-fallback::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.thumb-fallback::after {
    content: "";
    position: absolute;
    top: -40px;
    left: 12%;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(216, 176, 106, 0.10);
    border-radius: 50%;
}

.thumb-fallback svg {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    opacity: 0.65;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
    transition: opacity 0.4s ease, transform 0.45s ease;
}

.post-card:hover .thumb-fallback svg {
    transform: translateY(-4px);
    opacity: 0.9;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px 20px;
}

.card-title {
    margin: 0;
    color: #eef0f3;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.3px;
}

.card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: var(--gold-soft);
}

.card-excerpt {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: #8b929c;
    font-size: 13.5px;
    line-height: 1.85;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #737b85;
    font-size: 12px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-meta svg {
    width: 13px;
    height: 13px;
    opacity: 0.8;
}

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.card-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.card-more:hover svg {
    transform: translateX(3px);
}

/* ---------- 分页 ---------- */

.page-navigator {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.page-navigator:empty {
    display: none;
}

.page-navigator li {
    display: block;
}

.page-navigator a,
.page-navigator span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: #9aa1ab;
    font-size: 13.5px;
    font-weight: 600;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-navigator a:hover {
    border-color: rgba(216, 176, 106, 0.32);
    background: rgba(255, 255, 255, 0.07);
    color: var(--gold-soft);
    transform: translateY(-1px);
}

.page-navigator li.current a,
.page-navigator li.current span {
    border-color: rgba(216, 176, 106, 0.5);
    background: rgba(216, 176, 106, 0.16);
    color: var(--gold);
}

/* ---------- 页面头部 ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(460px 240px at 88% 0%, rgba(216, 176, 106, 0.12), transparent 68%),
        linear-gradient(140deg, rgba(26, 30, 37, 0.82), rgba(12, 15, 19, 0.9));
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
}

.page-hero::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -50px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 176, 106, 0.14), transparent 68%);
    pointer-events: none;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -100px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(127, 167, 201, 0.05);
    pointer-events: none;
}

.page-eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 3.2px;
}

.page-title {
    position: relative;
    z-index: 1;
    margin: 18px 0 12px;
    color: #f4f5f7;
    font-family: var(--font);
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 1.5px;
}

.page-desc {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 0 4px;
    color: #8f96a0;
    font-size: 14px;
    line-height: 1.9;
}

.page-count {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: 20px;
    padding: 5px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #8b929c;
    font-size: 11.5px;
    letter-spacing: 0.8px;
}

/* ---------- 文章详情 ---------- */

.article {
    position: relative;
    padding: 46px 52px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(22, 25, 31, 0.78), rgba(12, 15, 19, 0.9));
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    backdrop-filter: blur(18px) saturate(1.2);
}

.article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, transparent, rgba(216, 176, 106, 0.5), transparent);
}

.article-wide {
    width: 100%;
}

.article-head {
    padding-bottom: 26px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.article-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.chip-red {
    border-color: rgba(182, 81, 60, 0.35);
    background: rgba(182, 81, 60, 0.12);
    color: #d98773;
}

.chip-date {
    border-color: rgba(216, 176, 106, 0.24);
    background: rgba(216, 176, 106, 0.07);
    color: #b99a63;
}

.article-title {
    margin: 0 0 18px;
    color: #f3f4f6;
    font-family: var(--font);
    font-size: clamp(1.7rem, 3.6vw, 2.25rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.8px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #7f8790;
    font-size: 12.5px;
}

.article-meta span,
.article-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    transition: color 0.2s ease;
}

.article-meta a:hover {
    color: var(--gold);
}

.article-meta svg {
    width: 14px;
    height: 14px;
    opacity: 0.85;
}

/* ---------- 正文排版 ---------- */

.post-content {
    margin-top: 32px;
    color: #c1c7ce;
    font-size: 15.5px;
    line-height: 1.95;
    word-break: break-word;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content h2 {
    margin: 2.2em 0 0.85em;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
    color: #f0f1f3;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
}

.post-content h3 {
    margin: 1.9em 0 0.7em;
    padding-left: 12px;
    border-left: 2px solid rgba(182, 81, 60, 0.75);
    color: #eceef1;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.5;
}

.post-content h4 {
    margin: 1.6em 0 0.6em;
    color: #e4e7ea;
    font-size: 1.05rem;
    font-weight: 700;
}

.post-content p {
    margin: 0 0 1.3em;
}

.post-content a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: var(--gold-soft);
}

.post-content strong {
    color: #f0f1f3;
    font-weight: 700;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.3em;
    padding-left: 1.5em;
}

.post-content li {
    margin: 0.4em 0;
}

.post-content li::marker {
    color: var(--gold-deep);
}

.post-content blockquote {
    margin: 1.8em 0;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--gold);
    border-radius: 4px 12px 12px 4px;
    background: rgba(255, 255, 255, 0.03);
    color: #a9b0b9;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content pre {
    margin: 1.6em 0;
    padding: 20px 22px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: #0a0c0f;
    color: #cbd1d8;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.75;
}

.post-content code {
    padding: 2px 7px;
    border: 1px solid rgba(216, 176, 106, 0.16);
    border-radius: 5px;
    background: rgba(216, 176, 106, 0.09);
    color: var(--gold-soft);
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.post-content pre code {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: inherit;
}

.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.8em auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.post-content figure {
    margin: 1.8em 0;
}

.post-content figcaption {
    margin-top: 8px;
    color: var(--muted-2);
    font-size: 12.5px;
    text-align: center;
}

.post-content hr {
    margin: 2.6em 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-content table {
    width: 100%;
    margin: 1.6em 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-collapse: collapse;
    font-size: 14px;
}

.post-content th,
.post-content td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.post-content th {
    background: rgba(255, 255, 255, 0.04);
    color: #e6e8eb;
    font-weight: 700;
}

.post-content tr:last-child td {
    border-bottom: 0;
}

.post-content iframe,
.post-content video {
    max-width: 100%;
    border-radius: 10px;
}

.post-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.article-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.article-foot-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #7f8790;
    font-size: 12.5px;
    font-weight: 600;
}

.article-foot-label svg {
    width: 14px;
    height: 14px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #9aa1ab;
    font-size: 12px;
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tag-list a:hover {
    border-color: rgba(216, 176, 106, 0.35);
    background: rgba(216, 176, 106, 0.10);
    color: var(--gold-soft);
}

/* ---------- 上一篇 / 下一篇 ---------- */

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}

.post-nav-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--glass);
    color: #6f7680;
    font-size: 13.5px;
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.post-nav-item:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 176, 106, 0.25);
    background: rgba(24, 27, 33, 0.78);
}

.post-nav-label {
    color: var(--muted-2);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.post-nav-item a {
    color: #d9dde2;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.post-nav-item a:hover {
    color: var(--gold-soft);
}

.post-nav-next {
    align-items: flex-end;
    text-align: right;
}

/* ---------- 评论 ---------- */

.comments-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin: 30px 0 0;
}

.comment-panel {
    width: 100%;
}

.comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.comment-list > .comment-item {
    position: relative;
    margin-bottom: 12px;
}

.comment-list > .comment-item:last-child {
    margin-bottom: 0;
}

.comment-body {
    display: block;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.018);
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.comment-body:hover {
    border-color: rgba(216, 176, 106, 0.22);
    background: rgba(255, 255, 255, 0.032);
    transform: translateY(-1px);
}

.comment-item.by-author > .comment-body {
    border-color: rgba(216, 176, 106, 0.26);
    background: linear-gradient(180deg, rgba(216, 176, 106, 0.07), rgba(255, 255, 255, 0.015));
}

/* 回复楼层：与主留言同处一张卡片内，采用手机端的列表式样式 */
.comment-list .comment-list {
    margin: 16px 0 0;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(216, 176, 106, 0.16);
}

.comment-list .comment-list > .comment-item {
    position: relative;
    margin-bottom: 0;
    padding: 14px 0;
}

.comment-list .comment-list > .comment-item:first-child {
    padding-top: 0;
}

.comment-list .comment-list > .comment-item:last-child {
    padding-bottom: 0;
}

.comment-list .comment-list > .comment-item + .comment-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 176, 106, 0.28), rgba(255, 255, 255, 0.06) 45%, rgba(255, 255, 255, 0));
    pointer-events: none;
}

.comment-list .comment-list .comment-body,
.comment-list .comment-list .comment-body:hover,
.comment-list .comment-list .comment-item.by-author > .comment-body {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    transition: none;
    transform: none;
}

.comment-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    flex: none;
}

.comment-avatar::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(216, 176, 106, 0.18);
    pointer-events: none;
}

.comment-avatar img,
.comment-avatar .avatar {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(216, 176, 106, 0.28);
    border-radius: 50%;
    background: #0d1014;
    object-fit: cover;
}

.comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.comment-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.comment-author {
    display: inline-flex;
    align-items: center;
    color: #dfe3e8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.comment-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 2px 10px;
    overflow: hidden;
    /* border: 1px solid rgba(232, 203, 148, 0.5); */
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%),
        linear-gradient(135deg, #f0d9a4, #d8b06a 42%, #b3873f);
    /* box-shadow: 0 2px 12px rgba(216, 176, 106, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2); */
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.9px;
    line-height: 1.4;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    vertical-align: middle;
    white-space: nowrap;
}

.comment-badge::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 34%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-18deg);
    animation: comment-badge-shine 4s ease-in-out infinite;
}

@keyframes comment-badge-shine {
    0%,
    62% {
        left: -60%;
    }

    88%,
    100% {
        left: 130%;
    }
}

.comment-time {
    color: #6f7680;
    font-size: 11.5px;
    letter-spacing: 0.3px;
}

.comment-content {
    color: #a9b0b9;
    font-size: 14px;
    line-height: 1.85;
    word-break: break-word;
}

/* 正文与头像右侧对齐（头像 46px + 间距 12px） */
.comment-content,
.comment-actions {
    padding-left: 58px;
}

.comment-content p {
    margin: 0 0 0.7em;
}

.comment-content p:last-child {
    margin: 0;
}

.comment-actions {
    margin-top: 8px;
}

.comment-actions a {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #7f8790;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.comment-actions a:hover {
    border-color: rgba(216, 176, 106, 0.35);
    background: rgba(216, 176, 106, 0.09);
    color: var(--gold);
}

.comments-area .page-navigator {
    margin-top: 22px;
}

.comments-area .page-navigator a,
.comments-area .page-navigator span {
    min-width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 12.5px;
}

.respond {
    margin-top: 0;
    padding: 24px 26px 26px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.022);
}

.respond-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: #eef0f3;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.respond-title::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(216, 176, 106, 0.12);
}

.cancel-comment-reply {
    margin-bottom: 8px;
}

.cancel-comment-reply a {
    color: #b99a63;
    font-size: 12px;
    font-weight: 600;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    margin: 0 0 16px;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #8b929c;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.form-field em {
    color: var(--red);
    font-style: normal;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(216, 176, 106, 0.5);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 0 0 0 4px rgba(216, 176, 106, 0.10);
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

/* 评论图片上传 */

.comment-image-upload {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-top: 12px;
}

.comment-image-pick {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #aeb4bd;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.comment-image-pick svg {
    display: block;
    width: 15px;
    height: 15px;
}

.comment-image-pick:hover {
    border-color: rgba(216, 176, 106, 0.35);
    background: rgba(216, 176, 106, 0.08);
    color: var(--gold);
}

.comment-image-pick:disabled {
    opacity: 0.55;
    cursor: default;
}

.comment-image-tip {
    color: var(--muted-2);
    font-size: 11.5px;
    line-height: 1.6;
}

.comment-image-compress {
    color: #b99a63;
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(216, 176, 106, 0.35);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.comment-image-compress:hover {
    color: var(--gold-soft);
    text-decoration-color: rgba(232, 203, 148, 0.7);
}

.comment-image-preview {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 12px 0;
}

.comment-image-preview img,
.comment-content .comment-image img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    height: auto;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.comment-image-remove {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: #14171c;
    color: #c3c8cf;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.comment-image-remove:hover {
    border-color: rgba(216, 176, 106, 0.45);
    color: var(--gold);
}

.comment-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.comment-content .comment-image {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 10px;
    cursor: zoom-in;
}

.comment-content .comment-image:hover img {
    border-color: rgba(216, 176, 106, 0.38);
}

/* 评论图片全屏预览 */

body.lightbox-open {
    overflow: hidden;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(5, 6, 8, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    cursor: zoom-out;
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(20, 23, 28, 0.72);
    color: #e6e8eb;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.image-lightbox-close:hover {
    border-color: rgba(216, 176, 106, 0.45);
    background: rgba(216, 176, 106, 0.12);
    color: var(--gold);
}

.form-submit {
    display: flex;
    justify-content: flex-end;
    margin: 4px 0 0;
}

.form-submit .btn {
    min-width: 148px;
}

.comment-login {
    margin: 0 0 16px;
    color: #8b929c;
    font-size: 13.5px;
}

.comment-login a {
    color: var(--gold);
    font-weight: 600;
}

.comment-login span {
    margin: 0 4px;
    color: #4a5058;
}

/* ---------- 页脚 ---------- */

.site-footer {
    position: relative;
    margin-top: 84px;
    overflow: hidden;
    background: #050607;
    color: #a6adb7;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(216, 176, 106, 0.05), transparent 34%),
        radial-gradient(circle at 86% 0%, rgba(95, 157, 120, 0.05), transparent 32%);
    pointer-events: none;
}

.footer-line {
    position: relative;
    z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 176, 106, 0.35), transparent);
}

.footer-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px;
    padding-top: 54px;
    padding-bottom: 40px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #a6adb7;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-link svg {
    width: 17px;
    height: 17px;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 176, 106, 0.35);
    background: rgba(216, 176, 106, 0.10);
    color: var(--gold-soft);
}

.footer-col-title {
    margin: 4px 0 18px;
    color: #b99a63;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
}

.footer-links,
.footer-meta {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-links li {
    color: #8f959e;
    font-size: 13.5px;
    line-height: 1.6;
}

.footer-contact li + li {
    margin-top: 2px;
    color: #6f7680;
    font-size: 12.5px;
}

.footer-info strong {
    color: #c9ced4;
    font-weight: 600;
}

.footer-runtime {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}

.runtime-label {
    color: #8f959e;
    font-size: 13.5px;
}

.runtime-value {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.runtime-unit {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    color: #8f959e;
    font-size: 13.5px;
    white-space: nowrap;
}

.runtime-unit strong {
    color: #d8b06a;
    font-size: inherit;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    color: #8f959e;
    font-size: 13.5px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold-soft);
    transform: translateX(3px);
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-meta li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.footer-meta span {
    color: #6f7680;
}

.footer-meta strong {
    color: #c9ced4;
    font-weight: 600;
    text-align: right;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
    margin: 0;
    color: #737b85;
    font-size: 12px;
}

.footer-copy a {
    color: #b99a63;
}

.footer-copy a:hover {
    color: var(--gold-soft);
}

.footer-dot {
    margin: 0 6px;
    color: #3f444b;
}

.footer-theme {
    color: #8b929c;
    letter-spacing: 0.4px;
}

.footer-record {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: #6f7680;
    font-size: 12px;
}

.footer-record a {
    color: #8f959e;
    transition: color 0.2s ease;
}

.footer-record a:hover {
    color: var(--gold-soft);
}

.footer-record span {
    color: #5d646d;
}

.footer-record-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ---------- 回到顶部 ---------- */

.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 28px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(216, 176, 106, 0.35);
    border-radius: 50%;
    background: rgba(20, 23, 28, 0.72);
    color: var(--gold);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s, background 0.2s ease, color 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background: rgba(216, 176, 106, 0.14);
    color: var(--gold-soft);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    width: 19px;
    height: 19px;
}

/* ---------- 404 ---------- */

.error-page {
    position: relative;
    overflow: hidden;
    padding: 64px 24px 58px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(420px 260px at 82% 0%, rgba(216, 176, 106, 0.10), transparent 68%),
        linear-gradient(160deg, rgba(24, 27, 33, 0.76), rgba(11, 14, 18, 0.9));
    box-shadow: var(--shadow-card);
    text-align: center;
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
}

.error-page::before {
    content: "";
    position: absolute;
    top: 34px;
    right: 9%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(182, 81, 60, 0.10), transparent 70%);
    pointer-events: none;
}

.error-art {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    border: 1px solid rgba(216, 176, 106, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.error-icon svg {
    display: block;
    width: 52px;
    height: 52px;
}

.error-code {
    display: block;
    margin-bottom: 16px;
    color: var(--gold);
    font-family: var(--font);
    font-size: clamp(3.4rem, 8vw, 5.2rem);
    font-weight: 700;
    letter-spacing: 8px;
    line-height: 1;
    text-shadow: 0 18px 40px rgba(216, 176, 106, 0.18);
}

.error-page h1 {
    margin: 0 0 10px;
    color: #eef0f3;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.6px;
}

.error-page p {
    margin: 0 0 26px;
    color: #8b929c;
    font-size: 14px;
}

.error-page .btn-row {
    justify-content: center;
}

/* ---------- 文章归档页面 ---------- */

.archive-intro {
    margin-bottom: 26px;
    padding: 26px 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--glass);
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.archive-year {
    padding: 24px 30px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 26, 32, 0.72), rgba(13, 16, 20, 0.86));
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    backdrop-filter: blur(14px) saturate(1.2);
}

.archive-year-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 16px;
}

.year-badge {
    display: inline-grid;
    place-items: center;
    padding: 5px 14px;
    border: 1px solid rgba(216, 176, 106, 0.3);
    border-radius: 8px;
    background: rgba(216, 176, 106, 0.07);
    color: var(--gold);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.archive-year-title em {
    color: #6f7680;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.archive-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.archive-items li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.archive-items li:last-child {
    border-bottom: 0;
}

.archive-items a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.archive-items a:hover {
    padding-left: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.archive-date {
    flex: none;
    width: 46px;
    color: #6f7680;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.archive-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #b9c0c8;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.archive-items a:hover .archive-name {
    color: var(--gold-soft);
}

.archive-arrow {
    display: grid;
    place-items: center;
    flex: none;
    width: 16px;
    height: 16px;
    color: #4f555d;
    transition: color 0.2s ease, transform 0.2s ease;
}

.archive-arrow svg {
    width: 14px;
    height: 14px;
}

.archive-items a:hover .archive-arrow {
    color: var(--gold);
    transform: translateX(3px);
}

/* ---------- 空状态 ---------- */

.empty-state {
    padding: 56px 24px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.empty-icon {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    border: 1px solid rgba(216, 176, 106, 0.2);
    border-radius: 16px;
    background: rgba(216, 176, 106, 0.06);
}

.empty-icon svg {
    width: 38px;
    height: 38px;
}

.empty-state h3 {
    margin: 0 0 6px;
    color: #dfe3e8;
    font-size: 17px;
    font-weight: 700;
}

.empty-state p {
    margin: 0;
    color: #7f8790;
    font-size: 13.5px;
}

/* ---------- 入场动画 ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.js .post-card.reveal:nth-child(2) {
    transition-delay: 0.06s;
}

.js .post-card.reveal:nth-child(3) {
    transition-delay: 0.12s;
}

.js .post-card.reveal:nth-child(4) {
    transition-delay: 0.18s;
}

@keyframes layer-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1180px) {
    .post-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-top: 46px;
    }

    .hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-bottom: 10px;
        text-align: center;
    }

    .hero-desc {
        max-width: 560px;
    }

    .hero-art {
        justify-content: center;
        padding-bottom: 0;
    }

    .hero-svg {
        max-width: 480px;
    }

    .hero-home .hero-inner {
        min-height: 0;
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        gap: 24px;
    }
}

@media (max-width: 820px) {
    .post-grid {
        grid-template-columns: 1fr;
    }

    .article {
        padding: 38px 34px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .header-inner {
        height: 56px;
        gap: 12px;
    }

    .mobile-nav {
        top: 56px;
    }

    .brand-mark,
    .brand-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .brand-mark svg {
        width: 21px;
        height: 21px;
    }

    .brand-name {
        max-width: 150px;
        font-size: 15px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
    }

    .section {
        padding: 46px 0 20px;
    }

    .hero-inner {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .hero-home .hero-inner {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hero-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: 22px;
    }

    .hero-avatar-fallback svg {
        width: 38px;
        height: 38px;
    }

    .hero-title {
        font-size: 1.95rem;
        letter-spacing: 1px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .section-head {
        align-items: center;
        margin-bottom: 22px;
    }

    .section-title {
        font-size: 19px;
    }

    .section-note {
        display: none;
    }

    .post-grid {
        gap: 20px;
    }

    .card-body {
        padding: 18px 18px 16px;
    }

    .card-title {
        font-size: 17.5px;
    }

    .article {
        padding: 30px 22px;
        border-radius: 18px;
    }

    .article::before {
        border-radius: 18px 18px 0 0;
    }

    .article-head {
        padding-bottom: 20px;
        margin-bottom: 22px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .post-content {
        margin-top: 24px;
        font-size: 15px;
    }

    .post-content h2 {
        font-size: 1.3rem;
    }

    .post-content h3 {
        font-size: 1.08rem;
    }

    .post-content pre {
        padding: 16px;
        border-radius: 10px;
    }

    .comment-image-preview img,
    .comment-content .comment-image img {
        max-height: none;
    }

    /* 手机端留言与文章去掉卡片，减少左右留白 */

    .comment-list > .comment-item {
        margin-bottom: 0;
        padding: 16px 0;
    }

    .comment-list > .comment-item:first-child {
        padding-top: 0;
    }

    .comment-list > .comment-item:last-child {
        padding-bottom: 0;
    }

    .comment-list > .comment-item + .comment-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(216, 176, 106, 0.35), rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0) 100%);
        pointer-events: none;
    }

    .comment-list > .comment-item + .comment-item::after {
        content: "";
        position: absolute;
        top: -2px;
        left: 0;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--gold);
        box-shadow: 0 0 0 3px rgba(216, 176, 106, 0.10);
        pointer-events: none;
    }

    .comment-body {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        transition: none;
    }

    .comment-content,
    .comment-actions {
        padding-left: 0;
    }

    .comment-body:hover {
        border-color: transparent;
        background: none;
        transform: none;
    }

    .comment-item.by-author > .comment-body {
        border-color: transparent;
        background: none;
    }

    .comment-list .comment-list {
        margin: 10px 0 0 12px;
        padding: 0 0 0 12px;
        border-left: 1px solid rgba(216, 176, 106, 0.14);
    }

    .comment-list .comment-list .comment-body {
        padding: 0;
    }

    .comment-list .comment-list > .comment-item {
        padding: 10px 0;
    }

    .comment-list .comment-list > .comment-item + .comment-item::before {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    }

    .comment-list .comment-list > .comment-item + .comment-item::after {
        display: none;
    }

    .respond {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
    }

    .article {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .comment-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .page-hero {
        padding: 32px 22px;
        border-radius: 18px;
        margin-bottom: 28px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-desc {
        font-size: 13px;
    }

    .page-count {
        margin-top: 16px;
    }

    .about-panel {
        padding: 24px 20px;
    }

    .about-text {
        font-size: 14px;
    }

    .archive-year {
        padding: 20px 18px 14px;
    }

    .archive-items a {
        gap: 10px;
    }

    .site-footer {
        margin-top: 60px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .back-to-top {
        right: 18px;
        bottom: 20px;
        width: 42px;
        height: 42px;
    }

    .error-page {
        padding: 48px 20px 44px;
    }
}

@media (max-width: 420px) {
    .brand-name {
        max-width: 118px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13.5px;
    }

    .card-foot {
        flex-wrap: wrap;
    }

    .archive-date {
        width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
