/* =========================================================
   业惠网络 - 全新官网样式
   上海业惠网络科技发展有限公司
   ========================================================= */

/* ---------- 基础 ---------- */
:root {
    --primary: #1e40af;
    --primary-dark: #172f8a;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray-800: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .15);
    --transition: all .3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg-light); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 56px; height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
}
.section-subtitle {
    margin-top: 12px;
    font-size: .85rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--text-light);
}
.section-desc {
    text-align: center;
    max-width: 720px;
    margin: -28px auto 40px;
    color: var(--text-light);
}

/* ---------- 导航栏 ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: var(--transition);
}
.navbar.scrolled { background: rgba(15, 23, 42, .98); box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 38px; width: auto; }
.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .05em;
}

.nav-menu ul { display: flex; gap: 8px; }
.nav-menu a {
    display: block;
    padding: 8px 14px;
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--white); background: rgba(255, 255, 255, .1); }
.nav-menu a.active { color: var(--white); background: var(--primary-light); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    width: 26px; height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 英雄区 ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url("../images/hero-bg.jpg") center / cover no-repeat;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .72), rgba(30, 64, 175, .55));
}
.hero-content { position: relative; z-index: 2; padding: 120px 24px 80px; }

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: .04em;
    animation: fadeUp .9s ease both;
}
.hero-subtitle {
    margin: 24px auto 40px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, .9);
    animation: fadeUp .9s .15s ease both;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp .9s .3s ease both;
}

.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn-primary { background: var(--primary-light); color: var(--white); }
.btn-primary:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(59, 130, 246, .45); }
.btn-outline { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); transform: translateY(-3px); }

.scroll-hint {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}
.scroll-mouse {
    width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}
.scroll-dot {
    width: 4px; height: 9px;
    border-radius: 2px;
    background: var(--white);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* ---------- 集团概览 ---------- */
.brief-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}
.brief-text .lead { font-size: 1.1rem; color: var(--dark); font-weight: 500; margin-bottom: 16px; }
.brief-text p { margin-bottom: 14px; }

.info-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.info-card::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 18px; position: relative; }
.info-card ul { position: relative; }
.info-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: .95rem;
    color: rgba(255, 255, 255, .92);
}
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--white);
    flex: 0 0 8px;
}

/* ---------- 队伍建设 ---------- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 48px;
}
.big-stat {
    background: linear-gradient(135deg, #eff6ff, var(--white));
    border: 1px solid #dbeafe;
    border-radius: var(--radius);
    padding: 30px 22px;
    text-align: center;
    transition: var(--transition);
}
.big-stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.big-num {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: inline-block;
}
.big-unit { font-size: 1.1rem; color: var(--primary-light); margin-left: 4px; }
.big-label {
    display: block;
    margin-top: 8px;
    font-size: .92rem;
    color: var(--text-light);
}

.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.chart-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    text-align: center;
}
.chart-card h3 { color: var(--dark); font-size: 1.1rem; margin-bottom: 22px; }

/* CSS Donut Chart - 使用 conic-gradient */
.donut {
    --size: 200px;
    width: var(--size);
    height: var(--size);
    margin: 0 auto;
    border-radius: 50%;
    background:
        conic-gradient(
            var(--c1) 0 calc(var(--p1) * 1%),
            var(--c2) calc(var(--p1) * 1%) calc((var(--p1) + var(--p2)) * 1%),
            var(--c3) calc((var(--p1) + var(--p2)) * 1%) calc((var(--p1) + var(--p2) + var(--p3)) * 1%),
            var(--c4) calc((var(--p1) + var(--p2) + var(--p3)) * 1%) 100%
        );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.donut-hole {
    width: 60%;
    height: 60%;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.donut-total {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.donut-cap {
    font-size: .8rem;
    color: var(--text-light);
    margin-top: 4px;
}

.legend-list {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 14px;
    text-align: left;
}
.legend-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text);
}
.legend-list i {
    width: 14px; height: 14px;
    border-radius: 3px;
    flex: 0 0 14px;
    display: inline-block;
}

/* ---------- 主营业务 ---------- */
.biz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.biz-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.biz-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
}
.biz-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.biz-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.biz-code {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    padding: 8px 14px;
    border-radius: 10px;
    letter-spacing: .04em;
}
.biz-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    line-height: 1.3;
}
.biz-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px dashed #e2e8f0;
}
.biz-sub span {
    font-size: .82rem;
    padding: 4px 10px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 20px;
}
.biz-list li {
    padding: 6px 0;
    padding-left: 18px;
    position: relative;
    font-size: .94rem;
    color: var(--text);
}
.biz-list li::before {
    content: "▸";
    color: var(--primary-light);
    position: absolute;
    left: 0;
}

.biz-flow {
    margin-top: 56px;
    background: linear-gradient(135deg, #f8fafc, var(--bg-light));
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
}
.biz-flow h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 32px;
}
.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.flow-step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 22px;
    position: relative;
    box-shadow: var(--shadow);
}
.flow-dot {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}
.flow-step h4 {
    margin-top: 10px;
    font-size: 1.1rem;
    color: var(--primary);
}
.flow-step p {
    margin-top: 10px;
    font-size: .88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ---------- 公司资质 ---------- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.cert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.cert-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cert-img-wrap {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--bg-light);
}
.cert-img-wrap img {
    width: 100%;
    height: 240px;
    object-fit: contain;
}
.cert-card figcaption { font-weight: 600; color: var(--dark); }

/* ---------- 客户与合作 ---------- */
.industries {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}
.ind-tag {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    font-size: .96rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}
.ind-tag:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind-tag-sm {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    font-size: .82rem;
    font-weight: 600;
}

.clients-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 64px;
}
.client-group {
    background: linear-gradient(135deg, #f8fafc, var(--bg-light));
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 0;
    transition: var(--transition);
    scroll-margin-top: 100px;
    overflow: hidden;
}
.client-group:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.client-group.open {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}
.client-group-header {
    padding: 18px 30px;
    transition: var(--transition);
}
.client-group:hover .client-group-header,
.client-group.open .client-group-header {
    background: rgba(59, 130, 246, .04);
}
.client-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
    font-size: 1rem;
    margin: 0;
}
.client-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: var(--white);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid var(--primary-light);
}

.client-chips {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 30px 22px;
}
/* 悬停展开 */
.client-group:hover > .client-chips,
.client-group:focus-within > .client-chips,
.client-group.open > .client-chips {
    display: flex;
    animation: slide-down .25s ease both;
}
@keyframes slide-down {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.client-chip {
    display: inline-block;
    padding: 7px 14px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text);
    font-size: .88rem;
    line-height: 1.4;
    transition: var(--transition);
    cursor: default;
}
.client-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    color: var(--primary);
    box-shadow: 0 6px 16px rgba(59, 130, 246, .18);
}
.client-chip-empty {
    color: var(--text-light);
    font-style: italic;
    background: transparent;
    border-style: dashed;
}

.partners {
    margin-top: 24px;
    background: linear-gradient(135deg, #f8fafc, var(--bg-light));
    border-radius: var(--radius);
    padding: 40px 32px;
}
.partners-title {
    font-size: 1.15rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 28px;
    letter-spacing: .04em;
}
.partners-track {
    display: flex;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.partners-row {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 56px;
    padding-right: 56px;
    animation: scroll-x 36s linear infinite;
}
.partners-track:hover .partners-row {
    animation-play-state: paused;
}
.partner-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(40%) opacity(.78);
    flex-shrink: 0;
}
.partner-logo:hover {
    filter: grayscale(0) opacity(1);
}
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ---------- 联系我们 ---------- */
.contact-section {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, .25), transparent 55%),
        radial-gradient(ellipse at 85% 85%, rgba(245, 158, 11, .18), transparent 55%),
        var(--dark);
}
.contact-section .section-title { color: var(--white); }
.contact-section .section-subtitle { color: rgba(255, 255, 255, .55); }

.contact-card {
    max-width: 860px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 44px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    backdrop-filter: blur(6px);
}
.contact-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-icon {
    flex: 0 0 52px;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}
.contact-item h4 { color: var(--white); font-size: 1.02rem; margin-bottom: 4px; }
.contact-item p { color: rgba(255, 255, 255, .82); font-size: .95rem; }
.contact-item a { color: var(--primary-light); }
.contact-item a:hover { text-decoration: underline; }
.email-placeholder { user-select: none; }

/* ---------- 页脚 ---------- */
.footer { background: #0b1220; color: rgba(255, 255, 255, .7); }
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 48px;
    padding: 64px 24px 48px;
}
.footer-logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer-slogan { font-size: .95rem; }
.footer h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}
.footer h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34px; height: 3px;
    border-radius: 2px;
    background: var(--primary-light);
}
.footer-links li { padding: 6px 0; }
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 6px; }
.footer-contact p { font-size: .92rem; padding: 4px 0; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 22px 0;
    text-align: center;
    font-size: .88rem;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.beian a { color: rgba(255, 255, 255, .55); margin: 0 8px; transition: var(--transition); }
.beian a:hover { color: var(--primary-light); }

/* ---------- 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    bottom: 36px; right: 36px;
    width: 48px; height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ---------- 滚动显现动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
    .biz-grid { grid-template-columns: repeat(2, 1fr); }
    .brief-grid { grid-template-columns: 1fr; gap: 32px; }
    .chart-grid { grid-template-columns: 1fr; }
    .flow-steps { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .section { padding: 68px 0; }
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 76px; left: 0; right: 0;
        background: rgba(15, 23, 42, .98);
        padding: 16px 24px 24px;
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-menu ul { flex-direction: column; gap: 4px; }
    .nav-menu a { padding: 12px 14px; font-size: 1.02rem; }

    .biz-grid { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; padding: 32px 24px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 36px; }
    .footer-bottom .container { flex-direction: column; }
    .hero { background-attachment: scroll; }
    .stat-row { grid-template-columns: 1fr; gap: 16px; }
    .legend-list { grid-template-columns: 1fr; }
    .client-group { padding: 22px 20px; }
    .ind-tag { padding: 8px 18px; font-size: .88rem; }
}

@media (max-width: 480px) {
    .cert-grid { grid-template-columns: 1fr; }
    .back-to-top { bottom: 24px; right: 24px; }
}