/* 快讯归档页面样式 - 继承widget样式 */
/* 使用主题的CSS变量，确保与主题保持一致 */

/* 从widget-kuaixun.php继承的时间线样式 */
.kuaixun-widget-timeline {
    position: relative;
}

.kuaixun-widget-timeline::-webkit-scrollbar {
    width: 4px;
}

.kuaixun-widget-timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.kuaixun-widget-timeline::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
    min-height: 30px;
    height: 30%;
}

.kuaixun-widget-timeline::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.kuaixun-timeline-item {
    position: relative;
}

.timeline-marker {
    position: relative;
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2px;
    min-height: 100%;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f1404b;
    position: relative;
    z-index: 2;
}

.timeline-dot-hollow {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid #f1404b;
    background: transparent;
    position: relative;
    z-index: 2;
}

.timeline-line {
    width: 2px;
    height: calc(100% + 20px);
    background: rgba(241, 64, 75, 0.3);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-line-dashed {
    width: 1px;
    height: calc(100% + 20px);
    background: transparent;
    border-left: 1px dashed rgba(241, 64, 75, 0.4);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    padding-left: 0;
}

.kuaixun-meta {
    font-size: 12px;
}

.kuaixun-time-icon {
    color: #f1404b !important;
    font-size: 11px;
}

.kuaixun-time {
    color: #f1404b !important;
    font-weight: 500;
    font-size: 12px;
}

/* 重要快讯时间高亮 */
.kuaixun-time.important {
    color: #d63031 !important;
    font-weight: 600;
}

/* 快讯内容样式优化 */
.kuaixun-content {
    margin-top: 8px;
    margin-bottom: 12px;
}

.kuaixun-content .text-muted {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

/* 快讯操作按钮样式优化 */
.kuaixun-actions {
    margin-top: 10px;
    padding-top: 8px;
}

.kuaixun-actions .btn {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.kuaixun-actions .btn:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

/* 日期分组间距 */
.date-group-spacing {
    margin-bottom: 24px;
}

/* 快讯项目整体样式 */
.kuaixun-item {
    margin-bottom: 16px;
    padding-bottom: 12px;
}

/* 快讯来源样式 */
.kuaixun-source {
    margin-top: 6px;
}

.kuaixun-source-text {
    font-size: 11px;
    color: #999;
}

.kuaixun-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 2px;
    font-weight: 500;
}

.kuaixun-title-link {
    text-decoration: none !important;
}

.kuaixun-title-link:hover {
    color: #f1404b !important;
}

.kuaixun-source {
    font-size: 11px;
}

.kuaixun-source-text {
    color: var(--bs-secondary, #6c757d) !important;
}

.badge-sm {
    font-size: 10px;
    padding: 2px 6px;
}

.kuaixun-title-link.important {
    color: #f1404b !important;
}

.kuaixun-title-link.important:hover {
    color: #d63031 !important;
}

.kuaixun-btn-outline {
    color: #f1404b !important;
    border-color: #f1404b !important;
    font-size: 12px;
    padding: 6px 12px;
}

.kuaixun-btn-outline:hover {
    background-color: #f1404b !important;
    border-color: #f1404b !important;
    color: #fff !important;
}

.kuaixun-btn-solid {
    background-color: #f1404b !important;
    border-color: #f1404b !important;
    color: #fff !important;
    font-size: 12px;
    padding: 6px 12px;
}

.kuaixun-btn-solid:hover {
    background-color: #d63031 !important;
    border-color: #d63031 !important;
    color: #fff !important;
}

/* 归档页面特有的日期分组样式 */
.date-group-header {
    border-bottom: 1px solid var(--muted-bg-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.date-marker-large {
    display: flex;
    align-items: center;
}

.date-circle-large {
    width: 50px;
    height: 50px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
}

.date-text-large {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-month-large {
    font-size: 1rem;
    color: var(--main-color);
    font-weight: 600;
    line-height: 1.2;
}

.date-weekday-large {
    font-size: 1.1rem;
    color: var(--muted-color);
    line-height: 1.2;
}

/* 日期分隔线 */
.date-separator {
    border-color: var(--muted-bg-color);
    margin: 30px 0;
}

/* 快讯操作按钮样式 */
.kuaixun-actions {
    font-size: 12px;
}

.kuaixun-actions .action-left,
.kuaixun-actions .action-right {
    display: flex;
    align-items: center;
}

.kuaixun-actions .btn {
    font-size: 11px;
    padding: 2px 6px;
    color: #6c757d;
    border: none;
    background: none;
}

.kuaixun-actions .btn:hover {
    color: #f1404b;
    background: rgba(241, 64, 75, 0.1);
}

.kuaixun-actions .btn i {
    margin-right: 3px;
}

/* 微信分享模态框样式已移至 kuaixun-wechat-share.css 文件中，避免样式冲突 */

/* 响应式设计 */
@media (max-width: 768px) {
    .date-group-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .date-marker-large {
        margin-bottom: 15px;
    }
    
    .kuaixun-actions {
        font-size: 11px;
    }
    
    .kuaixun-actions .btn {
        font-size: 10px;
        padding: 1px 4px;
    }
}

@media (max-width: 576px) {
    .date-circle-large {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .date-month-large {
        font-size: 0.9rem;
    }
    
    .date-weekday-large {
        font-size: 1.1rem;
    }
}

/* 海报生成按钮 - 日期组级别 */
.btn-generate-poster {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--theme-border-radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
}

.btn-generate-poster:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* 海报模态框样式 */
.poster-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.poster-modal.show {
    display: flex;
}

.poster-modal-content {
    background: var(--main-bg-color);
    border-radius: var(--theme-border-radius);
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
}

.poster-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--muted-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.poster-close:hover {
    background: var(--muted-bg-color);
    color: var(--main-color);
}

.poster-canvas-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poster-canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--muted-bg-color);
    border-radius: var(--theme-border-radius-sm);
}

.poster-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.poster-btn {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--theme-border-radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.poster-btn:hover {
    background: var(--theme-color-hover);
    transform: translateY(-1px);
}

.poster-btn.secondary {
    background: var(--muted-bg-color);
    color: var(--main-color);
}

.poster-btn.secondary:hover {
    background: var(--muted-bg-color-l);
}

/* 快讯归档头部 */
.kuaixun-archive-header {
    background: var(--main-bg-color);
    border-radius: var(--theme-border-radius);
    padding: var(--home-card-padding);
    margin-bottom: 1.5rem;
    box-shadow: var(--main-shadow);
    border: 1px solid var(--muted-bg-color);
}

.kuaixun-archive-title {
    color: var(--main-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.kuaixun-archive-description {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin: 0;
}

.kuaixun-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.kuaixun-stat-item {
    background: var(--muted-bg-color-l);
    padding: 0.5rem 1rem;
    border-radius: var(--theme-border-radius-sm);
    font-size: 0.85rem;
    color: var(--muted-color2);
}

.kuaixun-stat-number {
    font-weight: 600;
    color: var(--theme-color);
}

/* 导航标签 - 一行显示 */
.kuaixun-nav-tabs {
    background: var(--main-bg-color);
    border-radius: var(--theme-border-radius);
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--main-shadow);
    border: 1px solid var(--muted-bg-color);
}

.nav-tabs-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs-list::-webkit-scrollbar {
    display: none;
}

.nav-tab-item {
    flex-shrink: 0;
}

.nav-tab-link {
    display: inline-flex;
    align-items: center;
    border: none;
    background: transparent;
    color: var(--muted-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--theme-border-radius-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    font-size: 0.875rem;
    white-space: nowrap;
    border: 1px solid transparent;
}

.nav-tab-link:hover {
    background: var(--theme-color-bg);
    color: var(--theme-color);
    border-color: var(--theme-color);
    text-decoration: none;
}

.nav-tab-link.active {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
    font-weight: 500;
}

.tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.125rem 0.375rem;
    border-radius: var(--theme-border-radius-xs);
    font-size: 0.75rem;
    margin-left: 0.375rem;
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

.nav-tab-link:not(.active) .tab-count {
    background: var(--muted-bg-color);
    color: var(--muted-color2);
}

.nav-tab-link.active .tab-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* 主要内容区域 - 使用主题标准布局 */
.kuaixun-archive-content {
    display: grid;
    grid-template-columns: 1fr var(--main-aside-width);
    gap: 1.5rem;
    align-items: start;
}

.content-main {
    min-width: 0; /* 防止内容溢出 */
}

.content-sidebar {
    position: sticky;
    top: calc(var(--main-nav-hight) + 1rem);
}

/* 时间线容器 */
.kuaixun-archive-timeline {
    background: var(--main-bg-color);
    border-radius: var(--theme-border-radius);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--muted-bg-color);
    overflow: hidden;
}

/* 日期分组 */
.kuaixun-date-group {
    border-bottom: 1px solid var(--muted-bg-color);
}

.kuaixun-date-group:last-child {
    border-bottom: none;
}

.date-header {
    background: var(--muted-bg-color-l);
    padding: 1rem var(--home-card-padding);
    border-bottom: 1px solid var(--muted-bg-color);
    position: sticky;
    top: var(--main-nav-hight);
    z-index: 10;
}

.date-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-title {
    color: var(--main-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.date-weekday {
    color: var(--muted-color);
    font-size: 0.85rem;
    background: var(--muted-bg-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--theme-border-radius-xs);
}

.date-count {
    color: var(--theme-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: auto;
}

/* 快讯时间线 */
.kuaixun-timeline {
    position: relative;
    padding: 0;
}

.kuaixun-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--muted-bg-color);
}

.timeline-item {
    position: relative;
    padding: 1.5rem var(--home-card-padding) 1.5rem 4rem;
    border-bottom: 1px solid var(--muted-bg-color);
    transition: background-color 0.3s ease;
}

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

.timeline-item:hover {
    background: var(--muted-bg-color-l);
}

.timeline-left {
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    width: 2rem;
    text-align: center;
}

.timeline-time {
    background: var(--theme-color);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
}

.kuaixun-title {
    color: var(--main-color);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.kuaixun-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.kuaixun-title a:hover {
    color: var(--theme-color);
}

/* 重要快讯标题样式 */
.kuaixun-title.important {
    color: #f1404b;
}

.kuaixun-title.important a {
    color: #f1404b;
}

.kuaixun-title.important a:hover {
    color: #d63031;
}

.kuaixun-excerpt {
    color: var(--muted-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.kuaixun-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--muted-color);
    flex-wrap: wrap;
}

.kuaixun-category {
    background: var(--theme-color-bg);
    color: var(--theme-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--theme-border-radius-xs);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.kuaixun-category:hover {
    background: var(--theme-color);
    color: white;
}

.kuaixun-source {
    color: var(--muted-color2);
}

.kuaixun-views {
    color: var(--muted-color2);
}

/* 分页导航 */
.kuaixun-pagination {
    margin-top: 2rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--main-bg-color);
    color: var(--main-color);
    border: 1px solid var(--muted-bg-color);
    border-radius: var(--theme-border-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.page-link:hover,
.page-item.active .page-link {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
    transform: translateY(-1px);
}

.page-item.disabled .page-link {
    background: var(--muted-bg-color-l);
    color: var(--muted-color);
    cursor: not-allowed;
}

/* 无快讯内容 */
.no-kuaixun {
    text-align: center;
    padding: 3rem var(--home-card-padding);
    background: var(--main-bg-color);
    border-radius: var(--theme-border-radius);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--muted-bg-color);
}

.no-kuaixun-icon {
    font-size: 3rem;
    color: var(--muted-color);
    margin-bottom: 1rem;
}

.no-kuaixun-title {
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.no-kuaixun-description {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .kuaixun-archive-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .kuaixun-stats {
        gap: 0.5rem;
    }
    
    .kuaixun-stat-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .date-header {
        padding: 0.75rem var(--home-card-padding);
        position: static;
    }
    
    .timeline-item {
        padding: 1rem var(--home-card-padding) 1rem 3rem;
    }
    
    .timeline-left {
        left: 0.5rem;
        top: 1rem;
    }
    
    .kuaixun-timeline::before {
        left: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .kuaixun-archive-header,
    .kuaixun-nav-tabs,
    .kuaixun-archive-timeline {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0;
    }
    
    .nav-tab-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .kuaixun-title {
        font-size: 0.95rem;
    }
    
    .kuaixun-excerpt {
        font-size: 0.85rem;
    }
    
    .kuaixun-meta {
        font-size: 0.75rem;
        gap: 0.75rem;
    }
    
    .timeline-time {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }
    
    .timeline-item {
        padding: 0.75rem var(--home-card-padding) 0.75rem 2.5rem;
    }
    
    .timeline-left {
        left: 0.25rem;
        top: 0.75rem;
    }
    
    .kuaixun-timeline::before {
        left: 1rem;
    }
}

/* 加载状态 */
.kuaixun-loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted-color);
}

.kuaixun-loading .icon-spin {
    font-size: 1.5rem;
    color: var(--theme-color);
    margin-bottom: 0.5rem;
    animation: spin 1s linear infinite;
}

/* 骨架屏加载效果 */
.kuaixun-skeleton {
    animation: skeleton-loading 1.5s ease-in-out infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: var(--muted-bg-color);
    }
    100% {
        background-color: var(--border-color);
    }
}

.skeleton-item {
    background: var(--muted-bg-color);
    border-radius: var(--theme-border-radius-sm);
    margin-bottom: 1rem;
    padding: 1rem;
}

.skeleton-line {
    height: 1rem;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.long {
    width: 100%;
}

/* 消息提示 */
.kuaixun-message {
    padding: 1rem;
    border-radius: var(--theme-border-radius-sm);
    margin-bottom: 1rem;
    border-left: 4px solid var(--theme-color);
    background: var(--theme-color-bg);
    color: var(--main-color);
}

.kuaixun-message.error {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.kuaixun-message.success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

/* 深色模式适配 */
.io-black-mode .date-header {
    background: var(--muted-bg-color);
}

.io-black-mode .timeline-item:hover {
    background: var(--muted-bg-color);
}

.io-black-mode .kuaixun-message {
    background: rgba(var(--theme-color-rgb), 0.15);
}

.io-black-mode .kuaixun-message.error {
    background: rgba(220, 53, 69, 0.15);
}

.io-black-mode .kuaixun-message.success {
    background: rgba(40, 167, 69, 0.15);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--theme-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.2rem;
}

.back-to-top:hover {
    background: var(--theme-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* 活跃时间线项目 */
.timeline-item.active {
    background: var(--theme-color-bg);
    border-left: 3px solid var(--theme-color);
    transform: translateX(3px);
    transition: all 0.3s ease;
}

/* 加载更多指示器 */
.load-more-indicator {
    text-align: center;
    padding: 1rem;
    color: var(--muted-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* 性能优化 - 减少重绘 */
.timeline-item,
.nav-tab-link,
.kuaixun-category-badge {
    will-change: transform;
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-sidebar {
        position: static;
        order: 2;
    }
    
    .content-main {
        order: 1;
    }
    
    .kuaixun-archive-header {
        margin-bottom: 1rem;
    }
    
    .kuaixun-stats {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .timeline-left {
        left: 0.5rem;
    }
    
    .kuaixun-timeline::before {
        left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-time {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }
    
    .kuaixun-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* 快讯操作区域 */
.kuaixun-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--muted-bg-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 社交分享按钮 */
.kuaixun-social-share {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.kuaixun-social-share button {
    background: var(--muted-bg-color-l);
    border: 1px solid var(--muted-bg-color);
    color: var(--muted-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--theme-border-radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.kuaixun-social-share button:hover {
    background: var(--theme-color-bg);
    color: var(--theme-color);
    border-color: var(--theme-color);
    transform: translateY(-1px);
}

.kuaixun-social-share button.favorited {
    background: var(--theme-color-bg);
    color: var(--theme-color);
    border-color: var(--theme-color);
}

/* 单个海报生成按钮 */
.btn-generate-single-poster {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: var(--theme-border-radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: auto;
}

.btn-generate-single-poster:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-generate-single-poster:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 日期组操作按钮 */
.date-actions {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

.btn-generate-poster {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--theme-border-radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.btn-generate-poster:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.btn-generate-poster:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 防止模态框打开时页面滚动 */
body.modal-open {
    overflow: hidden;
}

/* 海报模态框 */
.poster-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-modal.show {
    display: flex;
    opacity: 1;
}

.poster-modal-content {
    background: var(--main-bg-color);
    border-radius: var(--theme-border-radius);
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.poster-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--muted-bg-color);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-color);
    transition: all 0.3s ease;
}

.poster-modal-close:hover {
    background: var(--theme-color);
    color: white;
}

.poster-canvas-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.poster-canvas-container canvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--theme-border-radius-sm);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.poster-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.poster-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--theme-border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download-poster {
    background: var(--theme-color);
    color: white;
}

.btn-download-poster:hover {
    background: var(--theme-color-hover);
    transform: translateY(-1px);
}

.btn-share-poster {
    background: var(--muted-bg-color);
    color: var(--main-color);
    border: 1px solid var(--muted-bg-color);
}

.btn-share-poster:hover {
    background: var(--theme-color-bg);
    color: var(--theme-color);
    border-color: var(--theme-color);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 响应式设计 - 海报功能 */
@media (max-width: 767.98px) {
    .kuaixun-actions {
        gap: 0.3rem;
    }
    
    .kuaixun-social-share button,
    .btn-generate-single-poster {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .btn-generate-poster {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .poster-modal-content {
        padding: 1rem;
        margin: 1rem;
    }
    
    .poster-actions {
        flex-direction: column;
    }
    
    .poster-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* 响应式优化 - 小屏幕下的回到顶部按钮 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}