:root{
    --main-bg-color:rgb(215, 198, 231);
    --main-hr-color:rgb(65, 170, 226);
    --main-fs-size:1.2rem;
    --text-color: #333;
    --white: #ffffff;
    --primary-color: rgb(65, 170, 226);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}
.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 导航------------------------------------------ */
.header{
    height: 80px;
    background: var(--main-bg-color);
    font-size: var(--main-fs-size);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}
.navbar{
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.navbar_mun{
    height: 100%;
    display: inline-flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}
.navbar_item{
    width: 80px;
    text-align: center;
}
.navbar_link{
    display: inline-block;
    width: 100%;
    height: 100%;
    color: white;
}
.navbar_link:hover{
    color: var(--main-hr-color);
}

/* 移动端汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-icon {
    width: 16px;
    height: 16px;
}

.footer-copyright {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 - 平板设备 */
@media screen and (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .navbar {
        padding: 0 20px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--main-bg-color);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .navbar_mun {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }
    
    .navbar_item {
        width: 100%;
        text-align: center;
    }
    
    .navbar_link {
        padding: 15px;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }
    
    .navbar_link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* 响应式设计 - 手机设备 */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        height: 60px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
    }
}

/* 汉堡菜单动画 */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
