/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 - 使用index.css中的全局导航样式 */
/* 机构养老页面移除自定义导航样式，保持与首页一致 */


/* 机构养老头部 */
.institutional-header {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.institutional-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%23ffffff" fill-opacity="0.1" fill-rule="evenodd"/></svg>');
    opacity: 0.3;
}

.institutional-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.institutional-header p {
    font-size: 20px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.header-content {
    position: relative;
    z-index: 1;
}

/* 业务全流程 */
.business-process {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.business-process h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.process-diagram {
    text-align: center;
    margin-bottom: 50px;
}

.process-diagram img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.process-step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.process-step p {
    color: #666;
    line-height: 1.7;
}

/* 功能模块 */
.function-modules {
    padding: 80px 0;
    background-color: #fff;
}

.function-modules h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.module-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.module-item h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-item h3 i {
    margin-right: 10px;
    color: #0066cc;
}

.module-features {
    margin-top: 20px;
}

.module-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.module-feature i {
    color: #28a745;
    margin-right: 10px;
    font-size: 14px;
}

/* 终端展示 */
.terminal-display {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.director-terminal {
    background-color: #f8f9fa;
}

.nurse-terminal {
    background-color: #fff;
}

.family-terminal {
    background-color: #f8f9fa;
}

.terminal-item {
    max-width: 1000px;
    margin: 0 auto;
}

.terminal-item h3 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.terminal-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.terminal-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.terminal-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.terminal-image img:hover {
    transform: scale(1.05);
}

.terminal-description {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.terminal-description h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.terminal-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.terminal-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terminal-features li {
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.terminal-features li::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

/* 页脚 */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #0066cc;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #adb5bd;
    margin: 0;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0066cc;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #adb5bd;
}

.footer-contact i {
    color: #0066cc;
    margin-top: 5px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #495057;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0066cc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #495057;
    color: #adb5bd;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .terminal-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nurse-terminal .terminal-content {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .institutional-header h1 {
        font-size: 36px;
    }
    
    .institutional-header p {
        font-size: 18px;
    }
    
    .business-process h2,
    .function-modules h2,
    .terminal-item h3 {
        font-size: 28px;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .institutional-header {
        padding: 100px 0 60px;
    }
    
    .institutional-header h1 {
        font-size: 28px;
    }
    
    .institutional-header p {
        font-size: 16px;
    }
    
    .business-process h2,
    .function-modules h2,
    .terminal-item h3 {
        font-size: 24px;
    }
    
    .terminal-image,
    .terminal-description {
        min-width: 100%;
    }
}

/* 滚动动画 */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}