/*
Theme Name:     通城八点半
Theme URI:      https: //tcbdb.com/
Description:    Child theme for the B2 PRO
Author:         xiaowen
Author URI:     https: //tcbdb.com/
Template:       b2
Version:        1.0.1
*/

/*下面是您自己DIY的css样式代码*/
.entry-content p {
    line-height: 1.8;    /* 行间距：数值越大越宽松 */
    letter-spacing: 1px; /* 字间距：0为默认，1px/2px最常用 */
    margin-bottom: 18px; /* 段落间距：段落下方的空白 */
}
/*全站鸿蒙字体*/
@font-face {
  font-family: 'tcbdbzt'; /* 字体名称（自定义，后续调用时使用） */
  src: url('https://tcbdb.com/wp-content/themes/tcbdb/fonts/HarmonyOS_Sans_SC_Medium.woff2') format('woff2'), /* 优先加载woff2 */
       url('https://tcbdb.com/wp-content/themes/tcbdb/fonts/OPPOSans-Regular.woff') format('woff'),   /* 其次woff */
       url('https://tcbdb.com/wp-content/themes/tcbdb/fonts/two.ttf') format('truetype'); /* 最后ttf（兼容旧浏览器） */
  font-weight: normal; /* 字体粗细（normal/bold/数字） */
  font-style: normal;  /* 字体样式（normal/italic） */
}

@font-face {
  font-family: 'tcbdbzt1'; /* 字体名称（自定义，后续调用时使用） */
  src: url('https://tcbdb.com/wp-content/themes/tcbdb/fonts/syst.otf') format('opentype');
  font-weight: normal; /* 字体粗细（normal/bold/数字） */
  font-style: normal;  /* 字体样式（normal/italic） */
}

/* 应用到全站元素 */
body, p, a, h1, h2, h3, h4, h5, h6, li, ul, ol, div, span {
  font-family: 'tcbdbzt', sans-serif ; /* 调用上面定义的字体名称 */
}

/* logo流光动画效果*/
.logo{
    position:relative;
    overflow:hidden;
    margin: 0px 0 0 0px;
}
.logo:before{
    content:"";
     position: absolute;
     left: -665px;
     top: -460px;
     width: 200px;
     height: 15px;
     background-color: rgba(255,255,255,0.5);
     -webkit-transform: rotate(-45deg);
     -moz-transform: rotate(-45deg);
     -ms-transform: rotate(-45deg);
     -o-transform: rotate(-45deg);
     transform: rotate(-45deg);
     -webkit-animation: searchLights 6s ease-in 0s infinite;
     -o-animation: searchLights 6s ease-in 0s infinite;
     animation: searchLights 6s ease-in 0s infinite;
}
@-moz-keyframes searchLights{
    50%{
        left: -100px;
         top: 0;
    }
     65%{
        left: 120px;
         top: 100px;
    }
}
@keyframes searchLights{
    40%{
        left: -100px;
         top: 0;
    }
     60%{
        left: 120px;
         top: 100px;
    }
     80%{
        left: -100px;
         top: 0px;
    }
}

/*文章内H标签美化*/
.entry-content > h2::before{content: '';margin-right:0;}
.single-article .entry-content > h2{
	font-weight: bold;
	background-color: #f6f6f6;
	margin: 20px 0;
	padding: 5px 12px;
	border-left: 5px solid #ff0044;
	font-size: 21px;
}
.single-article .entry-content > h3{
	font-weight: bold;
	background-color: #f6f6f6;
	margin: 20px 0;
	padding: 5px 12px;
	border-left: 5px solid #3e66ff;
	font-size: 18px;
}
.single-article .entry-content > h4{
	font-weight: bold;
	background-color: #f3e1e1;
	margin: 20px 0;
	padding: 5px 12px;
	border-left: 5px solid #000000;
	font-size: 15px;
}
.single-article .entry-content > h5{
	font-weight: bold;
	background-color: #f6f6f6;
	margin: 20px 0;
	padding: 5px 12px;
	border-left: 5px solid #0061a8;
	font-size: 12px;
}

/*底部LOGO与介绍*/
.html-widget {
    padding: 6px;
}
        .dblogo {
            font-size: 33px;
            font-weight: bold;
            margin-bottom: -11px;
            /* 流光效果核心样式 */
            background: linear-gradient(90deg, #FAFAFA, #000000, #FFD1DC, #0000FF);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: inline-block;
            animation: upDownFloat 2s ease-in-out infinite alternate;
        }
  @keyframes upDownFloat {
      0% {
        /* 初始位置（可微调数值改变浮动幅度） */
        transform: translateY(0px);
      }
      100% {
        /* 上浮位置（负数=向上，正数=向下，建议2-5px，避免过于夸张） */
        transform: translateY(-5px);
      }
    }
        .dblink {
            font-size: 38px;
            font-weight: bold;
            margin-bottom: 0px;
            /* 流光效果核心样式 */
            background: linear-gradient(90deg, #FAFAFA, #FF0044, #FFD1DC, #00FF4E);
            background-size: 400% 400%;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: glowing 8s linear infinite;
            display: inline-block;
        }
        .dbjs {
            font-size: 14px;
            color: #333333;
            line-height: 1.3;
            text-align: left;
            max-width: 1000px;
        }
        /* 流光动画 */
        @keyframes glowing {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }
/* 广告图片 */
/* AD右上角标识容器 */
.ad-wrap {
  width: 300px;
  position: relative;
  display: inline-block;
}

/* 广告图片 */
.ad-wrap img {
  width: 100%;
  display: block;
}

/* 右上角悬浮图标（透明！不挡图） */
.ad-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  background: transparent; /* 完全透明 */
  border-radius: 50%;
  overflow: hidden;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 12px;
  line-height: 22px;
  z-index: 10;
  text-align: left;
}

/* 鼠标悬停展开（半透明白底，不挡图） */
.ad-dot:hover {
  width: 200px;
  border-radius: 30px;
  padding: 0 6px;
  background: rgba(255,255,255,0.9);
}

/* 链接样式 */
.ad-dot a {
  color: #ff0044;
  text-decoration: none;
  padding-left: 1px;
  display: inline-block;
}
/* 阿里 Symbol 彩色图标样式 */
.icon-ad {
  width: 25px;
  height: 25px;
  vertical-align: middle;
  fill: currentColor;
  overflow: hidden;
  margin-right: 0px;
}

/*阿里图标样式*/
.icon-symbol {
  width: 1em !important;
  height: 1em !important;
  /* 关键：控制图标大小，1em=跟随文字大小 */
  font-size: 18px !important;
  vertical-align: middle !important;
  fill: currentColor;
  overflow: hidden;
  display: inline-block !important;
  line-height: 1 !important;
}

/* 隐藏手机端显示标签云小工具 */
@media (max-width: 768px) {
    .widget_tag_cloud {
        display: none !important;
    }
}

/*渐变背景打字效果css*/
/* 全宽容器设置 */
.fullwidth-gradient {
  width: 100vw; /* 全屏宽度 */
  min-height: 50px; /* 全屏高度 */
  margin-left: calc(-50vw + 50%); /* 抵消WordPress默认容器边距 */
  overflow: hidden;
  position: relative;
  
  /* 动态渐变背景（可自定义颜色） */
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite; /* 动画持续15秒，无限循环 */
}

/* 渐变动画关键帧 */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 内容容器居中 */
.content-container {
  position: relative;
  z-index: 2; /* 确保内容在背景之上 */
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center; /* 文字和图片居中 */
}

/* 打字效果文字样式 */
.typing-text {
  color: white; /* 文字颜色（根据渐变调整） */
  font-size: 2rem;
  font-weight: bold;
  margin-top: 0rem;
}

/* 光标闪烁效果 */
.cursor {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}
/*end*/
/*视差效果css*/
/* 视差效果核心样式 */
.parallax-section {
  background-attachment: fixed; /* 背景图固定在视口 */
  background-size: cover; /* 背景图覆盖整个区域 */
  background-position: center; /* 背景图居中显示 */
  background-repeat: no-repeat; /* 背景图不重复 */
  height: 38vh; /* 占视口高度的50% */
  position: relative; /* 用于内部内容定位 */
}

/*.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}
*/
/* 视差区域内的内容 */
.parallax-content {
  position: relative; /* 确保内容在遮罩上方 */
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* 垂直居中 */
  align-items: center; /* 水平居中 */
  text-align: center;
  color: white; /* 文字白色，与遮罩对比 */
  padding: 0 20px;
}

.parallax-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.parallax-content p {
  font-size: 1.2rem;
  max-width: 800px;
}

/* 基础按钮样式 */
.btn-link {
  /* 按钮外观 */
  display: inline-block; /* 确保 padding 和宽高生效 */
  padding: 10px 20px; /* 内边距（上下 10px，左右 20px） */
  background-color: #000; /* 背景色（Bootstrap 蓝色） */
  color: white; /* 文字颜色 */
  text-decoration: none; /* 去除默认下划线 */
  border-radius: 4px; /* 圆角 */
  font-weight: 500; /* 文字加粗 */
  border: none; /* 去除边框（如需边框可自定义） */

  /* 过渡动画（hover 效果更平滑） */
  transition: all 0.3s ease;
}

/* 鼠标悬停效果（必备） */
.btn-link:hover {
  background-color: #ff0044; /* 深色版本的背景色 */
  color: white; /* 确保文字颜色不变 */
  transform: translateY(-2px); /* 轻微上浮效果 */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 阴影增强立体感 */
}

/* 点击时效果（可选） */
.btn-link:active {
  transform: translateY(0); /* 点击后恢复原位 */
  box-shadow: none; /* 去除阴影 */
}
/*end*/

/*鼠标滑过文章缩略图动画效果*/
 .post-module-thumb:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    background: url(https://s.tcbdb.com/wp-content/uploads/2026/04/20260421182849205.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 3;
    -webkit-transform: scale(2);
    transform: scale(2);
    transition: opacity .75s, -webkit-transform .75s;
    transition: transform .75s, opacity .75s;
    transition: transform .75s, opacity .75s, -webkit-transform .75s;
    opacity: 0;
    pointer-events: none;
}
.post-module-thumb:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background .35s;
    border-radius: 8px;
    z-index: 2;
    max-width: 765px;
    margin: 0 auto;
    pointer-events: none;
}
 .post-module-thumb:hover:before {
                background: rgba(0,0,0,.5)
            }
        .post-module-thumb:hover:after {
                -webkit-transform: scale(1);
                transform: scale(1);
                opacity: 1
            }
/*end*/
/*友情链接*/
  /* 整体容器样式 
        .link-container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
        }*/

        /* 标题通用样式 */
        .section-title {
            font-size: 14px;
            font-weight: 600;
            color: #333333;
            margin-bottom: 0px;
            padding-bottom: 5px;
            /*border-bottom: 2px solid #eee;*/
        }

        .friend-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0px 25px; /* 链接之间的间距 */
            margin-bottom: 40px;
        }

        .friend-links a {
            color: #333333;
            text-decoration: none;
            font-size: 13px;
            transition: color 0.3s ease;
        }

        .friend-links a:hover {
            color: #ff0044; /* 鼠标悬浮文字变色 */
            /*text-decoration: underline;*/
        }
/*end*/
/* 合作企业模块整体样式 */
.partner-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px 0;
  padding: 20px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* 左侧标题样式 */
.partner-title {
  font-size: 33px;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
  flex-shrink: 0; /* 标题不压缩 */
}

/* LOGO容器样式 */
.partner-logo-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 25px; /* LOGO之间的间距 */
  flex: 1;
}

/* LOGO图片基础样式（灰色效果） */
.partner-logo-group img {
  height: 50px; /* 统一LOGO高度，可自行修改 */
  width: auto;
  filter: grayscale(100%); /* 100%灰色 */
  transition: all 0.1s ease; /* 平滑过渡动画 */
  opacity: 0.7;
}

/* 鼠标悬浮LOGO（变彩色） */
.partner-logo-group img:hover {
  filter: grayscale(0%); /* 取消灰色 */
  opacity: 1;
  /*transform: scale(1.05);  轻微放大（可选效果） */
}

/* 移除链接下划线 */
.partner-logo-group a {
  text-decoration: none !important;
  border: none !important;
}

/* 手机端适配 */
@media (max-width: 768px) {
  .partner-section {
    flex-direction: column;
    text-align: center;
  }
  .partner-logo-group {
    justify-content: center;
  }
}
/*end*/
/*底部二维码联系站长*/
/* 底部二维码容器 */
.dbewm {
  /* 核心：水平居中 */
  text-align: center;
  /* 上下留白，避免贴边 */
  margin: 30px 0;
  /* 文字颜色（可自定义） */
  color: #333;
  /* 文字大小（可自定义） */
  font-size: 14px;
}

/* 二维码图片样式 */
.dbewm img {
  /* 二维码宽度（可自定义大小） */
  width: 120px;
  /* 高度自适应，不变形 */
  height: auto;
  /* 消除图片底部默认空白间隙 */
  display: block;
  /* 图片水平居中 */
  margin: 0 auto 10px;
  /* 可选：图片加圆角，更美观 */
  border-radius: 4px;
}
/*end*/
/*底部联系我们下划线去掉*/
.site-footer .widget-title {
    border-bottom: 0px solid rgba(255, 255, 255, 0.3);
    padding: 14px 0;
}
/*end*/
/*网址导航页面优化*/
/*网址导航样式优化*/
.b2-tab-links {
    background-color: #ffffff;
}
.links-home h1 {
    font-family: 'tcbdbzt', sans-serif;
    font-size: 38px;
    margin-bottom: 2px;
    padding-top: 12px;
    text-align: center;
    margin-right: 10px;
    font-weight: bold;
}
.link-total {
    font-size: 12px;
    margin-bottom: 10px;
    margin-right: 10px;
    text-align: center;
}
.b2-tab-links .toc-list {
    text-align: right;
    font-size: 18px;
    margin-right: 30px;
}
/*.b2-tab-links .is-active-li a.toc-link {*/
    /*background-color: #ff0044;*/
/*}*/
/*.is-active-link {*/
    /*font-weight: 700;*/
    /*color: #f9f9f9;*/
/*}*/
.b2-tab-links a.toc-link {
    display: inline-block;
    padding: 0px 0px;
    height: 39px;
    line-height: 40px;
    width: 150px;
    background-size: 100% auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0);
}
.b2-tab-links .b2-tab-link-in a:hover {
    color: #ff0044;
}
.link-join {
    margin-right: 58px;
}
/*导航页右边标签优化*/
.link-in {
    padding: 1rem 0.5rem;
    min-width: 100%;
    max-width: 200px;
    min-height: 3rem;
}
/* 新增：进度条（默认隐藏，宽度0） */
.link-in::after {
  content: "";
  position: absolute;
  left: 0%; /* 从左侧开始 */
  bottom: 0; /* 贴底部（顶部改 top: 0） */
  height: 5px; /* 进度条厚度（可改2px/4px） */
  width: 0; /* 默认隐藏 */
  background-color: #ff0044; /* 主色（替代 --b2color） */
  border-radius: 2.5px; /* 进度条圆角（厚度的一半） */
  transition: width 0.3s ease-out; /* 动画时长（0.2秒=瞬间拉满） */
}

/* 新增：鼠标悬浮时，进度条拉满（宽度100%） */
.link-in:hover {
  background-color: rgba(255, 0, 68, 0.03); /* 淡色背景（替代 --b2light） */
  border-color: rgba(255, 0, 68, 0.2); /* 淡色边框（替代 --b2lightcolor） */
}

.link-in:hover::after {
  width: 100%; /* 进度条拉满 */
}
/*导航搜索框样式*/
/* 视频搜索容器 */
.video-search-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-bg video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 铺满容器 */
  object-position: center; /* 居中显示，保留中间区域 */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* 遮罩层不影响视频居中 */
}

/* 搜索内容区域 */
.search-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  color: white;
}

/* 搜索引擎选择器 */
.search-engine-selector {
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.search-engine-selector input {
  margin-right: 5px;
}

/* 搜索表单样式 */
.search-form {
  width: 100%;
  max-width: 800px;
  display: flex;
  margin-bottom: 20px;
}

.search-form input {
  flex: 1;
  padding: 15px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px 0 0 4px;
  outline: none;
}

/* 搜索按钮样式及悬停动画 */
.search-btn {
  padding: 0 30px;
  background: #ff0044;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease; /* 过渡动画 */
}

.search-btn:hover {
  background: #dc143c;
  /*transform: translateY(-2px);  上移效果 */
  /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);*/
}

/* 热搜词样式及悬停动画 */
.hot-searches {
  font-size: 14px;
}

.hot-searches a {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 8px;
  text-decoration: none;
  transition: all 0.3s ease; /* 过渡动画 */
  position: relative;
}

.hot-searches a:hover {
  color: #ffffff;
  transform: scale(1.1); /* 放大效果 */
}

.hot-searches a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.hot-searches a:hover::after {
  width: 100%; /* 下划线动画 */
}

.search-content h2 {
    padding: 12px 5px;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
}

/* 隐藏手机端搜索框 */
@media (max-width: 768px) {
    .video-search-container {
        display: none !important;
    }
}
/*end*/
/*供求信息首页走马灯文字*/
    .marquee {
      width: 100%;       /* 容器宽度，可自定义 */
      overflow: hidden;  /* 核心：隐藏滚动出容器的文字 */
      background: #f8f9fa;
      padding: 8px 0;
    }

    /* 文字内容层：横向排列+动画滚动 */
    .marquee-text {
      display: flex;
      white-space: nowrap; /* 文字不换行 */
      /* 动画：名称 时长 匀速 无限循环 */
      animation: scroll 25s linear infinite;
    }

    /* 定义滚动动画：从右 → 左 */
    @keyframes scroll {
      0%   { transform: translateX(100%); }  /* 初始位置：容器右侧外 */
      100% { transform: translateX(-100%); } /* 结束位置：容器左侧外 */
    }
/*end*/
/*商城详情图间隔*/
/*.entry-content figure {
    margin-bottom: 0em;
}*/
/*end*/
/*手机端底部波浪间隔*/
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 0px 16px 0px;
    }
}
/*end*/
/* 文章内容禁止选中文字 */
.entry-content {
    user-select: none; /* 主流浏览器 */
    -webkit-user-select: none; /* Chrome/Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
}
/*end*/
/* 侧边SVG公共样式 */
.side-svg-decor {
  position: fixed;
  z-index: 1 !important;
  pointer-events: none; /* 不遮挡点击 */
  opacity: 0.15; /* 整体淡雅透明度 */
}

/* 1、上下漂浮动画 */
.float-svg {
  animation: floatMove 7s ease-in-out infinite;
}
@keyframes floatMove {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-25px); }
  100% { transform: translateY(0px); }
}

/* 2、360度自转动画 */
.rotate-svg {
  animation: rotateMove 20s linear infinite;
}
@keyframes rotateMove {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 手机端全部隐藏 */
@media (max-width: 768px) {
  .side-svg-decor {
    display: none !important;
  }
}
/*end*/
/*圈子随机AD*/
.circle-topic-ad-item{
    position: relative;
    border-top:1px solid #efefef;
    background-color: #fafafa
}
.topic-ad-box{
    position: relative
}
.topic-ad-avatar-icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #f0f0f0;
    font-size: 18px;
    color: #8590a6
}
.topic-avatar img.b2-radius{
    width: 100%;
    height: 100%;
    object-fit: cover
}
.topic-ad-label{
    display: inline-block;
    background-color: #f0f0f0!important;
    color: #8590a6!important;
    border: none!important;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 2px;
    font-weight: normal;
    line-height: 1.4;
    margin-top: 2px
}
.topic-ad-sponsor-name{
    display: block;
    font-size: 15px;
    color: #494B4D;
    font-weight: 600;
    line-height: 1.3
}
.topic-ad-content{
    padding: 8px 20px 8px 68px
}
.topic-ad-link{
    display: block;
    color: inherit;
    text-decoration: none
}
.topic-ad-link:hover{
    color: inherit
}
.topic-ad-link h2{
    margin-bottom: 8px
}
.topic-ad-link p{
    color: #8590a6;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 8px
}
.topic-ad-image{
    overflow: hidden;
    margin-top: 8px;
    max-width: 100%
}
.topic-ad-image img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px
}
.topic-ad-video{
    overflow: hidden;
    margin-top: 8px;
    max-width: 100%
}
.topic-ad-video video{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    background-color: #000
}
.topic-ad-footer{
    padding: 15px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center
}
.topic-ad-date{
    font-size: 12px;
    color: #c0c0c0
}
.topic-ad-go-button{
    display: inline-block;
    padding: 4px 16px;
    border-radius: 3px;
    font-size: 13px;
    color: #fff;
    background-color: #8590a6;
    text-decoration: none;
    transition: background-color .2s
}
.topic-ad-go-button:hover{
    background-color: #727d8c;
    color: #fff
}
.topic-ad-custom-html{
    padding: 0px;
    position: relative
}
.topic-ad-custom-html img{
    max-width: 100%;
    height: auto
}

@media screen and (max-width:768px){
    .circle-topic-ad-item{
        padding:0
    }
    .topic-ad-content{
        padding: 6px 16px
    }
    .topic-ad-footer{
        padding: 15px 16px 16px
    }
    .topic-ad-avatar-icon{
        width: 36px;
        height: 36px
    }
    .topic-ad-sponsor-name{
        font-size: 14px
    }
    .topic-ad-label{
        font-size: 10px
    }
    .topic-avatar img.b2-radius{
        width: 100%;
        height: 100%;
        object-fit: cover
    }
    .topic-ad-custom-html{
        padding: 16px
    }
}
/*end*/
/* 文章内code标签颜色修改 */
.entry-content p > code {
    color: #ff0044;
    background-color: #f8f8f8;
}
/* 文章内列表标签颜色修改 */
.entry-content > ol li::marker, .entry-content > ul li::marker {
    color: #ff0044;
}
/*end*/
/*首页供求小工具分类美化*/
.widget-info-type {
    color: #ff0044ad;
    margin-right: 6px;
}

.widget-info-type span {
    margin-right: 6px;
}
/*end*/

/* ===================================
   IP归属地显示样式 - 与时间完全统一
   =================================== */

/* 基础样式 - 与时间显示保持一致 */
.comment-ip-location {
    display: inline;
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    vertical-align: baseline;
    line-height: 1.5;
    font-weight: normal;
    letter-spacing: normal;
}

/* ---- 圈子评论区域 ---- */

/* 评论meta信息容器 - 确保时间和归属地水平对齐 */
.topic-author-meta .comment-meta-info {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    line-height: 1;
}

.topic-author-meta .comment-meta-info .date {
    display: inline;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.topic-author-meta .comment-meta-info .comment-ip-location {
    display: inline;
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    line-height: 1.5;
    white-space: nowrap;
}

/* 子评论同样处理 */
.topic-lv2 .topic-author-meta .comment-meta-info {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

/* ---- 文章评论区域 ---- */

/* 文章评论的时间容器 */
.comment-floor {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

.comment-floor .comment-ip-location {
    display: inline;
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    line-height: 1.5;
    white-space: nowrap;
}

/* 确保文章评论时间文本样式一致 */
.comment-floor {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

/* ---- 响应式布局 ---- */

/* 平板设备 */
@media (max-width: 1024px) {
    .comment-ip-location {
        font-size: 11px;
        margin-left: 6px;
    }
    
    .topic-author-meta .comment-meta-info .date,
    .topic-author-meta .comment-meta-info .comment-ip-location,
    .comment-floor .comment-ip-location,
    .comment-floor {
        font-size: 11px;
    }
    
    .topic-author-meta .comment-meta-info .comment-ip-location,
    .comment-floor .comment-ip-location {
        margin-left: 6px;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .comment-ip-location {
        font-size: 10px;
        margin-left: 5px;
    }
    
    .topic-author-meta .comment-meta-info {
        flex-wrap: wrap;
    }
    
    .topic-author-meta .comment-meta-info .date,
    .topic-author-meta .comment-meta-info .comment-ip-location,
    .comment-floor .comment-ip-location,
    .comment-floor {
        font-size: 10px;
    }
    
    .topic-author-meta .comment-meta-info .comment-ip-location,
    .comment-floor .comment-ip-location {
        margin-left: 5px;
    }
    
    /* 小屏幕下允许换行 */
    .topic-author-meta .comment-meta-info {
        display: inline-block;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .comment-ip-location {
        font-size: 9px;
        margin-left: 4px;
    }
    
    .topic-author-meta .comment-meta-info .comment-ip-location,
    .comment-floor .comment-ip-location {
        margin-left: 4px;
        font-size: 9px;
    }
}

/* ---- 深色模式 ---- 

@media (prefers-color-scheme: dark) {
    .comment-ip-location {
        color: #aaa;
    }
    
    .topic-author-meta .comment-meta-info .date,
    .topic-author-meta .comment-meta-info .comment-ip-location,
    .comment-floor,
    .comment-floor .comment-ip-location {
        color: #aaa;
    }
}
*/
/* ---- 打印样式 ---- */

@media print {
    .comment-ip-location {
        display: none;
    }
}

/* ---- 动画效果（可选）---- */

.comment-ip-location {
    transition: opacity 0.2s ease;
}

.comment-ip-location:hover {
    opacity: 0.7;
}
/*end*/
/*pc端搜索框左移*/
.social-top .top-search {
    margin-right: 38px;
}
/*暗黑模式按钮样式*/
.theme-switch{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;    
    height: 24px;
    margin-right: 15px;
    cursor: pointer
}
.theme-switch .theme-icon{
    width: 22px;
    height: 22px;
}
.change-theme > .theme-switch{
    display: flex !important
}

/* 开启暗黑模式*/
/*
.dark img {
    filter: brightness(30%);
}

.dark ::-webkit-scrollbar{width:8px;background:#222;}
.dark ::-webkit-scrollbar-thumb{background:#333;}
::-webkit-scrollbar{width:8px;background:#ccc;}
::-webkit-scrollbar-thumb{background:#222;}*/

.dark .site {
    background-color: #212121;
}

.dark .i-cat,
.dark .collection-posts li span,
.dark .shop-single-data li.shop-single-data-price {
    background-color: #000000;
}
.dark .social-top .top-menu ul li.depth-0>a
/*.dark .header .mobile-box,*/
.dark .b2-menu-1 .sub-menu-0,
.dark .b2-menu-2 .sub-menu-0,
.dark .top-menu .top-menu-ul,
.dark .social-top .header-banner-content .header-banner-left,
.dark .header-banner,
.dark .header {
    background-color: #2b2b2b;
}

.dark .b2-tab-links,
.dark .modal.address-box .modal-content,
.dark .content-hidden-info,
.dark .b2-menu-1 .sub-menu-0 li a,
.dark .top-menu ul li.depth-0.show .sub-menu,
.dark .post-list-cats a span,
.dark .box {
    background-color: #333333;
}


.dark .b2-tab-links,
.dark .gdd-quick-link-buy-vip__popover--btn,
.dark .gdd-quick-link-buy-vip__hover-block p,
.dark .link-top h2, 
.dark .link-title-left, 
.dark .answer-date,
.dark .answer-top-left,
.dark .ask-answer-title,
.dark .ask-pay-type,
.dark .entry-content li,
.dark .ask-metas,
.dark .ask-list-box,
.dark .ask-widget-ul,
.dark .ask-widget-fliter,
.dark .social-top .header-banner .ym-menu a,
.dark .collection-posts li a.post-link, 
.dark a {
    color: #ffffff;
}

.dark p,
.dark .infomation-breadcrumb span,
.dark .info-h1,
.dark .comments-title,
.dark .single .post-list-cat a,
.dark .b2-hover a,
.dark .c-c-name,
.dark .carts-top,
.dark .content-footer-poster,
.dark .ask-user-info,
.dark .change-theme button i,
.dark .social-top .top-submit button,
.dark .com-form-button-l,
.dark .shop-single-action-right .favorite-button,
.dark .shop-single-data-list,
.dark .shop-single-data h1,
.dark .shop-single-attr-title,
.dark .shop-single-attr-data,
.dark .top-user-info-box-name h2,
.dark .credit-top-name,
/*.dark .user-mission-info-right span,*/
.dark .topic-name-data b,
.dark .my-circle-list > div > button,
.dark .po-topic-top,
.dark .shop-list-item h2,
.dark .widget ul li h2,
.dark .shop-box-title .modules-title-box h2,
.dark .b2-widget-products ul.b2-widget-buy-ul .buy-news-info p,
.dark .comment-info span,
.dark .widget > h2,
.dark .content-ds-count,
.dark .widget-comment-user-left span,
.dark .b2-widget-title h2,
.dark .single-article h1,
.dark .entry-content > p,
.dark .post-meta li span,
.dark .single .post-list-cat a,
.dark .header-banner .ym-menu a,
.dark .header .button {
    color: #8d8d8d;
}

.dark .next-jt i {
    background-color: rgb(255 255 255 / 0%);
}

.dark .top-user-info-box,
.dark .top-user-info-box,
.dark .shop-single-data li.shop-single-data-price,
.dark .header-banner {
    background-image: none;
}

.dark .site .site-header-in {
    box-shadow: 0 0px 18px 0 #edd1d8;
}

/* 海报按钮 - 使用渐变增强视觉 */
.dark .content-footer-poster button.poster-span {
    background: linear-gradient(135deg, #ff0044, #333333);
}

/* 分隔线统一 */
.dark .topic-comment-list-footer,
.dark .topic-type-menu,
.dark .topic-comments,
.dark .none-comment,
.dark .entry-header,
.dark .ask-write-answer,
.dark .list-footer,
.dark .custom-page-widget ul li + li,
.dark .shop-box-price,
.dark .social-top .top-style-bottom,
.dark .circle-widget-button,
.dark .circle-topic-item,
.dark .aside-bar > div > div + div,
.dark .b2-widget-box .ask-widget-ul,
.dark .ask-item + .ask-item,
.dark .b2-widget-box .ask-widget-ul li,
.dark .create-circle-item + .create-circle-item,
.dark .widget-mission-footer a {
    border-top: 1px solid #000000;
}

/* 边框线 - 统一色调 */
.dark .post-3 .post-3-li .item-in,
.dark .message-list li,
.dark .dmsg-header,
.dark .topic-vote-desc,
.dark .entry-header,
.dark .ask-answer-title,
.dark .shop-single-attr-title,
.dark .infomation-list-top,
.dark .info-list,
.dark .comments-title {
    border-bottom: 1px solid #000000;
}

.dark .topic-comment-list-header,
.dark .po-topic-textarea textarea:first-child {
    border-bottom: 1px solid #fafafa;
}

.dark .circle-info-box .create-form>div label,
.dark .ask-widget-meta .green,
/*.dark .user-money, .user-credit,*/
.dark .ask-top,
.dark .table-info.table-bar .carts-name,
.dark .shop-normal-item-img,
.dark .content-footer-zan-cai span,
.dark .top-user-box-drop,
.dark .top-user-info-box,
.dark .user-sidebar-count li,
.dark .w-a-count,
.dark .mobile-footer-menu,
.dark .user-social-box > div,
.dark .user-social-box > div:hover,
.dark .user-money-and-credit > div:hover .user-money,
.dark .user-money-and-credit > div:hover .user-credit,
.dark .top-user-info-box .user-w-gold a i,
.dark .topic-meta-more-box ul {
    background: #333333;
}
/* 状态文字颜色 */
.dark .ask-widget-meta .green {
    color: #81c784;
}

.dark .shop-single-img-box,
.dark .com-form-textarea,
.dark .topic-vote-desc > b.b2-color {
    border: 0px solid #4d70ff;
}

.dark .topic-child-list li {
    background: #555252;
}

.dark .gdd-quick-link-buy-vip__popover--title,
.dark .top-user-info-box-name h2 span {
    color: #ff0044;
}


.dark .social-top .menu-icon .line-1,
.dark .social-top .menu-icon .line-2,
.dark .social-top .menu-icon .line-3 {
    background: #ffffff;
}

/*.dark .theme-switch .theme-icon {
    color: #ffffff;
}
*/
.dark .menu-icon {
    background: #00000000;
}

.dark .ask-answer-count.has {
    background-color: #666666;
}

.dark .entry-content .post-note,
.dark .content-ds {
    background: #616161;
}

/*end*/

/* ========================================
   文章原创标识样式
   在文章卡片缩略图左上角显示标识标签
   ======================================== */

.tcbdb-badge-wrap {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.tcbdb-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.tcbdb-badge-original {
    background: #ff0044;
    color: #ffffff;
}

.tcbdb-badge-featured {
    background: #ffa502;
    color: #ffffff;
}

.tcbdb-badge-recommended {
    background: #2ed573;
    color: #ffffff;
}

@media screen and (max-width: 768px) {
    .tcbdb-badge-wrap {
        top: 6px;
        left: 6px;
        gap: 3px;
    }

    .tcbdb-badge {
        padding: 2px 6px;
        font-size: 12px;
        border-radius: 2px;
        letter-spacing: 0.5px;
    }
}

@media screen and (max-width: 480px) {
    .tcbdb-badge-wrap {
        top: 4px;
        left: 4px;
        gap: 2px;
    }

    .tcbdb-badge {
        padding: 1px 5px;
        font-size: 12px;
        letter-spacing: 0;
    }
}
/*end*/

/* ========================================
   代码高亮功能样式
   支持多种配色方案、亮暗模式、行号、折叠等
   ======================================== */

.b2child-code-wrap {
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s;
}

.b2child-code-wrap:hover {
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.18);
}

.b2child-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 40px;
    user-select: none;
    position: relative;
    z-index: 10;
    border-radius: 10px 10px 0 0;
}

.b2child-code-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.b2child-code-logo {
    max-height: 24px;
    width: auto;
    max-width: 160px;
    border-radius: 4px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.b2child-code-lang {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    white-space: nowrap;
}

.b2child-code-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.b2child-code-signature {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.b2child-code-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px 8px;
}

.b2child-code-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    opacity: 0.65;
    transition: opacity 0.2s, background 0.2s, transform 0.15s;
    position: relative;
}

.b2child-code-btn:hover {
    opacity: 1;
    transform: scale(1.08);
}

.b2child-code-btn:active {
    transform: scale(0.95);
}

.b2child-code-btn svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.b2child-code-btn--copied {
    opacity: 1 !important;
}

.b2child-code-body {
    position: relative;
    border-radius: 0 0 10px 10px;
}

.b2child-code-body.b2child-code-collapsed {
    max-height: 200px !important;
    overflow: hidden;
}

.b2child-code-body.b2child-code-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    pointer-events: none;
    z-index: 2;
}

.b2child-code-expand-bar {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.2s;
    user-select: none;
    gap: 4px;
    border-radius: 0 0 10px 10px;
}

.b2child-code-expand-bar svg {
    width: 14px;
    height: 14px;
}

.b2child-code-wrap--collapsed .b2child-code-expand-bar {
    display: flex;
}

.b2child-code-wrap--expanded .b2child-code-expand-bar {
    display: flex;
}

.b2child-code-body pre[class*="language-"] {
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    tab-size: 4 !important;
    overflow: visible !important;
    position: relative;
}

.b2child-code-line-highlight {
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    pointer-events: none;
    z-index: 0;
    transition: top 0.08s ease, opacity 0.15s ease;
    opacity: 0;
}

.b2child-code-body:hover .b2child-code-line-highlight {
    opacity: 1;
}

.b2child-code-body code[class*="language-"] {
    font-size: 14px !important;
    line-height: 1.65 !important;
    tab-size: 4 !important;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace !important;
}

.b2child-code-content {
    display: flex;
    align-items: stretch;
}

.b2child-code-linenum-col {
    flex-shrink: 0;
    width: 48px;
    overflow: hidden;
    user-select: none;
    border-right: 1px solid rgba(128, 128, 128, 0.15);
}

.b2child-code-code-col {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.b2child-code-linenum {
    padding: 16px 0;
    text-align: right;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 12px;
    line-height: 23.1px;
}

.b2child-code-linenum span {
    display: block;
    padding-right: 12px;
}

.b2child-code-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 9999;
}

.b2child-code-btn:hover .b2child-code-tooltip {
    opacity: 1;
}

.b2child-code-theme-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 150px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
}

.b2child-code-theme-btn-wrap {
    position: relative;
}

.b2child-code-theme-dropdown.b2child-code-theme-dropdown--open {
    display: block;
    animation: b2childCodeDropdownIn 0.15s ease;
}

@keyframes b2childCodeDropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.b2child-code-theme-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.b2child-code-theme-item:hover {
    filter: brightness(1.1);
}

.b2child-code-theme-item--active {
    font-weight: 700;
}

.b2child-code-theme-item--active .b2child-code-theme-dot {
    box-shadow: inset 0 0 0 3px currentColor;
    border-color: transparent !important;
}

.b2child-code-theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

/* ---- One Dark 配色 ---- */
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-header {
    background: #21252b;
    color: #abb2bf;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-body {
    background: #282c34;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-body pre[class*="language-"] {
    background: #282c34 !important;
    color: #abb2bf;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-btn {
    color: #abb2bf;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-body.b2child-code-collapsed::after {
    background: linear-gradient(to bottom, transparent, #282c34);
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-expand-bar {
    background: #21252b;
    color: #abb2bf;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-expand-bar:hover {
    background: #2c313a;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-tooltip {
    background: #181a1f;
    color: #abb2bf;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-theme-dropdown {
    background: #21252b;
    color: #abb2bf;
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-theme-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-theme-dot {
    border-color: rgba(255, 255, 255, 0.2);
}
.b2child-code-wrap[data-theme="one-dark"] .token.comment,
.b2child-code-wrap[data-theme="one-dark"] .token.prolog,
.b2child-code-wrap[data-theme="one-dark"] .token.doctype,
.b2child-code-wrap[data-theme="one-dark"] .token.cdata { color: #5c6370; font-style: italic; }
.b2child-code-wrap[data-theme="one-dark"] .token.punctuation { color: #abb2bf; }
.b2child-code-wrap[data-theme="one-dark"] .token.property,
.b2child-code-wrap[data-theme="one-dark"] .token.tag,
.b2child-code-wrap[data-theme="one-dark"] .token.boolean,
.b2child-code-wrap[data-theme="one-dark"] .token.number,
.b2child-code-wrap[data-theme="one-dark"] .token.constant,
.b2child-code-wrap[data-theme="one-dark"] .token.symbol,
.b2child-code-wrap[data-theme="one-dark"] .token.deleted { color: #e06c75; }
.b2child-code-wrap[data-theme="one-dark"] .token.selector,
.b2child-code-wrap[data-theme="one-dark"] .token.attr-name,
.b2child-code-wrap[data-theme="one-dark"] .token.string,
.b2child-code-wrap[data-theme="one-dark"] .token.char,
.b2child-code-wrap[data-theme="one-dark"] .token.builtin,
.b2child-code-wrap[data-theme="one-dark"] .token.inserted { color: #98c379; }
.b2child-code-wrap[data-theme="one-dark"] .token.operator,
.b2child-code-wrap[data-theme="one-dark"] .token.entity,
.b2child-code-wrap[data-theme="one-dark"] .token.url { color: #56b6c2; }
.b2child-code-wrap[data-theme="one-dark"] .token.atrule,
.b2child-code-wrap[data-theme="one-dark"] .token.attr-value,
.b2child-code-wrap[data-theme="one-dark"] .token.keyword { color: #c678dd; }
.b2child-code-wrap[data-theme="one-dark"] .token.function,
.b2child-code-wrap[data-theme="one-dark"] .token.class-name { color: #61afef; }
.b2child-code-wrap[data-theme="one-dark"] .token.regex,
.b2child-code-wrap[data-theme="one-dark"] .token.important,
.b2child-code-wrap[data-theme="one-dark"] .token.variable { color: #d19a66; }

/* ---- VS Light 配色 ---- */
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-header {
    background: #f3f3f3;
    color: #393939;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-body {
    background: #ffffff;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-body pre[class*="language-"] {
    background: #ffffff !important;
    color: #393939;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-btn {
    color: #616161;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-body.b2child-code-collapsed::after {
    background: linear-gradient(to bottom, transparent, #ffffff);
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-expand-bar {
    background: #f3f3f3;
    color: #393939;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-expand-bar:hover {
    background: #e8e8e8;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-tooltip {
    background: #333;
    color: #fff;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-theme-dropdown {
    background: #ffffff;
    color: #393939;
    border: 1px solid #e0e0e0;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-theme-item:hover {
    background: #f0f0f0;
}
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-theme-dot {
    border-color: rgba(0, 0, 0, 0.15);
}
.b2child-code-wrap[data-theme="vs-light"] .token.comment,
.b2child-code-wrap[data-theme="vs-light"] .token.prolog,
.b2child-code-wrap[data-theme="vs-light"] .token.doctype,
.b2child-code-wrap[data-theme="vs-light"] .token.cdata { color: #008000; }
.b2child-code-wrap[data-theme="vs-light"] .token.punctuation { color: #393939; }
.b2child-code-wrap[data-theme="vs-light"] .token.property,
.b2child-code-wrap[data-theme="vs-light"] .token.tag,
.b2child-code-wrap[data-theme="vs-light"] .token.boolean,
.b2child-code-wrap[data-theme="vs-light"] .token.number,
.b2child-code-wrap[data-theme="vs-light"] .token.constant,
.b2child-code-wrap[data-theme="vs-light"] .token.symbol,
.b2child-code-wrap[data-theme="vs-light"] .token.deleted { color: #a31515; }
.b2child-code-wrap[data-theme="vs-light"] .token.selector,
.b2child-code-wrap[data-theme="vs-light"] .token.attr-name,
.b2child-code-wrap[data-theme="vs-light"] .token.string,
.b2child-code-wrap[data-theme="vs-light"] .token.char,
.b2child-code-wrap[data-theme="vs-light"] .token.builtin,
.b2child-code-wrap[data-theme="vs-light"] .token.inserted { color: #008000; }
.b2child-code-wrap[data-theme="vs-light"] .token.operator,
.b2child-code-wrap[data-theme="vs-light"] .token.entity,
.b2child-code-wrap[data-theme="vs-light"] .token.url { color: #393939; }
.b2child-code-wrap[data-theme="vs-light"] .token.atrule,
.b2child-code-wrap[data-theme="vs-light"] .token.attr-value,
.b2child-code-wrap[data-theme="vs-light"] .token.keyword { color: #0000ff; }
.b2child-code-wrap[data-theme="vs-light"] .token.function,
.b2child-code-wrap[data-theme="vs-light"] .token.class-name { color: #795e26; }
.b2child-code-wrap[data-theme="vs-light"] .token.regex,
.b2child-code-wrap[data-theme="vs-light"] .token.important,
.b2child-code-wrap[data-theme="vs-light"] .token.variable { color: #e50000; }

/* ---- Dracula 配色 ---- */
.b2child-code-wrap[data-theme="dracula"] .b2child-code-header {
    background: #1a1a2e;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-body {
    background: #282a36;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-body pre[class*="language-"] {
    background: #282a36 !important;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-btn {
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-body.b2child-code-collapsed::after {
    background: linear-gradient(to bottom, transparent, #282a36);
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-expand-bar {
    background: #1a1a2e;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-expand-bar:hover {
    background: #22233a;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-tooltip {
    background: #111122;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-theme-dropdown {
    background: #1a1a2e;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-theme-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.b2child-code-wrap[data-theme="dracula"] .b2child-code-theme-dot {
    border-color: rgba(255, 255, 255, 0.2);
}
.b2child-code-wrap[data-theme="dracula"] .token.comment,
.b2child-code-wrap[data-theme="dracula"] .token.prolog,
.b2child-code-wrap[data-theme="dracula"] .token.doctype,
.b2child-code-wrap[data-theme="dracula"] .token.cdata { color: #6272a4; }
.b2child-code-wrap[data-theme="dracula"] .token.punctuation { color: #f8f8f2; }
.b2child-code-wrap[data-theme="dracula"] .token.property,
.b2child-code-wrap[data-theme="dracula"] .token.tag,
.b2child-code-wrap[data-theme="dracula"] .token.boolean,
.b2child-code-wrap[data-theme="dracula"] .token.number,
.b2child-code-wrap[data-theme="dracula"] .token.constant,
.b2child-code-wrap[data-theme="dracula"] .token.symbol,
.b2child-code-wrap[data-theme="dracula"] .token.deleted { color: #ff5555; }
.b2child-code-wrap[data-theme="dracula"] .token.selector,
.b2child-code-wrap[data-theme="dracula"] .token.attr-name,
.b2child-code-wrap[data-theme="dracula"] .token.string,
.b2child-code-wrap[data-theme="dracula"] .token.char,
.b2child-code-wrap[data-theme="dracula"] .token.builtin,
.b2child-code-wrap[data-theme="dracula"] .token.inserted { color: #50fa7b; }
.b2child-code-wrap[data-theme="dracula"] .token.operator,
.b2child-code-wrap[data-theme="dracula"] .token.entity,
.b2child-code-wrap[data-theme="dracula"] .token.url { color: #8be9fd; }
.b2child-code-wrap[data-theme="dracula"] .token.atrule,
.b2child-code-wrap[data-theme="dracula"] .token.attr-value,
.b2child-code-wrap[data-theme="dracula"] .token.keyword { color: #ff79c6; }
.b2child-code-wrap[data-theme="dracula"] .token.function,
.b2child-code-wrap[data-theme="dracula"] .token.class-name { color: #8be9fd; }
.b2child-code-wrap[data-theme="dracula"] .token.regex,
.b2child-code-wrap[data-theme="dracula"] .token.important,
.b2child-code-wrap[data-theme="dracula"] .token.variable { color: #ffb86c; }

/* ---- Monokai 配色 ---- */
.b2child-code-wrap[data-theme="monokai"] .b2child-code-header {
    background: #1e1f1c;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-body {
    background: #272822;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-body pre[class*="language-"] {
    background: #272822 !important;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-btn {
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-body.b2child-code-collapsed::after {
    background: linear-gradient(to bottom, transparent, #272822);
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-expand-bar {
    background: #1e1f1c;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-expand-bar:hover {
    background: #2a2b25;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-tooltip {
    background: #141510;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-theme-dropdown {
    background: #1e1f1c;
    color: #f8f8f2;
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-theme-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.b2child-code-wrap[data-theme="monokai"] .b2child-code-theme-dot {
    border-color: rgba(255, 255, 255, 0.2);
}
.b2child-code-wrap[data-theme="monokai"] .token.comment,
.b2child-code-wrap[data-theme="monokai"] .token.prolog,
.b2child-code-wrap[data-theme="monokai"] .token.doctype,
.b2child-code-wrap[data-theme="monokai"] .token.cdata { color: #75715e; }
.b2child-code-wrap[data-theme="monokai"] .token.punctuation { color: #f8f8f2; }
.b2child-code-wrap[data-theme="monokai"] .token.property,
.b2child-code-wrap[data-theme="monokai"] .token.tag,
.b2child-code-wrap[data-theme="monokai"] .token.boolean,
.b2child-code-wrap[data-theme="monokai"] .token.number,
.b2child-code-wrap[data-theme="monokai"] .token.constant,
.b2child-code-wrap[data-theme="monokai"] .token.symbol,
.b2child-code-wrap[data-theme="monokai"] .token.deleted { color: #f92672; }
.b2child-code-wrap[data-theme="monokai"] .token.selector,
.b2child-code-wrap[data-theme="monokai"] .token.attr-name,
.b2child-code-wrap[data-theme="monokai"] .token.string,
.b2child-code-wrap[data-theme="monokai"] .token.char,
.b2child-code-wrap[data-theme="monokai"] .token.builtin,
.b2child-code-wrap[data-theme="monokai"] .token.inserted { color: #a6e22e; }
.b2child-code-wrap[data-theme="monokai"] .token.operator,
.b2child-code-wrap[data-theme="monokai"] .token.entity,
.b2child-code-wrap[data-theme="monokai"] .token.url { color: #66d9ef; }
.b2child-code-wrap[data-theme="monokai"] .token.atrule,
.b2child-code-wrap[data-theme="monokai"] .token.attr-value,
.b2child-code-wrap[data-theme="monokai"] .token.keyword { color: #f92672; }
.b2child-code-wrap[data-theme="monokai"] .token.function,
.b2child-code-wrap[data-theme="monokai"] .token.class-name { color: #a6e22e; }
.b2child-code-wrap[data-theme="monokai"] .token.regex,
.b2child-code-wrap[data-theme="monokai"] .token.important,
.b2child-code-wrap[data-theme="monokai"] .token.variable { color: #e6db74; }

/* ---- GitHub Light 配色 ---- */
.b2child-code-wrap[data-theme="github-light"] .b2child-code-header {
    background: #f6f8fa;
    color: #24292e;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-body {
    background: #ffffff;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-body pre[class*="language-"] {
    background: #ffffff !important;
    color: #24292e;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-btn {
    color: #586069;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-body.b2child-code-collapsed::after {
    background: linear-gradient(to bottom, transparent, #ffffff);
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-expand-bar {
    background: #f6f8fa;
    color: #24292e;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-expand-bar:hover {
    background: #eaecef;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-tooltip {
    background: #24292e;
    color: #fff;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-theme-dropdown {
    background: #ffffff;
    color: #24292e;
    border: 1px solid #e1e4e8;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-theme-item:hover {
    background: #f6f8fa;
}
.b2child-code-wrap[data-theme="github-light"] .b2child-code-theme-dot {
    border-color: rgba(0, 0, 0, 0.15);
}
.b2child-code-wrap[data-theme="github-light"] .token.comment,
.b2child-code-wrap[data-theme="github-light"] .token.prolog,
.b2child-code-wrap[data-theme="github-light"] .token.doctype,
.b2child-code-wrap[data-theme="github-light"] .token.cdata { color: #6a737d; }
.b2child-code-wrap[data-theme="github-light"] .token.punctuation { color: #24292e; }
.b2child-code-wrap[data-theme="github-light"] .token.property,
.b2child-code-wrap[data-theme="github-light"] .token.tag,
.b2child-code-wrap[data-theme="github-light"] .token.boolean,
.b2child-code-wrap[data-theme="github-light"] .token.number,
.b2child-code-wrap[data-theme="github-light"] .token.constant,
.b2child-code-wrap[data-theme="github-light"] .token.symbol,
.b2child-code-wrap[data-theme="github-light"] .token.deleted { color: #d73a49; }
.b2child-code-wrap[data-theme="github-light"] .token.selector,
.b2child-code-wrap[data-theme="github-light"] .token.attr-name,
.b2child-code-wrap[data-theme="github-light"] .token.string,
.b2child-code-wrap[data-theme="github-light"] .token.char,
.b2child-code-wrap[data-theme="github-light"] .token.builtin,
.b2child-code-wrap[data-theme="github-light"] .token.inserted { color: #032f62; }
.b2child-code-wrap[data-theme="github-light"] .token.operator,
.b2child-code-wrap[data-theme="github-light"] .token.entity,
.b2child-code-wrap[data-theme="github-light"] .token.url { color: #005cc5; }
.b2child-code-wrap[data-theme="github-light"] .token.atrule,
.b2child-code-wrap[data-theme="github-light"] .token.attr-value,
.b2child-code-wrap[data-theme="github-light"] .token.keyword { color: #d73a49; }
.b2child-code-wrap[data-theme="github-light"] .token.function,
.b2child-code-wrap[data-theme="github-light"] .token.class-name { color: #6f42c1; }
.b2child-code-wrap[data-theme="github-light"] .token.regex,
.b2child-code-wrap[data-theme="github-light"] .token.important,
.b2child-code-wrap[data-theme="github-light"] .token.variable { color: #e36209; }

/* ---- Nord 配色 ---- */
.b2child-code-wrap[data-theme="nord"] .b2child-code-header {
    background: #2e3440;
    color: #d8dee9;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-body {
    background: #2e3440;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-body pre[class*="language-"] {
    background: #2e3440 !important;
    color: #d8dee9;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-btn {
    color: #d8dee9;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-body.b2child-code-collapsed::after {
    background: linear-gradient(to bottom, transparent, #2e3440);
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-expand-bar {
    background: #2e3440;
    color: #d8dee9;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-expand-bar:hover {
    background: #3b4252;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-tooltip {
    background: #242933;
    color: #d8dee9;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-theme-dropdown {
    background: #2e3440;
    color: #d8dee9;
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-theme-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.b2child-code-wrap[data-theme="nord"] .b2child-code-theme-dot {
    border-color: rgba(255, 255, 255, 0.2);
}
.b2child-code-wrap[data-theme="nord"] .token.comment,
.b2child-code-wrap[data-theme="nord"] .token.prolog,
.b2child-code-wrap[data-theme="nord"] .token.doctype,
.b2child-code-wrap[data-theme="nord"] .token.cdata { color: #616e88; }
.b2child-code-wrap[data-theme="nord"] .token.punctuation { color: #81a1c1; }
.b2child-code-wrap[data-theme="nord"] .token.property,
.b2child-code-wrap[data-theme="nord"] .token.tag,
.b2child-code-wrap[data-theme="nord"] .token.boolean,
.b2child-code-wrap[data-theme="nord"] .token.number,
.b2child-code-wrap[data-theme="nord"] .token.constant,
.b2child-code-wrap[data-theme="nord"] .token.symbol,
.b2child-code-wrap[data-theme="nord"] .token.deleted { color: #bf616a; }
.b2child-code-wrap[data-theme="nord"] .token.selector,
.b2child-code-wrap[data-theme="nord"] .token.attr-name,
.b2child-code-wrap[data-theme="nord"] .token.string,
.b2child-code-wrap[data-theme="nord"] .token.char,
.b2child-code-wrap[data-theme="nord"] .token.builtin,
.b2child-code-wrap[data-theme="nord"] .token.inserted { color: #a3be8c; }
.b2child-code-wrap[data-theme="nord"] .token.operator,
.b2child-code-wrap[data-theme="nord"] .token.entity,
.b2child-code-wrap[data-theme="nord"] .token.url { color: #8fbcbb; }
.b2child-code-wrap[data-theme="nord"] .token.atrule,
.b2child-code-wrap[data-theme="nord"] .token.attr-value,
.b2child-code-wrap[data-theme="nord"] .token.keyword { color: #81a1c1; }
.b2child-code-wrap[data-theme="nord"] .token.function,
.b2child-code-wrap[data-theme="nord"] .token.class-name { color: #88c0d0; }
.b2child-code-wrap[data-theme="nord"] .token.regex,
.b2child-code-wrap[data-theme="nord"] .token.important,
.b2child-code-wrap[data-theme="nord"] .token.variable { color: #ebcb8b; }

/* ---- Solarized 配色 ---- */
.b2child-code-wrap[data-theme="solarized"] .b2child-code-header {
    background: #002b36;
    color: #839496;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-body {
    background: #002b36;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-body pre[class*="language-"] {
    background: #002b36 !important;
    color: #839496;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-btn {
    color: #839496;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-body.b2child-code-collapsed::after {
    background: linear-gradient(to bottom, transparent, #002b36);
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-expand-bar {
    background: #002b36;
    color: #839496;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-expand-bar:hover {
    background: #073642;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-tooltip {
    background: #001e26;
    color: #839496;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-theme-dropdown {
    background: #002b36;
    color: #839496;
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-theme-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
.b2child-code-wrap[data-theme="solarized"] .b2child-code-theme-dot {
    border-color: rgba(255, 255, 255, 0.2);
}
.b2child-code-wrap[data-theme="solarized"] .token.comment,
.b2child-code-wrap[data-theme="solarized"] .token.prolog,
.b2child-code-wrap[data-theme="solarized"] .token.doctype,
.b2child-code-wrap[data-theme="solarized"] .token.cdata { color: #586e75; }
.b2child-code-wrap[data-theme="solarized"] .token.punctuation { color: #839496; }
.b2child-code-wrap[data-theme="solarized"] .token.property,
.b2child-code-wrap[data-theme="solarized"] .token.tag,
.b2child-code-wrap[data-theme="solarized"] .token.boolean,
.b2child-code-wrap[data-theme="solarized"] .token.number,
.b2child-code-wrap[data-theme="solarized"] .token.constant,
.b2child-code-wrap[data-theme="solarized"] .token.symbol,
.b2child-code-wrap[data-theme="solarized"] .token.deleted { color: #dc322f; }
.b2child-code-wrap[data-theme="solarized"] .token.selector,
.b2child-code-wrap[data-theme="solarized"] .token.attr-name,
.b2child-code-wrap[data-theme="solarized"] .token.string,
.b2child-code-wrap[data-theme="solarized"] .token.char,
.b2child-code-wrap[data-theme="solarized"] .token.builtin,
.b2child-code-wrap[data-theme="solarized"] .token.inserted { color: #2aa198; }
.b2child-code-wrap[data-theme="solarized"] .token.operator,
.b2child-code-wrap[data-theme="solarized"] .token.entity,
.b2child-code-wrap[data-theme="solarized"] .token.url { color: #859900; }
.b2child-code-wrap[data-theme="solarized"] .token.atrule,
.b2child-code-wrap[data-theme="solarized"] .token.attr-value,
.b2child-code-wrap[data-theme="solarized"] .token.keyword { color: #859900; }
.b2child-code-wrap[data-theme="solarized"] .token.function,
.b2child-code-wrap[data-theme="solarized"] .token.class-name { color: #268bd2; }
.b2child-code-wrap[data-theme="solarized"] .token.regex,
.b2child-code-wrap[data-theme="solarized"] .token.important,
.b2child-code-wrap[data-theme="solarized"] .token.variable { color: #b58900; }

/* ---- 亮暗模式切换 ---- */
.b2child-code-wrap[data-mode="light"][data-theme="one-dark"],
.b2child-code-wrap[data-mode="light"][data-theme="dracula"],
.b2child-code-wrap[data-mode="light"][data-theme="monokai"],
.b2child-code-wrap[data-mode="light"][data-theme="nord"],
.b2child-code-wrap[data-mode="light"][data-theme="solarized"] {
    /* 暗色主题在亮色模式下保持暗色，无需覆盖 */
}

.b2child-code-wrap[data-mode="dark"][data-theme="vs-light"],
.b2child-code-wrap[data-mode="dark"][data-theme="github-light"] {
    /* 亮色主题在暗色模式下保持亮色，无需覆盖 */
}

/* ---- 配色方案圆点颜色 ---- */
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-theme-dot { background: #282c34; }
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-theme-dot { background: #ffffff; border-color: #ccc !important; }
.b2child-code-wrap[data-theme="dracula"] .b2child-code-theme-dot { background: #282a36; }
.b2child-code-wrap[data-theme="monokai"] .b2child-code-theme-dot { background: #272822; }
.b2child-code-wrap[data-theme="github-light"] .b2child-code-theme-dot { background: #ffffff; border-color: #ccc !important; }
.b2child-code-wrap[data-theme="nord"] .b2child-code-theme-dot { background: #2e3440; }
.b2child-code-wrap[data-theme="solarized"] .b2child-code-theme-dot { background: #002b36; }

/* ---- 行号颜色 ---- */
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-linenum-col { background: #282c34; border-right-color: rgba(255,255,255,0.08); }
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-linenum span { color: #636d83; }

.b2child-code-wrap[data-theme="vs-light"] .b2child-code-linenum-col { background: #ffffff; border-right-color: rgba(0,0,0,0.1); }
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-linenum span { color: #a6a6a6; }

.b2child-code-wrap[data-theme="dracula"] .b2child-code-linenum-col { background: #282a36; border-right-color: rgba(255,255,255,0.08); }
.b2child-code-wrap[data-theme="dracula"] .b2child-code-linenum span { color: #6272a4; }

.b2child-code-wrap[data-theme="monokai"] .b2child-code-linenum-col { background: #272822; border-right-color: rgba(255,255,255,0.08); }
.b2child-code-wrap[data-theme="monokai"] .b2child-code-linenum span { color: #90908a; }

.b2child-code-wrap[data-theme="github-light"] .b2child-code-linenum-col { background: #ffffff; border-right-color: rgba(0,0,0,0.1); }
.b2child-code-wrap[data-theme="github-light"] .b2child-code-linenum span { color: #b2b7bc; }

.b2child-code-wrap[data-theme="nord"] .b2child-code-linenum-col { background: #2e3440; border-right-color: rgba(255,255,255,0.08); }
.b2child-code-wrap[data-theme="nord"] .b2child-code-linenum span { color: #4c566a; }

.b2child-code-wrap[data-theme="solarized"] .b2child-code-linenum-col { background: #002b36; border-right-color: rgba(255,255,255,0.08); }
.b2child-code-wrap[data-theme="solarized"] .b2child-code-linenum span { color: #586e75; }

/* ---- 行高亮颜色 ---- */
.b2child-code-wrap[data-theme="one-dark"] .b2child-code-line-highlight { background: linear-gradient(to right, rgba(255,255,255,0.06), rgba(255,255,255,0.02), transparent); }
.b2child-code-wrap[data-theme="vs-light"] .b2child-code-line-highlight { background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.02), transparent); }
.b2child-code-wrap[data-theme="dracula"] .b2child-code-line-highlight { background: linear-gradient(to right, rgba(255,255,255,0.07), rgba(255,255,255,0.02), transparent); }
.b2child-code-wrap[data-theme="monokai"] .b2child-code-line-highlight { background: linear-gradient(to right, rgba(255,255,255,0.07), rgba(255,255,255,0.02), transparent); }
.b2child-code-wrap[data-theme="github-light"] .b2child-code-line-highlight { background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.02), transparent); }
.b2child-code-wrap[data-theme="nord"] .b2child-code-line-highlight { background: linear-gradient(to right, rgba(255,255,255,0.06), rgba(255,255,255,0.02), transparent); }
.b2child-code-wrap[data-theme="solarized"] .b2child-code-line-highlight { background: linear-gradient(to right, rgba(255,255,255,0.06), rgba(255,255,255,0.02), transparent); }

/* ---- 响应式适配 ---- */
@media screen and (max-width: 768px) {
    .b2child-code-wrap {
        border-radius: 8px;
        margin: 16px 0;
    }

    .b2child-code-header {
        padding: 0 12px;
        height: 36px;
    }

    .b2child-code-logo {
        max-height: 20px;
        width: auto;
        max-width: 120px;
    }

    .b2child-code-lang {
        font-size: 11px;
    }

    .b2child-code-signature {
        font-size: 11px;
        max-width: 120px;
    }

    .b2child-code-toolbar {
        gap: 0;
        padding: 2px 4px;
    }

    .b2child-code-btn {
        width: 28px;
        height: 28px;
    }

    .b2child-code-btn svg {
        width: 14px;
        height: 14px;
    }

    .b2child-code-body pre[class*="language-"] {
        padding: 12px !important;
        font-size: 13px !important;
    }

    .b2child-code-body code[class*="language-"] {
        font-size: 13px !important;
    }

    .b2child-code-linenum-col {
        width: 44px;
    }

    .b2child-code-linenum span {
        line-height: 21.45px;
        font-size: 11px;
        padding-right: 8px;
    }

    .b2child-code-body.b2child-code-collapsed {
        max-height: 150px !important;
    }

    .b2child-code-expand-bar {
        font-size: 11px;
        padding: 6px;
    }
}

@media screen and (max-width: 480px) {
    .b2child-code-wrap {
        border-radius: 6px;
        margin: 12px 0;
    }

    .b2child-code-header {
        padding: 0 10px;
        height: 32px;
    }

    .b2child-code-logo {
        max-height: 18px;
        width: auto;
        max-width: 100px;
    }

    .b2child-code-lang {
        font-size: 10px;
    }

    .b2child-code-signature {
        display: none;
    }

    .b2child-code-btn {
        width: 26px;
        height: 26px;
    }

    .b2child-code-btn svg {
        width: 13px;
        height: 13px;
    }

    .b2child-code-body pre[class*="language-"] {
        padding: 10px !important;
        font-size: 12px !important;
    }

    .b2child-code-body code[class*="language-"] {
        font-size: 12px !important;
    }

    .b2child-code-linenum-col {
        width: 38px;
    }

    .b2child-code-linenum span {
        line-height: 19.8px;
        font-size: 10px;
        padding-right: 6px;
    }

    .b2child-code-body.b2child-code-collapsed {
        max-height: 120px !important;
    }

    .b2child-code-expand-bar {
        font-size: 10px;
        padding: 5px;
    }

    .b2child-code-tooltip {
        display: none;
    }
}
/*end*/
/* ========================================
   文本/代码对比工具样式
   支持并排/合并视图，字符级差异高亮
   ======================================== */

.b2child-diff-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 0;
}

.b2child-diff {
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.b2child-diff-header {
    text-align: center;
    padding: 44px 40px 34px;
    background: linear-gradient(135deg, #0035ff 0%, #ff0044 100%);
    color: #ffffff;
}

.b2child-diff-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.b2child-diff-header-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #ffffff;
}

.b2child-diff-header-desc {
    font-size: 15px;
    margin: 0;
    opacity: 0.85;
    color: #ffffff;
}

.b2child-diff-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    gap: 16px;
    flex-wrap: wrap;
}

.b2child-diff-toolbar-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.b2child-diff-toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.b2child-diff-select {
    height: 40px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    color: #2d3436;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23636e72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s;
}

.b2child-diff-select:focus {
    border-color: #0035ff;
}

.b2child-diff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    background: #ffffff;
    color: #636e72;
}

.b2child-diff-btn:hover {
    border-color: #b2bec3;
    background: #f8f9fa;
}

.b2child-diff-btn--compare {
    color: #ffffff;
    background: linear-gradient(135deg, #0035ff 0%, #6c5ce7 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.b2child-diff-btn--compare:hover {
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.45);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0035ff 0%, #6c5ce7 100%);
}

.b2child-diff-btn--compare:active {
    transform: translateY(0);
}

.b2child-diff-btn--compare:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.b2child-diff-btn--swap:hover {
    color: #0035ff;
    border-color: #0035ff;
}

.b2child-diff-btn--clear:hover {
    color: #0035ff;
    border-color: #0035ff;
}

.b2child-diff-btn--copied {
    color: #ff0044 !important;
    border-color: #ff0044 !important;
    background: #f0fff4 !important;
}

.b2child-diff-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #e9ecef;
}

.b2child-diff-input-panel {
    display: flex;
    flex-direction: column;
}

.b2child-diff-input-panel:first-child {
    border-right: 1px solid #e9ecef;
}

.b2child-diff-input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #636e72;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.b2child-diff-input-label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.b2child-diff-input-label-dot--old {
    background: #0035ff;
}

.b2child-diff-input-label-dot--new {
    background: #ff0044;
}

.b2child-diff-textarea {
    width: 100%;
    min-height: 340px;
    padding: 16px 20px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #2d3436;
    background: #ffffff;
    border: none;
    outline: none;
    resize: vertical;
    tab-size: 4;
}

.b2child-diff-textarea::placeholder {
    color: #b2bec3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
}

.b2child-diff-textarea:focus {
    background: #fefefe;
}

.b2child-diff-result {
    animation: b2childDiffFadeIn 0.35s ease;
}

@keyframes b2childDiffFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.b2child-diff-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0035ff 0%, #ff0044 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.b2child-diff-result-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.b2child-diff-result-actions {
    display: flex;
    gap: 8px;
}

.b2child-diff-result-actions .b2child-diff-btn {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
}

.b2child-diff-result-actions .b2child-diff-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.5);
}

.b2child-diff-stats {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
}

.b2child-diff-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.b2child-diff-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.b2child-diff-stat-num {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.b2child-diff-stat-label {
    font-size: 13px;
    color: #636e72;
    margin-top: 4px;
}

.b2child-diff-stat--added .b2child-diff-stat-num {
    color: #ff0044;
}

.b2child-diff-stat--removed .b2child-diff-stat-num {
    color: #0035ff;
}

.b2child-diff-stat--unchanged .b2child-diff-stat-num {
    color: #636e72;
}

.b2child-diff-stat--chars .b2child-diff-stat-num {
    color: #0035ff;
    font-size: 18px;
}

.b2child-diff-legend {
    display: flex;
    gap: 24px;
    padding: 12px 24px;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.b2child-diff-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #636e72;
}

.b2child-diff-legend-box {
    display: inline-block;
    width: 20px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.b2child-diff-output {
    overflow-x: auto;
}

.b2child-diff-view {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 14px;
    line-height: 1.7;
}

.b2child-diff-view--sidebyside {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.b2child-diff-pane {
    overflow-x: auto;
}

.b2child-diff-pane--left {
    border-right: 1px solid #e9ecef;
}

.b2child-diff-pane-header {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
}

.b2child-diff-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.b2child-diff-line {
    border-bottom: 1px solid #f1f2f6;
}

.b2child-diff-line:hover {
    filter: brightness(0.97);
}

.b2child-diff-linenum {
    width: 54px;
    min-width: 54px;
    padding: 3px 10px;
    text-align: right;
    color: #b2bec3;
    font-size: 13px;
    user-select: none;
    vertical-align: top;
    background: #fafbfc;
    border-right: 1px solid #f1f2f6;
}

.b2child-diff-marker {
    width: 24px;
    min-width: 24px;
    padding: 3px 4px;
    text-align: center;
    font-weight: 700;
    user-select: none;
    vertical-align: top;
}

.b2child-diff-content {
    padding: 3px 14px;
    white-space: pre-wrap;
    word-break: break-all;
    vertical-align: top;
}

.b2child-diff-line--added {
    background: #cdffd8;
}

.b2child-diff-line--added .b2child-diff-marker {
    color: #ff0044;
}

.b2child-diff-line--removed {
    background: #ffdde0;
}

.b2child-diff-line--removed .b2child-diff-marker {
    color: #0035ff;
}

.b2child-diff-line--modified-old {
    background: #fff3cd;
}

.b2child-diff-line--modified-old .b2child-diff-marker {
    color: #0035ff;
}

.b2child-diff-line--modified-new {
    background: #fff3cd;
}

.b2child-diff-line--modified-new .b2child-diff-marker {
    color: #ff0044;
}

.b2child-diff-char-added {
    background: #a8f0b8;
    border-radius: 2px;
    padding: 0 1px;
}

.b2child-diff-char-removed {
    background: #ffb8be;
    border-radius: 2px;
    padding: 0 1px;
    text-decoration: line-through;
    opacity: 0.7;
}

.b2child-diff-view--unified .b2child-diff-table {
    table-layout: auto;
}

.b2child-diff-view--unified .b2child-diff-linenum:first-child {
    border-right: none;
}

@media screen and (max-width: 768px) {
    .b2child-diff-wrapper {
        padding: 20px 0;
    }

    .b2child-diff-header {
        padding: 32px 24px 26px;
    }

    .b2child-diff-header-icon {
        width: 52px;
        height: 52px;
    }

    .b2child-diff-header-title {
        font-size: 22px;
    }

    .b2child-diff-toolbar {
        padding: 12px 16px;
    }

    .b2child-diff-toolbar-left {
        flex-wrap: wrap;
    }

    .b2child-diff-inputs {
        grid-template-columns: 1fr;
    }

    .b2child-diff-input-panel:first-child {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .b2child-diff-textarea {
        min-height: 220px;
    }

    .b2child-diff-view--sidebyside {
        grid-template-columns: 1fr;
    }

    .b2child-diff-pane--left {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .b2child-diff-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .b2child-diff-result-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .b2child-diff-legend {
        gap: 14px;
    }
}

@media screen and (max-width: 480px) {
    .b2child-diff-wrapper {
        padding: 14px 0;
    }

    .b2child-diff-header {
        padding: 24px 16px 20px;
    }

    .b2child-diff-header-icon {
        width: 46px;
        height: 46px;
    }

    .b2child-diff-header-icon svg {
        width: 24px;
        height: 24px;
    }

    .b2child-diff-header-title {
        font-size: 20px;
    }

    .b2child-diff-header-desc {
        font-size: 13px;
    }

    .b2child-diff-toolbar {
        padding: 10px 12px;
        gap: 8px;
    }

    .b2child-diff-toolbar-right {
        flex-wrap: wrap;
    }

    .b2child-diff-btn {
        height: 36px;
        font-size: 13px;
        padding: 0 12px;
    }

    .b2child-diff-btn span {
        display: none;
    }

    .b2child-diff-select {
        height: 36px;
        font-size: 13px;
    }

    .b2child-diff-textarea {
        min-height: 160px;
        font-size: 13px;
        padding: 12px 14px;
    }

    .b2child-diff-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .b2child-diff-stat {
        padding: 12px 8px;
    }

    .b2child-diff-stat-num {
        font-size: 18px;
    }

    .b2child-diff-stat--chars .b2child-diff-stat-num {
        font-size: 14px;
    }

    .b2child-diff-legend {
        padding: 10px 14px;
        gap: 10px;
    }

    .b2child-diff-legend-item {
        font-size: 12px;
    }

    .b2child-diff-view {
        font-size: 13px;
    }

    .b2child-diff-linenum {
        width: 40px;
        min-width: 40px;
        font-size: 12px;
        padding: 2px 6px;
    }

    .b2child-diff-marker {
        width: 18px;
        min-width: 18px;
        font-size: 12px;
    }

    .b2child-diff-content {
        padding: 2px 8px;
    }
}
/*end*/

/* ========================================
   中介计算器样式
   响应式计算器表单与结果展示
   ======================================== */

.b2child-calculator {
    max-width: 680px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.b2child-calc-header {
    text-align: center;
    padding: 36px 30px 28px;
    background: linear-gradient(135deg, #0035ff 0%, #ff0044 100%);
    color: #ffffff;
}

.b2child-calc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 14px;
}

.b2child-calc-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #ffffff;
}

.b2child-calc-desc {
    font-size: 14px;
    margin: 0;
    opacity: 0.85;
    color: #ffffff;
}

.b2child-calc-form {
    padding: 32px 30px 24px;
}

.b2child-calc-field {
    margin-bottom: 22px;
}

.b2child-calc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.b2child-calc-label-icon {
    display: inline-flex;
    align-items: center;
    color: #0035ff;
}

.b2child-calc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.b2child-calc-input-prefix,
.b2child-calc-input-suffix {
    position: absolute;
    font-size: 15px;
    font-weight: 600;
    color: #b2bec3;
    pointer-events: none;
    user-select: none;
}

.b2child-calc-input-prefix {
    left: 14px;
}

.b2child-calc-input-suffix {
    right: 14px;
}

.b2child-calc-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    color: #2d3436;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -moz-appearance: textfield;
}

.b2child-calc-input::-webkit-inner-spin-button,
.b2child-calc-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.b2child-calc-input:focus {
    border-color: #6c5ce7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.b2child-calc-input.b2child-calc-input--suffix {
    padding-right: 40px;
}

.b2child-calc-input:not(.b2child-calc-input--suffix) {
    padding-left: 36px;
}

.b2child-calc-input::placeholder {
    color: #b2bec3;
    font-size: 14px;
}

.b2child-calc-input.b2child-calc-input--error {
    border-color: #0035ff;
    background: #fff5f5;
}

.b2child-calc-input.b2child-calc-input--error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.b2child-calc-error {
    display: block;
    min-height: 20px;
    font-size: 13px;
    color: #0035ff;
    margin-top: 4px;
    padding-left: 2px;
}

.b2child-calc-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.b2child-calc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.b2child-calc-btn--primary {
    flex: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #4f6ef7 0%, #0035ff 100%);
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
}

.b2child-calc-btn--primary:hover {
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
    transform: translateY(-1px);
}

.b2child-calc-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.b2child-calc-btn--reset {
    color: #636e72;
    background: #f1f2f6;
}

.b2child-calc-btn--reset:hover {
    background: #dfe4ea;
}

.b2child-calc-result {
    margin: 0 30px 30px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    overflow: hidden;
    animation: b2childCalcFadeIn 0.35s ease;
}

@keyframes b2childCalcFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.b2child-calc-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0035ff 0%, #ff0044 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.b2child-calc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e9ecef;
}

.b2child-calc-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: #ffffff;
    text-align: center;
}

.b2child-calc-result-label {
    font-size: 13px;
    color: #636e72;
    margin-bottom: 6px;
}

.b2child-calc-result-value {
    font-size: 22px;
    font-weight: 700;
    color: #2d3436;
}

.b2child-calc-result-item--fee .b2child-calc-result-value {
    color: #ff5000;
}

.b2child-calc-result-item--final .b2child-calc-result-value {
    color: #ff0044;
}

.b2child-calc-formula {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.b2child-calc-formula-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    margin-bottom: 8px;
}

.b2child-calc-formula-text {
    display: block;
    font-size: 13px;
    color: #b2bec3;
    line-height: 1.8;
}

.b2child-calc-formula-text em {
    font-style: normal;
    font-weight: 700;
    color: #8590a6;
}

@media screen and (max-width: 768px) {
    .b2child-calculator {
        margin: 20px 0;
        border-radius: 8px;
    }

    .b2child-calc-header {
        padding: 28px 20px 22px;
    }

    .b2child-calc-icon {
        width: 48px;
        height: 48px;
    }

    .b2child-calc-title {
        font-size: 20px;
    }

    .b2child-calc-form {
        padding: 24px 20px 20px;
    }

    .b2child-calc-result {
        margin: 0 20px 20px;
    }

    .b2child-calc-result-value {
        font-size: 20px;
    }
}

@media screen and (max-width: 480px) {
    .b2child-calc-header {
        padding: 22px 16px 18px;
    }

    .b2child-calc-icon {
        width: 44px;
        height: 44px;
    }

    .b2child-calc-icon svg {
        width: 22px;
        height: 22px;
    }

    .b2child-calc-title {
        font-size: 18px;
    }

    .b2child-calc-desc {
        font-size: 13px;
    }

    .b2child-calc-form {
        padding: 20px 16px 16px;
    }

    .b2child-calc-input {
        height: 44px;
        font-size: 15px;
    }

    .b2child-calc-btn {
        height: 44px;
        font-size: 15px;
        padding: 0 20px;
    }

    .b2child-calc-result {
        margin: 0 16px 16px;
    }

    .b2child-calc-result-grid {
        grid-template-columns: 1fr;
    }

    .b2child-calc-result-item {
        padding: 16px;
        flex-direction: row;
        justify-content: space-between;
    }

    .b2child-calc-result-label {
        margin-bottom: 0;
    }

    .b2child-calc-result-value {
        font-size: 18px;
    }

    .b2child-calc-formula {
        padding: 14px 16px;
    }
}
/*end*/

/* ========== 文件传送模块 ========== */
.ft-container {
    max-width: 680px;
    margin: 40px auto;
    padding: 0 20px;
}

.ft-header {
    text-align: center;
    margin-bottom: 32px;
}

.ft-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--b2-color, #333);
    margin-bottom: 8px;
}

.ft-desc {
    font-size: 14px;
    color: var(--b2-font-color-3, #999);
}

/* 上传区域 */
.ft-upload-area {
    background: var(--b2-bg-2, #fff);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ft-upload-dropzone {
    border: 2px dashed var(--b2-border-color, #d9d9d9);
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ft-upload-dropzone:hover,
.ft-upload-dropzone.ft-dragover {
    border-color: var(--b2-color, #ff0044);
    background: rgba(74,144,217,0.04);
}

.ft-upload-icon {
    color: var(--b2-font-color-3, #999);
    margin-bottom: 16px;
}

.ft-upload-text {
    font-size: 16px;
    color: var(--b2-font-color-2, #666);
    margin-bottom: 8px;
}

.ft-upload-browse {
    color: var(--b2-color, #ff0044);
    font-weight: 600;
    cursor: pointer;
}

.ft-upload-browse:hover {
    text-decoration: underline;
}

.ft-upload-hint {
    font-size: 13px;
    color: var(--b2-font-color-3, #999);
}

.ft-file-input {
    display: none;
}

/* 文件预览 */
.ft-file-preview {
    background: var(--b2-bg-5, #f5f7fa);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 16px;
}

.ft-file-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ft-file-icon {
    flex-shrink: 0;
    color: var(--b2-color, #ff0044);
}

.ft-file-name {
    flex: 1;
    font-size: 14px;
    color: var(--b2-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ft-file-size {
    font-size: 13px;
    color: var(--b2-font-color-3, #999);
    flex-shrink: 0;
}

.ft-file-remove {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--b2-font-color-3, #999);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    flex-shrink: 0;
}

.ft-file-remove:hover {
    color: #ff4d4f;
}

/* 选项 */
.ft-options {
    margin-top: 20px;
}

.ft-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--b2-font-color-2, #666);
    user-select: none;
}

.ft-checkbox-label input[type="checkbox"] {
    display: none;
}

.ft-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--b2-border-color, #d9d9d9);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.ft-checkbox-label input:checked + .ft-checkbox-custom {
    background: var(--b2-color, #ff0044);
    border-color: var(--b2-color, #ff0044);
}

.ft-checkbox-label input:checked + .ft-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ft-option-hint {
    font-size: 12px;
    color: var(--b2-font-color-3, #999);
    margin-top: 6px;
    margin-left: 26px;
}

/* 上传按钮 */
.ft-upload-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 12px 24px;
    background: var(--b2-color, #ff0044);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.ft-upload-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ft-upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ft-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ft-spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes ft-spin {
    to { transform: rotate(360deg); }
}

/* 进度条 */
.ft-progress-bar {
    margin-top: 16px;
    height: 24px;
    background: var(--b2-bg-5, #f0f0f0);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.ft-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--b2-color, #ff0044), #67b8de);
    border-radius: 12px;
    transition: width 0.3s ease;
    width: 0%;
}

.ft-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: var(--b2-color, #333);
}

/* 上传结果 */
.ft-result {
    background: var(--b2-bg-2, #fff);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ft-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    color: #52c41a;
}

.ft-result-body {
    border-top: 1px solid var(--b2-border-color, #f0f0f0);
    padding-top: 20px;
}

.ft-result-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.ft-result-label {
    font-size: 14px;
    color: var(--b2-font-color-3, #999);
    flex-shrink: 0;
    min-width: 70px;
}

.ft-result-value {
    font-size: 14px;
    color: var(--b2-color, #333);
    text-align: right;
    word-break: break-all;
}

.ft-result-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--b2-border-color, #f0f0f0);
}

.ft-copy-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.ft-copy-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--b2-border-color, #d9d9d9);
    border-radius: 6px;
    font-size: 13px;
    color: var(--b2-color, #333);
    background: var(--b2-bg-5, #fafafa);
    outline: none;
}

.ft-copy-input:focus {
    border-color: var(--b2-color, #ff0044);
}

.ft-code-input {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 4px;
    text-align: center;
    font-weight: 700;
    color: var(--b2-color, #ff0044);
}

.ft-copy-btn {
    padding: 8px 16px;
    background: var(--b2-bg-5, #f5f7fa);
    border: 1px solid var(--b2-border-color, #d9d9d9);
    border-radius: 6px;
    font-size: 13px;
    color: var(--b2-font-color-2, #666);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ft-copy-btn:hover {
    color: var(--b2-color, #ff0044);
    border-color: var(--b2-color, #ff0044);
}

.ft-copy-btn.ft-copied {
    color: #52c41a;
    border-color: #52c41a;
}

/* 二维码 */
.ft-qrcode-box {
    text-align: center;
    margin-top: 12px;
}

.ft-qrcode-box img {
    width: 180px;
    height: 180px;
    border: 1px solid var(--b2-border-color, #eee);
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.ft-qrcode-tip {
    font-size: 12px;
    color: var(--b2-font-color-3, #999);
    margin-top: 8px;
}

/* 继续上传按钮 */
.ft-reset-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 10px 24px;
    background: var(--b2-bg-5, #f5f7fa);
    color: var(--b2-font-color-2, #666);
    border: 1px solid var(--b2-border-color, #d9d9d9);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ft-reset-btn:hover {
    color: var(--b2-color, #ff0044);
    border-color: var(--b2-color, #ff0044);
}

/* ========== 下载页面 ========== */
.ft-download-error {
    text-align: center;
    padding: 60px 24px;
}

.ft-error-text {
    font-size: 16px;
    color: var(--b2-font-color-2, #666);
    margin-top: 16px;
    margin-bottom: 24px;
}

.ft-back-btn {
    display: inline-block;
    padding: 8px 24px;
    background: var(--b2-color, #ff0044);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.2s;
}

.ft-back-btn:hover {
    opacity: 0.9;
    color: #fff;
}

.ft-download-card {
    background: var(--b2-bg-2, #fff);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ft-download-file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--b2-border-color, #f0f0f0);
}

.ft-dl-file-icon {
    flex-shrink: 0;
    color: var(--b2-color, #ff0044);
}

.ft-dl-file-detail {
    flex: 1;
    min-width: 0;
}

.ft-dl-file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--b2-color, #333);
    margin-bottom: 4px;
    word-break: break-all;
}

.ft-dl-file-meta {
    font-size: 13px;
    color: var(--b2-font-color-3, #999);
}

.ft-dl-sep {
    margin: 0 6px;
}

/* 提取码验证 */
.ft-verify-section {
    margin-top: 24px;
    text-align: center;
}

.ft-verify-label {
    font-size: 14px;
    color: var(--b2-font-color-2, #666);
    margin-bottom: 12px;
}

.ft-verify-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    max-width: 320px;
    margin: 0 auto;
}

.ft-verify-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--b2-border-color, #d9d9d9);
    border-radius: 8px;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    letter-spacing: 6px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
}

.ft-verify-input:focus {
    border-color: var(--b2-color, #ff0044);
}

.ft-verify-btn {
    padding: 10px 24px;
    background: var(--b2-color, #ff0044);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.ft-verify-btn:hover {
    opacity: 0.9;
}

.ft-verify-error {
    font-size: 13px;
    color: #ff4d4f;
    margin-top: 8px;
}

/* 下载按钮 */
.ft-download-action {
    margin-top: 24px;
    text-align: center;
}

.ft-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #52c41a, #3ba50e);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(82,196,26,0.3);
}

.ft-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(82,196,26,0.4);
    color: #fff;
}

.ft-download-tip {
    font-size: 12px;
    color: var(--b2-font-color-3, #999);
    margin-top: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .ft-container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .ft-upload-area,
    .ft-result,
    .ft-download-card,
    .ft-dl-card {
        padding: 20px;
    }

    .ft-upload-dropzone {
        padding: 32px 16px;
    }

    .ft-title {
        font-size: 22px;
    }

    .ft-copy-row {
        flex-direction: column;
    }

    .ft-verify-form {
        flex-direction: column;
    }

    .ft-download-file-info {
        flex-direction: column;
        text-align: center;
    }

    .ft-dl-form {
        flex-direction: column;
    }
}

/* ========== Tab 切换 ========== */
.ft-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: var(--b2-bg-5, #f5f7fa);
    border-radius: 10px;
    padding: 4px;
}

.ft-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--b2-font-color-3, #999);
    cursor: pointer;
    transition: all 0.25s;
}

.ft-tab:hover {
    color: var(--b2-color, #ff0044);
}

.ft-tab-active {
    background: var(--b2-bg-2, #fff);
    color: var(--b2-color, #ff0044);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ========== 提取码下载区域 ========== */
.ft-dl-card {
    background: var(--b2-bg-2, #fff);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.ft-dl-icon {
    color: var(--b2-color, #ff0044);
    margin-bottom: 16px;
}

.ft-dl-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--b2-color, #333);
    margin-bottom: 8px;
}

.ft-dl-desc {
    font-size: 14px;
    color: var(--b2-font-color-3, #999);
    margin-bottom: 28px;
}

.ft-dl-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 360px;
    margin: 0 auto;
}

.ft-dl-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--b2-border-color, #d9d9d9);
    border-radius: 10px;
    font-size: 20px;
    font-family: 'Courier New', monospace;
    letter-spacing: 6px;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
}

.ft-dl-input:focus {
    border-color: var(--b2-color, #ff0044);
}

.ft-dl-input::placeholder {
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--b2-font-color-3, #ccc);
}

.ft-dl-verify-btn {
    padding: 12px 28px;
    background: var(--b2-color, #ff0044);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ft-dl-verify-btn:hover {
    opacity: 0.9;
}

.ft-dl-verify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ft-dl-error {
    font-size: 13px;
    color: #ff4d4f;
    margin-top: 10px;
}

.ft-dl-result {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--b2-border-color, #f0f0f0);
}

.ft-dl-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.ft-dl-file-detail {
    flex: 1;
    min-width: 0;
}

.ft-dl-file-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--b2-color, #333);
    word-break: break-all;
    margin-bottom: 4px;
}

.ft-dl-file-meta {
    font-size: 13px;
    color: var(--b2-font-color-3, #999);
}

.ft-dl-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 48px;
    background: linear-gradient(135deg, #52c41a, #3ba50e);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(82,196,26,0.3);
}

.ft-dl-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(82,196,26,0.4);
    color: #fff;
}

.ft-code-share-tip {
    font-size: 12px;
    color: var(--b2-font-color-3, #999);
    margin-top: 8px;
    margin-left: 0;
}

/* ========== 文字传送 ========== */
.ft-text-card {
    background: var(--b2-bg-2, #fff);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
}

.ft-text-input {
    display: block;
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: none;
    border-bottom: 1px solid var(--b2-border-color, #f0f0f0);
    font-size: 15px;
    line-height: 1.7;
    color: var(--b2-color, #333);
    background: transparent;
    outline: none;
    resize: vertical;
    font-family: inherit;
}

.ft-text-input::placeholder {
    color: var(--b2-font-color-3, #ccc);
}

.ft-text-input:focus {
    background: rgba(74,144,217,0.02);
}

.ft-text-footer {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 16px;
}

.ft-text-counter {
    font-size: 13px;
    color: var(--b2-font-color-3, #999);
    flex-shrink: 0;
}

.ft-text-options {
    flex: 1;
}

.ft-text-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    background: var(--b2-color, #ff0044);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ft-text-send-btn:hover {
    opacity: 0.9;
}

.ft-text-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 文字传送结果复用 .ft-result 和 .ft-result-body 样式 */

/* ========== 提取码获取 - 文字内容展示 ========== */
.ft-dl-text-result {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--b2-border-color, #f0f0f0);
}

.ft-dl-text-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.ft-dl-text-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--b2-color, #333);
}

.ft-dl-text-meta {
    font-size: 12px;
    color: var(--b2-font-color-3, #999);
}

.ft-dl-text-content {
    background: var(--b2-bg-5, #f5f7fa);
    border-radius: 8px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--b2-color, #333);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

/* 响应式补充 */
@media (max-width: 768px) {
    .ft-text-footer {
        flex-wrap: wrap;
    }

    .ft-text-send-btn {
        width: 100%;
        justify-content: center;
    }

    .ft-dl-text-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/*end*/
/* 顶部滚动进度条样式 */
#scroll-progress-bar {
    position: fixed; /* 固定在顶部，不随滚动消失 */
    top: 0; /* 紧贴页面顶部 */
    left: 0; /* 从左侧开始 */
    height: 3px; /* 进度条高度，可自定义 */
    background: linear-gradient(to right, #ff0044, #8b5cf6);/* 渐变色进度条 */
    /*background-color: #ff0044;  进度条填充颜色，蓝色可替换为其他色值 */
    width: 0%; /* 初始宽度为0，通过JS动态更新 */
    z-index: 9999; /* 确保在页面最上层，不被其他元素遮挡 */
    transition: width 0.1s ease; /* 平滑过渡效果，可选 */
}
/*end*/

/*在线单据生成*/
.danju-page-layout {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.danju-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.danju-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    color: #1a2a3a;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 16px;
}

.danju-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #000000;
    border-radius: 2px;
}

.danju-info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.danju-info-bar .danju-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.danju-info-bar .danju-info-item label {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    min-width: 70px;
}

.danju-info-bar .danju-info-item input {
    flex: 1;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 14px;
    min-width: 0;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    background: #fff;
}

.danju-info-bar .danju-info-item input:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}

.danju-info-bar .danju-info-item input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: default;
}

.danju-table-container {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.danju-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    table-layout: fixed;
}

.danju-table thead th {
    background: #000000;
    color: #fff;
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 1px;
}

.danju-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.danju-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.danju-table tbody td {
    padding: 10px 8px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
    transition: background 0.15s;
}

.danju-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.danju-table tbody tr:hover {
    background: #edf4fc;
}

.danju-table tbody td input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 7px 8px;
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    background: transparent;
    font-variant-numeric: tabular-nums;
}

.danju-table tbody td input:focus {
    border-color: #4a90d9;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(74, 144, 217, 0.1);
}

.danju-table tbody td input.danju-input-name {
    text-align: left;
}

.danju-qty-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.danju-qty-cell input {
    flex: 1;
    min-width: 0;
}

.danju-qty-cell select {
    width: 52px;
    min-width: 52px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 7px 2px;
    font-size: 13px;
    outline: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.25s, background 0.25s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.danju-qty-cell select:focus {
    border-color: #4a90d9;
    background: #fff;
}

.danju-table tfoot td {
    padding: 14px 12px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    border-top: 2px solid #888888;
    text-align: center;
    color: #1a2a3a;
}

.danju-table .danju-row-num {
    width: 56px;
    color: #94a3b8;
    font-size: 13px;
}

.danju-table .danju-col-name {
    width: auto;
}

.danju-table .danju-col-price {
    width: 130px;
}

.danju-table .danju-col-qty {
    width: 160px;
}

.danju-table .danju-col-amount {
    width: 160px;
}

.danju-table .danju-col-action {
    width: 70px;
}

.danju-row-amount {
    font-weight: 600;
    color: #1a2a3a;
    font-variant-numeric: tabular-nums;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}

.danju-total-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
}

.danju-total-value {
    color: #e74c3c;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.danju-total-unit {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-left: 2px;
}

.danju-btn-delete {
    background: none;
    border: none;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.danju-btn-delete:hover {
    background: #fef2f2;
    color: #ef4444;
}

.danju-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.danju-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.danju-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.danju-btn:active::after {
    width: 200px;
    height: 200px;
}

.danju-btn-primary {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(74, 144, 217, 0.3);
}

.danju-btn-primary:hover {
    background: linear-gradient(135deg, #357abd 0%, #2a6aad 100%);
    box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
    transform: translateY(-1px);
}

.danju-btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #219a52 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.danju-btn-success:hover {
    background: linear-gradient(135deg, #219a52 0%, #1b8a45 100%);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
    transform: translateY(-1px);
}

.danju-btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.danju-btn-warning:hover {
    background: linear-gradient(135deg, #d68910 0%, #c07b0e 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    transform: translateY(-1px);
}

.danju-btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.danju-btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transform: translateY(-1px);
}

.danju-upload-area {
    margin-bottom: 24px;
    padding: 28px;
    border: 2px dashed #d1d9e6;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background: #fafbfc;
}

.danju-upload-area:hover,
.danju-upload-area.dragover {
    border-color: #4a90d9;
    background: #edf4fc;
    box-shadow: 0 2px 12px rgba(74, 144, 217, 0.1);
}

.danju-upload-area p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.danju-upload-area .danju-upload-icon {
    font-size: 40px;
    color: #cbd5e1;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.danju-upload-area:hover .danju-upload-icon {
    color: #4a90d9;
}

.danju-upload-area input[type="file"] {
    display: none;
}

.danju-preview-section {
    margin-top: 30px;
}

.danju-preview-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a2a3a;
}

.danju-export-canvas {
    display: none;
}

.danju-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 12px 28px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.danju-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.danju-toast.success {
    background: linear-gradient(135deg, #27ae60, #219a52);
}

.danju-toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.danju-toast.info {
    background: linear-gradient(135deg, #4a90d9, #357abd);
}

.danju-ad-left,
.danju-ad-right {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    z-index: 100;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: opacity 0.3s;
}

.danju-ad-left {
    left: calc((100vw - 1200px) / 2 - 140px);
}

.danju-ad-right {
    right: calc((100vw - 1200px) / 2 - 140px);
}

.danju-ad-inner {
    width: 120px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 8px;
    text-align: center;
}

.danju-ad-inner .danju-ad-tag {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.danju-ad-inner .danju-ad-placeholder {
    width: 100px;
    height: 300px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}

.danju-ad-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #94a3b8;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.danju-ad-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #64748b;
}

@media (max-width: 1440px) {
    .danju-ad-left {
        left: 10px;
    }
    .danju-ad-right {
        right: 10px;
    }
}

@media (max-width: 1200px) {
    .danju-wrapper {
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .danju-wrapper {
        margin: 16px auto;
        padding: 0 10px;
    }

    .danju-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .danju-info-bar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px;
    }

    .danju-info-bar .danju-info-item input {
        width: 100%;
    }

    .danju-table thead th,
    .danju-table tbody td,
    .danju-table tfoot td {
        padding: 8px 4px;
        font-size: 13px;
    }

    .danju-table tbody td input {
        padding: 5px 4px;
        font-size: 13px;
    }

    .danju-qty-cell select {
        width: 42px;
        min-width: 42px;
        font-size: 12px;
        padding: 5px 1px;
    }

    .danju-table .danju-col-price,
    .danju-table .danju-col-qty,
    .danju-table .danju-col-amount {
        width: auto;
    }

    .danju-total-value {
        font-size: 14px;
    }

    .danju-actions {
        flex-direction: column;
    }

    .danju-btn {
        justify-content: center;
        width: 100%;
    }

    .danju-ad-left,
    .danju-ad-right {
        display: none;
    }
}

@media print {
    .danju-ad-left,
    .danju-ad-right,
    .danju-actions,
    .danju-upload-area {
        display: none !important;
    }

    .danju-wrapper {
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .danju-table {
        box-shadow: none;
    }

    .danju-table tbody td input {
        border: none;
        padding: 0;
    }

    .danju-qty-cell select {
        border: none;
        -webkit-appearance: none;
        appearance: none;
    }
}
/*end*/
/*提高底部层级*/
.footer {
    z-index: 1;
}
/*提示侧边工具条层级*/
.aside-container {
    z-index: 9999;
}
/*end*/
/* ========================================
   文章提示框（Alert Boxes）样式
   ======================================== */

/* ---- 动画关键帧 ---- */
@keyframes tcbdb-alert-fadein {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes tcbdb-alert-fadeout {
    from { opacity: 1; transform: translateY(0); max-height: 500px; margin-top: 20px; margin-bottom: 20px; }
    to   { opacity: 0; transform: translateY(-8px); max-height: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}

/* ---- 基础容器 ---- */
.tcbdb-alert {
    position: relative;
    margin: 20px 0;
    padding: 16px 20px 16px 52px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-wrap: break-word;
    animation: tcbdb-alert-fadein 0.35s ease-out;
}

/* 淡出关闭状态 */
.tcbdb-alert.tcbdb-alert-closing {
    animation: tcbdb-alert-fadeout 0.3s ease-in forwards;
    pointer-events: none;
}

/* 已关闭 */
.tcbdb-alert.tcbdb-alert-closed {
    display: none;
}

/* ---- 左侧图标 ---- */
.tcbdb-alert::before {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 22px;
    height: 22px;
    content: '';
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    z-index: 1;
}

/* ---- 标题行 ---- */
.tcbdb-alert-title {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    line-height: 1.4;
    padding-right: 60px;
}
/* 可折叠提示框标题可点击 */
.tcbdb-alert[data-collapsible="true"] .tcbdb-alert-title {
    cursor: pointer;
}
.tcbdb-alert[data-collapsible="true"] .tcbdb-alert-title:hover {
    opacity: 0.8;
}

/* ---- 内容区域 ---- */
.tcbdb-alert-body {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease;
}
.tcbdb-alert p {
    margin: 0 0 8px;
}
.tcbdb-alert p:last-child {
    margin-bottom: 0;
}

/* 折叠状态：内容隐藏，标题无底部间距 */
.tcbdb-alert.tcbdb-alert-collapsed .tcbdb-alert-body {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0;
    visibility: hidden;
}
.tcbdb-alert.tcbdb-alert-collapsed .tcbdb-alert-title {
    margin-bottom: 0;
}

/* 展开状态 */
.tcbdb-alert.tcbdb-alert-expanded .tcbdb-alert-body,
.tcbdb-alert:not(.tcbdb-alert-collapsed) .tcbdb-alert-body {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
}

/* ---- 关闭按钮 ---- */
.tcbdb-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
    padding: 0;
    z-index: 2;
}
.tcbdb-alert:hover .tcbdb-alert-close,
.tcbdb-alert-close:focus {
    opacity: 0.7;
}
.tcbdb-alert-close:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

/* ---- 折叠按钮 ---- */
.tcbdb-alert-toggle {
    position: absolute;
    top: 12px;
    right: 44px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.25s ease;
    padding: 0;
    z-index: 2;
}
.tcbdb-alert:hover .tcbdb-alert-toggle,
.tcbdb-alert-toggle:focus {
    opacity: 0.7;
}
.tcbdb-alert-toggle:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.15);
}
.tcbdb-alert-toggle svg {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    transition: transform 0.25s ease;
}
.tcbdb-alert.tcbdb-alert-collapsed .tcbdb-alert-toggle svg {
    transform: rotate(-90deg);
}

/* ---- 信息提示框 ---- */
.tcbdb-alert-info {
    background-color: #e8f4fd;
    border-left: 4px solid #2196f3;
    color: #0d47a1;
}
.tcbdb-alert-info::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232196f3'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
}
.tcbdb-alert-info .tcbdb-alert-title { color: #1565c0; }

/* ---- 警告提示框 ---- */
.tcbdb-alert-warning {
    background-color: #fff8e1;
    border-left: 4px solid #ff9800;
    color: #e65100;
}
.tcbdb-alert-warning::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff9800'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
}
.tcbdb-alert-warning .tcbdb-alert-title { color: #e65100; }

/* ---- 成功提示框 ---- */
.tcbdb-alert-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #1b5e20;
}
.tcbdb-alert-success::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234caf50'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}
.tcbdb-alert-success .tcbdb-alert-title { color: #2e7d32; }

/* ---- 错误提示框 ---- */
.tcbdb-alert-error {
    background-color: #fde8e8;
    border-left: 4px solid #f44336;
    color: #b71c1c;
}
.tcbdb-alert-error::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f44336'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E");
}
.tcbdb-alert-error .tcbdb-alert-title { color: #c62828; }

/* ---- 提示/笔记框 ---- */
.tcbdb-alert-note {
    background-color: #f3e5f5;
    border-left: 4px solid #9c27b0;
    color: #4a148c;
}
.tcbdb-alert-note::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239c27b0'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
}
.tcbdb-alert-note .tcbdb-alert-title { color: #6a1b9a; }

/* ---- 引用/名言框 ---- */
.tcbdb-alert-quote {
    background-color: #efebe9;
    border-left: 4px solid #795548;
    color: #3e2723;
}
.tcbdb-alert-quote::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23795548'%3E%3Cpath d='M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z'/%3E%3C/svg%3E");
}
.tcbdb-alert-quote .tcbdb-alert-title { color: #4e342e; }

/* ---- 暗黑模式适配 ---- */
.dark .tcbdb-alert-info {
    background-color: #0d2744;
    border-left-color: #42a5f5;
    color: #90caf9;
}
.dark .tcbdb-alert-info .tcbdb-alert-title { color: #bbdefb; }
.dark .tcbdb-alert-info .tcbdb-alert-close,
.dark .tcbdb-alert-info .tcbdb-alert-toggle { background: rgba(255,255,255,0.1); }

.dark .tcbdb-alert-warning {
    background-color: #3e2723;
    border-left-color: #ffa726;
    color: #ffe0b2;
}
.dark .tcbdb-alert-warning .tcbdb-alert-title { color: #ffcc80; }
.dark .tcbdb-alert-warning .tcbdb-alert-close,
.dark .tcbdb-alert-warning .tcbdb-alert-toggle { background: rgba(255,255,255,0.1); }

.dark .tcbdb-alert-success {
    background-color: #1b3a1f;
    border-left-color: #66bb6a;
    color: #a5d6a7;
}
.dark .tcbdb-alert-success .tcbdb-alert-title { color: #c8e6c9; }
.dark .tcbdb-alert-success .tcbdb-alert-close,
.dark .tcbdb-alert-success .tcbdb-alert-toggle { background: rgba(255,255,255,0.1); }

.dark .tcbdb-alert-error {
    background-color: #3b1515;
    border-left-color: #ef5350;
    color: #ef9a9a;
}
.dark .tcbdb-alert-error .tcbdb-alert-title { color: #ffcdd2; }
.dark .tcbdb-alert-error .tcbdb-alert-close,
.dark .tcbdb-alert-error .tcbdb-alert-toggle { background: rgba(255,255,255,0.1); }

.dark .tcbdb-alert-note {
    background-color: #2a1540;
    border-left-color: #ab47bc;
    color: #ce93d8;
}
.dark .tcbdb-alert-note .tcbdb-alert-title { color: #e1bee7; }
.dark .tcbdb-alert-note .tcbdb-alert-close,
.dark .tcbdb-alert-note .tcbdb-alert-toggle { background: rgba(255,255,255,0.1); }

.dark .tcbdb-alert-quote {
    background-color: #2c2018;
    border-left-color: #8d6e63;
    color: #bcaaa4;
}
.dark .tcbdb-alert-quote .tcbdb-alert-title { color: #d7ccc8; }
.dark .tcbdb-alert-quote .tcbdb-alert-close,
.dark .tcbdb-alert-quote .tcbdb-alert-toggle { background: rgba(255,255,255,0.1); }

/* ---- 响应式适配 ---- */
@media (max-width: 768px) {
    .tcbdb-alert {
        padding: 14px 16px 14px 46px;
        font-size: 14px;
        border-radius: 6px;
    }
    .tcbdb-alert::before {
        left: 14px;
        top: 14px;
        width: 20px;
        height: 20px;
    }
    .tcbdb-alert-title {
        font-size: 15px;
        padding-right: 56px;
    }
    .tcbdb-alert-close,
    .tcbdb-alert-toggle {
        width: 24px;
        height: 24px;
        line-height: 24px;
        font-size: 14px;
    }
    .tcbdb-alert-toggle { right: 40px; }
}
@media (max-width: 480px) {
    .tcbdb-alert {
        padding: 12px 14px 12px 42px;
        font-size: 13px;
        border-radius: 4px;
    }
    .tcbdb-alert::before {
        left: 12px;
        top: 12px;
        width: 18px;
        height: 18px;
    }
    .tcbdb-alert-title {
        font-size: 14px;
        padding-right: 52px;
    }
    .tcbdb-alert-close,
    .tcbdb-alert-toggle {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 13px;
    }
    .tcbdb-alert-toggle { right: 36px; }
}
/*end*/

    /* ===== 用户等级徽章样式 - 参考网站风格 ===== */

    /* 重置父主题对VIP徽章内<i>的圆圈样式 */
    .lv-icon.user-vip i {
        width: auto;
        height: auto;
        border: none !important;
        border-radius: 0 !important;
        margin-right: 0;
        vertical-align: middle;
    }

    /* 基础样式覆盖 */
    .Mini-icon.lv-icon {
        display: inline-flex;
        align-items: center;
        height: auto;
        line-height: 1;
        padding: 0;
        border-radius: 3px;
        margin-right: 6px;
        font-size: 12px;
        font-weight: 400;
        color: #ffffff;
        background: none;
        vertical-align: middle;
    }

    .Mini-icon.lv-icon em {
        font-style: normal;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
        color: #fff;
        letter-spacing: 0.5px;
        line-height: 1.4;
    }

    /* VIP徽章样式 */
    .Mini-icon.lv-icon.user-vip em {
        background: var(--vip-bg, linear-gradient(90deg, #fee2b6, #fec86e));
        color: #a26b0f;
    }

    .Mini-icon.lv-icon.user-vip em i.b2font {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #a26b0f;
        width: auto !important;
        height: auto !important;
        border: none !important;
        border-radius: 0 !important;
        margin-right: 0;
        line-height: 1;
        flex-shrink: 0;
    }

    /* VIP各等级单独文字颜色（深色背景用白色，浅色背景用深色） */
    .Mini-icon.lv-icon.b2-vip0 em,
    .Mini-icon.lv-icon.b2-vip0 em i.b2font { color: #fff; }
    .Mini-icon.lv-icon.b2-vip1 em,
    .Mini-icon.lv-icon.b2-vip1 em i.b2font { color: #fff; }
    .Mini-icon.lv-icon.b2-vip2 em,
    .Mini-icon.lv-icon.b2-vip2 em i.b2font { color: #fff; }
    .Mini-icon.lv-icon.b2-vip3 em,
    .Mini-icon.lv-icon.b2-vip3 em i.b2font { color: #fff; }
    .Mini-icon.lv-icon.b2-vip4 em,
    .Mini-icon.lv-icon.b2-vip4 em i.b2font { color: #fff; }

    /* 普通等级徽章样式 - 各等级颜色 */
    .Mini-icon.lv-icon.user-lv em {
        background: #8e8e8e;
    }
    .Mini-icon.lv-icon.b2-lv0 em { background: #000000; }
    .Mini-icon.lv-icon.b2-lv1 em { background: #83682a; }
    .Mini-icon.lv-icon.b2-lv2 em { background: #bbbbbb; }
    .Mini-icon.lv-icon.b2-lv3 em { background: #ff9b00; }
    .Mini-icon.lv-icon.b2-lv4 em { background: #b2ff00; }
    .Mini-icon.lv-icon.b2-lv5 em { background: #00ffea; }
    .Mini-icon.lv-icon.b2-lv6 em { background: #ff0044; }
    .Mini-icon.lv-icon.b2-lv7 em { background: #7000ff; }
    .Mini-icon.lv-icon.b2-lv8 em { background: #ff0000; }
    .Mini-icon.lv-icon.b2-lv9 em { background: #ff0000; color: #333; }

    /* Vue直接渲染的徽章兼容样式 */
    .lv-icon.user-vip:not(.Mini-icon) {
        display: inline-flex;
        align-items: center;
        height: auto;
        line-height: 1;
        padding: 0;
        background: none;
    }
    .lv-icon.user-vip:not(.Mini-icon) i {
        display: none !important;
    }
    .lv-icon.user-vip:not(.Mini-icon) b {
        font-weight: 400;
        color: #fff !important;
        background: var(--vip-bg, linear-gradient(90deg, #fee2b6, #fec86e));
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    .lv-icon.user-lv:not(.Mini-icon) {
        display: inline-flex;
        align-items: center;
        height: auto;
        line-height: 1;
        padding: 0;
        background: none;
    }
    .lv-icon.user-lv:not(.Mini-icon) i {
        display: none !important;
    }
    .lv-icon.user-lv:not(.Mini-icon) b {
        font-weight: 400;
        color: #fff;
        background: #8e8e8e;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        letter-spacing: 0.5px;
    }

    /* 评论区徽章微调 */
    .comment-author .Mini-icon.lv-icon {
        margin-left: 3px;
    }
    .comment-author .Mini-icon.lv-icon em {
        padding: 1px 6px;
        font-size: 11px;
    }
    .comment-author .lv-icon.user-vip:not(.Mini-icon) b,
    .comment-author .lv-icon.user-lv:not(.Mini-icon) b {
        padding: 1px 6px;
        font-size: 11px;
    }

    /* 用户资料页徽章微调 */
    .gravatar .Mini-icon.lv-icon.user-vip {
        margin-top: 2px;
    }

    /* 内容限制区域徽章微调 */
    .content-user-lv .Mini-icon.lv-icon em {
        font-size: 13px;
        padding: 3px 10px;
    }

    /* 圈子评论区徽章样式（仅限.topic-comment-list内） */
    .topic-comment-list .author-vip.Mini-icon,
    .topic-comment-list .author-lv.Mini-icon {
        display: inline-flex;
        align-items: center;
        height: auto;
        line-height: 1;
        padding: 0;
        border-radius: 3px;
        margin-right: 6px;
        font-size: 12px;
        font-weight: 400;
        color: #ffffff;
        background: none;
        vertical-align: middle;
    }
    .topic-comment-list .author-vip.Mini-icon em,
    .topic-comment-list .author-lv.Mini-icon em {
        font-style: normal;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 400;
        white-space: nowrap;
        color: #fff;
        letter-spacing: 0.5px;
        line-height: 1.4;
    }
    .topic-comment-list .author-vip.Mini-icon em {
        background: var(--vip-bg, linear-gradient(90deg, #fee2b6, #fec86e));
        color: #a26b0f;
    }
    .topic-comment-list .author-vip.Mini-icon em i.b2font {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #a26b0f;
        width: auto !important;
        height: auto !important;
        border: none !important;
        border-radius: 0 !important;
        margin-right: 0;
        line-height: 1;
        flex-shrink: 0;
    }
    .topic-comment-list .author-lv.Mini-icon em {
        background: #8e8e8e;
    }
    .topic-comment-list .author-lv.Mini-icon.b2-lv0 em { background: #000000; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv1 em { background: #83682a; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv2 em { background: #bbbbbb; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv3 em { background: #ff9b00; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv4 em { background: #b2ff00; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv5 em { background: #00ffea; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv6 em { background: #ff0044; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv7 em { background: #7000ff; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv8 em { background: #ff0000; }
    .topic-comment-list .author-lv.Mini-icon.b2-lv9 em { background: #ff0000; color: #333; }

    /* 圈子评论区VIP各等级文字颜色 */
    .topic-comment-list .author-vip.Mini-icon.b2-vip0 em,
    .topic-comment-list .author-vip.Mini-icon.b2-vip0 em i.b2font { color: #fff; }
    .topic-comment-list .author-vip.Mini-icon.b2-vip1 em,
    .topic-comment-list .author-vip.Mini-icon.b2-vip1 em i.b2font { color: #fff; }
    .topic-comment-list .author-vip.Mini-icon.b2-vip2 em,
    .topic-comment-list .author-vip.Mini-icon.b2-vip2 em i.b2font { color: #fff; }
    .topic-comment-list .author-vip.Mini-icon.b2-vip3 em,
    .topic-comment-list .author-vip.Mini-icon.b2-vip3 em i.b2font { color: #fff; }
    .topic-comment-list .author-vip.Mini-icon.b2-vip4 em,
    .topic-comment-list .author-vip.Mini-icon.b2-vip4 em i.b2font { color: #fff; }
/*end*/


/* 动态渐变描述 */
.comment-author .user-title {
    font-size: 13px;
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 33.3%, rgba(252, 176, 69, 1) 66.6%, rgba(131, 58, 180, 1) 100%);
    -webkit-background-clip: text;
    color: transparent !important;
    background-size: 300% 100%;
    animation: text 4s infinite linear;
    
}
@keyframes text {
0% {
background-position: 0 0
}
100% {
background-position: -150% 0
}
}
/*end*/

/* ========================================
   VIP购买页面 - 背景全屏显示
   ======================================== */

/* .vip-top 背景延伸全屏高度，去掉底部分割线 */
.vip-top {
    min-height: 100vh;
    border-bottom: none;
    padding-top: 20px;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
}

/* 内部内容 */
.vip-top > div {
    width: 100%;
}

/* VIP卡片区域减少间距 */
.vip-count {
    margin-top: 10px;
}

/* VIP页面标题模块 - 更大气 */
.vip-top .top-title {
    text-align: center;
    margin: 30px 0 16px;
    padding: 30px 0;
}

.vip-top .top-title h1 {
    font-size: 38px;
    font-weight: 800;
    /*color: #fff;*/
    /*text-shadow: 0 2px 12px rgba(0,0,0,0.4);*/
    margin: 0 0 24px;
    letter-spacing: 4px;
    background: #333;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    /*animation: vip-title-shine 6s ease-in-out infinite;*/
}

/*@keyframes vip-title-shine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}*/

.vip-top .top-title .Mini_vip_list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px 58px;
}

.vip-top .top-title .Mini_vip_list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-size: 20px;
    white-space: nowrap;
    padding: 6px 16px;
    background: #3333330d;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.3s, transform 0.2s;
}

.vip-top .top-title .Mini_vip_list span:hover {
    color: #ffffff;
    background: #ff0044;
    transform: translateY(-2px);
}

.vip-top .top-title .Mini_vip_list span i {
    font-size: 20px;
    color: #ff0044;
    transition: color 0.3s;
}

.vip-top .top-title .Mini_vip_list span:hover i {
    color: #ffffff;
}

/* VIP双行滚动评价模块 */
.vip-reviews {
    margin: 20px auto 16px;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vip-reviews-row {
    overflow: hidden;
    width: 100%;
}

.vip-reviews-inner {
    display: flex;
    gap: 16px;
    width: max-content;
}

/* 第一行向左滚动 */
.vip-reviews-row-left .vip-reviews-inner {
    animation: vipScrollLeft 30s linear infinite;
}

/* 第二行向右滚动 */
.vip-reviews-row-right .vip-reviews-inner {
    animation: vipScrollRight 35s linear infinite;
}

/* 鼠标悬停暂停 - 仅暂停悬停的那一行 */
.vip-reviews-row:hover .vip-reviews-inner {
    animation-play-state: paused;
}

@keyframes vipScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes vipScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.vip-review-card {
    flex-shrink: 0;
    width: 358px;
    padding: 18px 18px;
    background: #cccccc30;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.18);
    box-sizing: border-box;
    transition: transform 0.3s, background 0.3s;
}

.vip-review-card:hover {
    background: #ff0044;
    transform: translateY(-4px);
}

.vip-review-card:hover .vip-review-content,
.vip-review-card:hover .vip-review-name,
.vip-review-card:hover .vip-review-role {
    color: #fff;
}

.vip-review-content {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.vip-review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.vip-review-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vip-review-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.vip-review-role {
    font-size: 12px;
    color: #999;
}

/* 平板适配 */
@media screen and (max-width: 768px) {
    .vip-review-card {
        width: 260px;
        padding: 16px 18px;
    }

    .vip-review-content {
        font-size: 13px;
        line-height: 1.7;
    }

    .vip-reviews-row-left .vip-reviews-inner {
        animation-duration: 25s;
    }

    .vip-reviews-row-right .vip-reviews-inner {
        animation-duration: 28s;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
    .vip-review-card {
        width: 220px;
        padding: 14px 14px;
    }

    .vip-review-content {
        font-size: 12px;
    }

    .vip-review-avatar {
        width: 34px;
        height: 34px;
    }

    .vip-review-name {
        font-size: 13px;
    }

    .vip-review-role {
        font-size: 11px;
    }

    .vip-reviews-row-left .vip-reviews-inner {
        animation-duration: 20s;
    }

    .vip-reviews-row-right .vip-reviews-inner {
        animation-duration: 22s;
    }
}

/* 首页html-box模块内VIP评价样式修复 - 覆盖父主题 .html-box img 规则 */
.html-box .vip-reviews img {
    display: initial;
    width: auto;
}
.html-box .vip-review-avatar {
    width: 40px;
    height: 40px;
}
/* VIP当前状态 - em徽章与文字对齐 */
.vip-current {
    color: #696969;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.vip-current > div,
.vip-current > span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.vip-current .lv-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 2px;
}

.vip-current .lv-icon em {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* main区域紧贴vip-top下方 */
.content-area.vip-page {
    padding-top: 0;
    margin-top: -20px;
}

.content-area.vip-page .site-main {
    margin-top: 0;
    padding-top: 10px;
}

/* VIP常见问题区域美化 */
.vip-footer {
    margin-top: 40px;
    /*text-align: center;*/
}

.vip-footer > h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.vip-footer > p {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.vip-footer .vip-faq {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.vip-footer .vip-faq-list {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.vip-footer .vip-faq-list:last-child {
    border-bottom: none;
}

.vip-footer .vip-faq-list:hover {
    background: #fafafa;
}

.vip-footer .vip-faq-list h2 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vip-footer .vip-faq-list h2::after {
    content: '+';
    font-size: 20px;
    color: #ccc;
    font-weight: 300;
    transition: transform 0.3s;
}

.vip-footer .vip-faq-list p {
    font-size: 14px;
    color: #777;
    line-height: 1.8;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* 手机适配 */
@media screen and (max-width: 768px) {
    .vip-top {
        margin-top: -24px;
        padding-top: 10px;
        min-height: 80vh;
    }

    .vip-count ul li {
        width: 50%;
    }

    .vip-count ul li .vip-in {
        margin: 8px;
        padding: 20px 0;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
    .vip-top {
        padding-top: 10px;
        min-height: auto;
    }

    .vip-count ul li {
        width: 100%;
    }

    .vip-count ul li .vip-in {
        margin: 6px 0;
    }
}

/*会员购买卡片标题*/
.vip-list-in h2 {
    font-size: 38px;
}
.vip-count ul li .vip-in {
    background: #ffffff1f;
}
/*end*/

/* ========================================
   音乐播放器 - 侧边栏按钮样式
   匹配B2主题侧边工具条风格
   ======================================== */

/* 侧边栏音乐按钮 - 继承 bar-item 样式 */
.tcbdb-music-btn {
    position: relative;
}

/* 侧边栏音乐按钮SVG图标 */
.tcbdb-music-btn .music-sidebar-icon {
    color: #5f6575;
    position: relative;
    z-index: 2;
}

.tcbdb-music-btn:hover .music-sidebar-icon {
    color: #fff;
}

/* 播放中状态 - 图标脉动动画 */
.tcbdb-music-btn.music-playing .music-sidebar-icon {
    color: #ff3a3a;
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 播放中 - 侧边栏按钮显示小红点 */
.tcbdb-music-btn.music-playing::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: #ff3a3a;
    border-radius: 50%;
    animation: musicDot 1.5s ease-in-out infinite;
}

@keyframes musicDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}

/* ========================================
   音乐播放器 - 底部播放器样式
   参考网易云音乐底部播放器设计
   ======================================== */

.tcbdb-music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(24, 24, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99998;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.tcbdb-music-player.music-player-show {
    transform: translateY(0);
}

/* 隐藏原生audio */
.tcbdb-music-player audio {
    display: none;
}

/* ---- 左侧：歌曲信息 ---- */
.music-player-left {
    display: flex;
    align-items: center;
    width: 260px;
    min-width: 200px;
    flex-shrink: 0;
}

.music-cover-wrap {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 14px;
}

.music-cover-wrap img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-radius 0.3s;
}

/* 播放时封面旋转 */
.music-cover-wrap.music-cover-playing img {
    border-radius: 50%;
    animation: coverRotate 12s linear infinite;
}

@keyframes coverRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-cover-disc {
    display: none;
}

.music-song-info {
    overflow: hidden;
    flex: 1;
}

.music-song-name {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.4;
    max-width: 180px;
}

.music-song-artist {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.4;
    max-width: 180px;
}

/* ---- 中间：播放控制 ---- */
.music-player-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.music-controls {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.music-ctrl-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.music-ctrl-btn:hover {
    color: #fff;
}

.music-ctrl-btn .music-icon {
    display: block;
    line-height: 1;
}

/* 播放/暂停按钮 - 突出显示 */
.music-play-btn {
    width: 40px;
    height: 40px;
    background: #ff3a3a;
    color: #fff !important;
    margin: 0 12px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 58, 58, 0.4);
}

.music-play-btn:hover {
    background: #ff5252;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(255, 58, 58, 0.5);
}

/* 播放按钮图标尺寸由SVG属性控制 */

/* 上一首/下一首按钮 */
.music-prev-btn,
.music-next-btn {
    margin: 0 8px;
}

.music-prev-btn:hover,
.music-next-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* 播放模式按钮 */
.music-mode-btn {
    font-size: 14px;
}

.music-mode-btn:hover {
    color: #ff3a3a;
}

/* 播放列表按钮 */
.music-list-btn {
    font-size: 14px;
}

.music-list-btn:hover {
    color: #ff3a3a;
}

/* ---- 进度条 ---- */
.music-progress-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.music-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-variant-numeric: tabular-nums;
    min-width: 40px;
    line-height: 1;
}

.music-time-current {
    text-align: right;
    margin-right: 10px;
}

.music-time-total {
    text-align: left;
    margin-left: 10px;
}

.music-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.15s;
}

.music-progress-bar:hover {
    height: 6px;
}

.music-progress-loaded {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}

.music-progress-played {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #ff3a3a, #ff6b6b);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}

.music-progress-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    left: 0%;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.music-progress-bar:hover .music-progress-handle {
    opacity: 1;
}

/* ---- 右侧：音量和其他 ---- */
.music-player-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 20px;
}

.music-volume-wrap {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.music-volume-btn {
    padding: 4px;
    margin: 0;
}

/* 音量按钮图标尺寸由SVG属性控制 */

.music-volume-bar {
    width: 90px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-left: 4px;
    transition: height 0.15s;
}

.music-volume-bar:hover {
    height: 6px;
}

.music-volume-filled {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    width: 80%;
    pointer-events: none;
}

.music-volume-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    left: 80%;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.music-volume-bar:hover .music-volume-handle {
    opacity: 1;
}

/* 固定按钮 */
.music-pin-btn {
    font-size: 14px;
}

.music-pin-btn.music-pin-active {
    color: #ff3a3a;
}

.music-pin-btn.music-pin-active i {
    transform: rotate(45deg);
}

/* 关闭按钮 */
.music-close-btn {
    font-size: 14px;
    margin-left: 4px;
}

.music-close-btn:hover {
    color: #ff3a3a;
}

/* ---- 播放列表面板 ---- */
.music-playlist {
    position: absolute;
    right: 24px;
    bottom: 80px;
    width: 360px;
    max-height: 400px;
    background: rgba(30, 30, 34, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    z-index: 10;
}

.music-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.music-playlist-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.music-playlist-body {
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.music-playlist-body::-webkit-scrollbar {
    width: 4px;
}

.music-playlist-body::-webkit-scrollbar-track {
    background: transparent;
}

.music-playlist-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.music-playlist-item {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
}

.music-playlist-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.music-playlist-item-active {
    color: #ff3a3a;
}

.music-playlist-item-active .music-playlist-item-name {
    color: #ff3a3a;
}

.music-playlist-item-index {
    width: 28px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
    flex-shrink: 0;
}

.music-playlist-item-active .music-playlist-item-index {
    color: #ff3a3a;
}

.music-playlist-item-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    margin-right: 10px;
}

.music-playlist-item-artist {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ========================================
   音乐播放器 - 响应式适配
   ======================================== */

/* 平板适配 */
@media screen and (max-width: 1024px) {
    .music-player-left {
        width: 200px;
        min-width: 160px;
    }

    .music-song-name {
        max-width: 130px;
    }

    .music-song-artist {
        max-width: 130px;
    }

    .music-progress-wrap {
        max-width: 400px;
    }

    .music-volume-bar {
        width: 70px;
    }

    .music-playlist {
        width: 300px;
    }
}

/* 手机适配 */
@media screen and (max-width: 768px) {
    .tcbdb-music-player {
        height: 64px;
        padding: 0 12px;
    }

    .music-player-left {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
    }

    .music-cover-wrap {
        width: 42px;
        height: 42px;
        margin-right: 10px;
    }

    .music-cover-wrap img {
        width: 42px;
        height: 42px;
    }

    .music-song-info {
        display: none;
    }

    .music-player-center {
        flex: 1;
    }

    .music-controls {
        margin-bottom: 4px;
    }

    .music-ctrl-btn {
        padding: 4px;
        margin: 0 4px;
    }

    .music-ctrl-btn .music-icon {
        width: 16px;
        height: 16px;
    }

    .music-play-btn {
        width: 36px;
        height: 36px;
        margin: 0 8px;
    }

    .music-play-btn .music-icon {
        width: 18px;
        height: 18px;
    }

    .music-mode-btn,
    .music-list-btn {
        display: none;
    }

    .music-progress-wrap {
        max-width: none;
    }

    .music-time {
        font-size: 11px;
        min-width: 36px;
    }

    .music-player-right {
        margin-left: 8px;
    }

    .music-volume-wrap {
        display: none;
    }

    .music-pin-btn {
        display: none;
    }

    .music-playlist {
        right: 8px;
        left: 8px;
        width: auto;
        bottom: 72px;
        max-height: 300px;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 480px) {
    .tcbdb-music-player {
        height: 58px;
        padding: 0 8px;
    }

    .music-cover-wrap {
        width: 38px;
        height: 38px;
        margin-right: 8px;
    }

    .music-cover-wrap img {
        width: 38px;
        height: 38px;
    }

    .music-ctrl-btn {
        margin: 0 2px;
    }

    .music-play-btn {
        width: 34px;
        height: 34px;
        margin: 0 6px;
    }

    .music-time {
        font-size: 10px;
        min-width: 32px;
    }

    .music-close-btn .music-icon {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   音乐播放器 - 暗黑模式适配
   ======================================== */

.dark .tcbdb-music-player {
    background: rgba(18, 18, 22, 0.98);
    border-top-color: rgba(255, 255, 255, 0.04);
}

.dark .music-playlist {
    background: rgba(22, 22, 26, 0.98);
    border-color: rgba(255, 255, 255, 0.05);
}

/* ========================================
   音乐播放器 - 页面底部留白
   当播放器固定显示时，防止内容被遮挡
   ======================================== */

body.music-player-pinned {
    padding-bottom: 72px;
}

@media screen and (max-width: 768px) {
    body.music-player-pinned {
        padding-bottom: 64px;
    }
}

@media screen and (max-width: 480px) {
    body.music-player-pinned {
        padding-bottom: 58px;
    }
}

/*end*/

/* ========== 住房公积金工具页面 ========== */

/* 页面标题区 */
.hf-page-header {
    text-align: center;
    padding: 40px 30px 30px;
    max-width: 800px;
    margin: 0 auto;
}

.hf-page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    margin-bottom: 16px;
}

.hf-page-header-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 8px;
}

.hf-page-header-desc {
    font-size: 15px;
    color: #636e72;
    margin: 0;
}

/* 标签切换 */
.hf-tabs {
    display: flex;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.hf-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #636e72;
    background: #f1f2f6;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hf-tab:hover {
    background: #dfe4ea;
    color: #2d3436;
}

.hf-tab.active {
    color: #4f6ef7;
    background: #eef0ff;
    border-color: #4f6ef7;
}

.hf-tab svg {
    flex-shrink: 0;
}

/* 面板切换 */
.hf-panel {
    display: none;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hf-panel.active {
    display: block;
}

/* 卡片容器 */
.hf-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* 卡片头部 */
.hf-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 30px;
    color: #ffffff;
}

.hf-card-header--blue {
    background: linear-gradient(135deg, #4f6ef7 0%, #667eea 100%);
}

.hf-card-header--green {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.hf-card-header--orange {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.hf-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.hf-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #ffffff;
}

.hf-card-desc {
    font-size: 13px;
    margin: 0;
    opacity: 0.85;
    color: #ffffff;
}

/* 表单 */
.hf-form {
    padding: 28px 30px 24px;
}

.hf-field {
    margin-bottom: 20px;
}

.hf-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 8px;
}

.hf-label-icon {
    display: inline-flex;
    align-items: center;
    color: #4f6ef7;
}

.hf-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.hf-input-prefix,
.hf-input-suffix {
    position: absolute;
    font-size: 14px;
    font-weight: 600;
    color: #b2bec3;
    pointer-events: none;
    user-select: none;
}

.hf-input-prefix {
    left: 14px;
}

.hf-input-suffix {
    right: 14px;
}

.hf-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    color: #2d3436;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -moz-appearance: textfield;
}

.hf-input::-webkit-inner-spin-button,
.hf-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.hf-input:focus {
    border-color: #4f6ef7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.12);
}

.hf-input.hf-input--suffix {
    padding-right: 44px;
}

.hf-input:not(.hf-input--suffix) {
    padding-left: 36px;
}

.hf-input::placeholder {
    color: #b2bec3;
    font-size: 14px;
}

.hf-input.hf-input--error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.hf-input.hf-input--error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.hf-hint {
    font-size: 12px;
    color: #b2bec3;
    margin-top: 6px;
    line-height: 1.5;
}

.hf-error {
    display: block;
    min-height: 18px;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    padding-left: 2px;
}

/* 单选按钮组 */
.hf-radio-group {
    display: flex;
    gap: 12px;
}

.hf-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #636e72;
}

.hf-radio input {
    display: none;
}

.hf-radio-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #dfe4ea;
    transition: all 0.2s;
    position: relative;
}

.hf-radio-mark::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4f6ef7;
    position: absolute;
    transform: scale(0);
    transition: transform 0.2s;
}

.hf-radio.active {
    border-color: #4f6ef7;
    background: #eef0ff;
    color: #4f6ef7;
}

.hf-radio.active .hf-radio-mark {
    border-color: #4f6ef7;
}

.hf-radio.active .hf-radio-mark::after {
    transform: scale(1);
}

/* 按钮 */
.hf-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.hf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hf-btn--primary {
    flex: 1;
    color: #ffffff;
    background: linear-gradient(135deg, #4f6ef7 0%, #667eea 100%);
    box-shadow: 0 4px 14px rgba(79, 110, 247, 0.35);
}

.hf-btn--primary:hover {
    box-shadow: 0 6px 20px rgba(79, 110, 247, 0.5);
    transform: translateY(-1px);
}

.hf-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 110, 247, 0.3);
}

.hf-btn--green {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35);
}

.hf-btn--green:hover {
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.hf-btn--orange {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.35);
}

.hf-btn--orange:hover {
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.5);
}

.hf-btn--reset {
    color: #636e72;
    background: #f1f2f6;
}

.hf-btn--reset:hover {
    background: #dfe4ea;
}

/* 结果区 */
.hf-result {
    margin: 0 30px 30px;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    overflow: hidden;
    animation: hfFadeIn 0.35s ease;
}

@keyframes hfFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hf-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #4f6ef7 0%, #667eea 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.hf-result-header--green {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.hf-result-grid {
    display: grid;
    gap: 1px;
    background: #e9ecef;
}

.hf-result-grid--4 {
    grid-template-columns: 1fr 1fr;
}

.hf-result-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.hf-result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    background: #ffffff;
    text-align: center;
}

.hf-result-label {
    font-size: 13px;
    color: #636e72;
    margin-bottom: 6px;
}

.hf-result-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
}

.hf-result-sub {
    font-size: 11px;
    color: #b2bec3;
    margin-top: 4px;
}

.hf-result-item--highlight .hf-result-value {
    color: #4f6ef7;
}

.hf-result-item--warn .hf-result-value {
    color: #e67e22;
}

/* 等额本金额外信息 */
.hf-result-extra {
    display: flex;
    gap: 1px;
    background: #e9ecef;
    border-top: 1px solid #e9ecef;
}

.hf-result-extra-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    text-align: center;
}

/* 公式区 */
.hf-formula {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.hf-formula-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #636e72;
    margin-bottom: 8px;
}

.hf-formula-text {
    font-size: 13px;
    color: #8590a6;
    line-height: 1.8;
}

.hf-formula-text em {
    font-style: normal;
    font-weight: 700;
    color: #4f6ef7;
}

.hf-formula-text p {
    margin: 0 0 4px;
}

/* 额度详情 */
.hf-result-detail {
    padding: 16px 20px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
}

.hf-result-detail .hf-formula-text em {
    color: #27ae60;
}

/* 提示 */
.hf-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 20px;
    background: #fff8e1;
    border-top: 1px solid #ffe082;
    font-size: 13px;
    color: #795548;
    line-height: 1.6;
}

.hf-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #f39c12;
}

/* ==================== 提取条件自测 ==================== */

.hf-quiz {
    padding: 28px 30px 24px;
}

/* 进度条 */
.hf-quiz-progress {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: visible;
}

.hf-quiz-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.hf-quiz-progress-text {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: 12px;
    color: #b2bec3;
    font-weight: 600;
}

/* 问题 */
.hf-quiz-question {
    animation: hfQuizFadeIn 0.3s ease;
}

@keyframes hfQuizFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.hf-quiz-question-text {
    font-size: 17px;
    font-weight: 600;
    color: #2d3436;
    margin: 0 0 20px;
    line-height: 1.5;
}

.hf-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hf-quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-size: 14px;
    color: #2d3436;
    line-height: 1.5;
}

.hf-quiz-option:hover {
    border-color: #e67e22;
    background: #fef9f0;
}

.hf-quiz-option.selected {
    border-color: #e67e22;
    background: #fef0db;
}

.hf-quiz-option-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    font-size: 13px;
    font-weight: 700;
    color: #636e72;
    flex-shrink: 0;
    transition: all 0.2s;
}

.hf-quiz-option:hover .hf-quiz-option-index,
.hf-quiz-option.selected .hf-quiz-option-index {
    background: #e67e22;
    color: #ffffff;
}

.hf-quiz-option-text {
    flex: 1;
}

/* 返回按钮 */
.hf-quiz-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 13px;
    color: #b2bec3;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.hf-quiz-back:hover {
    color: #636e72;
}

/* 自测结果 */
.hf-quiz-result {
    text-align: center;
    padding: 30px 20px;
    animation: hfFadeIn 0.35s ease;
}

.hf-quiz-result-icon {
    margin-bottom: 16px;
}

.hf-quiz-result-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.hf-quiz-result-desc {
    font-size: 14px;
    color: #636e72;
    margin: 0 0 20px;
}

.hf-quiz-result-detail {
    text-align: left;
    margin-bottom: 24px;
}

.hf-quiz-reason {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    font-size: 14px;
    color: #2d3436;
    line-height: 1.7;
    margin-bottom: 12px;
}

.hf-quiz-tip {
    font-size: 12px;
    color: #b2bec3;
    line-height: 1.6;
    padding: 0 4px;
}

/* ==================== 响应式 ==================== */

@media screen and (max-width: 768px) {
    .hf-page-header {
        padding: 30px 20px 20px;
    }

    .hf-page-header-title {
        font-size: 24px;
    }

    .hf-tabs {
        gap: 6px;
        padding: 0 16px;
    }

    .hf-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .hf-panel {
        padding: 0 16px;
    }

    .hf-card-header {
        padding: 22px 20px;
    }

    .hf-card-title {
        font-size: 18px;
    }

    .hf-form {
        padding: 22px 20px 20px;
    }

    .hf-result {
        margin: 0 20px 20px;
    }

    .hf-result-value {
        font-size: 18px;
    }

    .hf-quiz {
        padding: 22px 20px 20px;
    }

    .hf-quiz-question-text {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .hf-page-header {
        padding: 24px 16px 16px;
    }

    .hf-page-header-icon {
        width: 52px;
        height: 52px;
    }

    .hf-page-header-title {
        font-size: 20px;
    }

    .hf-tabs {
        flex-direction: column;
        gap: 6px;
        padding: 0 12px;
    }

    .hf-tab {
        justify-content: center;
    }

    .hf-panel {
        padding: 0 12px;
    }

    .hf-card-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
    }

    .hf-card-title {
        font-size: 17px;
    }

    .hf-form {
        padding: 20px 16px 16px;
    }

    .hf-input {
        height: 42px;
        font-size: 14px;
    }

    .hf-btn {
        height: 42px;
        font-size: 14px;
        padding: 0 20px;
    }

    .hf-radio-group {
        flex-direction: column;
        gap: 8px;
    }

    .hf-result {
        margin: 0 16px 16px;
    }

    .hf-result-grid--4,
    .hf-result-grid--3 {
        grid-template-columns: 1fr;
    }

    .hf-result-item {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 16px;
    }

    .hf-result-label {
        margin-bottom: 0;
    }

    .hf-result-value {
        font-size: 16px;
    }

    .hf-result-extra {
        flex-direction: column;
    }

    .hf-quiz {
        padding: 20px 16px 16px;
    }

    .hf-quiz-option {
        padding: 12px 14px;
        font-size: 13px;
    }
}