/* 扫码盘点宝 · 资讯详情页样式（新闻门户阅读风：白底黑字，克制配色） */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    background: #f2f3f5;
    color: #222;
    min-height: 100vh;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* 顶部条 */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}

.topbar-inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
}

.brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.back-link {
    color: #8a8a8a;
    text-decoration: none;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #00875a;
}

/* 文章卡片 */
.post {
    max-width: 780px;
    margin: 20px auto 0;
    padding: 44px 52px 56px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: #9a9a9a;
}

.tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 2px;
    background: #eef8f3;
    color: #00875a;
    white-space: nowrap;
}

.post-meta time,
.post-meta .read-time {
    font-size: 0.8rem;
    color: #9a9a9a;
}

.post-meta .read-time::before {
    content: '·';
    margin-right: 0.6rem;
    color: #ccc;
}

.post h1 {
    font-size: 1.95rem;
    line-height: 1.45;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    margin-bottom: 1.5rem;
}

.post-lead {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
    background: #f7f8fa;
    border-left: 3px solid #d9e6e0;
    padding: 1rem 1.2rem;
    border-radius: 0 3px 3px 0;
    margin-bottom: 2.2rem;
}

/* 正文 */
.post-body h2 {
    font-size: 1.24rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 2.6rem 0 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid #00a870;
}

.post-body h3 {
    font-size: 1.04rem;
    font-weight: 700;
    color: #222;
    margin: 1.8rem 0 0.6rem;
}

.post-body p {
    font-size: 1.04rem;
    line-height: 1.95;
    color: #2f2f2f;
    margin-bottom: 1.15rem;
    letter-spacing: 0.1px;
}

.post-body ul,
.post-body ol {
    margin: 0 0 1.2rem 1.35rem;
}

.post-body li {
    font-size: 1.04rem;
    line-height: 1.9;
    color: #2f2f2f;
    margin-bottom: 0.5rem;
}

.post-body strong {
    color: #0b6b4c;
    font-weight: 600;
}

.post-body a {
    color: #00754d;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 117, 77, 0.3);
}

.post-body a:hover {
    border-bottom-color: #00754d;
}

.post-body blockquote {
    margin: 1.5rem 0;
    padding: 0.9rem 1.2rem;
    background: #fafafa;
    border-left: 3px solid #e2e2e2;
    color: #5a5a5a;
    font-size: 1rem;
    line-height: 1.9;
}

.post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.94rem;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.post-body th,
.post-body td {
    padding: 0.7rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.65;
    color: #333;
    vertical-align: top;
}

.post-body thead th {
    background: #f7f8fa;
    color: #444;
    font-weight: 600;
    border-bottom: 1px solid #e8e8e8;
}

.post-body tbody tr:last-child td {
    border-bottom: none;
}

.post-body tbody tr:nth-child(even) {
    background: #fcfcfc;
}

/* 相关阅读 */
.related {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid #eee;
}

.related h3 {
    font-size: 0.95rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-left: 0.7rem;
    border-left: 3px solid #00a870;
}

.related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 0.6rem 0;
    border-bottom: 1px dotted #eee;
}

.related li:last-child {
    border-bottom: none;
}

.related li a {
    color: #2f2f2f;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.related li a:hover {
    color: #00875a;
}

.related li span {
    font-size: 0.78rem;
    color: #a8a8a8;
    white-space: nowrap;
}

/* 页脚 */
footer {
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
    font-size: 0.82rem;
    color: #999;
    line-height: 1.9;
}

footer a {
    color: #999;
    text-decoration: none;
}

footer a:hover {
    color: #00875a;
}

@media (max-width: 820px) {
    .post {
        margin: 0;
        padding: 28px 20px 40px;
        border-radius: 0;
        box-shadow: none;
    }

    .post h1 {
        font-size: 1.5rem;
        line-height: 1.5;
    }

    .post-lead {
        font-size: 0.95rem;
        padding: 0.85rem 1rem;
    }

    .post-body h2 {
        font-size: 1.12rem;
        margin-top: 2.1rem;
    }

    .post-body p,
    .post-body li {
        font-size: 1rem;
        line-height: 1.9;
    }

    .post-body table {
        font-size: 0.85rem;
    }

    .post-body th,
    .post-body td {
        padding: 0.55rem 0.5rem;
    }

    .topbar-inner {
        padding: 0.6rem 1rem;
    }
}
