/* 文字效果面板样式 */
.text-effects-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    max-height: 80vh;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 15px;
    overflow: auto;
    z-index: 1000;
    resize: horizontal;
    min-width: 320px;
    max-width: 800px;
}

/* 隐藏 resize 手柄的默认样式 */
.text-effects-panel::-webkit-resizer {
    display: none;
}

/* 最小化按钮样式 */
.minimize-button {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.minimize-button:hover {
    background: #eee;
}

/* 控制区域网格布局 */
.text-style-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* 控制区域样式 */
.control-section {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.control-section h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.control-group {
    margin-bottom: 12px;
}

.control-group label {
    display: block;
    margin-bottom: 6px;
    color: #666;
    font-size: 14px;
}

/* 输入控件样式 */
select, input[type="range"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f8f8;
}

/* 特效预设按钮样式 */
.effect-presets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.effect-presets button {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f8f8;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.effect-presets button:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.effect-presets button:active {
    transform: scale(0.95);
    background: #e8e8e8;
}
  