/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* 用户信息区域样式 */
#user-info {
    color: #2794ed !important; /* 蓝色 */
}

#username-display {
    color: #2794ed !important; /* 蓝色 */
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

#logout-btn {
    background-color: #ff6b6b !important; /* 红色背景 */
    border-color: #ff6b6b !important; /* 红色边框 */
    color: rgb(55, 192, 223) !important; /* 白色文字 */
    font-weight: 500;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background-color: #ff5252 !important; /* 悬停时更深的红色 */
    border-color: #ff5252 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 卡片样式 */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-2px);
}

/* 日期时间样式 */
.current-date {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: #2c3e50;
}

.week-day {
    font-size: 1.2rem;
    font-weight: 600;
    color: #3498db;
}

.current-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

.lunar-date {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* 名言警句样式 */
.quote-text {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
    border-left: 3px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
}

/* 左侧日历板块 */
.inspiration-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.inspiration-section textarea {
    flex-grow: 1;
    min-height: 150px;
}

/* 待办事项样式 */
.todo-container {
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.todo-list-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* 确保左右两侧的卡片容器等高 */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

.equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.equal-height .card {
    flex: 1;
}

.list-group-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.list-group-item.completed {
    background-color: #f8f9fa;
    text-decoration: line-through;
    color: #6c757d;
}

.todo-text {
    flex-grow: 1;
    margin-right: 1rem;
    cursor: pointer;
}

.todo-edit {
    flex-grow: 1;
    margin-right: 1rem;
}

.button-group {
    display: flex;
    gap: 0.5rem;
}

.list-group-item .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.list-group-item .btn i {
    font-size: 0.875rem;
}

/* AI聊天样式 */
.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: rgba(248, 249, 250, 0.7);
    border-radius: 5px;
    margin-bottom: 1rem;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    max-width: 85%;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
    font-size: 0.95rem;
    display: inline-block;
}

.user-message {
    background-color: #007bff;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 5px;
    float: right;
    clear: both;
}

.ai-message {
    background-color: rgba(233, 236, 239, 0.9);
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 5px;
    float: left;
    clear: both;
}

/* 聊天输入框样式 */
.ai-chat-container .input-group {
    margin-top: auto;
    padding: 0.5rem;
}

.ai-chat-container .input-group input {
    border-radius: 20px 0 0 20px;
    padding: 0.5rem 1rem;
}

.ai-chat-container .input-group button {
    border-radius: 0 20px 20px 0;
    padding: 0.5rem 1.5rem;
}

/* 文本框样式 */
textarea.form-control {
    resize: none;
    border: 1px solid #ced4da;
}

textarea.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* 社交链接样式 */
.social-links a {
    color: #6c757d;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #007bff;
}

/* 底部模块样式 */
.bottom-section {
    margin-bottom: 2rem;
}

.bottom-section .card {
    margin-bottom: 1.5rem;
    height: auto;
}

.bottom-section .card-body {
    padding: 1.5rem;
}

/* 页脚样式 */
.footer {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(222, 226, 230, 0.8);
    z-index: 1000;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .message {
        max-width: 85%;
    }
} 

/* 今日总结样式 */
#dailySummary {
    width: 100%;
    min-height: 160px;
    max-height: 240px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    margin-top: 0.5rem;
} 

/* 页面导航按钮样式 */
.page-navigation {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    pointer-events: none;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.nav-btn:hover {
    background-color: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.nav-prev {
    left: 20px;
}

.nav-next {
    right: 20px;
}

.nav-btn i {
    font-size: 1.2rem;
}

/* 内容过渡动画 */
.content-fade {
    transition: opacity 0.3s ease;
}

.content-fade.fade-out {
    opacity: 0;
} 

/* 清除浮动 */
.chat-messages::after {
    content: '';
    display: table;
    clear: both;
}