@charset "utf-8";
/* 工具频道 / 工具页：仿 d02 视觉（白底卡片 + 红色主色），仅本频道引用 */
.td-page{max-width:1200px;margin:0 auto;padding:0 0 30px;}
.td-hero{background:#fff;border-radius:6px;padding:26px 30px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.td-hero h1{font-size:26px;color:#333;font-weight:bold;line-height:1.6;}
.td-hero p{margin-top:10px;font-size:15px;color:#666;line-height:1.9;}
.td-stat{display:flex;flex-wrap:wrap;margin-top:18px;font-size:0;}
.td-stat > div{display:inline-block;min-width:150px;margin-right:30px;font-size:14px;color:#999;}
.td-stat b{display:block;font-size:24px;color:#f2003d;line-height:1.5;font-weight:bold;}
.td-hero .td-btn{display:inline-block;margin-top:16px;}

.td-btn{display:inline-block;height:40px;line-height:40px;padding:0 30px;background:#f2003d;color:#fff;font-size:16px;border:0;border-radius:4px;cursor:pointer;text-align:center;}
.td-btn:hover{background:#d20041;color:#fff;}

.td-cats{margin-top:16px;padding:12px 20px;background:#fff;border-radius:6px;font-size:0;}
.td-cats a{display:inline-block;font-size:15px;color:#333;padding:6px 14px;margin:4px 8px 4px 0;border:1px solid #eee;border-radius:4px;}
.td-cats a:hover,.td-cats a.on{border-color:#f2003d;color:#f2003d;}

.td-section{margin-top:26px;background:#fff;border-radius:6px;padding:20px 24px 26px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.td-group-t{font-size:20px;color:#333;font-weight:bold;border-left:4px solid #f2003d;padding-left:12px;line-height:1.2;}
.td-group-t small{font-size:13px;color:#999;font-weight:normal;margin-left:8px;}
.td-tools{display:flex;flex-wrap:wrap;margin:16px -8px 0;}
.td-tool{display:block;width:calc(25% - 16px);margin:8px;padding:14px 16px;border:1px solid #eee;border-radius:4px;background:#fff;box-sizing:border-box;}
.td-tool:hover{border-color:#f2003d;box-shadow:0 2px 10px rgba(242,0,61,.12);}
.td-ico{display:inline-block;width:36px;height:36px;line-height:36px;text-align:center;border-radius:50%;background:#f2003d;color:#fff;font-size:16px;margin-right:10px;vertical-align:middle;}
.td-ico.c2{background:#f56c6c}.td-ico.c3{background:#e6a23c}.td-ico.c4{background:#67c23a}
.td-ico.c5{background:#409eff}.td-ico.c6{background:#9a6ee0}
.td-name{display:inline-block;font-size:16px;color:#333;font-weight:bold;vertical-align:middle;}
.td-tool:hover .td-name{color:#f2003d;}
.td-desc{display:block;margin:8px 0 0 46px;font-size:13px;color:#888;line-height:1.7;}
.td-tool.soon{opacity:.55}
.td-note{margin-top:20px;padding:16px 20px;background:#fff;border:1px dashed #e6e6e6;border-radius:6px;font-size:13px;color:#888;line-height:1.9;}

/* 表单卡片 */
.td-card{margin-top:20px;padding:26px 30px;background:#fff;border-radius:6px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.td-card .form-row{display:flex;flex-wrap:wrap;align-items:center;margin-top:14px;}
.td-card .form-row:first-child{margin-top:0;}
.td-card .form-row .f{display:flex;align-items:center;min-width:220px;margin:6px 24px 6px 0;}
.td-card .form-row .f label{flex:0 0 auto;min-width:96px;margin:0 10px 0 0;font-size:16px;color:#333;text-align:right;}
.td-card input[type=text],.td-card select{height:36px;line-height:36px;padding:0 8px;border:1px solid #e1e1e1;border-radius:4px;font-size:15px;color:#333;background:#fff;outline:none;box-sizing:border-box;}
.td-card input[type=text]{width:auto;min-width:220px;}
.td-card select{min-width:88px;}
.td-card input[type=text]:focus,.td-card select:focus{border-color:#f2003d;}
.td-card .btn,.td-card button[type=submit]{height:38px;line-height:38px;padding:0 32px;border:0;border-radius:4px;background:#f2003d;color:#fff;font-size:16px;cursor:pointer;}
.td-card .btn:hover{background:#d20041;}
.td-card .err{padding:10px 14px;margin-bottom:12px;background:#fff1f3;border:1px solid #ffd6df;border-radius:4px;color:#c4002f;font-size:14px;}

/* 结果卡片 */
.td-res{margin-top:20px;padding:26px 30px;background:#fff;border-radius:6px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.td-res .lv{display:inline-block;padding:2px 14px;border-radius:2px;background:#f2003d;color:#fff;font-size:14px;}
.td-res h2{margin:14px 0 6px;font-size:24px;font-weight:bold;color:#f2003d;line-height:1.5;}
.td-res .tip{margin:8px 0 16px;font-size:15px;color:#666;line-height:1.9;}
.td-res .kv{width:100%;border-collapse:collapse;font-size:15px;}
.td-res .kv td{padding:11px 12px;border-bottom:1px solid #f0f0f0;color:#333;line-height:1.8;vertical-align:top;}
.td-res .kv td:first-child{width:32%;color:#888;}
.td-res .sub{margin:20px 0 8px;font-size:17px;color:#333;font-weight:bold;}

/* 底部工具导航 */
.td-nav{margin-top:20px;padding:16px 20px;background:#fff;border-radius:6px;font-size:0;}
.td-nav a{display:inline-block;font-size:14px;color:#555;padding:6px 14px;margin:4px 8px 4px 0;background:#f7f7f7;border-radius:4px;}
.td-nav a:hover{background:#f2003d;color:#fff;}

@media screen and (max-width:724px){
  .td-page{padding:0 10px 20px;}
  .td-hero{padding:18px 16px;}
  .td-hero h1{font-size:20px;}
  .td-section{padding:16px 14px 18px;}
  .td-tool{width:calc(50% - 16px);}
  .td-card,.td-res{padding:18px 16px;}
  .td-card .form-row .f{width:100%;min-width:0;margin:6px 0;}
  .td-card .form-row .f label{min-width:84px;font-size:15px;}
  .td-card input[type=text]{min-width:0;width:100%;}
  .td-card .form-row .f{flex-wrap:wrap;}
  .td-card .btn,.td-card button[type=submit]{width:100%;margin-top:12px;}
  .td-res .kv td:first-child{width:38%;}
}

/* 兼容旧 unified 标记（仅工具频道静态页仍在用 u-* 类名） */
.u-wrap{max-width:1200px;margin:0 auto;}
.u-cats{margin-top:16px;padding:12px 20px;background:#fff;border-radius:6px;font-size:0;}
.u-cats a{display:inline-block;font-size:15px;color:#333;padding:6px 14px;margin:4px 8px 4px 0;border:1px solid #eee;border-radius:4px;}
.u-cats a:hover{border-color:#f2003d;color:#f2003d;}
.u-section{margin-top:26px;background:#fff;border-radius:6px;padding:20px 24px 26px;box-shadow:0 2px 10px rgba(0,0,0,.04);}
.u-title{font-size:20px;color:#333;font-weight:bold;border-left:4px solid #f2003d;padding-left:12px;line-height:1.2;}
.u-title small{font-size:13px;color:#999;font-weight:normal;margin-left:8px;}
.u-tools{display:flex;flex-wrap:wrap;margin:16px -8px 0;}
.u-tool{display:block;width:calc(25% - 16px);margin:8px;padding:14px 16px;border:1px solid #eee;border-radius:4px;background:#fff;box-sizing:border-box;}
.u-tool:hover{border-color:#f2003d;box-shadow:0 2px 10px rgba(242,0,61,.12);}
.u-ico{display:inline-block;width:36px;height:36px;line-height:36px;text-align:center;border-radius:50%;background:#f2003d;color:#fff;font-size:16px;margin-right:10px;vertical-align:middle;}
.u-ico.c2{background:#f56c6c}.u-ico.c3{background:#e6a23c}.u-ico.c4{background:#67c23a}
.u-ico.c5{background:#409eff}.u-ico.c6{background:#9a6ee0}
.u-name{display:inline-block;font-size:16px;color:#333;font-weight:bold;vertical-align:middle;}
.u-tool:hover .u-name{color:#f2003d;}
.u-desc{display:block;margin:8px 0 0 46px;font-size:13px;color:#888;line-height:1.7;}
.u-tool.soon{opacity:.55}
.u-note{margin-top:20px;padding:16px 20px;background:#fff;border:1px dashed #e6e6e6;border-radius:6px;font-size:13px;color:#888;line-height:1.9;}
@media screen and (max-width:724px){.u-tool{width:calc(50% - 16px);}.u-section{padding:16px 14px 18px;}}

/* ================= 工具结果页增强（tr-*） ================= */
/* 结论卡 */
.tr-res{margin-top:20px;background:#fff;border-radius:8px;box-shadow:0 4px 20px rgba(31,35,41,.07);overflow:hidden;}
.tr-head{display:flex;align-items:center;gap:24px;padding:28px 30px 26px;border-bottom:1px solid #f3eef0;background:linear-gradient(135deg,#fff1f4 0%,#fff 58%);position:relative;}
.tr-head:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#f2003d;}
.tr-head-main{flex:1 1 auto;min-width:0;}
.tr-badge{display:inline-block;padding:3px 14px;border-radius:2px;background:#f2003d;color:#fff;font-size:14px;line-height:1.7;}
.tr-head h2{margin:12px 0 0;font-size:26px;line-height:1.5;color:#1f2329;font-weight:bold;word-break:break-all;}
.tr-lead{margin:10px 0 0;font-size:15px;line-height:1.9;color:#5b6169;}
.tr-score{flex:0 0 124px;text-align:center;padding-left:22px;border-left:1px dashed #f0d9de;}
.tr-ring{width:92px;height:92px;margin:0 auto;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:conic-gradient(#f2003d calc(var(--p,0) * 1%),#f7e3e8 0);position:relative;}
.tr-ring:before{content:"";position:absolute;left:8px;top:8px;right:8px;bottom:8px;background:#fff;border-radius:50%;}
.tr-ring span,.tr-ring small{position:relative;z-index:1;}
.tr-ring span{font-size:28px;line-height:1.1;font-weight:bold;color:#f2003d;}
.tr-ring small{font-size:12px;color:#8a8f99;margin-top:2px;}
.tr-score-lb{margin-top:8px;font-size:12px;color:#8a8f99;}
.tr-mid .tr-badge{background:#e6a23c;}
.tr-mid .tr-ring{background:conic-gradient(#e6a23c calc(var(--p,0) * 1%),#f8eddc 0);}
.tr-mid .tr-ring span{color:#e6a23c;}
.tr-bad .tr-badge{background:#6b7280;}
.tr-bad .tr-ring{background:conic-gradient(#6b7280 calc(var(--p,0) * 1%),#eceff3 0);}
.tr-bad .tr-ring span{color:#6b7280;}
.tr-neutral .tr-head{background:linear-gradient(135deg,#f4f7fb 0%,#fff 58%);}
.tr-neutral .tr-head:before{background:#4b6a92;}
.tr-neutral .tr-badge{background:#4b6a92;}

/* 关键指标 */
.tr-kpis{display:flex;flex-wrap:wrap;gap:12px;padding:22px 30px 0;}
.tr-kpi{flex:1 1 180px;min-width:0;padding:14px 16px 13px;background:#fafbfc;border:1px solid #eef0f4;border-top:2px solid #f2c2cc;border-radius:6px;}
.tr-kpi-k{display:block;font-size:12px;color:#8a8f99;line-height:1.6;}
.tr-kpi-v{display:block;margin-top:4px;font-size:17px;color:#1f2329;font-weight:bold;line-height:1.5;word-break:break-all;}

/* 区块 */
.tr-block{padding:24px 30px 0;}
.tr-block .tr-t{margin:0 0 14px;padding-left:11px;border-left:3px solid #f2003d;font-size:17px;line-height:1.3;color:#1f2329;font-weight:bold;}
.tr-block .tr-t small{font-size:12px;color:#8a8f99;font-weight:normal;margin-left:8px;}

/* 明细表 */
.tr-table{width:100%;border-collapse:collapse;font-size:14px;border:1px solid #f0f2f5;border-radius:6px;overflow:hidden;}
.tr-table th{width:32%;padding:12px;text-align:left;font-weight:normal;color:#8a8f99;background:#fafbfc;border-bottom:1px solid #f0f2f5;vertical-align:top;line-height:1.8;}
.tr-table td{padding:12px;color:#1f2329;border-bottom:1px solid #f0f2f5;vertical-align:top;line-height:1.8;word-break:break-all;}
.tr-table tbody tr:nth-child(even) td{background:#fcfdfe;}
.tr-table tbody tr:last-child td,.tr-table tbody tr:last-child th{border-bottom:0;}
.tr-table tr:hover td{background:#fff8fa;}


/* 兼容原有附表样式（.kv / .sub / .yiji / .chip） */
.tr-res .kv{width:100%;border-collapse:collapse;font-size:14px;}
.tr-res .kv td{padding:10px 12px;border-bottom:1px solid #f0f2f5;color:#1f2329;line-height:1.8;vertical-align:top;}
.tr-res .kv td:first-child{width:32%;color:#8a8f99;}
.tr-res .sub{margin:18px 0 8px;font-size:16px;color:#1f2329;font-weight:bold;}
.tr-res .yiji{display:flex;flex-wrap:wrap;gap:18px;margin:4px 0 0;}
.tr-res .yiji>div{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.tr-res .yiji b{flex:0 0 2em;font-weight:600;color:#c4002f;}
.tr-res .yiji .no b{color:#5b6169;}
.tr-res .chip{display:inline-block;padding:3px 10px;border-radius:4px;font-size:13px;background:#fff1f3;color:#c4002f;}
.tr-res .yiji .no .chip{background:#f2f4f7;color:#5b6169;}

/* 解读 */
.tr-read p{margin:0 0 12px;font-size:15px;line-height:2;color:#3d434b;text-align:justify;}
.tr-read p:last-child{margin-bottom:0;}

/* 建议 */
.tr-adv ul{margin:0;padding:0;list-style:none;}
.tr-adv li{position:relative;padding:0 0 0 20px;margin:0 0 10px;font-size:15px;line-height:1.9;color:#3d434b;}
.tr-adv li:last-child{margin-bottom:0;}
.tr-adv li:before{content:"";position:absolute;left:2px;top:11px;width:6px;height:6px;border-radius:50%;background:#f2003d;}

/* 测算条件 */
.tr-tags{display:flex;flex-wrap:wrap;gap:8px;}
.tr-tag{display:inline-block;padding:5px 12px;background:#fafbfc;border:1px solid #eef0f4;border-radius:4px;font-size:13px;color:#5b6169;}

/* 相关工具 */
.tr-links{display:flex;flex-wrap:wrap;gap:8px;}
.tr-links a{display:inline-block;padding:7px 14px;background:#f7f7f8;border-radius:4px;font-size:14px;color:#4b5158;}
.tr-links a:hover{background:#f2003d;color:#fff;}
.tr-links a.tr-link-all{background:#fff1f3;color:#c4002f;}

/* 底部动作 */
.tr-foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:22px;padding:18px 30px 24px;border-top:1px solid #f3eef0;background:#fcfcfd;}
.tr-btn{display:inline-block;height:40px;line-height:40px;padding:0 26px;background:#f2003d;color:#fff;font-size:15px;border-radius:4px;}
.tr-btn:hover{background:#d20041;color:#fff;}
.tr-btn-ghost{background:#fff;color:#4b5158;border:1px solid #e1e4e9;}
.tr-btn-ghost:hover{background:#f7f8fa;color:#f2003d;border-color:#f2b8c4;}

/* 表单头部 */
.tr-form-head{margin:0 0 18px;padding:0 0 14px;border-bottom:1px dashed #eef0f4;}
.tr-form-head h2{margin:0;font-size:19px;color:#1f2329;font-weight:bold;line-height:1.4;}
.tr-form-head p{margin:8px 0 0;font-size:13px;color:#8a8f99;line-height:1.8;}

@media screen and (max-width:724px){
  .tr-head{flex-wrap:wrap;gap:14px;padding:20px 18px 18px;}
  .tr-head h2{font-size:21px;}
  .tr-score{flex:1 1 auto;width:100%;padding:12px 0 0;border-left:0;border-top:1px dashed #f0d9de;display:flex;align-items:center;gap:12px;text-align:left;}
  .tr-score-num{font-size:28px;}
  .tr-score-bar{flex:1;margin:0;}
  .tr-score-lb{flex:0 0 auto;}
  .tr-kpis{padding:16px 18px 0;gap:8px;}
  .tr-kpi{flex:1 1 calc(50% - 8px);padding:10px 12px;}
  .tr-kpi-v{font-size:15px;}
  .tr-block{padding:18px 18px 0;}
  .tr-block .tr-t{font-size:16px;}
  .tr-table th{width:40%;padding:9px 10px;}
  .tr-table td{padding:9px 10px;font-size:13.5px;}
  .tr-read p,.tr-adv li{font-size:14px;line-height:1.9;}
  .tr-foot{padding:16px 18px 20px;}
  .tr-btn{height:38px;line-height:38px;padding:0 18px;font-size:14px;}
}


/* ================= 第二轮增强：宜忌 / 问答 / 移动端 ================= */
/* 宜忌双列胶囊 */
.tr-res .yiji{display:flex;flex-wrap:wrap;gap:12px;margin:0;}
.tr-res .yiji>div{flex:1 1 280px;min-width:0;align-items:flex-start;align-content:flex-start;padding:12px 14px;
  background:#fff8f9;border:1px solid #ffe1e7;border-radius:6px;gap:8px 6px;}
.tr-res .yiji .no{background:#f7f8fa;border-color:#eceef2;}
.tr-res .yiji b{flex:0 0 auto;min-width:26px;padding:2px 8px;border-radius:3px;background:#f2003d;color:#fff;
  font-size:13px;font-weight:normal;text-align:center;line-height:1.6;}
.tr-res .yiji .no b{background:#8a8f99;color:#fff;}
.tr-res .yiji .chip{background:#fff;border:1px solid #ffd6df;color:#c4002f;font-size:13px;padding:3px 10px;border-radius:12px;}
.tr-res .yiji .no .chip{background:#fff;border-color:#e2e6ec;color:#5b6169;}

/* 常见问题卡片 */
.tr-qa{display:flex;flex-wrap:wrap;gap:12px;}
.tr-qa-item{flex:1 1 calc(50% - 6px);min-width:0;padding:15px 16px;background:#fafbfc;border:1px solid #eef0f4;border-radius:6px;}
.tr-qa-q{position:relative;margin:0;padding-left:28px;font-size:15px;font-weight:bold;color:#1f2329;line-height:1.7;}
.tr-qa-q:before{content:"问";position:absolute;left:0;top:2px;width:19px;height:19px;line-height:19px;text-align:center;
  border-radius:50%;background:#f2003d;color:#fff;font-size:11px;font-weight:normal;}
.tr-qa-a{margin:8px 0 0;font-size:14px;line-height:1.95;color:#5b6169;text-align:justify;}

/* 附表内的原有表格也统一斑马纹 */
.tr-extra .kv tr:nth-child(even) td{background:#fcfdfe;}
.tr-extra .kv td{padding:10px 12px;border-bottom:1px solid #f0f2f5;line-height:1.8;vertical-align:top;}

/* ================= 第三轮：分区层次与移动端卡片化 ================= */
/* 区块之间加细分隔，视觉上像报纸栏目 */
.tr-res .tr-block+.tr-block{margin-top:22px;padding-top:22px;border-top:1px dashed #f1e6e9;}
.tr-res .tr-head+.tr-block{border-top:0;margin-top:0;padding-top:22px;}
.tr-res .tr-t{display:flex;align-items:center;gap:8px;padding-left:0;border-left:0;}
.tr-res .tr-t:before{content:"";flex:0 0 4px;width:4px;height:15px;border-radius:2px;background:#f2003d;}
.tr-res .tr-t small{margin-left:auto;}

/* 关键指标卡片悬停与数值强调 */
.tr-kpi{transition:border-color .15s,box-shadow .15s,transform .15s;}
.tr-kpi:hover{border-color:#f2c2cc;box-shadow:0 4px 14px rgba(242,0,61,.08);transform:translateY(-1px);}
.tr-kpi-v{font-variant-numeric:tabular-nums;}

/* 明细表：首列做成标签块，长表更好扫读 */
.tr-table th{position:relative;}
.tr-table tbody tr:hover th{background:#fff4f6;color:#c4002f;}

/* 附表（.kv）同样给标签底色，避免整片白 */
.tr-extra .kv td:first-child,.tr-res .kv td:first-child{background:#fafbfc;}

/* 问答卡片悬停 */
.tr-qa-item{transition:border-color .15s,background .15s;}
.tr-qa-item:hover{border-color:#f5c9d3;background:#fffafb;}

@media screen and (max-width:724px){
  /* 明细表转卡片：每行独立成块，标签在上、内容在下 */
  .tr-table,.tr-table tbody,.tr-table tr,.tr-table th,.tr-table td{display:block;width:100%;box-sizing:border-box;}
  .tr-table{border:0;border-radius:0;}
  .tr-table tr{margin:0 0 10px;padding:10px 12px;border:1px solid #f0f2f5;border-radius:6px;background:#fff;}
  .tr-table tbody tr:nth-child(even) td{background:transparent;}
  .tr-table th{width:auto;padding:0 0 2px;background:transparent;border:0;font-size:12px;color:#9aa0a8;}
  .tr-table td{padding:0;border:0;font-size:14px;line-height:1.85;}
  .tr-table tbody tr:hover td{background:transparent;}
  .tr-table tbody tr:last-child th{border-bottom:0;}

  /* 附表同样卡片化 */
  .tr-extra .kv,.tr-extra .kv tbody,.tr-extra .kv tr,.tr-extra .kv td,.tr-res .kv,.tr-res .kv tbody,.tr-res .kv tr,.tr-res .kv td{display:block;width:100%;box-sizing:border-box;}
  .tr-extra .kv tr,.tr-res .kv tr{margin:0 0 8px;padding:8px 10px;border:1px solid #f0f2f5;border-radius:6px;}
  .tr-extra .kv td:first-child,.tr-res .kv td:first-child{width:auto;padding:0 0 2px;background:transparent;border:0;font-size:12px;}
  .tr-extra .kv td,.tr-res .kv td{padding:0;border:0;font-size:14px;}

  .tr-kpi{flex:1 1 calc(50% - 8px);}
  .tr-kpi:hover{transform:none;}
  .tr-tags{gap:6px;}
  .tr-tag{font-size:12px;padding:4px 10px;}

  .tr-ring{width:74px;height:74px;}
  .tr-ring span{font-size:22px;}
  .tr-score{display:flex;align-items:center;gap:14px;text-align:left;}
  .tr-score-lb{margin-top:0;}
  .tr-qa-item{flex:1 1 100%;padding:13px 14px;}
  .tr-qa-q{font-size:14.5px;}
  .tr-qa-a{font-size:13.5px;}
  .tr-res .yiji>div{flex:1 1 100%;padding:10px 12px;}
  .tr-qa-item:hover{background:#fafbfc;}
}
