/*!
 * This is an example of a color scheme
 * You can define your color scheme below
 */

[data-theme="customize"] {
  --pico-primary: #017FC0 !important;
  --pico-primary-hover: #02659A !important;
  --pico-background-color: #fffbeb !important;
  --pico-muted-border-color: rgba(0, 0, 0, .1) !important;
  --pico-form-element-border-color: rgba(0, 0, 0, .2) !important;
  --pico-code-background-color: rgba(0, 0, 0, .05) !important;
}

.site-navbar {
  background-color: var(--pico-primary);
}

.site-navbar a,
.site-navbar .nav-toggler-btn {
  color: var(--pico-primary-inverse);
}

.site-navbar .desc {
  color: rgba(255, 255, 255, .5);
}

.site-navbar input[type="search"]:not(:focus) {
  --pico-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(255, 255, 255)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

/* 1. 全局字号调整为为106.25% (解决大屏幕字太大的问题) */
:root { --pico-font-size: 106.25% !important; }

/* 2. 压小文章标题，大小等同 H3 */
.entry-title { font-size: 1.5rem !important; }

/* 3. 压小评论区标题，大小等同 H3 */
#comments h2.text-center { font-size: 1.5rem !important; }

/* 4. 限制导航栏和底部宽度 (修复手机端边距问题) */
@media (min-width: 840px) {
    .site-navbar, .site-footer {
        max-width: 840px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* 把正文最大宽度限制在 840px，与页脚导航栏对齐 */
.container-thin {
    max-width: 840px !important;
}

/* 压缩main与页脚的空白高度 */
main.container{padding-top:4rem;padding-bottom:0rem !important;}

/* 5. 压缩文章列表高度 */
.post-separator { margin: 1.5rem 0 !important; }

/* 6. 阅读量眼睛图标 */
.feather-eye:before {
    content: "";
    display: inline-block;
    margin-right: 0.25rem;
    background: url("./static/img/eye.svg") no-repeat center center/contain;
    width: 1rem;
    height: 1rem;
    vertical-align: text-top;
}

/* 7. 主题配色调整 */

/* 修改全局网页背景色 */
:root {
    --pico-background-color: #faf8f1 !important; /* 换成你想要的背景色 */
}
/* 修改全局链接悬停颜色 */
a:hover {
    color: #d97706 !important; /* 链接文字悬停色 */
    text-decoration: underline !important; /* 原来没下划线，悬停时补一个 */
    text-decoration-color: #d97706 !important; /* 下划线悬停色 */
}
