<style>
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Noto Serif SC', -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #faf7f0;  /* 暖白底色 */
    letter-spacing: -0.01em;
    color: #2c2b28;
  }
  /* 柔和背景渐变 (浅米纸感) */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(235, 215, 175, 0.15) 0%, rgba(250, 247, 240, 0) 70%);
    pointer-events: none;
    z-index: -1;
  }

  /* .container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem;
  }
  @media (min-width: 1400px) {
    .container-custom {
      max-width: 1320px;
    }
  } */

  /* 导航栏 */
  .navbar {
/*        background: linear-gradient(135deg, #b22234 0%, #8b1a1a 100%) !important;*/
    background: #b22234 !important;
/*        background: #dc3545;*/
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .navbar-brand {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    background: linear-gradient(120deg, #fff9e8, #ffe6c7);
    -webkit-background-clip: text;
    color: transparent !important;
    text-shadow: none;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
    margin-right: 2.5rem;
  }
  .navbar-brand:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
  }
  .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.2s;
    color: #fff7e8 !important;
    opacity: 0.85;
  }
  .nav-link:hover {
    opacity: 1;
    background: rgba(255, 245, 220, 0.15);
    transform: translateY(-1px);
  }

  /* 卡片 */
  .card {
    background: #fffcf5;/* 原 #ffffffea */
    backdrop-filter: blur(0px);
    border: none;
    border-radius: 0px;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(150, 110, 60, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
  }
  .card:hover {
    box-shadow: 0 20px 32px -12px rgba(0, 0, 0, 0.12);
  }
  .card-body {
    padding: 1rem 1rem;
  }
  .card-title {
    font-size: 1.1rem;
    font-weight: 500;
/*      color: #5a3e2b;*/
    color: #212529;
    margin-bottom: 0rem;
    letter-spacing: -0.2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .card-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fdf3e6;
    border-radius: 48px;
    padding: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    color: #8b5a2b;
    transition: all 0.2s;
  }
  .card-link-btn:hover {
    background: #ffe9d4;
    color: #b3422d;
    transform: scale(1.01);
  }

  hr {
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, #e0cfb0, #f3e7d3, #e0cfb0);
    opacity: 0.6;
  }

  /* 搜索区域 */
  .search-section {
    background: #fffcf5; /* #fffdf7 */
    border-radius: 0px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02), 0 0 0 1px #efe3cf;*/
  }
  .search-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .search-input {
    flex: 1;
    min-width: 0; /* 防止溢出 */
    border: 1px solid #e2d4c2;
    border-radius: 24px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    background: #ffffff;
    transition: all 0.2s ease;
  }
  .search-input:focus {
    outline: none;
    border-color: #bc8f6b;
    box-shadow: 0 0 0 3px rgba(188, 143, 107, 0.15);
  }
  .search-btn {
    background: #ffffff;
    border: 1px solid #c8ad86;
    border-radius: 24px;
    padding: 0.7rem 1.4rem;
    font-weight: 500;
    color: #7a5a3a;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .search-btn:hover {
    background: #f7efe3;
    border-color: #b47c4a;
    color: #834e2c;
  }
  .tips-badge {
    font-size: 0.8rem;s
    letter-spacing:0.034em;
    background: #faf3e8;
    padding: 0.4rem 1rem;
    border-radius: 16px;
    color: #9b7a57;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
  }

  /* 移动端按钮同行 */
  @media (max-width: 576px) {
    .search-row {
      gap: 8px;
    }
    .search-btn {
      padding: 0.7rem 1rem;
      font-size: 0.85rem;
    }
    .search-input {
      padding: 0.65rem 1rem;
    }
    .search-section {
      padding: 1rem;
    }
  }

  /* 链接列表 */
  .link-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.1rem;
  }
  .link-item {
    /* border-bottom: 1px solid #f0e6da;*/
    transition: all 0.2s;
  }
  .link-item:last-child {
    border-bottom: none;
  }
  .link-list-link {
    display: block;
    padding: 0.35rem 0.5rem 0.35rem 0;
    text-decoration: none;
    color: #8b1a1a;
    font-weight: 400;
    font-size: 1.1rem;
    transition: all 0.2s;
    position: relative;
  }
  /*.link-list-link:hover {
    color: #b3522c;
    transform: translateX(6px);
  }*/

  /* 仅在桌面端（min-width: 769px）显示hover位移动效 */
  @media (min-width: 769px) {
    .link-list-link:hover {
      color: #b3522c;
      transform: translateX(6px);
    }
  }
  /* 移动端：只保留颜色变化，移除位移动效 */
  @media (max-width: 768px) {
    .link-list-link:hover {
      color: #b3522c;
    }
  }

	/* 汗吐下禁忌快捷查询 */
	.quick-query-card {
	    background: #fffcf5;
	    border-radius: 16px;
	    padding: 1.5rem;
	    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(150, 110, 60, 0.06);
	}

	.quick-query-title {
	    font-size: 1.1rem;
	    font-weight: 600;
	    color: #5a3e2b;
	    margin-bottom: 1.2rem;
	    display: flex;
	    align-items: center;
	    gap: 8px;
	    letter-spacing: 0.05em;
	}

	.quick-query-title::before {
	    content: '';
	    display: inline-block;
	    width: 4px;
	    height: 18px;
	    background: linear-gradient(180deg, #b22234, #d4a574);
	    border-radius: 2px;
	}

	.query-section {
	    margin-bottom: 1.2rem;
	}

	.query-section:last-child {
	    margin-bottom: 0;
	}

	/* 列表竖排 */
	.query-list {
	    display: flex;
	    flex-direction: column;
	    gap: 8px;
	}

	/* 链接项 */
	.query-item {
	    display: flex;
	    align-items: center;
	    justify-content: center;/* 水平居中 */
	    padding: 0.85rem 1rem;
	    background: #fffdf9;
	    border: 1px solid #f0e6d8;
	    border-radius: 12px;
	    text-decoration: none;
	    color: #5a3e2b;
	    font-size: 0.95rem;
	    font-weight: 450;
	    transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
	    position: relative;
	    overflow: hidden;
	    will-change: transform;/* 主动告知浏览器 transform 将会变化，确保动效流畅 */
	}

	.query-item::before {
	    content: '';
	    position: absolute;
	    left: 0;
	    top: 0;
	    height: 100%;
	    width: 3px;
	    background: transparent;
	    transition: background 0.25s ease;
	}

	.query-item.danger::before {
	    background: #e8d5d5;
	}

	.query-item.info::before {
	    background: #d5dce8;
	}

	.query-item:hover {
	    background: #fff8f0;
	    border-color: #e0d0c0;
	    transform: translateX(4px);
	    box-shadow: 0 4px 12px rgba(139, 26, 26, 0.06);
	}

	.query-item.danger:hover::before {
	    background: #b22234;
	}

	.query-item.info:hover::before {
	    background: #5a7a9a;
	}

	.query-item:active {
	    transform: translateX(2px);
	}

	/* 链接内容 */
	.query-text {
	    display: flex;
	    align-items: center;
	    gap: 8px;
	    font-size: 1rem;
	}

	.query-icon {
	    font-size: 1rem;
	    opacity: 0.8;
	}

	@media (max-width: 768px) {
	 .quick-query-card {
	        padding: 1.2rem;
	        border-radius: 12px;
	    }
	    .query-item {
	        padding: 0.75rem 0.9rem;
	        font-size: 0.9rem;
	    }
	    .query-item:hover {
	        transform: translateX(2px);
	    }
	}

  /* 公众号卡片 */
  .qr-card {
    background: #fffcf5;
    border-radius: 0px;
    /* border: 1px solid #f0e2cf;*/
    text-align: center;
    padding: 1.5rem 0rem;
  }
  .qr-card img {
    max-width: 170px;
    border-radius: 12px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    transition: transform 0.2s;
  }
  .qr-card img:hover {
    transform: scale(1.02);
  }

  /* 分页器 */
  .pagination .page-link {
    background: transparent;
    border: none;
    color: #7b623e;
    /* border-radius: 36px;*/
    margin: 0 2px;
    padding: 0.5rem 1rem;
    font-weight: 450;
    transition: all 0.2s;
  }
  .pagination .page-link:hover {
    background: #f2e8dc;
    color: #a1552e;
  }
  .pagination .disabled .page-link {
    color: #cfc2ae;
    background: transparent;
  }

  /* 底部移动导航栏 */
  .mobile-bottom-nav {
    background: rgba(255, 252, 245, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #f0e2d0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.02);
    padding: 4px 0 10px;
  }
  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #7c5e3e;
    font-size: 0.7rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    border-radius: 40px;
    padding: 6px 4px;
    min-width: 72px; 
  }
  .bottom-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s;
    fill: currentColor;
  }
  .bottom-nav-item:hover {
    color: #b3422d;
    background: #fdf3e6;
    transform: translateY(-2px);
  }

  /* 页脚 */
  .footer-links {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 1rem 1rem 2rem;
      font-size: 0.75rem;
      color: #8b765c;
  }
  .footer-slogan {
      font-size: 0.75rem;
      color: #6c757d;/* #9b8468 */
      letter-spacing: 0.5px;
      opacity: 0.85;
  }
  .footer-links-group {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      flex-wrap: wrap;
  }
  .footer-links-group a {
      color: #8b765c;
      text-decoration: none;
      transition: color 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 6px;
  }
  .footer-links-group a:hover {
      color: #b85c3a;
  }

  /* 工具列表 */
  .tool-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
  }
  .tool-item {
    background: #fffdf9;
    border-radius: 24px;
    border: 1px solid #f2e5d4;
    overflow: hidden;
    width: 100%;
  }
  .tool-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 1rem 1.4rem;
    text-decoration: none;
    color: #3b2a1f;
    font-size: 1rem;
    font-weight: 500;
  }

  /* 桌面端：完整的悬停动效 */
  @media (min-width: 769px) {
    .tool-item {
      transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
    }
    .tool-item a {
      transition: all 0.2s;
    }
    .tool-item:hover {
      background: #fff7ef;
      border-color: #d4bb91;
      transform: translateX(4px) translateY(-2px);
      box-shadow: 0 12px 20px -12px rgba(70, 40, 20, 0.2);
    }
    .tool-item:hover a span:first-child {
      transform: scale(1.02);
    }
  }
  /* 移动端：只保留背景和边框颜色变化，移除位移/缩放/阴影/过渡动效 */
  @media (max-width: 768px) {
    .tool-item {
      transition: none;
    }
    .tool-item a {
      transition: none;
    }
    .tool-item:active {
      background: #fff7ef;
      border-color: #d4bb91;
      /* 无 transform，无 box-shadow，无子元素缩放 */
    }
  }

  /* 返回按钮 */
  .back-btn-icon {
    background: rgba(255,245,220,0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  .back-btn-icon:hover {
    background: rgba(255,245,220,0.4);
    transform: scale(1.02);
  }
  
  /* 通用链接 */
  .universal-link {
/*      display: block;*/
    padding: 0.4rem 0.5rem 0.4rem 0;
    text-decoration: none;
    color: #8b1a1a;
    font-weight: 360;
    font-size: 1.1rem;
    transition: all 0.2s;
    position: relative;
  }
  .universal-link:hover {
    color: #b3522c;
  }

  /* 提示性文字  */
  .tip-content {
    display: block;
    padding: 0.4rem 0rem 0.4rem 0;
    color: #6c757d;
    font-weight: 360;
    font-size: 1.1rem;
  }
  /* 提示性链接 */
  .tip-link {
    display: block;
    padding: 0.4rem 0rem 0.4rem 0;
    text-decoration: none;
    color: #8b1a1a;
    font-weight: 360;
    font-size: 1rem;
    transition: all 0.2s;
    position: relative;
  }
  .tip-link:hover {
    color: #b3522c;
  }

  /* 只改变链接颜色 */
  .color-link, a {
    color: #8b1a1a;
    text-decoration: none!important;
  }
  .color-link, a:hover {
    color: #b3522c;
  }

  /* 按钮颜色 */
  .btn {
    color: #8b1a1a;
    background: transparent;
  }
  .btn:hover {
    color: #b3522c;
    background: #f2e8dc;
  }

  .btn-warm-paper {
    background: #fdf8f0;
    border: none;
    border-radius: 24px;
    padding: 0.6rem 2rem;
    font-weight: 500;
    color: #9b6a3c;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02), 0 0 0 1px #e8dac8 inset;
    letter-spacing: 1px;
  }
  .btn-warm-paper:hover {
    background: #fffbf5;
    color: #b84c2c;
    box-shadow: 0 6px 12px -8px rgba(80, 50, 20, 0.18), 0 0 0 1px #d0b894 inset;
    transform: scale(1.01);
  }

  /* 工具列表保持桌面端单列 */
  /* @media (min-width: 992px) {
    .tool-list {
      max-width: 100%;
    }
    .tool-item a span:last-child {
      font-size: 1.02rem;
    }
  } */

  @media (max-width: 991.98px) {
    /* md 和更小屏幕 */
    .col-md-12, .col-sm-12, .col-xs-12{
      padding-left: 0;
      padding-right: 0;
    }
  }
  @media (max-width: 768px) {
    .navbar-brand {
      display: block;
      text-align: center;
      margin: 0 auto;
    }
     .tool-item a {
      padding: 0.85rem 1rem;
    }
  }
  @media (max-width: 576px) {
      /* 避免页脚被底部导航栏遮挡 */
      footer {
          padding-bottom: 80px;
      }
      /* 页脚内边距 */
      .footer-links {
          padding-bottom: 0.5rem;
      }
  }

  .fixed-bottom {
      position: fixed;
      bottom: 0;
      width: 100%;
      background-color: #f8f9fa;
      text-align: center;
      /* padding: 1px; */
  }
  .pre-wrap {
      white-space: pre-wrap;
  }
  .custom-ddd-link {
    border-bottom: 1px dotted #000; /* 点状下划线，颜色为黑色 */
    text-decoration: none; /* 去掉默认的下划线 */
    color: inherit; /* 继承父元素的颜色 */
  }
  .custom-ddd-link:hover {
    color: #8b1a1a;
  }

  h1 {font-size:1.4rem; letter-spacing:0.034em;}
  h2 {font-size:1.3rem; letter-spacing:0.034em;}
  h3 {font-size:1.2rem; letter-spacing:0.034em;}
  h4 {font-size:1.1rem; letter-spacing:0.034em;}

  p {
    font-size:1.1rem;
    letter-spacing:0.034em;
  }

  /* li 标签内 markdown 内容显示时不错行 */
  li > p {
    margin: 0;
    padding: 0;
    display: inline;  /* 或者 inline-block */
    font-size:15px;
    letter-spacing:0.034em;
  }

  #content {
    font-size:1.1rem;
    letter-spacing:0.034em;
  }

  #copyBookContent, #copyBookUrl, #copyArticleContent, #copyToolContent, #copyUrl {
    color: #8b1a1a;
  }

  .text-secondary {
    font-size:0.9rem;
    letter-spacing:0.034em;
  }
  
  .card-body a:visited #article_title {
    color: #a08080 !important;
  }
</style>