/* ========= 全局重置与变量 ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1F2A44;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    --primary-deep: #3B22E9;
    --primary-light: #5F46FF;
    --primary-soft: #EEEAFF;
    --primary-glow: rgba(59, 34, 233, 0.12);
    --primary-dark: #2D17B5;
    --bg-light: #ffffff;
    --bg-alt: #F9F8FF;
}

/* ========= 滚动条 ========= */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F0EEFF;
}
::-webkit-scrollbar-thumb {
    background: #3B22E9;
    border-radius: 10px;
}

/* ========= 容器 ========= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========= 按钮样式 ========= */
.btn-primary {
    background: linear-gradient(105deg, #3B22E9 0%, #5F46FF 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 44px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(59, 34, 233, 0.28);
    text-decoration: none;
}
.btn-primary:hover {
    background: linear-gradient(105deg, #2D17B5 0%, #3B22E9 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px -6px rgba(59, 34, 233, 0.45);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid #CEC9FF;
    color: #3B22E9;
    padding: 10px 24px;
    border-radius: 44px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn-outline:hover {
    border-color: #3B22E9;
    background: #F5F3FF;
    color: #2D17B5;
    transform: translateY(-1px);
}

/* ========= 导航栏样式 ========= */
.navbar {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    z-index: 50;
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 16px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}
.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo span {
    font-weight: 700;
    background: linear-gradient(135deg, #3B22E9, #6F55FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.logo img {
    height: 38px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}
.menu-toggle {
    display: none;
}

/* 主菜单链接样式 */
.nav-links > a, .dropdown > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    transition: color 0.2s;
    text-decoration: none;
    color: #2F2A6E;
    font-weight: 500;
}
.nav-links > a:hover, .dropdown:hover > a {
    color: #3B22E9;
}

/* 下拉箭头 */
.dropdown > a i.fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.2s;
    position: relative;
    top: 2px;
}
.dropdown:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}
.dropdown {
    position: relative;
}
.dropdown > a {
    cursor: pointer;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: auto;
    min-width: 260px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
    border: 1px solid #E8E2FF;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
    margin-top: 12px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    margin: 0 8px;
    color: #3B22E9;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 8px;
    text-decoration: none;
}
.dropdown-menu a:hover {
    background: #F5F3FF;
    color: #3B22E9;
}
.dropdown-menu a i {
    width: 24px;
    margin-right: 10px;
    color: #3B22E9;
    font-size: 0.95rem;
    text-align: center;
}

/* ========= 底部样式 ========= */
footer {
    padding: 52px 0 0;
    background-color: var(--bg-alt);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 48px;
    padding-bottom: 40px;
}
.about-brand {
    flex: 1.2;
    min-width: 240px;
}
.about-brand h4 {
    color: #3B22E9;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.about-brand .about-desc {
    color: #4B44A0;
    line-height: 1.6;
    background: #FFFFFF;
    padding: 16px 18px;
    border-radius: 24px;
    border-left: 4px solid #3B22E9;
    font-size: 1rem;
}
.footer-col {
    flex: 1;
    min-width: 180px;
}
.footer-col h4 {
    color: #3B22E9;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1.1rem;
}
.footer-col a {
    display: block;
    text-decoration: none;
    color: #5F59A5;
    transition: 0.2s;
    line-height: 2.2;
    font-size: 0.95rem;
}
.footer-col a:hover {
    color: #3B22E9;
    transform: translateX(4px);
}
.copyright-wrapper {
    width: 100%;
    border-top: 1px solid #D4CCFF;
    background-color: var(--bg-alt);
}
.copyright-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 32px;
    text-align: center;
    color: #7A73B5;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

/* ========= 返回顶部按钮 ========= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(105deg, #3B22E9, #5F46FF);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    border: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-4px);
}