:root{
    --bg:#0b0c10; 
    --bg2:#0e1116; 
    --card:#121319; 
    --text:#f5f7fa; 
    --muted:#9aa3af; 
    --accent:#3b82f6; 
    --ring:rgba(59,130,246,.35);
    --radius:16px; 
    --shadow:0 10px 30px rgba(0,0,0,.35);
    --code:#0f141c; 
    --border:rgba(255,255,255,.08);
    --content-w: 900px; /* readable line length */
}

*{box-sizing:border-box}

.container {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--nav-bg);
    margin: auto;
    max-width: 1856px;
    width: 100%;
}

.navbar-container {
    display: flex;
    flex-direction: column;
}

/* 内容区域 */
.content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-light);
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, 
        rgba(46,46,56,0.8) 0%, 
        rgba(46,46,56,1) 30px);
    padding: 90px 0 0 0;
    z-index: 0;
    box-shadow: 0 .625rem 1.875rem rgba(0,0,0,0.3);
}

.img-container {
    position: relative;
    width: 100%; /* 防止溢出 */
    height: 100%;
    display: flex;   /* 新增：启用flex布局 */
    justify-content: center; /* 水平居中内容 */
    align-items: center; /* 垂直居中内容 */
    margin: 0 auto; /* 双保险水平居中 */
    overflow: hidden;
    /* margin-top: 6.875rem;  与导航栏重叠 */
    z-index: 1;
}

.img-container img {
    display: block; /* 消除图片底部间隙 */
    min-height: 225px; /* 保持一定高度 */
    max-width: 100%; /* 响应式适配 */
    height: 100%;
    object-fit: cover;
    /* 创建下部分虚化效果 */
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(46,46,56,1) 0%, 
        rgba(46,46,56,1) 70%, 
        rgba(46,46,56,0) 100%);
    mask-image: linear-gradient(to bottom, 
        rgba(46,46,56,1) 0%, 
        rgba(46,46,56,1) 70%, 
        rgba(46,46,56,0) 100%);
}

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

.bar a:hover { 
    text-decoration:underline; 
    text-underline-offset: 3px; 
    color: var(--primary);
}

.containerH {
    max-width: 1200px;
    margin:0 auto;
    padding:0px 20px 0px;
}

/* Breadcrumb */
.crumbs {
    display:flex;
    gap:10px;
    align-items:center;
    color:var(--muted);
    font-size:.95rem;
    margin:15px 0 15px;
    flex-wrap: wrap;
}

.crumbs a {
    color:var(--muted)
}

.crumbs a:hover {
    color:var(--primary)
}

.crumbs .sep {
    opacity:.6
}

/* Header block */
.post-header {
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
    margin-top:8px;
    margin-bottom:18px
}

.title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    line-height:1.2;
    margin:0
}

.sub {
    color: var(--muted);
    margin: 0;
}

.byline {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: .95rem
}

.avatar{
    width:40px;
    height:40px;
    border-radius:50%;
    object-fit:cover;
    border:1px solid var(--border);
    background:#1b2230
}

.meta-dot::before {
    content: "• ";
    margin: 0 .25rem;
    opacity: .7;
}

.article { 
    width: 100%; 
}

.article .card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow);
    padding: 28px 128px; 
}

.article p{ 
    color:#e9edf3; 
    line-height:1.75; 
    margin:.75rem 0 
}


.tags{ 
    display:flex; 
    gap:8px; 
    flex-wrap:wrap; 
    margin-top: 30px; 
    justify-content: flex-end;
}

.tag{ 
    border:1px solid var(--border); 
    background: rgba(255,255,255,.02); 
    color: var(--muted); 
    padding:6px 10px; 
    border-radius:999px; 
    font-size:.9rem 
}

/* Metrics + Share */
.bar{ 
    display:flex; 
    align-items:center; 
    gap:14px; 
    flex-wrap: wrap; 
    margin: 0px 0 14px;
}

.chip{ 
    display:inline-flex; 
    align-items:center; 
    gap:8px; 
    color:var(--muted); 
    font-size:.95rem 
}

.chip b{ 
    color:var(--text) 
}

.share{ 
    display:flex; 
    gap:8px;
    margin-left:auto;
}

.btn{ 
    border:1px solid var(--border); 
    background: rgba(255,255,255,.02); 
    color:var(--text); 
    padding:6px 10px; 
    border-radius:10px; 
    cursor:pointer 
}

.btn:hover{ 
    color:var(--primary); 
    border-color: var(--primary);
}

/* Progress bar */
.progress{ 
    position: fixed; 
    left:0; 
    top:0; 
    height:3px; 
    width:0%; 
    background: linear-gradient(90deg, var(--accent), #8ab4ff); 
    z-index: 99;
}

/* Accessibility */
a:focus-visible, button:focus-visible{ 
    outline:2px solid var(--ring); 
    outline-offset:2px; 
    border-radius:6px 
}

.card img {
    display: block; /* 消除图片底部间隙 */
    max-width: 80%; /* 响应式适配 */
    height: auto;
    object-fit: cover;
    padding: 40px;
    margin: 0 auto;
}

@media (max-width: 900px) { 
    .card { 
        padding: 25px !important; 
    }

    .card img { 
        max-width: 100%; 
        padding: 20px; 
    }

    .crumbs {
        flex-wrap: wrap;      /* 小屏时允许换行 */
        gap: 2px;             /* 间距稍微小一点 */
    }
}