/* A.真光表白墙 - 现代化简洁主题 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #1a202c;
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片组件 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 帖子详情页的回复列表卡片 */
.post-detail .reply-section {
    margin-bottom: 60px !important;
}

/* 确保页面底部有足够留白 */
.post-detail {
    padding-bottom: 40px;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* 顶部标题区域 */
.header {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.025em;
}

.site-subtitle {
    font-size: 16px;
    color: #64748b;
    font-weight: 400;
}

/* 导航按钮组 */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    min-width: 120px;
}

.btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.4);
}

.btn-primary {
    background: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: #10b981;
}

.btn-secondary:hover {
    background: #059669;
}

.btn-outline {
    background: white;
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.btn-outline:hover {
    background: #3b82f6;
    color: white;
}

.btn-danger {
    background: #ef4444;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
    min-width: auto;
}

/* 标签和徽章 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.badge-primary {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

/* 帖子网格布局 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px 24px; /* 行间距 列间距 */
    padding: 24px;
}

.post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.post-header {
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
}

.post-author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #1a202c;
    font-size: 15px;
    margin-bottom: 2px;
}

.post-time {
    font-size: 13px;
    color: #64748b;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.post-content {
    padding: 0 20px 20px;
}

.post-text {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 15px;
}

/* 瀑布流中的图片 */
.post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.post-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.post-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 详情页中的图片 */
.post-detail .post-images {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.post-detail .post-image {
    height: 180px;
    border-radius: 8px;
}

/* GIF表情包样式 */
.gif-container {
    text-align: center;
    margin: 10px 0;
}

.gif-container img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.gif-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* 详情页GIF表情包 */
.post-detail .gif-container img {
    max-width: 200px;
    max-height: 200px;
}

.reply-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3b82f6;
    padding: 12px;
    margin: 16px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.reply-info:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reply-info[style*="cursor: pointer"]:hover {
    border-left-color: #1d4ed8;
}

.reply-info-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* QR码展示 */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.qr-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.qr-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.qr-author {
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 16px;
}

.qr-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* 表单样式 */
.form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 32px;
    margin: 24px 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.file-input {
    padding: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.file-input:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

/* 消息提示 */
.flash-messages {
    margin: 24px 0;
}

.flash-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    border-left: 4px solid;
}

.flash-success {
    background: #ecfdf5;
    color: #065f46;
    border-left-color: #10b981;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.flash-info {
    background: #eff6ff;
    color: #1e40af;
    border-left-color: #3b82f6;
}

/* 管理员页面 */
.admin-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 32px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.admin-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
}

.admin-item:last-child {
    border-bottom: none;
}

.admin-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #64748b;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #94a3b8;
}

.empty-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.empty-subtext {
    font-size: 15px;
    color: #9ca3af;
    margin-bottom: 24px;
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    .header {
        padding: 32px 20px;
        margin-bottom: 24px;
    }
    
    .site-title {
        font-size: 28px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .qr-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-container {
        padding: 24px 20px;
    }
    
    .admin-actions {
        flex-direction: column;
    }
    
    .admin-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .header {
        padding: 24px 16px;
    }
    
    .site-title {
        font-size: 24px;
    }
    
    .card, .form-container, .admin-section {
        margin-left: -4px;
        margin-right: -4px;
        border-radius: 8px;
    }
    
    .post-header, .post-content {
        padding: 16px;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #64748b;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #1a202c;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 标题内分享按钮 */
.header-share-btn {
    background: #3b82f6;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    border: none;
    margin-top: 8px;
}

.header-share-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.header-share-btn svg {
    width: 14px;
    height: 14px;
}

/* 已移除旧的分享弹窗样式，使用统一的.modal样式 */

.share-qr-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.share-qr-code {
    text-align: center;
    flex-shrink: 0;
}

.share-qr-code img {
    width: 120px;
    height: 120px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.share-qr-code img:hover {
    transform: scale(1.05);
}

.share-qr-text {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.share-link-section {
    flex: 1;
    min-width: 0;
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 6px;
}

.share-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.4;
}

.share-link-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.share-url-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    background: #f8fafc;
    color: #64748b;
    min-width: 0;
}

.share-copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.share-copy-btn:hover {
    background: #2563eb;
}

.share-social-buttons {
    display: flex;
    gap: 8px;
}

.share-social-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.share-wechat {
    background: #07c160;
    color: white;
}

.share-wechat:hover {
    background: #06ad56;
    transform: translateY(-1px);
}

.share-qq {
    background: #1296db;
    color: white;
}

.share-qq:hover {
    background: #0f7db8;
    transform: translateY(-1px);
}

/* 分享弹窗移动端适配 */
@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        margin: 20px;
    }

    .share-modal-header {
        padding: 20px;
    }

    .share-modal-body {
        padding: 20px;
    }

    .share-qr-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .share-qr-code img {
        width: 140px;
        height: 140px;
    }

    .share-link-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .share-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .share-social-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .header-share-btn {
        padding: 6px 10px;
        font-size: 12px;
        margin-top: 4px;
    }

    .header-share-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* 通用弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 9999;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #3b82f6;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* 响应式弹窗 */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
        align-items: center;
    }

    .modal-content {
        width: 100%;
        max-width: 95vw;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* 置顶和精选帖子样式已统一使用badge显示 */

/* 头部布局样式 */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.header-main {
    flex: 1;
    min-width: 0; /* 允许文字在需要时截断 */
}

.header-share-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.header-share-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

/* 管理员操作按钮样式 */
.admin-action-buttons {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 6px;
    z-index: 10;
    flex-wrap: wrap;
    max-width: 200px;
}

.admin-btn {
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    backdrop-filter: blur(10px);
}

.admin-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-btn-pin {
    background: rgba(251, 191, 36, 0.8);
    color: white;
}

.admin-btn-pin.active {
    background: rgba(251, 191, 36, 1);
}

.admin-btn-feature {
    background: rgba(220, 38, 38, 0.8);
    color: white;
}

.admin-btn-feature.active {
    background: rgba(220, 38, 38, 1);
}

.admin-btn-comment {
    background: rgba(59, 130, 246, 0.8);
    color: white;
}

.admin-btn-delete {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

/* 管理页面卡片优化 */
.admin-post-card {
    position: relative;
    padding: 20px !important;
    margin-bottom: 20px;
}

.admin-post-card .post-header {
    padding: 0 0 16px 0 !important;
    margin-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-post-card .post-meta {
    margin-bottom: 12px;
}

.admin-post-card .post-meta .post-author-info {
    margin-left: 12px;
}

.admin-post-card .post-meta .post-author-info > div {
    margin-bottom: 4px;
}

.admin-post-card .post-content {
    padding: 0 !important;
    margin: 16px 0;
    line-height: 1.7;
}

.admin-post-card .post-title {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

/* 徽章间距优化 */
.admin-post-card .badge {
    margin-right: 6px;
    margin-bottom: 4px;
}

/* 回复信息样式优化 */
.admin-post-card .reply-info {
    margin: 16px 0 !important;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    border-radius: 0 8px 8px 0;
}

/* 图片区域间距 */
.admin-post-card .post-images {
    margin: 16px 0;
}

.admin-post-card .gif-container {
    margin: 16px 0;
}

/* 统计信息区域 */
.admin-post-card .post-stats {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f1f5f9;
}

/* 日期组间距优化 */
.date-group {
    margin-bottom: 32px !important;
}

.date-group .posts-grid {
    padding: 28px !important;
    gap: 28px 24px !important; /* 行间距 列间距 */
}

.date-group h2 {
    letter-spacing: -0.025em;
}

/* 搜索区域优化 */
.card {
    margin-bottom: 28px !important;
}

/* 管理员页面响应式优化 */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .admin-action-buttons {
        max-width: 160px;
    }
    
    .date-group .posts-grid {
        padding: 24px !important;
        gap: 20px !important;
    }
}

/* 移动端响应式设计增强 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .header-main {
        order: 1;
    }
    
    .header-share-btn {
        order: 0;
        align-self: flex-end;
        margin-bottom: -20px;
    }
    
    .admin-action-buttons {
        top: 12px;
        right: 12px;
        max-width: 120px;
        gap: 4px;
    }
    
    .admin-btn {
        padding: 5px;
        min-width: 26px;
        min-height: 26px;
    }
    
    .admin-btn svg {
        width: 12px !important;
        height: 12px !important;
    }
    
    .admin-post-card {
        padding: 16px !important;
        margin-bottom: 16px;
    }
    
    .date-group .posts-grid {
        padding: 20px !important;
        gap: 16px !important;
    }
    
    .date-group {
        margin-bottom: 24px !important;
    }
}

@media (max-width: 480px) {
    .header-content {
        align-items: stretch;
    }
    
    .header-share-btn {
        align-self: center;
        width: 36px;
        height: 36px;
        margin-bottom: -16px;
    }
    
    .header-share-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .admin-action-buttons {
        flex-direction: column;
        top: 6px;
        right: 6px;
        max-width: 32px;
        gap: 2px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 自动审核开关样式 */
.auto-approve-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.auto-approve-card:hover {
    border-color: #cbd5e1;
}

.auto-approve-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.auto-approve-info {
    flex: 1;
}

.auto-approve-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.auto-approve-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.auto-approve-toggle {
    margin-left: 12px;
}

.auto-approve-status {
    display: flex;
    justify-content: flex-start;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.status-active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.status-inactive {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* Toggle开关样式 */
.toggle-btn {
    position: relative;
    width: 44px;
    height: 24px;
    background: #cbd5e1;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.toggle-btn:hover {
    background: #94a3b8;
}

.toggle-btn.active {
    background: #10b981;
}

.toggle-btn.active:hover {
    background: #059669;
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-btn.active .toggle-slider {
    transform: translateX(20px);
}

/* 移动端优化 */
@media (max-width: 768px) {
    .auto-approve-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .auto-approve-toggle {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .auto-approve-card {
        padding: 14px;
    }
}