/* 投诉悬浮按钮样式 */
.complaint-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 100, 100, 0.7);
    color: white;
    padding: 10px 4px;
    border-radius: 12px 0 0 12px;
    font-size: 12px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    font-weight: bold;
    min-width: 24px;
    min-height: 60px;
}

.complaint-button .warning-icon {
    font-size: 9px;
    margin-bottom: 2px;
    line-height: 1;
}

.complaint-button span {
    display: block;
    line-height: 1.1;
    font-size: 11px;
}

.complaint-button:hover {
    background: rgba(100, 100, 100, 0.85);
}

/* 投诉弹窗样式 */
.complaint-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.complaint-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.complaint-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* 投诉弹窗头部 */
.complaint-header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.complaint-close {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.complaint-close:hover {
    background: #f0f0f0;
}

.complaint-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.complaint-url {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #999;
}

.complaint-menu {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

/* 投诉弹窗主体 */
.complaint-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.complaint-prompt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.complaint-category {
    margin-bottom: 25px;
}

.complaint-category-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.complaint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.complaint-item:hover {
    background: #f0f0f0;
    border-color: #ddd;
}

.complaint-item.selected {
    background: #e3f2fd;
    border-color: #2196f3;
}

.complaint-item.selected span:first-child {
    color: #1976d2;
}

.complaint-item span:first-child {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.complaint-arrow {
    color: #999;
    font-size: 16px;
    margin-left: 10px;
}

/* 其他投诉原因输入 */
.complaint-other-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.complaint-other-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.complaint-other-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.complaint-other-input:focus {
    outline: none;
    border-color: #2196f3;
}

/* 投诉弹窗底部 */
.complaint-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    background: #f9f9f9;
}

.complaint-submit-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complaint-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.complaint-submit-btn:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .complaint-button {
        right: 0;
        padding: 8px 3px;
        font-size: 10px;
        min-width: 22px;
        min-height: 52px;
    }
    
    .complaint-button .warning-icon {
        font-size: 8px;
    }
    
    .complaint-button span {
        font-size: 10px;
    }
    
    .complaint-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .complaint-header {
        padding: 12px 15px;
    }
    
    .complaint-title {
        font-size: 14px;
    }
    
    .complaint-url {
        font-size: 11px;
    }
    
    .complaint-body {
        padding: 15px;
    }
    
    .complaint-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .complaint-other-section {
        margin-top: 15px;
        padding-top: 12px;
    }
    
    .complaint-other-input {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .complaint-submit-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

