/* ================================================================
   EnixShuoShuo — 前端说说页面样式
   适配 suyindu.net Tailwind 主题风格（最小侵入）
   ================================================================ */

/* 容器 */
.shuoshuo-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 16px 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* 页头 */
.shuoshuo-header {
    text-align: center;
    margin-bottom: 32px;
}
.shuoshuo-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}
:root.dark .shuoshuo-title { color: #e5e7eb; }
.shuoshuo-subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #9ca3af;
}

/* 消息提示 */
.shuoshuo-msg {
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 13px;
}
.shuoshuo-msg-ok  { background: #dcfce7; color: #166534; }
.shuoshuo-msg-err { background: #fee2e2; color: #991b1b; }

/* 双栏布局 */
.shuoshuo-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.shuoshuo-sidebar { width: 200px; flex-shrink: 0; }
.shuoshuo-main    { flex: 1; min-width: 0; }

/* 卡片 */
.shuoshuo-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 80px;
}
:root.dark .shuoshuo-card { background: #1f2937; }
.shuoshuo-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 12px;
}
:root.dark .shuoshuo-card-title { color: #d1d5db; }

/* 话题标签 */
.shuoshuo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.shuoshuo-topic {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    background: #f3f4f6;
    color: #555;
    transition: background 0.2s;
}
.shuoshuo-topic:hover,
.shuoshuo-topic.active {
    background: #3b82f6;
    color: #fff;
}
.shuoshuo-topic-count {
    margin-left: 4px;
    opacity: 0.7;
    font-size: 11px;
}

/* 列表 */
.shuoshuo-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 15px;
}

/* 单条说说 */
.shuoshuo-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
}
:root.dark .shuoshuo-item { background: #1f2937; }
.shuoshuo-pinned {
    border-left: 3px solid #f59e0b;
}
.shuoshuo-pin-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
}

/* 时间 */
.shuoshuo-time {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* 内容 */
.shuoshuo-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    word-break: break-word;
    margin-bottom: 12px;
}
:root.dark .shuoshuo-content { color: #d1d5db; }
.shuoshuo-hashtag {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}
.shuoshuo-hashtag:hover {
    text-decoration: underline;
}

/* 图片 */
.shuoshuo-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.shuoshuo-img-link {
    display: block;
}
.shuoshuo-img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

/* 操作栏 */
.shuoshuo-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid #f3f4f6;
}
:root.dark .shuoshuo-actions { border-color: #374151; }

/* 点赞按钮 */
.shuoshuo-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #888;
    transition: all 0.2s;
}
.shuoshuo-like-btn:hover { border-color: #ef4444; color: #ef4444; }
.shuoshuo-like-btn.liked,
.shuoshuo-like-btn:disabled {
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
    cursor: default;
}
.shuoshuo-like-icon { font-size: 14px; }
.shuoshuo-like-count { font-weight: 600; }

/* 评论数 */
.shuoshuo-comment-count {
    font-size: 13px;
    color: #9ca3af;
}

/* 评论列表 */
.shuoshuo-comments {
    margin-bottom: 12px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}
:root.dark .shuoshuo-comments { background: #111827; }
.shuoshuo-comment {
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}
:root.dark .shuoshuo-comment { border-color: #374151; }
.shuoshuo-comment:last-child { border: none; }
.shuoshuo-comment-author {
    font-weight: 600;
    color: #3b82f6;
    margin-right: 6px;
}
.shuoshuo-comment-text { color: #374151; }
:root.dark .shuoshuo-comment-text { color: #d1d5db; }
.shuoshuo-comment-time {
    margin-left: 8px;
    font-size: 11px;
    color: #bbb;
}

/* 评论表单 */
.shuoshuo-comment-form {
    margin-top: 8px;
}
.shuoshuo-comment-fields {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}
.shuoshuo-comment-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #fff;
    min-width: 0;
}
:root.dark .shuoshuo-comment-input {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}
.shuoshuo-comment-input:focus {
    border-color: #3b82f6;
}
.shuoshuo-comment-submit {
    padding: 6px 16px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
}
.shuoshuo-comment-submit:hover { background: #2563eb; }
.shuoshuo-comment-textarea {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    background: #fff;
}
:root.dark .shuoshuo-comment-textarea {
    background: #374151;
    border-color: #4b5563;
    color: #e5e7eb;
}

/* 分页 */
.shuoshuo-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.shuoshuo-page-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    background: #f3f4f6;
    color: #555;
    transition: background 0.2s;
}
.shuoshuo-page-btn:hover,
.shuoshuo-page-btn.active {
    background: #3b82f6;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .shuoshuo-layout {
        flex-direction: column;
    }
    .shuoshuo-sidebar {
        width: 100%;
        order: 2;
    }
    .shuoshuo-main {
        order: 1;
    }
    .shuoshuo-card {
        position: static;
    }
    .shuoshuo-img {
        max-width: 120px;
        max-height: 120px;
    }
}
