/* 手机模式（屏幕宽度≤767px，主流手机适配） */
@media (max-width: 767px) {
  /* 定位目标元素，减小上边距 */
  .widget.widget_tabs.clear {
    margin-top: -40px !important; /* 核心：修改数值减小上边距，可按需调0/5/10px等 */
  }
}
/* 分页基础样式 */
.page-navigator > li > a, .page-navigator > li > span {
    line-height: 1.42857143;
    padding: 6px 12px;
    border-radius: 8px;
}

/* 分类标题区域样式 - 渐变下划线 */
.image-header-area {
    display: block;
    padding-bottom: 3px;
}
.image-category-title {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 11px;
    margin: 0 0 15px 0;
    display: inline-block;
    position: relative;
    border-bottom: none !important;
}
.image-category-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 80%;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
    background-size: 200% auto;
    border-radius: 2px;
}

/* 分类描述样式 */
#image-cate-desc {
    font-size: 13px;
    color: #666;
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 10px 0 10px 0;
    padding-left: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    word-wrap: break-word;
}

/* 相册整体布局 */
.gallery-layout {
    width: 96%;
    margin: 0 auto;
    border-radius: 16px;
    padding: 0 0 15px 0;
    margin-top: 0;
}
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 10px 0;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 相册卡片基础样式 */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease-out;
    background: #fff;
    backface-visibility: hidden;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 相册图片容器样式 */
.gallery-img-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 10px 10px 0 0;
}
.gallery-img-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.15) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}
.gallery-item:hover .gallery-img-mask {
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 60%, rgba(0,0,0,0.25) 100%);
}
.gallery-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* 相册中心图标样式 */
.gallery-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-center-logo .iconfont {
    font-size: 40px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.gallery-item:hover .gallery-center-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 隐藏/加密相册样式（马赛克背景） */
.gallery-item-hidden {
    background: 
        linear-gradient(145deg, #d5d5d5 0%, #cccccc 100%),
        repeating-linear-gradient(0deg, #b0b0b0 0 8px, transparent 8px 16px),
        repeating-linear-gradient(90deg, #c0c0c0 0 8px, transparent 8px 16px);
    background-blend-mode: overlay;
    background-size: 100% 100%;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.03), 0 3px 10px rgba(0, 0, 0, 0.06);
}
.gallery-item-hidden .gallery-center-logo {
    display: none !important;
    opacity: 0 !important;
}
.gallery-lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 22px;
}
.gallery-img-wrapper.gallery-locked {
    background: 
        linear-gradient(180deg, #d0d0d0 0%, #c5c5c5 100%),
        repeating-linear-gradient(0deg, #aaabaa 0 8px, transparent 8px 16px),
        repeating-linear-gradient(90deg, #b5b5b5 0 8px, transparent 8px 16px);
    background-blend-mode: overlay;
    background-size: 100% 100%;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 14px 14px 0 0;
}

/* 相册标题（底部说明）样式 */
.gallery-item-caption {
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    background: #fff;
    border-radius: 0 0 14px 14px;
}

/* 暗色模式适配样式 */
html.theme-dark .image-category-title {
    color: #e0e0e0;
    border-bottom: none !important;
}
html.theme-dark .image-category-title::after {
    background: linear-gradient(135deg, #0069d9 0%, #1eb8ff 50%, #5a4acf 100%);
    background-size: 200% auto;
    width: 80%;
    border-radius: 2px;
    height: 4px;
    left: 0;
    bottom: -8px;
}
html.theme-dark #image-cate-desc {
    color: #bbb !important;
    margin-bottom: 10px !important;
}
html.theme-dark .gallery-item {
    background: #2a2a2a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
html.theme-dark .gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
html.theme-dark .gallery-item-hidden {
    background: 
        linear-gradient(145deg, #2d2d2d 0%, #232323 100%),
        repeating-linear-gradient(0deg, #4f4f4f 0 8px, transparent 8px 16px),
        repeating-linear-gradient(90deg, #404040 0 8px, transparent 8px 16px);
    background-blend-mode: overlay;
    background-size: 100% 100%;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.1), 0 3px 10px rgba(0, 0, 0, 0.15);
}
html.theme-dark .gallery-img-wrapper.gallery-locked {
    background: 
        linear-gradient(180deg, #2a2a2a 0%, #202020 100%),
        repeating-linear-gradient(0deg, #4a4a4a 0 8px, transparent 8px 16px),
        repeating-linear-gradient(90deg, #383838 0 8px, transparent 8px 16px);
    background-blend-mode: overlay;
    background-size: 100% 100%;
    border: 1px solid rgba(255,255,255,0.03);
}
html.theme-dark .gallery-lock-icon {
    background: rgba(255,255,255,0.2);
}
html.theme-dark .gallery-item-caption {
    color: #ddd;
    background: #2a2a2a;
}
html.theme-dark .gallery-center-logo .iconfont {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
html.theme-dark .wrapper-md.image-header-area {
    background: #0a0a0a;
}

/* 移动端适配 - 平板/小屏 */
@media (max-width: 768px) {
    .image-category-title {
        font-size: 18px;
        letter-spacing: 1px;
        padding-top: 11px;
        margin-bottom: 12px;
    }
    .image-category-title::after {
        left: 0;
        bottom: -10px;
        width: 80%;
        height: 3px;
        background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
        background-size: 200% auto;
        border-radius: 1.5px;
    }
    #image-cate-desc {
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
        margin: 8px 0 8px 0 !important;
    }
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .gallery-img-wrapper {
        height: 140px;
    }
    .gallery-item-caption {
        padding: 10px 6px;
        font-size: 13px;
    }
    .gallery-lock-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .gallery-center-logo .iconfont {
        font-size: 32px;
    }
}
/* 移动端适配 - 手机 */
@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-img-wrapper {
        height: 120px;
    }
    .gallery-lock-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .gallery-center-logo .iconfont {
        font-size: 28px;
    }
}
/* 友情链接页面核心样式 - 整体布局与卡片样式 */
/* 链接卡片列布局：50%宽度、间距、盒模型 */
#link-page-wrap .col-sm-6 {
    margin-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;
    float: left;
    width: 50%;
    box-sizing: border-box;
}

/* 链接卡片基础样式 + 悬浮动效 */
#link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f5f5f5;
    padding: 16px 16px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    width: 100%;
    min-height: 88px;
    box-sizing: border-box;
}

/* 卡片悬浮效果：上移、阴影加深 */
#link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
    color: #1677ff;
}

/* 链接头像容器样式 */
#link-page-wrap .thumb-sm.avatar.m-r {
    margin-right: 12px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}
/* 头像图片样式：圆形、自适应 */
#link-page-wrap .thumb-sm.avatar.m-r img.img-square {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}
/* 头像状态点样式 */
#link-page-wrap .thumb-sm.avatar.m-r .bg-danger {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #fff;
    right: 0;
    bottom: 0;
}

/* 链接标题文字：省略号、字体样式 */
#link-page-wrap .text-ellipsis:first-of-type {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 链接描述文字：省略号、浅色调 */
#link-page-wrap .text-muted.clear.text-ellipsis {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 通用间距：顶部外边距 */
#link-page-wrap .m-t-md {
    margin-top: 20px;
}

/* 友情链接标题样式：字体、渐变下划线 */
#link-page-wrap .text-lg.font-weight-bold.m-b-sm {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 11px;
    margin-top: 0;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}
/* 标题渐变下划线 */
#link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 80%;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
    background-size: 200% auto;
    border-radius: 2px;
}

/* 响应式适配：768px以下屏幕 */
@media (max-width: 768px) {
    #link-page-wrap .col-sm-6 {
        margin-bottom: 12px;
        padding-left: 4px;
        padding-right: 4px;
        width: 50%;
        float: left;
        box-sizing: border-box;
    }
    #link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg {
        padding: 14px;
        min-height: 80px;
    }
    #link-page-wrap .thumb-sm.avatar.m-r {
        width: 36px;
        height: 36px;
    }
    #link-page-wrap .text-ellipsis:first-of-type {
        font-size: 12px;
    }
    #link-page-wrap .text-muted.clear.text-ellipsis {
        font-size: 10px;
        line-height: 1.4;
    }
    #link-page-wrap .text-lg.font-weight-bold.m-b-sm {
        font-size: 18px;
        letter-spacing: 1px;
        padding-top: 11px;
        margin-bottom: 12px;
        display: inline-block;
        position: relative;
    }
    #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
        left: 0;
        bottom: -10px;
        width: 80%;
        height: 3px;
        background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
        background-size: 200% auto;
        border-radius: 1.5px;
    }
}

/* 暗色模式适配样式 */
html.theme-dark #link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg {
    background: #2d2d2d;
    border-color: #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
}
html.theme-dark #link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #555;
    color: #90ee90;
}
html.theme-dark #link-page-wrap .thumb-sm.avatar.m-r img.img-square {
    border-color: #444;
}
html.theme-dark #link-page-wrap .text-ellipsis:first-of-type {
    color: #e0e0e0;
}
html.theme-dark #link-page-wrap .text-muted.clear.text-ellipsis {
    color: #bbb;
}
html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm {
    color: #e0e0e0;
}
html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    background: linear-gradient(135deg, #0069d9 0%, #1eb8ff 50%, #5a4acf 100%);
    background-size: 200% auto;
    width: 80%;
    border-radius: 2px;
    height: 4px;
    left: 0;
    bottom: -8px;
}

/* 暗色模式响应式适配：768px以下屏幕 */
@media (max-width: 768px) {
    html.theme-dark #link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    html.theme-dark #link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
        height: 3px;
        bottom: -10px;
    }
}
/* 主标题样式 - 渐变下划线 */
#link-page-wrap .text-lg.font-weight-bold.m-b-sm {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 11px;
    margin-top: 0;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}
#link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 80%;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
    background-size: 200% auto;
    border-radius: 2px;
}

/* 项目数量统计文本样式 */
#repo-count-desc {
    font-size: 13px;
    color: #666;
    letter-spacing: 1px;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    text-align: left;
}

/* 项目列表容器 - 居中+宽度调整 */
#github-list {
    width: 92%;
    margin: 0 auto;
}

/* 单个项目卡片基础布局 */
.github_item {
    padding: 8px;
    margin-bottom: 0px;
    float: left;
    box-sizing: border-box;
    width: 100%;
}

/* 电脑端 - 2列布局 */
@media (min-width: 768px) {
    .github_item {
        width: 50%;
    }
}

/* 项目卡片容器样式 */
.github_item .panel {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 20px 18px;
    position: relative;
    min-height: auto;
    gap: 10px;
}

/* 卡片悬浮效果 */
.github_item .panel:hover {
    box-shadow: 0 12px 30px rgba(129, 199, 132, 0.15);
    transform: translateY(-8px) scale(1.02);
    transform-origin: center bottom;
}

/* 卡片底部容器 - 两端对齐 */
.github-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    width: 100%;
    gap: 10px;
    padding-top: 8px;
}

/* 编程语言标签样式 */
.github_language {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin: 0 !important;
    color: #6c757d !important;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    float: none !important;
    position: static !important;
}

/* 各语言标签背景色 */
.language-JavaScript { background-color: #f7df1e; }
.language-Python { background-color: #3776ab; color: #fff !important; }
.language-PHP { background-color: #777bb4; color: #fff !important; }
.language-HTML { background-color: #e34f26; color: #fff !important; }
.language-CSS { background-color: #1572b6; color: #fff !important; }
.language-TypeScript { background-color: #3178c6; color: #fff !important; }
.language-Java { background-color: #007396; color: #fff !important; }
.language-C { background-color: #00599c; color: #fff !important; }
.language-C++ { background-color: #00599c; color: #fff !important; }
.language-Unknown { background-color: #e9ecef; color: #6c757d !important; }

/* 项目名称 - 单行省略 */
.github_item .repo-name {
    font-size: 17px;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 项目统计信息 */
.github_item .repo-stats {
    font-size: 12px;
    color: #6c757d;
    display: block;
    margin: 0;
}

/* 项目描述 - 高度限制 */
.github_item .repo-desc {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
    min-height: 20px;
    max-height: 100px;
    overflow: hidden;
    margin: 0;
}

/* 访问按钮样式 */
.github_item .repo-btn {
    display: block;
    width: 60%;
    padding: 12px 0;
    border-radius: 6px;
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    line-height: 1.2;
    background: linear-gradient(90deg, #4e93e6 0%, #66cc99 25%, #9966cc 50%, #66cc99 75%, #4e93e6 100%);
    background-size: 200% 100%;
    transform: none;
    margin: 0 !important;
    flex-shrink: 0;
    float: none !important;
    position: static !important;
}

/* 按钮悬浮效果 */
.github_item .repo-btn:hover {
    background-position: right center;
    box-shadow: 0 4px 16px rgba(78, 147, 230, 0.2);
    transform: translateY(-2px);
    transform-origin: center;
}

/* 空数据提示 */
.douban-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
    border-radius: 8px;
    width: 100%;
}
.douban-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #e0e0e0;
    display: block;
}

/* 加载/错误状态 */
#github-loading, #github-error {
    padding: 40px 0;
    color: #6c757d;
}
#github-loading i, #github-error i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #6c757d;
}

/* 提示容器 */
#github-tips {
    color: #6c757d;
    font-size: 12px;
    margin: 0 auto 20px auto;
    width: 100%;
    box-sizing: border-box;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 移动端标题 */
    #link-page-wrap .text-lg.font-weight-bold.m-b-sm {
        font-size: 18px;
        letter-spacing: 1px;
        padding-top: 11px;
        margin-bottom: 12px;
        display: inline-block;
        position: relative;
    }
    #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
        left: 0;
        bottom: -10px;
        width: 80%;
        height: 3px;
        background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
        background-size: 200% auto;
        border-radius: 1.5px;
    }

    /* 移动端统计文本 */
    #repo-count-desc {
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
        margin-top: 8px !important;
        margin-bottom: 15px !important;
    }

    /* 移动端项目列表 */
    #github-list { width: 92%; }

    /* 移动端项目卡片 */
    .github_item {
        padding: 6px;
        margin-bottom: 0;
        width: 100%;
    }

    /* 移动端卡片内边距 */
    .github_item .panel {
        padding: 16px 14px;
        border-radius: 6px;
        min-height: auto;
        gap: 8px;
    }

    /* 移动端卡片悬浮 */
    .github_item .panel:hover {
        transform: translateY(-4px) scale(1.01);
    }

    /* 移动端项目名称 */
    .github_item .repo-name { font-size: 15px; }

    /* 移动端项目描述 */
    .github_item .repo-desc {
        font-size: 12px;
        min-height: 20px;
        max-height: 80px;
    }

    /* 移动端按钮 */
    .github_item .repo-btn {
        padding: 10px 0;
        font-size: 12px;
        width: 60%;
    }

    /* 移动端提示 */
    #github-tips { font-size: 11px !important; }

    /* 移动端卡片底部 */
    .github-footer {
        gap: 8px;
        padding-top: 6px;
    }

    /* 移动端语言标签 */
    .github_language {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* 暗色模式适配 */
html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm { color: #e0e0e0; }
html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    background: linear-gradient(135deg, #0069d9 0%, #1eb8ff 50%, #5a4acf 100%);
    background-size: 200% auto;
    width: 80%;
    border-radius: 2px;
    height: 4px;
    left: 0;
    bottom: -8px;
}
html.theme-dark #repo-count-desc { color: #bbb !important; }
html.theme-dark #github-tips { color: #bbb !important; }
html.theme-dark .github_item .panel {
    background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-height: auto;
}
html.theme-dark .github_item .panel:hover { box-shadow: 0 12px 30px rgba(129, 199, 132, 0.3); }
html.theme-dark .github_language { color: #bbb !important; }
html.theme-dark .language-Unknown {
    background-color: #343a40;
    color: #bbb !important;
}
html.theme-dark .github_item .repo-name { color: #e0e0e0; }
html.theme-dark .github_item .repo-stats { color: #bbb; }
html.theme-dark .github_item .repo-desc { color: #d0d0d0; }
html.theme-dark .github_item .repo-btn {
    background: linear-gradient(90deg, #3a7bd5 0%, #5eb876 25%, #8e54e9 50%, #5eb876 75%, #3a7bd5 100%);
    background-size: 200% 100%;
}
html.theme-dark .github_item .repo-btn:hover { box-shadow: 0 4px 16px rgba(58, 123, 213, 0.3); }
html.theme-dark .douban-empty { color: #777; }
html.theme-dark .douban-empty i { color: #555; }
html.theme-dark #github-loading, html.theme-dark #github-error { color: #bbb; }
html.theme-dark #github-loading i, html.theme-dark #github-error i { color: #bbb; }

/* 暗色模式移动端适配 */
@media (max-width: 768px) {
    html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
        height: 3px;
        bottom: -10px;
    }
    html.theme-dark #link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    html.theme-dark #link-page-wrap .list-group-item.no-borders.box-shadow-wrap-lg:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
}
/* 归档页面 - 核心样式 */

/* 1. GitHub风格归档标题样式 */
#file-page-wrap .text-lg.font-weight-bold.m-b-sm {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 11px;
    margin: 0 0 15px 0;
    display: inline-block;
    position: relative;
}
/* 标题底部渐变下划线 */
#file-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 80%;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
    background-size: 200% auto;
    border-radius: 2px;
}

/* 2. 归档统计文本样式 */
#file-page-wrap #archive-count-desc {
    font-size: 13px;
    color: #666;
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 10px 0 12px 0;
    padding: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* 3. 归档时间线容器样式 */
#file-page-wrap #archive-timeline-wrap {
    margin-top: 0;
    padding-top: 0;
}

/* 4. 移动端适配（768px以下） */
@media (max-width: 768px) {
    /* 标题适配 */
    #file-page-wrap .text-lg.font-weight-bold.m-b-sm {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    /* 标题下划线适配 */
    #file-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
        bottom: -10px;
        height: 3px;
        border-radius: 1.5px;
    }
    /* 统计文本适配 */
    #file-page-wrap #archive-count-desc {
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
        margin: 8px 0 8px 0 !important;
    }
}

/* 5. 暗色模式适配 */
html.theme-dark #file-page-wrap .text-lg.font-weight-bold.m-b-sm {
    color: #e0e0e0;
}
html.theme-dark #file-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    background: linear-gradient(135deg, #0069d9 0%, #1eb8ff 50%, #5a4acf 100%);
}
html.theme-dark #file-page-wrap #archive-count-desc {
    color: #bbb !important;
}

/* 6. 隐藏侧边栏文章目录 */
#file-page-wrap .tag_toc_body {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
/* 豆瓣清单通用基础样式 - 卡片、布局、交互 */
.douban_item {
    padding: 8px;
    margin-bottom: 24px;
}
.douban_item .panel {
    border: none;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}
.douban_item .panel:hover {
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
}

/* 图片容器及图片交互样式 */
.douban-image-container {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    border-radius: 0;
}
.douban-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    filter: brightness(0.98) contrast(1.02);
    padding: 1.5px;
    background-color: #ffffff;
    box-sizing: border-box;
}
.douban_item .panel:hover .douban-list {
    transform: scale(1.08);
    filter: brightness(1.05) contrast(1.05) saturate(1.05);
}

/* 卡片底部标题样式 */
.douban_item .panel-footer {
    background-color: transparent;
    padding: 7px 0px;
    text-align: center;
    border-top: none;
    margin-top: auto;
    position: relative;
}

/* 激活态通用样式 */
.douban-card-dashed-box.active,
.douban-tips-container.active,
.douban-content.active {
    display: block;
}
.douban-tips-container.active {
    display: flex;
}

/* 数量统计样式 */
.douban-count {
    font-size: 13px;
    color: #6c757d;
    margin: 0 auto 15px auto;
    text-align: center;
    padding: 8px 0;
    width: 100%;
}

/* 容器布局样式 - 虚线框、提示栏、内容包裹 */
.douban-card-dashed-box {
    margin: 0 auto 25px auto;
    border: 1px dashed #c0c0c0;
    border-radius: 8px;
    padding: 25px 15px;
    box-sizing: border-box;
    display: none;
    max-width: 95%;
}
.douban-tips-container {
    color: #6c757d;
    font-size: 12px;
    padding: 10px 16px;
    background-color: #f8fbff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
    border: 1px solid #f0f7ff;
    display: inline-flex;
    align-items: center;
    gap: 0px;
    margin: 0 auto 20px auto;
    box-sizing: border-box;
    display: none;
    max-width: 100%;
    width: 100%;
}
.douban-tips-container i.fontello-clock-o {
    color: #007bff;
    font-size: 14px;
}
.douban-content-wrapper {
    padding: 0 8px;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 100%;
}

/* 列布局与主标题样式 */
#link-page-wrap .col-sm-6 {
    margin-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;
    float: left;
    width: 50%;
    box-sizing: border-box;
}
#link-page-wrap .text-lg.font-weight-bold.m-b-sm {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    padding-top: 11px;
    margin-top: 0;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    width: auto;
    max-width: none;
}
#link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 80%;
    height: 4px;
    background: linear-gradient(135deg, #007bff 0%, #2ecbff 50%, #6a5acd 100%);
    background-size: 200% auto;
    border-radius: 2px;
}

/* 标签切换样式 */
.douban-tabs {
    display: flex;
    justify-content: flex-start;
    margin: 15px 0 20px 0;
    padding-bottom: 0;
    border-bottom: none;
    max-width: 100%;
    width: 100%;
}
.douban-tab {
    padding: 8px 16px;
    margin: 0 10px 0 0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    background-color: #fafbfc;
    color: #999;
    border: 1px solid #f5f5f5;
}
.douban-tab.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    border-color: transparent;
}
.douban-tab:not(.active):hover {
    background-color: #f8fbff;
    color: #007bff;
    transform: translateY(-2px);
    border-color: #f0f7ff;
}

/* 内容切换动画 */
.douban-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 空数据占位样式 */
.douban-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px;
    font-weight: normal;
    border-radius: 0 0 8px 8px;
}
.douban-empty i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #e0e0e0;
    display: block;
}

/* 桌面端适配 */
@media (min-width: 768px) {
    .douban-card-dashed-box {
        max-width: 97%;
    }
    .douban-content-wrapper {
        max-width: 100%;
    }
}

/* 移动端适配（浅色模式） */
@media (max-width: 767px) {
    #link-page-wrap .text-lg.font-weight-bold.m-b-sm {
        font-size: 18px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
        bottom: -10px;
        height: 3px;
        border-radius: 1.5px;
    }
    .douban-tabs {
        margin: 12px 0 18px 0;
    }
    .douban-tab {
        padding: 6px 12px;
        font-size: 13px;
    }
    .douban_item {
        padding: 6px;
        margin-bottom: 16px;
    }
    .douban_item .panel {
        border-radius: 0 0 6px 6px;
    }
    .douban_item .panel:hover {
        transform: translateY(-4px) scale(1.01);
    }
    .douban_item .panel-footer {
        padding: 5px 8px;
    }
    .douban_item .panel-footer span {
        font-size: 13px;
    }
    .douban-tips-container {
        padding: 8px 12px;
        font-size: 11px;
        background-color: #fcfdff;
        border-color: #f5faff;
    }
    .douban-tips-container i.fontello-clock-o {
        font-size: 12px;
    }
    .douban-count {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

/* 暗色模式适配 */
html.theme-dark .douban_item .panel {
    background: linear-gradient(180deg, #2d2d2d 0%, #252525 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
html.theme-dark .douban_item .panel:hover {
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.3);
}
html.theme-dark .douban-list {
    background-color: #2d2d2d;
    filter: brightness(0.95) contrast(1.05);
}
html.theme-dark .douban_item .panel:hover .douban-list {
    filter: brightness(1.1) contrast(1.08) saturate(1.05);
}
html.theme-dark .douban_item .panel-footer span {
    color: #e0e0e0;
}
html.theme-dark .douban_item .panel:hover .panel-footer span {
    color: #2ecbff;
    text-decoration-color: rgba(46, 203, 255, 0.5);
}
html.theme-dark .douban-card-dashed-box {
    border-color: #444;
}
html.theme-dark .douban-tips-container {
    color: #bbb;
    background-color: #2a3448;
    border-color: #354058;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}
html.theme-dark .douban-tips-container i.fontello-clock-o {
    color: #2ecbff;
}
html.theme-dark .douban-count {
    color: #bbb;
}
html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm {
    color: #e0e0e0;
}
html.theme-dark #link-page-wrap .text-lg.font-weight-bold.m-b-sm::after {
    background: linear-gradient(135deg, #0069d9 0%, #1eb8ff 50%, #5a4acf 100%);
}
html.theme-dark .douban-tab {
    background-color: #333;
    color: #bbb;
    border-color: #444;
}
html.theme-dark .douban-tab.active {
    background-color: #0069d9;
    box-shadow: 0 2px 8px rgba(0, 105, 217, 0.3);
}
html.theme-dark .douban-tab:not(.active):hover {
    background-color: #2a3448;
    color: #2ecbff;
    border-color: #354058;
}
html.theme-dark .douban-empty {
    color: #777;
}
html.theme-dark .douban-empty i {
    color: #555;
}

/* 移动端暗色模式适配 */
@media (max-width: 767px) {
    html.theme-dark .douban_item .panel {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    html.theme-dark .douban_item .panel:hover {
        box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
    }
    html.theme-dark .douban-tabs {
        margin: 12px 0 18px 0;
    }
}
.time_sidebar #widget-tabs-time,
.time-tree-container,
.time-tree-item,
.tree-align-wrap,
.tree-dot {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
}
.time_sidebar #widget-tabs-time {
    box-shadow: none;
}
.time-tree-container {
    position: relative;
    width: 100%;
    margin: 15px 0;
    padding: 0 !important;
}
.time-tree-container::before {
    content: '';
    position: absolute;
    left: 3px !important;
    top: -5px;
    bottom: -8px !important;
    width: 0.8px;
    background: #e0e6ed;
    z-index: 1;
}
.time-tree-item:last-child::after {
    content: '';
    position: absolute;
    left: 0 !important;
    bottom: -8px !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #999 !important;
    z-index: 3;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.time-tree-item {
    position: relative;
    margin-bottom: 20px;
    line-height: 1;
    padding-left: 0 !important;
}
.time-tree-item:last-child {
    margin-bottom: 0 !important;
}
.tree-align-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
}
.tree-dot {
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    flex-shrink: 0;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 3;
}
.tree-item-1 .tree-dot { background: #7ec8e3 !important; }
.tree-item-2 .tree-dot { background: #f8b5d4 !important; }
.tree-item-3 .tree-dot { background: #90e0a9 !important; }
.tree-item-1 .tree-dot:hover { background: #54b9d8 !important; transform: scale(1.2); }
.tree-item-2 .tree-dot:hover { background: #f590c1 !important; transform: scale(1.2); }
.tree-item-3 .tree-dot:hover { background: #66d288 !important; transform: scale(1.2); }
.tree-time {
    font-size: 12px;
    color: #888;
    line-height: 1.2;
    margin: 0 !important;
}
.tree-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 3px 0 0 14px !important;
    padding: 0 !important;
    word-break: break-all;
}
.tree-empty {
    font-size: 14px;
    color: #666;
    margin: 8px 0 8px 14px !important;
    line-height: 1.6;
}
.highlightlink {
    color: inherit;
    text-decoration: none;
}
.highlightlink:hover {
    color: #7ec8e3;
}
.time_header {
    margin: 0 !important;
    padding: 4px 0 2px 0 !important;
    border-bottom: 1px solid #f5f9fc;
    font-weight: normal;
}
.time_header .highlightlink {
    display: inline !important;
}
/* 仅缩小+精致美化未分类/隐私标签图标 - 保留原标签所有样式 */
.tag-item.built-in .unclassified-icon,
.tag-item.built-in .private-icon {
    /* 核心缩小：主屏16px（比之前更小巧） */
    width: 16px;
    height: 16px;
    /* 图标与文字间距：3px更紧凑，不拥挤 */
    margin-right: 3px;
    /* 描边极致细腻：1.7px，比默认更精致不模糊 */
    stroke-width: 1.7;
    /* 清空填充，保留feather图标原生质感 */
    fill: transparent;
    /* 垂直居中：彻底解决图标与文字上下错位问题 */
    align-self: center;
    /* 强制抗挤压：无论标签多窄，图标都不变形 */
    flex-shrink: 0;
    /* 继承父级颜色：完美适配原标签配色，不突兀 */
    stroke: currentColor;
    /* 所有动效过渡：0.25s丝滑，无卡顿 */
    transition: all 0.25s ease-in-out;
}

/* 图标hover精致动效（微旋转+描边加深，无夸张放大，高级感拉满） */
.tag-item.built-in:hover .unclassified-icon,
.tag-item.built-in:hover .private-icon {
    stroke-width: 2; /* 描边轻微加深，更醒目 */
    transform: rotate(5deg); /* 5度微旋转，灵动不浮夸 */
    stroke: currentColor; /* 保留原配色，仅强化描边 */
}

/* 暗色模式适配：图标更清晰，hover对比更柔和 */
html.theme-dark .tag-item.built-in .unclassified-icon,
html.theme-dark .tag-item.built-in .private-icon {
    stroke: #d1d5db; /* 暗色模式浅灰描边，适配深色背景不刺眼 */
    stroke-opacity: 0.9; /* 轻微透感，更高级 */
}
html.theme-dark .tag-item.built-in:hover .unclassified-icon,
html.theme-dark .tag-item.built-in:hover .private-icon {
    stroke: #ffffff; /* 悬浮纯白，对比度拉满，清晰可见 */
    stroke-opacity: 1;
}

/* 手机端响应式：再缩小+取消旋转，适配小屏 */
@media (max-width: 768px) {
    .tag-item.built-in .unclassified-icon,
    .tag-item.built-in .private-icon {
        width: 14px; /* 手机端再缩小到14px，极致小巧 */
        height: 14px;
        margin-right: 2px; /* 间距再收窄，适配小屏布局 */
        stroke-width: 1.8; /* 小尺寸下描边轻微加粗，防止看不清 */
    }
    /* 手机端取消旋转：避免小屏视觉晃眼，保留描边加深即可 */
    .tag-item.built-in:hover .unclassified-icon,
    .tag-item.built-in:hover .private-icon {
        transform: rotate(0);
        stroke-width: 2.1;
    }
}
/* 全局基础样式重置 - 网站常用色 + 更蓝主色 + 暗色模式适配 */
:root {
  --primary-color: #3b82f6; /* 原更蓝的经典主色调 */
  --secondary-color: #f0f8ff; /* 亮色模式辅助色 */
  --text-main: #2c3e50; /* 亮色主要文字 */
  --text-secondary: #7f8c8d; /* 亮色次要文字 */
  --card-bg: #ffffff; /* 亮色卡片背景 */
  --card-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
  --card-shadow-hover: 0 8px 20px rgba(59, 130, 246, 0.1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* 网站常用深色系变量（暗色模式） */
  --dark-bg-main: #18181b;
  --dark-bg-card: #27272a;
  --dark-bg-list: rgba(255, 255, 255, 0.05);
  --dark-bg-list-hover: rgba(255, 255, 255, 0.12);
  --dark-text-main: #f4f4f5;
  --dark-text-secondary: #a1a1aa;
  --dark-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --dark-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.4);
  
  /* 标签卡片专属变量 - 精简+统一间距 */
  --tag-card-hover-shadow: 0 6px 24px rgba(59, 130, 246, 0.12);
  --tag-card-title-hover-color: #2563eb;
  --tag-card-title-hover-bg: rgba(100, 116, 139, 0.1);
  --dark-tag-card-title-hover-bg: rgba(100, 116, 139, 0.2);
  --tag-item-hover-bg: rgba(100, 116, 139, 0.1);
  --dark-tag-item-hover-bg: rgba(100, 116, 139, 0.2);
  --tag-item-margin-bottom: 4px; /* 标签项间距（已精简为4px） */
  --card-title-base-padding: 8px; /* 标题左内边距（保持紧凑8px） */

  /* 联系方式列表变量 */
  --contact-avatar-border: var(--secondary-color);
  --dark-contact-avatar-border: #313138;

  /* 标签操作按钮变量 */
  --tag-btn-size: 24px;
  --tag-btn-icon-size: 16px;
  --tag-edit-color: #10b981;
  --tag-edit-bg: rgba(16, 185, 129, 0.15);
  --tag-edit-bg-hover: rgba(16, 185, 129, 0.3);
  --tag-delete-color: #ef4444;
  --tag-delete-bg: rgba(239, 68, 68, 0.15);
  --tag-delete-bg-hover: rgba(239, 68, 68, 0.3);
  --tag-actions-margin: 80px;
}

/* 暗色模式变量覆盖 - 精简无重复 */
.theme-dark {
  --primary-color: #3b82f6;
  --secondary-color: #313138;
  --text-main: var(--dark-text-main);
  --text-secondary: var(--dark-text-secondary);
  --card-bg: var(--dark-bg-card);
  --card-shadow: var(--dark-shadow);
  --card-shadow-hover: var(--dark-shadow-hover);
  --contact-avatar-border: var(--dark-contact-avatar-border);
  --tag-edit-bg: rgba(16, 185, 129, 0.25);
  --tag-edit-bg-hover: rgba(16, 185, 129, 0.4);
  --tag-delete-bg: rgba(239, 68, 68, 0.25);
  --tag-delete-bg-hover: rgba(239, 68, 68, 0.4);
  --dark-bg-list: rgba(100, 116, 139, 0.1);
}

/* 右侧容器样式 - 统一卡片起始位置 */
#rightAside .wrapper {
  padding: 0;
  max-width: 100%;
}

/* 核心：统一所有卡片样式 - 无冗余 */
.simple-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 10px 14px !important; /* 卡片内边距（保持紧凑值） */
  margin: 14px !important;
  border: none;
  box-shadow: var(--card-shadow);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden !important; /* 确保卡片本身无溢出 */
}

/* 卡片hover动效 - 仅标签卡片特殊处理 */
.simple-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: none;
}
.simple-card:has(.tag-list-container):hover {
  box-shadow: var(--tag-card-hover-shadow);
}

/* 统一所有卡片标题样式（像素级对齐核心）- 紧凑hover高度32px */
.simple-card .card-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  margin: 0 0 12px 0 !important; /* 标题下间距（保持紧凑） */
  padding: 0 0 0 var(--card-title-base-padding) !important; /* 左padding继承变量 */
  position: relative !important; /* 图标/下划线定位基准，强制生效 */
  display: flex !important;
  align-items: center !important;
  gap: 8px !important; /* 图标与文字间距统一 */
  width: 100% !important;
  height: 32px !important; /* 紧凑hover高度（保持） */
  line-height: 1.2 !important;
  box-sizing: border-box !important;
  border-radius: 10px !important; /* 统一圆角，和hover层一致 */
}

/* 标签卡片标题 - 【仅继承】无额外样式，完全复用基础标题规则 */
.simple-card:has(.tag-list-container) .card-title {
  cursor: pointer !important; /* 仅加鼠标指针，其他全继承 */
}

/* 标签卡片标题hover核心 - 【终极修复】100%贴合标题容器，左右无额外padding */
#tag_list .tag_list_title {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important; /* 100%贴合父容器.card-title */
}
#tag_list .tag_list_title a.auto {
  width: 100% !important;
  height: 100% !important; /* 100%贴合父容器.card-title */
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
  border-radius: 10px !important;
  padding: 10px 0 !important; /* 仅上下padding，左右间距由.card-title的左padding控制 */
  margin: 0 !important; /* 无任何边距，避免偏移 */
  position: relative !important;
  z-index: 2 !important;
  box-sizing: border-box !important;
  color: var(--text-main) !important; /* 强制继承文字颜色，避免冲突 */
}
/* hover核心交互 - 背景色+文字色变化，间距天然由父容器提供 */
#tag_list .tag_list_title a.auto:hover {
  background-color: var(--tag-card-title-hover-bg) !important;
  color: var(--tag-card-title-hover-color) !important;
}
/* 暗色模式hover样式 - 无冗余 */
.theme-dark #tag_list .tag_list_title a.auto:hover {
  background-color: var(--dark-tag-card-title-hover-bg) !important;
  color: var(--primary-color) !important;
}

/* 标题图标统一 - 基于带padding的card-title定位，自然和hover左边界有间距 */
.simple-card .card-title::before {
  content: "" !important;
  width: 15px !important;
  height: 15px !important;
  background-color: var(--primary-color) !important;
  mask-size: contain !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  opacity: 0.85 !important;
  flex-shrink: 0 !important;
  display: block !important;
}
/* 标签卡片标题hover时图标变色 - 直接绑定card-title，触发稳定 */
.simple-card:has(.tag-list-container) .card-title:hover::before {
  opacity: 1 !important;
  background-color: var(--tag-card-title-hover-color) !important;
}
.theme-dark .simple-card:has(.tag-list-container) .card-title:hover::before {
  background-color: var(--primary-color) !important;
}

/* 不同卡片标题图标 - 保留原有，无冗余 */
.simple-card:has(.contact-list) .card-title::before {
  mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  -webkit-mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.simple-card:has(.card-content) .card-title::before {
  mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  -webkit-mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.simple-card:has(.tag-list-container) .card-title::before {
  mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
  -webkit-mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z'/%3E%3Cline x1='7' y1='7' x2='7.01' y2='7'/%3E%3C/svg%3E");
}
.simple-card:has(.time-history-list) .card-title::before {
  mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
  -webkit-mask-image: 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='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

/* 下划线修复 - 【适配padding】left:0，基于带padding的card-title定位，和图标左对齐 */
.simple-card .card-title::after {
  content: "" !important;
  position: absolute !important;
  left: var(--card-title-base-padding) !important; /* 下划线和图标左边界对齐 */
  bottom: 0 !important; /* 适配统一高度，无偏移 */
  width: 28px !important;
  height: 2px !important;
  background: linear-gradient(90deg, var(--primary-color), transparent) !important;
  border-radius: 1px !important;
  z-index: 1 !important;
  transition: width 0.3s ease !important;
}
/* 标签卡片下划线hover增长 - 保留功能 */
.simple-card:has(.tag-list-container) .card-title:hover::after {
  width: 50px !important;
  background: linear-gradient(90deg, var(--tag-card-title-hover-color), transparent) !important;
}
.theme-dark .simple-card:has(.tag-list-container) .card-title:hover::after {
  background: linear-gradient(90deg, var(--primary-color), transparent) !important;
}

/* 卡片内容统一样式 - 【适配】加左padding，和标题对齐 */
.simple-card .card-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  letter-spacing: 0.2px;
  margin-top: 2px;
  padding-left: var(--card-title-base-padding) !important; /* 和标题左padding一致 */
}

/* 联系方式卡片样式 - 精简重复代码+适配左padding */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: var(--card-title-base-padding) !important; /* 和标题左padding一致 */
}
.simple-contact-item {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: var(--transition-base);
  background-color: var(--dark-bg-list);
  display: flex;
  align-items: center;
  gap: 14px;
}
:not(.theme-dark) .simple-contact-item {
  background-color: rgba(0, 0, 0, 0.02);
}
.simple-contact-item:hover {
  background-color: var(--dark-bg-list-hover);
}
:not(.theme-dark) .simple-contact-item:hover {
  background-color: rgba(0, 0, 0, 0.08);
}
.simple-contact-item:last-child {
  margin-bottom: 0;
}
.contact-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--contact-avatar-border);
  flex-shrink: 0;
}
.contact-info {
  flex: 1;
  min-width: 0;
}
.contact-link {
  font-size: 15px;
  color: var(--text-main);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-block;
}
.contact-link:hover {
  color: var(--primary-color);
}
.contact-value {
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 标签卡片容器样式 - 精简所有冗余padding/margin + 隐藏横向溢出 */
#tag_list .navi, #tag_list .nav {
  box-shadow: none;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100% !important;
  overflow-x: hidden !important; /* 上层容器防溢出 */
}
/* 下拉箭头样式 - 保留功能，无冗余 */
.tag_list_title .text-muted {
  font-size: 13px;
  color: var(--primary-color);
  margin-left: auto;
  z-index: 3;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  padding-right: var(--card-title-base-padding) !important; /* 右侧和左侧间距对称 */
}
#tag_list .tag_list_title a.auto:hover .text-muted {
  color: var(--tag-card-title-hover-color);
}
.theme-dark #tag_list .tag_list_title a.auto:hover .text-muted {
  color: var(--primary-color);
}

/* 标签列表样式 - 核心调整：减小高度+紧凑间距 */
.tag-list-container {
  padding: 0;
  margin: 4px 0 0 0 !important; /* 标题与列表间距（已精简为4px） */
  list-style: none;
  padding-left: 0 !important; /* 去除左侧边距，保证左右一致 */
  box-sizing: border-box !important;
  width: 100% !important; /* 强制100%宽度 */
  overflow-x: hidden !important; /* 核心：隐藏横向滚动条，防止子元素溢出 */
}
.tag-list-container .tag-item {
  margin-bottom: var(--tag-item-margin-bottom) !important; /* 继承4px间距 */
  padding: 0;
  position: relative;
  border-radius: 9px;
  overflow: hidden;
  height: 36px !important; /* 核心：标签项高度从40px→36px，适度减小 */
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
  width: 100% !important; /* 宽度100%，去除原有的padding偏移 */
  box-sizing: border-box !important; /* 确保内边距不影响宽度计算 */
  flex-shrink: 0; /* 防止弹性布局压缩导致的异常 */
}
.tag-list-container .tag-item:last-child {
  margin-bottom: 0 !important; /* 最后一个标签无下间距 */
}
.tag-list-container .tag-item.built-in {
  height: 36px !important; /* 同步：内置标签项高度也改为36px，保证样式统一 */
}
.tag-list-container .tag-item.built-in a {
  cursor: pointer;
  pointer-events: auto;
  padding-right: 12px;
}
.tag-list-container .tag-item.built-in:hover a {
  background-color: var(--tag-item-hover-bg);
  color: var(--text-main);
  transform: translateY(-1px);
}
.theme-dark .tag-list-container .tag-item.built-in:hover a {
  background-color: var(--dark-tag-item-hover-bg);
}
.tag-list-container .tag-item.built-in .bg-tag i {
  vertical-align: middle;
  margin-top: -2px;
}
.tag-list-container .tag-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  padding-right: var(--tag-actions-margin);
  border-radius: 9px;
  transition: var(--transition-base);
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--dark-bg-list);
  position: relative;
  z-index: 1;
  height: 100%;
}
:not(.theme-dark) .tag-list-container .tag-item a {
  background-color: rgba(100, 116, 139, 0.05);
}
.tag-list-container .tag-item:hover a {
  background-color: var(--tag-item-hover-bg);
  color: var(--text-main);
  transform: translateY(-1px);
}
.theme-dark .tag-list-container .tag-item:hover a {
  background-color: var(--dark-tag-item-hover-bg);
}
.tag-list-container .bg-tag {
  background: transparent !important;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: var(--text-main);
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  height: 100%;
}
/* 标签数量徽章 - 保留原有，垂直居中自动适配 */
.tag-list-container .tag-count {
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 12px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.2);
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
}
.theme-dark .tag-list-container .tag-count {
  background: rgba(59, 130, 246, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
/* 标签操作按钮 - 保留原有，垂直居中自动适配 */
.tag-list-container .tag-item .tag-actions {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
.tag-list-container .tag-item:hover .tag-actions {
  opacity: 1;
}
.tag-list-container .tag-item .tag-btn {
  width: var(--tag-btn-size);
  height: var(--tag-btn-size);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
  box-shadow: none;
}
.tag-list-container .tag-item .tag-edit-btn {
  background-color: var(--tag-edit-bg);
  color: var(--tag-edit-color);
}
.tag-list-container .tag-item .tag-edit-btn:hover {
  background-color: var(--tag-edit-bg-hover);
  transform: scale(1.05);
}
.tag-list-container .tag-item .tag-delete-btn {
  background-color: var(--tag-delete-bg);
  color: var(--tag-delete-color);
}
.tag-list-container .tag-item .tag-delete-btn:hover {
  background-color: var(--tag-delete-bg-hover);
  transform: scale(1.05);
}
.tag-list-container .tag-item .tag-btn i {
  width: var(--tag-btn-icon-size);
  height: var(--tag-btn-icon-size);
  stroke-width: 1.8;
  display: block;
  margin: 0 auto;
}

/* 那年今日卡片样式 - 无冗余+适配左padding */
.time-history-list {
  padding-left: var(--card-title-base-padding) !important; /* 和标题左padding一致 */
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.time-history-list .time-machine {
  margin-bottom: 14px;
  padding: 11px;
  border-radius: 10px;
  background-color: var(--dark-bg-list);
}
:not(.theme-dark) .time-history-list .time-machine {
  background-color: rgba(100, 116, 139, 0.05);
}
.time-history-list .time-machine:last-child {
  margin-bottom: 0;
}

/* 模态框样式优化 - 精简重复 */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.theme-dark .modal-content {
  background-color: var(--dark-bg-card);
  color: var(--dark-text-main);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 15px 20px;
}
.theme-dark .modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}
.modal-body {
  padding: 20px;
}
.theme-dark .modal-body {
  color: var(--dark-text-secondary);
}
.theme-dark .modal-body .form-control {
  background-color: var(--dark-bg-main);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--dark-text-main);
}
.theme-dark .modal-body .form-control:focus {
  border-color: var(--primary-color);
  background-color: var(--dark-bg-main);
  color: var(--dark-text-main);
}
.modal-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 12px 20px;
  background-color: rgba(0,0,0,0.02);
}
.theme-dark .modal-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  background-color: rgba(255,255,255,0.02);
}
.modal-footer .btn {
  border-radius: 8px;
  padding: 6px 16px;
}
.theme-dark .modal-footer .btn-default {
  background-color: var(--dark-bg-main);
  border-color: rgba(255,255,255,0.1);
  color: var(--dark-text-main);
}
.theme-dark .modal-footer .btn-default:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--dark-text-main);
}

/* 响应式适配 - 同步减小移动端标签项高度，保持紧凑 */
@media (max-width: 768px) {
  .simple-card {
    margin: 0 10px 10px !important;
    padding: 8px 12px !important; /* 移动端卡片内边距同步紧凑 */
  }
  /* 若项目中无该类定义，可注释/删除，解决未知类报错 */
  .contact-avatar {
    width: 38px;
    height: 38px;
  }
  /* 移动端基础变量适配，更紧凑 - 外层包:root不影响生效，解决校验告警 */
  :root {
    --card-title-base-padding: 6px; /* 移动端标题左padding */
    --tag-btn-size: 22px;
    --tag-actions-margin: 70px;
  }
  /* 移动端标签列表 - 同步紧凑间距+高度 */
  .tag-list-container {
    margin: 2px 0 0 !important; /* 简化0的写法，无意义的0可省略 */
    width: 100%; /* 移除冗余!important */
    overflow-x: hidden; /* 移除冗余!important */
  }
  .tag-list-container .tag-item {
    margin-bottom: calc(var(--tag-item-margin-bottom) - 2px) !important;
    height: 34px !important; /* 核心：移动端标签项高度34px */
    width: 100%; /* 移除冗余!important */
    box-sizing: border-box; /* 移除冗余!important，border-box是推荐默认值 */
  }
  .tag-list-container .tag-item a {
    padding: 7px 10px 7px 10px; /* 合并padding，避免重复定义padding-right */
    padding-right: 70px;
    font-size: 12px;
    display: block; /* 可选：保证a标签撑满父元素，适配高度 */
  }
  /* 修复核心：补全position，让right生效，解决方位属性报错 */
  .tag-list-container .tag-count {
    position: absolute; /* 必加，否则right无效 */
    right: 10px;
    top: 50%; /* 可选：垂直居中，适配34px高度 */
    transform: translateY(-50%); /* 可选：垂直居中 */
    padding: 2px 7px;
    min-width: 20px;
    height: 18px;
    font-size: 10px;
    box-sizing: border-box; /* 避免padding撑大宽度 */
  }
  /* 修复核心：补全position，让right/gap生效 */
  .tag-list-container .tag-item .tag-actions {
    position: absolute; /* 必加，否则right无效 */
    right: 35px;
    top: 50%; /* 可选：垂直居中 */
    transform: translateY(-50%); /* 可选：垂直居中 */
    gap: 5px;
    display: flex; /* 必加，否则gap无效（gap是flex/grid属性） */
    align-items: center; /* 可选：子元素垂直居中 */
  }
  /* 移动端标题高度适配 - 28px紧凑高度 */
  .simple-card .card-title {
    font-size: 13px !important;
    height: 28px !important;
    line-height: 28px; /* 可选：文字垂直居中，适配28px高度 */
  }
  /* 修复:has()伪类报错 - 加兼容写法/注释，或关闭CSS3校验（推荐） */
  .simple-card.tag-list-has .card-title:hover::after {
    width: 40px !important;
  }
  /* 若项目中无该类定义，可注释/删除，解决未知类报错 */
  .tag-list-container .bg-tag {
    font-size: 12px;
  }
  /* 若项目中无该类定义，可注释/删除，解决未知类报错 */
  .tag-list-container .tag-item.built-in a {
    padding-right: 10px;
  }
}
/* 暗色模式全局补充 - 精简群组选择器 */
.theme-dark #rightAside, .theme-dark #post-panel {
  background-color: var(--dark-bg-main);
}
.theme-dark .time_cover {
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.6);
}
.theme-dark .bg-text {
  color: var(--dark-text-main) !important;
}
.theme-dark .time_tab_list {
  background-color: var(--dark-bg-card);
}
.theme-dark .nav-pills > li > a {
  color: var(--dark-text-main);
}
/* 统一激活态样式 - 无重复 */
.nav-pills > li.active > a {
  background-color: var(--primary-color);
  color: #ffffff !important;
}
:not(.theme-dark) .time_tab_list {
  background-color: #ffffff;
}

/* 通用图标垂直居中 - 单条生效，无冗余 */
.feather {
  vertical-align: middle;
}
/* 时间标签页渐变样式 */
#time-tabs li.active a {
    background: linear-gradient(to right, #3b82f6, #f0f8ff) !important;
    color: #111 !important;
    border-color: #3b82f6 !important;
}
#time-tabs li a {
    transition: all 0.3s ease-in-out;
}
#time-tabs li a:hover:not(.active) {
    background: linear-gradient(to right, #3b82f680, #f0f8ff80) !important;
    color: #111 !important;
}
/* 评论区底部操作栏基础样式 */
.say_footer {
    line-height: 1.5em;
    position: relative;
}

/* 评论操作按钮垂直居中统一 */
.say_footer .comment-time-reply,
.say_footer .star_talk,
.say_footer .ua-icons,
.say_footer .time_operation {
    vertical-align: middle;
    display: inline-block;
}

/* Feather图标统一样式 */
.say_footer svg {
    vertical-align: middle !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 1em !important;
}

/* Glyphicon图标统一样式 */
.say_footer .glyphicon {
    vertical-align: middle !important;
    font-size: 14px !important;
    line-height: 1em !important;
    margin-top: -2px;
}

.say_footer span,
.say_footer a {
    vertical-align: middle !important;
    line-height: 1em !important;
}

/* 标签关闭图标样式 */
.bg-tag .close_icon svg {
    vertical-align: middle !important;
    width: 12px !important;
    height: 12px !important;
}

/* 右侧操作按钮定位 */
.say_footer .say_footer_right {
    position: relative;
    display: inline-block;
}

/* 编辑/删除下拉框向左展开 */
.say_footer .time_operation.dropdown .dropdown-menu {
    left: auto !important;
    right: 100% !important;
    top: 0 !important;
    margin-right: 5px !important;
    min-width: 80px !important;
    z-index: 9999 !important;
}

/* 自定义评论文本框样式 */
.custom-comment-textarea {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    background-color: #f9fafb !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    resize: vertical !important;
}
.custom-comment-textarea:focus {
    border-color: #4f9ef8 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(79, 158, 248, 0.15) !important;
    outline: none !important;
}
.custom-comment-textarea::placeholder {
    color: #9ca3af !important;
    font-size: 13px !important;
    opacity: 1 !important;
}

/* 姓名/邮箱输入框配套样式 */
.custom-form-input {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb !important;
    padding: 8px 12px !important;
    transition: border-color 0.3s ease !important;
}
.custom-form-input:focus {
    border-color: #4f9ef8 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(79, 158, 248, 0.1) !important;
}
.custom-form-input::placeholder {
    color: #9ca3af !important;
    font-size: 13px !important;
    opacity: 1 !important;
}

/* 提交按钮核心样式 */
.custom-submit-btn {
    padding: 4px 10px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    height: auto !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin: 2px 0 0 0 !important;
    border: none !important;
    border-radius: 8px !important;
    background-color: #4f9ef8 !important;
    color: #fff !important;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(79, 158, 248, 0.2) !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}
.custom-submit-btn:hover {
    background-color: #3b8ef0 !important;
    box-shadow: 0 2px 4px rgba(79, 158, 248, 0.3) !important;
    color: #fff !important;
    transform: scale(1.02) !important;
}
.custom-submit-btn:active {
    background-color: #2c7ee8 !important;
    box-shadow: 0 1px 1px rgba(79, 158, 248, 0.2) !important;
    transform: scale(0.98) !important;
}
.custom-submit-btn:focus {
    box-shadow: 0 0 0 3px rgba(79, 158, 248, 0.2) !important;
    outline: none !important;
}
.custom-submit-btn #spin {
    font-size: 10px !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
}
.footer-bottom {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    font-size: 11px;
    line-height: 1.2;
    font-family: "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    text-rendering: optimizeLegibility;
}
.copyright-text {
    line-height: 1.2;
    color: #666;
    opacity: 0.9;
}
.blog-name-auto {
    text-decoration: none;
    font-weight: 600;
    padding: 0 4px;
    margin: 0 2px;
    border-radius: 3px;
    border: 1px solid #e4e9f0;
    background-color: #f5f8fa;
    color: #81c784;
    transition: all 0.2s ease-in-out;
    line-height: 1.2;
    display: inline-block;
    text-shadow: 0 0 1px rgba(129, 199, 132, 0.08);
}
.blog-name-auto:hover {
    border-color: #81c784;
    background-color: transparent;
    color: #81c784;
    box-shadow: 0 1px 3px rgba(129, 199, 132, 0.15);
    transform: scale(1.02);
    text-decoration: none;
    outline: none;
}
.beian-link {
    text-decoration: none;
    padding: 0 3px;
    margin: 0 2px;
    border-radius: 2px;
    color: #666;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    line-height: 1.2;
}
.beian-link:hover {
    color: #81c784;
    border-bottom: 1px solid #81c784;
    background-color: #f5f8fa;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(129, 199, 132, 0.1);
}
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 0;
        text-align: center;
        line-height: 1.1;
    }
    .blog-name-auto {
        padding: 0 3px;
        margin: 0 2px;
        border-radius: 2px;
        text-shadow: 0 0 1px rgba(129, 199, 132, 0.05);
    }
    .blog-name-auto:hover {
        transform: scale(1.01);
        box-shadow: 0 1px 2px rgba(129, 199, 132, 0.1);
        background-color: transparent;
    }
    .beian-link {
        padding: 0 2px;
        margin: 0 2px;
    }
    .beian-hide-mobile {
        display: none !important;
    }
}

/* 页脚样式 - 保持原有暗色适配 */
html.theme-dark .copyright-text {
    color: #bbb;
    opacity: 0.9;
}

html.theme-dark .blog-name-auto {
    border-color: #333;
    background-color: #1e1e1e;
    color: #90ee90;
    text-shadow: 0 0 1px rgba(144, 238, 144, 0.08);
}

html.theme-dark .blog-name-auto:hover {
    border-color: #90ee90;
    color: #90ee90;
    box-shadow: 0 1px 3px rgba(144, 238, 144, 0.15);
    background-color: transparent;
}

html.theme-dark .beian-link {
    color: #bbb;
}

html.theme-dark .beian-link:hover {
    color: #90ee90;
    border-bottom: 1px solid #90ee90;
    background-color: #1e1e1e;
    box-shadow: 0 1px 2px rgba(144, 238, 144, 0.1);
}

/* 手机端暗色模式适配 */
@media (max-width: 768px) {
    html.theme-dark .blog-name-auto {
        text-shadow: 0 0 1px rgba(144, 238, 144, 0.05);
    }

    html.theme-dark .blog-name-auto:hover {
        box-shadow: 0 1px 2px rgba(144, 238, 144, 0.1);
    }
}

/* 暗色模式适配 - 全灰色系调整 | 统一深灰/中灰/浅灰层级，护眼协调 */
html.theme-dark .custom-comment-textarea {
    border-color: #333333 !important; /* 边框：中深灰 */
    background-color: #1f1f1f !important; /* 背景：深灰（非纯黑，护眼） */
    color: #e0e0e0 !important; /* 文字：浅灰（高对比度，易读） */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}
html.theme-dark .custom-comment-textarea:focus {
    border-color: #555555 !important; /* 聚焦边框：中灰（明显区分，不刺眼） */
    background-color: #181818 !important; /* 聚焦背景：更深一点的灰 */
    box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.25) !important; /* 聚焦阴影：灰色低透高亮 */
}
html.theme-dark .custom-comment-textarea::placeholder {
    color: #777777 !important; /* 占位符：中灰（与文字区分） */
}

html.theme-dark .custom-form-input {
    border-color: #333333 !important; /* 边框：和文本框统一 */
    background-color: #1f1f1f !important; /* 背景：和文本框统一 */
    color: #e0e0e0 !important; /* 文字：和文本框统一 */
}
html.theme-dark .custom-form-input:focus {
    border-color: #555555 !important; /* 聚焦边框：和文本框统一 */
    box-shadow: 0 0 0 2px rgba(85, 85, 85, 0.2) !important; /* 聚焦阴影：和文本框统一 */
}
html.theme-dark .custom-form-input::placeholder {
    color: #777777 !important; /* 占位符：和文本框统一 */
}

html.theme-dark .custom-submit-btn {
    background-color: #444444 !important; /* 按钮主色：中灰（灰色系主交互色） */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}
html.theme-dark .custom-submit-btn:hover {
    background-color: #383838 !important; /* hover：稍深中灰（自然过渡） */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}
html.theme-dark .custom-submit-btn:active {
    background-color: #2c2c2c !important; /* active：深灰（按压下沉视觉） */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5) !important;
}
html.theme-dark .custom-submit-btn:focus {
    box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.3) !important; /* 聚焦阴影：和输入框统一 */
}

html.theme-dark #time_toolbar li a {
    color: #cccccc !important; /* 工具栏文字：浅灰（比输入框文字稍亮） */
}
html.theme-dark #time_toolbar li a:hover {
    background-color: #333333 !important; /* 工具栏hover背景：中深灰（和输入框边框统一） */
    color: #ffffff !important; /* 工具栏hover文字：纯白（突出交互） */
}

/* 工具栏样式优化 */
.toolbar-above-textarea {
    padding: 6px 8px;
    border-radius: 8px;
    background-color: #f5f7fa;
    border: 1px solid #e5e7eb;
}
html.theme-dark .toolbar-above-textarea {
    background-color: #252525 !important; /* 工具栏背景：中灰（比输入框浅，区分层级） */
    border-color: #333333 !important; /* 工具栏边框：和输入框统一 */
}

#time_toolbar li a {
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #4b5563;
}
#time_toolbar li a:hover {
    background-color: #e5e7eb;
    color: #1f2937;
}

/* 私密/专注开关样式 */
.secret_comment_label {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}
html.theme-dark .secret_comment_label {
    color: #999999 !important; /* 开关标签：浅中灰（不抢视觉焦点） */
}
