/* =========================================================
   全局重置与变量
   ========================================================= */
:root {
    --primary-color: #0d47a1;      /* 科技深蓝 */
    --primary-hover: #1565c0;      
    --bg-light: #f5f7fa;           
    --text-dark: #2c3e50;          
    --text-gray: #5f6c7b;          
    --border-color: #e2e8f0;       
    --box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; -webkit-font-smoothing: antialiased; }
ul, li, dd { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--primary-color); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* =========================================================
   公共头部导航 (防换行)
   ========================================================= */
.top-bar { background-color: #0b1120; color: #94a3b8; font-size: 13px; height: 36px; line-height: 36px; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-links a { color: #94a3b8; margin-left: 15px; }
.top-links a:hover { color: #fff; }

.main-header { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }

.logo-box { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-box img { height: 42px; }
.logo-text { border-left: 1px solid var(--border-color); padding-left: 12px; display: flex; flex-direction: column; justify-content: center; }
.logo-text strong { font-size: 18px; color: #0f172a; line-height: 1.2; letter-spacing: 0.5px; }
.logo-text span { font-size: 12px; color: var(--text-gray); }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav li a { font-size: 16px; color: #334155; font-weight: 500; padding: 28px 0; position: relative; white-space: nowrap; }
.main-nav li.active a, .main-nav li a:hover { color: var(--primary-color); }
.main-nav li.active a::after { content: ''; position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background-color: var(--primary-color); border-radius: 2px; }

.service-phone { flex-shrink: 0; text-align: right; color: var(--primary-color); }
.service-phone span { display: block; font-size: 12px; color: var(--text-gray); }
.service-phone strong { font-size: 22px; font-weight: bold; line-height: 1.2; }
.service-phone .sub-text { font-size: 11px; }

/* =========================================================
   第一屏：Hero Banner (全面优化版：明暗对比 + 高级毛玻璃)
   ========================================================= */
.hero-banner { 
    background-color: #0d47a1; 
    background-size: cover; 
    background-position: center right; /* 让背景图稍微靠右，避开左侧文字 */
    padding: 100px 0; /* 增加上下留白，让画面更有呼吸感 */
    color: #fff; 
    position: relative;
    overflow: hidden;
}

/* 核心优化1：左深右浅的渐变遮罩，完美拯救文字阅读体验 */
.hero-banner::before {
    content: ''; 
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0;
    /* 从左侧的 95% 深蓝色，渐变到右侧的 10% 透明度 */
    background: linear-gradient(105deg, rgba(4, 18, 45, 0.95) 0%, rgba(4, 18, 45, 0.8) 40%, rgba(4, 18, 45, 0.1) 100%); 
    z-index: 1;
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    gap: 50px; 
    align-items: center; 
    position: relative; 
    z-index: 2; /* 确保文字和计算器浮在遮罩之上 */
}

/* --- 左侧排版优化 --- */
.hero-text .hero-tag { 
    display: inline-block; 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    padding: 6px 16px; 
    border-radius: 30px; 
    font-size: 13px; 
    margin-bottom: 25px; 
    color: #60a5fa; 
    letter-spacing: 1px; 
}
.hero-text h2 { 
    font-size: 52px; /* 字体加大 */
    line-height: 1.25; 
    margin-bottom: 25px; 
    font-weight: 700; 
    letter-spacing: 2px; 
    text-shadow: 0 4px 15px rgba(0,0,0,0.5); /* 增加文字阴影 */
}
.hero-text p { 
    font-size: 18px; 
    color: #e2e8f0; 
    margin-bottom: 45px; 
    line-height: 1.8; 
    max-width: 90%; 
}
.hero-actions { display: flex; gap: 20px; }
.hero-actions a { 
    display: inline-block; 
    padding: 16px 40px; 
    border-radius: 6px; 
    font-size: 18px; 
    font-weight: bold; 
    transition: all 0.3s; 
}

/* 核心优化2：高转化橙色按钮，形成强烈的视觉焦点 */
.btn-primary { 
    background: linear-gradient(90deg, #ff8800, #ff5500); 
    color: #fff; 
    border: none;
    box-shadow: 0 6px 20px rgba(255, 136, 0, 0.4); 
}
.btn-primary:hover { 
    background: linear-gradient(90deg, #ff9933, #ff6600); 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(255, 136, 0, 0.6); 
}
.btn-outline { 
    background: rgba(255,255,255,0.05); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.4); 
}
.btn-outline:hover { 
    background: rgba(255,255,255,0.2); 
    border-color: #fff; 
}

/* --- 核心优化3：右侧计算器 (改为轻量级“白霜玻璃”质感) --- */
.hero-calculator { 
    background: rgba(255, 255, 255, 0.12); /* 改为半透明白色 */
    backdrop-filter: blur(20px); /* 加强毛玻璃模糊效果 */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* 白色微光边框 */
    border-radius: 16px; 
    padding: 40px 35px; 
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3); /* 强烈的底部阴影，拉开空间感 */
    color: #fff; 
}
.calc-header { 
    text-align: center; 
    margin-bottom: 30px; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    padding-bottom: 20px; 
}
.calc-header h3 { 
    font-size: 24px; 
    color: #ffffff; 
    margin-bottom: 10px; 
    font-weight: 600; 
    letter-spacing: 1px; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.calc-header span { 
    font-size: 13px; 
    color: #ffd700; /* 提示文字改为金色 */
    background: rgba(0, 0, 0, 0.3); 
    padding: 5px 12px; 
    border-radius: 20px; 
}

.calc-body .input-group { margin-bottom: 22px; }
.calc-body label { 
    display: block; 
    font-size: 15px; 
    color: #e2e8f0; 
    margin-bottom: 10px; 
    font-weight: 500; 
}
.calc-body input, .calc-body select { 
    width: 100%; 
    padding: 14px 15px; 
    background: rgba(255, 255, 255, 0.15); /* 内部输入框提亮 */
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: 6px; 
    font-size: 16px; 
    color: #fff;
    outline: none; 
    transition: all 0.3s ease; 
}
.calc-body input::placeholder { color: rgba(255, 255, 255, 0.6); }
.calc-body input:focus, .calc-body select:focus { 
    border-color: #60a5fa; 
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.2); 
}
.calc-body option { background: #0f2c5e; color: #fff; }

.calc-result { 
    margin-top: 30px; 
    background: rgba(0, 0, 0, 0.25); 
    padding: 20px 25px; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
}
.result-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px; 
    font-size: 16px; 
    color: #e2e8f0; 
}
.result-row:last-child { margin-bottom: 0; }
.result-row strong { font-size: 20px; color: #fff; }
.result-row.highlight { 
    margin-top: 15px; 
    padding-top: 15px; 
    border-top: 1px dashed rgba(255, 255, 255, 0.3); 
}
.result-row.highlight strong { 
    font-size: 28px; 
    color: #10b981; /* 翠绿色，代表资金安全到账 */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
/* =========================================================
   第二屏：信任背书
   ========================================================= */
.trust-section { background: #fff; border-bottom: 1px solid var(--border-color); }
.trust-grid { display: flex; justify-content: space-between; padding: 30px 0; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-item i { font-size: 28px; font-style: normal; margin-bottom: 10px; }
.trust-item strong { font-size: 16px; color: var(--text-dark); margin-bottom: 5px; }
.trust-item span { font-size: 12px; color: var(--text-gray); }

/* =========================================================
   通用版块标题
   ========================================================= */
.section-title { text-align: center; margin: 60px 0 40px; }
.section-title h2 { font-size: 32px; font-weight: 600; margin-bottom: 10px; color: #0f172a; }
.section-title p { font-size: 15px; color: var(--text-gray); }

/* =========================================================
   第三屏：产品中心
   ========================================================= */
.products-section { padding-bottom: 60px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #fff; padding: 40px 24px; border-radius: 8px; box-shadow: var(--box-shadow); text-align: center; transition: 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.product-card img { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 20px; mix-blend-mode: multiply; }
.product-card h3 { font-size: 18px; margin-bottom: 12px; color: #1e293b; }
.product-card .desc { font-size: 13px; color: #64748b; margin-bottom: 25px; min-height: 40px; }
.btn-small { display: inline-block; padding: 8px 24px; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 4px; font-size: 14px; }
.product-card:hover .btn-small { background: var(--primary-color); color: #fff; }

/* =========================================================
   第四屏：办理流程
   ========================================================= */
.process-section { background: #fff; padding: 10px 0 60px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: #e2e8f0; z-index: 1; }
.process-step { text-align: center; position: relative; z-index: 2; }
.step-icon { width: 60px; height: 60px; background: #fff; border: 3px solid var(--primary-color); color: var(--primary-color); font-size: 24px; font-weight: bold; line-height: 54px; border-radius: 50%; margin: 0 auto 20px; position: relative; }
.process-step:hover .step-icon { background: var(--primary-color); color: #fff; transition: 0.3s; }
.process-step strong { display: block; font-size: 18px; color: #1e293b; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-gray); }

/* =========================================================
   第五屏：极简纯文本内容矩阵
   ========================================================= */
.text-matrix-section { padding: 40px 0 80px; }
.matrix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.matrix-card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid var(--primary-color); }
.card-header h3 { font-size: 18px; font-weight: bold; color: #1e293b; }
.card-header a { font-size: 13px; color: var(--text-gray); }

.clean-list li { border-bottom: 1px solid #f1f5f9; padding: 14px 0; position: relative; padding-left: 15px; }
.clean-list li:last-child { border-bottom: none; }
.clean-list li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; background-color: #94a3b8; border-radius: 50%; transition: 0.3s; }
.clean-list li a { font-size: 15px; color: #475569; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clean-list li:hover::before { background-color: var(--primary-color); }
.clean-list li a:hover { color: var(--primary-color); padding-left: 5px; }

/* =========================================================
   公共尾部 (Footer) - 蓝色主题优化版
   ========================================================= */
.main-footer { 
    background: #0b1a30; /* 采用深邃企业蓝，贴合全站蓝色主题 */
    color: #8a96ab; 
    padding: 60px 0 20px; 
    font-size: 14px; 
    border-top: 4px solid var(--primary-color); /* 顶部蓝色高亮分割线 */
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr 2fr; 
    gap: 40px; 
    margin-bottom: 40px; 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    padding-bottom: 40px; 
}

/* 彻底移除滤镜，恢复 Logo 原色，并加入白色内边距防止深蓝底色吃掉深色Logo字体 */
.footer-brand .footer-logo { 
    height: 48px; 
    margin-bottom: 20px; 
    background: #ffffff; 
    padding: 6px 12px; 
    border-radius: 4px; 
    object-fit: contain; 
}
.footer-brand p { margin-bottom: 8px; line-height: 1.6; color: #94a3b8; }

.footer-links { display: flex; flex-direction: column; }
.footer-links dt { color: #ffffff; font-size: 16px; margin-bottom: 25px; font-weight: bold; letter-spacing: 1px; }
.footer-links .link-group { display: flex; flex-direction: column; gap: 15px; }
.footer-links dd { margin: 0; }
.footer-links a { color: #8a96ab; transition: all 0.3s ease; }
.footer-links a:hover { color: #ffffff; padding-left: 5px; /* 悬浮时向右微移的灵动效果 */ }

.footer-contact-qr { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.contact-info { flex: 1; }
.tel-box { margin-bottom: 25px; }
.tel-text span { display: block; font-size: 13px; margin-bottom: 5px; color: #94a3b8; }
.tel-text strong { display: block; font-size: 28px; color: #ffffff; font-weight: bold; line-height: 1; margin-bottom: 8px; letter-spacing: 1px; }
.tel-text .sub { font-size: 12px; color: #64748b; }
.contact-info p { margin-bottom: 10px; color: #8a96ab; }
.contact-info a:hover { color: #ffffff; }

.qr-code-box { width: 110px; text-align: center; flex-shrink: 0; }
.qr-code-box img { width: 110px; height: 110px; background: #ffffff; padding: 6px; border-radius: 4px; margin-bottom: 10px; }
.qr-code-box span { font-size: 12px; line-height: 1.5; display: block; color: #94a3b8; }

.copyright { text-align: center; font-size: 13px; color: #475569; }

/* 响应式适配 (兼容移动端) */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links .link-group { text-align: center; }
    .footer-contact-qr { flex-direction: column; align-items: center; text-align: center; }
    .footer-brand .footer-logo { margin: 0 auto 20px; }
}

/* =========================================================
   内页：面包屑导航
   ========================================================= */
.page-banner { background: #ffffff; border-bottom: 1px solid var(--border-color); padding: 15px 0; margin-bottom: 40px; }
.breadcrumb { font-size: 14px; color: var(--text-gray); }
.breadcrumb a { color: var(--text-dark); }
.breadcrumb a:hover { color: var(--primary-color); }

/* =========================================================
   内页：通用双栏布局 (左大右小)
   ========================================================= */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-bottom: 60px; align-items: start; }

/* =========================================================
   知识库列表页专属样式 (zhishilist.html)
   ========================================================= */
.category-header { margin-bottom: 30px; border-bottom: 2px solid var(--primary-color); padding-bottom: 15px; }
.category-header h2 { font-size: 24px; color: #0f172a; margin-bottom: 5px; }
.category-header p { font-size: 14px; color: var(--text-gray); }

.kb-article-list li { border-bottom: 1px dashed #e2e8f0; padding: 25px 0; transition: 0.3s; }
.kb-article-list li:last-child { border-bottom: none; }
.kb-item { display: flex; flex-direction: column; gap: 10px; }
.kb-item-content h3 { font-size: 18px; color: #1e293b; margin-bottom: 10px; transition: 0.3s; }
.kb-item-content p { font-size: 14px; color: #64748b; line-height: 1.6; }
.kb-item-meta { display: flex; gap: 20px; font-size: 13px; color: #94a3b8; margin-top: 10px; }
.kb-item-meta i { font-style: normal; margin-right: 4px; }
.kb-article-list li:hover { background: #f8fafc; padding-left: 15px; padding-right: 15px; border-radius: 8px; border-bottom-color: transparent; }
.kb-article-list li:hover h3 { color: var(--primary-color); }

/* 分页组件样式 (PbootCMS 标准适配版) */
.pagination { margin-top: 40px; text-align: center; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 16px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 14px; color: #475569; background: #fff; transition: 0.3s; }
.pagination a:hover { border-color: var(--primary-color); color: var(--primary-color); }
/* PbootCMS 当前选中页码的默认 class 是 page-num-current */
.pagination .page-num-current { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
/* =========================================================
   文章详情页专属样式 (zhishi.html)
   ========================================================= */
.article-main { background: #fff; padding: 40px; border-radius: 8px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); }
.article-header { border-bottom: 1px dashed #cbd5e1; padding-bottom: 25px; margin-bottom: 30px; text-align: center; }
.article-header h1 { font-size: 28px; color: #0f172a; margin-bottom: 15px; line-height: 1.4; font-weight: 600; }
.article-meta { font-size: 13px; color: #64748b; display: flex; justify-content: center; gap: 25px; }
.article-body { font-size: 16px; color: #334155; line-height: 1.8; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; margin: 20px 0; }
.article-body p { margin-bottom: 18px; }
.article-body h2, .article-body h3 { color: #0f172a; margin: 30px 0 15px; border-left: 4px solid var(--primary-color); padding-left: 12px; font-size: 20px; }

.article-nav { margin-top: 50px; padding-top: 25px; border-top: 1px solid #e2e8f0; display: flex; flex-direction: column; gap: 15px; font-size: 15px; }
.nav-prev, .nav-next { display: flex; }
.nav-prev span, .nav-next span { color: #64748b; flex-shrink: 0; }
.nav-prev a, .nav-next a { color: var(--primary-color); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: 0.3s; }
.nav-prev a:hover, .nav-next a:hover { text-decoration: underline; color: var(--primary-hover); }

/* =========================================================
   右侧侧边栏样式 (通用)
   ========================================================= */
.article-sidebar { display: flex; flex-direction: column; gap: 25px; position: sticky; top: 100px; }
.sidebar-widget { background: #fff; border-radius: 8px; box-shadow: var(--box-shadow); border: 1px solid var(--border-color); padding: 25px; }
.widget-title { border-bottom: 2px solid var(--primary-color); padding-bottom: 12px; margin-bottom: 20px; }
.widget-title h3 { font-size: 18px; color: #1e293b; margin: 0; font-weight: bold; }
.widget-list li { margin-bottom: 16px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.widget-list li:last-child { margin-bottom: 0; }
.widget-list a { color: #475569; font-size: 14px; flex: 1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-list a:hover { color: var(--primary-color); }

.rank { display: inline-block; width: 20px; height: 20px; background: #cbd5e1; color: #fff; text-align: center; line-height: 20px; border-radius: 4px; font-size: 12px; flex-shrink: 0; margin-top: 2px; font-weight: bold; }
.rank-1 { background: #ef4444; } 
.rank-2 { background: #f97316; } 
.rank-3 { background: #eab308; } 
.dot { display: inline-block; width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; margin-top: 8px; flex-shrink: 0; transition: 0.3s; }
.widget-list li:hover .dot { background: var(--primary-color); transform: scale(1.2); }

.sidebar-contact { background: linear-gradient(135deg, #0d47a1, #1565c0); color: #fff; padding: 30px 20px; border-radius: 8px; text-align: center; box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2); }
.sidebar-contact h3 { font-size: 20px; margin-bottom: 10px; font-weight: bold; }
.sidebar-contact p { font-size: 13px; color: #93c5fd; margin-bottom: 25px; }
.sidebar-btn { display: block; padding: 12px; font-size: 16px; border-radius: 4px; }

/* 响应式适配 */
@media (max-width: 992px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
}
@media (max-width: 768px) {
    .article-main { padding: 25px 20px; }
    .article-header h1 { font-size: 22px; }
    .article-meta { flex-wrap: wrap; gap: 10px; justify-content: center; }
    .kb-article-list li { padding: 15px 0; }
}
/* =========================================================
   产品列表页 (productlist.html)
   ========================================================= */
.page-layout { margin-bottom: 60px; }

/* 一排三个的产品网格 */
.pro-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.pro-list-card {
    background: #fff;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pro-list-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.pro-pic {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* 正方形图片框 */
    background: #f8fafc;
    padding: 30px;
    position: relative;
    overflow: hidden;
}
.pro-pic img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保证机器图片完整显示不被裁切 */
    transition: 0.5s;
}
.pro-list-card:hover .pro-pic img {
    transform: scale(1.08);
}

.pro-text {
    padding: 25px 20px 20px;
    flex: 1;
}
.pro-text h3 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 12px;
}
.pro-text h3 a:hover { color: var(--primary-color); }
.pro-text p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* 底部双按钮设计 */
.pro-actions {
    display: flex;
    border-top: 1px solid var(--border-color);
}
.btn-view, .btn-apply {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}
.btn-view { color: #475569; border-right: 1px solid var(--border-color); background: #fdfdfd; }
.btn-view:hover { color: var(--primary-color); background: #f8fafc; }
.btn-apply { color: var(--primary-color); background: #fff; }
.btn-apply:hover { background: var(--primary-color); color: #fff; }


/* =========================================================
   产品详情页 (product.html)
   ========================================================= */

/* 上半部分左右分栏 */
.pro-detail-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 左侧占1份，右侧占1.2份 */
    gap: 50px;
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

/* 左侧图片展台 */
.pro-gallery .main-image-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.pro-gallery .main-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* =========================================================
   产品详情页：右侧核心信息精细化排版
   ========================================================= */
.pro-intro-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* 产品特点列表 */
.pro-features-section h3 {
    font-size: 18px;
    color: #1e293b;
    font-weight: bold;
    margin-bottom: 15px;
}
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}
/* 纯CSS绘制的蓝色圆圈打勾图标 */
.feature-list li .check-icon {
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    background-color: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: bold;
}

/* 底部操作按钮组 */
.pro-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.pro-btn-group a {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    text-align: center;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-solid { background: #3b82f6; color: #fff; border: 1px solid #3b82f6; }
.btn-solid:hover { background: #2563eb; }
.btn-outline { background: transparent; color: #3b82f6; border: 1px solid #3b82f6; }
.btn-outline:hover { background: #eff6ff; }
.btn-phone { background: transparent; color: #3b82f6; border: 1px solid #3b82f6; }
.btn-phone:hover { background: #eff6ff; }
.btn-phone i { font-style: normal; font-size: 16px; }

/* 下半部分长详情 */
.pro-detail-bottom {
    background: #fff;
    border: 1px solid var(--border-color);
}
.detail-tab {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
}
.detail-tab span {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #1e293b;
    background: #fff;
    border-top: 3px solid var(--primary-color);
    border-right: 1px solid var(--border-color);
}
.detail-content-box {
    padding: 40px;
}
/* 限制富文本编辑器里的图片最大宽度，防止撑破页面 */
.detail-content-box img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 20px auto;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .pro-list-grid { grid-template-columns: repeat(2, 1fr); }
    .pro-detail-top { grid-template-columns: 1fr; gap: 30px; padding: 25px; }
}
@media (max-width: 768px) {
    .pro-list-grid { grid-template-columns: 1fr; }
    .pro-btn-group { flex-direction: column; }
    .btn-primary-large, .btn-outline-large, .btn-tel { width: 100%; }
    .detail-content-box { padding: 20px; }
    .detail-tab span { width: 100%; text-align: center; }
}

/* =========================================================
   产品详情页：选项卡与常见问题样式
   ========================================================= */
/* 选项卡交互样式优化 */
.detail-tab span {
    cursor: pointer;
    transition: 0.3s ease;
    user-select: none;
}
.detail-tab span:not(.active) {
    background: #f8fafc;
    color: #64748b;
    border-top: 3px solid transparent;
}
.detail-tab span:not(.active):hover {
    color: var(--primary-color);
    background: #f1f5f9;
}

/* 常见问题手风琴样式 */
.faq-box {
    padding: 20px 40px 40px;
}
.faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 25px 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-q {
    font-size: 16px;
    font-weight: bold;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}
.faq-q:hover {
    color: var(--primary-color);
}
.faq-icon {
    font-style: normal;
    font-size: 24px;
    color: #3b82f6;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}
.faq-a {
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin-top: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
    display: none; /* 默认隐藏 */
}

/* 常见问题展开时的激活状态 */
.faq-item.active .faq-q {
    color: var(--primary-color);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
/* =========================================================
   侧边栏：多彩标签列表插件
   ========================================================= */
.tags-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 严格分为3列 */
    gap: 15px 10px; 
    margin-top: 5px; 
}
.tags-grid a { 
    font-size: 14px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; /* 超出自动显示省略号 */
    display: block; 
    transition: 0.3s;
    font-weight: 500;
}
.tags-grid a:hover { 
    transform: translateY(-2px); 
    text-decoration: underline; 
}

/* 利用纯 CSS 循环为标签上色，完美复刻截图效果 */
.tags-grid a:nth-child(5n+1) { color: #0284c7; } /* 蓝色 */
.tags-grid a:nth-child(5n+2) { color: #059669; } /* 绿色 */
.tags-grid a:nth-child(5n+3) { color: #dc2626; } /* 红色 */
.tags-grid a:nth-child(5n+4) { color: #9333ea; } /* 紫色 */
.tags-grid a:nth-child(5n+5) { color: #b45309; } /* 棕橙色 */
/* =========================================================
   全局：申请表单弹窗样式 (高级磨砂玻璃与弹出动画)
   ========================================================= */
.apply-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 26, 48, 0.7); /* 深蓝色半透明遮罩 */
    backdrop-filter: blur(5px); /* 背景高级毛玻璃效果 */
    z-index: 9999; 
    display: flex; align-items: center; justify-content: center;
    /* 渐显动画 */
    animation: fadeInModal 0.3s forwards;
}
@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }

.apply-modal-box {
    background: #fff; width: 90%; max-width: 420px; border-radius: 12px;
    position: relative; padding: 40px 35px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    /* 底部滑入动画 */
    transform: translateY(30px); 
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUpModal { to { transform: translateY(0); } }

.apply-modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 32px;
    color: #94a3b8; cursor: pointer; line-height: 1; transition: 0.3s;
}
.apply-modal-close:hover { color: #ef4444; transform: rotate(90deg); }

.apply-modal-header { text-align: center; margin-bottom: 25px; }
.apply-modal-header h3 { font-size: 24px; color: #0f172a; margin-bottom: 8px; font-weight: bold; }
.apply-modal-header p { font-size: 13px; color: #64748b; }

.apply-form .form-group { margin-bottom: 20px; }
.apply-form label { display: block; font-size: 14px; color: #1e293b; margin-bottom: 8px; font-weight: bold; }
.apply-form label span { color: #ef4444; margin-left: 3px; }
.apply-form input { 
    width: 100%; padding: 14px 15px; border: 1px solid #cbd5e1; 
    border-radius: 6px; font-size: 14px; transition: all 0.3s; 
    background: #f8fafc; outline: none;
}
.apply-form input:focus { 
    border-color: #3b82f6; background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); 
}

.submit-btn { 
    width: 100%; background: linear-gradient(90deg, #ff8800, #ff5500); 
    color: #fff; border: none; padding: 15px 0; font-size: 16px; 
    font-weight: bold; border-radius: 6px; cursor: pointer; 
    box-shadow: 0 6px 15px rgba(255, 136, 0, 0.3); transition: 0.3s; 
    margin-top: 10px; letter-spacing: 1px;
}
.submit-btn:hover { 
    background: linear-gradient(90deg, #ff9933, #ff6600); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.4); 
}
/* =========================================================
   移动端自适应终极修复补丁 (请保留在 style.css 最底部)
   ========================================================= */

/* 针对平板设备 (769px - 992px) 的初步折叠 */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text p { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { flex-wrap: wrap; }
    .trust-item { width: 33.33%; margin-bottom: 20px; }
    .matrix-grid { grid-template-columns: 1fr; }
}

/* 针对手机设备 (768px 及以下) 的深度重排版 */
@media (max-width: 768px) {
    /* 1. 顶部栏与头部导航优化 */
    .top-bar { display: none; } /* 手机端隐藏最顶部黑条，节省屏幕空间 */
    .main-header .container { flex-direction: column; height: auto; padding: 15px 10px; gap: 15px; }
    .logo-box { width: 100%; justify-content: center; border: none; padding: 0; margin-bottom: 5px; }
    .logo-text { border-left: none; }
    .service-phone { display: none; } /* 隐藏右上角电话，保持头部清爽 */

    /* 手机端导航条：改为支持手指左右横向滑动浏览 */
    .main-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 5px; }
    .main-nav ul { width: max-content; gap: 20px; margin: 0 auto; padding: 0 10px; }
    .main-nav li a { padding: 10px 0; font-size: 15px; }
    .main-nav li.active a::after { bottom: 0; }

    /* 2. 第一屏 Hero Banner 适配 */
    .hero-banner { padding: 40px 0; background-position: center; }
    .hero-text h1 { font-size: 32px; margin-bottom: 15px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
    .hero-text p { font-size: 15px; margin-bottom: 25px; line-height: 1.6; }
    .hero-actions { flex-direction: column; gap: 15px; }
    .hero-actions a { width: 100%; padding: 14px 0; font-size: 16px; }
    
    .hero-calculator { padding: 25px 20px; }
    .result-row.highlight strong { font-size: 24px; }

    /* 3. 信任背书 (5列改为分两排显示，隐藏长段落) */
    .trust-grid { flex-wrap: wrap; justify-content: center; gap: 15px 5px; padding: 20px 0; }
    .trust-item { width: calc(33.33% - 10px); }
    .trust-item i { font-size: 24px; margin-bottom: 5px; }
    .trust-item strong { font-size: 13px; }
    .trust-item span { display: none; } /* 手机端隐藏小字说明，防止拥挤 */

    /* 4. 首页：产品中心 (4列变2列精致网格) */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card { padding: 20px 10px; }
    .product-card img { width: 90px; height: 90px; margin-bottom: 10px; }
    .product-card h3 { font-size: 15px; margin-bottom: 10px; }
    .product-card .desc { display: none; } /* 隐藏产品简介，保持卡片小巧对齐 */
    .product-card .btn-small { padding: 6px 15px; font-size: 13px; width: 90%; }

    /* 5. 首页：文本矩阵 (3列变1列纵向堆叠) */
    .text-matrix-section { padding: 30px 0; }
    .matrix-grid { gap: 20px; }
    .matrix-card { padding: 20px; }
    .clean-list li a { font-size: 14px; }

    /* 6. 全局：标题与间距缩小 */
    .section-title { margin: 30px 0 25px; }
    .section-title h2 { font-size: 22px; }
    
    /* 7. 申请表单弹窗优化 */
    .apply-modal-box { padding: 35px 20px 25px; }
    .apply-modal-header h3 { font-size: 20px; }

    /* 8. 内页侧边栏多彩标签过挤修复 */
    .tags-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
/* =========================================================
   移动端尾部 (Footer) 深度美化补丁
   ========================================================= */
@media (max-width: 768px) {
    .main-footer { padding: 40px 0 20px; }
    
    /* 1. 废弃长长的单列直排，采用 2列 并排网格 */
    .footer-grid { 
        grid-template-columns: 1fr 1fr !important; 
        gap: 25px 15px !important; 
        padding-bottom: 25px;
        margin-bottom: 20px;
    }
    
    /* 2. 第一块：品牌Logo横跨全屏，居中显示，底部加虚线分割 */
    .footer-brand { 
        grid-column: span 2; 
        text-align: center; 
        border-bottom: 1px dashed rgba(255,255,255,0.1);
        padding-bottom: 25px;
    }
    .footer-brand .footer-logo { margin: 0 auto 15px !important; height: 38px; }
    .footer-brand p { font-size: 13px; margin-bottom: 5px; }

    /* 3. 第二/三块：两个导航列表左右并列，取消居中，恢复左对齐 */
    .footer-links { 
        grid-column: span 1; 
        text-align: left !important; 
    }
    .footer-links dt { 
        font-size: 15px; 
        margin-bottom: 15px; 
        border-left: 3px solid #3b82f6; /* 增加左侧蓝色小竖条修饰 */
        padding-left: 8px; 
        display: inline-block;
    }
    .footer-links .link-group { text-align: left !important; }
    .footer-links a { font-size: 13px; padding: 6px 0; display: block; }

    /* 4. 第四块：联系方式与二维码横跨全屏，做成一张微光质感的服务卡片 */
    .footer-contact-qr { 
        grid-column: span 2; 
        flex-direction: row !important; /* 强制左右横向排列 */
        align-items: center !important; 
        justify-content: space-between; 
        background: rgba(255,255,255,0.03); /* 高级微透明卡片底色 */
        padding: 20px 15px;
        border-radius: 8px;
        text-align: left !important;
        margin-top: 10px;
    }
    
    /* 卡片左侧：电话与地址 */
    .contact-info { flex: 1; padding-right: 15px; }
    .tel-box { margin-bottom: 10px; }
    .tel-text span { font-size: 12px; margin-bottom: 3px; }
    .tel-text strong { font-size: 22px !important; margin-bottom: 5px; line-height: 1.1; } /* 字号微调防换行 */
    .contact-info p { font-size: 12px; margin-bottom: 5px; line-height: 1.4; color: #64748b; }
    
    /* 卡片右侧：二维码 */
    .qr-code-box { width: 85px !important; margin: 0 !important; flex-shrink: 0; }
    .qr-code-box img { width: 85px; height: 85px; margin-bottom: 8px; }
    .qr-code-box span { font-size: 11px; }
}
/* =========================================================
   移动端办理流程优化：强制改为一排2个 (2x2网格)
   ========================================================= */
@media (max-width: 768px) {
    .new-process-grid { 
        grid-template-columns: repeat(2, 1fr) !important; /* 强制分2列 */
        gap: 25px 12px !important; /* 调整上下左右的间距，防止拥挤 */
    }
    
    /* 配合双列布局，适当缩小内部元素的间距和字号，使其更精致 */
    .step-img-box { 
        margin-bottom: 12px !important; 
        border-bottom-width: 3px !important; 
    }
    .new-process-step h3 { 
        font-size: 15px !important; 
        margin-bottom: 6px !important; 
    }
    .new-process-step p { 
        font-size: 12px !important; 
        line-height: 1.4 !important; 
        padding: 0 5px; /* 两侧稍微留白 */
    }
}
/* =========================================================
   移动端导航与右侧超宽错位 终极修复补丁
   ========================================================= */
@media (max-width: 768px) {
    /* 1. 修复头部导航：缩小文字，缩减间距，允许自动换行铺满屏幕 */
    .main-nav { 
        overflow-x: visible !important; 
    }
    .main-nav ul { 
        width: 100% !important; 
        flex-wrap: wrap !important; /* 允许放不下的菜单自动掉到第二行 */
        justify-content: center !important; 
        gap: 6px 16px !important; /* 缩小菜单之间的左右间距 */
        padding: 8px 10px !important; 
    }
    .main-nav li a { 
        font-size: 14px !important; /* 缩小字号 */
        padding: 5px 0 !important; 
    }

    /* 2. 彻底解决内页（列表/详情页）右侧超出屏幕、可以左右乱晃的问题 */
    body, html { 
        overflow-x: hidden !important; /* 根级别锁死，绝对不允许水平滚动 */
    }
    
    .container { 
        max-width: 100% !important; 
        overflow-x: hidden !important; 
    }

    /* 修复 CSS Grid 在手机端被长文本撑爆的系统级 Bug (关键代码) */
    .article-layout { 
        grid-template-columns: minmax(0, 1fr) !important; 
    }

    /* 强行约束所有文本区块，遇到长链接或长连串字母强制断行 */
    .article-main, .article-sidebar, .article-body {
        width: 100% !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        word-break: break-all !important; /* 终极断行属性，宁可字断开也不让撑破屏幕 */
        overflow: hidden !important;
    }
    
    /* 确保文章内容里的图片、表格绝对不会超过手机屏幕 */
    .article-body img, .article-body table, .article-body iframe {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* 缩小顶部面包屑导航字号，防止层级太长撑破屏幕 */
    .breadcrumb { 
        font-size: 12px !important; 
        line-height: 1.6 !important; 
        word-wrap: break-word !important; 
    }
}