/* 公共样式文件 - 顶部导航和底部样式 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 30% 70%, rgba(135, 206, 250, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(173, 216, 230, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(176, 224, 230, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f8f9fa 25%, #e3f2fd 50%, #f8f9fa 75%, #ffffff 100%);
}

#particles-js::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(135, 206, 250, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 206, 250, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

/* 顶部导航 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(59, 130, 246, 0.9));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(30, 58, 138, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.2);
}

.navbar.scrolled {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.98), rgba(59, 130, 246, 0.95));
    box-shadow: 0 2px 20px rgba(30, 58, 138, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: #ccc;
    font-weight: 300;
    letter-spacing: 1px;
    margin-left: 0.5rem;
    opacity: 0.8;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: #ff6b35;
    text-shadow: 0 0 10px #ff6b35;
    transform: scale(1.05);
}

.nav-links a.active {
    color: #ff6b35;
}

.nav-links a.active::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* 底部 */
.footer {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    padding: 1.5rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #cbd5e1;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #fff;
}

.contact-item .icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.beian-info {
    font-size: 0.75rem;
    color: #94a3b8;
}

.beian-info a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.beian-info a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
    }

    /* 隐藏桌面端导航 */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(30, 58, 138, 0.98), rgba(59, 130, 246, 0.95));
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    /* 移动端菜单展开状态 */
    .nav-links.active {
        left: 0;
    }

    /* 移动端菜单项样式 */
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        text-align: left;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 1rem;
    }

    /* Logo样式调整 */
    .logo {
        font-size: 1.4rem;
    }

    .logo-subtitle {
        display: none;
    }

    /* 底部样式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-section {
        text-align: center;
    }
}

/* 平板端优化 */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.5rem;
    }
}

/* 贵州成功案例样式 */
.guizhou-cases {
    padding: 80px 0;
    background: radial-gradient(circle at 50% 50%, rgba(135, 206, 250, 0.02) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #e3f2fd 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.case-card:hover::before {
    left: 100%;
}

.case-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.case-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.case-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e40af;
}

.case-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.case-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    background: linear-gradient(45deg, #3b82f6, #1e40af);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
