/**
 * 分类信息详情页 - 样式文件
 * 设计风格：匹配 property-detail.css
 */

/* ========================================
   CSS 变量（继承自主样式）
   ======================================== */
:root {
    --primary: #FF552E;
    --primary-light: #FF8055;
    --primary-dark: #D93812;
    --accent: #F5A623;
    --success: #22C55E;
    --success-light: #4ADE80;
    --bg: #FFFBF7;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #525252;
    --text-muted: #9CA3AF;
    --border: rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.04);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
}

/* ========================================
   迷你 Header
   ======================================== */
.mini-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    max-width: 680px;
    margin: 0 auto;
}

.mini-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mini-back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mini-back-btn:active {
    transform: scale(0.95);
}

.mini-back-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.mini-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-share-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mini-share-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.mini-share-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* ========================================
   主内容区
   ======================================== */
.main {
    max-width: 680px;
    margin: 0 auto;
    padding: 12px 0;
    padding-top: 8px;
    padding-bottom: 140px;
}

/* ========================================
   帖子信息卡片
   ======================================== */
.post-card {
    background: var(--bg-card);
    margin: 0 12px 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out 0.1s both;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 头部状态栏 */
.post-header {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.status-badge.valid {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
}

.status-badge svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.share-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

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

.post-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(255, 85, 46, 0.1) 0%, rgba(255, 85, 46, 0.05) 100%);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1px solid rgba(255, 85, 46, 0.15);
}

/* 帖子内容 */
.post-content-section {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.detail-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-content p {
    margin-bottom: 12px;
}

.detail-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 12px 0;
}

/* 图片区域 */
.image-section {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.detail-title svg {
    width: 16px;
    height: 16px;
    fill: var(--primary);
}

.image-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: 4px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.image-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.image-item:hover {
    transform: scale(1.02);
}

.image-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 10px;
}

/* ========================================
   联系方式
   ======================================== */
.contact-section {
    padding: 16px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

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

.contact-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-title svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.qr-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--primary);
}

.qr-hint svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.wechat {
    background: linear-gradient(135deg, #07C160 0%, #2AAE67 100%);
}

.contact-icon.phone {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.contact-detail {
    flex: 1;
}

.contact-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-copy {
    padding: 6px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.contact-copy:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.whatsapp-note {
    font-size: 0.65rem;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.whatsapp-note svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* ========================================
   留言区
   ======================================== */
.comment-section {
    background: var(--bg-card);
    margin: 0 12px 12px;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out 0.2s both;
}

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

.section-title h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title h3 svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.comment-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-input-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-input {
    flex: 1;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input::placeholder {
    color: var(--text-muted);
}

.comment-input:focus {
    border-color: var(--primary);
}

.comment-submit {
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(255, 85, 46, 0.3);
    transition: all 0.2s;
}

.comment-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 85, 46, 0.4);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border);
}

.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #FFC107 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

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

.comment-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.load-more-comments {
    text-align: center;
    padding-top: 12px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.load-more-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.load-more-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ========================================
   相关推荐
   ======================================== */
.recommend-section {
    background: var(--bg-card);
    margin: 0 12px 12px;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out 0.3s both;
}

.recommend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.recommend-item:hover {
    background: rgba(255, 85, 46, 0.05);
}

.recommend-thumb {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.recommend-thumb svg {
    width: 28px;
    height: 28px;
    fill: var(--text-muted);
}

.recommend-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-info {
    flex: 1;
    min-width: 0;
}

.recommend-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recommend-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.recommend-category {
    padding: 2px 8px;
    background: rgba(255, 85, 46, 0.1);
    color: var(--primary);
    font-weight: 500;
    border-radius: 10px;
}

/* ========================================
   底部版权
   ======================================== */
.footer {
    padding: 16px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    margin: 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

/* 为详情页底部留出空间 */
.footer {
    padding: 16px;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    margin: 0;
    padding-bottom: 90px;
}

/* ========================================
   返回顶部按钮
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(255, 85, 46, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 85, 46, 0.5);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========================================
   底部固定栏
   ======================================== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #F8F6F3 0%, #F0EDE8 100%);
    border-top: 1px solid rgba(0,0,0,0.06);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 12px 16px;
}

.bottom-actions {
    display: flex;
    gap: 10px;
}

.consult-wrapper,
.follow-wrapper {
    width: calc(50% - 5px);
    position: relative;
}

.bottom-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.bottom-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.bottom-btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(255, 85, 46, 0.3);
}

.bottom-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 85, 46, 0.4);
}

.bottom-btn.secondary {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.bottom-btn.secondary:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.bottom-hint {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ========================================
   咨询按钮二级菜单
   ======================================== */
.consult-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    transform: scale(0.9);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 10;
}

.consult-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--bg-card);
}

.consult-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.consult-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.consult-menu-item:hover {
    background: rgba(255, 85, 46, 0.05);
    color: var(--primary);
}

.consult-menu-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ========================================
   二维码弹窗
   ======================================== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qr-modal.visible {
    opacity: 1;
    visibility: visible;
}

.qr-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    max-width: 280px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qr-modal.visible .qr-modal-content {
    transform: scale(1);
}

.qr-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.qr-modal-img {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e8e8e8 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-modal-img::before {
    content: '';
    position: absolute;
    inset: 12px;
    background:
        linear-gradient(90deg, var(--text-primary) 1px, transparent 1px) 0 0 / 10px 10px,
        linear-gradient(var(--text-primary) 1px, transparent 1px) 0 0 / 10px 10px;
    opacity: 0.7;
}

.qr-modal-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.qr-modal-close {
    padding: 10px 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.qr-modal-close:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* ========================================
   图片预览弹窗 (Lightbox)
   ======================================== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 1001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ========================================
   Toast 提示
   ======================================== */
.toast-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 2000;
    animation: fadeInOut 2s ease forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

/* ========================================
   深色模式适配
   ======================================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0F0F0F;
        --bg-card: #1A1A1A;
        --text-primary: #F5F5F5;
        --text-secondary: #AAAAAA;
        --text-muted: #666666;
        --border: rgba(255,255,255,0.08);
        --shadow: 0 2px 12px rgba(0,0,0,0.3);
        --shadow-hover: 0 4px 20px rgba(0,0,0,0.4);
    }

    .image-item,
    .recommend-thumb,
    .qr-modal-img {
        background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    }

    .comment-avatar {
        background: linear-gradient(135deg, #D4A574 0%, #C49A6C 100%);
    }
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 480px) {
    .post-title {
        font-size: 1.05rem;
    }

    .image-grid {
        gap: 6px;
    }

    .comment-input-wrap {
        flex-direction: column;
    }

    .comment-submit {
        width: 100%;
    }

    .recommend-item {
        padding: 10px;
    }

    .recommend-thumb {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   面包屑导航
   ======================================== */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 8px 16px;
    max-width: 680px;
    margin: 0 auto;
    font-size: 0.78rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.breadcrumb-nav::-webkit-scrollbar {
    display: none;
}

.breadcrumb-home-icon {
    width: 15px;
    height: 15px;
    fill: var(--text-muted);
    flex-shrink: 0;
    margin-right: 2px;
    opacity: 0.7;
}

.breadcrumb-link {
    color: var(--text-muted);
    text-decoration: none;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.breadcrumb-link:hover {
    color: var(--primary);
    background: rgba(255, 85, 46, 0.08);
}

.breadcrumb-link:active {
    color: var(--primary);
    background: rgba(255, 85, 46, 0.14);
    transform: scale(0.96);
}

.breadcrumb-first {
    color: var(--text-secondary);
}

.breadcrumb-sep {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 0.35;
}

.breadcrumb-sep svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    flex-shrink: 0;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(255, 85, 46, 0.08) 0%, rgba(255, 85, 46, 0.04) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 85, 46, 0.1);
}
