* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans SC", system-ui, sans-serif;
    color: #4b5563;
    background: #fff;
    line-height: 1.75;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

:root {
    --primary: #c40e2a;
    --secondary: #1f2e4c;
    --lightgray: #f5f7fa;
}

/* ========== 头部导航 ========== */
header.sticky-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 48px;
    height: 48px;
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    clip-path: inset(6% round 12px);
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1;
}

.pc-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.pc-nav a {
    text-decoration: none;
    color: #4b5563;
    font-size: 20px;
}

.pc-nav a.active {
    color: var(--primary);
    font-weight: bold;
}

.dropdown {
    position: relative;
}

.dropdown>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    font-size: 18px;
    color: #666;
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: translateY(2px);
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #fff;
    box-shadow: 0 2px 12px #00000022;
    border-radius: 6px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #4b5563;
    font-size: 18px;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.menu-btn {
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--secondary);
    cursor: pointer;
    display: none;
}

.mobile-menu {
	display:none;
    background:#ffffff;
    border-top:1px solid #eee;
    /* 修复：左右留边，不要贴屏幕边缘 */
    padding:16px 20px;
}

.mobile-menu a {
  display:block;
    padding:10px 0;
    text-decoration:none;
    color:#4b5563;
    font-size:17px;
    border-bottom:1px solid #f3f4f6;
}

.mobile-menu .sub-item {
   padding‑left:28px;
    font‑size:15px;
    color:#6b7280;
}

/* ========== 通用区块卡片 ========== */
section {
    padding: 56px 0;
}

.bg-light {
  /*  background: var(--lightgray);*/
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    margin-bottom: 24px;
}

.block-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 36px;
    scroll-margin-top: 80px;
}

.product-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
}

.product-head h3 {
    font-size: 20px;
    color: var(--secondary);
    font-weight: 700;
}

.btn-consult {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-consult:hover {
    opacity: 0.9;
}

.product-desc {
    margin-bottom: 20px;
}

.product-desc>p {
    margin-bottom: 12px;
    color: #4b5563;
    text-align: justify;
}

/* ========== 流程图公共组件 ========== */
.flow-wrap-desktop {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 4px 16px;
    background: #fafafa;
    border-radius: 8px;
}

.flow-svg {
    display: block;
}

.flow-wrap-mobile {
    display: none;
    background: #fafafa;
    border-radius: 8px;
    padding: 16px 12px;
}

.mobile-flow-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 22px;
    cursor: pointer;
}

.mobile-flow-item:last-child {
    padding-bottom: 0;
}

.mobile-flow-item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 4px;
    width: 2px;
    height: calc(100% - 22px);
    background: #4477cc;
}

.mobile-flow-item:last-child::before {
    display: none;
}

.mobile-flow-dot {
    position: absolute;
    left: 4px;
    top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c40e2a;
}

.mobile-flow-box {
    background: #c40e2a;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.flow-tip {
    position: fixed;
    z-index: 2000;
    max-width: 260px;
    background: #222;
    color: #fff;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    display: none;
    pointer-events: none;
}

/* ========== 页脚公共样式 ========== */
footer {
    background: var(--secondary);
    color: #fff;
    padding: 48px 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    color: #d1d5db;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-phone {
    font-size: 24px !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
    line-height: 1.4;
    margin: 10px 0 0;
    display: block;
}

.footer-nav h4,
.footer-qrcode-block h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.footer-nav-grid a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
}

.footer-nav-grid a:hover {
    color: #fff;
}

.footer-qrcode-block {
    text-align: center;
}

.footer-qrcode-img {
    width: 110px;
    height: auto;
    border-radius: 6px;
    background: #fff;
    padding: 8px;
}

.footer-qrcode-tip {
    margin-top: 10px;
    font-size: 13px;
    color: #d1d5db;
}

.footer-links-section {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    margin-bottom: 24px;
}

.footer-links-section h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.footer-img-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.footer-img-links a {
    display: block;
}

.footer-img-links img {
    height: 34px;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-text-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-text-links a {
    color: #d1d5db;
    font-size: 14px;
    text-decoration: none;
}

.footer-text-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.pc-nav a.active{
    color: var(--primary) !important;
    font-weight: 700 !important;
}

/* ========== 响应式媒体查询 ========== */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-qrcode-block {
        grid-column: span 2;
    }
    .footer-qrcode-img {
        width: 100px;
    }
}

@media(max-width:768px){
    .pc-nav{display:none;}
    .menu-btn{display:block;}
    .mobile-menu{display:block;}

    section{padding:36px 0;}
    .section-title{font-size:20px;}
    .block-card{padding:18px;margin-bottom:24px;}
    .product-head{flex-direction:column;}
    .product-head h3{font-size:18px;}

    .flow-wrap-desktop{display:none !important;}
    .flow-wrap-mobile{display:block !important;}

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-qrcode-block {
        grid-column: span 1;
    }
    .footer-nav-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .footer-phone {
        font-size:22px;
    }
    .footer-img-links {
        justify-content: center;
    }
    .footer-text-links {
        justify-content: center;
    }
    
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  /* 重点：设置min-height，防止容器过矮导致spinner压扁 */
  min-height:140px;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  z-index: 10;
}

.loading-spinner {
  width:36px;
  height:36px;
  border: 3px solid #eee;
  border-top-color: var(--primary, #c8102e);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  /* 强制保证是正圆 */
  box-sizing:border-box;
}
/* 全局a链接重置，点击访问后不变色 */
a:link,
a:visited,
a:active {
    color: inherit; /* 继承父元素文字颜色，推荐！不用硬写色值，适配面包屑、列表、导航 */
    text-decoration: none;
}
/* hover单独控制hover效果，你项目hover统一用主色var(--primary) */
a:hover {
    color: var(--primary);
    text-decoration: none;
}

