* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 更新字体栈：优先使用动态字体，备选系统字体 */
    font-family: 'Poppins', 'Montserrat', 'Noto Sans SC', 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #00dbde;
    --dark-bg: #0a0e2e;
    --card-bg: rgba(255, 255, 255, 0.08);
    --text-light: rgba(255, 255, 255, 0.9);
    --text-lighter: rgba(255, 255, 255, 0.7);
    /* 新增字体变量 */
    --font-title: 'Montserrat', 'Poppins', 'Noto Sans SC', sans-serif;
    --font-body: 'Poppins', 'Noto Sans SC', 'Segoe UI', sans-serif;
    --font-accent: 'Dancing Script', cursive;
    --font-mono: 'Courier New', monospace;
}

body {
    background: linear-gradient(135deg, #0a0e2e 0%, #161b45 30%, #2a1a6e 60%, #3d0ca8 80%, #4a3de8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    color: white;
    /* 使用新的字体变量 */
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 增强的背景效果 */
.background-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.gradient-orbs {
    position: absolute;
    width: 70vw;
    height: 70vw;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s infinite ease-in-out;
    opacity: 0.7;
}

.gradient-orbs:nth-child(1) {
    top: -25%;
    left: -15%;
    background: radial-gradient(circle, rgba(106, 17, 203, 0.7) 0%, rgba(58, 12, 163, 0.4) 40%, transparent 70%);
    animation-delay: 0s;
    animation-duration: 25s;
}

.gradient-orbs:nth-child(2) {
    top: 5%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(37, 117, 252, 0.6) 0%, rgba(20, 85, 200, 0.3) 40%, transparent 70%);
    animation-delay: 7s;
    animation-duration: 30s;
}

.gradient-orbs:nth-child(3) {
    bottom: -20%;
    left: 15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 219, 222, 0.5) 0%, rgba(0, 160, 180, 0.2) 40%, transparent 70%);
    animation-delay: 14s;
    animation-duration: 35s;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    animation: float-shapes 25s infinite linear;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 30s;
    background: rgba(106, 17, 203, 0.15);
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 65%;
    right: 12%;
    animation-delay: 8s;
    animation-duration: 40s;
    border-radius: 50%;
    background: rgba(37, 117, 252, 0.15);
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 20%;
    animation-delay: 16s;
    animation-duration: 35s;
    background: rgba(0, 219, 222, 0.15);
}

.shape:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 35%;
    right: 25%;
    animation-delay: 24s;
    animation-duration: 45s;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

/* 动态网格背景 */
.grid-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 40s linear infinite;
    z-index: 1;
}

/* 粒子背景 */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1.2s ease;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6a11cb, #2575fc, #00dbde);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.avatar::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

.avatar:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* 标题字体 */
.title {
    font-size: 42px;
    font-weight: 800;
    /* 使用标题字体 */
    font-family: var(--font-title);
    background: linear-gradient(90deg, #fff, #a8edea, #fed6e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    letter-spacing: 1px;
    /* 添加文字动画效果 */
    animation: textGlow 3s ease-in-out infinite alternate;
}

/* 副标题字体 */
.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    font-weight: 300;
    /* 使用正文字体，稍细的字重 */
    font-family: var(--font-body);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

.nav-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 1.2s ease;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1), rgba(37, 117, 252, 0.1));
    z-index: -1;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 导航按钮字体 */
.nav-button {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-radius: 16px;
    text-decoration: none;
    color: white;
    /* 使用正文字体，中等字重 */
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    letter-spacing: 0.5px;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: -1;
}

.nav-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -2;
    border-radius: 16px;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.nav-button i {
    font-size: 28px;
    margin-right: 18px;
    width: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-button:hover i {
    transform: scale(1.2) rotate(10deg);
}

.btn-1 { background: linear-gradient(135deg, #FF6B6B, #FF8E8E, #FFAAAA); }
.btn-2 { background: linear-gradient(135deg, #4ECDC4, #6BDEFF, #88EDFF); }
.btn-3 { background: linear-gradient(135deg, #FFD166, #FFE8A0, #FFF4D4); }
.btn-4 { background: linear-gradient(135deg, #6A0572, #9D4EDD, #C77DFF); }
.btn-5 { background: linear-gradient(135deg, #118AB2, #06D6A0, #83E8C2); }

/* 为不同按钮添加特色字体效果 */
.btn-1 span {
    font-weight: 700;
    letter-spacing: 0.8px;
}

.btn-2 span {
    font-weight: 600;
    letter-spacing: 0.6px;
}

.btn-3 span {
    font-weight: 700;
    font-style: italic;
}

.btn-4 span {
    font-weight: 600;
}

.btn-5 span {
    font-weight: 700;
    letter-spacing: 0.7px;
}

/* 搜索栏字体 */
.search-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.search-bar i {
    font-size: 20px;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    /* 使用正文字体 */
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    width: 100%;
    letter-spacing: 0.3px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 页脚字体 */
.footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* 使用正文字体 */
    font-family: var(--font-body);
    font-weight: 300;
}

.permanent-address {
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.copyright {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 300;
}

/* 智能提示字体 */
.smart-tip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px);
    /* 使用正文字体 */
    font-family: var(--font-body);
    font-weight: 300;
}

.nav-card:hover .smart-tip {
    opacity: 1;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, 30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(15px, -15px) scale(1.05);
    }
}

@keyframes float-shapes {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, 40px) rotate(90deg);
    }
    50% {
        transform: translate(-40px, 30px) rotate(180deg);
    }
    75% {
        transform: translate(15px, -25px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 新增字体动画效果 */
@keyframes textGlow {
    0% {
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(168, 237, 234, 0.3);
    }
    100% {
        text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 30px rgba(254, 214, 227, 0.5);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 32px;
        font-weight: 700;
    }
    
    .subtitle {
        font-size: 16px;
        font-weight: 300;
    }
    
    .nav-button {
        font-size: 14px;
        font-weight: 500;
    }
    
    .nav-card {
        padding: 25px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .gradient-orbs {
        width: 100vw;
        height: 100vw;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 新增：字体加载优化 */
.fonts-loaded body {
    font-family: var(--font-body);
}

.fonts-loaded .title {
    font-family: var(--font-title);
}

/* 新增：自定义LOGO文字样式（备用） */
.logo-text {
    font-size: 50px;
    font-weight: bold;
    font-family: var(--font-title);
    background: linear-gradient(45deg, #fff, #a8edea, #fed6e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 外链LOGO图片样式 */
.logo-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.85; /* 半透明效果 */
    transition: all 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* 鼠标悬停时增加透明度 */
.avatar:hover .logo-image {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* 移除原来的文字LOGO样式（保持备用状态） */
.logo-text {
    display: none;
}
/* ====== 过滤器模块样式 ====== */
.filter-section {
    grid-column: 1 / -1; /* 占据整行 */
    margin-top: 10px;
}

.filter-header .nav-button {
    position: relative;
    padding-right: 50px; /* 为箭头留空间 */
}

#filter-arrow {
    position: absolute;
    right: 20px;
    font-size: 16px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.filter-submenu {
    display: none; /* 默认隐藏 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding-left: 40px; /* 缩进效果 */
    animation: fadeInUp 0.4s ease;
}

.filter-submenu.active {
    display: grid;
}

/* 子按钮样式 */
.btn-sub {
    padding: 15px 20px;
    font-size: 14px;
    opacity: 0.9;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

.btn-sub:hover {
    opacity: 1;
    transform: scale(0.98);
}

.btn-sub-1 {
    background: linear-gradient(135deg, #4CAF50, #8BC34A, #CDDC39);
}

.btn-sub-2 {
    background: linear-gradient(135deg, #FF9800, #FFC107, #FFEB3B);
}

/* 箭头旋转动画 */
.filter-header.active #filter-arrow {
    transform: rotate(180deg);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .filter-submenu {
        padding-left: 20px;
        grid-template-columns: 1fr;
    }
    
    .btn-sub {
        padding: 12px 15px;
    }
}