#head_title {
    font-size: 24px;
    color: white;
}
a {
    color: white;
    text-decoration: none;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
}
nav {
    display: flex;
    justify-content: center;
    background-color: #444;
}
nav a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
}
nav a:hover {
    background-color: #555;
}
#info-modules {
    display: flex;
    justify-content: space-between;
    background-color: #f4f4f4;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.time, .weather {
    flex: 1;
    text-align: center;
}
section {
    padding: 20px;
}
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    z-index: 2;
    opacity: 0.5;
    transition: transform 0.3s;
}
#waterfall {
    column-count: 3;
    column-gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto 80px auto;
}
.waterfall-item {
    background: #fff;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    break-inside: avoid;
    opacity: 0;
    animation: waterfall-fade-in 0.6s cubic-bezier(.23,1.02,.53,.97) forwards;
}
#bg-iframe {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: -1;
}

/* 让除背景外所有内容25%不透明 */
#main-content {
    position: relative;
    z-index: 1;
    opacity: 0.5;
    padding-bottom: 80px; /* 给内容区底部留出footer高度 */
}

/* 弹出对话框样式 */
#chat-popup {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: flex-end;
    background: transparent;
}
#chat-popup-content {
    width: 100vw;
    max-width: 100vw;
    height: 60vh;
    min-height: 200px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0.98;
    padding: 0;
    overflow: hidden;
}
#chat-popup iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 16px 16px;
}
#chat-popup-close {
    position: absolute;
    right: 16px;
    top: 10px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    transition: background 0.2s;
}
#chat-popup-close:hover {
    background: #eee;
}

@keyframes popup-bounce-in {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes popup-fade-out {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(100%) scale(1);
        opacity: 0;
    }
}
@keyframes waterfall-fade-in {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#chat-popup-content.popup-in {
    animation: popup-bounce-in 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
#chat-popup-content.popup-out {
    animation: popup-fade-out 0.3s cubic-bezier(.4,0,.2,1);
}
#loading-mask {
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s;
}
.loader {
    border: 6px solid #eee;
    border-top: 6px solid #021120;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}
.loading-text {
    font-size: 18px;
    color: #021120;
    letter-spacing: 2px;
}
#loading-mask.dark {
    background: rgba(10,18,32,0.95);
}
#loading-mask.dark .loader {
    border: 6px solid #222;
    border-top: 6px solid #409eff;
}
#loading-mask.dark .loading-text {
    color: #409eff;
}