/* 共享样式 - 统一菜单栏和基础样式 */

/* 统一菜单栏样式 */
.top-navbar {
    background-color: #1a73e8;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 基础容器样式 */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* 主页样式 */
body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #1a73e8;
    margin-bottom: 10px;
}

/* 卡片样式 */
.assistant-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.assistant-card:hover {
    transform: translateY(-5px);
}

.assistant-card h2 {
    color: #1a73e8;
    margin-top: 0;
}

.assistant-card p {
    color: #666;
    margin-bottom: 15px;
}

.assistant-card a {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.assistant-card a:hover {
    background-color: #1557b0;
}

.ai-assistants {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

/* Footer样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 0 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
    }
    
    .main-container {
        padding: 15px;
    }
    
    header {
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .ai-assistants {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        margin: 20px 0;
    }
    
    .assistant-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .nav-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px;
    }
    
    .main-container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .assistant-card {
        padding: 15px;
    }
    
    .assistant-card h2 {
        font-size: 1.2rem;
    }
    
    .assistant-card p {
        font-size: 0.9rem;
    }
    
    .assistant-card a {
        width: 100%;
        padding: 10px;
    }
}

