        :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --success: #4cc9f0;
            --warning: #f8961e;
            --danger: #e5383b;
            --info: #2ec4b6;
            --dark: #212529;
            --light: #f8f9fa;
            --gray: #6c757d;
            --border: #dee2e6;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Noto Sans SC', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
            color: var(--dark);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow);
            position: relative;
            z-index: 100;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .logo i {
            font-size: 2.2rem;
        }
        
        .controls {
            display: flex;
            gap: 1rem;
        }
        
        .btn {
            background: white;
            color: var(--primary);
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        .btn:hover {
            background: #f8f9fa;
            transform: translateY(-2px);
            box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
        }
        
        .btn i {
            font-size: 1.2rem;
        }
        
        .btn-danger {
            background: var(--danger);
            color: white;
        }
        
        .btn-success {
            background: var(--success);
            color: white;
        }
        
        .main-container {
            display: flex;
            flex: 1;
            padding: 1rem;
            gap: 1.5rem;
            height: calc(100vh - 150px);
        }
        
        .components-panel {
            background: white;
            width: 300px;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
        }
        
        .panel-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--primary);
        }
        
        .components-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        
        .component-item {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 2px dashed var(--border);
            border-radius: 12px;
            padding: 1.5rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: grab;
            transition: all 0.2s ease;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .component-item:hover {
            background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(67, 97, 238, 0.2);
        }
        
        .component-item i {
            font-size: 2.2rem;
            margin-bottom: 0.8rem;
            color: var(--primary);
        }
        
        .component-item .badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary);
            color: white;
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
        }
        
        .design-area {
            flex: 1;
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
            overflow-y: auto;
            position: relative;
            min-height: 100%;
            background-image: 
                linear-gradient(#f8f9fa 1px, transparent 1px),
                linear-gradient(90deg, #f8f9fa 1px, transparent 1px);
            background-size: 20px 20px;
        }
        
        .design-area-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            background: white;
            position: sticky;
            top: 0;
            z-index: 10;
            padding: 10px 0;
        }
        
        .design-area-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .design-area-content {
            min-height: 600px;
            border: 2px dashed var(--border);
            border-radius: 10px;
            padding: 2rem;
            position: relative;
            background: rgba(255, 255, 255, 0.7);
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .design-area-content.two-columns {
            grid-template-columns: repeat(2, 1fr);
        }
        
        .design-area-content.three-columns {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .placeholder-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: var(--gray);
            font-size: 1.2rem;
            text-align: center;
            max-width: 80%;
        }
        
        .properties-panel {
            background: white;
            width: 350px;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: var(--shadow);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }
        
        .property-group {
            margin-bottom: 1.5rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 1rem;
            background: #f8f9fa;
        }
        
        .property-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 8px;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .property-control {
            margin-bottom: 1rem;
        }
        
        .property-control label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
            color: var(--gray);
        }
        
        .property-control input, 
        .property-control select, 
        .property-control textarea {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 1rem;
            background: white;
        }
        
        .property-control textarea {
            min-height: 100px;
            resize: vertical;
        }
        
        .color-preview {
            width: 30px;
            height: 30px;
            border-radius: 4px;
            border: 1px solid var(--border);
            margin-left: 10px;
        }
        
        .code-preview {
            background: #1e1e1e;
            color: #d4d4d4;
            padding: 1.5rem;
            border-radius: 8px;
            font-family: 'Fira Code', 'Courier New', monospace;
            font-size: 0.9rem;
            overflow-x: auto;
            white-space: pre;
            margin-top: auto;
            max-height: 300px;
            overflow-y: auto;
            position: relative;
        }
        
        .copy-btn {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary);
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        
        .element {
            position: relative;
            padding: 1.5rem;
            border: 1px solid var(--border);
            border-radius: 12px;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 1.5rem;
        }
        
        .element:hover {
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.5);
        }
        
        .element.selected {
            box-shadow: 0 0 0 3px var(--primary);
            z-index: 5;
        }
        
        .element-header {
            position: absolute;
            top: -15px;
            left: 10px;
            background: var(--primary);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            z-index: 2;
        }
        
        .element-actions {
            position: absolute;
            top: -15px;
            right: 10px;
            display: flex;
            gap: 5px;
            z-index: 2;
        }
        
        .element-action {
            background: white;
            color: var(--gray);
            border: 1px solid var(--border);
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 0.9rem;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .element-action:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
        }
        
        .preview-container {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border);
        }
        
        .layout-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 1rem;
        }
        
        .layout-btn {
            background: #e9ecef;
            border: none;
            padding: 8px 15px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.9rem;
        }
        
        .layout-btn.active {
            background: var(--primary);
            color: white;
        }
        
        .tabs {
            display: flex;
            border-bottom: 1px solid var(--border);
            margin-bottom: 1rem;
        }
        
        .tab {
            padding: 10px 20px;
            cursor: pointer;
            border-bottom: 3px solid transparent;
        }
        
        .tab.active {
            border-bottom: 3px solid var(--primary);
            color: var(--primary);
            font-weight: 600;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .range-value {
            display: inline-block;
            min-width: 30px;
            text-align: right;
        }
        
        /* 组件特定样式 */
        .hero-section {
            background: linear-gradient(135deg, #4361ee, #3a0ca3);
            color: white;
            padding: 4rem 2rem;
            border-radius: 12px;
            text-align: center;
        }
        
        .card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            height: 100%;
        }
        
        .card img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .card-content {
            padding: 1.5rem;
        }
        
        .testimonial {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 12px;
            border-left: 4px solid var(--primary);
        }
        
        .carousel {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            height: 300px;
        }
        
        .carousel-inner {
            display: flex;
            transition: transform 0.5s ease;
            height: 100%;
        }
        
        .carousel-item {
            min-width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
        }
        
        .carousel-controls {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            gap: 10px;
        }
        
        .carousel-indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
        }
        
        .carousel-indicator.active {
            background: white;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        
        .form-group input, 
        .form-group textarea, 
        .form-group select {
            width: 100%;
            padding: 0.8rem;
            border: 1px solid var(--border);
            border-radius: 6px;
        }
        
        .table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .table th, .table td {
            padding: 0.8rem;
            border: 1px solid var(--border);
            text-align: left;
        }
        
        .table th {
            background: #f8f9fa;
            font-weight: 600;
        }
        
        .progress-bar {
            height: 10px;
            background: #e9ecef;
            border-radius: 5px;
            overflow: hidden;
        }
        
        .progress {
            height: 100%;
            background: var(--primary);
            border-radius: 5px;
        }
        
        .alert {
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
        }
        
        .alert-success {
            background: rgba(76, 201, 240, 0.2);
            border-left: 4px solid var(--success);
        }
        
        .alert-warning {
            background: rgba(248, 150, 30, 0.2);
            border-left: 4px solid var(--warning);
        }
        
        /* 响应式设计 */
        @media (max-width: 1200px) {
            .main-container {
                flex-wrap: wrap;
                height: auto;
            }
            
            .components-panel, 
            .properties-panel {
                width: 100%;
            }
            
            .design-area {
                min-height: 600px;
            }
        }