/* ════════════════════════════════════════════
   建力钢管 · 官网共享样式 main.css
   钢蓝工业风设计系统（与 index.html 内联样式同 token）
   首页 self-contained；本表供子页面（products/applications/
   production-support/frontier/news）复用
   ════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --pine-950: #081426;
    --pine-900: #0a1e3c;
    --pine-800: #122a52;
    --pine-700: #1e3a5f;
    --pine-600: #2563eb;
    --pine-500: #3b82f6;
    --pine-400: #60a5fa;
    --pine-300: #93c5fd;
    --pine-200: #bfdbfe;
    --pine-100: #dbeafe;
    --pine-50:  #eff6ff;
    --emerald-600: #0d9488;
    --emerald-500: #14b8a6;
    --emerald-100: #ccfbf1;
    --emerald-50:  #f0fdfa;
    --amber-500: #f97316;
    --amber-400: #fb923c;
    --amber-100: #fed7aa;
    --amber-50:  #fff7ed;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: #fff;
    overflow-x: hidden;
}

/* ─── 加载动画 ─── */
.loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--pine-900);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-ring {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(59,130,246,0.15);
    border-top-color: var(--pine-500);
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-size: 14px; color: var(--gray-400); letter-spacing: 2px; }

/* ─── 导航栏 ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 68px; display: flex; align-items: center;
    justify-content: space-between; padding: 0 32px;
    background: rgba(10,30,60,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { border-bottom-color: rgba(59,130,246,0.25); box-shadow: 0 6px 24px rgba(0,0,0,0.2); }
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 17px; font-weight: 700;
    color: #fff; text-decoration: none;
}
.nav-logo .logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--pine-500), var(--emerald-500));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; font-weight: 700;
    font-family: 'Inter', monospace;
}
.nav-logo .logo-sub {
    font-size: 10px; font-weight: 400;
    color: var(--gray-400); letter-spacing: 1px;
    display: block; margin-top: -2px;
}
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--gray-300);
    font-size: 14px; font-weight: 500;
    padding: 8px 18px; border-radius: 8px;
    transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(59,130,246,0.15); }
.nav-links a.active { color: #fff; background: rgba(59,130,246,0.18); }
.nav-links a.cta-link {
    background: linear-gradient(135deg, var(--pine-600), var(--pine-700));
    color: #fff; margin-left: 8px;
}
.nav-links a.cta-link:hover { background: linear-gradient(135deg, var(--pine-500), var(--pine-600)); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #fff; border-radius: 2px; transition: 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── 子页面页头 ─── */
.page-hero {
    background: linear-gradient(135deg, var(--pine-900), var(--pine-800));
    color: #fff;
    padding: 140px 32px 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -40%; right: -5%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 500;
    color: var(--pine-400);
    background: rgba(59,130,246,0.12);
    padding: 5px 16px; border-radius: 20px;
    margin-bottom: 18px; letter-spacing: 2px;
}
.page-hero h1 {
    font-size: 40px; font-weight: 900;
    line-height: 1.2; margin-bottom: 12px;
}
.page-hero p {
    font-size: 16px; line-height: 1.8;
    color: var(--gray-400); max-width: 620px;
}

/* ─── 面包屑 ─── */
.breadcrumb {
    display: flex; gap: 8px; align-items: center;
    font-size: 13px; color: var(--gray-500);
    margin-bottom: 16px;
}
.breadcrumb a { color: var(--pine-500); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--gray-400); }

/* ─── 通用 ─── */
.section { padding: 80px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
    display: inline-block;
    font-size: 12px; font-weight: 600;
    color: var(--pine-600);
    background: var(--pine-100);
    padding: 4px 16px; border-radius: 20px;
    letter-spacing: 2px; margin-bottom: 12px;
}
.section-tag-teal {
    color: var(--emerald-600);
    background: var(--emerald-100);
}
.section-tag-amber {
    color: var(--amber-500);
    background: var(--amber-50);
}
.section-title {
    font-size: 32px; font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 14px;
    line-height: 1.3;
}
.section-desc {
    font-size: 16px; line-height: 1.8;
    color: var(--gray-500);
    max-width: 640px;
}
.section-title-center { text-align: center; }
.section-desc-center { text-align: center; margin: 0 auto; }

/* ─── 按钮 ─── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 30px; border-radius: 12px;
    font-size: 15px; font-weight: 600;
    text-decoration: none; transition: all 0.25s;
    cursor: pointer; border: none;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--pine-600), var(--pine-700));
    color: #fff; box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.45);
}
.btn-hotline {
    background: linear-gradient(135deg, var(--amber-500), #ea580c);
    color: #fff; box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
.btn-hotline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249,115,22,0.45);
}
.btn-ghost-light {
    background: rgba(255,255,255,0.06);
    color: #fff; border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.btn-outline-dark {
    background: transparent; color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}
.btn-outline-dark:hover { border-color: var(--pine-500); color: var(--pine-700); background: var(--pine-50); }
.btn-sm { padding: 9px 20px; font-size: 13px; border-radius: 10px; }

/* ─── 规格表 ─── */
.spec-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
}
.spec-table {
    width: 100%; border-collapse: collapse;
    min-width: 560px;
    background: #fff;
    font-size: 14px;
}
.spec-table th {
    background: var(--pine-900);
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    white-space: nowrap;
}
.spec-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-600);
}
.spec-table tr:nth-child(even) td { background: var(--gray-50); }
.spec-table tr:hover td { background: var(--pine-50); }
.spec-table td .spec-note { color: var(--gray-400); font-size: 12px; }

/* ─── 卡片/区块 ─── */
.card-block {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.3s;
}
.card-block:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.04); border-color: var(--pine-300); }
.card-block h3 {
    font-size: 20px; font-weight: 700;
    color: var(--gray-900); margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
}
.card-block h3 .ico {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: inline-flex; align-items: center;
    justify-content: center; font-size: 20px;
    flex-shrink: 0;
}
.card-block p { font-size: 14px; line-height: 1.9; color: var(--gray-500); margin-bottom: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── 特色小卡 ─── */
.feat-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 22px;
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.05); }
.feat-card .fc-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center;
    justify-content: center;
    font-size: 22px; margin-bottom: 14px;
}
.feat-card h4 { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.feat-card p { font-size: 13px; line-height: 1.8; color: var(--gray-500); }

/* ─── 工艺/流程条 ─── */
.flow-strip {
    display: flex; flex-wrap: wrap; gap: 10px;
    align-items: center;
}
.flow-strip .step {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    background: var(--pine-50);
    border: 1px solid var(--pine-100);
    border-radius: 10px;
    font-size: 13px; font-weight: 500;
    color: var(--pine-700);
}
.flow-strip .step.hot { background: var(--amber-50); border-color: var(--amber-100); color: #c2410c; }
.flow-strip .arrow { color: var(--gray-400); font-weight: 700; }

/* ─── 高亮框 ─── */
.callout {
    background: linear-gradient(135deg, var(--pine-50), var(--emerald-50));
    border-left: 3px solid var(--pine-500);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 20px 0;
    font-size: 15px; line-height: 1.9;
    color: var(--gray-600);
}
.callout strong { color: var(--pine-900); }

/* ─── 深色区块 ─── */
.dark-section {
    background: linear-gradient(135deg, var(--pine-900), #0b1830);
    color: #fff;
}
.dark-section .section-title { color: #fff; }
.dark-section .section-desc { color: var(--gray-400); }
.dark-section .section-tag { background: rgba(59,130,246,0.2); color: var(--pine-400); }

/* ─── 两栏 ─── */
.split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}
.split-visual {
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pine-900), var(--pine-800));
    padding: 48px 40px;
    min-height: 300px;
    display: flex; flex-direction: column;
    justify-content: center;
    position: relative;
}
.split-visual .big-symbol {
    font-size: 64px; font-weight: 200;
    color: rgba(59,130,246,0.12);
    font-family: 'Inter', monospace;
    position: absolute; top: 16px; right: 20px; line-height: 1;
}
.split-visual h3 { font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.split-visual .sv-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: var(--gray-300);
    margin-bottom: 12px;
}
.split-visual .sv-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pine-500); flex-shrink: 0; }
.split-text p { font-size: 15px; line-height: 2; color: var(--gray-600); margin-bottom: 18px; }
.split-text .sv-list { list-style: none; padding: 0; }
.split-text .sv-list li {
    padding: 10px 0; border-bottom: 1px solid var(--gray-100);
    font-size: 14px; color: var(--gray-600);
    display: flex; align-items: flex-start; gap: 10px;
}
.split-text .sv-list li::before { content: '›'; color: var(--pine-500); font-weight: 700; font-size: 18px; }

/* ─── 文章正文 ─── */
.prose { font-size: 15px; line-height: 2; color: var(--gray-600); }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--gray-900); margin: 32px 0 14px; }
.prose h4 { font-size: 17px; font-weight: 700; color: var(--gray-900); margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--pine-800); }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.prose th { background: var(--pine-900); color: #fff; font-weight: 600; padding: 10px 14px; text-align: left; }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); }

/* ─── FAQ 手风琴 ─── */
.faq-item { border: 1px solid var(--gray-200); border-radius: 14px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q {
    width: 100%; text-align: left;
    padding: 18px 22px;
    font-size: 15px; font-weight: 600;
    color: var(--gray-900); background: none; border: none;
    cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; gap: 12px; font-family: inherit;
}
.faq-q .plus { color: var(--pine-500); font-size: 20px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 22px 18px; font-size: 14px; line-height: 1.9; color: var(--gray-500); }

/* ─── 联系条 ─── */
.contact-strip {
    background: var(--pine-900);
    border-radius: 20px;
    padding: 40px;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    margin-top: 60px;
}
.contact-strip h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.contact-strip p { color: var(--gray-400); font-size: 14px; }
.contact-strip .hotline-num { color: var(--pine-400); font-family: 'Inter', monospace; font-size: 26px; font-weight: 800; }
.contact-strip .actions { display: flex; gap: 12px; }

/* ─── 新闻列表 ─── */
.news-list { list-style: none; padding: 0; }
.news-list li {
    border-bottom: 1px solid var(--gray-100);
    padding: 18px 4px;
}
.news-list a { text-decoration: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.news-list a:hover h3 { color: var(--pine-600); }
.news-list h3 { font-size: 17px; font-weight: 600; color: var(--gray-900); transition: color 0.2s; }
.news-list .date { font-size: 13px; color: var(--gray-400); font-family: 'Inter', monospace; white-space: nowrap; }
.news-list .sum { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ─── Footer ─── */
.footer {
    background: #050e1c;
    padding: 32px; text-align: center;
    font-size: 13px; color: var(--gray-500);
}
.footer a { color: var(--pine-400); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ─── 滚动动画 ─── */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── 响应式 ─── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .split { grid-template-columns: 1fr; gap: 32px; }
    .nav-links {
        position: fixed; top: 68px; left: 0; right: 0;
        background: var(--pine-900);
        flex-direction: column; padding: 16px 24px;
        border-bottom: 1px solid rgba(59,130,246,0.25);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .page-hero h1 { font-size: 30px; }
}
@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .section { padding: 60px 16px; }
    .page-hero { padding: 120px 16px 48px; }
    .section-title { font-size: 26px; }
    .contact-strip { padding: 28px; }
}

/* ════════════════════════════════════════════
   业务咨询浮窗（全站固定右下角）
   ════════════════════════════════════════════ */
.consult-fab { position: fixed; right: 20px; bottom: 20px; z-index: 9998; display: flex; flex-direction: column; align-items: flex-end; }
.cfab-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 13px 18px; border: none; border-radius: 50px; background: linear-gradient(135deg, var(--pine-500), var(--pine-700)); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(37,99,235,.35); transition: transform .2s, box-shadow .2s; }
.cfab-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,99,235,.45); }
.cfab-pulse { position: absolute; inset: 0; border-radius: inherit; background: rgba(96,165,250,.5); animation: cfabPulse 2.4s ease-out infinite; }
@keyframes cfabPulse { 0% { transform: scale(1); opacity: .7; } 70% { transform: scale(1.4); opacity: 0; } 100% { transform: scale(1.4); opacity: 0; } }
.cfab-icon, .cfab-label { position: relative; z-index: 1; }
.cfab-icon { font-size: 19px; line-height: 1; }
.cfab-label { letter-spacing: .5px; }
.cfab-panel { display: none; width: 302px; margin-bottom: 14px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(10,30,60,.18); border: 1px solid var(--gray-100); overflow: hidden; transform-origin: bottom right; }
.consult-fab.open .cfab-panel { display: block; animation: cfabPop .25s ease; }
@keyframes cfabPop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.cfab-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: linear-gradient(135deg, var(--pine-600), var(--pine-800)); color: #fff; font-weight: 700; font-size: 15px; }
.cfab-close { background: none; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; opacity: .85; transition: opacity .15s; }
.cfab-close:hover { opacity: 1; }
.cfab-panel-body { padding: 16px; }
.cfab-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; }
.cfab-call { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, var(--amber-500), #ea580c); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(249,115,22,.3); transition: transform .15s; }
.cfab-call:hover { transform: translateY(-1px); }
.cfab-call-num { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.cfab-call-txt { font-size: 12px; opacity: .92; }
.cfab-note { margin-top: 12px; text-align: center; font-size: 12px; color: var(--gray-400); }
@media (max-width: 600px) {
    .consult-fab { right: 14px; bottom: 14px; }
    .cfab-panel { width: min(292px, calc(100vw - 28px)); }
    .cfab-btn { padding: 12px 15px; font-size: 14px; }
}
