/**
 * Typecho-Eleven-Theme 主题样式
 * 
 * @package Typecho-Eleven-Theme
 * @author RAO
 * @version 1.3.0
 */

/* ==================== CSS 变量 ==================== */
:root {
    --bg-primary:       #f5f5f5;
    --bg-secondary:     #f9fafb;
    --bg-card:          #ffffff;
    --text-primary:     #1f2937;
    --text-secondary:   #4b5563;
    --text-muted:       #9ca3af;
    --border-color:     #e5e7eb;
    --accent-primary:   #3498db;
    --accent-hover:     #2980b9;
    --accent-light:     #ebf5fb;
    --shadow-sm:        0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:        0 4px 12px rgba(0,0,0,0.1);
    --radius-card:      12px;
    --radius-input:     8px;
}

/* ==================== 基础样式 ==================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* ==================== SWUP 过渡动画 ==================== */
.transition-fade {
    transition: opacity 0.25s;
    opacity: 1;
}

html.is-animating .transition-fade {
    opacity: 0;
}

html.is-leaving .transition-fade {
    opacity: 0;
}

html.is-rendering .transition-fade {
    opacity: 1;
}

/* ==================== 文章摘要多行省略 ==================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== 滚动条样式 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==================== 评论样式 ==================== */

/* ========== 评论区容器 ========== */
.comments-section {
    background: white;
    border-radius: var(--radius-card);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.comments-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-count {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== 评论表单 ========== */
.comment-form-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-input);
    padding: 16px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.comment-form-wrapper h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.comment-form-wrapper .form-group {
    margin-bottom: 12px;
}

.comment-form-wrapper textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-input);
    background: white;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.65;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}

.comment-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.comment-form-wrapper .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.comment-form-wrapper .form-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-primary);
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.comment-form-wrapper .form-row input::placeholder {
    color: #c0c9d4;
}

.comment-form-wrapper .form-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.12);
}

.comment-form-wrapper .form-submit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-wrapper .btn-submit {
    position: relative;
    overflow: hidden;
    padding: 8px 24px;
    background-color: #3498db !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
    -webkit-appearance: none;
    appearance: none;
}

.comment-form-wrapper .btn-submit:hover {
    background-color: #2980b9 !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transform: translateY(-1px);
}

.comment-form-wrapper .btn-submit:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 1px 4px rgba(52, 152, 219, 0.2);
    background-color: #2471a3 !important;
}

.comment-form-wrapper .btn-submit:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.comment-form-wrapper .form-tip {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== 评论列表 ========== */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* ========== 评论项 ========== */
.comment-item {
    background: transparent;
    border-radius: 8px;
    padding: 12px 10px;
    border: 1px solid transparent;
    transition: background 0.18s, border-color 0.18s;
    display: flex;
    gap: 12px;
}

.comment-item:hover {
    background: #f7fbfe;
    border-color: #d6eaf8;
}

/* ========== 头像 ========== */
.comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: #ecf0f1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 2px solid white;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

/* ========== 评论头部 ========== */
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 4px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-author a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.comment-author a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* 博主/待审核标签 */
.comment-badge {
    background: var(--accent-primary);
    color: white;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ========== 回复信息 ========== */
.comment-reply-info {
    display: inline-block;
    font-size: 11px;
    color: var(--text-muted);
    background: #eaf4fb;
    padding: 1px 7px;
    border-radius: 20px;
    border: 1px solid #d6eaf8;
}

/* ========== 楼层号 ========== */
.comment-floor {
    display: inline-block;
    font-size: 11px;
    color: #7fb3d3;
    background: #eaf4fb;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid #d6eaf8;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    flex-shrink: 0;
}

/* ========== 评论内容容器 ========== */
.comment-text-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

/* ========== 评论文本 ========== */
.comment-text {
    font-size: 14px;
    line-height: 1.7;
    color: #374151;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.comment-text p { margin-bottom: 6px; }
.comment-text p:last-child { margin-bottom: 0; }

.comment-text a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.comment-text a:hover { border-bottom-color: var(--accent-primary); }

.comment-text pre {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 13px;
}

.comment-text code {
    background: #eaf4fb;
    color: #2471a3;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 13px;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
}

.comment-text blockquote {
    border-left: 3px solid #aed6f1;
    padding: 6px 12px;
    margin: 10px 0;
    color: var(--text-secondary);
    background: #f4f9fd;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

/* ========== 子评论嵌套 ========== */
.comment-children {
    margin-top: 2px;
    margin-left: 48px;
    padding-left: 14px;
    border-left: 2px solid #d6eaf8;
}

.comment-children .comment-item {
    padding: 8px 8px;
}

.comment-children .comment-avatar { width: 28px; height: 28px; }

.comment-children .comment-children {
    margin-left: 20px;
    border-left-color: #e8f4fb;
}
.comment-children .comment-children .comment-avatar { width: 24px; height: 24px; }

.comment-children .comment-children .comment-children {
    margin-left: 16px;
    border-left-color: #f0f7fb;
}
.comment-children .comment-children .comment-children .comment-avatar { width: 22px; height: 22px; }

/* 子评论字体尺寸 */
.comment-children .comment-author { font-size: 13px; }
.comment-children .comment-text  { font-size: 13px; }
.comment-children .comment-time  { font-size: 11px; }
.comment-children .comment-children .comment-text { font-size: 13px; }
.comment-children .comment-children .comment-time { font-size: 11px; }

/* ========== 回复按钮 ========== */
.comment-actions {
    flex-shrink: 0;
    align-self: center;
}

.comment-reply-link {
    display: inline-block;
    font-size: 12px;
    color: #b0c4d8;
    background: transparent;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.comment-reply-link:hover {
    color: var(--accent-primary);
    background: var(--accent-light);
    border-color: #aed6f1;
}

/* ========== 无评论 ========== */
.no-comments {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== 评论分割线 ========== */
.comment-list > div + div {
    border-top: 1px solid #f3f4f6;
    padding-top: 4px;
}



.comment-form-wrapper h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.comment-form-wrapper .form-group {
    margin-bottom: 14px;
}

.comment-form-wrapper textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s;
    font-family: inherit;
}

.comment-form-wrapper textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.comment-form-wrapper .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-form-wrapper .form-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.comment-form-wrapper .form-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.comment-form-wrapper .form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.comment-form-wrapper .btn-cancel {
    padding: 8px 20px;
    background: white !important;
    color: #4b5563 !important;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.comment-form-wrapper .btn-cancel:hover {
    border-color: #bdc3c7;
    color: #1f2937 !important;
}

.comment-form-wrapper .form-tip {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== 评论列表 ========== */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========== 评论项 ========== */
.comment-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid transparent;
    transition: all 0.2s;
    margin-bottom: 6px;
    display: flex;
    gap: 12px;
}

.comment-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.comment-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

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

.comment-content {
    flex: 1;
    min-width: 0;
}

/* ========== 评论头部 ========== */
.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-author a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.comment-author a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.comment-badge {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
}

/* ========== 回复信息 ========== */
.comment-reply-info {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* ========== 楼层号 ========== */
.comment-floor {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ========== 评论内容容器 ========== */
.comment-text-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
}

/* ========== 评论内容 ========== */
.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.comment-item[data-level="0"] .comment-text {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.comment-item[data-level="0"]:hover .comment-text {
    border-color: rgba(59, 130, 246, 0.3);
}

.comment-item[data-level="1"] .comment-text {
    background: rgba(59, 130, 246, 0.05);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.comment-item[data-level="1"]:hover .comment-text {
    border-color: rgba(59, 130, 246, 0.2);
}

.comment-item[data-level="2"] .comment-text {
    background: rgba(96, 165, 250, 0.08);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.comment-item[data-level="2"]:hover .comment-text {
    border-color: rgba(96, 165, 250, 0.25);
}

.comment-item[data-level="3"] .comment-text {
    background: rgba(156, 163, 175, 0.08);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(156, 163, 175, 0.15);
}

.comment-text p { margin-bottom: 8px; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-text a { color: var(--accent-primary); text-decoration: none; }
.comment-text a:hover { text-decoration: underline; }
.comment-text pre {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}
.comment-text code {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}
.comment-text blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-style: italic;
}

/* ==================== 分页样式 ==================== */
.page-navigator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.page-navigator a,
.page-navigator span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 9999px;
    font-size: 14px;
    transition: all 0.2s;
}

.page-navigator a {
    color: #3498db;
}

.page-navigator a:hover {
    background-color: #f3f4f6;
}

.page-navigator .current {
    background-color: #3498db;
    color: white;
}

.page-navigator .prev,
.page-navigator .next {
    color: #6b7280;
}

/* ==================== 文章内容样式 ==================== */
.post-content {
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

/* 代码块样式 */
.post-content pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 16px 0;
}

.post-content code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
}

.post-content p code {
    background-color: #f3f4f6;
    color: #ef4444;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 引用样式 */
.post-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 16px;
    margin: 16px 0;
    color: #6b7280;
    font-style: italic;
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 0 8px 8px 0;
}

/* 链接样式 */
.post-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.post-content a:hover {
    border-bottom-color: #3498db;
}

/* 表格样式 */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.post-content th,
.post-content td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

.post-content th {
    background-color: #f9fafb;
    font-weight: 600;
}

.post-content tr:nth-child(even) {
    background-color: #fafafa;
}

/* 标题样式 */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1f2937;
}

.post-content h1 { font-size: 1.875rem; }
.post-content h2 { font-size: 1.5rem; border-bottom: 1px solid #e5e7eb; padding-bottom: 8px; }
.post-content h3 { font-size: 1.25rem; }
.post-content h4 { font-size: 1.125rem; }

/* 列表样式 */
.post-content ul,
.post-content ol {
    padding-left: 24px;
    margin: 16px 0;
}

.post-content li {
    margin: 8px 0;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content ul ul {
    list-style-type: circle;
}

/* 分割线 */
.post-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

/* ==================== 侧边栏样式 ==================== */
.sidebar-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.sidebar-widget-title {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.sidebar-widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: #3498db;
    border-radius: 0 2px 2px 0;
}

.sidebar-widget-content {
    padding: 16px;
}

/* ==================== 标签云样式 ==================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s;
}

.tag-cloud a:hover {
    background-color: #3498db;
    color: white;
}

/* ==================== 表单样式 ==================== */
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==================== 按钮样式 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #6b7280;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

/* ==================== 卡片悬浮效果 ==================== */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==================== 图片占位 ==================== */
.img-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== 加载动画 ==================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==================== 消息提示 ==================== */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background-color: #1f2937;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .post-content h1 { font-size: 1.5rem; }
    .post-content h2 { font-size: 1.25rem; }
    .post-content h3 { font-size: 1.125rem; }
    
    .comment-children {
        margin-left: 16px;
        padding-left: 10px;
    }

    .comments-section {
        padding: 16px;
        border-radius: 10px;
    }

    .comment-form-wrapper {
        padding: 14px;
    }

    .comment-form-wrapper .form-row {
        flex-direction: column;
    }

    .comment-form-wrapper .form-submit {
        flex-wrap: wrap;
    }

    .comment-form-wrapper .form-tip {
        margin-left: 0;
        width: 100%;
        text-align: right;
    }

    .comment-item {
        gap: 10px;
        padding: 10px 8px;
    }

    .comment-avatar {
        width: 32px;
        height: 32px;
    }

    .hero-slider {
        position: relative !important;
    }

    .slider-prev {
        position: absolute !important;
        left: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .slider-next {
        position: absolute !important;
        right: 12px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    .slider-dots {
        position: absolute !important;
        bottom: 16px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .post-content {
        max-width: 100%;
    }
}
