/* ============================================
   Portal Dark Theme - Legacy Page Overrides
   ============================================ */

/* Base */
body { background: #0A0E1A; color: #E8EAF0; }

/* Old light backgrounds */
.bg_f3f6ff,
.bg-f3f6ff,
.ganxian,
.quanyi { background: #0F131F !important; }

/* Breadcrumbs / Banner (old bootstrap style pages) */
.breadcrumbs {
    position: relative;
    background-color: #0A0E1A !important;
}
.breadcrumbs::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,14,26,0.85) 0%, rgba(10,14,26,0.6) 100%);
    z-index: 1;
}
.breadcrumb-caption {
    position: relative;
    z-index: 2;
}
.breadcrumb-caption h3,
.breadcrumb-caption p,
.color-white { color: #fff !important; }

/* Company introduce (case pages) */
.company-introduce { background: transparent; }
.about-title { color: #E8EAF0 !important; }
.company-introduce-info p { color: #9CA3AF !important; }

/* Fangan / Solution pages */
.fangan_banner {
    background: #0A0E1A !important;
    color: #fff;
}
.fangan_banner h3,
.fangan_banner b,
.fangan_banner p,
.fangan_banner li { color: #fff; }
.fangpiao_xianzhuang ul,
.fangan_xianzhuang ul { background: transparent !important; }
.fangpiao_xianzhuang li,
.fangan_xianzhuang li {
    background: #111827 !important;
    color: #E8EAF0 !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 10px 16px;
    list-style: none;
}
.fangan_main { background: #0A0E1A; }
.fangan9 { background: #0A0E1A !important; }
.fangan9 .wf_wrap { background: #0A0E1A !important; }

.yidong_title h2 { color: #E8EAF0 !important; }
.yidong_title p,
.yidong_title div,
.yidong_box .yidong_title div { color: #9CA3AF !important; }
.yidong_title i {
    color: #D97706;
    font-style: normal;
}

/* Product service items (function modules in resolve page) */
.pro-service-item {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}
.pro-service-item .caption h3 { color: #E8EAF0 !important; }
.pro-service-item .caption p { color: #9CA3AF !important; }

/* Case / news sections */
.fangpiao_case { background: #0A0E1A !important; }
.fangpiao_case_list_pic {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
}
.fangpiao_case_list_pic h3 { color: #E8EAF0 !important; }
.fangpiao_case_news { padding-left: 0; }
.fangpiao_case_news li {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    list-style: none;
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
}
.fangpiao_case_news li a { color: inherit; text-decoration: none; display: block; }
.fangpiao_case_news h4 { color: #E8EAF0 !important; }
.fangpiao_case_news div { color: #9CA3AF !important; }
.fangpiao_case_news b { color: #D97706; }

/* Dangan titles */
.dangan_title span { color: #E8EAF0 !important; }

/* Consulting page (zixun) */
.zixun { background: #0A0E1A !important; }
.zixun .banner_item { background-color: #0A0E1A !important; }
.zixun .banner_item h1 { color: #fff !important; }
.zixun .zixun_banner_wz { color: rgba(255,255,255,0.8) !important; }
.zixun .title h1,
.zixun .title h1 p { color: #E8EAF0 !important; }
.zixun_t_main li div,
.zixun_c_main li div { color: #9CA3AF !important; }
.anli_items { padding-left: 0; }
.anli_items li {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    list-style: none;
    margin-bottom: 1rem;
    overflow: hidden;
}
.anli_items li h2 { color: #E8EAF0 !important; }
.anli_wz { color: #9CA3AF !important; }

/* Business cooperation */
.zhaoshang1,
.zhaoshang2 { background: transparent !important; }
.intro-title h3 { color: #E8EAF0 !important; }
.intro-title p { color: #9CA3AF !important; }
.zs_cp div { color: #9CA3AF !important; }
.youshi_list { padding-left: 0; }
.youshi_list li {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.06);
    list-style: none;
}
.youshi_list_div h4 { color: #E8EAF0 !important; }
.youshi_list_div p,
.youshi_list_div div { color: #9CA3AF !important; }
.quanyi li h4 { color: #E8EAF0 !important; }
.quanyi li div { color: #9CA3AF !important; }
.cooperation-step {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1rem;
}
.licheng > div {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 0;
}
.hzfw { background: transparent !important; }
.fanwei { padding-left: 0; }
.fanwei li {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    list-style: none;
    margin-bottom: 0.75rem;
    padding: 1rem;
}
.fanwei li i { color: #D97706; font-style: normal; }
.fanwei li p { color: #9CA3AF !important; }

/* Sitemap */
.sitemap { background: #0A0E1A !important; }
.sitemap_banner {
    color: #fff !important;
    background: #0F131F !important;
    padding: 3rem 0;
    font-size: 2rem;
    font-weight: bold;
}
.sitemap_nav a { color: #E8EAF0 !important; }
.sitemap_nav li li a { color: #9CA3AF !important; }
.sitemap_nav ul { padding-left: 0; }
.sitemap_nav li { list-style: none; }

/* Chawei product */
.chawei_banner { background: #0A0E1A !important; }
.chawei_banner h1,
.chawei_banner p { color: #fff !important; }
.chawei_xianzhuang { background: transparent !important; }
.chawei_xianzhuang h2 { color: #E8EAF0 !important; }
.chawei_xianzhuang p { color: #9CA3AF !important; }
.chawei_huxiao { background: #0F131F !important; }
.chawei_suhua .item1 h4 { color: #E8EAF0 !important; }
.chawei_suhua .item1 p { color: #9CA3AF !important; }
.chawei_text { background: #0A0E1A !important; }
.wei_title h2 { color: #E8EAF0 !important; }
.wei_title p,
.wei_title li { color: #9CA3AF !important; }
.wei_title i { color: #D97706; font-style: normal; }

/* Forms in legacy pages */
#form .form-control,
.form-control {
    background: #111827 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #E8EAF0 !important;
}
.form-control::placeholder { color: #6B7280 !important; }
.btn-default {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #fff !important;
    border: none !important;
}

/* Qukualian / Zijin specific */
.yidong_top { background: transparent !important; }
.special-section { background: #0A0E1A !important; }
.zijin_banner,
.qukuailian_banner { background: #0A0E1A !important; }
.zijin_banner h2,
.zijin_banner p,
.qukuailian_banner h2,
.qukuailian_banner p,
.qukuailian_banner span { color: #fff !important; }
.gongkai_jiejue { background: transparent !important; }

/* Image brightness for icons on dark bg */
.youshi_list img,
.quanyi img,
.zixun_c_main img,
.zixun_t_main img,
.fangan_fangyuan_icon img { filter: brightness(0.95); }

/* Captcha fix */
captcha { filter: brightness(0.9); }

/* ============================================
   Universal overrides for Tailwind residual classes
   ============================================ */
/* Force all remaining bg-white cards to dark */
.bg-white { background-color: #111827 !important; }
img.bg-white, .bg-white img { background-color: transparent !important; }

/* Force border-white to match dark background */
.border-white { border-color: rgba(255,255,255,0.06) !important; }

/* Force text-primary to readable light color on dark bg */
.text-primary { color: #E8EAF0 !important; }

/* Keep certain structural elements readable */
.text-white { color: #fff !important; }
.text-accent { color: #D97706 !important; }

/* Generic container fixes for old pages */
.container { color: inherit; }
section { color: inherit; }

/* Fix old page link colors */
a { color: inherit; }
a:hover { color: #D97706; }

/* Override old nav highlight blue to accent orange */
.header_nav .header_nav_t3 a,
.header_nav .header_r1 > a {
    color: #D97706 !important;
}

/* Override product page old nav highlights */
.header ul .header_nav2 { background: transparent !important; }
.header ul .header_nav2 .mobile_nav_a,
.header ul .header_nav2 > a {
    color: #D97706 !important;
}
.header ul .header_nav2 > a:after {
    background: #D97706 !important;
}

/* Fix any remaining light gray backgrounds */
[style*="background:#f3f6ff"],
[style*="background: #f3f6ff"],
[style*="background-color:#f3f6ff"],
[style*="background-color: #f3f6ff"] {
    background: #0F131F !important;
}
[style*="background:#fff"],
[style*="background: #fff"],
[style*="background-color:#fff"],
[style*="background-color: #fff"] {
    background: #111827 !important;
}

/* Consulting page process list */
.zixun_b_main li div { color: #9CA3AF !important; }

/* Business cooperation step text */
.cooperation-step-text { color: #E8EAF0 !important; }
.cooperation-step-text strong { color: #D97706; }

/* Sitemap submenu */
.sitemap_erji { background: #111827 !important; border: 1px solid rgba(255,255,255,0.06); }
.sitemap_erji a { color: #9CA3AF !important; }
