/* 华盛拓官网 - 公共样式 */
:root {
    --brand: #2563eb;
    --brand-light: #3b82f6;
    --dark: #0f172a;
    --gold: #eab308;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: break-word;
}

/* 首屏大标题：lg 及以上按容器宽度流式缩放，稳定为两行；窄屏自然换行 */
.hero-title {
    font-size: clamp(2.125rem, 2.05vw + 1.05rem, 3rem);
    line-height: 1.16;
    letter-spacing: -.01em;
    text-wrap: balance;
}
@media (max-width: 767.98px) {
    .hero-title {
        line-height: 1.22;
    }
}

/* 长英文 / URL 防撑破卡片 */
.break-anywhere {
    overflow-wrap: anywhere;
    word-break: break-word;
}

::selection {
    background: rgba(37, 99, 235, .18);
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 深色区块底部过渡到浅色区块 */
.section-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 130px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, #f8fafc 100%);
    pointer-events: none;
}

/* 关于我们 · 公司介绍排版 */
.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #3b82f6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
}
.about-eyebrow::before {
    content: "";
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, rgba(37, 99, 235, 0));
}
.about-point {
    position: relative;
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 2px solid rgba(37, 99, 235, .35);
}
.about-point:last-child {
    margin-bottom: 0;
}
.about-point-title {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}
.about-point-text {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.85;
}

/* 关于我们 · 公司实力背景 */
.about-strength-panel {
    position: relative;
    overflow: hidden;
    padding: 56px;
    margin-bottom: 80px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    background-color: #0b1220;
}
.about-strength-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}
.about-strength-shade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(100deg, rgba(2, 6, 23, .96) 0%, rgba(2, 6, 23, .86) 42%, rgba(2, 6, 23, .5) 100%);
}
@media (max-width: 767px) {
    .about-strength-panel {
        padding: 28px 22px;
        margin-bottom: 56px;
        border-radius: 22px;
    }
    .about-strength-shade {
        background: linear-gradient(180deg, rgba(2, 6, 23, .94) 0%, rgba(2, 6, 23, .86) 55%, rgba(2, 6, 23, .66) 100%);
    }
}

/* 首页 · 业务与产品图片墙 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 300px;
    gap: 20px;
}
.product-tile {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    isolation: isolate;
}
.product-tile--wide {
    grid-column: span 2;
}
.product-tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.product-tile:hover img {
    transform: scale(1.04);
}
.product-tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 6, 23, .9) 0%, rgba(2, 6, 23, .55) 34%, rgba(2, 6, 23, 0) 70%);
    z-index: 1;
}
.product-tile-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 30px;
}
.product-tile-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.35;
}
.product-tile--wide .product-tile-title {
    font-size: 28px;
}
.product-tile-desc {
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.75;
    max-width: 32rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-tile--wide .product-tile-desc {
    font-size: 15px;
    max-width: 42rem;
}
@media (max-width: 767px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 240px;
        gap: 14px;
    }
    .product-tile-body {
        padding: 20px;
    }
    .product-tile-title {
        font-size: 18px;
    }
    .product-tile--wide .product-tile-title {
        font-size: 22px;
    }
    .product-tile-desc {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-tile--wide .product-tile-desc {
        font-size: 14px;
    }
}

/* 首屏网格纹理 */
.hero-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}

/* 文字渐变 */
.text-gradient {
    background: linear-gradient(100deg, #60a5fa 0%, #22d3ee 55%, #a5f3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 暗码扫描动画 */
.tech-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .9), transparent);
    box-shadow: 0 0 18px rgba(34, 211, 238, .8);
    animation: techScan 3.2s ease-in-out infinite;
}

@keyframes techScan {
    0%, 100% { top: 12%; opacity: .25; }
    50% { top: 86%; opacity: 1; }
}

.tech-pulse {
    animation: techPulse 2.4s ease-in-out infinite;
}

@keyframes techPulse {
    0%, 100% { opacity: .35; transform: scale(.94); }
    50% { opacity: .9; transform: scale(1.04); }
}

/* 卡片悬浮 */
.card-lift {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    overflow-wrap: break-word;
}
.card-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -18px rgba(15, 23, 42, .25);
}

/* 四步闭环 · 整卡悬浮特效（效果全部收在卡片内部） */
.process-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s cubic-bezier(.22, 1.28, .36, 1), border-color .35s ease,
        background-color .35s ease, box-shadow .35s ease;
    will-change: transform;
}
.process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(circle at 85% 12%, rgba(59, 130, 246, .28), transparent 46%),
        radial-gradient(circle at 12% 100%, rgba(37, 99, 235, .22), transparent 52%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
    z-index: -1;
}
.process-card:hover,
.process-card.is-hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, .45);
    background-color: rgba(37, 99, 235, .08);
    box-shadow: 0 20px 40px -18px rgba(37, 99, 235, .65), 0 0 0 1px rgba(96, 165, 250, .18) inset;
}
.process-card:hover::before,
.process-card.is-hover::before {
    opacity: 1;
}
.process-card-number {
    transition: color .35s ease, text-shadow .35s ease;
}
.process-card:hover .process-card-number,
.process-card.is-hover .process-card-number {
    color: #93c5fd;
    text-shadow: 0 0 18px rgba(96, 165, 250, .55);
}
.process-card-sheen {
    position: absolute;
    top: -60%;
    left: -45%;
    width: 28%;
    height: 220%;
    background: linear-gradient(90deg, transparent, rgba(147, 197, 253, .22), transparent);
    transform: rotate(18deg);
    pointer-events: none;
    animation: process-card-sheen .9s ease-out forwards;
}
@keyframes process-card-sheen {
    0% { left: -45%; opacity: 0; }
    18% { opacity: 1; }
    100% { left: 118%; opacity: 0; }
}

/* 图片缩放 */
.img-zoom img {
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.img-zoom:hover img {
    transform: scale(1.06);
}

/* 登录/加载 */
.loading-screen {
    transition: opacity .45s ease, visibility .45s ease;
}
.loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(37, 99, 235, .15);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 骨架屏 */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 12px;
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
    animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
    100% { transform: translateX(100%); }
}

/* FAQ 展开 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, opacity .35s ease;
    opacity: 0;
}
.faq-item.is-open .faq-answer {
    max-height: 1000px;
    opacity: 1;
}
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    color: var(--brand);
}
.faq-icon {
    transition: transform .3s ease, color .3s ease;
}

/* 文章正文排版 */
.article-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 48rem;
    margin-inline: auto;
    overflow-wrap: anywhere;
}
.article-content > :first-child {
    margin-top: 0;
}
.article-content > :last-child {
    margin-bottom: 0;
}
.article-content p {
    margin: 1.15em 0;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    color: #0f172a;
    font-weight: 700;
    margin: 1.8em 0 .7em;
    line-height: 1.4;
}
.article-content h2 {
    font-size: 1.5rem;
}
.article-content h3 {
    font-size: 1.18rem;
    padding-left: 14px;
    border-left: 4px solid var(--brand);
}
.article-content h4 {
    font-size: 1.05rem;
    margin: 1.4em 0 .55em;
}
.article-content ul,
.article-content ol {
    margin: 1.1em 0;
    padding-left: 1.4em;
}
.article-content li {
    margin: .5em 0;
}
.article-content strong {
    color: #0f172a;
}
.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.4em 0;
}
.article-content iframe,
.article-content video,
.article-content pre {
    max-width: 100%;
    border-radius: 12px;
}
.article-content pre {
    overflow-x: auto;
}
.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}
.article-content a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
@media (max-width: 640px) {
    .article-content {
        font-size: 1rem;
        line-height: 1.85;
    }
    .article-content h2 {
        font-size: 1.3rem;
    }
    .article-content h3 {
        font-size: 1.08rem;
    }
    .article-content img {
        border-radius: 10px;
    }
}

/* 表单 */
.form-input {
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
    background: #fff;
}

/* 顶部导航选中态 */
.nav-link {
    color: #cbd5e1;
    font-weight: 500;
    white-space: nowrap;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.nav-link:hover {
    color: #ffffff;
}
.nav-link.nav-active {
    color: #3b82f6;
    font-weight: 700;
    border-bottom-color: #3b82f6;
}
.mobile-nav-link {
    color: #cbd5e1;
    transition: color .2s ease, background-color .2s ease;
}
.mobile-nav-link.nav-active {
    color: #60a5fa;
    background: rgba(59, 130, 246, .14);
}

/* 主导航：md 区间收窄字距/字号，避免 768-1023 挤压换行 */
.nav-main a {
    white-space: nowrap;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    .nav-main a {
        font-size: .8125rem;
    }
}

/* 移动端菜单触控高度 */
@media (max-width: 767.98px) {
    .mobile-nav-link {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}

/* 右侧悬浮操作：避开底部安全区，避免贴边 */
.float-actions {
    position: fixed;
    right: 1rem;
    bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
@media (max-width: 640px) {
    .float-actions {
        right: .75rem;
        bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
        gap: .5rem;
    }
    .float-actions > a,
    .float-actions > button {
        width: 2.75rem;
        height: 2.75rem;
    }
}

/* 品牌墙横向滚动 */
.brand-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brand-marquee-track {
    display: flex;
    width: max-content;
    gap: .75rem;
    animation: brandScroll 46s linear infinite;
}
.brand-marquee:hover .brand-marquee-track {
    animation-play-state: paused;
}
.brand-marquee-list {
    display: flex;
    gap: .75rem;
}
.brand-item {
    flex-shrink: 0;
    width: 8.5rem;
    height: 3.6rem;
    overflow: hidden;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: .5rem;
    background: #1e293b;
    color: #cbd5e1;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .1em;
    opacity: .7;
    transition: opacity .2s ease, background-color .2s ease;
}
.brand-item:hover {
    opacity: 1;
    background: #334155;
}
.brand-item--logo {
    padding: 0;
    white-space: normal;
}
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: .5rem;
    filter: grayscale(1) brightness(1.5);
    opacity: .9;
    transition: filter .2s ease, opacity .2s ease;
}
.brand-item:hover .brand-logo {
    filter: none;
    opacity: 1;
}
@keyframes brandScroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - .375rem)); }
}
@media (prefers-reduced-motion: reduce) {
    .brand-marquee {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .brand-marquee-track {
        animation: none;
    }
}

/* 锚点定位避开固定导航 */
section[id] {
    scroll-margin-top: 92px;
}

/* 隐藏 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

