:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-color: #e2e8f0;
    --hover-color: #93c5fd;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --card-bg: rgba(30, 30, 30, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background: #121212;
    overflow-x: hidden;
}

/* 导航栏样式 */
.header {
    background-color: var(--dark-color);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 101;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 101;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background: var(--gradient);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.logo:hover {
    color: var(--secondary-color);
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--hover-color);
}

.nav-links a:hover::before {
    transform: translateX(0);
}

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::before {
    transform: translateX(0);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.6s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:hover::before {
    left: 100%;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--dark-color), #0f172a);
    color: white;
    text-align: center;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-radius: 20px 20px 0 0;
    position: relative;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.footer-column p {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    .nav-links {
        position: fixed;
        top: 70px; /* 调整距离顶部的位置，避免遮挡导航栏 */
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px); /* 减去顶部导航栏高度 */
        background: linear-gradient(135deg, var(--dark-color), #0f172a);
        flex-direction: column;
        justify-content: flex-start; /* 从顶部开始排列 */
        align-items: center;
        padding-top: 30px; /* 添加顶部内边距 */
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        z-index: 1001;
        border-radius: 0 0 0 10px; /* 添加左下角圆角 */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 15px 0;
        font-size: 18px;
        color: white;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }

    .banner h1 {
        font-size: 2.5rem;
    }

    /* 添加遮罩层 */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .content {
        grid-template-columns: 1fr;
    }
}