:root {
    --primary-color: #c74066;
    --primary-dark: #9f2148;
    --bg-gradient-start: #f9f0f4;
    --bg-gradient-end: #ffffff;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Microsoft Yahei','微软雅黑','宋体',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: #333;
    min-height: 100vh;
    padding-bottom: 50px;
}

.hd {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hd-inner {
    max-width: 980px;
    margin: 0 auto;
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #222;
}

.brand img {
    border-radius: 8px;
}

.brand span {
    font-size: 18px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.nav-links a {
    color: #555;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--primary-dark);
    background: rgba(199,64,102,0.08);
}

.page {
    max-width: 860px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.breadcrumb {
    font-size: 13px;
    margin-bottom: 8px;
    color: #777;
}

.breadcrumb a {
    color: #777;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 8px 0 10px;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

h1 .view-count {
    font-size: 12px;
    font-weight: 500;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

h1 .view-count::before {
    content: " ";
    font-size: 16px;
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('../images/icomoon-free--eye.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    h1 .view-count {
        font-size: 13px;
        margin-top: 4px;
    }
}

.meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

p {
    font-size: 14px;
    line-height: 1.7;
    margin: 10px 0;
}

h2 {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 700;
}

ul {
    padding-left: 20px;
    font-size: 14px;
}

.footer {
    margin-top: 40px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #888;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.footer a {
    color: #7952b3;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Giscus 评论区样式 */
.giscus-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.giscus-container h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .page { padding: 0 12px; margin: 16px auto 28px; }
    h1 { font-size: 22px; }
    .giscus-container {
        margin-top: 30px;
        padding-top: 20px;
    }
}


