* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Arial', sans-serif;
    color: #222;
    position: relative;
    background: #e0f7fa;
    overflow-x: hidden;
}

/* 动态渐变背景大色块 */
.color-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: linear-gradient(120deg, #e0f7fa 0%, #fff176 50%, #18ffff 100%);
    pointer-events: none;
}
.color-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.67;
    pointer-events: none;
    z-index: 0;
    animation: moveBlur 18s linear infinite alternate;
}
.color1 { top: -220px; left: -240px; width: 520px; height: 520px; background: #ff4081;}
.color2 { bottom: -180px; left: 6vw; width: 480px; height: 480px; background: #fff176;}
.color3 { bottom: 60px; right: 6vw; width: 500px; height: 500px; background: #18ffff;}

@keyframes moveBlur {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(50px) scale(1.04); }
    100% { transform: translateY(-40px) scale(0.98);}
}

/* 顶部栏 */
header {
    position: relative;
    z-index: 10;
    width: 100%;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 18px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 9vw 22px 9vw;
    margin-bottom: 32px;
    animation: fadeInDown 1.1s cubic-bezier(.21,.82,.69,.98);
}
header h1 {
    font-size: 2.7em;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #00796b;
    text-shadow: 0 2px 4px rgba(0,0,0,0.16);
}
header nav a {
    margin-left: 44px;
    color: #555;
    font-size: 1.28em;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.2s;
}
header nav a:hover {
    color: #ff4081;
    text-shadow: 0 0 8px #fff17699;
}

/* 内容区：大气宽敞，动画浮现 */
main {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1 0 auto;
    width: 100vw;
    min-height: 70vh;
    animation: fadeIn 1.2s cubic-bezier(.21,.82,.69,.98);
}
.post-list {
    width: 86vw;
    max-width: 1320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 42px;
    margin: 28px 0 90px 0;
    /* 半透明磨砂大卡片 */
    background: rgba(255,255,255,0.13);
    border: 1.5px solid rgba(255,255,255,0.44);
    border-radius: 22px;
    backdrop-filter: blur(16px);
    box-shadow: 0 9px 38px 0 rgba(0,0,0,0.11);
    padding: 46px 5vw;
    animation: floatUp 1.2s cubic-bezier(.21,.82,.69,.98);
}

/* 文章卡片动画&样式 */
article {
    background: rgba(255,255,255,0.91);
    box-shadow: 0 2px 18px 0 rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 32px 48px;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: articleFadeIn 1s cubic-bezier(.21,.82,.69,.98) forwards;
}
article:nth-child(1) { animation-delay: 0.10s;}
article:nth-child(2) { animation-delay: 0.18s;}
article:nth-child(3) { animation-delay: 0.26s;}
article:nth-child(4) { animation-delay: 0.34s;}
article:nth-child(5) { animation-delay: 0.42s;}
article:nth-child(6) { animation-delay: 0.50s;}
article:nth-child(7) { animation-delay: 0.58s;}
article:nth-child(8) { animation-delay: 0.66s;}
article:hover {
    box-shadow: 0 12px 38px 0 rgba(0,0,0,0.15);
    transform: scale(1.03) translateY(-6px);
}
article h2 {
    margin-bottom: 13px;
    font-size: 1.63em;
    font-weight: 700;
    letter-spacing: 0.05em;
}
article h2 a {
    color: #00796b;
    text-decoration: none;
    transition: color 0.2s;
}
article h2 a:hover {
    color: #ff4081;
}
.meta {
    color: #888;
    font-size: 1.07em;
    margin-bottom: 15px;
}

@keyframes articleFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(60px);}
    to   { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-80px);}
    to   { opacity: 1; transform: translateY(0);}
}
@keyframes floatUp {
    from { opacity: 0; transform: translateY(80px) scale(0.96);}
    to   { opacity: 1; transform: translateY(0) scale(1);}
}

footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 40px;
    background: rgba(255,255,255,0.40);
    backdrop-filter: blur(8px);
    box-shadow: 0 -2px 16px 0 rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-top: 1px solid rgba(180,180,180,0.15);
}
footer p {
    color: #222;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 0.08em;
    margin: 0;
}
footer a {
    color: #00796b;
    text-decoration: underline;
    font-weight: bold;
}
footer a:hover {
    color: #ff4081;
}

/* 响应式布局优化 */
@media (max-width: 1200px) {
    .post-list { width: 98vw; padding: 24px 1vw; }
    header { padding: 18px 4vw; }
}
@media (max-width: 900px) {
    .post-list { padding: 14px 0.5vw;}
    article { padding: 18px 6px;}
    header { flex-direction: column; align-items: flex-start; }
    header h1 { font-size: 1.5em; }
    header nav { margin-top: 8px; }
}
@media (max-width: 600px) {
    .post-list { width: 99vw; gap:12px;}
    article { padding: 10px 4px; }
    header { padding: 10px 3vw; }
    footer { font-size: 0.90em; min-height: 28px; }
}
