.elementor-244 .elementor-element.elementor-element-b7c2dd5{--display:flex;}@media(min-width:768px){.elementor-244 .elementor-element.elementor-element-b7c2dd5{--content-width:100%;}}/* Start custom CSS for html, class: .elementor-element-bd946fe */:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #6c5ce7;
    --accent-hover: #5649c0;
    --border: #3a3a3a;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.light-theme {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f0f0;
    --text-primary: #333333;
    --text-secondary: #666666;
    --border: #e0e0e0;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    overflow: hidden; 
}

.container {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "header header"
        "sidebar main"
        "status status";
    gap: 20px;
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px;
    height: 100vh;
}

/* 头部样式 */
header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), #a29bfe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    width: 50px;
    height: 26px;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: var(--transition);
}

.theme-toggle::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    transition: var(--transition);
    left: 2px;
}

.light-theme .theme-toggle::before {
    transform: translateX(24px);
}

/* 侧边栏样式 */
.sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    height: 100%;
    padding-right: 5px; 
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
    flex-shrink: 0; 
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    cursor: pointer;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    margin-left: 8px;
    transition: var(--transition);
}

.card.expanded .card-title::after {
    transform: rotate(-135deg);
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card.expanded .card-content {
    max-height: 1200px; 
    overflow: visible; 
}

/* 文本区域 */
.text-area {
    width: 100%;
    min-height: 120px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    color: var(--text-primary);
    font-size: 15px;
    resize: vertical;
    transition: var(--transition);
    margin-bottom: 15px;
}

.text-area:focus {
    outline: none;
    border-color: var(--accent);
}

/* 图片上传区域 */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--accent);
    background: rgba(108, 92, 231, 0.05);
}

.upload-icon {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--accent);
}

.upload-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.camera-btn {
    margin-top: 10px;
    padding: 5px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.camera-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.resolution-.elementor-244 .elementor-element.elementor-element-bd946fe {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.resolution-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.resolution-btn.active, .resolution-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* 参数设置 */
.param-group {
    margin-bottom: 18px;
}

.param-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.param-value {
    color: var(--accent);
    font-weight: 500;
}

.slider {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: 2px solid white;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider-toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    transition: var(--transition);
    border-radius: 24px;
    pointer-events: none;
}

.slider-toggle:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider-toggle {
    background-color: var(--accent);
    border-color: var(--accent);
}

input:checked + .slider-toggle:before {
    transform: translateX(20px);
}

.select-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* 主内容区 */
main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    min-height: 0; 
}

.preview-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.control-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.preview-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cccccc;
    background-image: linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0), 
                      linear-gradient(45deg, #e0e0e0 25%, transparent 25%, transparent 75%, #e0e0e0 75%, #e0e0e0);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

#previewCanvas {
    display: block;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
    image-rendering: pixelated;
}

/* 状态栏 */
.status-bar {
    grid-area: status;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    z-index: 10;
}

.status-left {
    display: flex;
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shortcut {
    background: var(--bg-tertiary);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 500;
}

.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 280px;
    line-height: 1.4;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#videoElement {
    display: none;
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 300px 1fr auto;
        grid-template-areas:
            "header"
            "sidebar"
            "main"
            "status";
        height: 100vh;
        overflow: hidden;
    }
    .sidebar { height: 100%; }
    .resolution-.elementor-244 .elementor-element.elementor-element-bd946fe { grid-template-columns: repeat(4, 1fr); }
}/* End custom CSS */