:root {
    --svc-primary: #29b6f6;
    --svc-deep: #04205F;
    --svc-ink: #101828;
    --svc-muted: #475467;
    --svc-bg: #f6f7fb;
    --svc-card: #ffffff;
    --svc-border: rgba(16, 24, 40, 0.10);
}

.post-hero {
    position: relative;
    padding: 80px 0 56px;
    color: #fff;
    overflow: hidden;
    background-image: url('/static/images/Gemini_Generated_Image_v36ar7v36ar7v36a.png');
    background-size: cover;
    background-position: center;
}

.post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 18, 58, 0.82);
    pointer-events: none;
}

.post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.35;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
}

.post-hero .container { position: relative; z-index: 2; }

.post-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 16px;
    transition: color 0.2s;
}

.post-hero .back-link:hover { color: #fff; }

.post-hero h1 {
    font-size: 2.25rem;
    font-weight: 950;
    line-height: 1.28;
    margin: 0 0 12px 0;
    color: #fff;
    letter-spacing: 0.2px;
    padding-top:20px;
}

.post-hero .post-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 720px;
}

.post-wrap {
    background: var(--svc-bg);
    padding: 48px 0 64px;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.post-main {
    background: var(--svc-card);
    border: 1px solid var(--svc-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    padding: 32px 36px;
    overflow: hidden;
}

.post-cover {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 24px;
    display: block;
}

.post-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.post-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(41, 182, 246, 0.10);
    border: 1px solid rgba(41, 182, 246, 0.20);
    color: var(--svc-deep);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.post-chip:hover {
    background: rgba(41, 182, 246, 0.18);
    border-color: rgba(41, 182, 246, 0.35);
}

.post-chip i.material-symbols-outlined { font-size: 14px; color: var(--svc-primary); }

/* 正文排版 */
.post-body {
    color: #344054;
    line-height: 1.85;
    font-size: 1rem;
}

.post-body h1, .post-body h2, .post-body h3 {
    color: var(--svc-deep);
    font-weight: 800;
    margin: 1.5em 0 0.5em;
    line-height: 1.35;
}

.post-body h1 { font-size: 1.5rem; }
.post-body h2 { font-size: 1.3rem; }
.post-body h3 { font-size: 1.15rem; }

.post-body p { margin: 0 0 1em; }
.post-body ul, .post-body ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}
.post-body li { margin-bottom: 0.35em; }
.post-body code {
    background: rgba(4, 32, 95, 0.06);
    padding: 0.2em 0.4em;
    border-radius: 6px;
    font-size: 0.92em;
}
.post-body pre {
    background: rgba(4, 32, 95, 0.06);
    padding: 16px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1em 0;
}
.post-body pre code { padding: 0; background: none; }
.post-body blockquote {
    margin: 1em 0;
    padding-left: 1em;
    border-left: 4px solid var(--svc-primary);
    color: var(--svc-muted);
}
.post-body img { max-width: 100%; height: auto; border-radius: 8px; }

.post-sidebar {
    position: sticky;
    top: 96px;
}

.post-sidebar-card {
    background: var(--svc-card);
    border: 1px solid var(--svc-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
    padding: 20px;
}

.post-sidebar-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--svc-deep);
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--svc-border);
}

.post-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-sidebar-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}
.post-sidebar-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.post-sidebar-list a {
    color: #344054;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}

.post-sidebar-list a:hover { color: var(--svc-primary); }

.post-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--svc-muted);
}

.post-empty h2 { font-size: 1.25rem; margin-bottom: 12px; color: var(--svc-deep); }
.post-empty a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--svc-primary);
    font-weight: 700;
    text-decoration: none;
}
.post-empty a:hover { text-decoration: underline; }

@media (max-width: 992px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-sidebar { position: relative; top: auto; }
}

@media (max-width: 768px) {
    .post-hero h1 { font-size: 1.75rem; }
    .post-main { padding: 22px 20px; }
}