/* 自定义样式 */
.card-img-top {
    transition: transform 0.3s ease;
}

.card-img-top:hover {
    transform: scale(1.05);
}

.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.comment-section {
    max-height: 400px;
    overflow-y: auto;
}

/* 点赞按钮动画 */
.like-btn {
    transition: all 0.3s ease;
}

.like-btn i {
    transition: transform 0.2s ease;
}

.like-btn:hover i {
    transform: scale(1.2);
}

.like-btn .bi-heart-fill {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card-img-top {
        height: 150px !important;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
}

/* 朋友圈样式 */
.moment-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: white;
}

.moment-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moment-header {
    position: relative;
}

.moment-text {
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.moment-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.moment-image img {
    transition: transform 0.3s ease;
}

.moment-image:hover img {
    transform: scale(1.02);
}

.moment-actions {
    border-top: 1px solid #f0f0f0;
}

.moment-actions .btn-link {
    color: #666;
    transition: all 0.3s ease;
}

.moment-actions .btn-link:hover {
    background-color: #f8f9fa;
}

.moment-actions .btn-link i {
    font-size: 1.2rem;
    margin-right: 5px;
}

.moment-actions .btn-link:hover i.bi-heart {
    color: #ff6b6b;
}

.moment-actions .btn-link:hover i.bi-chat {
    color: #4a90e2;
}

.moment-comments {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.comment-item {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.comment-item strong a {
    color: #2c3e50;
    font-weight: 600;
}

.comment-item strong a:hover {
    color: #3498db;
}

.comment-item small {
    font-size: 11px;
}

.quick-comment .input-group {
    background-color: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
}

.quick-comment input {
    background-color: transparent;
    border: none;
    padding: 8px 15px;
}

.quick-comment input:focus {
    box-shadow: none;
    background-color: transparent;
}

.quick-comment button {
    border-radius: 0 20px 20px 0;
    padding: 8px 20px;
}

/* 点赞动画 */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.like-btn i.bi-heart-fill {
    animation: heartBeat 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .moment-card {
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .moment-header img {
        width: 40px;
        height: 40px;
    }
    
    .moment-text {
        font-size: 14px;
    }
    
    .moment-actions .btn-link {
        font-size: 14px;
    }
    
    .quick-comment input {
        font-size: 14px;
    }
}

/* 图片模态框样式 */
.modal-content.bg-dark {
    background-color: rgba(0,0,0,0.9);
}

.modal-content.bg-dark .modal-header {
    border-bottom: none;
}

.modal-content.bg-dark .modal-body {
    padding: 0;
}

/* 分页样式 */
.pagination {
    gap: 5px;
}

.pagination .page-link {
    border-radius: 8px;
    padding: 8px 16px;
    color: #333;
}

.pagination .page-item.active .page-link {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

/* 加载动画 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 工具提示样式 */
/* 浮动菜单样式 */
/* 浮动菜单样式 */
.floating-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transition: right 0.3s ease;
}

/* 展开状态 - 正常位置 */
.floating-menu.expanded {
    right: 20px;
}

/* 折叠状态 - 按钮只露出一半 */
.floating-menu.collapsed {
    right: -28px;
}

/* 折叠状态悬浮时完全显示 */
.floating-menu.collapsed:hover {
    right: 0;
}

/* 展开/收起按钮 */
.floating-menu-toggle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: white;
    font-size: 24px;
    position: relative;
    z-index: 1001;
}

.floating-menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 菜单项容器 */
.floating-menu-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;
}

/* 展开状态：显示 */
.floating-menu.expanded .floating-menu-items {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 折叠状态：完全隐藏 */
.floating-menu.collapsed .floating-menu-items {
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    display: none;
}

/* 菜单项 */
.floating-menu-item {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #333;
    position: relative;
    font-size: 20px;
    animation: fadeInUp 0.3s ease backwards;
}

.floating-menu-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background-color: #f0f2f5;
}

.floating-menu-item i {
    transition: all 0.3s ease;
}

.floating-menu-item:hover i {
    transform: scale(1.1);
}

/* 不同类型的按钮颜色 */
.floating-menu-item:nth-child(1):hover {
    background-color: #4a90e2;
    color: white;
}

.floating-menu-item:nth-child(2):hover {
    background-color: #4a90e2;
    color: white;
}

.floating-menu-item:nth-child(3):hover {
    background-color: #28a745;
    color: white;
}

.floating-menu-item:nth-child(4):hover {
    background-color: #ff6b6b;
    color: white;
}

.floating-menu-item:nth-child(5):hover {
    background-color: #6c5ce7;
    color: white;
}

/* 动画延迟 */
.floating-menu-item:nth-child(1) { animation-delay: 0.05s; }
.floating-menu-item:nth-child(2) { animation-delay: 0.1s; }
.floating-menu-item:nth-child(3) { animation-delay: 0.15s; }
.floating-menu-item:nth-child(4) { animation-delay: 0.2s; }
.floating-menu-item:nth-child(5) { animation-delay: 0.25s; }
.floating-menu-item:nth-child(6) { animation-delay: 0.3s; }
.floating-menu-item:nth-child(7) { animation-delay: 0.35s; }
.floating-menu-item:nth-child(8) { animation-delay: 0.4s; }

/* 浮动菜单徽章 */
.floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    background-color: #dc3545;
    color: white;
}

/* 工具提示样式 */
.floating-menu-item {
    position: relative;
}

.floating-menu-item::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.floating-menu-item:hover::before {
    opacity: 1;
}

.floating-menu-toggle::before {
    content: attr(title);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.floating-menu-toggle:hover::before {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-menu.expanded {
        right: 10px;
    }
    
    .floating-menu.collapsed {
        right: -30px;
    }
    
    .floating-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .floating-menu-item {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .floating-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .floating-menu-item::before,
    .floating-menu-toggle::before {
        right: 50px;
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* 右箭头 */
.icon-chevron-right::before {
    content: "›";
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* 左箭头 */
.icon-chevron-left::before {
    content: "‹";
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}


.log-container {
    background-color: #1e1e1e;
    color: #d4d4d4;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 12px;
    height: 500px;
    overflow-y: auto !important;  /* 确保滚动生效 */
    padding: 10px;
    display: block;
}

/* 确保内容足够长才能滚动 */
.log-line {
    padding: 4px 8px;
    border-bottom: 1px solid #2d2d2d;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
    display: block;
}

text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    0px 0px 3px rgba(0,0,0,0.5);


/* static/css/style.css 中添加 */
#captchaImg {
    transition: opacity 0.3s ease;
}
#captchaImg:hover {
    opacity: 0.8;
}

/* 页脚样式 */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.footer a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .footer {
        padding: 15px 0;
        font-size: 12px;
    }
}