/* ===== common.css — 宇枫科技 公共样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.section-sub {
    text-align: center;
    font-size: 17px;
    color: #64748b;
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

    .btn-primary:hover {
        background: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    }

.btn-outline {
    display: inline-block;
    background: transparent;
    color: #2563eb;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid #2563eb;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .btn-outline:hover {
        background: #2563eb;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.30);
    }

/* ===== 导航栏 ===== */
.navbar {
    background: #0f172a;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 72px;
    }

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

    .logo span {
        color: #60a5fa;
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

    .nav-links a {
        color: #cbd5e1;
        font-size: 15px;
        font-weight: 500;
        transition: color 0.3s ease;
        position: relative;
        padding: 4px 0;
    }

        .nav-links a:hover {
            color: #ffffff;
        }

        .nav-links a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 0;
            height: 2px;
            background: #60a5fa;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

    .nav-links .active {
        color: #ffffff;
    }

        .nav-links .active::after {
            width: 100%;
        }

    .nav-links .contact-link {
        background: #2563eb;
        color: #fff;
        padding: 8px 22px;
        border-radius: 30px;
        font-weight: 600;
        transition: background 0.3s ease;
    }

        .nav-links .contact-link:hover {
            background: #1d4ed8;
            color: #fff;
        }

        .nav-links .contact-link::after {
            display: none;
        }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

    .menu-toggle span {
        display: block;
        width: 26px;
        height: 2.5px;
        background: #e2e8f0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

/* ===== 页面Banner (通用) ===== */
.page-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #2563eb 100%);
    padding: 70px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-banner .container {
        position: relative;
        z-index: 2;
    }

    .page-banner h1 {
        font-size: 44px;
        font-weight: 700;
        color: #ffffff;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

        .page-banner h1 span {
            color: #93c5fd;
        }

    .page-banner p {
        font-size: 18px;
        color: #bfdbfe;
        max-width: 640px;
        margin: 0 auto;
        line-height: 1.8;
    }

/* ===== 底部 ===== */
.footer {
    background: #0f172a;
    padding: 60px 0 30px;
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e293b;
}

.footer-brand .logo {
    font-size: 22px;
    margin-bottom: 14px;
    display: inline-block;
}

.footer-brand p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.8;
    max-width: 300px;
}

.footer-brand .social {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

    .footer-brand .social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: #1e293b;
        border-radius: 50%;
        color: #94a3b8;
        font-size: 16px;
        transition: all 0.3s ease;
    }

        .footer-brand .social a:hover {
            background: #2563eb;
            color: #ffffff;
            transform: translateY(-2px);
        }

.footer-col h5 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

    .footer-col ul li {
        margin-bottom: 10px;
    }

    .footer-col ul a {
        font-size: 14px;
        color: #94a3b8;
        transition: color 0.3s ease;
    }

        .footer-col ul a:hover {
            color: #60a5fa;
        }

.footer-contact p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-contact p i {
        width: 20px;
        color: #60a5fa;
    }

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

    .footer-bottom a {
        color: #64748b;
        transition: color 0.3s ease;
    }

        .footer-bottom a:hover {
            color: #60a5fa;
        }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        height: 64px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #0f172a;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        padding: 20px 24px 28px;
        gap: 16px;
        border-top: 1px solid #1e293b;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30);
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            font-size: 16px;
            padding: 6px 0;
        }

        .nav-links .contact-link {
            align-self: flex-start;
            padding: 8px 24px;
        }

    .menu-toggle {
        display: flex;
    }

    .page-banner {
        padding: 50px 0 60px;
    }

        .page-banner h1 {
            font-size: 32px;
        }

        .page-banner p {
            font-size: 16px;
        }

    .section-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-banner h1 {
        font-size: 26px;
    }
}


/* ===== 微信二维码弹出 ===== */
.social .wechat-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.qr-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #ffffff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

    .qr-popup::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 8px solid transparent;
        border-top-color: #ffffff;
    }

    .qr-popup img {
        width: 120px;
        height: 120px;
        display: block;
        border-radius: 4px;
    }

    .qr-popup .qr-tip {
        font-size: 12px;
        color: #64748b;
        font-weight: 400;
        white-space: nowrap;
    }

.social .wechat-wrapper:hover .qr-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.footer-brand .wechat-section {
    margin-top: 10px;
}

    .footer-brand .wechat-section .wechat-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: #0f172a;
        border-radius: 50%;
        color: #60a5fa;
        font-size: 18px;
        flex-shrink: 0;
    }

    .footer-brand .wechat-section .qr-small {
        width: 100px;
        height: 100px;
        border-radius: 6px;
        border: 2px solid #334155;
        flex-shrink: 0;
        display: block;
    }

    .footer-brand .wechat-section .wechat-text {
        font-size: 12px;
        color: #94a3b8;
        line-height: 1.5;
    }

        .footer-brand .wechat-section .wechat-text span {
            display: block;
            color: #e2e8f0;
            font-weight: 600;
            font-size: 13px;
        }





/* 仅保留二维码悬浮层 (右下角) */
.floating-qr {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    pointer-events: none; /* 容器不拦截事件，内部卡片可交互 */
}

.qr-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 16px 16px 14px 16px;
    width: 180px;
    text-align: center;
    border: 1px solid #e8ecf0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .qr-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
    }

.qr-title {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .qr-title svg {
        width: 18px;
        height: 18px;
        fill: #3b82f6;
    }

/* 二维码图片区域 */
.qr-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin: 0 auto 12px auto;
    display: block;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.qr-caption {
    font-size: 13px;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    display: inline-block;
    margin-top: 2px;
}

/* 小屏适配 */
@media (max-width: 600px) {
    .floating-qr {
        bottom: 20px;
        right: 16px;
    }

    .qr-card {
        width: 150px;
        padding: 12px 10px;
    }

    .qr-image {
        width: 96px;
        height: 96px;
    }
}
