/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('background.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 32px;
    width: auto;
}

.nav-menu {
    margin-left: auto;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00d4ff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #0099ff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 主要内容容器 */
.main-container {
    max-width: 720px;
    margin: 72px auto 20px;
    padding: 20px;
}

/* 个人简介区域 */
.profile-section {
    margin-bottom: 30px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-header h2 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.8em;
    text-align: center;
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.profile-info h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.profile-info p {
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #00d4ff;
}

.contact-info i {
    width: 20px;
    text-align: center;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.bilibili {
    background: linear-gradient(135deg, #fb7299, #ff85ad);
}

.douyin {
    background: linear-gradient(135deg, #000000, #333333);
}

.wechat {
    background: linear-gradient(135deg, #07c160, #09e672);
}

/* 聊天机器人区域 */
.chatbot-section {
    margin-bottom: 30px;
}

.chatbot-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 360px;
    display: flex;
    flex-direction: column;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header h3 {
    color: #00d4ff;
    font-size: 1.2em;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 10px;
}

.message {
    margin-bottom: 10px;
    display: flex;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    line-height: 1.4;
}

.bot-message .message-content {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.user-message .message-content {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-input {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.chat-input input::placeholder {
    color: #cccccc;
}

.chat-input input:focus {
    border-color: #00d4ff;
}

.chat-input button {
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-input button:hover {
    transform: scale(1.05);
}

.quick-replies {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-reply {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
}

/* 新闻分享区域 */
.news-section {
    margin-bottom: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: #00d4ff;
    font-size: 2em;
    margin-bottom: 10px;
}

.section-header p {
    color: #cccccc;
    font-size: 1.1em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-content h3 {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: #cccccc;
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-content a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-content a:hover {
    color: #ffffff;
}

.hidden {
    display: none;
}

.show-more-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    border: 1px solid #00d4ff;
    border-radius: 25px;
    background: transparent;
    color: #00d4ff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #00d4ff;
    color: #000000;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: #cccccc;
    margin-bottom: 5px;
}

.footer-content p:last-child {
    color: #00d4ff;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
        margin-top: 62px;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-input {
        flex-direction: column;
    }
    
    .quick-replies {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 0.9em;
    }
    
    .profile-card,
    .chatbot-container {
        padding: 15px;
    }
    
    .social-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .social-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
}
