/* ===== 基础重置 ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

/* ===== 页面骨架 ===== */
body {
    min-height: 100vh;
    margin: 0;
    padding: 64px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
        "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #1f2937;

    /* 背景：半透明白色渐变 + 插画，压暗原图以保证文字清晰可读 */
    background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.78),
            rgba(255, 255, 255, 0.5) 45%,
            rgba(255, 255, 255, 0.75)
        ),
        url(./pic/miao.jpg);
    background-position: center, 65% center;
    background-repeat: no-repeat, no-repeat;
    background-size: cover, cover;
    background-attachment: fixed, fixed;

    -webkit-font-smoothing: antialiased;
}

/* ===== 标题区 ===== */
.diary-header {
    width: 100%;
    max-width: 560px;
    margin-bottom: 28px;
    text-align: center;
}

.diary-header h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: #0f2b46;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.subtitle {
    margin: 10px 0 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: #4b6274;
}

/* ===== 日记列表 ===== */
.diary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 560px;
}

.diary-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 16px 22px;
    font-size: 17px;
    color: #123452;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 14px;
    box-shadow: 0 10px 26px -18px rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

    transition: transform 0.18s ease, background-color 0.18s ease,
        box-shadow 0.18s ease, border-color 0.18s ease;
}

.diary-list a .date {
    margin-left: auto;
    font-size: 13px;
    color: #6b8296;
    font-variant-numeric: tabular-nums;
}

.diary-list a::after {
    content: "→";
    font-size: 15px;
    color: #7d93a6;
    transition: transform 0.18s ease, color 0.18s ease;
}

.diary-list a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(11, 111, 194, 0.35);
    box-shadow: 0 16px 34px -18px rgba(15, 23, 42, 0.6);
}

.diary-list a:hover::after {
    transform: translateX(4px);
    color: #0b6fc2;
}

/* ===== 移动端适配 ===== */
@media (max-width: 480px) {
    body {
        padding: 48px 16px;
    }

    .diary-header h1 {
        font-size: 24px;
    }

    .diary-list a {
        padding: 14px 16px;
        font-size: 16px;
    }
}
