/* ===== CSS 变量 & 重置 ===== */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --radius: 16px;
    --shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.5);
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

.navbar .logo i {
    color: var(--primary-light);
    font-size: 1.6rem;
}

.navbar .logo span {
    background: linear-gradient(135deg, #fff 30%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links a {
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(79, 70, 229, 0.2);
}

.nav-links a.active {
    background: var(--primary);
    color: #fff;
}

/* 移动端汉堡按钮 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #fff;
    border-radius: 4px;
    transition: var(--transition);
}

/* ===== 页面容器 ===== */
.page-section {
    min-height: 100vh;
    padding-top: 70px;
    display: flex;
    align-items: flex-start;
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

/* ===== 首页 Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%),
        var(--bg-dark);
    padding-top: 70px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.4rem;
    border-radius: 40px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    font-size: 0.85rem;
    color: var(--primary-light);
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.2rem;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 30px -8px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px -8px rgba(79, 70, 229, 0.6);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-3px);
}

/* ===== 首页特色卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== 通用标题 ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* ===== 产品服务卡片 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 70, 229, 0.15);
    box-shadow: var(--shadow);
}

.service-card .icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.service-card .icon i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.service-card .tag {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(79, 70, 229, 0.15);
}

/* ===== 简介页面 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item .number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.value-item i {
    color: var(--primary-light);
    font-size: 1.2rem;
    margin-top: 4px;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== 联系我们 ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info .info-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-card);
    padding: 1.2rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info .info-item i {
    font-size: 1.4rem;
    color: var(--primary-light);
    width: 40px;
    text-align: center;
}

.contact-info .info-item .detail h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-info .info-item .detail p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ===== 页脚 ===== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer .social {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.footer .social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .social a:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

/* 悬浮侧边栏容器，固定在右侧底部 */
 /* 侧边栏容器：固定在右侧 */
        .side-bar {
            position: fixed;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            z-index: 1000;
            display: none;
            flex-direction: column;
            gap: 2px;
        }

        /* 每个项的基础样式 */
        .side-bar-item {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background-color: #ddd;
            color: #333;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            border-radius: 6px 0 0 6px;
        }

        .side-bar-item i {
            font-size: 1.5rem;
        }

        /* 微信图标 hover 效果 */
        .side-bar-item.wechat:hover {
            background-color: #07C160;
            color: #fff;
        }

        /* QQ 图标 hover 效果 */
        .side-bar-item.qq:hover {
            background-color: #12B7F5;
            color: #fff;
        }

        /* 电话图标 hover 效果 */
        .side-bar-item.phone:hover {
            background-color: #4f46e5;
            color: #fff;
        }

        /* 微信二维码弹出层 */
        .chat-tips {
            position: absolute;
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
            background: #fff;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            display: none;
            border: 1px solid #e0e0e0;
        }

        .chat-tips img {
            width: 140px;
            height: 140px;
        }

        .chat-tips::after {
            content: '';
            position: absolute;
            right: -8px;
            top: 50%;
            transform: translateY(-50%);
            border: 8px solid transparent;
            border-left-color: #fff;
        }

        .side-bar-item.wechat:hover .chat-tips {
            display: block;
        }

        /* 侧边栏文字提示 */
        .side-bar-item .label {
            display: none;
            position: absolute;
            right: 55px;
            background: #333;
            color: #fff;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.8rem;
            white-space: nowrap;
        }

        .side-bar-item:hover .label {
            display: block;
        }

        /* 页面内容占位 */
        .content {
            padding: 40px;
            max-width: 800px;
            margin: 0 auto;
            font-family: Arial, sans-serif;
            line-height: 1.8;
        }

        .content h1 {
            margin-bottom: 20px;
        }

        .content p {
            margin-bottom: 20px;
            color: #555;
        }
 

/* 微信图标颜色（经典绿色） */
.fa-weixin {
    color: #07C160;
}

/* QQ 图标颜色（经典蓝色） */
.fa-qq {
    color: #12B7F5;
}

/* 或者使用更现代的渐变或阴影效果 */
.info-item i {
    font-size: 1.5rem; /* 调整图标大小 */
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.2); /* 悬停时放大 */
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 0.3rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .stat-item .number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 2rem 1.2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}