/* style.css */
/* ...保留你之前的样式... */
/* 为了方便，请把下面这一整段覆盖原来的 style.css，或者直接加在文件最后 */

body { background-color: #121212; color: #e0e0e0; font-family: "Microsoft YaHei", sans-serif; margin: 0; padding-bottom: 80px; }
a { text-decoration: none; color: inherit; }
.container { max-width: 600px; margin: 0 auto; padding: 0; }

/* 官方发布 */
.official-header {
    text-align: center; font-size: 22px; font-weight: 900; margin: 20px 0 10px 0;
    background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0px 0px 10px rgba(255, 215, 0, 0.2); letter-spacing: 2px;
}

/* 顶部栏 */
.header-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid #333; background: #121212; }
.header-bar h1 { margin: 0; font-size: 16px; color: #aaa; font-weight: normal; }
.btn { padding: 5px 10px; background: #333; border-radius: 4px; font-size: 12px; color: #fff; }

/* 头像 (强制修复版) */
.user-info { display: flex; align-items: center; margin-bottom: 10px; }
.avatar { width: 45px !important; height: 45px !important; min-width: 45px; border-radius: 50%; margin-right: 10px; flex-shrink: 0; overflow: hidden; border: 1px solid #333; display: block; background: #000; }
.avatar img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.meta { display: flex; flex-direction: column; }
.username { font-weight: bold; color: #d4af37; font-size: 15px; } 
.time { font-size: 12px; color: #666; margin-top: 3px; }
.top-badge { background-color: #ff4757; color: white; font-size: 10px; padding: 1px 4px; border-radius: 2px; margin-left: 5px; }

/* 内容与图片 */
.post-card { background-color: #1e1e1e; padding: 15px; margin-bottom: 10px; border-bottom: 1px solid #000; }
.post-content { font-size: 15px; line-height: 1.5; color: #fff; margin-bottom: 10px; white-space: pre-wrap; }
.highlight { color: #ffab40; font-weight: bold; margin-right: 5px; }
.media-grid { display: grid; gap: 4px; margin-top: 10px; }
.media-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.media-grid.cols-3 img, .media-grid.cols-3 video { aspect-ratio: 1/1; object-fit: cover; }
.media-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.media-grid.cols-2 img, .media-grid.cols-2 video { aspect-ratio: 3/4; object-fit: cover; }
.media-grid.cols-1 { grid-template-columns: 1fr; }
.media-grid.cols-1 img, .media-grid.cols-1 video { width: 60%; height: auto; max-height: 400px; object-fit: contain; border-radius: 6px; }
.media-grid img, .media-grid video { width: 100%; border-radius: 4px; background: #222; }
.detail-media { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.detail-media img, .detail-media video { width: 100%; height: auto; border-radius: 8px; }

/* 底部与后台 */
.post-footer { display: flex; justify-content: flex-end; padding-top: 10px; color: #666; font-size: 13px; }
.cs-float-btn { position: fixed; bottom: 30px; right: 20px; background: #00bcd4; color: white; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.5); font-weight: bold; z-index: 1000; }
input[type="text"], textarea { width: 100%; background: #333; border: 1px solid #444; color: #fff; padding: 10px; margin-bottom: 10px; border-radius: 4px; box-sizing: border-box; }
button { background: #ff9800; color: white; border: none; padding: 12px; cursor: pointer; border-radius: 4px; width: 100%; }
.admin-section { background: #252525; padding: 15px; border-radius: 8px; margin-bottom: 20px; }

/* === 新增：登录页专用样式 (全屏居中、大号输入框) === */
.login-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #121212; z-index: 9999;
    display: flex; justify-content: center; align-items: center; /* Flex居中 */
}
.login-box-center {
    width: 80%; max-width: 350px; /* 宽度适中 */
    background: #1e1e1e;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}
.login-title { font-size: 20px; font-weight: bold; margin-bottom: 30px; color: #d4af37; }
/* 大号密码框 */
.input-large {
    width: 100%; height: 50px; font-size: 18px; text-align: center;
    border: 1px solid #444; background: #2a2a2a; color: #fff;
    border-radius: 8px; margin-bottom: 20px; box-sizing: border-box;
}
/* 大号按钮 */
.btn-large {
    width: 100%; height: 50px; font-size: 18px; font-weight: bold;
    background: linear-gradient(to right, #ff9800, #ff5722);
    border: none; border-radius: 8px; color: white; cursor: pointer;
}