/* 作者：json */

/* 头部样式 */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* 导航菜单样式 */
.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 轮播图样式 */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 3rem;
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.slide-bg-1 {
    background-image: url('../images/轮播1.jpg');
}

.slide-bg-2 {
    background-image: url('../images/轮播2.jpg');
}

.slide-bg-3 {
    background-image: url('../images/轮播3.jpg');
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--light-color);
    width: 80%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--light-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--light-color);
}

/* 通用部分样式 */
.section {
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dark);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

/* 模块1：智能化管理平台样式 */
.digital-transform-section {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.digital-transform-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
}

.digital-transform-image {
    flex: 1;
    min-width: 300px;
}

.image-placeholder {
    background-color: var(--light-blue);
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-weight: bold;
    border-radius: 8px;
}

.full-width-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.digital-transform-text {
    flex: 1;
    min-width: 300px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    background-color: var(--light-blue);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 模块2：项目智能管理平台介绍样式 */
.platform-intro-section {
    background-color: var(--light-blue);
    border-radius: 8px;
    padding: 4rem 2rem;
}

.platform-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.platform-feature {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.platform-feature-icon {
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.platform-feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.platform-feature p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 模块3：行业解决方案样式 */
.solutions-section {
    background-color: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.solutions-slider {
    margin-top: 3rem;
    overflow: hidden;
}

.solutions-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 1rem;
}

.solution-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.solution-image {
    height: 200px;
    overflow: hidden;
}

.solution-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.solution-content {
    padding: 1.5rem;
}

.solution-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.solution-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: var(--accent-color);
}

/* 模块4：成功案例样式 */
.cases-section {
    background-color: var(--light-blue);
    border-radius: 8px;
    padding: 4rem 2rem;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.case-item {
    background-color: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 200px;
    overflow: hidden;
}

.case-image .image-placeholder {
    height: 100%;
    border-radius: 0;
}

.case-content {
    padding: 1.5rem;
}

.case-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.case-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-block;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--accent-color);
}

.cases-more {
    text-align: center;
    margin-top: 3rem;
}

/* 页脚样式 */
.footer {
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.copyright p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }

    .logo {
        margin-bottom: 1rem;
    }

    .main-nav {
        width: 100%;
        display: none;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav li {
        margin: 0;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}