body {
    margin: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #f5f7fa;
    color: #222;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

header {
    background: rgba(55, 108, 255, 0.85); /* #376cff 主色调 */
    position: fixed;
    width: 100vw;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(6px);
}

.navbar {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    background: transparent;
}

.logo {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.2s, background 0.2s;
    border-radius: 6px;
    padding: 6px 14px;
}

.nav-links li a:hover {
    color: #fff;
    background: #376cff;
}

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    margin-top: 40px;
    scroll-margin-top: 90px;
}

.home-section {
    position: relative;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    left: unset;
    right: unset;
}

.home-bg-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: url('./img/tm_home.jpg') center center/cover no-repeat;
    filter: brightness(0.6);
    z-index: 1;
}

.home-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 120px 20px 120px 20px;
}

.home-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-block;
    background: #376cff;
    color: #fff;
    padding: 16px 40px;
    border-radius: 32px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(55,108,255,0.08);
}
.download-btn:hover {
    background: #2450b3;
}

footer {
    text-align: center;
    padding: 30px 0;
    background: #1a2236;
    color: #fff;
    margin-top: 60px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 36px;
    height: 36px;
    margin-left: 20px;
    z-index: 1100;
}
.menu-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1300px) {
    .section {
        max-width: 98vw;
    }
    .navbar {
        max-width: 100vw;
        padding: 0 10px;
    }
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: row;
        height: 70px;
        gap: 0;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    .logo {
        flex: 1 0 auto;
    }
    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #1a2236;
        flex-direction: column;
        width: 180px;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        display: none;
        border-radius: 0 0 12px 12px;
        overflow: hidden;
        z-index: 1001;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: left;
    }
    .nav-links li a {
        display: block;
        padding: 16px 24px;
        border-bottom: 1px solid #222a3a;
        font-size: 1rem;
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .section {
        scroll-margin-top: 70px;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.3rem;
    }
    .logo-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .section {
        /* padding: 5px 5px 20px 5px; */
        margin-top: 20px;
    }
    .home-content {
        padding: 40px 5px 40px 5px;
    }
    .home-content h1 {
        font-size: 1.3rem;
    }
    .home-section {
        min-height: 40vh;
        height: 40vh;
    }
    .home-bg-img {
        height: 40vh;
        min-height: 180px;
    }
    .main {
        margin-top: 60px;
    }
}
