:root {
    --primary: #00f7ff;
    --secondary: #6a00ff;
    --dark: #0a0e17;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--dark);
    color: white;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 新增：下拉菜单样式 */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(20, 25, 40, 0.9);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
    top: 100%;
    left: 0;
    /* 新增最大高度和滚动条 */
    max-height: 70vh;
    overflow-y: auto;
}

/* 新增：联系我们下拉菜单位置优化 */
.contact-dropdown {
    top: auto;
    /* bottom: 100%; 改为从底部弹出 */
    left: auto;
    right: 0; /* 右侧对齐 */
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(0, 247, 255, 0.1);
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

/* 主内容区 */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 流光文字效果 */
.glow-text {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.glow-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: glowLine 3s infinite;
}

@keyframes glowLine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

/* 智能体展示区 */
.agents-section {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.agent-card {
    background: rgba(20, 25, 40, 0.7);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(100, 100, 255, 0.1);
    position: relative;
    height: 350px;
    perspective: 1000px;
    /* 新增：点击翻转效果 */
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 247, 255, 0.1);
    /* 新增发光效果 */
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.8), 0 0 40px rgba(106, 0, 255, 0.6);
}

.card-content {
    padding: 25px;
    text-align: left;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* 3D卡片效果 */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.agent-card:hover .card-inner {
    transform: rotateY(15deg) rotateX(8deg);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 30px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

/* 新增汉堡菜单按钮 - 默认隐藏 */
.hamburger {
    display: none; /* 默认隐藏 */
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 1000; /* 确保在最上层 */
}

/* 响应式设计 */
/* ... existing code ... */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    /* 删除隐藏导航的代码 */
    /* Deleted:.nav-links { display: none; } */
    
    /* 新增汉堡菜单按钮 */
    .hamburger {
        display: block;
    }
    
    /* 移动端导航样式 */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 23, 0.95);
        flex-direction: column;
        gap: 0;
        display: none;
        padding: 20px 5%;
        z-index: 100;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    
    .agents-grid { grid-template-columns: 1fr; }
}
/* ... existing code ... */

/* 新增卡片发光效果 */
.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 247, 255, 0.1);
    /* 新增发光效果 */
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.8), 0 0 40px rgba(106, 0, 255, 0.6);
}

/* 增强3D旋转效果 */
.agent-card:hover .card-inner {
    transform: rotateY(15deg) rotateX(8deg);
}

/* 新增卡片正反面样式 */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-back {
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.agent-card.flipped .card-inner {
    transform: rotateY(180deg);
}

/* 新增"了解更多"按钮样式 */
.learn-more-btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.5);
}

/* 新增打字机动画 */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* 新增光标闪烁效果 */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary) }
}

/* 新增：卡片跳转层 */
.card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    background: rgba(0, 247, 255, 0.1);
    transition: opacity 0.3s ease;
}

.agent-card:hover .card-link-overlay {
    opacity: 1;
}

/* 新增：跳转提示文字 */
.link-hint {
    background: rgba(10, 14, 23, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary);
}


/* 新增：智能体集合卡片优化 */
.agent-card-collection {
    height: 220px; /* 高度减小 */
    width: 200px; /* 宽度减小 */
    margin: 0 auto; /* 居中显示 */
}

.card-content-collection {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.card-icon {
    font-size: 2.5rem; /* 图标大小 */
    margin-bottom: 15px;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.7);
}

.card-content-collection h3 {
    font-size: 1.2rem; /* 标题字体减小 */
    margin-bottom: 10px;
}

.card-content-collection p {
    font-size: 0.9rem; /* 描述字体减小 */
    line-height: 1.4;
}

/* 调整网格布局，增加列数 */
.agents-grid-collection {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
/* 添加在文件末尾 */
/* 闪烁光标样式 */
.blinking-cursor {
    animation: blink 2s infinite;
    font-weight: bold;
    color: #4db8ff;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 确保标题元素可见 */
#animated-title {
    display: inline-block;
}