/* ==========================================================================
   CHINA TOP CABLE — Theme Custom CSS（Porto css-code）
   工业硬朗 Industrial ｜ 批次 B（2026-09-28）
   --------------------------------------------------------------------------
   替换对象：原「科技蓝」版（页脚 #0e2a4e / 首页 #1668ff）
   回滚：fixbackups/ctc-b2-*/ 里的 porto_settings.json，或 /root/ctc-csscode-backup-*.css
   WCAG AA：#ff6a13 不做实心底/白底文字（2.87:1）→ 白底文字用 #c74a00（4.76:1）；
           实心 CTA 一律 #c74a00 + 白字（4.76:1），hover #a83e00（6.26:1）；
           页脚深底用 #ff6a13（5.99:1）。亮橙只做装饰（描边/图标/角标）
   2026-09-29：实心 CTA 由「#ff6a13 + 深字」统一为「#c74a00 + 白字」，
              与 porto-child/ctc-industrial-porto.css 的分工保持一致。
   ========================================================================== */

/* --------------------------------------------------------------------------
   A. 页脚：深蓝 → 深钢灰 + 橙
   -------------------------------------------------------------------------- */
.footer-wrapper .footer-1{background:#1a1e23;}
.footer-1 .footer-main{padding:56px 0 44px;}
.footer-1 .footer-main .widget{margin-bottom:0;}
.footer-1 .footer-main .widget-title{color:#fff;font-size:15px;font-weight:600;letter-spacing:.3px;margin:0 0 18px;padding:0;border:0;text-transform:none;}
.footer-1 .footer-main .textwidget{color:#9aa3ad;font-size:13px;line-height:1.95;}
.footer-1 .footer-main .textwidget p{margin-bottom:12px;}
.footer-1 .footer-main .textwidget strong{color:#e8ebee;}
.footer-1 .footer-main ul{margin:0;padding:0;list-style:none;}
.footer-1 .footer-main ul li{list-style:none;margin:0;padding:0;border:0;font-size:13px;line-height:2;color:#9aa3ad;}
.footer-1 .footer-main a{color:#9aa3ad;text-decoration:none;transition:color .2s;}
.footer-1 .footer-main a:hover{color:#ff6a13;}
.footer-1 .footer-facts li{padding-left:15px !important;position:relative;}
.footer-1 .footer-facts li:before{content:"";position:absolute;left:1px;top:12px;width:5px;height:5px;border-radius:0;background:#ff6a13;}
.footer-1 .footer-contact i{display:inline-block;width:16px;color:#ff6a13;}
.footer-1 .footer-cta{display:inline-block;margin-top:14px;padding:11px 24px;background:#c74a00;color:#fff !important;border-radius:3px;font-size:13px;font-weight:700;letter-spacing:.2px;transition:background .2s;}
.footer-1 .footer-cta:hover{background:#a83e00;color:#fff !important;}
.footer-1 .footer-bottom{background-color:#15181d;}
.footer-1 .footer-bottom .footer-copyright{color:#6b737d;font-size:12px;}
@media (max-width:991px){.footer-1 .footer-main{padding:36px 0 10px;}.footer-1 .footer-main .widget{margin-bottom:26px;}}

/* --------------------------------------------------------------------------
   B. 首页区块：浅蓝渐变 → 浅钢灰 + 橙；圆角 10/999px → 3px（工业几何）
   -------------------------------------------------------------------------- */
.ctc-hero{background:linear-gradient(135deg,#f4f5f7 0%,#fafbfc 52%,#eef0f3 100%);padding:56px 0 54px;border-bottom:1px solid #d3d8de;}
.ctc-wrap{max-width:1320px;margin:0 auto;padding:0 20px;box-sizing:border-box;}
.ctc-hero-grid{display:flex;flex-wrap:wrap;align-items:center;gap:42px;}
.ctc-hero-copy{flex:1 1 460px;min-width:0;}
.ctc-hero-media{flex:1 1 360px;min-width:0;}
.ctc-hero-media img{width:100%;height:auto;display:block;border-radius:3px;box-shadow:0 14px 34px rgba(26,30,35,.16);}
.ctc-hero-media-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px;}
.ctc-hero-media-stats div{background:#fff;border:1px solid #d3d8de;border-radius:3px;padding:12px 6px;text-align:center;}
.ctc-hero-media-stats strong{display:block;color:#1d2329;font-size:19px;font-weight:700;line-height:1.2;}
.ctc-hero-media-stats span{display:block;color:#68737f;font-size:11px;margin-top:3px;}
.ctc-badge{display:inline-block;padding:5px 14px;border:1px solid rgba(199,74,0,.32);background:rgba(255,106,19,.08);border-radius:3px;color:#c74a00;font-size:12px;font-weight:600;letter-spacing:.4px;margin-bottom:18px;}
.ctc-hero h1{color:#1d2329;font-size:35px;line-height:1.27;font-weight:700;margin:0 0 16px;overflow-wrap:break-word;}
.ctc-lead{color:#4a5460;font-size:15px;line-height:1.75;margin:0 0 26px;}
.ctc-actions{display:flex;flex-wrap:wrap;gap:12px;}
.ctc-btn{display:inline-block;padding:13px 28px;border-radius:3px;font-size:14px;font-weight:600;text-decoration:none;transition:all .2s;}
.ctc-btn-primary{background:#c74a00;color:#fff !important;box-shadow:0 6px 16px rgba(199,74,0,.26);}
.ctc-btn-primary:hover{background:#a83e00;color:#fff !important;box-shadow:0 8px 22px rgba(199,74,0,.32);}
.ctc-btn-ghost{background:#fff;border:1px solid #1d2329;color:#1d2329 !important;}
.ctc-btn-ghost:hover{background:#f4f5f7;border-color:#c74a00;color:#c74a00 !important;}
.ctc-trust{background:#f4f5f7;border-bottom:1px solid #d3d8de;padding:17px 0;}
.ctc-trust-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;}
.ctc-trust-row span{color:#3d444e;font-size:13px;font-weight:500;display:flex;align-items:center;gap:8px;}
.ctc-trust-row i{color:#ff6a13;font-size:15px;}
.ctc-cats{padding:54px 0 32px;}
.ctc-sec-title{color:#1d2329;font-size:24px;font-weight:700;text-align:center;margin:0 0 8px;}
.ctc-sec-sub{color:#68737f;font-size:14px;text-align:center;margin:0 0 32px;}
.ctc-cats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.ctc-cat{display:block;background:#fff;border:1px solid #d3d8de;border-radius:3px;padding:24px 20px;text-decoration:none;transition:all .2s;}
.ctc-cat:hover{border-color:#ff6a13;box-shadow:0 8px 22px rgba(255,106,19,.14);transform:translateY(-2px);}
.ctc-cat i{display:block;font-size:23px;color:#ff6a13;margin-bottom:12px;}
.ctc-cat strong{display:block;color:#1d2329;font-size:15px;font-weight:600;margin-bottom:5px;}
.ctc-cat em{display:block;color:#68737f;font-size:12px;font-style:normal;}
@media (max-width:991px){
.ctc-hero{padding:40px 0 38px;}
.ctc-hero h1{font-size:26px;}
.ctc-hero-grid{gap:28px;}
.ctc-hero-media{flex:1 1 100%;}
.ctc-cats-grid{grid-template-columns:1fr 1fr;}
.ctc-trust-row{justify-content:flex-start;}
}
@media (max-width:575px){
.ctc-cats-grid{grid-template-columns:1fr;}
.ctc-hero h1{font-size:21px;}
.ctc-btn{padding:11px 18px;font-size:13px;}
.ctc-lead{font-size:14px;}
}

/* --------------------------------------------------------------------------
   C. 首页新增区块（批次 C，2026-09-28）：精选产品 / 定制能力 / CTA 收口
   -------------------------------------------------------------------------- */
.ctc-prods{padding:52px 0 16px;}
.ctc-prods .ctc-sec-title{margin-top:0;}
.ctc-mt{margin-top:52px !important;}
.ctc-oem{background:#f4f5f7;border-top:1px solid #d3d8de;border-bottom:1px solid #d3d8de;padding:52px 0;}
.ctc-oem-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.ctc-oem-item{background:#fff;border:1px solid #d3d8de;border-radius:3px;padding:26px 22px;transition:border-color .2s,box-shadow .2s;}
.ctc-oem-item:hover{border-color:#ff6a13;box-shadow:0 6px 18px rgba(255,106,19,.12);}
.ctc-oem-item i{display:block;font-size:25px;color:#ff6a13;margin-bottom:14px;}
.ctc-oem-item strong{display:block;color:#1d2329;font-size:16px;font-weight:700;margin-bottom:8px;}
.ctc-oem-item span{display:block;color:#68737f;font-size:13px;line-height:1.7;}
.ctc-cta{background:#1a1e23;padding:52px 0;border-top:3px solid #ff6a13;}
.ctc-cta-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:26px;}
.ctc-cta-copy{flex:1 1 420px;min-width:0;}
.ctc-cta h2{color:#fff;font-size:26px;font-weight:700;margin:0 0 12px;line-height:1.3;}
.ctc-cta p{color:#9aa3ad;font-size:15px;line-height:1.7;margin:0;max-width:660px;}
.ctc-cta-actions{display:flex;flex-wrap:wrap;gap:12px;flex:0 0 auto;}
.ctc-cta .ctc-btn-ghost{background:transparent;border-color:#4a5460;color:#e8ebee !important;}
.ctc-cta .ctc-btn-ghost:hover{background:#fff;border-color:#fff;color:#1a1e23 !important;}
@media (max-width:991px){
.ctc-oem-grid{grid-template-columns:1fr 1fr;}
.ctc-cta h2{font-size:22px;}
}
@media (max-width:575px){
.ctc-oem-grid{grid-template-columns:1fr;}
.ctc-cta-actions{width:100%;}
.ctc-cta-actions .ctc-btn{flex:1 1 auto;text-align:center;}
}


/* --------------------------------------------------------------------------
   D. 技术资料页（批次 C 第 2 步，2026-09-28）：OBD2 资源门户 + 引脚资料页
   适用：#7523 /obd/ 、#7407 OBD2 End Open Cable Pin Assignment
   仅在容器内做设计（不做全宽出血，避免横向溢出的老坑）
   -------------------------------------------------------------------------- */

/* --- D1. 页头卡 --- */
.ctc-doc-hero{background:linear-gradient(135deg,#f4f5f7 0%,#fafbfc 55%,#eef0f3 100%);border:1px solid #d3d8de;border-left:4px solid #ff6a13;border-radius:3px;padding:30px 32px 28px;margin:0 0 26px;}
.ctc-doc-eyebrow{display:inline-flex;align-items:center;gap:7px;color:#c74a00;font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;margin-bottom:12px;}
.ctc-doc-eyebrow i{font-size:13px;color:#ff6a13;}
.ctc-doc-hero h1{color:#1d2329;font-size:31px;line-height:1.28;font-weight:700;margin:0 0 12px;overflow-wrap:break-word;}
.ctc-doc-hero p{color:#4a5460;font-size:15px;line-height:1.75;margin:0;max-width:840px;}

/* --- D2. 锚点导航（分节替代标签页）--- */
.ctc-doc-toc{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px;}
.ctc-doc-toc a{display:inline-block;padding:9px 18px;background:#fff;border:1px solid #d3d8de;border-radius:3px;color:#3d444e !important;font-size:13px;font-weight:600;text-decoration:none;transition:all .2s;}
.ctc-doc-toc a:hover{background:#c74a00;border-color:#c74a00;color:#fff !important;}

/* --- D3. 分节与图卡 --- */
.ctc-doc-sec{margin:0 0 38px;scroll-margin-top:100px;}
.ctc-doc-sec h2{color:#1d2329;font-size:22px;font-weight:700;line-height:1.35;margin:0 0 18px;padding:0 0 11px 14px;border-bottom:1px solid #d3d8de;position:relative;}
.ctc-doc-sec h2:before{content:"";position:absolute;left:0;bottom:-1px;width:4px;height:22px;background:#ff6a13;}
.ctc-doc-sec p{color:#4a5460;font-size:15px;line-height:1.78;margin:0 0 16px;}
.ctc-doc-fig{margin:0 0 8px;padding:18px;background:#fff;border:1px solid #d3d8de;border-radius:3px;max-width:800px;box-shadow:0 2px 10px rgba(26,30,35,.05);}
.ctc-doc-fig img{display:block;max-width:100%;height:auto;margin:0 auto;}
.ctc-doc-fig figcaption{margin-top:13px;padding-top:12px;border-top:1px solid #e6e9ed;color:#68737f;font-size:13px;line-height:1.6;text-align:center;}

/* --- D4. 要点列表 --- */
.ctc-doc-list{list-style:none;margin:0;padding:0;}
.ctc-doc-list li{display:flex;gap:12px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #e6e9ed;}
.ctc-doc-list li:last-child{border-bottom:0;padding-bottom:0;}
.ctc-doc-list i{color:#ff6a13;font-size:15px;line-height:1.6;flex:0 0 auto;}
.ctc-doc-list span{color:#4a5460;font-size:14px;line-height:1.72;}
.ctc-doc-list strong{color:#1d2329;font-weight:700;}

/* --- D5. 提示条 --- */
.ctc-doc-note{display:flex;gap:13px;align-items:flex-start;background:#f4f5f7;border:1px solid #d3d8de;border-left:4px solid #ff6a13;border-radius:3px;padding:18px 22px;margin:0 0 34px;}
.ctc-doc-note i{color:#ff6a13;font-size:16px;line-height:1.65;flex:0 0 auto;}
.ctc-doc-note p{color:#4a5460;font-size:14px;line-height:1.72;margin:0;}
.ctc-doc-note a{color:#c74a00 !important;font-weight:600;text-decoration:underline;text-underline-offset:2px;}
.ctc-doc-note a:hover{color:#ff6a13 !important;}

/* --- D6. 资源卡网格（门户页）--- */
.ctc-res-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:0 0 38px;}
.ctc-res-card{display:flex;flex-direction:column;background:#fff;border:1px solid #d3d8de;border-radius:3px;padding:26px 24px 22px;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s;}
.ctc-res-card:hover{border-color:#ff6a13;box-shadow:0 8px 22px rgba(255,106,19,.14);transform:translateY(-2px);}
.ctc-res-ico{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;background:rgba(255,106,19,.1);border:1px solid rgba(199,74,0,.24);border-radius:3px;margin-bottom:16px;}
.ctc-res-ico i{font-size:19px;color:#ff6a13;}
.ctc-res-card strong{display:block;color:#1d2329;font-size:17px;font-weight:700;line-height:1.4;margin-bottom:9px;}
.ctc-res-card p{color:#4a5460;font-size:14px;line-height:1.72;margin:0 0 18px;flex:1 1 auto;}
.ctc-res-card em{display:inline-flex;align-items:center;gap:7px;color:#c74a00;font-size:13px;font-weight:700;font-style:normal;letter-spacing:.2px;}
.ctc-res-card em i{font-size:12px;transition:transform .2s;}
.ctc-res-card:hover em i{transform:translateX(4px);}

/* --- D7. 收口 CTA（复用首页 .ctc-cta 的深色语言，独立类名避免互相影响）--- */
.ctc-doc-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;background:#1a1e23;border-top:3px solid #ff6a13;border-radius:3px;padding:30px 32px;margin:0 0 10px;}
.ctc-doc-cta-txt{flex:1 1 420px;min-width:0;}
.ctc-doc-cta-txt strong{display:block;color:#fff;font-size:20px;font-weight:700;line-height:1.38;margin-bottom:10px;}
.ctc-doc-cta-txt p{color:#9aa3ad;font-size:14px;line-height:1.7;margin:0;max-width:660px;}
.ctc-doc-btn{display:inline-block;flex:0 0 auto;padding:14px 32px;background:#c74a00;border-radius:3px;color:#fff !important;font-size:14px;font-weight:700;text-decoration:none;transition:background .2s;}
.ctc-doc-btn:hover{background:#a83e00;color:#fff !important;}

/* --- D8. 响应式 --- */
@media (max-width:991px){
.ctc-doc-hero{padding:24px 22px 22px;}
.ctc-doc-hero h1{font-size:24px;}
.ctc-res-grid{grid-template-columns:1fr;}
.ctc-doc-sec h2{font-size:19px;}
.ctc-doc-cta{padding:26px 22px;}
.ctc-doc-cta-txt strong{font-size:18px;}
}
@media (max-width:575px){
.ctc-doc-hero h1{font-size:20px;}
.ctc-doc-hero p,.ctc-doc-sec p{font-size:14px;}
.ctc-doc-toc a{padding:8px 13px;font-size:12px;}
.ctc-doc-fig{padding:12px;}
.ctc-doc-cta-txt strong{font-size:16px;}
.ctc-doc-btn{width:100%;text-align:center;}
}


/* --------------------------------------------------------------------------
   E. 法律页（条款 / 隐私 / 配送）：2026-09-29
   适用：#386 /terms-conditions/ 、#3161 /privacy-policy/ 、#3162 /delivery-information/
   复用 D 段 ctc-doc-* 体系，此处仅补「密集文本」所需排版
   -------------------------------------------------------------------------- */
.ctc-num{display:inline-block;min-width:36px;color:#c74a00;font-weight:700;}
.ctc-doc-sec ul{margin:0 0 18px;padding:0;list-style:none;}
.ctc-doc-sec ul li{position:relative;color:#4a5460;font-size:15px;line-height:1.78;padding:0 0 9px 22px;}
.ctc-doc-sec ul li:before{content:"";position:absolute;left:2px;top:11px;width:7px;height:7px;background:#ff6a13;border-radius:1px;}
.ctc-doc-table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:14px;}
.ctc-doc-table th{background:#f4f5f7;color:#1d2329;font-weight:700;text-align:left;padding:11px 14px;border:1px solid #d3d8de;font-size:12px;letter-spacing:.4px;text-transform:uppercase;}
.ctc-doc-table td{color:#4a5460;padding:11px 14px;border:1px solid #e6e9ed;line-height:1.6;}
.ctc-doc-table tr:nth-child(even) td{background:#fafbfc;}
.ctc-updated{display:inline-flex;align-items:center;gap:9px;background:#f4f5f7;border:1px solid #d3d8de;border-radius:3px;padding:9px 16px;color:#68737f;font-size:13px;margin:0 0 32px;}
.ctc-updated i{color:#ff6a13;}
.ctc-doc-sec p a{color:#c74a00 !important;text-decoration:underline;text-underline-offset:2px;}
.ctc-doc-sec p a:hover{color:#ff6a13 !important;}
.ctc-doc-lead{color:#4a5460;font-size:15px;line-height:1.78;margin:0 0 22px;}
@media (max-width:575px){
.ctc-doc-table th,.ctc-doc-table td{padding:9px 10px;font-size:13px;}
.ctc-doc-sec ul li{font-size:14px;}
.ctc-doc-lead{font-size:14px;}
}


/* --------------------------------------------------------------------------
   F. 产品卡片：清掉「链接下划线」与 Bootstrap 默认蓝（2026-09-29）
   症状：产品名 <a class="product-loop-title"> 带 underline 且颜色 #0d6efd
        加购按钮 <a class="add_to_cart_button"> 文字带 underline（橙底黑线）
   范围：仅 .products 产品网格内，不影响导航/单品页/其他链接
   回滚：删除本段即可（css-code 里以 marker 定位）
   -------------------------------------------------------------------------- */
.products .product-loop-title{text-decoration:none !important;color:#1d2329 !important;}
.products .product-loop-title:hover{color:#ff6a13 !important;}
.products .product-col .add_to_cart_button,
.products .product-col .viewcart-style-1{text-decoration:none !important;}
.products .product-col .add_to_cart_button:hover,
.products .product-col .viewcart-style-1:hover{text-decoration:none !important;}

/* --------------------------------------------------------------------------
   G. 页头导航：清掉 Bootstrap 默认下划线（2026-09-29）
   --------------------------------------------------------------------------
   症状：主导航 + mega menu 下拉里全部 <a> 带 underline（页头实测 98 个）
   根因：porto/css/bootstrap.css 有全局 a{color:#0d6efd;text-decoration:underline}
        F 段只覆盖了 .products 商品区，页头/导航从未覆盖
   范围：#header 与 #main-menu 内全部链接（logo / 菜单 / 下拉 / 移动端汉堡菜单）
   回滚：删除本段即可
   -------------------------------------------------------------------------- */
#header a,
#main-menu a,
#main-menu ul.main-menu a,
#main-menu ul.sub-menu a{text-decoration:none !important;}

/* --------------------------------------------------------------------------
   H. 商品区 / 元信息链接：清 Bootstrap 默认下划线（2026-09-29）
   --------------------------------------------------------------------------
   与 F 段同根因：porto/css/bootstrap.css 的全局
     a{color:#0d6efd;text-decoration:underline}
   F 段只覆盖了产品名与加购按钮，实测仍有残留（本机真浏览器计数）：
     首页 47 / /shop/ 40 / 商品详情页 81 个 <a>
     - 产品图片链接 .product-image > a（computed color 仍是旧蓝 #0d6efd）
     - 产品卡分类 span.category-list a
     - 分页页码 a.page-numbers
     - 标签 / 分类 .tagged_as a / .posted_in a
     - 分享链接 .share-links a（其中还挂着已停运的 Google+）
     - 上下产品导航 .product-nav a、写评论链接、网格/列表切换
   范围：仅商品相关区域；**不动正文链接**（.ctc-doc-sec p a 等仍保留下划线）。
   回滚：删除本段。
   -------------------------------------------------------------------------- */
.product-image > a,
.category-list a,
.product_meta a,
.product_meta .tagged_as a,
.product_meta .posted_in a,
.woocommerce-pagination a.page-numbers,
a.page-numbers,
.share-links a,
.product-nav a,
.woocommerce-write-review-link,
.gridlist-toggle a,
.product-loop-title,
.products .add_to_cart_button,
.products .viewcart-style-1,
.products .add_to_cart_read_more,
#review_form a,
.comment-form a,
p.stars a{text-decoration:none !important;}
