/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 自定义字体 */
@font-face {
    font-family: 'CustomFont';
    src: url('ziti/1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'CustomFont', "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 日夜间模式切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: scale(1.2);
}

/* 夜间模式样式 */
body.dark-mode {
    background-color: #1a1a2e;
    color: #e6e6e6;
}

body.dark-mode .about,
body.dark-mode .contact {
    background-color: #16213e;
}

body.dark-mode .project-card {
    background-color: #16213e;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

body.dark-mode .project-card h3 {
    color: #4da6ff;
}

body.dark-mode .about h2,
body.dark-mode .projects h2,
body.dark-mode .contact h2 {
    color: #4da6ff;
}

body.dark-mode .hero::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: transparent;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 夜间模式下滚动导航栏样式 */
body.dark-mode nav.scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode nav.scrolled .logo,
body.dark-mode nav.scrolled .nav-links a {
    color: #e6e6e6;
}

body.dark-mode nav.scrolled .menu-toggle span {
    background-color: #e6e6e6;
}

nav.scrolled .logo,
nav.scrolled .nav-links a {
    color: #333;
}

nav.scrolled .menu-toggle span {
    background-color: #333;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo img {
    height: 40px;
    width: auto;
}

/* 手机端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: #a3d5ff;
}

/* 首页横幅区域 */
.hero {
    height: 100vh;
    background-image: url('https://oss.xiyubbs.com/2025/10/20251017135432906097.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroOverlay {
    0% {
        background-color: rgba(0, 85, 164, 0.3);
    }
    100% {
        background-color: rgba(0, 85, 164, 0.5);
    }
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }
}

.hero-content p {
    font-size: 24px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.forum-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 36px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.forum-btn:hover {
    background-color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 关于我们部分 */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about h2 {
    text-align: center;
    color: #0055a4;
    margin-bottom: 30px;
    font-size: 36px;
}

.about p {
    text-align: center;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
}

/* 论坛实时数据部分 */
.stats {
    padding: 80px 0;
    background-color: #f8f9fa;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats h2 {
    text-align: center;
    color: #0055a4;
    margin-bottom: 40px;
    font-size: 36px;
}

.forum-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: rgba(0, 85, 164, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 30px;
    height: 30px;
    color: #0055a4;
}

.stat-label {
    display: block;
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #0055a4;
}

/* 夜间模式下的论坛实时数据样式 */
body.dark-mode .stats {
    background-color: #16213e;
}

body.dark-mode .stats h2 {
    color: #4da6ff;
}

body.dark-mode .stat-item {
    background-color: #1e2a45;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .stat-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode .stat-icon {
    background-color: rgba(77, 166, 255, 0.1);
}

body.dark-mode .stat-icon svg {
    color: #4da6ff;
}

body.dark-mode .stat-label {
    color: #ccc;
}

body.dark-mode .stat-value {
    color: #4da6ff;
}

/* 项目部分 */
.projects {
    padding: 80px 0;
}

.projects h2 {
    text-align: center;
    color: #0055a4;
    margin-bottom: 40px;
    font-size: 36px;
}

.project-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card h3 {
    color: #0077cc;
    margin-bottom: 15px;
    font-size: 28px;
}

.project-card p {
    margin-bottom: 15px;
    font-size: 18px;
}

.project-card ul {
    padding-left: 20px;
}

.project-card li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* 联系方式部分 */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact h2 {
    text-align: center;
    color: #0055a4;
    margin-bottom: 30px;
    font-size: 36px;
}

.contact p {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 15px;
}

/* 页脚 */
.footer {
    position: relative;
    padding: 60px 0 40px;
    overflow: hidden;
    background: linear-gradient(to bottom,
        rgba(248, 250, 255, 0.5) 0%,
        rgba(240, 245, 255, 0.8) 15%,
        rgba(235, 240, 255, 1) 100%
);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 110, 255, 0.1),
        rgba(0, 110, 255, 0.15),
        rgba(0, 110, 255, 0.1),
        transparent
    );
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.pattern-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    contain: strict;
}

.pattern-item {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    animation: var(--animation-name) var(--animation-duration) ease-in-out infinite;
    animation-delay: var(--animation-delay);
    transform: translate(var(--x), var(--y)) rotate(var(--rotation)) scale(var(--scale));
    width: var(--size);
    height: var(--size);
    opacity: var(--opacity);
    will-change: transform;
    contain: layout paint style;
}

.pattern-item.type-1 {
    background-image: url('https://oss.xiyubbs.com/2025/12/fcc8e12ff720251231234523.webp');
}

.pattern-item.type-2 {
    background-image: url('https://oss.xiyubbs.com/2025/12/fcc8e12ff720251231234523.webp');
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rotation)) scale(var(--scale));
    }
    50% {
        transform: translate(var(--x), calc(var(--y) - 50px)) rotate(calc(var(--rotation) + 15deg)) scale(calc(var(--scale) * 1.1));
    }
}

@keyframes spinFloat {
    0%, 100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rotation)) scale(var(--scale));
    }
    50% {
        transform: translate(calc(var(--x) + 30px), calc(var(--y) - 30px)) rotate(calc(var(--rotation) + 180deg)) scale(calc(var(--scale) * 1.2));
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rotation)) scale(var(--scale));
        opacity: var(--opacity);
    }
    50% {
        transform: translate(var(--x), var(--y)) rotate(calc(var(--rotation) + 10deg)) scale(calc(var(--scale) * 1.3));
        opacity: calc(var(--opacity) * 1.5);
    }
}

@keyframes zigzag {
    0% {
        transform: translate(var(--x), var(--y)) rotate(var(--rotation)) scale(var(--scale));
    }
    25% {
        transform: translate(calc(var(--x) + 40px), calc(var(--y) - 20px)) rotate(calc(var(--rotation) + 15deg)) scale(var(--scale));
    }
    50% {
        transform: translate(var(--x), calc(var(--y) - 40px)) rotate(calc(var(--rotation) + 0deg)) scale(calc(var(--scale) * 1.1));
    }
    75% {
        transform: translate(calc(var(--x) - 40px), calc(var(--y) - 20px)) rotate(calc(var(--rotation) - 15deg)) scale(var(--scale));
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(var(--rotation)) scale(var(--scale));
    }
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    position: relative;
    text-align: center;
    margin-bottom: 15px;
}

.section-title .title-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 28px;
}

.section-title .title-text i.fa-diamond {
    display: none;
}

.section-title .title-text i.fa-heart {
    display: inline-block;
    font-size: 16px;
    color: #006eff;
}

.section-title .title-text::before {
    content: '';
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.partner-section .title-text::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23006eff'%3E%3Cpath d='M12 2L1 21h22L12 2zm0 3.99L19.53 19H4.47L12 5.99zM12 16c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm1-3h-2V8h2v5z'/%3E%3C/svg%3E");
}

.footer-links-section .title-text::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23006eff'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E");
}

.section-title .title-text::before,
.section-title .title-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(0, 110, 255, 0.12);
    transform: translateY(-50%);
}

.section-title .title-text::before {
    right: calc(100% + 15px);
}

.section-title .title-text::after {
    left: calc(100% + 15px);
}

.title-text {
    display: inline-block;
    padding: 8px 25px;
    font-size: 16px;
    font-weight: 500;
    color: #006eff;
    background: rgba(0, 110, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.title-text::before,
.title-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, #006eff 0%, transparent 100%);
}

.title-text::before {
    right: 100%;
    margin-right: 15px;
}

.title-text::after {
    left: 100%;
    margin-left: 15px;
    transform: rotate(180deg);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 0 auto;
    max-width: 900px;
}

.link-item {
    text-align: center;
    padding: 8px 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 110, 255, 0.05);
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 110, 255, 0.12);
}

.link-item a {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-item:hover a {
    color: #006eff;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 30px;
    position: relative;
}

.footer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 110, 255, 0.1),
        rgba(0, 110, 255, 0.3),
        rgba(0, 110, 255, 0.1),
        transparent
    );
}

.footer-copyright p {
    margin: 0;
    font-size: 15px;
    color: #666;
    letter-spacing: 0.5px;
    line-height: 1.8;
}

.footer-copyright a {
    color: #006eff;
    text-decoration: none;
    font-weight: 500;
    padding: 0 3px;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-copyright a::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        #006eff,
        transparent
    );
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.footer-copyright a:hover {
    color: #006eff;
    text-shadow: 0 0 20px rgba(0, 110, 255, 0.3);
}

.footer-copyright a:hover::before {
    transform: scaleX(1);
}

/* 夜间模式页脚样式 */
body.dark-mode .footer {
    background: linear-gradient(to bottom,
        rgba(22, 28, 32, 0.95) 0%,
        rgba(24, 30, 35, 0.98) 15%,
        rgba(26, 32, 38, 1) 100%
    );
}

body.dark-mode .partner-box {
    background: #2b3034;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .partner-box:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .footer::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 110, 255, 0.05),
        rgba(0, 110, 255, 0.1),
        rgba(0, 110, 255, 0.05),
        transparent
    );
}

body.dark-mode .pattern-item {
    filter: brightness(0.8) contrast(1.1);
    mix-blend-mode: plus-lighter;
}

body.dark-mode .title-text {
    color: #006eff;
    background: rgba(0, 110, 255, 0.15);
}

body.dark-mode .link-item {
    background: rgba(43, 48, 52, 0.6);
}

body.dark-mode .link-item:hover {
    background: rgba(43, 48, 52, 0.9);
}

body.dark-mode .link-item a {
    color: #a3a6ad;
}

body.dark-mode .link-item:hover a {
    color: #006eff;
}

body.dark-mode .footer-copyright::before {
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 110, 255, 0.05),
        rgba(0, 110, 255, 0.2),
        rgba(0, 110, 255, 0.05),
        transparent
    );
}

body.dark-mode .footer-copyright p {
    color: #8c8c8c;
}

body.dark-mode .footer-copyright a:hover {
    text-shadow: 0 0 25px rgba(0, 110, 255, 0.4);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 15px;
}

.partner-box {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 110, 255, 0.05);
    transform: translateY(0);
    will-change: transform, box-shadow;
    position: relative;
    isolation: isolate;
}

.partner-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 110, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.partner-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 110, 255, 0.1);
}

.partner-box:hover::after {
    opacity: 1;
}

.partner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: transform 0.3s ease;
}

.partner-box:hover .img-wrapper {
    transform: translateZ(0) scale(1.05);
}

.partner-box img {
    max-width: 180px;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: filter 0.3s ease;
}

.links-list {
    text-align: center;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 30px;
    }
    
    .footer-sections {
        gap: 35px;
    }
    
    .footer-copyright {
        margin-top: 20px;
        padding-top: 25px;
    }
    
    .footer-copyright::before {
        width: 140px;
    }
    
    .footer-copyright p {
        font-size: 14px;
    }
    
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .partner-box {
        padding: 12px;
    }

    .partner-content {
        height: 60px;
    }

    .partner-box img {
        max-width: 120px;
    }
    
    .links-list {
        gap: 8px;
        padding: 10px;
    }
    
    .link-item {
        padding: 4px 12px;
    }
    
    .link-item a {
        font-size: 12px;
    }
    
    .section-title {
        margin-bottom: 25px;
    }
    
    .section-title .title-text {
        padding: 6px 20px;
        font-size: 14px;
    }
    
    .section-title .title-text::before,
    .section-title .title-text::after {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: 15px;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-links {
        position: absolute;
        top: 70px;
        right: 15px;
        height: auto;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 30px;
        width: auto;
        min-width: 200px;
        border-radius: 15px;
        transform: translateX(120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* 夜间模式菜单样式 */
    body.dark-mode .nav-links {
        background-color: rgba(30, 30, 30, 0.95);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
    
    body.dark-mode .nav-links a {
        color: #fff;
    }
    
    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        color: #333;
        font-size: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about, .projects, .contact {
        padding: 40px 0;
    }
    
    /* 菜单按钮激活状态 */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 20px;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 20px;
    }
}