/*
[file name]: main.css
[file content begin]
*/

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
    --border-radius: 6px;
    --transition: all 0.3s ease;
}

/* 重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

/* 通用样式 */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* 导航栏优化 */
.main-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
}

.navbar-brand img {
    filter: brightness(0.8);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--secondary-color) !important;
    background: rgba(52, 152, 219, 0.05);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Hero Section 优化 */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(44, 62, 80, 0.15) 0%,
        rgba(52, 152, 219, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-content .btn {
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

/* 服务卡片优化 - 修复文字颜色问题 */
.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    will-change: transform;
    color: var(--text-dark) !important;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* 修复服务卡片中所有文字颜色 */
.service-card * {
    color: var(--text-dark) !important;
}

.service-card .text-muted {
    color: var(--text-light) !important;
}



.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features li {
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-dark);  /*正确的值 */
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.service-link {
    color: var(--secondary-color) !important;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* === 添加修复代码在这里 === */
/* 确保服务卡片中所有文字颜色正确 */
.service-card,
.service-card *:not(.service-icon):not(.service-icon *) {
    color: var(--text-dark) !important;
}

/* 专门针对列表项 */
.service-card .service-features li {
    color: var(--text-dark) !important;
}

/* 确保对勾符号可见 */
.service-card .service-features li::before {
    color: var(--secondary-color) !important;
}
/* === 修复代码结束 === */

/* 产品卡片优化 */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-features {
    margin-top: 1rem;
}

.feature-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

/* 案例卡片优化 */
.case-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    will-change: transform;
}

.case-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.case-content {
    padding: 1.5rem;
}

.case-content h5 {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.case-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* CTA Section 优化 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 80px 0;
    text-align: center;
}

.cta-section h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white !important;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}

.cta-section .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 36px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 页脚优化 */
.footer {
    background: var(--primary-color) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer h5, .footer h6 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white !important;
}

.footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* 轮播指示器和导航 */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.hero-nav:hover,
.hero-nav:focus {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

/* 业务背景色 */
.parking-bg { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.access-bg { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.security-bg { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.smart-home-bg { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.payment-bg { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.software-bg { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }

/* 按钮样式优化 */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline-light {
    color: var(--text-dark) !important;
    border-color: var(--border-color) !important;
}

.btn-outline-light:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* 工具类 */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-white { background-color: var(--bg-white) !important; }

/* 修复导航栏和页脚显示问题 */
.navbar-dark .navbar-nav .nav-link {
    color: var(--text-dark) !important;
}

/* 标签页导航样式 */
.nav-tabs .nav-link {
    color: var(--text-dark) !important;
    background-color: transparent !important;
    border: none !important;
    font-weight: 500;
    transition: var(--transition);
}

.nav-tabs .nav-link.active {
    color: var(--secondary-color) !important;
    background-color: transparent !important;
    border: none !important;
    position: relative;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 1px;
}

.nav-tabs .nav-link:hover {
    color: var(--secondary-color) !important;
    background-color: rgba(52, 152, 219, 0.05) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--secondary-color) !important;
    background: rgba(52, 152, 219, 0.05);
}

.navbar-dark .navbar-toggler {
    border-color: var(--border-color);
}

.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.footer.bg-dark {
    background: var(--primary-color) !important;
}

.footer.bg-dark *:not(.text-muted):not(.text-muted *) {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer.bg-dark .text-muted,
.footer.bg-dark .text-muted * {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer.bg-dark a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer.bg-dark a:hover {
    color: white !important;
}

.footer.bg-dark i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* 确保页脚中的图标和文字都可见 */
.footer i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer .text-muted a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer .text-muted a:hover {
    color: white !important;
}


/* 更具体的选择器，避免被覆盖 */
.service-card ul.service-features li {
    color: var(--text-dark) !important;
}

/* 或者更具体 */
div.service-card > .service-features > li {
    color: var(--text-dark) !important;
}

.text-service-dark {
    color: var(--text-dark) !important;
}



/* 响应式设计 */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .service-card,
    .product-card,
    .case-card {
        margin-bottom: 1.5rem;
    }

    .hero-nav {
        width: 40px;
        height: 40px;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-indicators {
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .service-card,
    .product-card,
    .case-card {
        padding: 1.5rem 1rem;
    }
}

/*
[file content end]
*/