/* ============================================================
   ZhangPu Theme - 仿 zhangpu.cc Typecho 主题 566
   蓝色 header + 衬线正文 + aliceblue 卡片 + 12 栅格布局
   ============================================================ */

:root {
    --zp-blue: #5D96C7;            /* 主蓝（header + 装饰条） */
    --zp-blue-dark: #4387C1;       /* 链接蓝 */
    --zp-blue-soft: rgba(93, 150, 199, 0.98);
    --zp-bg: #FFFFFF;              /* 页面背景 */
    --zp-card-bg: rgba(240, 248, 255, 0.18);  /* aliceblue 18% */
    --zp-card-bg-hover: aliceblue;
    --zp-card-border: #F1E5E5;     /* 浅粉边框 */
    --zp-card-stripe: rgba(51, 84, 170, 0.53); /* 左侧装饰蓝条 */
    --zp-text: #444;               /* 主文字 */
    --zp-text-soft: #999;          /* meta */
    --zp-text-meta: #ccc;          /* 分隔线 */
    --zp-code-bg: #F3F3F0;
    --zp-code-color: #B94A48;
    --zp-footer-bg: aliceblue;

    --zp-sans: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    --zp-serif: "Droid Serif", Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
    --zp-mono: Menlo, Monaco, Consolas, "Lucida Console", "Courier New", monospace;
}

/* ----------  reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }

body {
    background-color: var(--zp-bg);
    color: var(--zp-text);
    font-family: var(--zp-serif);
    font-size: 87.5%;  /* ≈14px，对应 zhangpu.cc 字号 */
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--zp-blue-dark); text-decoration: none; }
a:hover, a:active { color: var(--zp-text); }

/* ----------  layout (12 grid) ---------- */
.zp-container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 10px;
    padding-right: 10px;
    max-width: 952px;
}
.zp-row {
    margin-right: -10px;
    margin-left: -10px;
}
.zp-row:before, .zp-row:after,
.zp-clearfix:before, .zp-clearfix:after {
    content: " ";
    display: table;
}
.zp-row:after, .zp-clearfix:after { clear: both; }
.zp-clearfix { zoom: 1; }

.zp-col-1  { float: left; width: 8.33333%;  min-height: 1px; padding: 0 10px; }
.zp-col-2  { float: left; width: 16.66667%; min-height: 1px; padding: 0 10px; }
.zp-col-3  { float: left; width: 25%;       min-height: 1px; padding: 0 10px; }
.zp-col-4  { float: left; width: 33.33333%; min-height: 1px; padding: 0 10px; }
.zp-col-5  { float: left; width: 41.66667%; min-height: 1px; padding: 0 10px; }
.zp-col-6  { float: left; width: 50%;       min-height: 1px; padding: 0 10px; }
.zp-col-7  { float: left; width: 58.33333%; min-height: 1px; padding: 0 10px; }
.zp-col-8  { float: left; width: 66.66667%; min-height: 1px; padding: 0 10px; }
.zp-col-9  { float: left; width: 75%;       min-height: 1px; padding: 0 10px; }
.zp-col-10 { float: left; width: 83.33333%; min-height: 1px; padding: 0 10px; }
.zp-col-11 { float: left; width: 91.66667%; min-height: 1px; padding: 0 10px; }
.zp-col-12 { float: left; width: 100%;      min-height: 1px; padding: 0 10px; }

/* ----------  header ---------- */
#zp-header {
    padding-top: 15px;
    border-bottom: 1px solid #EEE;
    background: var(--zp-blue-soft);
    color: #fff;
}
.zp-site-name { color: #fff; }
#zp-logo {
    display: inline-block;
    color: #fff;
    font-size: 2.5em;            /* logo 微软雅黑大字 */
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}
#zp-logo:hover { color: rgba(255,255,255,0.85); }
.zp-description {
    margin: 0.5em 0 0;
    color: rgba(238, 238, 238, 0.75);
    font-style: italic;
    font-family: var(--zp-serif);
}

/* search */
.zp-site-search { position: relative; }
.zp-site-search input.zp-text {
    padding: 5px;
    padding-right: 60px;
    border: 1px solid #E9E9E9;
    border-radius: 2px;
    width: 100%;
    background: #fff;
}
.zp-site-search .zp-submit {
    position: absolute;
    right: 4px;
    top: 2px;
    border: 1px solid rgba(0,0,0,0.15);
    background: #f7f7f7;
    color: var(--zp-text);
    padding: 0 12px;
    height: 26px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 12px;
}

/* nav menu */
#zp-nav-menu {
    margin: 15px 0 0;
    padding: 0;
}
#zp-nav-menu a {
    display: block;
    margin-right: -1px;
    padding: 0 20px;
    border: 1px solid #EEE;
    border-bottom: none;
    height: 32px;
    line-height: 32px;
    color: var(--zp-text);
    float: left;
    background: #fff;
    font-family: var(--zp-sans);
    font-size: 14px;
    transition: background .15s;
}
#zp-nav-menu a:hover,
#zp-nav-menu .current {
    background: #F6F6F6;
    color: var(--zp-text);
}

/* ----------  main + post list ---------- */
.zp-main { padding-top: 15px; }

/* archive title */
.zp-archive-title {
    margin: 1em 0;
    padding-top: 20px;
    color: var(--zp-text-soft);
    font-size: 1.05em;
    font-weight: normal;
    font-family: var(--zp-sans);
}

/* post card */
.zp-post {
    padding: 10px;
    border: 1px solid var(--zp-card-border);
    border-left: 3px solid var(--zp-card-stripe);
    background: var(--zp-card-bg);
    margin-top: 25px;
    transition: background .15s;
}
.zp-post:hover { background: var(--zp-card-bg-hover); }

.zp-post-title {
    margin: 0.83em 0 0.4em;
    font-size: 1.4em;
    font-family: var(--zp-sans);
    line-height: 1.25;
}
.zp-post-title a { color: var(--zp-text); }
.zp-post-title a:hover { color: var(--zp-blue-dark); }

.zp-post-meta {
    margin: -0.2em 0 0.6em;
    color: var(--zp-text-soft);
    font-size: 0.85em;
}
.zp-post-meta li {
    display: inline-block;
    margin: 0 8px 0 0;
    padding-left: 12px;
    border-left: 1px solid #EEE;
}
.zp-post-meta li:first-child {
    margin-left: 0; padding-left: 0; border: none;
}
.zp-post-meta a {
    color: var(--zp-text-soft);
    border-bottom: 1px solid #EEE;
}
.zp-post-meta a:hover {
    border-bottom-color: transparent;
    color: var(--zp-text);
}

.zp-post-content {
    line-height: 1.7;
    word-wrap: break-word;
    font-size: 1em;
}
.zp-post-content p { margin: 0 0 1em; }
.zp-post-content h2 { font-size: 1.3em; }
.zp-post-content h3 { font-size: 1.15em; }
.zp-post-content h2,
.zp-post-content h3,
.zp-post-content h4 {
    font-family: var(--zp-sans);
    margin: 1.4em 0 0.6em;
}
.zp-post-content img {
    max-width: 100%;
    background: #fff;
    position: relative;
    bottom: -4px;
}
.zp-post-content a {
    color: var(--zp-blue-dark);
    border-bottom: 1px solid #EEE;
}
.zp-post-content a:hover { border-bottom-color: transparent; }

.zp-post-content blockquote {
    margin: 1em 1.5em;
    padding-left: 1.5em;
    border-left: 4px solid #F3F3F0;
    color: var(--zp-text-soft);
    font-style: italic;
}
.zp-post-content pre,
.zp-post-content code {
    font-family: var(--zp-mono);
    font-size: 0.93em;
}
.zp-post-content code {
    padding: 2px 4px;
    background: var(--zp-code-bg);
    color: var(--zp-code-color);
    border-radius: 2px;
}
.zp-post-content pre {
    padding: 0;
    border: 1px solid #ccc;
    background: var(--zp-code-bg);
    overflow: auto;
    max-height: 400px;
    line-height: 1.5;
    border-radius: 2px;
}
.zp-post-content pre code {
    padding: 3px;
    color: var(--zp-text);
    background: transparent;
}

.zp-read-more { text-align: center; margin: 1em 0 0.4em; }
.zp-read-more .zp-more-link {
    color: var(--zp-blue-dark);
    font-size: 0.95em;
    border: none;
}
.zp-read-more .zp-more-link:hover { color: var(--zp-text); }

/* ----------  post detail ---------- */
.zp-solo { font-size: 1.8em; margin: 0.5em 0 0.2em; }

.zp-tags { clear: both; margin: 1.5em 0; font-size: 0.9em; }
.zp-tags-label { color: var(--zp-text-soft); margin-right: 4px; }
.zp-tag {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px 4px 2px 0;
    background: #f7f7f7;
    border: 1px solid #eee;
    color: var(--zp-text-soft);
    border-radius: 2px;
    font-size: 0.85em;
}
.zp-tag:hover {
    background: var(--zp-card-bg-hover);
    color: var(--zp-blue-dark);
    border-color: transparent;
}

.zp-post-near {
    list-style: none;
    margin: 30px 0;
    padding: 0;
    color: var(--zp-text-soft);
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 12px 0;
}
.zp-post-near li { margin: 6px 0; font-size: 0.95em; }
.zp-prev { text-align: left; }
.zp-next { text-align: right; }

/* ----------  comments ---------- */
#zp-comments { padding-top: 15px; }
.zp-comment-title {
    margin: 0 0 1em;
    font-family: var(--zp-sans);
    font-size: 1.2em;
    color: var(--zp-text);
    border-bottom: 1px solid #EEE;
    padding-bottom: 8px;
}

.zp-comment-list,
.zp-comment-list ol { list-style: none; margin: 0; padding: 0; }
.zp-comment-item {
    padding: 14px;
    margin-top: 10px;
    border: 1px solid #EEE;
}
.zp-comment-item.zp-comment-level-odd { background: #F6F6F3; }
.zp-comment-item.zp-comment-level-even { background: #fff; }
.zp-comment-author {
    display: block;
    margin-bottom: 3px;
    color: var(--zp-text);
}
.zp-comment-author .zp-comment-cite {
    font-weight: bold;
    font-style: normal;
    font-family: var(--zp-sans);
}
.zp-comment-meta {
    color: var(--zp-text-soft);
    font-size: 0.85em;
    margin-bottom: 6px;
}
.zp-comment-body {
    line-height: 1.6;
    word-wrap: break-word;
    color: var(--zp-text);
}
.zp-no-comments { color: var(--zp-text-soft); font-style: italic; }

.zp-comment-error,
.zp-comment-success {
    padding: 8px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
    font-size: 0.95em;
}
.zp-comment-error { background: #FBE3E4; color: #8A1F11; border: 1px solid #f5c2c7; }
.zp-comment-success { background: #E6F4D9; color: #3c763d; border: 1px solid #d6e9c6; }

/* comment form */
#zp-respond {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #EEE;
}
#zp-respond h3 {
    font-family: var(--zp-sans);
    font-size: 1.1em;
    margin: 0 0 1em;
    color: var(--zp-text);
}
.zp-form-group { margin-bottom: 12px; }
.zp-form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
    color: var(--zp-text);
    font-family: var(--zp-sans);
    font-size: 0.95em;
}
.zp-form-group .zp-required { color: #C00; }
.zp-form-group input[type="text"],
.zp-form-group input[type="email"],
.zp-form-group input[type="url"],
.zp-form-group textarea {
    padding: 5px;
    border: 1px solid #E9E9E9;
    width: 100%;
    border-radius: 2px;
    background: #fff;
    color: var(--zp-text);
    font-family: var(--zp-serif);
    font-size: 14px;
}
.zp-form-group textarea { resize: vertical; min-height: 100px; }

.zp-btn-submit {
    background: var(--zp-blue);
    color: #fff;
    border: 1px solid var(--zp-blue-dark);
    padding: 8px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.95em;
    font-family: var(--zp-sans);
    transition: background .15s;
}
.zp-btn-submit:hover { background: var(--zp-blue-dark); }

/* ----------  sidebar widget ---------- */
#zp-secondary {
    padding-top: 15px;
    word-wrap: break-word;
}
.zp-widget { margin-bottom: 30px; }
.zp-widget-title {
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #EEE;
    font-family: var(--zp-sans);
    font-size: 1em;
    color: var(--zp-text);
    font-weight: bold;
}
.zp-widget-list { padding: 0; }
.zp-widget-list li {
    margin: 5px 0;
    line-height: 1.5;
    font-size: 0.95em;
}
.zp-widget-list a {
    color: var(--zp-blue-dark);
    border-bottom: 1px solid transparent;
}
.zp-widget-list a:hover {
    color: var(--zp-text);
    border-bottom-color: transparent;
}
.zp-current-cat a { color: var(--zp-text); font-weight: bold; }

/* ----------  pagination ---------- */
.zp-page-navigator {
    list-style: none;
    margin: 25px 0;
    padding: 0;
    text-align: center;
}
.zp-page-navigator a,
.zp-page-navigator .zp-current {
    display: inline-block;
    margin: 0 4px;
    padding: 0 10px;
    height: 30px;
    line-height: 30px;
    border: 1px solid #EEE;
    background: #fff;
    color: var(--zp-blue-dark);
    border-radius: 2px;
    font-family: var(--zp-sans);
}
.zp-page-navigator a:hover {
    background: #EEE;
    color: var(--zp-text);
    text-decoration: none;
}
.zp-page-navigator .zp-current {
    color: var(--zp-text);
    background: #EEE;
    cursor: default;
}

/* ----------  archive page list ---------- */
.zp-archive-section { margin: 1.5em 0; }
.zp-archive-month {
    margin: 0 0 8px;
    color: var(--zp-text-soft);
    font-family: var(--zp-sans);
    font-size: 1.05em;
    font-weight: bold;
    padding-bottom: 4px;
    border-bottom: 1px dashed #EEE;
}
.zp-archive-month small { color: #BBB; font-weight: normal; font-size: 0.85em; }
.zp-archive-list li {
    margin: 4px 0;
    line-height: 1.6;
    font-size: 0.95em;
}
.zp-archive-date {
    display: inline-block;
    width: 50px;
    color: var(--zp-text-soft);
    font-family: var(--zp-mono);
    font-size: 0.85em;
}
.zp-archive-link { color: var(--zp-blue-dark); }
.zp-archive-link:hover { color: var(--zp-text); }

/* ----------  footer ---------- */
#zp-footer {
    margin-top: 25px;
    padding: 3em 0;
    line-height: 1.5;
    text-align: center;
    color: var(--zp-text-soft);
    background: var(--zp-footer-bg);
    font-family: var(--zp-sans);
    font-size: 0.9em;
}
#zp-footer a { color: var(--zp-blue-dark); }
#zp-footer p { margin: 4px 0; }
.zp-footer-meta a { margin: 0 6px; }

/* ----------  empty state ---------- */
.zp-empty {
    text-align: center;
    padding: 40px 20px !important;
    color: var(--zp-text-soft);
    font-style: italic;
}

/* ----------  responsive ---------- */
@media (max-width: 991px) {
    .zp-hidden-tb { display: none; }
    .zp-col-8, .zp-col-4 { width: 100%; }
}
@media (max-width: 767px) {
    body { font-size: 81.25%; }
    #zp-nav-menu a {
        float: none;
        display: inline-block;
        margin: 0 -2px;
    }
    .zp-site-name,
    .zp-site-search {
        text-align: center;
        width: 100%;
    }
    .zp-site-search { margin-top: 12px; }
    #zp-logo { font-size: 2em; }
}
@media (max-width: 480px) {
    #zp-nav-menu a { padding: 0 12px; font-size: 12px; }
    .zp-post { padding: 8px; }
}

/* ----------  selection ---------- */
::selection {
    background: var(--zp-blue);
    color: #fff;
}