/*
Theme Name: ZeroOneBoy
Theme URI: https://www.01boy.com
Author: Zero One Boy
Author URI: https://www.01boy.com
Description: 适用于企业展示、个人博客。
Version: 1.0
License: Proprietary (Not Open Source)
License URI: https://www.01boy.com/license
Text Domain: zerooneboy
*/
/*admin-user*/
body.admin-user .fixed-top {
    position: static;
}
body.admin-user .nav-scroller {
    margin-top: 0px;
}
body.admin-user .offcanvas {
  z-index: 1000000;
}
body.admin-user .search {
    margin-top: 0px;
    z-index: 1030 !important;
    position: fixed;
    top: 88px;
}
body.search.admin-user {
    margin-top: 0px;
}
@media (max-width: 782.98px) {
    body.admin-user .search {
        top: 102px;
    }
}
body.admin-user .modal {
    --bs-modal-zindex: 2000000;
}
body {
    font-family: 
        "Noto Sans",                   /* 通用 Latin 字符及其他西方文字 */
        "Noto Sans SC",                /* 简体中文 */
        "Noto Sans TC",                /* 繁体中文 */
        "Noto Sans JP",                /* 日文 */
        "Noto Sans KR",                /* 韩文 */
        "Noto Sans Arabic",            /* 阿拉伯语 */
        "Noto Sans Hebrew",            /* 希伯来语 */
        "Noto Sans Devanagari",        /* 印地语及其他天城文语言 */
        "Noto Sans Bengali",           /* 孟加拉语 */
        "Noto Sans Gujarati",          /* 古吉拉特语 */
        "Noto Sans Tamil",             /* 泰米尔语 */
        "Noto Sans Telugu",            /* 泰卢固语 */
        "Noto Sans Kannada",           /* 卡纳达语 */
        "Noto Sans Malayalam",         /* 马拉雅拉姆语 */
        "Noto Sans Oriya",             /* 奥里亚语（奥迪亚语） */
        "Noto Sans Sinhala",           /* 僧伽罗语 */
        "Noto Sans Thai",              /* 泰语 */
        "Noto Sans Lao",               /* 老挝语 */
        "Noto Sans Khmer",             /* 高棉语 */
        "Noto Sans Myanmar",           /* 缅甸语 */
        "Noto Sans Tibetan",           /* 藏语 */
        "Noto Sans Ethiopic",          /* 埃塞俄比亚文字 */
        "Noto Sans Georgian",          /* 格鲁吉亚语 */
        "Noto Sans Armenian",          /* 亚美尼亚语 */
        "Noto Sans Coptic",            /* 科普特语 */
        "Noto Sans Cherokee",          /* 切罗基语 */
        "Noto Sans Canadian Aboriginal", /* 加拿大原住民文字 */
        "Noto Sans Osmanya",           /* Osmanya 字母（索马里语历史文字） */
        "Noto Sans Vai",               /* Vai 字母 */
        "Noto Sans Adlam",             /* Adlam 字母 */
        "Noto Sans Balinese",          /* 巴厘语 */
        "Noto Sans Bamum",             /* Bamum 字母 */
        "Noto Sans Batak",             /* 巴塔克语 */
        "Noto Sans Brahmi",            /* Brahmi 字母 */
        "Noto Sans Buhid",             /* Buhid 字母 */
        "Noto Sans Carian",            /* Carian 字母 */
        "Noto Sans Cham",              /* Cham 文字 */
        "Noto Sans Cypriot",           /* 塞浦路斯字母 */
        "Noto Sans Deseret",           /* Deseret 字母 */
        "Noto Sans Egyptian Hieroglyphs", /* 埃及象形文字 */
        sans-serif !important;
}
#wpadminbar {
  z-index: 999999;
}
/*顶部导航*/
.zero-primary-nav {
  position: relative;
  /*overflow-y: hidden;*/
}
/*头部导航-右侧图标*/
.zero-primary-nav .fr-btn .btn {
  padding: .188rem .65rem;
  border: 0;
  color: hsla(0, 0%, 100%, .5);
  height: 40px;
  line-height: 30px;
}
.zero-primary-nav .fr-btn .btn img {
    max-width: 100% !important;
    width: 24px;
    height: 24px;
}
.zero-primary-nav .fr-btn .btn:focus, .zero-primary-nav .fr-btn .btn:hover {
  box-shadow: none;
  color: #fff
}
.zero-primary-nav .fr-btn .dropdown-menu {
    --bs-dropdown-zindex: 2000;
}
/*头部导航-搜索*/
.search {
  z-index: 1030;
  margin-top: 56px;
}
.search .form-control {
  background-color: #e9ecef
}
/* 子菜单优化 */
.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.5rem;
    overflow-y: hidden;
    /*margin-top: 56px;*/
    background-color: #fff;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav-link {
    transition: all 0.3s ease-in-out;
    color: #333;
    border-radius: 0;
    text-decoration: none;
    padding: 8px 15px;
}

.nav-scroller .nav-link:hover {
    background-color: #00bbff;
    color: #fff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 0px;
}

.nav-underline .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.nav-underline .nav-link:hover {
    color: #007bff;
}

.nav-underline .active {
    font-weight: 500;
    color: #343a40;
}
/*头部导航-登录头像*/
/* 头像样式 */
#avatarImage {
  object-fit: cover;
  border: 2px solid #fff;
  padding: 2px;
}

/* 隐藏未登录时的头像和登录按钮 */
#userAvatar {
  display: none;
}

#loginBtn {
  display: block;
}

/* 调整头像大小以适配不同设备 */
@media (max-width: 768px) {
  #avatarImage {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 768px) {
  #avatarImage {
    width: 40px;
    height: 40px;
  }
}
/*登录头像结束*/


/* 首页 Home */

/* 首页大屏幕背景 */
.hp-bg {
  width: 100%;
  height: 100vh;
  background-image: url(/wp-content/themes/zerooneboy/static/images/home-01.webp);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hp-bg {
    background-attachment: scroll; /* 解决移动端 fixed 兼容性问题 */
  }
}

/* 首页背景遮罩层 */
.hp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

/* 首页横幅 */
.hp-banner {
  position: relative;
  z-index: 1010;
  top: 10%;
}

/* 首页产品设备样式 */
.hp-device {
  position: absolute;
  width: 600px;
  height: 400px;
}

.hp-device-1 {
  right: 0;
  bottom: 0;
  background-image: url('/wp-content/themes/zerooneboy/static/images/600x400-0.webp');
  background-size: cover;
}

.hp-device-2 {
  top: 0;
  left: 0;
  background-image: url('/wp-content/themes/zerooneboy/static/images/600x400-1.webp');
  background-size: cover;
}

/* Bootstrap 5 按钮优化 */
.btn-outline-warning {
  border-width: 2px;
}
/*大屏结束*/

/*产品*/
.zero-home-product .album, .zero-list-product .album {
    padding: 3rem 0;
    background-color: #f8f9fa;
}
.zero-home-product .card, .zero-list-product .card {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}
.zero-home-product .card:hover, .zero-list-product .card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.zero-home-product .card-title, .zero-list-product .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.zero-home-product .card-text, .zero-list-product .card-text  {
    color: #6c757d;
}
.zero-home-product .btn-group .btn, .zero-list-product .btn-group .btn  {
    margin-right: 0.5rem;
}

@media (max-width: 767.98px) {
    .zero-home-product .card-title, .zero-list-product .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .zero-home-product .card-title, .zero-list-product .card-title {
        font-size: 1rem;
    }
}


/* 首页 Home 结束*/

/* 优化后的 Zero 自定义样式，适配 Bootstrap 5.3 */

/* 全站两列列表宽度 */
.zero-breadcrumb ol li,
.zero-breadcrumb ol li a {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0;
}

/*产品列表-未使用*/

.zero-list-products {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zero-list-products .card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3rem;
    margin-bottom: 1rem;
}

.zero-list-products .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zero-list-products .card-body {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.zero-list-products .card-title {
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zero-list-products .card img {
    object-fit: cover;
    height: 100%;
    border-radius: 0.25rem;
}

.zero-list-products .btn-primary {
    margin-top: auto;
}

.zero-list-products .col-6 {
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {

    .zero-list-products .card-title {
        font-size: 1.1rem; 
    }

    .zero-list-products .btn-primary {
        font-size: 0.8rem;
        padding: 0.2rem 1rem;
    }

    .zero-list-products .card img {
        border-radius: 0;
    }

    .zero-list-products .card img {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .zero-list-products .card-excerpt {
        display: none;
    }
}

@media (min-width: 768px) {
    .zero-list-products .card-excerpt {
        display: block;
    }

    .zero-list-products .card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 5rem;
        margin-bottom: 1rem !important;
    } 
}
@media (min-width: 992px) {

    .zero-list-products .card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 3rem;
        margin-bottom: 1rem !important;
    }  
}
@media (min-width: 1200px) {

    .zero-list-products .card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 5rem;
        margin-bottom: 1rem !important;
    }  
}
/*案例列表*/
.zero-list-cases {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zero-list-cases .card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3rem;
    margin-bottom: 1rem;
}

.zero-list-cases .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.zero-list-cases .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.zero-list-cases .card-title {
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zero-list-cases .card img {
    object-fit: cover;
    height: 100%;
    border-radius: 0.25rem;
}

.zero-list-cases .btn-primary {
    margin-top: auto;
}

.zero-list-cases .col-6 {
    margin-bottom: 1.5rem;
}

@media (max-width: 767px) {

    .zero-list-cases .card-title {
        font-size: 1.1rem;
    }

    .zero-list-cases .btn-primary {
        font-size: 0.8rem; 
        padding: 0.2rem 1rem;
    }

    .zero-list-cases .card img {
        border-radius: 0;
    }

    .zero-list-cases .card img {
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .zero-list-cases .card-excerpt {
        display: none;
    }
}

@media (min-width: 768px) {
    .zero-list-cases .card-excerpt {
        display: block;
    }

    .zero-list-cases .card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 4.7rem;
        margin-bottom: 1rem !important;
    } 
    .zero-list-cases .card img {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
}
@media (min-width: 992px) {

    .zero-list-cases .card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 3rem; 
        margin-bottom: 1rem !important;
    }  
}
@media (min-width: 1200px) {

    .zero-list-cases .card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 4.7rem;
        margin-bottom: 1rem !important;
    }  
}
/* 列表控制 */
.zero-list-control {
  width: 100%;
  display: inline-block;
}
.zero-list-control .avatar {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem; /* 添加右侧外边距 */
}
.zero-list-control .zero-list-control-right {
  width: calc(100% - 40px); /* 40px = 2.5rem，根据头像宽度及间距计算 */
  float: right;
}
.zero-list-control .zero-list-control-top {
  background: linear-gradient(90deg, rgb(23, 162, 184) 19%, rgb(155, 81, 224) 100%);
  min-height: 2rem; /* 32px */
  margin: 0;
  /* 内边距左右采用 CSS 自定义变量或直接使用具体值 */
  padding: 0 var(--wp--preset--spacing--20);
  color: #fff;
}
.zero-list-control .zero-list-control-top strong {
  line-height: 0.25rem;
}
.zero-list-control .zero-list-control-bottom {
  border-top: 1px dashed #cfcfcf;
  padding-top: 0.3125rem; /* 5px */
  margin-top: 0.3125rem;
}
.zero-list-control .zero-t-link {
  background: linear-gradient(323deg, rgb(6, 147, 227) 0%, rgb(155, 81, 224) 82%);
  border-radius: 0;
  border: 0;
  padding: 0.3125rem 0.5rem; /* 5px 上下, 8px 左右 */
  margin: 0;
  color: #fff;
}
.zero-list-control .zero-column-link {
  border-radius: 0;
  border: 0;
  padding: 0.3125rem 0.5rem;
  margin: 0;
  color: #03A9F4;
}
/* 内容标题样式 */
.zero-title {
  position: relative;
  color: #333;
  line-height: 1.25;
  border-bottom: 1px dashed #cfcfcf;
  font-weight: 400;
  letter-spacing: -0.0625rem;
}
/* 内容页标题样式，协调 h 标签风格 */
.zero-title-content {
  position: relative;
  font-size: 1.75rem; /* 适当调整，使其比 h2 稍大，但比 h1 小 */
  color: #333;
  line-height: 1.3;
  border-bottom: 1px dashed #cfcfcf;
  font-weight: 600; /* 提高权重，使其在视觉上更突出 */
  letter-spacing: -0.0625rem;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .zero-title-content {
      font-size: 1.6rem;
    }   
}    

@media (max-width: 992px) {
    .zero-title-content {
      font-size: 1.5rem;
    }  
}

@media (max-width: 767.98px) {
    .zero-title-content {
      font-size: 1.4rem;
    }
}
/*内容部分css*/
/* 优化后的内容区域样式 - 适配 Bootstrap 5.3 */
.zero-content {
  color: var(--bs-body-color, #333);
  margin: 0;
  padding: 0;
  min-height: 100px;
  line-height: 1.5;
}

/* 标题样式 */
.zero-content h1 {
  font-size: 2rem;
  font-weight: 700;
}

.zero-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.zero-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.zero-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.zero-content h5 {
  font-size: 1.125rem;
  font-weight: 500;
}

.zero-content h6 {
  font-size: 1rem;
  font-weight: 500;
}

.zero-content h1,
.zero-content h2,
.zero-content h3,
.zero-content h4,
.zero-content h5,
.zero-content h6 {
  color: var(--bs-heading-color, #333);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
  letter-spacing: -0.05rem;
}

/* 段落样式 */
.zero-content p {
  margin-bottom: 0.625rem; /* 10px */
  font-size: 0.875rem;     /* 14px */
  color: #444;
  line-height: 1.5;
}
.zero-content strong {
  font-weight: bold; /* 使文本加粗 */
  color: #333; /* 更改颜色，如果需要 */
}
/* 列表样式 */
.zero-content ul,
.zero-content ol {
  margin-left: 1.875rem;   /* 30px */
  margin-bottom: 1.25rem;   /* 20px */
  list-style-position: outside;
}
.zero-content ul li,
.zero-content ol li {
  margin-bottom: 0.5rem;    /* 8px */
  padding-left: 0.3125rem;  /* 5px */
}

/* 链接样式 */
.zero-content a {
  color: var(--bs-link-color, #0d6efd);
  text-decoration: none;
  transition: color 0.3s ease;
}
.zero-content a:hover {
  text-decoration: underline;
  color: var(--bs-link-hover-color, #0a58ca);
}

/* 引用样式 */
.zero-content blockquote {
  border-left: 0.25rem solid #ccc;
  padding: 1.25rem;
  font-style: italic;
  color: #555;
  margin: 1.5rem 0;
  background-color: #f9f9f9;
  border-radius: 0.3125rem; /* 5px */
}

/* 代码块样式 */
.zero-content pre {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.25rem;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #ced4da;
}
.zero-content pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  font-size: inherit;
  color: #212529;
}
@media (max-width: 767.98px) {
  .zero-content pre {
    font-size: 0.75rem;
  }
}

/* 内联代码样式 */
.zero-content code {
  background-color: #f8f9fa;
  padding: 0.25rem 0.5rem;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  border-radius: 0.25rem;
  color: #d63384;
  border: 1px solid #ddd;
}

/* 图片样式 */
.zero-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
}

/* 限制 .wp-caption 内的图片不会超出 .wp-caption 容器 */
.wp-caption img {
    max-width: 100% !important;
    height: auto;
}

/* 让 .wp-caption 也不会超出父级容器 */
.wp-caption {
    max-width: 100% !important;
    overflow: hidden;
}

/* 表格样式 */
.zero-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem; /* 15px */
}
.zero-content table,
.zero-content th,
.zero-content td {
  border: 1px solid #ddd;
}
.zero-content th,
.zero-content td {
  padding: 0.75rem;
  text-align: left;
}
.zero-content th {
  background-color: #f1f1f1;
  font-weight: bold;
  color: #222;
}

/* 按钮样式 */
.zero-content button {
  background-color: var(--bs-primary, #0d6efd);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.3125rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}
.zero-content button:hover {
  background-color: var(--bs-primary-dark, #0a58ca);
}

/* 表单输入框样式 */
.zero-content input,
.zero-content textarea,
.zero-content select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.3125rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.1);
}

/* 垂直居中文本 */
.zero-content .center-text {
  text-align: center;
  margin: 1.875rem 0;
  font-size: 1.125rem;
  color: #222;
}

/* 清除浮动 */
.zero-content::after {
  content: "";
  display: table;
  clear: both;
}
/*侧边栏*/

.position-sticky {
    top: 56px !important;
}

/*尾部样式*/
.footer {
  background-color: #ffffff !important;
}

/*回到顶部*/
/* 悬浮按钮样式 */
#button-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 按钮的基础样式 */
.floating-btn {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;  /* 去除边框 */
    outline: none; /* 去除轮廓线 */
}
.floating-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
/* 回到顶部按钮 */
#back-to-top {
    background-color: #007bff;
    display: none;  /* 默认隐藏 */
}

/* 电话拨号按钮，手机端显示 */
#call-button {
    background-color: #28a745;
    display: none;  /* 默认情况下隐藏 */
}

/* 邮件按钮始终显示 */
#email-button {
    background-color: #dc3545;
}

/* 电话按钮仅在小屏幕设备（手机）上显示 */
@media (max-width: 767px) {
    #call-button {
        display: flex; /* 在手机上显示 */
    }
}


/*wordpress自带小工具*/
/* =====================================================
   通用 Widget 样式 - 模拟 Bootstrap 5 卡片
   ===================================================== */
.widget {
  background-color: #ffffff;
  border: none;
  border-radius: 0rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.15);
}

/* Widget 标题 */
.widget .widget-title,
.widget h2,
.widget h3,
.widget h4,
.widget h5,
.widget h6 {
  background: linear-gradient(90deg, #0d6efd, #0b5ed7);
  color: #fff;
  padding: 1rem 1.5rem;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Widget 内容 */
.widget .widget-content,
.widget .textwidget,
.widget .widget_inner {
  padding: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* 搜索小工具 */
.widget_search form {
  display: flex;
  border-radius: 0rem;
  overflow: hidden;
  box-shadow: inset 0 0 0.25rem rgba(0, 0, 0, 0.05);
}
.widget_search input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.widget_search input[type="search"]:focus {
  border-color: #0d6efd;
  outline: none;
}
.widget_search button,
.widget_search input[type="submit"] {
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  background-color: #0d6efd;
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}
.widget_search button:hover,
.widget_search input[type="submit"]:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* 最新文章 */
.wp-block-latest-posts__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #fff;
}
.wp-block-latest-posts__list li {
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.15s ease-in-out;
}
.wp-block-latest-posts__list li:last-child {
  border-bottom: none;
}
.wp-block-latest-posts__list li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #0d6efd;
  text-decoration: none;
}
.wp-block-latest-posts__list li a:hover {
  background-color: #f8f9fa;
  color: #0b5ed7;
}

/* 最新评论 */
.wp-block-latest-comments {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #fff;
}
.wp-block-latest-comments__comment {
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1.25rem;
  transition: background-color 0.15s ease-in-out;
  margin-bottom: 0.5em;
}
.wp-block-latest-comments__comment:last-child {
  border-bottom: none;
}
.wp-block-latest-comments__comment-link {
  font-weight: 600;
  color: #0d6efd;
}
.wp-block-latest-comments__comment-link:hover {
  color: #0b5ed7;
  text-decoration: underline;
}
.wp-block-latest-comments__comment-author {
  font-size: 0.9rem;
  color: #6c757d;
}
.wp-block-latest-comments__comment-author:hover {
  color: #495057;
}

/* 分类 */
.wp-block-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #fff;
}
.wp-block-categories-list .cat-item {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.15s ease-in-out;
}
.wp-block-categories-list .cat-item:last-child {
  border-bottom: none;
}
.wp-block-categories-list .cat-item a {
  display: block;
  color: #0d6efd;
}
.wp-block-categories-list .cat-item a:hover {
  color: #0b5ed7;
  background-color: #f8f9fa;
}

/* 归档 */
.wp-block-archives-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  background-color: #fff;
}
.wp-block-archives-list li {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.15s ease-in-out;
}
.wp-block-archives-list li:last-child {
  border-bottom: none;
}
.wp-block-archives-list li a {
  display: block;
  color: #0d6efd;
}
.wp-block-archives-list li a:hover {
  color: #0b5ed7;
  background-color: #f8f9fa;
}

/* 标签云 */
.widget_tag_cloud a {
  display: inline-block;
  background-color: #e9ecef;
  color: #0d6efd;
  padding: 0.4rem 0.8rem;
  margin: 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.widget_tag_cloud a:hover {
  background-color: #0d6efd;
  color: #fff;
}

/* 日历 */
.widget_calendar table {
  width: 100%;
  border-collapse: collapse;
}
.widget_calendar th,
.widget_calendar td {
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  text-align: center;
  transition: background-color 0.3s ease;
}
.widget_calendar th {
  background-color: #f8f9fa;
  font-weight: 600;
}
.widget_calendar td:hover {
  background-color: #f1f3f5;
}

/* 通用 Footer */
.widget .widget-footer {
  background-color: #f8f9fa;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #e9ecef;
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}
