/* 随笔说说页面样式 */

/* 筛选栏 */
.notes-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
}

.filter-option.disabled {
    color: #aaa;
    cursor: default;
    font-style: italic;
}

.filter-option.disabled:hover {
    background: transparent;
    color: #aaa;
}

/* 发布表单 */
.note-publish-form {
    background: #fff;
    border-radius: var(--page-card-radius);
    padding: 1.5rem;
    margin-top: var(--page-stack-gap);
    margin-bottom: var(--page-stack-gap);
    border: 1px solid rgba(255, 81, 98, 0.08);
    box-shadow: var(--page-card-shadow);
}

.publish-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.publish-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 154, 158, 0.3);
}

.publish-name {
    font-weight: 600;
    color: #333;
}

.publish-textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9375rem;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
}

.publish-textarea:focus {
    outline: none;
    border-color: #ff9a9e;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

.publish-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.option-group label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.mood-selector,
.miss-level-selector {
    display: flex;
    gap: 0.25rem;
}

.mood-btn,
.star-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 81, 98, 0.1);
    background: var(--editorial-surface-base);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.125rem;
    color: rgba(120, 86, 92, 0.94);
    box-shadow:
        0 8px 18px rgba(24, 14, 22, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mood-btn:hover,
.star-btn:hover {
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(255, 81, 98, 0.18);
    background: var(--editorial-surface-hover);
    box-shadow:
        0 10px 20px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mood-btn.active,
.star-btn.active {
    border-color: rgba(255, 81, 98, 0.18);
    background: var(--editorial-surface-active);
    color: var(--primary-color);
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.star-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    opacity: 0.4;
}

.star-btn.active {
    opacity: 1;
}

.publish-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.publish-submit {
    padding: 0.75rem 2rem;
    background: var(--editorial-surface-active);
    color: var(--primary-color);
    border: 1px solid rgba(255, 81, 98, 0.18);
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow:
        0 10px 22px rgba(255, 81, 98, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.publish-submit:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 81, 98, 0.24);
    background: linear-gradient(180deg, rgba(255, 229, 235, 1), rgba(255, 242, 245, 1));
    box-shadow:
        0 12px 24px rgba(255, 81, 98, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* 瀑布流布局 */
.notes-waterfall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--page-waterfall-gap);
    align-items: start;
}

@media (max-width: 960px) {
    .notes-waterfall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.note-waterfall-card {
    min-width: 0;
    margin-bottom: 0;
    background: #fff;
    border-radius: var(--page-card-radius);
    padding: 1.25rem;
    border: 1px solid rgba(255, 81, 98, 0.08);
    box-shadow: var(--page-card-shadow);
    transition: all 0.3s ease;
}

.note-waterfall-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--page-card-shadow-hover);
}

.note-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.note-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.note-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.note-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
}

.note-datetime {
    font-size: 0.75rem;
    color: #999;
}

.note-card-body {
    margin-bottom: 1rem;
}

.note-mood-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.78rem;
    border: 1px solid var(--editorial-border-subtle);
    background: linear-gradient(180deg, rgba(255, 239, 243, 0.96), rgba(255, 248, 249, 0.98));
    border-radius: 999px;
    color: rgba(120, 86, 92, 0.94);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.note-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #444;
    word-wrap: break-word;
}

.note-content p {
    margin: 0 0 0.75rem;
}

.note-content p:last-child {
    margin-bottom: 0;
}

.note-card-footer {
    padding-top: 1rem;
    border-top: 1px solid #f5f5f5;
}

.note-miss-level {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
}

.note-miss-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.78rem;
    border: 1px solid var(--editorial-border-subtle);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 239, 243, 0.96), rgba(255, 248, 249, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.miss-label {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.miss-stars {
    display: inline-flex;
    align-items: center;
    color: rgba(120, 86, 92, 0.94);
    font-size: 0.86rem;
    letter-spacing: -2px;
}

/* 分页 */
.notes-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.22rem;
    gap: 0.5rem;
}

/* 空状态 */
.notes-empty {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3.4rem 2rem 3.1rem;
    background: linear-gradient(180deg, rgba(255, 247, 249, 0.96), rgba(255, 255, 255, 0.98));
    border-radius: var(--page-card-radius);
    border: 1px solid var(--editorial-border-subtle);
    box-shadow:
        0 16px 34px rgba(24, 14, 22, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.notes-empty-icon {
    font-size: 3.6rem;
    margin-bottom: 1.05rem;
    opacity: 0.72;
}

.notes-empty-text {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.6rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.notes-empty-hint {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 26rem;
    margin: 0 auto;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .notes-waterfall {
        grid-template-columns: 1fr;
    }

    .notes-filter-bar {
        gap: 0.5rem;
    }
    
    .filter-btn,
    .filter-dropdown-toggle {
        padding: 0.46rem 0.88rem;
        font-size: 0.84rem;
    }
    
    .note-publish-form {
        padding: 1rem;
    }
    
    .publish-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mood-btn,
    .star-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .notes-pagination a,
    .notes-pagination span {
        min-width: 34px;
        height: 34px;
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }
    
    .note-waterfall-card {
        padding: 1rem;
    }
}


/* ================================
   夜间模式支持
   ================================ */

        html[data-theme="dark"] .note-mood-badge {
        background: var(--editorial-surface-base);
        border-color: var(--editorial-border-subtle);
        color: #f2e6ea;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .miss-label {
        color: #ff8f9b;
    }

        html[data-theme="dark"] .note-miss-chip {
        background: var(--editorial-surface-base);
        border-color: var(--editorial-border-subtle);
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .miss-stars {
        color: #f2e6ea;
    }

        html[data-theme="dark"] .note-publish-form {
        background: #1e1e1e;
        border-color: var(--editorial-border-subtle);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    }
    
        html[data-theme="dark"] .publish-textarea {
        background: #2a2a2a;
        border-color: #333;
        color: #e0e0e0;
    }
    
        html[data-theme="dark"] .mood-btn,
    html[data-theme="dark"] .star-btn {
        background: var(--editorial-surface-base);
        border-color: var(--editorial-border-subtle);
        color: #f2e6ea;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

        html[data-theme="dark"] .mood-btn.active,
    html[data-theme="dark"] .star-btn.active,
    html[data-theme="dark"] .publish-submit {
        background: var(--editorial-surface-active);
        border-color: var(--editorial-border-strong);
        color: #ffe5ea;
        box-shadow:
            0 12px 24px rgba(0, 0, 0, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

        html[data-theme="dark"] .publish-submit:hover {
        border-color: rgba(255, 143, 155, 0.28);
        background: linear-gradient(180deg, rgba(91, 63, 72, 0.98), rgba(66, 45, 53, 0.98));
    }
    
        html[data-theme="dark"] .note-waterfall-card {
        background: #1e1e1e;
        border-color: var(--editorial-border-subtle);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
    }
    
        html[data-theme="dark"] .note-waterfall-card:hover {
        box-shadow: 0 22px 42px rgba(0, 0, 0, 0.42);
    }

        html[data-theme="dark"] .publish-name,
    html[data-theme="dark"] .note-author-name {
        color: #f3f3f3;
    }

        html[data-theme="dark"] .note-datetime {
        color: #9a9a9a;
    }
    
        html[data-theme="dark"] .note-content {
        color: #ccc;
    }
    
        html[data-theme="dark"] .notes-empty {
        background: var(--editorial-surface-base);
        border-color: var(--editorial-border-subtle);
        box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }
    
        html[data-theme="dark"] .notes-empty-text {
        color: #f3f3f3;
    }
    
        html[data-theme="dark"] .notes-empty-hint {
        color: #9a9a9a;
    }
