/* 解决方案详情头部样式 */
.solution-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.solution-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.solution-header .container {
    position: relative;
    z-index: 1;
}

.solution-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.solution-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 解决方案详情内容样式 */
.solution-detail {
    padding: 4rem 0;
    background-color: white;
}

/* 业务全景图样式 */
.business-panorama {
    margin-bottom: 4rem;
}

.business-panorama h2 {
    font-size: 2rem;
    color: #1e40af;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.business-panorama p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* 全景图 diagram */
.panorama-diagram {
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* 节点样式 */
.node {
    background-color: white;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.node:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #1e40af;
}

.node h3 {
    color: #1e40af;
    font-size: 1.2rem;
    margin: 0;
}

/* 特殊节点样式 */
.service-center {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    border-color: #1e40af;
}

.service-center h3 {
    color: white;
}

.cloud-platform {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.cloud-platform h3 {
    color: white;
    font-size: 1.1rem;
}

.bed {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border-color: #10b981;
    min-width: 120px;
}

.bed h3 {
    color: white;
    font-size: 1.1rem;
}

/* 连接线样式 */
.connections {
    position: relative;
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.connection {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connection .label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 0.25rem 0.5rem;
    border: 1px solid #3b82f6;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1e40af;
    z-index: 5;
}

.connection .line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
}

/* 家庭床位节点布局 */
.bed-nodes {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* 床节点特殊位置 */
.bed-1 {
    animation: bounceIn 1s ease-out 0.6s both;
}

.bed-2 {
    animation: bounceIn 1s ease-out 0.8s both;
}

.bed-3 {
    animation: bounceIn 1s ease-out 1s both;
}

/* 功能模块样式 */
.function-modules {
    padding: 60px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.function-modules h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease-out;
}

.function-modules h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #007bff;
    border-radius: 2px;
}

.function-modules p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.module-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease-out;
    text-align: left;
}

.module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.module-item h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.module-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #007bff;
    border-radius: 2px;
}

.module-item p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.6;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.module-features li {
    padding: 0.4rem 0;
    font-size: 0.95rem;
    color: #555;
    position: relative;
    padding-left: 1.8rem;
    display: flex;
    align-items: center;
}

.module-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    background-color: #e3f2fd;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .function-modules h2 {
        font-size: 2rem;
    }
    
    .module-item {
        padding: 20px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .module-item h3 {
        font-size: 1.2rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .solution-header h1 {
        font-size: 2rem;
    }
    
    .solution-header p {
        font-size: 1rem;
    }
    
    .business-panorama h2,
    .function-modules h2 {
        font-size: 1.75rem;
    }
    
    .panorama-diagram {
        height: auto;
        gap: 2rem;
    }
    
    .bed-nodes {
        flex-direction: column;
        gap: 1rem;
    }
    
    .connection .line {
        width: 60%;
    }
    
    .modules-row {
        grid-template-columns: 1fr;
    }
    
    .module-item {
        padding: 1.5rem;
    }
    
    .module-item h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .solution-header {
        padding: 3rem 0;
    }
    
    .solution-header h1 {
        font-size: 1.75rem;
    }
    
    .business-panorama h2,
    .function-modules h2 {
        font-size: 1.5rem;
    }
    
    .node {
        padding: 1rem;
    }
    
    .node h3 {
        font-size: 1rem;
    }
    
    .module-item {
        padding: 1.25rem;
    }
    
    .module-item h3 {
        font-size: 1.1rem;
    }
}

/* 页脚样式调整（如果需要） */
.footer {
    margin-top: 4rem;
}