/* 快捷常用语模块样式 */
.snippet-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.snippet-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    background: var(--bg-surface);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(212, 168, 83, 0.1);
}

.search-box, .add-box {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-box input, .add-box input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
}

.add-btn {
    padding: 10px 20px;
    background: var(--gold-600);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
}

.add-btn:hover {
    background: var(--gold-500);
    transform: translateY(-1px);
}

.snippet-list-section {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(212, 168, 83, 0.05);
    min-height: 200px;
    overflow: hidden;
}

.snippet-list {
    display: flex;
    flex-direction: column;
}

.snippet-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(212, 168, 83, 0.05);
    transition: background 0.2s;
}

.snippet-item:hover {
    background: rgba(212, 168, 83, 0.03);
}

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

.snippet-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.snippet-actions {
    display: flex;
    gap: 8px;
    margin-left: 16px;
}

.action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.copy-btn {
    background: rgba(212, 168, 83, 0.1);
    color: var(--text-gold);
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.copy-btn:hover {
    background: rgba(212, 168, 83, 0.2);
}

.delete-btn {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.delete-btn:hover {
    background: rgba(255, 68, 68, 0.2);
}

.snippet-tips {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.snippet-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    animation: toast-in 0.3s ease-out;
}

.snippet-toast.fade-out {
    opacity: 0;
    transition: opacity 0.3s;
}

@keyframes toast-in {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}
