/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* 导航栏 */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-nav .nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #2563eb !important;
}

/* 轮播图样式 */
#heroCarousel {
    height: 100vh;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
    height: 100vh;
    display: flex !important;
    align-items: center;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev,
.carousel-fade .carousel-item.active.carousel-item-start,
.carousel-fade .carousel-item.active.carousel-item-end {
    opacity: 0;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 15;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 15;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(37, 99, 235, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
}

/* 确保轮播图内容正确显示 */
.carousel-item .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-item .row {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
    height: 100vh;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.text-gradient {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: 500;
    position: relative;
    z-index: 10;
}

.hero-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    position: relative;
    z-index: 10;
}

.hero-buttons {
    position: relative;
    z-index: 10;
    text-align: left;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.btn-outline-light {
    border: 2px solid #94a3b8;
    color: #94a3b8;
}

.btn-outline-light:hover {
    background: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
}

/* Hero Image */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem;
    color: #fff;
    text-align: center;
    animation: floatCard 4s ease-in-out infinite;
    z-index: 10;
    width: 120px;
    height: 100px;
}

/* 默认悬浮块位置（第一张轮播图） */
.floating-card:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

/* 第二张轮播图的悬浮块位置 */
.slide-2 .floating-card:nth-child(1) {
    top: 10%;
    right: 15%;
    animation-delay: 0s;
}

.slide-2 .floating-card:nth-child(2) {
    top: 60%;
    left: 5%;
    animation-delay: 1s;
}

.slide-2 .floating-card:nth-child(3) {
    bottom: 10%;
    right: 25%;
    animation-delay: 2s;
}

/* 第三张轮播图的悬浮块位置 */
.slide-3 .floating-card:nth-child(1) {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.slide-3 .floating-card:nth-child(2) {
    top: 45%;
    right: 5%;
    animation-delay: 1s;
}

.slide-3 .floating-card:nth-child(3) {
    bottom: 15%;
    left: 30%;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    display: block;
    color: #2563eb;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* 轮播图背景样式 */
.slide-1 {
    background-image: url('./img/slide-1.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    z-index: 2 !important;
}

.slide-2 {
    background-image: url('./img/slide-3.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    z-index: 2 !important;
}

.slide-3 {
    background-image: url('./img/slide-2.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
    z-index: 2 !important;
}

/* 智能感知照护平台流程图样式 */
.platform-diagram {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    width: 100%;
}

.platform-diagram h5 {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.5rem;
}

.diagram-container {
    text-align: center;
    padding: 0.5rem 0;
}

.diagram-container img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.diagram-container img:hover {
    transform: scale(1.02);
}

/* 荣誉资质样式 */
.honors-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.honor-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.honor-item:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

.honor-item i {
    font-size: 1.5rem;
    color: #2563eb;
    margin-right: 0.75rem;
}

.honor-item span {
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 500;
}

/* 建设成效样式 */
.achievement-section {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievement-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: #f1f5f9;
    transform: translateY(-5px);
}

.achievement-item i {
    font-size: 2.5rem;
    color: #10b981;
    margin-bottom: 1rem;
    display: block;
}

.achievement-item h5 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.achievement-item p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.py-5 {
    padding: 5rem 0;
}

/* About Section */
.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-item {
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #fff;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Products Section */
.bg-dark {
    background: #0f172a !important;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    color: #fff;
}

.product-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.product-icon i {
    font-size: 2rem;
    color: #fff;
}

.product-card h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: #94a3b8;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.center-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    color: #fff;
    transition: all 0.3s ease;
}

.center-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Devices Section */
.device-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.device-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.device-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.device-icon i {
    font-size: 2rem;
    color: #fff;
}

.device-card h5 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.device-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Solutions Section */
.solution-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.solution-icon i {
    font-size: 2rem;
    color: #fff;
}

.solution-card h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.solution-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.solution-card ul li {
    padding: 0.5rem 0;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.solution-card ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Contact Section */
.contact-info .contact-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.contact-info .contact-item i {
    color: #2563eb;
    font-size: 1.5rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 0.75rem 1rem;
}

.contact-form .form-control::placeholder {
    color: #94a3b8;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #2563eb;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
    color: #fff;
}

/* Footer */
.bg-darker {
    background: #020617 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-bottom: 1rem;
        margin-right: 0.5rem;
    }
    
    .floating-card {
        position: static;
        margin: 1rem;
        animation: none;
    }
    
    .hero-image {
        height: auto;
        flex-direction: column;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

