/* 按键选择控制按钮 */
.selection-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    align-self: flex-start;
}

.selection-controls .label {
    color: #a0a0a0;
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.selection-controls button {
    width: auto;
    min-width: 80px;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.2s;
}

.selection-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.selection-controls button:active {
    transform: translateY(0);
}

.selection-count {
    margin-top: 8px;
    color: #6366f1;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
}

.selection-controls .label {
    color: #a0a0a0;
    font-weight: 500;
    margin-bottom: 4px;
}

.selection-controls button {
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.2s;
}

.selection-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.selection-controls button:active {
    transform: translateY(0);
}

.selection-count {
    margin-top: 8px;
    color: #6366f1;
    font-weight: 600;
    text-align: left;
}

/* 键盘布局容器 */
#keyboardLayout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    min-width: 200px;
    overflow: visible;
    flex-shrink: 0;
}

.row {
    display: flex;
    gap: 4px;
}

.key {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex: 0 0 auto;
    position: relative;
    color: #e0e0e0;
    font-weight: 500;
}

.key:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.key:active {
    background: rgba(99, 102, 241, 0.5);
    transform: translateY(0);
}

.key.hidden {
    display: none;
}

.key.selected {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    border-color: #8b5cf6 !important;
    color: white !important;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.placeholder {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* 按键选择控制按钮 */
.selection-controls {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    align-items: center;
}

.selection-controls .label {
    color: #a0a0a0;
    font-weight: 500;
    margin-right: 8px;
}

.selection-controls button {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    transition: all 0.2s;
}

.selection-controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.selection-controls button:active {
    transform: translateY(0);
}

.selection-count {
    margin-left: auto;
    color: #6366f1;
    font-weight: 600;
}

/* 行程设置样式 - Wooting 风格 */
.travel-settings {
    margin-top: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.travel-settings h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.travel-settings h3::before {
    content: '⚡';
    font-size: 1.3rem;
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.travel-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.travel-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.travel-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 600;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.travel-item .icon {
    font-size: 1.2rem;
}

.travel-item .value-display {
    font-family: 'Courier New', monospace;
    color: #6366f1;
    font-weight: 700;
    font-size: 1.1rem;
}

.slider-container {
    position: relative;
    padding: 8px 0;
}

.travel-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

.travel-slider:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* 进度条填充效果 */
.travel-slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--progress, 0%);
    height: 8px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 4px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

.travel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.travel-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.7);
}

.travel-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.5);
    transition: all 0.2s;
}

.travel-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.7);
}

.slider-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.travel-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.travel-buttons button {
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.travel-buttons button:first-child {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.travel-buttons button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.travel-buttons button:first-child:active {
    transform: translateY(0);
}

.travel-buttons button:last-child {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.travel-buttons button:last-child:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 键盘选择器 */
.keyboard-selector {
    margin-bottom: 24px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.keyboard-selector label {
    color: #e0e0e0;
    font-weight: 500;
}

.keyboard-selector select {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    flex: 1;
    max-width: 300px;
}

.keyboard-selector select:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(99, 102, 241, 0.5);
}

.keyboard-selector select option {
    background: #1a1a2e;
    color: #e0e0e0;
}
