* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:root {
    --red: #ff2442;
    --pink: #ff2d79;
    --light-pink: #fff0f5;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #999999;
    --border: #f0f0f0;
    --background: #f8f8f8;
    --comment-bg: #fafafa;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    --private-color: #9c27b0;
    --achievement-gold: #ffd700;
    --achievement-silver: #c0c0c0;
    --achievement-bronze: #cd7f32;
}

body {
    background-color: var(--background);
    color: var(--dark-gray);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 60px;
    line-height: 1.5;
    font-size: 15px;
}

/* 笔记页面容器 */
.note-page {
    min-height: 100vh;
    padding-bottom: 60px;
}

/* 顶部标题栏 */
.header {
    position: sticky;
    top: 0;
    background-color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--red);
    margin-right: 8px;
}

.tab-bar {
    display: flex;
    gap: 20px;
}

.tab {
    font-size: 16px;
    color: var(--medium-gray);
    position: relative;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.3s;
}

.tab.active {
    color: var(--dark-gray);
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--red);
    border-radius: 3px;
}

.header-icons {
    display: flex;
    gap: 16px;
}

.header-icon {
    font-size: 20px;
    color: var(--dark-gray);
}

/* 搜索功能样式 */
.search-container {
    position: relative;
}

.search-icon {
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon:hover {
    color: var(--red);
}

.search-box {
    position: absolute;
    top: -8px;
    right: -16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 40px 8px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 280px;
    display: none;
    z-index: 200;
}

.search-box.active {
    display: block;
    animation: searchSlideIn 0.3s ease-out;
}

@keyframes searchSlideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
        width: 0;
    }
    to {
        opacity: 1;
        transform: translateX(0);
        width: 280px;
    }
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--dark-gray);
    background: transparent;
}

.search-input::placeholder {
    color: var(--light-gray);
}

.search-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--light-gray);
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.search-close:hover {
    background: #f5f5f5;
    color: var(--dark-gray);
}

/* 搜索结果提示 */
.search-result-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 16px;
    z-index: 500;
    display: none;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.search-result-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

/* 成就通知样式 - 居中显示 */
.achievement-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff121;
    border-radius: 30px;
    border: 4px solid #f39c20;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1000;
    width: 85%;
    max-width: 380px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
}

@keyframes popIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

.achievement-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.achievement-text {
    flex: 1;
}

.achievement-title {
    font-size: 16px;
    color: white;
    text-shadow: 1px 1px 2px black;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.achievement-name {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 5px;
    color: white;
    text-shadow: 1px 1px 2px black;
    letter-spacing: 0.5px;
}

.achievement-desc {
    font-size: 15px;
    color: white;
    text-shadow: 1px 1px 2px black;
}

/* 成就页面 */
.achievement-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 400;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 20px;
}

.achievement-page.active {
    transform: translateX(0);
}

.achievement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.achievement-title-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-gray);
}

.close-achievements {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--medium-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-achievements:hover {
    background: #f5f5f5;
}

.achievement-stats {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-count {
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 4px;
}

.stat-label {
    color: var(--medium-gray);
    font-size: 14px;
}

.achievement-list {
    display: grid;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: white;
    box-shadow: var(--card-shadow);
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
}

.achievement-item.locked {
    opacity: 0.7;
    background: #fafafa;
}

.achievement-item-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    flex-shrink: 0;
    background: #f0f0f0;
    color: var(--light-gray);
}

.achievement-item.unlocked .achievement-item-icon {
    background: linear-gradient(135deg, #ffd700, #ffb700);
    color: white;
}

.achievement-item-content {
    flex: 1;
}

.achievement-item-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--medium-gray);
}

.achievement-item.unlocked .achievement-item-name {
    color: var(--dark-gray);
}

.achievement-item-desc {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 5px;
}

.achievement-item-date {
    font-size: 12px;
    color: var(--light-gray);
}

.achievement-item.locked .achievement-item-date {
    display: none;
}

.achievement-item-ribbon {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
}

.achievement-gold .achievement-item-ribbon {
    background: var(--achievement-gold);
}

.achievement-silver .achievement-item-ribbon {
    background: var(--achievement-silver);
}

.achievement-bronze .achievement-item-ribbon {
    background: var(--achievement-bronze);
}

.achievement-item.locked .achievement-item-ribbon {
    display: none;
}

/* 新增成就按钮 */
.achievement-btn {
    position: fixed;
    bottom: 70px;
    left: 16px;
    z-index: 1001;
}

.achievement-btn-icon {
    background-color: #ff9500;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    transition: all 0.3s;
}

.achievement-btn-icon:hover {
    transform: scale(1.1);
}

/* 下载按钮 */
.download-container {
    position: fixed;
    bottom: 70px;
    right: 16px;
    z-index: 100;
}

.download-btn {
    background-color: var(--red);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 36, 66, 0.3);
    transition: all 0.3s;
}

.download-btn:hover {
    transform: scale(1.1);
}

/* 贴主信息 */
.author-info {
    display: flex;
    align-items: center;
    padding: 16px;
    background: white;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd1dc, #ffb6c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    cursor: pointer;
}

.author-details {
    margin-left: 12px;
    flex: 1;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    font-size: 12px;
    color: #4a90e2;
}

.post-meta {
    color: var(--light-gray);
    font-size: 12px;
    display: flex;
    align-items: center;
}

.post-meta .dot {
    margin: 0 4px;
}

.follow-btn {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 14px;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.follow-btn.followed {
    background-color: #f0f0f0;
    color: var(--medium-gray);
}

/* 笔记内容 */
.note-content {
    background: white;
    padding: 0 16px 16px;
}

.note-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.note-text {
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.note-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    background-color: #f5f5f5;
    color: var(--medium-gray);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}

.note-meta {
    color: var(--light-gray);
    font-size: 12px;
    margin-top: 16px;
    display: flex;
    align-items: center;
}

.note-meta .dot {
    margin: 0 4px;
}

.note-actions {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    margin: 16px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.note-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.action-icon {
    font-size: 20px;
    color: var(--medium-gray);
}

.action-count {
    font-size: 12px;
    color: var(--light-gray);
}

/* 评论区 */
.comments-section {
    background: white;
    margin-top: 10px;
    padding: 16px 16px 60px;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.comments-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-gray);
}

.comments-count {
    font-size: 14px;
    color: var(--light-gray);
}

.comment {
    display: flex;
    margin-bottom: 20px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.comment-author {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-gray);
    margin-right: 8px;
}

.comment-time {
    font-size: 12px;
    color: var(--light-gray);
}

.comment-text {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--dark-gray);
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.comment-action {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: var(--light-gray);
    gap: 4px;
}

/* 楼中楼回复 */
.reply-section {
    margin-top: 10px;
    padding-left: 12px;
    border-left: 2px solid #f0f0f0;
}

.reply {
    display: flex;
    margin-top: 12px;
}

.reply-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f5f5f5;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.reply-content {
    flex: 1;
}

.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.reply-author {
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-gray);
    margin-right: 8px;
}

.reply-author.original {
    color: var(--pink);
    font-weight: 600;
}

.reply-time {
    font-size: 11px;
    color: var(--light-gray);
}

.reply-text {
    font-size: 14px;
    color: var(--dark-gray);
    line-height: 1.5;
}

.reply-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.reply-action {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: var(--light-gray);
    gap: 2px;
}

.view-more-replies {
    font-size: 13px;
    color: var(--medium-gray);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 互动栏 */
.interaction-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    max-width: 500px;
    margin: 0 auto;
    z-index: 100;
    height: 60px;
}

.comment-input-container {
    flex: 1;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 0 15px;
    height: 36px;
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.comment-input {
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--dark-gray);
    width: 100%;
    outline: none;
}

.comment-input::placeholder {
    color: var(--light-gray);
}

.action-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--medium-gray);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.action-btn .count {
    font-size: 11px;
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #f0f0f0;
    border-radius: 8px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    color: var(--medium-gray);
}

.action-btn.liked {
    color: var(--red);
}

.action-btn.liked .count {
    color: var(--red);
}

.action-btn.collected {
    color: #ff9500;
}

/* 贴主主页 */
.profile-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 200;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.profile-page.active {
    transform: translateX(0);
}

.profile-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #ffd1dc, #ff9eb5);
    z-index: 0;
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-top {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd1dc, #ffb6c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin-right: 16px;
    flex-shrink: 0;
    border: 3px solid white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-id {
    color: var(--medium-gray);
    font-size: 14px;
    margin-bottom: 4px;
}

.profile-ip {
    color: var(--light-gray);
    font-size: 14px;
}

.profile-bio {
    font-size: 14px;
    margin: 12px 16px;
    color: var(--dark-gray);
    line-height: 1.5;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    margin: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.profile-tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    color: var(--medium-gray);
    position: relative;
}

.profile-tab.active {
    color: var(--dark-gray);
    font-weight: 600;
}

.profile-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background-color: var(--red);
    border-radius: 3px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
}

.note-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

.note-card:hover {
    transform: translateY(-2px);
}

.note-card-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    position: relative;
    overflow: hidden;
}

.note-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
}

/* 第二篇笔记 - 紫色调（最新，在上方） */
#note2-card .note-card-bg {
    background: linear-gradient(135deg, #a8edea, #fed6e3, #d299c2);
}

/* 第一篇笔记 - 粉红色调（在下方） */
#note1-card .note-card-bg {
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #ffd1dc);
}

/* 私密笔记1 - 深色调 */
#private-note1 .note-card-bg {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
}

/* 私密笔记2 - 蓝色调 */
#private-note2 .note-card-bg {
    background: linear-gradient(135deg, #4facfe, #00f2fe, #43e97b);
}

/* 私密笔记3 - 橙紫渐变 */
#private-note3 .note-card-bg {
    background: linear-gradient(135deg, #fa709a, #fee140, #e8a6ff);
}

.note-card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    width: 90%;
}

.note-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 8px;
}

.note-card-stats {
    display: none;
}

.note-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.private-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--private-color);
    color: white;
    border-radius: 12px;
    padding: 3px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 3px;
    z-index: 3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 解锁提示 */
.unlock-toast {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 150;
    display: none;
}

.close-profile {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 3;
}

/* 返回按钮 */
.back-button {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 101;
}

/* 评论提示条 */
.comment-prompt {
    background-color: #fff8e6;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-prompt i {
    font-size: 20px;
    color: #ff9500;
}

.comment-prompt-text {
    font-size: 14px;
    color: #e6a23c;
}

/* 注销按钮 */
.delete-account-btn {
    background: #f8f8f8;
    border: 1px solid #ff2442;
    color: #ff2442;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 600;
    margin: 20px auto;
    display: block;
    cursor: pointer;
    transition: all 0.3s;
    width: 90%;
}

.delete-account-btn:hover {
    background: #ff2442;
    color: white;
}

/* 倒计时 */
.countdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--red);
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    z-index: 250;
    display: none;
}

.countdown-number {
    background: white;
    color: var(--red);
    padding: 2px 10px;
    border-radius: 20px;
    margin: 0 5px;
    font-weight: 700;
}

/* 账户已注销页面 */
.deleted-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 500;
    display: none;
}

.deleted-page.active {
    display: flex;
}

.deleted-icon {
    font-size: 80px;
    color: var(--light-gray);
    margin-bottom: 30px;
}

.deleted-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.deleted-text {
    font-size: 18px;
    color: var(--medium-gray);
    text-align: center;
    max-width: 300px;
    line-height: 1.5;
}

/* 登录页面 */
.login-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 300;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    display: none;
    overflow-y: auto;
}

.login-page.active {
    display: flex;
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--red);
    text-align: center;
}

.login-form {
    width: 100%;
    max-width: 350px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
}

.login-btn {
    background-color: var(--red);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #e61e3c;
}

.hack-note {
    margin-top: 20px;
    padding: 15px;
    background: #fff8e6;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.comment {
    animation: fadeIn 0.3s ease forwards;
}

/* 响应式调整 */
@media (max-width: 375px) {
    .note-title {
        font-size: 20px;
    }
    
    .note-text {
        font-size: 14px;
    }
    
    .comment-text, .reply-text {
        font-size: 14px;
    }
    
    .tab-bar {
        gap: 12px;
    }
    
    .tab {
        font-size: 14px;
    }
}

/* 私信通知浮窗 */
.message-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 300;
    width: 300px;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.message-notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.message-notification-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd1dc, #ffb6c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.message-notification-text {
    flex: 1;
}

.message-notification-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.message-notification-preview {
    color: var(--medium-gray);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-notification-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.message-notification-close:hover {
    background: #999;
}

/* 聊天窗口 */
.chat-window {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 400;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: white;
}

.chat-back {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark-gray);
    cursor: pointer;
    margin-right: 16px;
    padding: 8px;
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd1dc, #ffb6c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.chat-username {
    font-weight: 600;
    font-size: 16px;
}

.chat-user-status {
    font-size: 12px;
    color: #4CAF50;
}

.chat-more {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--medium-gray);
    cursor: pointer;
    padding: 8px;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f8f8;
}

.chat-message {
    display: flex;
    margin-bottom: 16px;
}

.chat-message.received {
    justify-content: flex-start;
}

.chat-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd1dc, #ffb6c1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.chat-message-content {
    max-width: 70%;
}

.chat-message-bubble {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    border-top-left-radius: 6px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-message-time {
    font-size: 12px;
    color: var(--light-gray);
    margin-top: 4px;
    margin-left: 16px;
}

.chat-input-area {
    border-top: 1px solid var(--border);
    padding: 16px;
    background: white;
}

.chat-blocked-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    color: var(--medium-gray);
    font-size: 14px;
}

.chat-blocked-notice i {
    color: var(--red);
}

/* 拉黑提示 */
.blocked-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 25px 35px;
    border-radius: 15px;
    font-size: 18px;
    z-index: 500;
    display: none;
    text-align: center;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blocked-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.blocked-toast p {
    margin-top: 10px;
    font-size: 14px;
    color: #ccc;
}

/* 小五书号验证窗口 */
.verify-username {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 360;
    overflow-y: auto;
    display: none;
    padding: 20px;
}

.verify-username.active {
    display: block;
}

/* 密保问题容器 - 使用基础版的全屏样式 */
.security-questions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 350;
    overflow-y: auto;
    display: none;
    padding: 20px;
}

.security-questions.active {
    display: block;
}

.security-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: var(--red);
    position: relative;
}

.security-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--pink);
}

.question-group {
    margin-bottom: 24px;
    position: relative;
}

.question-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hint-icon {
    color: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.hint-icon:hover, .hint-icon.active {
    background: var(--pink);
    color: white;
}

.hint-text {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light-pink);
    padding: 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--pink);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
    margin-top: 8px;
}

.question-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.question-input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255, 45, 121, 0.2);
    outline: none;
}

.date-picker {
    display: flex;
    gap: 10px;
}

.date-select {
    flex: 1;
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.verify-btn {
    background: var(--red);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
}

.verify-btn:hover {
    background: #e61e3c;
}

.back-to-login {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: var(--medium-gray);
    text-decoration: underline;
    cursor: pointer;
    font-size: 15px;
}

.back-to-login:hover {
    color: var(--red);
}

/* 密码重置表单 */
.reset-password {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 350;
    overflow-y: auto;
    display: none;
    padding: 20px;
}

.reset-password.active {
    display: block;
}

.password-input-group {
    position: relative;
    margin-bottom: 25px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
    cursor: pointer;
    font-size: 18px;
}

/* 错误提示 */
.error-message {
    color: var(--red);
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

/* 忘记密码链接 */
.forgot-password-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--red);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
}

/* 登录表单容器 */
.login-container {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
    margin: 0 20px;
}

/* 密保问题标题栏 */
.security-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.back-to-login-btn {
    background: none;
    border: none;
    color: var(--medium-gray);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 密码重置标题栏 */
.reset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

/* 登录页面标题 */
.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 28px;
    color: var(--red);
    margin-right: 12px;
}

/* 发现页卡片网格样式 */
.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 16px 8px 80px;
    background: var(--background);
}

.discover-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s;
    background: white;
}

.discover-card:hover {
    transform: translateY(-2px);
}

.discover-card-img {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.discover-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.9;
}

.discover-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px 12px 12px;
    color: white;
}

.discover-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discover-card-preview {
    font-size: 12px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discover-card-stats {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discover-card-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    font-size: 12px;
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.discover-card-stat i {
    font-size: 11px;
}

.discover-card-author {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.discover-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
}

.discover-author-name {
    color: white;
    font-size: 11px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

@media (max-width: 768px) {
    .security-questions, 
    .reset-password,
    .verify-username,
    .login-container {
        padding: 20px;
        width: 95%;
    }
    
    .date-picker {
        flex-direction: column;
    }
    
    .date-select {
        width: 100%;
    }
    
    .question-input, .date-select {
        padding: 16px;
        font-size: 16px;
    }
    
    .verify-btn {
        padding: 16px;
        font-size: 16px;
    }
    
    .security-title {
        font-size: 20px;
    }
    
    /* 移动端私信通知优化 */
    .message-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
    }
    
    /* 移动端聊天窗口优化 */
    .chat-window {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .chat-message-content {
        max-width: 85%;
    }
}
/* 特殊成就样式 - 至今世间仍有隐约的耳语 */
.achievement-notification.whisper-achievement {
    background: linear-gradient(135deg, #9af5fa, #ffffff);
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 成就通知样式 - 居中显示 */
.achievement-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff121;
    border-radius: 30px;
    border: 4px solid #f39c20;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 1000;
    width: 85%;
    max-width: 380px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease-out, fadeOut 0.5s ease-in 2.5s forwards;
}

/* 特殊成就样式 - 至今世间仍有隐约的耳语 */
.achievement-notification.whisper-achievement {
    background: linear-gradient(135deg, #9af5fa, #ffffff);
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.achievement-notification.whisper-achievement .achievement-title,
.achievement-notification.whisper-achievement .achievement-name,
.achievement-notification.whisper-achievement .achievement-desc {
    color: white;
    text-shadow: 
        /* 单层描边 - 青蓝色 */
        1px 1px 2px #54c2c8,
        -1px -1px 2px #54c2c8,
        1px -1px 2px #54c2c8,
        -1px 1px 2px #54c2c8,
        /* 保持与其他成就一致的黑色投影 */
        1px 1px 2px black;
}
/* 第三篇笔记卡片 - 绿色调 */
#note3-card .note-card-bg {
    background: linear-gradient(135deg, #43e97b, #38f9d7, #a8edea);
}

/* 确保第三篇笔记页面的样式一致性 */
#note3-page {
    min-height: 100vh;
    padding-bottom: 60px;
}


/* 确保第三篇笔记的互动栏正常显示 */
#interaction-bar-3 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
    max-width: 500px;
    margin: 0 auto;
    z-index: 100;
    height: 60px;
}

/* 第三篇笔记在个人主页中的顺序 - 确保按时间顺序显示 */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
}

/* 确保笔记按正确顺序显示：最新的在上方 */
.notes-grid .note-card:nth-child(1) { order: 1; } /* note3-card 最新 */
.notes-grid .note-card:nth-child(2) { order: 2; } /* note2-card */
.notes-grid .note-card:nth-child(3) { order: 3; } /* note1-card 最早 */
.notes-grid .private-note { order: 10; } /* 私密笔记放在最后 */

/* 响应式调整 - 确保在小屏幕上也能正常显示 */
@media (max-width: 375px) {
    #note3-page .note-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    #note3-page .note-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    #note3-comments .comment-text,
    #note3-comments .reply-text {
        font-size: 14px;
        line-height: 1.4;
    }
}

/* 第三篇笔记的搜索功能样式 */
#search-box-3 {
    position: absolute;
    top: -8px;
    right: -16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 40px 8px 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 280px;
    display: none;
    z-index: 200;
}

#search-box-3.active {
    display: block;
    animation: searchSlideIn 0.3s ease-out;
}

/* 确保第三篇笔记的标签页正常工作 */
#note3-page .tab.active {
    color: var(--dark-gray);
    font-weight: 600;
}

#note3-page .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--red);
    border-radius: 3px;
}

/* 第三篇笔记的评论动画 */
#note3-comments .comment {
    animation: fadeIn 0.3s ease forwards;
}

#note3-comments .reply {
    animation: fadeIn 0.3s ease forwards;
}

/* 确保第三篇笔记的点赞和收藏按钮状态正确显示 */
#interaction-bar-3 .action-btn.liked {
    color: var(--red);
}

#interaction-bar-3 .action-btn.liked .count {
    color: var(--red);
    background: #ffe6e6;
}

#interaction-bar-3 .action-btn.collected {
    color: #ff9500;
}

#interaction-bar-3 .action-btn.collected .count {
    color: #ff9500;
    background: #fff5e6;
}

/* 第三篇笔记的特殊强调样式 */
#note3-page .note-text {
    transition: all 0.3s ease;
}

#note3-page .note-text:hover {
    background: rgba(67, 233, 123, 0.05);
    border-radius: 4px;
    padding: 2px 4px;
    margin: 12px -4px;
}

/* 确保第三篇笔记在个人主页正确显示 */
#note3-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.2s;
}

#note3-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(67, 233, 123, 0.3);
}

/* 第三篇笔记解锁提示的特殊样式 */
.unlock-toast.note3-unlock {
    background-color: rgba(67, 233, 123, 0.9);
    color: white;
    border: 2px solid #38f9d7;
}

/* 确保移动端第三篇笔记显示正常 */
@media (max-width: 768px) {
    #note3-page {
        padding-bottom: 70px;
    }
    
    #interaction-bar-3 {
        padding: 6px 12px;
        height: 56px;
    }
    
    #note3-card .note-card-title {
        font-size: 13px;
        line-height: 1.2;
    }
}



/* 第三篇笔记的评论区位置调整 */
#note3-comments {
    position: relative;
    padding-left: 20px;
}

#note3-comments .comment {
    position: relative;
}