/* ============================================================
   Sidebar
   ============================================================ */
body {
     scroll-behavior: auto;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
 }
 
 #sidebar {
     float: none;
     width: 100%;
     max-width: 100%;
 }
 
 #sidebar h3 {
     background: linear-gradient(to right, var(--primary-light), var(--surface));
     height: 46px;
     line-height: 46px;
     border-bottom: 1px solid var(--border);
     padding: 0 18px;
     font-size: 13.5px;
     font-weight: 600;
     color: var(--text);
     display: flex;
     align-items: center;
     gap: 8px;
 }
 
 #sidebar h3 .fa {
     color: var(--primary);
     font-size: 14px;
 }

#sidebar h3 {
    background: linear-gradient(to right, var(--primary-light), var(--surface));
    height: 46px;
    line-height: 46px;
    border-bottom: 1px solid var(--border);
    padding: 0 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

#sidebar h3 .fa {
    color: var(--primary);
    font-size: 14px;
}

.widget-title i {
    color: var(--primary);
    margin-right: 6px;
}

.widget {
    background: var(--surface);
    margin: 0 0 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.widget ul li {
    width: 99%;
    line-height: 1.6;
    padding: 9px 18px;
    white-space: nowrap;
    word-wrap: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    text-align: left;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text);
    transition: color var(--transition);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.widget ul li a:hover {
    color: var(--primary);
}

.widget ul,
#sidebar #searchform, #searchform1,
#calendar_wrap, .tagcloud {
    padding: 12px 16px;
}

.tagcloud {
    padding: 8px 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 3px;
    align-content: flex-start;
}

.tagcloud a {
    margin: 0;
    padding: 3px 8px;
    line-height: 1.5;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 12px;
    box-shadow: var(--shadow-xs);
    color: var(--text-muted);
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.tagcloud a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 150, 136, .2);
}

/* ============================================================
   Comment Section
   ============================================================ */

/* 兼容旧结构的通用保留 */
.at, .at-user {
    color: var(--primary);
}

.fn {
    font-style: normal;
    font-weight: 600;
}

.scroll-comments {
    position: relative;
    top: -80px;
}

/* respond 容器 */
#respond {
    margin: 0 0 20px;
    padding: 0 0 24px;
    border-bottom: 2px solid var(--border-light);
}

/* 隐藏不需要的旧元素 */
#comment-author-info {
    display: none;
}

#respond .comment-form-author, #respond .comment-form-email,
#respond .comment-form-url {
    display: none;
}

/* 评论工具栏（兼容保留） */
.comment-tool {
    float: right;
    width: 90px;
    margin: 0;
}

.comment-tool a {
    background: var(--primary);
    float: right;
    color: #fff;
    width: 34px;
    height: 34px;
    text-align: center;
    line-height: 32px;
    margin: 0 0 0 8px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), color var(--transition);
}

.comment-tool a:hover {
    background: var(--surface);
    color: var(--text-muted);
    border-color: var(--border);
}

.emoji-box {
    display: none;
    position: relative;
    margin: 0 0 5px;
}

.emoji-box img {
    float: left;
    width: 24px;
    height: 24px;
}

/* ============================================================
   Footer
   ============================================================ */
#colophon {
    background: var(--surface);
    position: relative;
    width: auto;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .04);
    margin-top: 32px;
}

.site-info {
    text-align: center;
    margin: 0 5%;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.footer-sep {
    color: #cbd5e1;
}

.beian-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
}

.beian-link:hover {
    color: var(--primary);
}

.beian-link img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.site-info a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.site-info a:hover {
    color: var(--primary);
}

.add-info {
    padding: 4px 0;
    display: block;
}

/* ============================================================
   Friendly Links
   ============================================================ */
.links-box {
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px 10px;
    box-sizing: border-box;
}

#links {
    margin: 0 -2px;
}

#links h2 {
    font-size: 16px;
    margin: 10px 0;
    border: none;
    font-weight: 600;
}

.link-f {
    max-width: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
}

.link-f a {
    background: var(--surface);
    text-align: center;
    padding: 7px;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-xs);
    font-size: 13px;
}

.link-f a:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
}

.link-img a {
    padding: 0;
    border: none !important;
    background: transparent !important;
}

.lx7, .child-cat li {
    float: left;
    min-height: 1px;
    padding: 3px;
}

@media screen and (min-width: 280px) {
    .lx7, .child-cat li {
        width: 50%;
    }
}

@media screen and (min-width: 550px) {
    .lx7, .child-cat li {
        width: 33.333%;
    }
}

@media screen and (min-width: 700px) {
    .lx7, .child-cat li {
        width: 25%;
    }
}

@media screen and (min-width: 900px) {
    .lx7, .child-cat li {
        width: 20%;
    }
}

@media screen and (min-width: 1024px) {
    .lx7, .child-cat li {
        width: 14.2857%;
    }
}

@media screen and (max-width: 550px) {
    #links {
        margin: 6px 0 0;
    }
}

.linkcat h2 {
    clear: both;
    padding: 0 0 0 10px;
}

.link-all a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.link-all a, #links a {
    -webkit-transition: color .2s, border-color .2s;
    transition: color .2s, border-color .2s;
}

.link-all a:hover, .link-all a:focus,
#links a:hover, #links a:focus {
}

/* ============================================================
   Category Nav
   ============================================================ */
.type-cat {
    margin: 0 4px 8px;
}

.child-cat {
    margin: 0 0 6px;
    overflow: hidden;
}

.type-cat a, .child-cat a {
    background: var(--surface);
    text-align: center;
    line-height: 34px;
    padding: 0 8px;
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    transition: border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

.type-cat a:hover, .child-cat a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 150, 136, .2);
}

/* No results */
.no-results .post {
    box-shadow: none;
}

.no-results p {
    text-align: center;
    color: var(--text-muted);
}

.search-page {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.search-inf {
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-inf i {
    font-size: 13px;
    opacity: 0.6;
}

.search-page .entry-title {
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.search-page .entry-title a {
    color: var(--text);
    transition: color 0.2s ease;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-page .entry-title a:hover {
    color: var(--primary);
}

/* ============================================================
   Responsive
   ============================================================ */
@media screen and (max-width: 1080px) {
    #top-menu {
        width: 100%;
        padding: 0 10px;
    }

    .top-nav {
        width: 100%;
        padding: 0 10px;
    }

    .links-box {
        width: 100%;
        padding: 0 10px;
    }

    .footer-widget {
        width: 100%;
    }

    .breadcrumb {
        width: 100%;
        padding: 0 10px;
    }

    #content {
        padding: 0 10px;
    }
}

@media only screen and (max-width: 900px) {
    #menu-box {
        transition: all 0s ease 0s;
    }

    #site-nav .nav-menu {
        display: none;
    }

    #search-main.shadow, #mobile-nav.shadow {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 999;
        margin: 5px auto;
    }

    #masthead {
        height: auto;
    }

    #menu-box {
        height: 48px;
    }

    #menu-box.shadow {
        height: 48px;
    }

    .site-description {
        display: block;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-set {
        margin: 0 15px 0 0;
    }

    #top-header .top-nav {
        height: auto;
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px 12px;
    }

    #top-header .top-menu {
        flex-wrap: wrap;
        gap: 0;
    }

    #top-header .top-menu a, #top-header .user-login {
        font-size: 11.5px;
    }

    #search-main {
        width: 95%;
        left: 2.5%;
        right: auto;
        border-radius: var(--radius-lg);
    }

    .search-main-inner {
        padding: 40px 24px 32px;
    }

    .search-input-wrap input {
        font-size: 16px;
    }

    #top-menu {
        width: 100%;
        padding: 0;
        display: flex;
        align-items: center;
        height: 48px;
        box-sizing: border-box;
        gap: 0;
    }

    #navigation-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        float: none;
        flex-shrink: 0;
        order: 3;
        margin: 0;
        width: 36px;
        height: 36px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        position: relative;
        border-radius: var(--radius-sm);
        transition: background 0.2s;
    }

    #navigation-toggle:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    #navigation-toggle::before,
    #navigation-toggle::after {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text-muted);
        border-radius: 2px;
        transition: background 0.2s;
        position: absolute;
        left: 8px;
    }

    #navigation-toggle::before {
        top: 10px;
    }

    #navigation-toggle::after {
        top: 24px;
    }

    #navigation-toggle .fa-bars {
        font-size: 0;
        color: transparent;
        display: block;
        position: absolute;
        left: 8px;
        top: 17px;
        width: 20px;
        height: 2px;
        background: var(--text-muted);
        border-radius: 2px;
        transition: background 0.2s;
    }

    #navigation-toggle:hover::before,
    #navigation-toggle:hover::after,
    #navigation-toggle:hover .fa-bars {
        background: var(--primary);
    }

    .logo-site, .logo-sites {
        float: none;
        flex: 1;
        order: 1;
        margin: 0 8px;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        overflow: visible;
        width: auto;
        min-width: 0;
    }

    .logo-site img, .logo-sites img {
        width: auto;
        max-width: 100%;
        max-height: 34px;
        object-fit: contain;
    }

    .logo-site a, .logo-sites a {
        font-size: 0.85em;
        text-decoration: none;
    }

    .site-title {
        font-size: 1.3rem;
        line-height: 1.2;
        margin: 0;
        font-weight: 700;
        letter-spacing: -0.2px;
    }

    .site-description {
        font-size: 0.75rem;
        line-height: 1.2;
        margin: 2px 0 0 0;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }

    .site-description::before {
        width: 3px;
        height: 3px;
        flex-shrink: 0;
    }

    .nav-search {
        float: none;
        flex-shrink: 0;
        order: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        margin: 0 8px 0 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        color: var(--text-muted);
        font-size: 15px;
        border-radius: var(--radius-sm);
        transition: color var(--transition);
    }

    .nav-search:hover {
        background: rgba(0, 0, 0, 0.06);
        color: var(--primary);
        border: none;
    }

    .nav-search .nav-search-text {
        display: none;
    }

    .main-nav {
        float: none;
        margin: 0;
    }

    #site-nav-wrap {
        float: none;
        min-height: 0;
        margin: 0 0 0 auto;
        max-width: none;
        order: 4;
        display: flex !important;
        flex-shrink: 0;
    }

    #site-nav-wrap #sidr-close {
        display: none !important;
    }

    #site-nav-wrap #site-nav {
        display: flex !important;
        align-items: center;
        margin: 0;
    }

    #site-nav-wrap #navigation-toggle {
        display: flex !important;
        flex-shrink: 0;
    }

    #site-nav-wrap .menu-pcmenu-container {
        display: none !important;
    }
}

#top-menu > .clear {
    display: none;
}

.mobile-login {
    display: none;
    align-items: center;
    flex-shrink: 0;
    order: 3;
    margin: 0 auto 0 0;
    font-size: 12.5px;
    gap: 2px;
    padding: 0 8px;
}

.mobile-login .top-sep {
    color: var(--border);
    margin: 0 2px;
}

.mobile-login a {
    color: var(--text-muted);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
    white-space: nowrap;
    font-size: 12px;
    text-decoration: none;
}

.mobile-login a:hover {
    color: var(--primary);
}

#content.site-content {
    flex-direction: column;
    gap: 0;
}

#primary {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
}

#sidebar {
    width: 100%;
    max-width: 100%;
}

.sidebar {
    width: 100%;
    max-width: 100%;
}

.sidebar-hide {
    display: none !important;
}

.pagination {
    float: none;
    clear: both;
    display: flex;
    justify-content: center;
    margin: 16px 0 0;
}

/* 移动端登录入口（PC 端隐藏，窄屏时在导航栏右侧显示） */
.mobile-login {
    display: none;
    order: 2;
}

@media screen and (min-width: 900px) {
    #search-main.shadow {
        margin: -25px auto;
        transition-duration: 0.5s;
        background: rgba(255, 255, 255, 0.96);
    }

    #navigation-toggle {
        display: none !important;
    }

    #sidr-main {
        display: none !important;
    }

    .mobile-login {
        display: none !important;
    }

    .nav-mobile {
        display: none;
    }

    .sidebar {
        display: block !important;
    }


    #sidebar {
        display: block !important;
    }

    #sidebar.sidebar-hide {
        display: none !important;
    }

    .sidebar.sidebar-hide {
        display: none !important;
    }

    #site-nav-wrap {
        display: flex !important;
        order: 5;
    }
}

.nav-mobile {
    color: var(--text-muted);
    line-height: 25px;
    padding: 0 8px;
    vertical-align: top;
    display: block;
    cursor: pointer;
}

.nav-mobile a {
    color: var(--text-muted);
}

.nav-mobile:hover, .nav-mobile a:hover {
    color: var(--primary);
}

#mobile-nav {
    background: rgba(15, 30, 40, .92);
    width: 100%;
    max-width: 1080px;
    margin: 10px auto 5px;
    padding: 10px 20px 20px;
    display: none;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    box-sizing: border-box;
}

.mobile-menu li {
    float: left;
    width: 24.999999%;
    line-height: 38px;
    margin: 8px -3px 0 2px;
}

.mobile-menu a {
    color: #e2e8f0;
    text-align: center;
    display: block;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media screen and (max-width: 480px) {
    .mobile-menu li {
        width: 49.5%;
    }
}

@media only screen and (max-width: 900px) {
    #mobile-nav.shadow {
        position: fixed;
        left: 0;
        right: 0;
        z-index: 999;
        margin: 10px auto 0;
        width: 100%;
    }
}

/* Weibo */
.weibo {
    position: absolute;
    top: 35px;
    left: 200px;
}

.weibo span, .weibo .WB_icon_text {
    display: none;
}

.follow_text {
    padding: 3px 0 0 1px !important;
}

.follow_btn_inner {
    width: 30px !important;
    background: transparent !important;
    padding: 2px 0;
}

/* ============================================================
   About Widget
   ============================================================ */
.about-main {
    font-size: 14px;
    padding: 16px 18px 12px;
}

.about-img img {
    float: left;
    width: 66px;
    height: 66px;
    margin: 0 14px 0 0;
    border-radius: 50%;
    border: 2px solid var(--border);
    object-fit: cover;
}

.about-name {
    font-size: 15px;
    font-weight: 700;
    padding-top: 6px;
    overflow: hidden;
    line-height: 1.7;
}

.about-name p {
    text-indent: 0;
    margin: 0;
}

.about-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.75;
    clear: both;
    padding-bottom: 4px;
}

.about-desc p {
    text-indent: 0;
    margin: 0 0 6px;
}

.about-desc hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border-light);
}

.about-social {
    padding: 10px 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-top: 1px solid var(--border-light);
}

.about-social a {
    color: var(--text-light);
    font-size: 18px;
    transition: color var(--transition);
}

.about-social a:hover {
    color: var(--primary);
}

.about-inf {
    text-align: center;
    background: var(--border-light);
    float: left;
    font-size: 13.5px;
    width: 100%;
    padding: 0 10px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.about-inf span {
    float: left;
    width: 50%;
    padding: 10px 0;
}

.about-inf strong {
    color: var(--text);
    font-weight: 700;
}

.about-pn {
    border-right: 1px solid var(--border);
}

/* Site profile */
.site-profile {
    padding: 8px 0 4px;
}

.site-profile li {
    padding: 8px 18px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-profile li:last-child {
    border-bottom: none;
}

.site-profile .fa {
    color: var(--primary);
    width: 14px;
    text-align: center;
}

.site-profile strong {
    color: var(--text);
    font-weight: 600;
}

/* Author widget */
#about_author_widget {
    padding: 26px 4px 22px;
}

.author-avatar {
    width: 90px;
    margin: 0 auto 14px;
}

.author-avatar img {
    float: left;
    width: 90px;
    height: 90px;
    padding: 3px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.author-the {
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 5px;
}

.author-description {
    color: var(--text-muted);
    text-align: center;
    padding: 5px 18px;
    font-size: 13.5px;
}

.author-th {
    margin: 5px auto 0;
}

.author-n {
    width: 50%;
    float: left;
    color: var(--text-muted);
    text-align: left;
    padding: 0 0 0 18px;
    font-size: 13.5px;
}

.author-nickname {
    text-align: right;
    padding: 0 18px 0 0;
    border-right: 1px dashed var(--border);
}

.author-m {
    text-align: center;
    padding: 16px 0;
}

.author-m a {
    color: #fff;
    padding: 9px 22px;
    background: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all var(--transition);
    box-shadow: 0 3px 10px rgba(0, 150, 136, .3);
}

.author-m a:hover {
    color: #fff;
    background: var(--primary-h);
    box-shadow: 0 4px 14px rgba(0, 150, 136, .4);
}

.author-n span {
    color: var(--text);
    font-weight: 500;
}

/* ============================================================
   Sidebar Hot Post Thumbnails
   ============================================================ */
.hot_commend ul li, .new_cat ul li {
    white-space: normal;
    border-bottom: 1px dashed var(--border);
    padding: 9px 18px;
}

.hot_commend .thumbnail, .new_cat .thumbnail {
    position: relative;
    float: left;
    width: 90px;
    height: 68px;
    margin: 6px 10px 6px 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.hot_commend a img, .new_cat a img {
    float: left;
    width: 90px;
    height: auto;
}

.hot_commend .hot-title, .new_cat .new-title {
    height: 55px;
    padding-top: 5px;
    line-height: 25px;
    overflow: hidden;
    display: block;
    font-size: 13px;
}

.hot_commend .views, .new_cat .date {
    float: right;
    color: var(--text-muted);
    font-size: 12px;
}

.hot_commend .fa {
    color: var(--text-muted);
}

.li-icon {
    background: #94a3b8;
    font-size: 11px;
    color: #fff;
    line-height: 1.6;
    margin: 0 5px 0 0;
    padding: 0 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

.li-icon-1, .li-icon-2, .li-icon-3 {
    background: var(--accent);
}

.li-number {
    float: left;
    background: var(--accent);
    font-size: 11px;
    color: #fff;
    line-height: 1.4;
    margin: 4px 6px 0 0;
    padding: 0 5px;
    border-radius: 3px;
}

.li-numbers {
    float: left;
    background: #94a3b8;
    font-size: 11px;
    color: #fff;
    line-height: 1.4;
    margin: 4px 6px 0 0;
    padding: 0 5px;
    border-radius: 3px;
}

/* ============================================================
   Article Archive
   ============================================================ */
.archive-content {
    color: var(--text-muted);
    overflow-x: hidden;
}

@media screen and (min-width: 901px) {
    .format-aside .archive-content {
        height: 96px;
        overflow: hidden;
    }
}

/* ============================================================
   Misc
   ============================================================ */
.sidebox {
    background: var(--surface);
    line-height: 1.8;
    padding: 22px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
}

.sidebox h3 {
    text-align: center;
}

.post-password-form {
    margin: 15px 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
}

.post-password-form input[type="password"] {
    width: 40%;
    height: 42px;
    background: var(--surface);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    -webkit-appearance: none;
    transition: border-color var(--transition);
}

.post-password-form input[type="password"]:focus {
    border-color: var(--primary);
}

.post-password-form input[type="submit"] {
    width: 90px;
    line-height: 1;
    background: var(--primary);
    border: none;
    margin: 0 0 0 8px;
    padding: 10px;
    color: #fff;
    cursor: pointer;
    border-radius: var(--radius-sm);
    -webkit-appearance: none;
}

.post-password-form input[type="submit"]:hover {
    background: var(--primary-h);
}

.abstract {
    background: var(--surface);
    font-size: 13.5px;
    color: var(--text-muted);
    display: block;
}

.abstract fieldset {
    padding: 6px 18px;
    margin: 0 0 10px;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
}

.abstract legend {
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 5px;
}

.abstract p {
    text-indent: 0;
}

/* Catalog */
#log-box {
    position: fixed;
    background: var(--surface);
    bottom: 12px;
    left: -1px;
    max-width: 260px;
    padding: 5px 0 0 10px;
    border: 1.5px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow);
    z-index: 9999;
    display: none;
    animation: fade-in .5s;
    -webkit-animation: fade-in .5s;
}

.log-zd {
    position: absolute;
    background: var(--primary);
    top: -1px;
    right: -1px;
    width: 22px;
    height: 217px;
    border-radius: 0 var(--radius) var(--radius) 0;
}

#catalog {
    height: 210px;
    overflow: scroll;
    overflow-x: hidden;
}

#catalog ul {
    margin: 5px 10px 0 0;
}

#catalog, #catalog a {
    font-size: 13.5px;
    color: var(--text-muted);
}

#catalog-ul li {
    list-style: none;
    margin: 0;
    width: 99%;
    min-width: 150px;
    line-height: 2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#catalog-ul li:hover {
    background: var(--primary-light);
}

.log-close a {
    color: var(--text-muted);
    display: block;
    cursor: pointer;
    line-height: 18px;
    padding: 0 0 0 4px;
}

#log-box strong {
    font-size: 12px;
    color: #fff;
}

.sidebar-hide {
    display: none !important;
}

/* Picture boxes */
.picture-box {
    background: var(--surface);
    margin: 0 0 10px;
    padding: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.picture-img {
    max-width: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
    transition-duration: .5s;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.picture-img a img {
    float: left;
    max-width: 100%;
    width: auto;
    height: auto;
}

.picture-title {
    text-align: center;
    line-height: 30px;
    margin: 0 10px 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 13px;
}

#picture {
    margin: 0 -5px;
}

#picture .video, #picture .picture, #picture .post {
    position: relative;
    float: left;
    width: 25%;
    min-height: 1px;
    margin: 0;
    padding: 0 5px;
    transition-duration: .5s;
}

.hide-box, .hide-excerpt {
    display: none;
    cursor: pointer;
}

.picture-img:hover .hide-box {
    display: block;
}

.picture-img:hover .hide-excerpt {
    display: block;
}

.hide-box {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, .4);
    transition: all .2s ease-in;
}

.hide-excerpt {
    position: absolute;
    color: #fff;
    padding: 5%;
    z-index: 2;
}

@media screen and (max-width: 800px) {
    #picture .video, #picture .picture, #picture .post {
        width: 33.3333%;
    }
}

@media screen and (max-width: 600px) {
    #picture .video, #picture .picture, #picture .post {
        width: 50%;
    }
}

@media screen and (min-width: 999px) {
    .picture-img {
        overflow: hidden;
    }
}

@media screen and (max-width: 480px) {
    .archive #video, .archive #picture, .home #picture, .page #picture {
        margin: 0 -3px;
    }
}

/* Grid cat */
.grid-cat {
    position: absolute;
    margin: 1px 6px;
    padding: 5px 14px;
    z-index: 2;
    background: rgba(0, 150, 136, .82);
    border-radius: var(--radius-sm) 0 0 0;
}

.grid-cat a {
    font-size: 1.5rem;
    color: #fff;
}

.grid-cat a:hover {
    color: #fff;
}

/* Product / tao */
.tao-box {
    background: var(--surface);
    margin: 0 0 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.tao-img {
    max-width: 100%;
    width: auto;
    height: auto;
    overflow: hidden;
    transition-duration: .3s;
}

.tao-img a img {
    float: left;
    max-width: 100%;
    width: auto;
    height: auto;
}

.tao-title {
    text-align: center;
    line-height: 30px;
    margin: 0 10px 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#tao {
    margin: 0 -5px;
}

.archive .tao, .taocat .tao {
    position: relative;
    float: left;
    min-height: 1px;
    padding: 0 5px;
    transition-duration: .5s;
}

@media screen and (min-width: 900px) {
    .archive .tao, .taocat .tao {
        width: 25%;
    }
}

/* ============================================================
   Custom Scrollbar
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #c8d8e0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
    Selection Color
    ============================================================ */
::selection {
    background: rgba(0, 150, 136, .4);
    color: var(--text);
}

::-moz-selection {
    background: rgba(0, 150, 136, .4);
    color: var(--text);
}

/* ============================================================
   Responsive — 768px (Tablet)
   ============================================================ */
@media screen and (max-width: 768px) {
    #content {
        padding: 0 10px;
    }

    .post:not(#articleDetail), #page .page {
        padding: 16px 16px 56px;
    }

    .entry-header h2 a {
        font-size: 1.35rem;
    }

    .single-content img {
        max-width: 100%;
        height: auto;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #comment-author-info {
        width: 100%;
    }

    .comment-tool {
        width: 100%;
        margin-top: 10px;
    }

    .nav-single {
        grid-template-columns: 1fr;
    }

    .nav-single .nav-next {
        text-align: left;
    }

    .nav-single .nav-next .post-nav {
        justify-content: flex-start;
    }

    .single-meta {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin: 0 0 10px;
    }

    #fontsize {
        position: static;
        display: inline-block;
        margin: 0 0 10px;
    }

    .single-cat-tag {
        position: static;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        height: auto;
        margin-top: 10px;
    }

    .entry-meta {
        position: static;
        left: auto;
        bottom: auto;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
    }

    .breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        height: 36px;
        line-height: 36px;
        padding: 0 10px;
        display: flex;
        align-items: center;
         gap: 4px;
     }

     .widget ul li {
         white-space: normal;
     }
 }

/* ============================================================
   Responsive — 480px (Mobile)
   ============================================================ */
@media screen and (max-width: 480px) {
    .top-nav {
        padding: 0 10px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .thumbnail {
        float: none;
        max-width: 100%;
        width: 100%;
        margin: 0 0 10px 0;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }

    .thumbnail a img {
        width: 100%;
        height: auto;
        max-height: 160px;
        object-fit: cover;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }

    .entry-meta {
        position: static;
        margin-top: 10px;
        left: auto;
        bottom: auto;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11.5px;
    }

    .post:not(#articleDetail), #page .page {
        padding: 0 0 46px;
        border-radius: var(--radius);
        margin: 0 0 12px;
    }

    .post .entry-header,
    .post .entry-content,
    .post .entry-more {
        padding-left: 14px;
        padding-right: 14px;
    }

    .post .entry-header {
        padding-top: 12px;
    }

    .post .entry-meta {
        padding-left: 14px;
        padding-right: 14px;
        margin-top: 8px;
    }

    .entry-header h2 a {
        font-size: 15px;
        line-height: 1.5;
    }

    .archive-content {
        font-size: 13.5px;
        line-height: 1.75;
        margin-top: 6px;
    }

    .entry-more a {
        padding: 0 16px;
        font-size: 12.5px;
        line-height: 34px;
        border-radius: var(--radius) 0 var(--radius) 0;
    }

    .title-l {
        top: 0;
        height: 28px;
        display: none;
    }

    .authorbio {
        flex-direction: column;
        text-align: center;
    }

    .authorbio .avatar {
        margin: 0 auto;
    }

    #respond {
        padding: 16px;
    }

    .search-main-inner {
        padding: 20px;
    }

    .search-input-wrap {
        flex-direction: column;
    }

    .search-input-wrap button {
        width: 100%;
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .footer-sep {
        display: none;
    }

    .single-meta {
        position: static;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 10px;
    }

    #fontsize {
        position: static;
        display: inline-block;
    }

    .single-cat-tag {
        position: static;
        height: auto;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    #social .social-main {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .comment-list .children {
        margin-left: 16px;
    }

    #respond #submit {
        width: 100%;
    }

    .pagination {
        justify-content: center;
        float: none;
        margin: 15px 0;
    }

    .breadcrumb {
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        height: 32px;
        line-height: 32px;
        padding: 0 8px;
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .single-tag li {
        width: 50%;
     }

     .nav-single {
         grid-template-columns: 1fr;
     }

    .meta-nav {
        width: 100%;
        float: none;
        white-space: normal;
        text-overflow: clip;
        margin-bottom: -1px;
    }

    .post-password-form input[type="password"] {
        width: 100%;
        margin-bottom: 8px;
    }

    .post-password-form input[type="submit"] {
        width: 100%;
        margin: 0;
    }

    .about-inf span {
        float: none;
        width: 100%;
        display: block;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 8px 0;
    }

    .about-pn {
        border-right: none;
    }
}

/* ============================================================
   Article Grid — New Card Design (vertical cover on top)
   ============================================================ */

/* 文章列表网格容器 */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 单张卡片 */
.post-card {
    background: var(--surface);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    height: 140px;
}

.post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.12);
}

.post-card__cover-link {
    display: block;
    overflow: hidden;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}

.post-card__cover {
    position: relative;
    width: 140px;
    height: 140px;
    overflow: hidden;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.post-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.post-card:hover .post-card__img {
    transform: scale(1.05);
}

.post-card__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.4;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.post-card__badge--new {
    background: rgba(255, 107, 107, 0.85);
    color: #fff;
}

.post-card__badge--top {
    background: rgba(0, 150, 136, 0.85);
    color: #fff;
}

.post-card__body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    justify-content: space-between;
}

.post-card__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    height: 18px;
    overflow: hidden;
}

.post-card__cat {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(0, 150, 136, 0.08);
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, border-color 0.2s ease;
    line-height: 1.4;
    border: 1px solid rgba(0, 150, 136, 0.12);
}

.post-card__cat:hover {
    background: rgba(0, 150, 136, 0.12);
    border-color: rgba(0, 150, 136, 0.25);
}

.post-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    flex: 1;
}

.post-card__title a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.post-card__title a:hover {
    color: var(--primary);
}

.post-card__summary {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.post-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    color: var(--text-light);
    font-size: 11px;
    min-width: 0;
    overflow: hidden;
}

.post-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card__meta-item svg {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    opacity: 0.6;
}

.post-card__meta-item--link {
    transition: color 0.2s ease;
}

.post-card__meta-item--link:hover {
    color: var(--primary);
}

.post-card__read-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: none;
    text-decoration: none;
}

.post-card__read-btn:hover {
    background: #00897b;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 150, 136, 0.25);
    text-decoration: none;
}

.post-card__read-btn:visited {
    color: #fff !important;
}

/* ---- 响应式 ---- */

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.post-card {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .article-grid {
        gap: 12px;
    }

    .post-card {
        height: 130px;
    }

    .post-card__cover-link {
        width: 130px;
        height: 130px;
    }

    .post-card__cover {
        width: 130px;
        height: 130px;
    }

    .post-card__body {
        padding: 10px 12px;
        gap: 4px;
    }

    .post-card__title {
        font-size: 13px;
    }

    .post-card__summary {
        font-size: 10px;
    }
}

@media screen and (max-width: 480px) {
    .article-grid {
        gap: 10px;
    }

    .post-card {
        height: 110px;
    }

    .post-card__cover-link {
        width: 110px;
        height: 110px;
    }

    .post-card__cover {
        width: 110px;
        height: 110px;
    }

    .post-card__body {
        padding: 8px 10px;
        gap: 3px;
    }

    .post-card__title {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .post-card__summary {
        display: none;
    }

    .post-card__meta {
        font-size: 10px;
        gap: 4px;
    }

    .post-card__meta-item svg {
        width: 10px;
        height: 10px;
    }

    .post-card__read-btn {
        padding: 3px 8px;
        font-size: 10px;
    }
}
