
/* 基础样式 */
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--current-text);
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.5s, filter 0.3s;
}

/* 页面加载进度条 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--current-accent);
    transition: width 0.3s ease;
}

/* 头部导航 */
.header {
    --blur-intensity: 0px;
    
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    background: var(--header-bg);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    /*justify-content: space-between;*/
    /* 滚动状态 */
    &.scrolled {
        --blur-intensity: 12px;
    backdrop-filter: blur(var(--blur-intensity))saturate(180%);
        background: var(--current-card);
        box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    }&.hidden {
        transform: translateY(-100%);
    }
}
/* 网站logo */
.website-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 2rem;
}
.logo {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s;
    &:hover {
        transform: rotate(15deg);
    }
}
.site-title {
    color: var(--current-text);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: color 0.3s ease;
    
    /* 深色模式微调 */
    .dark-mode & {
        text-shadow: 1px 1px 2px rgba(255,255,255,0.1);
    }
}
/* 导航菜单 */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 2rem;
}

.nav-link {
    position: relative;
    color: var(--current-text);
    padding: 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: font-weight 0.3s ease;
    &::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 3px;
        color: var(--current-text);
        background: var(--current-accent);
        transition: width 0.3s;
    }
    
    &:hover::after {
        width: 100%;
    }
}

/* 激活状态样式 */
.nav-link.active {
    color: var(--current-primary);
    font-weight: bold;
    &::after {
        width: 100% !important;
    }
}
/* 工具栏 */
.toolbar {
    display: flex;
    gap: 1rem;
    margin-left: auto;
    align-items: center;
}

/* 菜单容器 */
.menu-container {
    position: relative;
    display: inline-block;
}

/* 菜单按钮 */
.menu-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--current-accent);
    border-radius: 50%;
    background-color: var(--current-card);
    backdrop-filter: blur(12px) saturate(180%);
    cursor: pointer;
    transition: transform 0.3s ease;
    &:hover {
        transform: scale(1.1);
    }
    /* 布局 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    
    /* 层级控制 */
    position: relative;
    z-index: 100;
}

/* 子菜单按钮 */
.sub-buttons {
    /* 初始状态 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    
    /* 定位 */
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    
    /* 布局 */
    display: flex;
    flex-direction: column;
    gap: 8px;
    
    /* 过渡动画 */
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
}

/* 展开状态 */
.menu-btn.active + .sub-buttons {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    z-index: 99;
}

.sub-btn {
    /* 与主按钮相同的样式 */
    width: 40px;
    height: 40px;
    border: 2px solid var(--current-accent);
    border-radius: 50%;
    background-color: var(--current-card);
    backdrop-filter: blur(12px) saturate(180%);
    cursor: pointer;
    font-size: 1.2em;
    
    /* 内容居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 悬停效果 */
    transition: transform 0.3s ease;
    &:hover {
        transform: scale(1.1);
    }
}


.main {
    margin-top: 70px; /* 根据头部高度调整 */
    min-height: calc(100vh - 120px); /* 保持内容高度 */
    padding: 2rem;
    box-sizing: border-box;
}

/* 加载状态样式 */
.loading {
    padding: 2rem;
    text-align: center;
    font-size: 1.2em;
    color: var(--current-accent);
}

.error {
    color: #ff4444;
    padding: 2rem;
    text-align: center;
}




.footer {
    /* 定位与布局 */
    position: static;     /* 固定定位模式 */
    width: 100%; /* 设置宽度为100%以填满整个页面宽度 */
    margin-top: 100px; /* 自动顶部边距推到底部 */
    padding: 10px 0; /* 可选：设置内边距 */

    /* 视觉效果 */
    background-color: var(--current-card);
    backdrop-filter: blur(12px) saturate(180%); /* 毛玻璃滤镜 */
    -webkit-backdrop-filter: blur(12px) saturate(180%); /* Safari兼容 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 顶部细边框 */
    border-radius: 0px 0px 0px 0px; /* 顶部圆角 */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2); /* 上方向阴影 */

    /* 动画过渡 */
    transition: transform 0.3s ease; /* 悬停动画 */
}

/* 内容容器布局 */
.footer-container {
    max-width: 900px;   /* 内容区域最大宽度 */
    margin: 0 auto;     /* 水平居中 */
    display: grid;      /* 网格布局 */
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); /* 自适应列 */
    gap: 1.5rem;       /* 网格间距 */
}

/* 栏目区块样式 */
.footer-section {
    padding: 1.5rem;    /* 内边距 */
    transition: transform 0.3s ease; /* 悬停动画 */
}

/* 悬停抬升效果 */
.footer-section:hover {
    transform: translateY(-5px); /* Y轴位移动画 */
}

/* 标题样式 */
.footer-section h3 {
    color: var(--primary-color); /* 使用主题主色 */
    font-size: 1.4rem;          /* 字号 */
    margin-bottom: 1.5rem;     /* 下边距 */
    position: relative;        /* 相对定位 */
    padding-bottom: 0.5rem;   /* 下边距预留装饰线空间 */
}

/* 标题装饰线 */
.footer-section h3::after {
    content: '';              /* 伪元素必需 */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90px;             /* 线长 */
    height: 2px;             /* 线粗 */
    background: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 1rem;
}

.footer-section a {
    /* 布局 */
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease; 
}
/* 悬停状态 */
.footer-section a:hover {
    color: var(--accent-color);
    opacity: 1;
    padding-left: 5px;
}