/* 技术专栏 —— 与主站配色一致（主色 #fb6638），只作用于 .tech-* 类 */
/* hero 用深色：主站 logo 与导航是白字（原设计盖在深色 banner 上），浅底会看不见 */
.tech-hero{background:#1b2a52;background-image:linear-gradient(135deg,#1b2a52 0%,#2b3a70 55%,#3a2a5e 100%);
  padding:120px 0 56px;}
.tech-hero-sm{padding:112px 0 40px;}
.tech-hero-in{width:1200px;max-width:92%;margin:0 auto;}
.tech-hero h1{font-size:32px;line-height:1.3;color:#fff;font-weight:700;margin:0 0 12px;}
.tech-hero p{font-size:15px;color:rgba(255,255,255,.72);line-height:1.8;margin:0;max-width:790px;}
.tech-wrap{width:1200px;max-width:92%;margin:0 auto;padding:26px 0 60px;}
.tech-crumb{font-size:13px;color:#999;margin-bottom:26px;}
.tech-crumb a{color:#999;}
.tech-crumb a:hover{color:#fb6638;}

/* 列表 */
.tech-listhead{display:flex;justify-content:space-between;font-size:13px;color:#aaa;
  padding-bottom:14px;border-bottom:1px solid #f0f0f0;}
.tech-list{display:flex;flex-direction:column;gap:0;}
.tech-card{display:block;padding:28px 0;border-bottom:1px solid #f0f0f0;transition:padding-left .2s;}
.tech-card:hover{padding-left:6px;}
.tech-card h2{font-size:20px;line-height:1.5;color:#1a1a1a;font-weight:600;margin:0 0 10px;}
.tech-card:hover h2{color:#fb6638;}
.tech-card p{font-size:14px;line-height:1.85;color:#888;margin:0;max-width:900px;}
.tech-meta{font-size:12px;color:#bbb;margin-top:10px;}
.tech-page{margin-top:34px;font-size:14px;}
.tech-page a,.tech-page span{display:inline-block;margin:0 4px;padding:4px 12px;border:1px solid #eee;border-radius:2px;color:#666;}
.tech-page span.current,.tech-page a:hover{border-color:#fb6638;background:#fb6638;color:#fff;}

/* 详情 */
.tech-art{max-width:860px;}
.tech-title{font-size:28px;line-height:1.45;color:#1a1a1a;font-weight:700;margin:0 0 28px;}
.tech-body{font-size:16px;line-height:1.95;color:#333;}
.tech-body p{margin:0 0 20px;}
.tech-body h2{font-size:21px;line-height:1.5;color:#1a1a1a;font-weight:600;margin:44px 0 18px;padding-left:12px;border-left:3px solid #fb6638;}
.tech-body h3{font-size:17px;color:#1a1a1a;font-weight:600;margin:30px 0 14px;}
.tech-body h4{font-size:16px;color:#1a1a1a;margin:24px 0 12px;}
.tech-body ul,.tech-body ol{margin:0 0 20px;padding-left:26px;}
.tech-body li{margin-bottom:10px;line-height:1.9;}
.tech-body strong{color:#1a1a1a;font-weight:600;}
.tech-body a{color:#fb6638;border-bottom:1px solid rgba(251,102,56,.35);}
.tech-body img{max-width:100%;height:auto;display:block;margin:24px 0;}
.tech-body blockquote{margin:24px 0;padding:14px 20px;background:#fafafa;border-left:3px solid #ddd;color:#666;font-size:15px;}
.tech-body hr{border:0;border-top:1px solid #eee;margin:36px 0;}

/* 代码 */
.tech-body pre{background:#1f2430;color:#e6e9ef;border-radius:6px;padding:18px 20px;overflow-x:auto;margin:0 0 22px;font-size:13.5px;line-height:1.75;}
.tech-body pre code{background:none;color:inherit;padding:0;font-size:inherit;white-space:pre;}
.tech-body code{background:#f4f4f6;color:#c7254e;padding:2px 6px;border-radius:3px;font-size:14px;
  font-family:Menlo,Consolas,"Liberation Mono",monospace;word-break:break-word;}
.tech-body pre code code{background:none;}

/* 表格 */
.tech-body table{width:100%;border-collapse:collapse;margin:0 0 24px;font-size:14px;display:block;overflow-x:auto;}
.tech-body th,.tech-body td{border:1px solid #e8e8e8;padding:10px 14px;text-align:left;line-height:1.7;}
.tech-body th{background:#fafafa;font-weight:600;color:#1a1a1a;white-space:nowrap;}
.tech-body tr:nth-child(even) td{background:#fcfcfc;}

/* 关键词紧贴标题下方，不落到文末（文末留给内链区）。
   {content:tags} 输出的是纯文本（逗号分隔、不带 <a>），所以胶囊样式直接作用在容器上 */
.tech-tags{display:inline-block;margin:-4px 0 30px;padding:3px 12px;background:#f4f5f8;
  border-radius:12px;font-size:12.5px;line-height:1.6;color:#8b93a1;}

.tech-rel{margin-top:52px;padding-top:28px;border-top:1px solid #eee;}
.tech-rel-tit{font-size:15px;color:#1a1a1a;font-weight:600;margin-bottom:18px;
  padding-left:11px;border-left:3px solid #fb6638;line-height:1.3;}
.tech-rel a{display:block;font-size:14.5px;line-height:1.9;color:#5a6272;
  text-decoration:none;padding:5px 0 5px 14px;border-bottom:1px dashed #f2f2f2;}
.tech-rel a:last-of-type{border-bottom:0;}
.tech-rel a::before{content:"·";color:#c9ccd4;margin-right:8px;margin-left:-12px;}
.tech-rel a:hover{color:#fb6638;}

@media (max-width:780px){
  .tech-hero{padding:96px 0 30px;}
  .tech-hero h1{font-size:24px;}
  .tech-title{font-size:22px;}
  .tech-body{font-size:15px;}
  /* 移动端代码块横向滚动：右侧加渐隐，暗示「还有内容」且可滑动。
     scrollbar 隐藏后没有视觉线索，用户会以为代码被截断了。 */
  .tech-body pre{font-size:12.5px;padding:14px 16px;
    background-image:linear-gradient(to left,#1f2430 0,#1f2430 22px,rgba(31,36,48,0) 22px);
    background-repeat:no-repeat;background-position:right center;
    -webkit-overflow-scrolling:touch;}
  .tech-body pre::-webkit-scrollbar{height:4px;}
  .tech-body pre::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:2px;}
  /* 主站右侧固定悬浮客服按钮：right:16px + width:64px（footer.html 内联），占掉右侧 80px。
     窄屏下不再居中限宽，改成「贴左 + 右侧留 96px」，正文右边缘稳定落在按钮左侧 */
  .tech-wrap{width:auto;max-width:none;margin:0;padding:20px 96px 44px 16px;}
  .tech-hero-in{width:auto;max-width:none;margin:0;padding:0 96px 0 16px;}
}
