﻿@charset "utf-8";
@import url("/css/remixicon.css");
/* ========== 全局样式与变量 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-body); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-yellow); }

:root {
    --bg-body: #FDF8E7;
    --card-bg: #FFF9EF;
    --accent-red: #FF6B5B;
    --accent-yellow: #FFD93D;
    --accent-dark: #2E2E2E;
    --text-primary: #2C2B2A;
    --text-secondary: #5A4A42;
    --text-light: #2C2B2A;
	--text-public: #F7EED7;
	--border-light: #FFF2C1;
    --shadow-heavy: 6px 6px 0px rgba(0, 0, 0, 0.2);
    --shadow-light: 4px 4px 0px rgba(0, 0, 0, 0.1);
    --shadow-black: 6px 6px 0px #00000033;
    --progress-bg: #E0D6C0;
    --btn-text: #2E2E2E;
    --tooltip-bg: #F7EED7;
    --tooltip-text: #2E2E2E;
    --tooltip-border: #2E2E2E;
    --toast-bg: #F7EED7;
    --toast-text: #2E2E2E;
    --modal-bg: #FFF9EF;
    --modal-border: #2E2E2E;
    --input-border: #2E2E2E;
    --input-bg: #FDF8E7;
}

body.dark {
    --bg-body: #1E1B1A;
    --card-bg: #2A2624;
    --accent-red: #E85D4A;
    --accent-yellow: #F4B942;
    --accent-dark: #F0E3D0;
    --text-primary: #F7EED7;
    --text-secondary: #CFC5AE;
    --text-light: #F7EED7;
    --progress-bg: #3A3532;
    --tooltip-bg: #2E2E2E;
    --tooltip-text: #FFD93D;
    --tooltip-border: #FFD93D;
    --toast-bg: #2E2E2E;
    --toast-text: #FFD93D;
    --modal-bg: #2A2624;
    --modal-border: #F0E3D0;
    --input-bg: #1E1B1A;
    --input-border: #F0E3D0;
}

/* ========== 字体设置 ========== */
/* 使用系统自带字体，无需加载任何外部文件 */
:root {
    --font-sans: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: background 0.2s;
    font-size: clamp(14px, 4vw, 17px);
    line-height: 1.5;
    font-weight: 400;
}

/* 标题使用加粗效果（微软雅黑 Bold） */
h1, h2, h3, h4, 
.hero-title, 
.diary-title, 
.post-card .user-name,
.card h3,
.section-title,
.adjacent-title,
.random-title,
.random-title-link,
.diary-stats-bar .stat-item,
.like-btn-main,
.submit-comment,
.page-btn,
.main-comment-btn,
.bottom-item,
.tag-link,
.friend-link,
.comment-user-name,
.recent-comment-name {
    font-weight: 700 !important;
    letter-spacing: -0.01em;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
}


/*博主专属badge*/
.blogger {background:var(--accent-yellow);border:1px solid #2E2E2E;color:#2E2E2E;border-radius:5px;font-size:12px;padding:0 2px;}

/*真实用户专属badge*/
.realer {background: var(--bg-body);border:1px solid #2E2E2E;color:#2E2E2E;border-radius:5px;font-size:12px;padding:0 2px;white-space:nowrap;}

.rank-level {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: bold;
    background: var(--bg-body);
    border: 1px solid var(--accent-dark);
    white-space: nowrap;
}

/* 20个等级不同颜色 */
.level-1 { background: #9E9E9E; color: white; border-color: #757575; }
.level-2 { background: #7CB342; color: white; border-color: #558B2F; }
.level-3 { background: #43A047; color: white; border-color: #2E7D32; }
.level-4 { background: #1E88E5; color: white; border-color: #1565C0; }
.level-5 { background: #039BE5; color: white; border-color: #0288D1; }
.level-6 { background: #00ACC1; color: white; border-color: #0097A7; }
.level-7 { background: #FFA000; color: white; border-color: #FF8F00; }
.level-8 { background: #FB8C00; color: white; border-color: #F57C00; }
.level-9 { background: #F4511E; color: white; border-color: #E64A19; }
.level-10 { background: #E53935; color: white; border-color: #C62828; }
.level-11 { background: #D81B60; color: white; border-color: #C2185B; }
.level-12 { background: #AD1457; color: white; border-color: #880E4F; }
.level-13 { background: #8E24AA; color: white; border-color: #7B1FA2; }
.level-14 { background: #6A1B9A; color: white; border-color: #4A148C; }
.level-15 { background: #3949AB; color: white; border-color: #283593; }
.level-16 { background: #1A237E; color: white; border-color: #0D47A1; }
.level-17 { background: #00695C; color: white; border-color: #004D40; }
.level-18 { background: #2E7D32; color: white; border-color: #1B5E20; }
.level-19 { background: #BF360C; color: white; border-color: #8D6E63; }
.level-20 { background: #4E342E; color: white; border-color: #3E2723; }
		
/* 特别粗的标题增强 */
.hero-title,
.diary-title,
.section-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* 代码块等宽字体 */
code, pre, .comment-content code, .plain-text code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* 正文保持正常字重 */
.comment-content,
.diary-content,
.plain-text,
.summary-content {
    font-weight: 400;
	font-size: 0.9rem;
}

.comment-time {
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* 粗体 */
strong, b {
    font-weight: 700;
}

a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    color: #2E2E2E;
    border-bottom: 2px dotted transparent;
    padding: 4px 0;
    transition: 0.1s;
    white-space: nowrap;
}
a:hover { border-bottom-color: var(--accent-yellow); }

.container { max-width: 1300px; margin: 0 auto; padding: 0 16px; }

/* ========== 导航栏样式 ========== */
.site-nav {
    background: var(--card-bg);
    border-bottom: 4px solid var(--accent-dark);
    border-top: 4px solid var(--accent-dark);
    box-shadow: var(--shadow-light);
    position: relative;
    z-index: 1000;
    width: 100%;
    transition: all 0.2s;
}
.site-nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    animation: slideDown 0.3s;
    box-shadow: var(--shadow-heavy);
    z-index: 1001;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
.nav-placeholder { display: none; height: 0; transition: height 0.2s; }
.site-nav.fixed + .nav-placeholder { display: block; height: 60px; }
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { margin-top: 5px; height: 40px; width: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links li { list-style: none; }
.nav-links a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    color: var(--text-primary);
    border-bottom: 2px dotted transparent;
    padding: 4px 0;
    transition: 0.1s;
    white-space: nowrap;
}
.nav-links a:hover { border-bottom-color: var(--accent-red); }
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: var(--accent-yellow);
    padding: 8px 10px;
    border: 2px solid var(--accent-dark);
    border-radius: 12px;
}
.hamburger span { width: 24px; height: 3px; background: var(--accent-dark); border-radius: 2px; }
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 260px;
    height: 100%;
    background: var(--card-bg);
    border-left: 3px solid var(--accent-dark);
    box-shadow: -4px 0 15px rgba(0,0,0,0.2);
    z-index: 2000;
    padding: 70px 20px;
    transition: right 0.3s ease;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.mobile-menu.open { right: 0; }
.mobile-menu li { list-style: none; }
.mobile-menu a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    border-left: 4px solid var(--accent-red);
    padding-left: 16px;
    display: block;
    transition: 0.1s;
}
.mobile-menu a:active { transform: translateX(5px); }
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(2px);
}
.menu-overlay.active { display: block; }

/* ========== 卡片通用样式 ========== */
.card {
    background: var(--card-bg);
    border: 4px solid var(--accent-dark);
    border-radius: 28px;

    padding: 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-black);
    transition: all 0.2s ease;
}
.card:hover {
    box-shadow: 6px 6px 0px rgba(0,0,0,0.25);
    transform: translate(-2px, -2px);
}

/* ========== 骨架屏 ========== */
.skeleton-card {
    background: var(--card-bg);
    border: 4px solid var(--accent-dark);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 32px;
    animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-header { display: flex; gap: 12px; margin-bottom: 16px; }
.skeleton-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--progress-bg); }
.skeleton-text { flex: 1; }
.skeleton-line { height: 12px; background: var(--progress-bg); border-radius: 6px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ========== 工具提示 ========== */
[data-tooltip] { position: relative; cursor: pointer; }
[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 8px 14px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 2px solid var(--tooltip-border);
    box-shadow: 4px 4px 0 var(--accent-dark);
    font-family: inherit;
}
[data-tooltip]:hover:before { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-12px); }

[data-tooltip-multi] { position: relative; cursor: pointer; }
[data-tooltip-multi]:before {
    content: attr(data-tooltip-multi);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
    line-height: 1.6;
	width: max-content;           /* 宽度自适应内容 */
    max-width: 280px;             /* 限制最大宽度，避免过宽出屏 */
    min-width: 80px;              /* 最小宽度，避免太窄 */
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    border: 2px solid var(--tooltip-border);
    box-shadow: 4px 4px 0 var(--accent-dark);
    font-family: inherit;
}
[data-tooltip-multi]:hover:before { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(-12px); }

/* ========== 浮动按钮 ========== */
.floating-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}
.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-yellow);
    border: 3px solid var(--accent-dark);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--accent-dark);
}
.float-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--accent-dark); }
.go-top { opacity: 0; visibility: hidden; transition: 0.2s; }
.go-top.show { opacity: 1; visibility: visible; }

/* ========== 底部栏 ========== */
.bottom-bar-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin: 10px auto 30px;
    padding: 0 16px;
}
.bottom-item {
    background: var(--card-bg);
    border: 2px solid var(--accent-dark);
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: bold;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.bottom-item:hover {
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 var(--accent-dark);
    background: var(--accent-yellow);
}
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.designer-credit { color: var(--accent-red); }

/* ========== 页脚 ========== */
.footer-info {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 0.7rem;
    border-top: 2px dotted var(--accent-dark);
    padding-top: 20px;
    color: var(--text-secondary);
}

/* ========== 模态框通用 ========== */
.info-modal, .online-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 20001;
    justify-content: center;
    align-items: center;
}
.info-modal.active, .online-modal.active { display: flex; }
.info-modal-content, .online-modal-content {
    background: var(--modal-bg);
    border: 4px solid var(--modal-border);
    border-radius: 28px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 8px 8px 0 var(--accent-dark);
}
.info-modal-header, .online-modal-header {
    padding: 16px 20px;
    border-bottom: 3px solid var(--modal-border);
    background: var(--accent-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-modal-header h3, .online-modal-header h3 { color: var(--accent-dark); font-weight: 900; margin: 0; }
.info-modal-body { padding: 20px; }
.info-field { margin-bottom: 16px; }
.info-field label { display: block; font-weight: bold; margin-bottom: 6px; color: var(--text-primary); }
.info-field input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--input-border);
    border-radius: 20px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.1s;
}
.info-field input:focus { border-color: var(--accent-red); box-shadow: 0 0 0 2px rgba(255,107,91,0.2); }
.modal-buttons { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.online-close {
    background: var(--accent-red);
    border: 2px solid var(--accent-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-weight: bold;
}
.online-list { flex: 1; overflow-y: auto; padding: 12px; max-height: 70vh; }
.online-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--accent-dark);
}
.online-device-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-dark);
}
.online-ip { font-weight: bold; color: var(--accent-red); }
.online-address { font-size: 0.7rem; color: var(--text-secondary); }
.online-time { font-size: 0.65rem; color: var(--text-secondary); white-space: nowrap; }

/* ========== Toast提示 ========== */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--toast-bg);
    color: var(--toast-text);
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 30000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 3px solid var(--accent-dark);
    box-shadow: 6px 6px 0 var(--accent-dark);
    text-align: center;
    max-width: 80%;
    white-space: nowrap;
    font-family: inherit;
}
.toast-message.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

/* ========== 图片预览模态框 ========== */
.preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}
.preview-modal.active {
    display: flex;
}
.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 预览头部 */
.preview-header {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}
.preview-title {
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: bold;
}
.preview-actions {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    gap: 12px;
    pointer-events: auto;
    z-index: 20;
}
.preview-zoom,
.preview-close {
    background: rgba(0,0,0,0.7);
    border: 2px solid var(--accent-yellow);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #FFD93D;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}
.preview-zoom:hover,
.preview-close:hover {
    background: var(--accent-yellow);
    color: var(--accent-dark);
    transform: scale(1.05);
}

/* 图片预览区域 */
.preview-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
}
.preview-image-area:active {
    cursor: grabbing;
}
.preview-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    transition: transform 0.05s linear;
    user-select: none;
}

/* 缩略图容器包装 */
.preview-thumb-wrapper {
    position: relative;
    background: rgba(0,0,0,0.6);
    padding: 12px 0;
    border-top: 2px solid rgba(255,217,61,0.5);
}

/* 缩略图容器 - 横向滚动，隐藏滚动条 */
.preview-thumbs {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 40px !important;
    /* 默认左对齐，当图片少时通过 JS 改为居中 */
    justify-content: flex-start !important;
    /* 隐藏滚动条 */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.preview-thumbs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
/* 图片少时居中对齐 */
.preview-thumbs.center-align {
    justify-content: center !important;
}
/* 图片多时左对齐并保留左右内边距 */
.preview-thumbs.left-align {
    justify-content: flex-start !important;
    padding: 8px 40px !important;
}

/* 缩略图图片 */
.preview-thumbs .thumb-item {
    flex-shrink: 0 !important;
    width: 70px !important;
    height: 70px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 2px solid var(--accent-dark) !important;
    cursor: pointer !important;
    opacity: 0.65 !important;
    transition: all 0.2s ease !important;
    display: block !important;
}
.preview-thumbs .thumb-item.active-thumb {
    opacity: 1 !important;
    border-color: var(--accent-yellow) !important;
    box-shadow: 0 0 0 2px rgba(255,217,61,0.3) !important;
}
.preview-thumbs .thumb-item:hover {
    opacity: 1 !important;
    transform: scale(1.05) !important;
}

/* 左右切换按钮 - 默认隐藏 */
.scroll-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0,0,0,0.7) !important;
    border: 2px solid var(--accent-yellow) !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: none !important;  /* 默认隐藏 */
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #FFD93D !important;
    font-size: 1.2rem !important;
    z-index: 10 !important;
    transition: all 0.2s ease !important;
}
.scroll-btn.show {
    display: flex !important;  /* 只有添加 show 类才显示 */
}
.scroll-left {
    left: 8px !important;
}
.scroll-right {
    right: 8px !important;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .preview-thumbs {
        padding: 8px 30px !important;
    }
    .preview-thumbs .thumb-item {
        width: 55px !important;
        height: 55px !important;
    }
    .scroll-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }
    .preview-zoom,
    .preview-close {
        width: 36px !important;
        height: 36px !important;
        font-size: 1rem !important;
    }
    .preview-title {
        font-size: 0.75rem !important;
        padding: 4px 16px !important;
    }
}

@media (max-width: 480px) {
    .preview-thumbs {
        padding: 8px 25px !important;
    }
    .preview-thumbs .thumb-item {
        width: 45px !important;
        height: 45px !important;
    }
    .scroll-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    .preview-zoom,
    .preview-close {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 360px) {
    .preview-thumbs {
        padding: 8px 20px !important;
    }
    .preview-thumbs .thumb-item {
        width: 40px !important;
        height: 40px !important;
    }
    .scroll-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }
}

/* ========== 评论相关样式 ========== */
.comment-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.form-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-user-info img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-red);
    object-fit: cover;
}
.edit-info-btn {
    background: var(--accent-yellow);
    border: 2px solid var(--accent-dark);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.65rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
    color: var(--accent-dark);
}
.edit-info-btn:hover {
    background: var(--accent-red);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--accent-dark);
}
.comment-textarea {
    width: 100%;
    background: var(--input-bg);
    border: 2px solid var(--accent-dark);
    border-radius: 20px;
    padding: 12px;
    font-family: inherit;
    min-height: 90px;
    margin-bottom: 12px;
    resize: vertical;
    color: var(--text-primary);
}
.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.emoji-btn {
    background: var(--accent-yellow);
    border: 2px solid var(--accent-dark);
    border-radius: 30px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    margin-right: auto;
}
.submit-comment {
    background: var(--accent-red);
    border: 2px solid var(--accent-dark);
    border-radius: 30px;
    padding: 6px 20px;
    font-weight: bold;
    cursor: pointer;
    color: white;
}
.action-cancel-btn {
    background: var(--bg-body);
    border: 2px solid var(--accent-dark);
    border-radius: 30px;
    padding: 6px 12px;
    cursor: pointer;
}
.emoji-panel {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 12px;
    margin-top: 12px;
    display: none;
    border: 2px solid var(--accent-dark);
    max-height: 250px;
    overflow-y: auto;
}
.emoji-tab-header {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--accent-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    flex-wrap: wrap;
}
.emoji-tab {
    background: var(--bg-body);
    border: none;
    padding: 4px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}
.emoji-tab.active {
    background: var(--accent-yellow);
    border: 2px solid var(--accent-dark);
}
.emoji-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-height: 180px;
    overflow-y: auto;
    align-items: center;
    justify-content: flex-start;
    padding: 8px;
}
.emoji-item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.1s;
    border-radius: 8px;
    padding: 4px;
}
.emoji-item-img:hover {
    transform: scale(1.2);
    background: var(--accent-yellow);
}
.emoji-item-text {
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px;
    transition: all 0.1s;
    display: inline-block;
}
.emoji-item-text:hover { transform: scale(1.3); }

/* ========== 点赞头像样式 ========== */
.like-avatars {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 22px 0 12px 0;
    position: relative;
    z-index: 2;
    gap: 4px;
}
.like-avatar-item {
    position: relative;
    display: inline-block;
    transition: transform 0.1s;
}
.like-avatar-item:hover {
    transform: translateY(-3px);
    z-index: 5;
}
.like-avatar-item img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--accent-dark);
    background: var(--card-bg);
}
.like-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-dark);
    padding: 0 4px;
}

/* ========== 分页样式 ========== */
.pagination {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}
.page-btn {
    background: var(--accent-yellow);
    border: 3px solid var(--accent-dark);
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 40px;
    color: var(--btn-text);
    transition: 0.1s;
}
.page-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--accent-dark);
    background: var(--accent-red);
    color: white;
}
.page-btn.active {
    background: var(--accent-red);
    color: white;
}

/* ========== 两栏布局 ========== */
.two-columns {
    display: flex;
    gap: 32px;
    margin: 48px 0 60px;
    flex-wrap: wrap;
}
.left-col { flex: 2; min-width: 0; }
.right-col { flex: 1.2; min-width: 260px; }
.right-col .sticky-card { position: sticky; top: 90px; }

/* ========== 每日卡片 ========== */
.daily-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 24px 20px;
}
.daily-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    border-radius: 24px;
    z-index: 0;
}
.daily-card > * { position: relative; z-index: 1; }
.daily-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 16px;
}
.daily-big-date {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-yellow);
    text-shadow: 2px 2px 0 var(--accent-dark);
}
.daily-date-divider {
    width: 3px;
    height: 60px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
}
.daily-month-year { display: flex; flex-direction: column; line-height: 1.8em; }
.daily-month {
    font-size: 1.5rem;
    color: white;
    text-transform: uppercase;
}
.daily-year { font-size: 1.8rem; color: rgba(255,255,255,0.8); font-weight: 800; }
.daily-content { text-align: left; padding: 10px 0; }
.daily-en {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-yellow);
    margin-bottom: 12px;
    text-shadow: 1px 1px 0 var(--accent-dark);
}
.daily-cn {
    font-size: 1rem;
    color: white;
    margin-bottom: 16px;
    opacity: 0.95;
}
.daily-tag {
    display: inline-block;
    background: rgba(0,0,0,0.5);
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
}

/* ========== 标签和友链 ========== */
.tag-list, .friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.tag-link, .friend-link {
    background: var(--accent-yellow);
    border: 3px solid var(--accent-dark);
    padding: 6px 16px;
    font-weight: bold;
    text-decoration: none;
    color: var(--accent-dark);
    border-radius: 40px;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0 var(--accent-dark);
}
.tag-link:hover, .friend-link:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--accent-dark);
    background: var(--accent-red);
    color: white;
}

/* ========== 徽章网格 ========== */
.badges-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 16px;
    width: 100%;
    overflow-x: visible;
    padding: 8px 0;
}
.badge-icon {
    flex: 1;
    min-width: 55px;
    max-width: 65px;
    text-align: center;
    transition: transform 0.2s ease;
    background: transparent;
    border: none;
    overflow: visible;
}
.badge-icon:hover { transform: translateY(-5px); }
.badge-icon img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border: none;
}

/* ========== 用户卡片 ========== */
.user-card-new {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
/* 侧边栏头像框修复 */
.user-card-new .avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}

.user-card-new .avatar-frame-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-red);
    box-shadow: 2px 2px 0 var(--accent-dark);
    display: block;
    position: relative;
    z-index: 1;
}

.user-card-new .avatar-frame-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: 130%;
    max-height: 130%;
    pointer-events: none;
    z-index: 2;
    object-fit: contain;
}

.level-progress-bar {
    background: var(--progress-bg);
    border-radius: 20px;
    height: 8px;
    margin: 8px 0;
    border: 1px solid var(--accent-dark);
    overflow: hidden;
    width: 100%;
}
.level-progress-fill {
    height: 100%;
    background: var(--accent-red);
    border-radius: 20px;
    transition: width 0.3s ease;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); ;
    gap: 12px;
    margin-top: 16px;
}
.stat-item {
    background: var(--bg-body);
    border-radius: 20px;
    padding: 8px;
    text-align: center;
    border: 2px solid var(--accent-dark);
}
.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 3px 3px 0 var(--accent-dark);
}
.stat-num { font-size: 1rem; font-weight: 900; color: var(--accent-red); }
.guest-login-btn {
    background: var(--accent-yellow);
    border: 2px solid var(--accent-dark);
    border-radius: 40px;
    padding: 8px 16px;
    margin-top: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}
.guest-login-btn:hover {
    background: var(--accent-red);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--accent-dark);
}

/* ========== 最新评论侧边栏 ========== */
.recent-comment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 2px dashed var(--accent-dark);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 16px;
}
.recent-comment-item:hover {
    background: rgba(255,107,91,0.1);
    transform: translateX(5px);
}
.recent-comment-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
}
.recent-comment-content { flex: 1; min-width: 0; }
.recent-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.recent-comment-name {
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--accent-red);
}
.recent-comment-time {
    font-size: 0.65rem;
    color: var(--text-secondary);
    white-space: nowrap;
}
.recent-comment-text {
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 文字折叠功能 ========== */
.collapsed-content {
    max-height: 4.5em;
    overflow: hidden;
    transition: max-height 0.2s ease;
}
.collapsed-content.expanded { max-height: 2000px; }
.toggle-readmore {
    display: inline-block;
    background: var(--accent-yellow);
    border: 2px solid var(--accent-dark);
    padding: 4px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 8px;
    cursor: pointer;
    transition: 0.1s;
    color: var(--accent-dark);
    text-align: center;
}
.toggle-readmore:hover {
    background: var(--accent-red);
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--accent-dark);
}

/* ========== 说说/日志卡片样式 ========== */
.post-card {
    position: relative;
    overflow: visible;
    background: var(--card-bg);
    border: 4px solid var(--accent-dark);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-black);
    transition: all 0.2s ease;
}
.post-card:hover {
    box-shadow: 6px 6px 0px rgba(0,0,0,0.25);
    transform: translate(-2px, -2px);
}
.post-card.talk-card::before {
    content: "💬 TALKING";
    background: var(--accent-yellow);
    color: var(--accent-dark);
    position: absolute;
    top: -18px;
    right: 24px;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 40px;
    border: 2px solid var(--accent-dark);
    transform: rotate(4deg);
    z-index: 10;
    white-space: nowrap;
}
.post-card.diary-card::before {
    content: "📖 BLOGGING";
    background: var(--accent-red);
    color: white;
    position: absolute;
    top: -18px;
    right: 24px;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 40px;
    border: 2px solid var(--accent-dark);
    transform: rotate(4deg);
    z-index: 10;
    white-space: nowrap;
}
.diary-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    border-radius: 24px;
    z-index: 0;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    gap: 10px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-info img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.user-name { font-weight: 900; font-size: 1.1rem; }
.post-time { font-size: 0.75rem; color: var(--text-secondary); }
.right-slogan {
    font-size: 0.7rem;
    background: var(--accent-red);
    padding: 4px 12px;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    border: 2px solid var(--accent-dark);
}
.talk-content { position: relative; z-index: 2; }
.plain-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: break-word;
}
.plain-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 4px 0;
}
.image-grid {
    display: grid;
	grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}
.image-grid.cols-1 { grid-template-columns: 1fr; max-width: 300px; }
.image-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.image-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--accent-dark);
    cursor: pointer;
    transition: transform 0.1s;
}
.image-grid img:hover {
    transform: scale(0.98);
    opacity: 0.9;
}
.tag-location-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 12px;
    position: relative;
    z-index: 2;
}
.tag-badge, .location-badge {
    background: var(--accent-dark);
    color: var(--accent-yellow);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: bold;
    border: 1px solid var(--accent-yellow);
}
.action-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 12px;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.comment-btn, .like-btn {
    background: none;
    border: 2px solid var(--accent-dark);
    padding: 6px 18px;
    border-radius: 40px;
	color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    background: var(--bg-body);
    font-family: inherit;
    transition: 0.1s;
}
.comment-btn:hover, .like-btn:hover {
    background: var(--accent-yellow);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 var(--accent-dark);
}
.readmore {
    display: inline-block;
    background: var(--accent-yellow);
    border: 2px solid var(--accent-dark);
    padding: 6px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--accent-dark);
    margin-top: 12px;
    font-weight: bold;
}
.readmore:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--accent-dark);
    background: var(--accent-red);
    color: white;
}

/* ========== 评论区域折叠 ========== */
.comments-area .comment-item,
.comments-area .reply-item {
    margin-bottom: 0;
    padding: 10px;
    background: var(--bg-body);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.1s;
    word-break: break-word;
    border-bottom: 1px solid var(--border-light);
}
.comments-area .comment-item:last-child,
.comments-area .reply-item:last-child { border-bottom: none; }
.comments-collapse-wrapper {
    max-height: 160px;
    overflow: hidden;
    transition: max-height 0.2s ease;
}
.comments-collapse-wrapper.expanded { max-height: none !important; }
.comment-user-name {
    font-weight: 900;
    color: var(--accent-red);
    margin-right: 6px;
    font-size: 0.9rem;
}
.comment-form-wrapper {
    display: none;
    margin-top: 16px;
    background: var(--card-bg);
    border: 3px solid var(--accent-dark);
    border-radius: 24px;
    padding: 16px;
    position: relative;
    z-index: 100;
}
.reply-badge {
    background: var(--accent-yellow);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 12px;
    border: 2px solid var(--accent-dark);
}
.comment-toggle {
    text-align: center;
    margin-top: 8px;
    cursor: pointer;
    color: var(--accent-red);
    font-weight: bold;
}
.comment-toggle:hover { text-decoration: underline; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .two-columns { flex-direction: column; }
    .left-col { order: 1; width: 100%; }
    .right-col { order: 2; width: 100%; margin-top: 20px; }
    .right-col .sticky-card { position: static; }
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }
    .right-slogan {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .action-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 12px;
    }
    .comment-btn, .like-btn {
        margin: 0;
        display: inline-flex;
    }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .container { padding: 0 12px; }
    .two-columns { gap: 24px; margin: 30px 0 40px; }
    .card, .post-card { padding: 16px; border-radius: 20px; }
    .post-card.talk-card::before, .post-card.diary-card::before {
        top: -14px;
        right: 16px;
        font-size: 0.65rem;
        padding: 3px 10px;
    }
    .user-info img { width: 36px; height: 36px; }
    .user-name { font-size: 0.9rem; }
    .right-slogan { font-size: 0.6rem; padding: 3px 10px; }
    .comment-btn, .like-btn { padding: 4px 12px; font-size: 0.8rem; }
    .image-grid.cols-1 { grid-template-columns: 1fr; max-width: 100%; }
    .image-grid.cols-2, .image-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .avatar-frame-img { width: 60px; height: 60px; }
    .stats-grid { gap: 8px; }
    .stat-item { padding: 6px; }
    .stat-num { font-size: 1rem; }
    .pagination { gap: 8px; }
    .page-btn { padding: 6px 12px; font-size: 0.8rem; }
    .comment-form-wrapper { padding: 12px; }
    .emoji-item-img { width: 36px; height: 36px; }
    .emoji-item-text { font-size: 1.4rem; }
    .float-btn { width: 42px; height: 42px; font-size: 1.1rem; }
    .toast-message { white-space: normal; font-size: 0.8rem; padding: 10px 20px; }
    .daily-big-date { font-size: 2.8rem; }
    .daily-date-divider { height: 45px; }
    .daily-month { font-size: 1.2rem; }
    .daily-year { font-size: 0.85rem; }
    .daily-en { font-size: 1.1rem; }
    .daily-cn { font-size: 0.85rem; }
    .daily-header { gap: 12px; margin-bottom: 15px; padding-bottom: 12px; }
    .badges-grid { gap: 12px; }
    .badge-icon { min-width: 48px; max-width: 55px; }
    .like-avatar-item img { width: 28px; height: 28px; }
    .preview-thumb-wrapper { padding: 12px 30px; }
    .thumb-item { width: 45px; height: 45px; }
    .scroll-btn { width: 28px; height: 28px; }
    .bottom-bar-wrapper { gap: 12px; }
    .bottom-item { padding: 4px 12px; font-size: 0.65rem; }
}
@media (max-width: 480px) {
    .card-header { flex-direction: row; align-items: center; gap: 8px; justify-content: space-between; }
    .action-row { flex-direction: row; align-items: center; justify-content: space-between; }
    .tag-location-row { gap: 8px; }
    .tag-badge, .location-badge { font-size: 0.6rem; padding: 3px 8px; }
    .right-slogan { white-space: nowrap; font-size: 0.55rem; }
    .recent-comment-text { white-space: normal; }
}