/*
Theme Name: 高明中医
Theme URI: 
Author: t145gaom
Author URI: 
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-custom-theme
*/




/* 自定义 mark 样式 */
mark {
  padding: 0.1em 0.2em; /* 轻微内边距 */
  background:#FFFF99;
}





.dark-mode .herb-term.has-match sub {
    color:#fff!important;
}

/* 辩证分型页面表格样式 */
.tcm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  /* 深色模式颜色过渡 */
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

        /* 最后一行无线条 */
        .tcm-table tbody tr:last-child td {
            border-bottom: none;
        }
   /* 列宽适配 - 大屏幕完整显示 */
        .tcm-table th:nth-child(2) {
            width: 30%;
        }

        .tcm-table th:nth-child(3) {
            width: 15%;
        }

        .tcm-table th:nth-child(4) {
            width: 20%;
        }

        .tcm-table th:nth-child(5) {
            width: 20%;
        }
		
		
/* 深色模式基础样式 */
.dark .tcm-table {
  color: #e5e7eb;
  background-color: #1f2937;
}

.tcm-table thead {
  border-bottom: 1px solid #e0e0e0;
}

.dark .tcm-table thead {
  border-bottom: 1px solid #374151;
}

.tcm-table th {
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
  position: relative;
  color: #7b7b84;
}

.dark .tcm-table th {
  color: #9ca3af;
}

.tcm-table td {
  padding: 12px 15px;
  vertical-align: middle;
  border-bottom: 1px solid #e0e0e0;
}

.dark .tcm-table td {
  border-bottom: 1px solid #374151;
}

.tcm-table tbody tr:hover {
  background-color: rgba(44, 62, 80, 0.05);
  transition: background-color 0.2s ease;
}

.dark .tcm-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* 自适应核心样式 */
.tcm-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .tcm-table th,
  .tcm-table td {
    padding: 10px 8px;
    white-space: nowrap;
  }
  
  .tcm-table thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
  }
  
  /* 深色模式下的粘性表头 */
  .dark .tcm-table thead th {
    background-color: #1f2937;
  }
}





