/* styles.css */
/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #313131;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* 标题样式 */
h1 {
    text-align: center;
    font-size: 2em;
    margin: 20px 0;
    text-shadow: 0 0 5px #7e442b, 0 0 5px #7e442b, 0 0 5px #7e442b;
    color: #d3d3d3;
    animation: fadeInDown 1s ease-out;
}

/* 日志容器样式 */
.log-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* 日志卡片样式 */
.log-card {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 5px #7e442b;
    width: 300px;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    transition: transform 0.3s ease;
}

.log-card:hover {
    transform: scale(1.05);
}

/* 日志日期样式 */
.log-date {
    background-color: rgba(126, 68, 43, 0.2);
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

/* 日志内容样式 */
.log-content {
    padding: 20px;
    line-height: 1.6;
}

/* 日志详情按钮样式 */
.log-details-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: rgba(126, 68, 43, 0.2);
    border: none;
    color: #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.log-details-btn:hover {
    background-color: rgba(126, 68, 43, 0.4);
}

/* 日志详情区域样式 */
.log-details {
    display: none;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
}

/* 动画关键帧 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 自适应布局 */
@media (max-width: 768px) {
    .log-container {
        flex-direction: column;
        align-items: center;
    }

    .log-card {
        width: 90%;
    }

    h1 {
        font-size: 2.5em;
    }
}