/* 日记页面专属样式 */

.container-fluid {
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left h1 {
    color: #333;
    font-size: 1.8rem;
    margin: 0;
}

.btn-back {
    text-decoration: none;
    color: #667eea;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-back:hover {
    transform: translateX(-5px);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-picker-container {
    display: flex;
    gap: 8px;
    padding-right: 15px;
    border-right: 1px solid #eee;
}

.color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.color-btn:hover {
    transform: scale(1.2);
    border-color: #ddd;
}

.color-btn.active {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

.color-btn.red { background-color: #ff4d4f; }
.color-btn.orange { background-color: #ffa940; }
.color-btn.yellow { background-color: #ffec3d; }
.color-btn.green { background-color: #73d13d; }
.color-btn.blue { background-color: #40a9ff; }
.color-btn.black { background-color: #333333; }

.diary-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    min-height: calc(100vh - 150px);
}

.diary-editor {
    width: 100%;
    min-height: 500px;
    outline: none;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    word-break: break-word;
}

/* 占位符效果 */
.diary-editor:empty:before {
    content: attr(placeholder);
    color: #aaa;
    cursor: text;
}

.diary-editor img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.diary-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
}

#saveStatus.saving {
    color: #667eea;
}

#saveStatus.saved {
    color: #28a745;
}

/* Toast 提示样式 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 1000;
    display: none;
    animation: fadeInOut 2.5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, 20px); }
    15% { opacity: 1; transform: translate(-50%, 0); }
    85% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}
