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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
}


.greeting {
    font-size: 1.000rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}
:root {
    --neon-blue: #0066ff;
}
.greeting::before {
    content: '> ';
    color: var(--neon-blue);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px 5px 8px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
}

/* 头部样式 - 简洁设计 */
.profile-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-content {
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.profile-info {
    flex: 1;
    text-align: left;
}

.profile-name {
    font-size: 18px;
    margin-bottom: 3px;
    color: #333;
    font-family: '等线', sans-serif;
    font-weight: 600;
}

.profile-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
    font-weight: 400;
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    justify-content: space-around;
    background-color: white;
    border-radius: 16px;
    padding: 2px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    padding: 3px 6px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 12px;
    width: 33.33%;
}

.nav-btn i {
    font-size: 14px;
    margin-bottom: 2px;
}

.nav-btn span {
    font-size: 10px;
}

.nav-btn.active {
    background: #e9ecef;
    color: #333;
    font-weight: 500;
}

.nav-btn:hover:not(.active) {
    background-color: #f0f0f0;
}

/* 内容区域样式 */
main {
    background-color: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.content-section {
    display: none;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.content-section.active {
    display: flex;
    overflow-y: auto;
}

/* 聊天容器样式 */
.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.chat-status-bar {
    background: #f8f9fa;
    padding: 8px 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    font-size: 12px;
    border-bottom: 1px solid #e9ecef;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    opacity: 0.95;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

.message {
    display: flex;
    gap: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message.user .message-avatar {
    background: #dee2e6;
}

.message-content {
    max-width: 90%;
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.message.user .message-content {
    background: #e9ecef;
    color: #333;
}

.message-content p {
    margin-bottom: 6px;
    line-height: 1.5;
    font-size: 14px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content strong {
    font-weight: 600;
}

.message-content ul {
    margin-left: 18px;
    margin-bottom: 6px;
}

.message-content li {
    margin-bottom: 3px;
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.quick-question {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.chat-footer {
    background: white;
    padding: 8px 15px 5px 15px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    min-height: 40px;
    max-height: 100px;
}

.chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: #333;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.input-hint {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

/* 加载动画 */
.loading {
    display: flex;
    gap: 4px;
    align-items: center;
}

.loading span {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* 项目卡片样式 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.section-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.project-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-icon {
    font-size: 16px;
    font-weight: bold; 
}

.project-badge {
    background: #e9ecef;
    color: #333;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.project-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: #e5e7eb;
    color: #374151;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
}

/* 联系信息样式 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #f0f0f0;
    transform: translateX(3px);
}

.contact-item i {
    font-size: 20px;
    color: #667eea;
    width: 25px;
    text-align: center;
}

.contact-item span {
    font-size: 14px;
    color: #333;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 5px 0;
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-btn {
        padding: 8px 10px;
    }

    .nav-btn i {
        font-size: 16px;
    }

    .nav-btn span {
        font-size: 11px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-subtitle {
        font-size: 13px;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .chat-container {
        flex: 1;
        min-height: 400px;
    }

    .message-content {
        max-width: 90%;
    }

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

@media (max-width: 480px) {
    .profile-header {
        padding: 10px 15px;
        gap: 12px;
    }

    .profile-avatar {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }

    .profile-name {
        font-size: 16px;
    }

    .profile-subtitle {
        font-size: 11px;
    }

    .nav-btn {
        padding: 6px 8px;
    }

    .nav-btn i {
        font-size: 14px;
    }

    .nav-btn span {
        font-size: 10px;
    }

    .chat-container {
        flex: 1;
        min-height: 350px;
    }
}
