/* --- 1. 基础全局样式 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    transition: color 0.3s;
}

/* 夜间模式样式 */
body.dark-mode {
    color: #dfe6e9;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. 页面标题区：增加包裹层实现"消失"效果 --- */
.header-wrapper {
    position: relative;
    z-index: 1; /* 低于导航栏 */
    overflow: hidden; /* 关键：超出部分直接裁切，不进入导航栏区域 */
}

.page-header {
    padding: 70px 0 50px;
    text-align: center;
    transition: transform 0.1s linear, opacity 0.1s linear;
    will-change: transform, opacity;
}

.page-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #000000;
}

.typing-container { display: flex; justify-content: center; }
.typing-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #5e72e4;
    width: 0;
    animation: 
        typing 3s steps(34, end) forwards, 
        blink 0.75s step-end infinite;
}

@keyframes typing { from { width: 0; } to { width: 34ch; } }
@keyframes blink { from, to { border-color: transparent; } 50% { border-color: #5e72e4; } }

/* --- 4. 碎碎念卡片流 --- */
.status-list { 
    position: relative;
    z-index: 2; /* 卡片层级略高于标题背景 */
    padding-bottom: 60px; 
}

.status-item { margin-bottom: 40px; }

.status-meta {
    border-radius: 24px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #5e72e4;
    font-weight: bold;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.status-card {
    padding: 30px;
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform, box-shadow;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.status-content { font-size: 1.05rem; line-height: 1.8; color: #525f7f; transition: color 0.3s; }
.status-content img { max-width: 100%; border-radius: 10px; margin-top: 15px; display: block; }

.status-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f6f9fc;
    display: flex;
    gap: 12px;
    transition: border-top 0.3s;
}

.btn-action {
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid #5e72e4;
    background: transparent;
    color: #5e72e4;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.2s;
}

.btn-action:hover { background: #5e72e4; color: #fff; }

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 0;
    color: #b2bec3;
    border-top: 1px solid #eee;
    transition: border-top 0.3s, color 0.3s;
}

footer a {
    color: #b2bec3;
    text-decoration: none;
}

/* 夜间模式文本和按钮样式 */
body.dark-mode .page-title { color: #ffffff; }
body.dark-mode .typing-text { color: #ffffff; }
body.dark-mode .status-content { color: #b2bec3; }
body.dark-mode .status-actions { border-top: 1px solid #2d3436; }
body.dark-mode .btn-action { border-color: #74b9ff; color: #74b9ff; }
body.dark-mode .btn-action:hover { background: #74b9ff; }
body.dark-mode footer {
    color: #636e72;
    border-top: 1px solid #2d3436;
}

body.dark-mode footer a {
    color: #636e72;
}

/* 评论样式 */
.comment-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 10px;
    flex-wrap: wrap;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar.placeholder {
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar.placeholder i {
    color: #6c757d;
}

.user-avatar.small {
    width: 28px;
    height: 28px;
}

.user-avatar.small.placeholder i {
    font-size: 0.8rem;
}

.comment-input {
    flex: 1;
    min-width: 0;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    background-color: #f8f9fa;
    outline: none;
    transition: all 0.3s;
}

.comment-submit {
    background: #5e72e4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.comment-section {
    margin-top: 15px;
    padding: 0 10px;
    display: none;
}

.comment-list {
    margin-bottom: 15px;
}

.comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f2f6;
}

.comment-item.reply {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #f1f2f6;
    margin-left: 60px;
}

.comment-content {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comment-time {
    font-size: 0.75rem;
    color: #b2bec3;
    flex-shrink: 0;
}

.comment-location {
    font-size: 0.75rem;
    color: #868e96;
    flex-shrink: 0;
}

.comment-text {
    color: #343a40;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reply-btn, .like-comment-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.3s;
}

.reply-list {
    margin-top: 12px;
    margin-left: 10px;
}

.reply-item {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.reply-content {
    flex: 1;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.reply-author {
    font-weight: 500;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.reply-time {
    font-size: 0.7rem;
    color: #b2bec3;
    flex-shrink: 0;
}

.reply-location {
    font-size: 0.7rem;
    color: #868e96;
    flex-shrink: 0;
}

.reply-text {
    color: #495057;
    font-size: 0.85rem;
    line-height: 1.3;
}

.reply-form {
    margin-top: 10px;
    display: none;
    flex: 1;
}

.reply-form-content {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.reply-input-container {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.reply-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    background-color: #f8f9fa;
    outline: none;
    font-size: 0.85rem;
}

.cancel-reply {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    flex-shrink: 0;
}

.reply-submit {
    background: #5e72e4;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    color: #adb5bd;
    padding: 40px;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* 深色模式下的评论样式 */
body.dark-mode .comment-author {
    color: #f8f9fa;
    font-weight: 500;
}

body.dark-mode .comment-time {
    color: #cbd5e1;
}

body.dark-mode .comment-location {
    color: #cbd5e1;
}

body.dark-mode .comment-text {
    color: #f8f9fa;
    font-weight: 500;
}

body.dark-mode .reply-btn, body.dark-mode .like-comment-btn {
    color: #cbd5e1;
}

body.dark-mode .reply-item {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .reply-author {
    color: #f8f9fa;
}

body.dark-mode .reply-time {
    color: #cbd5e1;
}

body.dark-mode .reply-location {
    color: #cbd5e1;
}

body.dark-mode .reply-text {
    color: #f8f9fa;
}

body.dark-mode .comment-input, body.dark-mode .reply-input {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-mode .comment-input::placeholder, body.dark-mode .reply-input::placeholder {
    color: #a1a1aa;
}

body.dark-mode .cancel-reply {
    color: #cbd5e1;
}

@media (max-width: 600px) {
    .page-title { font-size: 1.8rem; }
    .typing-text { font-size: 0.85rem; }
    .status-card { padding: 20px; }
}