/* 灯光工具箱样式 */

/* 分享功能样式 */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.share-title {
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    white-space: nowrap;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.share-btn svg {
    flex-shrink: 0;
}

/* 社交媒体按钮颜色 */
.share-btn.facebook:hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
}

.share-btn.twitter:hover {
    background: linear-gradient(135deg, #1da1f2 0%, #0d6efd 100%);
}

.share-btn.linkedin:hover {
    background: linear-gradient(135deg, #0077b5 0%, #0d6efd 100%);
}

.share-btn.whatsapp:hover {
    background: linear-gradient(135deg, #25d366 0%, #198754 100%);
}

.share-btn.email:hover {
    background: linear-gradient(135deg, #ea4335 0%, #dc3545 100%);
}

.share-btn.copy-link:hover {
    background: linear-gradient(135deg, #3498db 0%, #0d6efd 100%);
}

.share-btn.print:hover {
    background: linear-gradient(135deg, #95a5a6 0%, #6c757d 100%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
    }
    
    .share-btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

/* 基础样式重置 */
.lighting-module {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 35px;
    margin-bottom: 35px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 模块背景装饰 */
.lighting-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #e74c3c 100%);
}

/* 模块进入动画 */
.lighting-module.animate-in {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* 模块标题样式 */
.module-title, .entry-content .module-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #34495e;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-title::before {
    content: '';
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #3498db 0%, #e74c3c 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.module-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #3498db 0%, #e74c3c 100%);
    animation: titleUnderline 1s ease-out;
}

/* 控制面板样式 */
.module-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 输入组样式优化 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(40, 40, 40, 0.8);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

.input-group label {
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 添加输入标签图标 */
.input-group label::before {
    content: '⚙️';
    font-size: 14px;
    opacity: 0.6;
}

/* 输入控件样式优化 */
.input-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #ecf0f1 0%, #bdc3c7 100%);
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group input[type="range"]:hover {
    background: linear-gradient(to right, #bdc3c7 0%, #95a5a6 100%);
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    cursor: pointer;
    box-shadow: 
        0 4px 12px rgba(52, 152, 219, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 
        0 6px 20px rgba(52, 152, 219, 0.6),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* 数字输入框样式优化 */
.input-group input[type="number"] {
    padding: 12px 16px;
    border: 2px solid #34495e;
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    background: #2d2d2d;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.input-group input[type="number"]:hover {
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(52, 152, 219, 0.2);
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* 选择框样式优化 */
.input-group select {
    padding: 12px 16px;
    border: 2px solid #34495e;
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    background: #2d2d2d;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.input-group select:hover {
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(52, 152, 219, 0.2);
}

.input-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* 滑块值显示优化 */
.input-group span {
    font-weight: 700;
    color: #3498db;
    font-size: 18px;
    text-align: center;
    background: rgba(52, 152, 219, 0.15);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.input-group span:hover {
    background: rgba(52, 152, 219, 0.25);
    transform: scale(1.05);
}

/* 输入行布局优化 */
.input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lighting-module {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .module-title {
        font-size: 22px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .input-group {
        padding: 15px;
    }
}

@keyframes titleUnderline {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

/* 光源脉动动画 */


/* 数值变化动画 */
@keyframes valueChange {
    0% {
        transform: scale(1);
        color: #3498db;
    }
    50% {
        transform: scale(1.2);
        color: #e74c3c;
    }
    100% {
        transform: scale(1);
        color: #3498db;
    }
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 色温可视化模块 */
.temperature-slider-container {
    margin-bottom: 30px;
}

#temperature-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #f1c40f, #3498db, #2980b9);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

#temperature-slider:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

#temperature-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.5);
    transition: all 0.3s ease;
}

#temperature-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #2980b9;
}

#temperature-slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.5);
    transition: all 0.3s ease;
}

#temperature-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #2980b9;
}

.temperature-labels {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 14px;
}

.temperature-preview {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

/* 3D场景预览样式 */
.preview-scene-3d {
    width: 400px;
    height: 300px;
    border-radius: 10px;
    background: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    -webkit-perspective: 1200px;
    -moz-perspective: 1200px;
    -o-perspective: 1200px;
    perspective: 1200px;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.room-3d {
    width: 100%;
    height: 100%;
    position: relative;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform: rotateX(35deg) rotateY(-20deg);
    -moz-transform: rotateX(35deg) rotateY(-20deg);
    -o-transform: rotateX(35deg) rotateY(-20deg);
    transform: rotateX(35deg) rotateY(-20deg);
    -webkit-transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-animation: roomRotate 25s linear infinite;
    -moz-animation: roomRotate 25s linear infinite;
    -o-animation: roomRotate 25s linear infinite;
    animation: roomRotate 25s linear infinite;
    -webkit-backface-visibility: visible;
    -moz-backface-visibility: visible;
    -o-backface-visibility: visible;
    backface-visibility: visible;
}

/* 优化房间旋转动画 */
@-webkit-keyframes roomRotate {
    0% {
        -webkit-transform: rotateX(35deg) rotateY(-20deg);
    }
    100% {
        -webkit-transform: rotateX(35deg) rotateY(340deg);
    }
}

@-moz-keyframes roomRotate {
    0% {
        -moz-transform: rotateX(35deg) rotateY(-20deg);
    }
    100% {
        -moz-transform: rotateX(35deg) rotateY(340deg);
    }
}

@-o-keyframes roomRotate {
    0% {
        -o-transform: rotateX(35deg) rotateY(-20deg);
    }
    100% {
        -o-transform: rotateX(35deg) rotateY(340deg);
    }
}

@keyframes roomRotate {
    0% {
        -webkit-transform: rotateX(35deg) rotateY(-20deg);
        -moz-transform: rotateX(35deg) rotateY(-20deg);
        -o-transform: rotateX(35deg) rotateY(-20deg);
        transform: rotateX(35deg) rotateY(-20deg);
    }
    100% {
        -webkit-transform: rotateX(35deg) rotateY(340deg);
        -moz-transform: rotateX(35deg) rotateY(340deg);
        -o-transform: rotateX(35deg) rotateY(340deg);
        transform: rotateX(35deg) rotateY(340deg);
    }
}

.room-3d:hover {
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    animation-play-state: paused;
}

/* 房间墙壁、地板和天花板 - 真实材质效果 */
.room-wall,
.room-floor,
.room-ceiling {
    position: absolute;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
}

/* 墙壁材质 */
.room-wall {
    background-color: #f5f5f5;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.room-wall-back {
    width: 300px;
    height: 200px;
    transform: translateZ(-150px);
    top: 50px;
    left: 50px;
    /* 添加壁纸效果 */
    background-image: 
        radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        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-size: 40px 40px, 20px 20px, 20px 20px;
    background-position: 0 0, 0 0, 10px 10px;
}

.room-wall-left {
    width: 300px;
    height: 200px;
    transform: rotateY(90deg) translateZ(-150px);
    top: 50px;
    left: 50px;
    background-color: #fafafa;
}

.room-wall-right {
    width: 300px;
    height: 200px;
    transform: rotateY(90deg) translateZ(150px);
    top: 50px;
    left: 50px;
    background-color: #fafafa;
}

/* 地板材质 - 木质地板效果 */
.room-floor {
    width: 300px;
    height: 300px;
    transform: rotateX(90deg) translateZ(-100px);
    top: 250px;
    left: 50px;
    background-color: #8b6914;
    background-image: 
        linear-gradient(90deg, rgba(139, 105, 20, 0.8) 0%, rgba(160, 122, 45, 0.8) 100%),
        linear-gradient(90deg, transparent 0%, transparent 90%, rgba(0, 0, 0, 0.1) 90%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(0deg, transparent 0%, transparent 95%, rgba(0, 0, 0, 0.05) 95%, rgba(0, 0, 0, 0.05) 100%);
    background-size: 100% 100%, 50px 100%, 100% 20px;
}

/* 天花板材质 - 石膏板效果 */
.room-ceiling {
    width: 300px;
    height: 300px;
    transform: rotateX(90deg) translateZ(100px);
    top: 50px;
    left: 50px;
    background-color: #f0f0f0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 50px 50px;
}

/* 家具样式 - 真实材质和精细模型 */
.furniture {
    position: absolute;
    transform-style: preserve-3d;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-radius: 4px;
}

/* 沙发 - 皮质效果 */
.furniture-sofa {
    width: 100px;
    height: 50px;
    transform: translateZ(-100px) translateY(150px) translateX(100px);
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 50%, #8b4513 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
}

/* 沙发靠垫 */
.furniture-sofa::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 20px;
    background: linear-gradient(135deg, #a0522d 0%, #cd853f 50%, #a0522d 100%);
    border-radius: 5px;
    box-shadow: 
        inset 0 2px 5px rgba(255, 255, 255, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* 茶几 - 玻璃效果 */
.furniture-table {
    width: 60px;
    height: 60px;
    transform: translateZ(-80px) translateY(170px) translateX(120px);
    background: linear-gradient(135deg, rgba(200, 220, 255, 0.3) 0%, rgba(150, 180, 255, 0.5) 100%);
    border-radius: 50%;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.5);
    /* 添加玻璃反光 */
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        linear-gradient(135deg, rgba(200, 220, 255, 0.3) 0%, rgba(150, 180, 255, 0.5) 100%);
}

/* 台灯 - 金属和玻璃效果 */
.furniture-lamp {
    width: 20px;
    height: 40px;
    transform: translateZ(-50px) translateY(130px) translateX(140px);
    background: linear-gradient(180deg, #c0c0c0 0%, #a0a0a0 50%, #808080 100%);
    border-radius: 10px 10px 0 0;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

/* 灯罩 */
.furniture-lamp::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -10px;
    width: 40px;
    height: 25px;
    background: linear-gradient(135deg, rgba(255, 240, 150, 0.8) 0%, rgba(255, 220, 100, 0.9) 100%);
    border-radius: 20px 20px 0 0;
    box-shadow: 
        0 4px 15px rgba(255, 220, 100, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* 装饰画 - 带框效果 */
.furniture-painting {
    width: 80px;
    height: 60px;
    transform: translateZ(-148px) translateY(100px) translateX(110px);
    background: linear-gradient(135deg, #4682b4 0%, #5f9ea0 50%, #4682b4 100%);
    border: 4px solid #8b4513;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 2px 5px rgba(255, 255, 255, 0.3);
    /* 画框阴影 */
    border-radius: 2px;
}

/* 画作内容 */
.furniture-painting::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, #2e8b57 0%, #3cb371 50%, #2e8b57 100%);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 画作装饰 */
.furniture-painting::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    border-radius: 50%;
}

/* 光照效果 */
.room-3d::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 200px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 240, 150, 1), rgba(255, 220, 100, 0.8), transparent 50%);
    border-radius: 50%;
    -webkit-transform: translateZ(100px);
    -moz-transform: translateZ(100px);
    -o-transform: translateZ(100px);
    transform: translateZ(100px);
    -webkit-animation: lightPulse 2s ease-in-out infinite;
    -moz-animation: lightPulse 2s ease-in-out infinite;
    -o-animation: lightPulse 2s ease-in-out infinite;
    animation: lightPulse 2s ease-in-out infinite;
    filter: blur(30px);
    z-index: 10;
    box-shadow: 
        0 0 100px rgba(255, 240, 150, 0.8),
        0 0 200px rgba(255, 220, 100, 0.5);
}

/* 增强光源脉动动画 */
@-webkit-keyframes lightPulse {
    0%, 100% {
        opacity: 0.6;
        -webkit-transform: translateZ(100px) scale(1);
        filter: blur(30px);
    }
    50% {
        opacity: 1;
        -webkit-transform: translateZ(100px) scale(1.2);
        filter: blur(25px);
    }
}

@-moz-keyframes lightPulse {
    0%, 100% {
        opacity: 0.6;
        -moz-transform: translateZ(100px) scale(1);
        filter: blur(30px);
    }
    50% {
        opacity: 1;
        -moz-transform: translateZ(100px) scale(1.2);
        filter: blur(25px);
    }
}

@-o-keyframes lightPulse {
    0%, 100% {
        opacity: 0.6;
        -o-transform: translateZ(100px) scale(1);
        filter: blur(30px);
    }
    50% {
        opacity: 1;
        -o-transform: translateZ(100px) scale(1.2);
        filter: blur(25px);
    }
}

@keyframes lightPulse {
    0%, 100% {
        opacity: 0.6;
        -webkit-transform: translateZ(100px) scale(1);
        -moz-transform: translateZ(100px) scale(1);
        -o-transform: translateZ(100px) scale(1);
        transform: translateZ(100px) scale(1);
        filter: blur(30px);
    }
    50% {
        opacity: 1;
        -webkit-transform: translateZ(100px) scale(1.2);
        -moz-transform: translateZ(100px) scale(1.2);
        -o-transform: translateZ(100px) scale(1.2);
        transform: translateZ(100px) scale(1.2);
        filter: blur(25px);
    }
}

/* 色温变化效果 */
.room-3d.warm-light::before {
    background: radial-gradient(circle, rgba(255, 190, 120, 1), rgba(255, 170, 90, 0.9), transparent 50%);
    box-shadow: 
        0 0 100px rgba(255, 190, 120, 0.9),
        0 0 200px rgba(255, 170, 90, 0.6);
}

.room-3d.neutral-light::before {
    background: radial-gradient(circle, rgba(255, 240, 150, 1), rgba(255, 220, 100, 0.8), transparent 50%);
    box-shadow: 
        0 0 100px rgba(255, 240, 150, 0.8),
        0 0 200px rgba(255, 220, 100, 0.5);
}

.room-3d.cool-light::before {
    background: radial-gradient(circle, rgba(180, 220, 255, 1), rgba(150, 200, 255, 0.9), transparent 50%);
    box-shadow: 
        0 0 100px rgba(180, 220, 255, 0.9),
        0 0 200px rgba(150, 200, 255, 0.6);
}

/* 房间整体光照 */
.room-3d.warm-light .room-wall,
.room-3d.warm-light .room-floor,
.room-3d.warm-light .room-ceiling {
    background-color: rgba(255, 180, 100, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 180, 100, 0.2);
}

.room-3d.neutral-light .room-wall,
.room-3d.neutral-light .room-floor,
.room-3d.neutral-light .room-ceiling {
    background-color: rgba(241, 196, 15, 0.1);
    box-shadow: inset 0 0 20px rgba(241, 196, 15, 0.2);
}

.room-3d.cool-light .room-wall,
.room-3d.cool-light .room-floor,
.room-3d.cool-light .room-ceiling {
    background-color: rgba(150, 200, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(150, 200, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .preview-scene-3d {
        width: 100%;
        max-width: 350px;
        height: 250px;
    }
}





.temperature-info h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 10px;
}

.temperature-info p {
    color: #bdc3c7;
    font-size: 16px;
}

/* 光束角计算器模块 */
.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.input-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ecf0f1;
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s ease;
}

.input-group input[type="range"]:hover {
    background: #bdc3c7;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #c0392b;
}

.input-group span {
    font-weight: 600;
    color: #3498db;
    font-size: 18px;
    text-align: center;
}

.calculator-result {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.visualization {
    flex: 1;
}

#beam-visualization {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.result-info h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.result-info p {
    margin-bottom: 10px;
    color: #7f8c8d;
    font-size: 16px;
}

.result-info span {
    font-weight: 700;
    color: #3498db;
}

/* 照射高度与光斑大小关系模块 */
.relation-inputs {
    margin-bottom: 30px;
}

.relation-inputs select {
    padding: 12px 15px;
    border: 2px solid #34495e;
    border-radius: 6px;
    font-size: 16px;
    color: #ffffff;
    background: #2d2d2d;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.relation-inputs select:hover {
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(52, 152, 219, 0.3);
}

.relation-inputs select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(52, 152, 219, 0.2);
}

.relation-chart {
    margin-bottom: 30px;
    background: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.relation-chart:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#height-spot-chart {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.relation-table {
    margin-top: 30px;
}

.relation-table h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 15px;
}

#spot-size-table {
    width: 100%;
    border-collapse: collapse;
    background: #2d2d2d;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#spot-size-table th,
#spot-size-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #34495e;
    transition: all 0.3s ease;
}

#spot-size-table th {
    background: #3498db;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

#spot-size-table tr:hover {
    background: #34495e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

#spot-size-table td {
    color: #bdc3c7;
}

#spot-size-table td:first-child {
    font-weight: 600;
    color: #ffffff;
}

/* 灯光覆盖面积计算器模块 */
.coverage-inputs {
    margin-bottom: 30px;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.input-group input[type="number"] {
    padding: 12px 15px;
    border: 2px solid #34495e;
    border-radius: 6px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s ease;
    background: #2d2d2d;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.input-group input[type="number"]:hover {
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(52, 152, 219, 0.3);
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(52, 152, 219, 0.2);
}

.coverage-result {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.room-visualization {
    flex: 1;
}

#room-visualization {
    width: 100%;
    height: auto;
    transition: all 0.5s ease;
}

.coverage-info h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.coverage-info p {
    margin-bottom: 10px;
    color: #7f8c8d;
    font-size: 16px;
}

.coverage-info span {
    font-weight: 700;
    color: #e74c3c;
}

/* 照度分布热图模块 */
.heatmap-inputs {
    margin-bottom: 30px;
}

.heatmap-result {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

.heatmap-visualization {
    flex: 1;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

#illuminance-canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.heatmap-info {
    width: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.heatmap-info h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.heatmap-stats {
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.stat-value {
    font-weight: 700;
    color: #3498db;
    font-size: 18px;
}

.heatmap-legend {
    margin-top: 30px;
}

.heatmap-legend h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.legend-gradient {
    height: 20px;
    width: 100%;
    background: linear-gradient(to right, #3498db, #2ecc71, #f1c40f, #e67e22, #e74c3c);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
}

/* 灯具选择建议模块 */
.selection-inputs {
    margin-bottom: 30px;
}

.temp-options {
    display: flex;
    gap: 20px;
    align-items: center;
}

.temp-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.temp-options label:hover {
    color: #3498db;
}

.temp-options input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
    cursor: pointer;
}

.selection-result {
    margin-top: 30px;
}

.selection-result h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
}

.suggestion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.suggestion-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #3498db;
}

.suggestion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.suggestion-card h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.suggestion-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-card li {
    padding: 8px 0;
    color: #7f8c8d;
    font-size: 16px;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.suggestion-card li:last-child {
    border-bottom: none;
}

.suggestion-card li:hover {
    color: #3498db;
    padding-left: 10px;
}

.suggestion-card span {
    font-weight: 700;
    color: #2c3e50;
}

.selection-tips {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #9b59b6;
}

.selection-tips h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.selection-tips p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
}

/* 灯具布局规划模块样式 */
.layout-inputs {
    margin-bottom: 30px;
}

.layout-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.layout-result {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

.layout-canvas-container {
    flex: 1;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
}

#layout-canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: crosshair;
}

.canvas-instructions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.layout-info {
    width: 300px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.layout-info h3 {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.layout-stats {
    margin-bottom: 30px;
}

.layout-tips {
    margin-top: 30px;
    background: rgba(52, 152, 219, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.layout-tips h4 {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.layout-tips p {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.6;
}

/* 响应式设计 - 布局模块 */
@media (max-width: 1024px) {
    .layout-result {
        flex-direction: column;
    }
    
    .layout-info {
        width: 100%;
        margin-top: 20px;
    }
    
    .layout-controls {
        justify-content: center;
    }
}

/* 响应式设计 - 热图模块 */
@media (max-width: 1024px) {
    .heatmap-result {
        flex-direction: column;
    }
    
    .heatmap-info {
        width: 100%;
        margin-top: 20px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .lighting-module {
        padding: 20px;
    }
    
    .module-title {
        font-size: 20px;
    }
    
    .temperature-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .preview-scene {
        width: 100%;
        max-width: 300px;
    }
    
    .calculator-inputs {
        grid-template-columns: 1fr;
    }
    
    .calculator-result {
        flex-direction: column;
        text-align: center;
    }
    
    .coverage-result {
        flex-direction: column;
        text-align: center;
    }
    
    .input-row {
        grid-template-columns: 1fr;
    }
    
    .temp-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 数值变化动画 */
@keyframes valueChange {
    0% {
        transform: scale(1);
        color: #3498db;
    }
    50% {
        transform: scale(1.2);
        color: #e74c3c;
    }
    100% {
        transform: scale(1);
        color: #3498db;
    }
}

.value-changing {
    animation: valueChange 0.5s ease;
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 工具提示动画 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
