:root {
    --main-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 重置默认边距并设置全局样式 */
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background-color: #121212;
    font-family: var(--main-font);
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}




html, body {
    overflow-x: hidden;
    max-width: 100%;
}



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(20, 20, 20, 0.8);
    z-index: 1000;
}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}
.nav-logo {
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}


.nav-item {
    position: relative;
    display: inline-block;
}
.nav-item:hover .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



.nav-item {
    position: relative;
}
.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
}
/* 新增或修改的 CSS，仅限于下拉导航显示部分 */
.nav-item {
    position: static; /* 确保 dropdown 可以占据整个屏幕宽度 */
}
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(40, 40, 40, 0.95);
    padding: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.dropdown-column {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dropdown-column a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.dropdown-column a:hover {
    color: #5b23e8;
    border-left: 3px solid #5b23e8;
    padding-left: 0.5rem;
}
.dropdown-image {
    width: 90%;
    height: 150px;
    background-color: #555;
    border-radius: 8px;
}

.nav-item:hover .dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}



.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-auth {
    padding: 0.4rem 1rem;
    background-color: transparent;
    border: 1px solid #5b23e8;
    color: #dddddd;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
}
.btn-auth:hover {
    background-color: #5b23e8;
    color: #dddddd;
}







































.hero-wrapper {
    scroll-behavior: smooth;
}

.hero {
    /* 让 hero 区块撑满视口高度 */
    min-height: 100vh;
    width: 100%;

    /* 背景设置 */
    background-size: cover;
    background-position: center;

    /* 核心：垂直＋水平彻底居中 */
    display: flex;
    flex-direction: column;    /* 垂直方向堆叠 title/subtitle */
    justify-content: center;   /* 垂直居中 */
    align-items: center;       /* 水平居中 */

    /* 仅在左右留内边距 */
    padding: 0 2rem;
    box-sizing: border-box;    /* 让 padding 包含在宽度计算内 */

    position: relative;
    text-align: center;
    color: #fff;
}

/* 示例渐变背景 */
.hero-1 {
    background: linear-gradient(
            135deg,
            #4a03fb,
            #5b23e8,
            rgb(135, 0, 255),
            #8700ff
    );
}

/* 标题/副标题去掉默认外边距，自己控制间距 */
.hero-title {
    font-size: 7rem;
    margin: 0;       /* 清除默认上下 margin */
}

.hero-subtitle {
    font-size: 2rem;
    color: #ccc;
    margin: 0.5rem 0 0;  /* 只在上方留 0.5rem */
}


/* 响应式文字优化 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
}



#heroTitle::after, #heroSubtitle::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #fff;
    margin-left: 2px;
    animation: blink 1s steps(2, start) infinite;
    vertical-align: bottom;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}





























.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    color: #fff;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
}

.footer-bar {
    background: rgba(30, 30, 30, 0.9);
    text-align: center;
    padding: 0.5rem;
    font-size: 1rem;
}

.footer-expanded {
    background-color: #111;
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.6s ease, opacity 0.6s ease;
    flex-wrap: wrap;
}

.footer-expanded.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 三列布局 */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.col-1 { width: 25%; }
.col-2 { width: 25%; }
.col-3 { width: 50%; }

.footer-col h4 {
    color: #5b23e8;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .footer-expanded {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-col {
        width: 100% !important;
    }

}
















/* 所有需要浮现动画的 section，都加上 .section */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

/* 激活显示时的状态 */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}
























