:root {
    --main-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 重置默认边距并设置全局样式 */
html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    background-color: #0d0d0d;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}








.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: #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: transparent;
    border: 1px solid #5b23e8;
    color: #dddddd;
}



/* 这个是后端变化  身份认证 按钮  也在变化的... */
/* 这个是后端变化  身份认证 按钮  也在变化的... */
/* 这个是后端变化  身份认证 按钮  也在变化的... */
.nav-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.btn-auth {
    padding: 0.4rem 1rem;
    background-color: #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: transparent;
    border: 1px solid #5b23e8;
    color: #dddddd;
}

/* --- 新增 CSS 规则 --- */

/* 登录状态下的用户区域样式 */
.user-info-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover; /* 确保图片不变形 */
    border: 2px solid transparent;
    transition: border-color 0.3s;
}
.user-info-link:hover .user-avatar {
    border-color: #5b23e8; /* 悬停时边框变色 */
}
.user-name {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}
.user-info-link:hover .user-name {
    color: #5b23e8; /* 悬停时文字变色 */
}

/* 切换显示/隐藏的通用工具类 */
.hide-if-not-logged-in {
    display: none;
}
.show-if-logged-in {
    display: flex; /* 或 block，根据你的布局 */
}














.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-expanded {
    background: rgba(17, 17, 17, 0.38);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    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 的样式，因为我们将使用一个新类 */

.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;
}

/*
 * 新增的右侧列布局
 */
.footer-new-right-col {
    width: 50%; /* 保持与原有 col-3 相同的宽度 */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 将所有内容推到右侧 */
    gap: 1.5rem;
    text-align: right;
}

.footer-new-right-col .title-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-new-right-col .main-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.footer-new-right-col .sub-title {
    font-size: 1rem;
    color: #aaa;
    margin: 0;
}

.footer-new-right-col .social-logos {
    display: flex;
    gap: 1rem;
}

.footer-new-right-col .social-logos .logo {
    font-size: 1.5rem; /* 调整图标大小 */
    color: #fff;
    transition: color 0.3s;
}

.footer-new-right-col .social-logos .logo:hover {
    color: #5b23e8; /* 悬停颜色 */
}

/* 保持原有 footer-bar 样式 */
.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    background: rgba(30, 30, 30, 0.44);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-bar .left-content span {
    font-size: 1rem;
}

.footer-bar .right-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
/* ...（其余 footer-bar 样式不变） ... */


/* 响应式布局 */
@media (max-width: 768px) {
    .footer-expanded {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-col {
        width: 100% !important;
    }
    .footer-new-right-col {
        align-items: center; /* 小屏幕上居中对齐 */
        text-align: center;
    }
    .footer-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .footer-bar .right-content {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-bar .right-content .title-group {
        text-align: center;
    }
}































