* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

:root {
    --primary-color: #165DFF;
    --secondary-color: #36CFC9;
    --dark-color: #1D2129;
    --light-color: #F2F3F5;
    --white: #FFFFFF;
    --text-gray: #86909C;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 全按钮圆润设计核心 */
.btn {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 93, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* 导航栏 - 修复logo+分页高亮 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 修复logo：强制不换行+适配字号 */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap; /* 强制不换行，解决分行问题 */
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* 当前分页高亮 */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-top: 80px;
}

/* Hero主视觉区（首页专用） */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    color: var(--light-color);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 通用区块标题 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
}

/* 通用内页区块 */
.page-section {
    padding: 80px 0;
}

.page-section:nth-child(even) {
    background: var(--light-color);
}

/* 关于我们页 */
.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--dark-color);
    text-indent: 2em;
}

/* 核心项目展示区 */
.projects {
    padding: 80px 0;
    background: var(--light-color);
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(22, 93, 255, 0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card-content {
    padding: 25px;
}

.project-card-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-card-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-card-content .btn {
    padding: 8px 24px;
    font-size: 14px;
    border-radius: 50px;
}

.empty-tips {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-gray);
    font-size: 18px;
    padding: 40px 0;
}

/* 解决方案网格 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.solution-card {
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #F8FAFF 0%, #F0F7FF 100%);
    border: 1px solid #E8F3FF;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 93, 255, 0.1);
}

.solution-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.solution-card p {
    color: var(--dark-color);
    line-height: 1.8;
}

/* 联系我们页 */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-gray);
    line-height: 2;
}

/* 页脚 */
.footer {
    padding: 30px 0;
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    margin-top: auto;
}

.footer p {
    color: var(--text-gray);
}

/* 移动端响应式适配 */
@media (max-width: 768px) {
    /* 移动端logo字号调整 */
    .logo {
        font-size: 22px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .hero {
        padding: 60px 0;
    }

    .page-section {
        padding: 50px 0;
    }

    .project-list {
        grid-template-columns: 1fr;
    }

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

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* 超小屏适配 */
@media (max-width: 480px) {
    .nav-menu {
        gap: 8px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .logo {
        font-size: 20px;
    }
}
