@font-face {
    font-family: 'SmileySans';
    src: url('../fonts/SmileySans-Oblique.otf.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    font-style: oblique;
}

/*@font-face {*/
/*    font-family: 'AlimamaFangYuanTiVF-Thin-2';*/
/*    src: url('../fonts/AlimamaFangYuanTiVF-Thin-2.ttf') format('truetype');*/
/*    font-weight: 400;*/
/*    font-style: normal;*/
/*    font-display: swap;*/
/*}*/

/* ========= 设计令牌（Ant Design取向） ========= */
:root{
    --color-bg: #ffffff;
    --color-text: #1f2328;
    --color-muted: #667085;
    --color-border: #e5e6eb;
    --color-card: #ffffff;
    --color-primary: #1677ff;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 10px rgba(0,0,0,0.06);
    --gap-1: 8px;
    --gap-2: 16px;
    --gap-3: 24px;
    --gap-4: 32px;
    --maxw: 1450px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
    margin:0;
    /*font: 14px/1.6 'AlimamaFangYuanTiVF-Thin-2',-apple-system,"Segoe UI",Roboto,"PingFang SC","Noto Sans CJK SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;*/
    font: 14px/1.6 system-ui,'SmileySans','AlimamaFangYuanTiVF-Thin-2',-apple-system,"Segoe UI",Roboto,"PingFang SC","Noto Sans CJK SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}
.btn{display:inline-flex;align-items: center;justify-content: center;}
.btn:hover{color:#fff;}
a {
    color: #1890ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #40a9ff;
    text-decoration: initial;
}

h1,h2,h3,h4,h5{font-family: 'SmileySans', 'AlimamaFangYuanTiVF-Thin-2', -apple-system, "Segoe UI", serif;}

/* 通用容器 */
.container{ background:#fff;width: min(100%, var(--maxw)); margin: 0 auto; padding: 2rem var(--gap-2); }
/*@media (min-width: 1200px) {*/
/*    .container {*/
/*        max-width: 1450px;*/
/*    }*/
/*}*/
/* ====== Header / Footer ====== */
.navbar-collapse{justify-content:end;}
/* 整体头部背景和阴影 */
header.navbar {
    font-family: 'SmileySans', 'AlimamaFangYuanTiVF-Thin-2', -apple-system, "Segoe UI", serif;
    background-color: #fff; /* 纯白背景 */
    position:sticky;
    top:0;
    border-bottom: 1px solid #f0f0f0; /* 细边线分割 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 轻微阴影，柔和 */
    z-index:999;
}

/* container 保持居中和内边距 */
header .container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 品牌名 */
.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
    color: #111;
    user-select: none;
    text-decoration: none;
    transition: color 0.3s ease;
}
.navbar-brand:hover {
    color: #1890ff; /* Ant Design 蓝 */
}

/* 折叠按钮 */
.navbar-toggler {
    border: none;
    background: transparent;
    font-size: 1.25rem;
    color: #888;
    cursor: pointer;
}
.navbar-toggler:hover {
    color: #1890ff;
}

/* 导航菜单整体 */
.navbar-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 导航项 */
.navbar-nav .nav-item {
    position: relative;
}

/* 链接 */
.navbar-nav .nav-link {
    color: #222;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #1890ff;
    border-bottom-color: #1890ff;
    outline: none;
}

/* 当前激活页 */
.navbar-nav .active > .nav-link {
    color: #1890ff;
    border-bottom-color: #1890ff;
    font-weight: 600;
}

/* 下拉菜单 */
.navbar-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 160px;
    padding: 0.5rem 0;
    display: none;
    z-index: 1000;
}

/* 显示下拉菜单 */
.navbar-nav .menu-item-has-children:hover > .dropdown-menu,
.navbar-nav .menu-item-has-children:focus-within > .dropdown-menu {
    display: block;
}

/* 下拉菜单项 */
.dropdown-menu .dropdown-item {
    padding: 0.375rem 1rem;
    color: #222;
    font-size: 0.95rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #e6f7ff;
    color: #1890ff;
    outline: none;
}

/* 移动端折叠样式简化版（可根据需要继续调整） */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    .navbar-nav .menu-item-has-children:hover > .dropdown-menu,
    .navbar-nav .menu-item-has-children:focus-within > .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
}

/* Footer整体背景和边框 */
.site-footer {
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    padding: 2rem 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    font-size: 0.9rem;
    text-align: center;
}

/* 容器居中及最大宽度 */
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    background:initial;
}

/* 页脚导航 */
.footer-nav {
    margin-bottom: 1.5rem;
}

/* 版权文字 */
.site-footer .copyright {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* 移动端调整 */
@media (max-width: 576px) {
    .menu.menu--footer {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ====== 首页：一屏一条滚动 ====== */
.slides{
    height: 100svh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
.slide{
    height: 100svh;
    scroll-snap-align: start;
    display: grid;
    place-items: center;
    padding: var(--gap-3);
    border-bottom: 1px solid var(--color-border);
}
.message{
    width: min(100%, var(--maxw));
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: var(--gap-3);
    display: grid;
    gap: var(--gap-2);
}
.message__header{
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--gap-2);
    align-items: center;
}
.message__avatar img{ width: 64px; height: 64px; border-radius: 50%; display:block; }
.avatar-fallback{
    width:64px; height:64px; border-radius:50%;
    display:grid; place-items:center; background:#f2f3f5; color:#444; font-weight:600;
}
.message__meta{ display:flex; flex-direction:column; gap: 4px; }
.message__user{ margin:0; font-size: clamp(16px, 2.2vw, 22px); }
.message__time{ color: var(--color-muted); font-size: 12px; }

.message__figure{
    margin:0; overflow:hidden; border-radius: var(--radius); background: #f6f7f9; border:1px solid var(--color-border);
}
.message__figure img{ width:100%; height:auto; display:block; object-fit: cover; }

.message__content{ font-size: 14px; }


/* 无障碍工具类 */
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }


/* search page */
.search-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.search-input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.search-btn {
    padding: 0.5rem 1rem;
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

.card-media img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 180px;
}

.card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: #000;
    text-decoration: none;
}

.card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.card-excerpt {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
}

.pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination a,
.pagination span {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 0 3px;
    text-decoration: none;
    color: #000;
}

.pagination a:hover {
    background: #f0f0f0;
}

.no-results {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    margin-top: 3rem;
}
/* 评论区域整体 */
.comments-area {
    margin-top: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}


#comments{margin: 40px 0;}
/* 评论标题 */
.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1890ff;
}

/* 评论列表 */
.commentlist,
.commentlist .children {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 单条评论 */
.comment {
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #fff;
    overflow: scroll;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 嵌套层级缩进 */
.comment .children .comment {
    margin-left: 32px;
    margin-top: 12px;
}

/* 评论头部：头像+名称+时间 */
.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
}

.comment-author .fn {
    font-weight: 500;
    color: #000;
    margin-right: 6px;
}

.comment-author .says {
    color: #999;
    font-size: 13px;
}

/* 评论时间 */
.comment-metadata {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 8px;
}

/* 回复按钮 */
.comment-reply-link {
    font-size: 13px;
    color: #1890ff;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.comment-reply-link:hover {
    color: #40a9ff;
}

/* 评论表单 */
.comment-respond {
    margin-top: 24px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 16px;
    background: #fff;
}

.comment-respond h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1890ff;
}
.comment-form-cookies-consent{
    display: flex;column-gap: 4px;align-items: center;
}
.comment-form label {
    font-size: 13px;
    font-weight: 500;
    display: block;
    color: #555;
}

.comment-form input,
.comment-form textarea {
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.comment-form-author,.comment-form-email,.comment-form-url{width: 100%;}
#comment{width:100%;}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #1890ff;
    outline: none;
}

.comment-form .form-submit input {
    background: #1890ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-form .form-submit input:hover {
    background: #40a9ff;
}
@media (min-width: 992px) {
    .comment{overflow:hidden;}
    .comment-form-author,.comment-form-email,.comment-form-url{display:inline-block;width: 32%;}
}


.wp-singular,.site-footer,.archive{background:#F0F2F5;}