/* ith- 主题样式 · IT之家型科技快讯门户风格 · 欧博ABG资讯站 wwwabg333.net.cn */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 15px/1.8 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #262626;
  background: #f4f5f7;
}
a { color: #262626; text-decoration: none; }
a:hover { color: #e03a2d; }
img { max-width: 100%; height: auto; display: block; }

/* 顶栏工具条 */
.ith-toolbar { background: #1b1b1f; color: #b9b9c3; font-size: 13px; }
.ith-toolbar .ith-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.ith-toolbar a { color: #c8c8d2; margin-right: 14px; }
.ith-toolbar a:hover { color: #ff6a5f; }
.ith-toolbar .ith-tool-r a { margin-right: 0; margin-left: 14px; }

/* 品牌行 */
.ith-head { background: #fff; border-bottom: 1px solid #ececec; }
.ith-head .ith-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.ith-brand { font-size: 26px; font-weight: 900; letter-spacing: .5px; color: #1b1b1f; }
.ith-brand b { color: #e03a2d; }
.ith-brand em { font-style: normal; font-size: 13px; font-weight: 400; color: #9aa0a6; margin-left: 10px; letter-spacing: 0; }
.ith-head-date { font-size: 13px; color: #9aa0a6; text-align: right; }
.ith-head-date span { display: block; }

/* 频道导航 */
.ith-nav { background: #fff; border-bottom: 2px solid #e03a2d; position: sticky; top: 0; z-index: 90; }
.ith-nav .ith-wrap { display: flex; flex-wrap: wrap; align-items: center; }
.ith-nav a { display: inline-block; padding: 12px 13px; font-size: 15px; white-space: nowrap; }
.ith-nav a.ith-on { color: #fff; background: #e03a2d; }
.ith-nav a:hover { color: #e03a2d; }
.ith-nav a.ith-on:hover { color: #fff; }

/* 热搜行 */
.ith-hotwords { background: #fff; border-bottom: 1px solid #ececec; }
.ith-hotwords .ith-wrap { display: flex; align-items: center; padding: 8px 0; font-size: 13px; }
.ith-hotwords b { color: #e03a2d; flex: 0 0 auto; margin-right: 6px; }
.ith-hotwords a { color: #595959; margin-right: 12px; white-space: nowrap; }
.ith-hotwords a:hover { color: #e03a2d; }

/* 布局容器 */
.ith-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ith-main { padding: 18px 0 30px; }
.ith-col2 { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.ith-rail { display: flex; flex-direction: column; gap: 18px; }

/* 焦点区 */
.ith-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.ith-fcard { background: #fff; border: 1px solid #ececec; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.ith-fcard img { width: 100%; aspect-ratio: 1200/630; object-fit: cover; }
.ith-fcard .ith-fbody { padding: 14px 16px 16px; flex: 1; }
.ith-fcard h3 { font-size: 19px; line-height: 1.45; margin-bottom: 6px; }
.ith-fcard p { font-size: 13.5px; color: #6b7075; }

/* 通用卡片 */
.ith-card { background: #fff; border: 1px solid #ececec; border-radius: 6px; margin-bottom: 18px; }
.ith-card-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; }
.ith-card-h h2 { font-size: 18px; border-left: 4px solid #e03a2d; padding-left: 10px; line-height: 1.3; }
.ith-card-h .ith-more { font-size: 13px; color: #9aa0a6; }
.ith-card-b { padding: 16px; }

/* 热榜三 tab */
.ith-hot-tabs { display: flex; border-bottom: 1px solid #ececec; }
.ith-hot-tabs button { flex: 1; border: 0; background: transparent; font-size: 15px; padding: 10px 0; cursor: pointer; color: #595959; }
.ith-hot-tabs button.ith-tab-on { color: #e03a2d; font-weight: 700; border-bottom: 2px solid #e03a2d; }
.ith-hot-list { display: none; padding: 6px 16px 12px; }
.ith-hot-list.ith-tab-show { display: block; }
.ith-hot-list ol { list-style: none; }
.ith-hot-list li { display: flex; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed #f2f2f2; }
.ith-hot-list li:last-child { border-bottom: 0; }
.ith-hot-list i { font-style: normal; font-size: 14px; width: 22px; color: #9aa0a6; }
.ith-hot-list li:nth-child(-n+3) i { color: #e03a2d; font-weight: 700; }
.ith-hot-list a { flex: 1; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 五步流程 */
.ith-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ith-step { border: 1px solid #f0f0f0; border-radius: 6px; padding: 12px; position: relative; background: #fafafa; }
.ith-step b { display: inline-block; min-width: 26px; height: 26px; line-height: 26px; text-align: center; background: #e03a2d; color: #fff; border-radius: 50%; font-size: 14px; margin-bottom: 8px; }
.ith-step h3 { font-size: 15px; margin-bottom: 4px; }
.ith-step p { font-size: 13px; color: #6b7075; line-height: 1.6; }

/* 标题流列表 */
.ith-stream { padding: 4px 16px; }
.ith-stream .ith-item { padding: 13px 0; border-bottom: 1px solid #f2f2f2; }
.ith-stream .ith-item:last-child { border-bottom: 0; }
.ith-item h3 { font-size: 17px; line-height: 1.5; margin-bottom: 5px; }
.ith-item h3 a:hover { color: #e03a2d; }
.ith-item p { font-size: 13.5px; color: #6b7075; line-height: 1.7; }
.ith-item .ith-meta { font-size: 12.5px; color: #b0b4b9; margin-top: 4px; }
.ith-item .ith-meta em { font-style: normal; color: #e03a2d; margin-right: 10px; }

/* 频道板块 */
.ith-chgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.ith-chblock { background: #fff; border: 1px solid #ececec; border-radius: 6px; overflow: hidden; }
.ith-chblock .ith-card-h { border-bottom: 1px solid #f0f0f0; }
.ith-chblock .ith-chbody { padding: 8px 16px 14px; }
.ith-chblock .ith-chdesc { font-size: 13px; color: #9aa0a6; padding-bottom: 6px; border-bottom: 1px dashed #f0f0f0; margin-bottom: 6px; }
.ith-chblock ul { list-style: none; }
.ith-chblock li { padding: 4px 0; }
.ith-chblock li a { font-size: 14.5px; }
.ith-chblock li a::before { content: "▪"; color: #e03a2d; margin-right: 6px; }

/* FAQ 折叠 */
.ith-faq details { border: 1px solid #f0f0f0; border-radius: 6px; margin-bottom: 10px; background: #fafafa; }
.ith-faq summary { cursor: pointer; padding: 11px 14px; font-size: 15px; font-weight: 600; list-style: none; }
.ith-faq summary::before { content: "Q "; color: #e03a2d; font-weight: 900; }
.ith-faq summary::-webkit-details-marker { display: none; }
.ith-faq details[open] summary { border-bottom: 1px solid #f0f0f0; }
.ith-faq .ith-a { padding: 11px 14px; font-size: 14px; color: #4a4a4a; }

/* 内页文章区 */
.ith-article { background: #fff; border: 1px solid #ececec; border-radius: 6px; padding: 26px 30px; }
.ith-article h1 { font-size: 26px; line-height: 1.4; margin-bottom: 10px; }
.ith-article .ith-lead { font-size: 15px; color: #595959; background: #fafafa; border-left: 4px solid #e03a2d; padding: 10px 14px; margin-bottom: 18px; }
.ith-article figure { margin-bottom: 18px; }
.ith-article figcaption { font-size: 12.5px; color: #9aa0a6; text-align: center; margin-top: 6px; }
.ith-article h2 { font-size: 20px; margin: 26px 0 12px; padding-left: 10px; border-left: 4px solid #e03a2d; line-height: 1.4; }
.ith-article h3 { font-size: 16.5px; margin: 16px 0 8px; }
.ith-article p { margin-bottom: 12px; text-align: justify; }
.ith-article ul, .ith-article ol { margin: 0 0 12px 22px; }
.ith-article li { margin-bottom: 6px; }
.ith-article .ith-note { background: #fff8f0; border: 1px solid #ffe3c2; border-radius: 6px; padding: 12px 16px; font-size: 14px; color: #8a5a1a; margin: 14px 0; }

/* 面包屑 */
.ith-crumb { font-size: 13px; color: #9aa0a6; padding: 10px 0 6px; }
.ith-crumb a { color: #6b7075; }
.ith-crumb a:hover { color: #e03a2d; }
.ith-crumb span { margin: 0 6px; color: #d0d3d6; }

/* 侧栏 */
.ith-rail .ith-card-b { padding: 12px 16px; }
.ith-rail ul { list-style: none; }
.ith-rail li { padding: 6px 0; border-bottom: 1px dashed #f2f2f2; }
.ith-rail li:last-child { border-bottom: 0; }
.ith-rail li a { font-size: 14px; }
.ith-rail li i { font-style: normal; color: #e03a2d; margin-right: 6px; }
.ith-rail .ith-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.ith-rail .ith-tagcloud a { font-size: 13px; background: #f5f5f7; border: 1px solid #ececec; border-radius: 20px; padding: 3px 12px; color: #595959; }
.ith-rail .ith-tagcloud a:hover { background: #e03a2d; border-color: #e03a2d; color: #fff; }

/* 快讯流与八件事 */
.ith-fnews { list-style: none; }
.ith-fnews li { padding: 5px 0; border-bottom: 1px dashed #f2f2f2; font-size: 14px; }
.ith-fnews li:last-child { border-bottom: 0; }
.ith-fnews i { font-style: normal; color: #e03a2d; margin-right: 10px; font-size: 13px; }
.ith-8list { list-style: none; counter-reset: ith8; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 26px; }
.ith-8list li { padding: 6px 0 6px 34px; position: relative; font-size: 14.5px; border-bottom: 1px dashed #f2f2f2; }
.ith-8list li::before { counter-increment: ith8; content: counter(ith8); position: absolute; left: 0; top: 6px; width: 24px; height: 24px; line-height: 24px; text-align: center; background: #fdebea; color: #e03a2d; border-radius: 50%; font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .ith-8list { grid-template-columns: 1fr; } }

/* 页脚 */
.ith-foot { background: #1b1b1f; color: #a3a3ad; margin-top: 30px; font-size: 13px; }
.ith-foot .ith-wrap { padding: 26px 16px; }
.ith-foot .ith-foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 12px; }
.ith-foot .ith-foot-links a { color: #c8c8d2; }
.ith-foot .ith-foot-links a:hover { color: #ff6a5f; }
.ith-foot .ith-slogan { color: #e8e8ee; font-size: 14px; margin-bottom: 10px; }
.ith-foot .ith-slogan b { color: #ff6a5f; }
.ith-foot .ith-trust { background: #232329; border-radius: 6px; padding: 10px 14px; margin-bottom: 12px; }
.ith-foot .ith-trust b { color: #ffd9d6; }
.ith-foot .ith-trust a { color: #e0a9a4; margin-right: 16px; }
.ith-foot p { margin-bottom: 6px; line-height: 1.8; }
.ith-foot .ith-copy { color: #787883; }

/* 返回顶部与按钮 */
.ith-btn { display: inline-block; background: #e03a2d; color: #fff !important; border-radius: 4px; padding: 8px 18px; font-size: 14px; }
.ith-btn:hover { background: #c42f24; }
.ith-btn.ith-ghost { background: #f5f5f7; color: #595959 !important; border: 1px solid #ececec; }
.ith-btn.ith-ghost:hover { border-color: #e03a2d; color: #e03a2d !important; }

/* 焦点区大字标题（首页） */
.ith-hero { background: #fff; border: 1px solid #ececec; border-radius: 6px; padding: 26px 30px; margin-bottom: 18px; display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: center; }
.ith-hero h1 { font-size: 30px; line-height: 1.4; margin-bottom: 12px; }
.ith-hero h1 b { color: #e03a2d; }
.ith-hero .ith-hero-lead { font-size: 15px; color: #4a4a4a; margin-bottom: 16px; }
.ith-hero img { border-radius: 6px; }

@media (max-width: 900px) {
  .ith-col2 { grid-template-columns: 1fr; }
  .ith-focus { grid-template-columns: 1fr; }
  .ith-chgrid { grid-template-columns: 1fr; }
  .ith-steps { grid-template-columns: 1fr; }
  .ith-hero { grid-template-columns: 1fr; }
  .ith-nav .ith-wrap { flex-wrap: wrap; }
  .ith-nav a { padding: 9px 10px; font-size: 14px; }
}
