/* 坛子 - 隐藏帖子助手样式 */
.tanzi-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: none;
}

.tanzi-orb {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #87CEEB, #B0E2FF);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid white;
}

.tanzi-orb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(135, 206, 235, 0.6);
}

.tanzi-orb.active {
    transform: scale(0.95);
    background: linear-gradient(135deg, #6CB4EE, #87CEEB);
}

/* 坛子眼睛 */
.tanzi-eyes {
    position: absolute;
    top: 25px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.tanzi-eye {
    width: 12px;
    height: 12px;
    background: #2F4F4F;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

/* 坛子嘴巴 */
.tanzi-mouth {
    position: absolute;
    bottom: 20px;
    width: 20px;
    height: 8px;
    background: #2F4F4F;
    border-radius: 0 0 10px 10px;
    transition: all 0.3s ease;
}

.tanzi-orb.active .tanzi-mouth {
    height: 4px;
    border-radius: 2px;
}

/* 坛子面板 */
.tanzi-panel {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    animation: fadeInUp 0.3s ease;
    border: 2px solid #B0E2FF;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E6F7FF;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #2F4F4F;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title::before {
    content: "🗃️";
    font-size: 20px;
}

.panel-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #87CEEB;
    transition: all 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.panel-close:hover {
    background: #E6F7FF;
    color: #4682B4;
}

/* 关键词列表 */
.keywords-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #4682B4;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.keywords-list {
    max-height: 120px;
    overflow-y: auto;
    background: #F8FDFF;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #E6F7FF;
}

.keyword-item {
    display: inline-block;
    background: #87CEEB;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin: 2px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.empty-keywords {
    color: #87CEEB;
    font-size: 12px;
    text-align: center;
    padding: 10px;
}

/* 统计信息 */
.stats-section {
    background: #F0F8FF;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #E6F7FF;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #4682B4;
    font-weight: 500;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #2F4F4F;
}

.stat-value.highlight {
    color: #FF6B6B;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 操作按钮 */
.panel-actions {
    display: flex;
    gap: 10px;
}

.panel-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.panel-btn.primary {
    background: #87CEEB;
    color: white;
}

.panel-btn.primary:hover {
    background: #6CB4EE;
    transform: translateY(-1px);
}

.panel-btn.secondary {
    background: #F0F8FF;
    color: #4682B4;
    border: 1px solid #87CEEB;
}

.panel-btn.secondary:hover {
    background: #E6F7FF;
    transform: translateY(-1px);
}

/* 坛子徽章 */
.tanzi-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tanzi-container {
        bottom: 20px;
        right: 20px;
    }
    
    .tanzi-orb {
        width: 60px;
        height: 60px;
    }
    
    .tanzi-panel {
        width: calc(100vw - 40px);
        right: 0;
        left: 0;
        margin: 0 auto;
        bottom: 70px;
    }
    
    .tanzi-eyes {
        top: 20px;
    }
    
    .tanzi-eye {
        width: 10px;
        height: 10px;
    }
    
    .tanzi-mouth {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .tanzi-panel {
        padding: 15px;
    }
    
    .panel-actions {
        flex-direction: column;
    }
}