:root {
    --primary: #0a2463;
    --secondary: #1e88e5;
    --accent: #ff6b6b;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 导航栏样式 */
.navbar {
    background: linear-gradient(135deg, white, white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin-left: 10px;
}

.logo-icon {
    width: 217px;
    height: 67px;
    /*background: #ff6b6b;*/
    background: url('/static/images/index/logo.png') center/cover;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links > li {
    margin-left: 25px;
    position: relative;
}

.nav-links a {
    /*color: rgba(255,255,255,0.9);*/
    color:rgba(0, 0, 0, 0.9);/*黑色*/
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: black;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.nav-links a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-links li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    color: #444;
    padding: 12px 20px;
    display: block;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:hover {
    color: #0a2463;
    background: #f0f4f8;
    padding-left: 25px;
}

.dropdown-menu a i {
    margin-right: 10px;
    color: #1e88e5;
    font-size: 0.9rem;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* 移动端菜单切换 */
.menu-toggle {
    display: none;
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 英雄区域 */
.hero {
    /*background: linear-gradient(rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.9)), url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover;*/
    background:    linear-gradient(rgba(10, 36, 99, 0.3), rgba(10, 36, 99, 0.4)),  /* 透明度降至30%-40% */
    url('/static/images/idc/idc-hero01.png') center/cover;
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 20px auto;
    border-radius: 2px;
}

/* 关于idc-service */
.about-idc-services {
    padding: 40px 5%;
    /*background: white;*/
    background:#f0f4f8;
}
.idc-services-content {
    display: flex;
    align-items: center;
    /*gap: 40px;*/
    max-width: 1200px;
    margin: 0 auto;
}


.hero2 {
    /*background: linear-gradient(rgba(10, 36, 99, 0.8), rgba(10, 36, 99, 0.9)), url('https://images.unsplash.com/photo-1553877522-43269d4ea984?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover;*/
    background:    linear-gradient(rgba(10, 36, 99, 0.3), rgba(10, 36, 99, 0.4)),  /* 透明度降至30%-40% */
    url('/static/images/idc/idc-her02.png') center/cover;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero2 h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
}



/* 关于部分 */
.about-section {
    padding: 50px 5%;
    /*background: white;*/
    background:#f0f4f8;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: left;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    background-color: #6675AD;
    /*gap: 40px;*/
    max-width: 980px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
    color: white;
}

.about-text h3 {
    /*font-size: 1.8rem;*/
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 2px;
}
.about-content1 h2 {
    /*font-size: 1.8rem;*/
    font-size: 1.8rem;
    color: var(--primary);
}


/*.about-text p {*/
/*    margin-bottom: 20px;*/
/*    color: #444;*/
/*}*/

.centered {
    text-align: center;
}


h2 {
    display: inline-block;
    vertical-align: middle;
    font-size: 24px;
    line-height: 1.5;
}

.about-content1 {
    display: flex;
    align-items: center;
    margin-top: 6%;
    margin-bottom: 6%;
    margin-left: 6%;
    margin-right: 5%;
}

.about-content1 p {
    font-size: 18px;
    text-align: left;
}



.wj-img {
    width: 125px; /* 可根据实际需求调整 */
    height: 125px; /* 可根据实际需求调整 */
    background: url('/static/images/tmr/tbygumce.png') center/cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 30px; /* 图片与文字之间的间距 */
    margin-top: 20px;
}



/*.about-image1 {*/
/*    flex: 1;*/
/*    !*border-radius: 10px;*!*/
/*    overflow: hidden;*/
/*    box-shadow: 0 15px 30px rgba(0,0,0,0.1);*/
/*    height: 310px;*/
/*    background: url('/static/images/tmr2/l8a8tyjm.png') center/cover;*/
/*    color: white;*/
/*}*/


.about-image1 {
    flex: 1;
    /*border-radius: 10px;*/
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    min-height: 310px;
    /*background: url('/static/images/tmr2/dsde.jpg') center/cover;*/
    background: url('/static/images/tmr/fgfdg.png') repeat-x; /* 横向平铺 */
    background-size: auto 100%; /* 高度占满，宽度自动适应 */
    color: white;
}


.about-image2 {
    flex: 1;
    /*border-radius: 10px;*/
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    height:  445px;
    background: url('/static/images/tmr/ewerf.png') center/cover;
}

.about-image3 {
    flex: 1;
    /*border-radius: 10px;*/
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    height: 447px;
    background: url('/static/images/tmr/asdre4.png') center/cover;
}

.about-content1-img01 {
    flex-shrink: 0; /* 防止图片被压缩 */
    width: 93px; /* 根据实际图片大小调整 */
    height: 93px;
    background: url('/static/images/tmr/m3cpk11b.png') center/cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5%; /* 图片与文字之间的间距 */
    margin-top: 3%;
}

.about-content1-img02 {
    flex-shrink: 0; /* 防止图片被压缩 */
    width: 93px; /* 可根据实际需求调整 */
    height: 93px; /* 可根据实际需求调整 */
    background: url('/static/images/tmr/dqhhhe3s.png') center/cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5%; /* 图片与文字之间的间距 */
    margin-top: 3%;
}
.about-content1-img03 {
    flex-shrink: 0; /* 防止图片被压缩 */
    width: 93px; /* 可根据实际需求调整 */
    height: 93px; /* 可根据实际需求调整 */
    background: url('/static/images/tmr/bj487az4.png') center/cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5%; /* 图片与文字之间的间距 */
    margin-top: 3%;
}

.icon-text-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}
.icon-text-row p {
    margin: 0;
    line-height: 1.2;
}

/* 页脚 */
footer {
    background: linear-gradient(135deg, var(--primary), #1a365d);
    color: white;
    padding: 60px 5% 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-column p, .footer-column li {
    opacity: 0.8;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    display: flex;
    align-items: center;
}

.footer-column li i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-column a {
    color: white;
    text-decoration: none;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--accent);
}

.services-grid {
    display: flex;
    justify-content: space-between;
}

.services-grid ul {
    width: 60%; /* 略小于一半宽度以创建间距 */
}


.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .nav-links li {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #0a2463;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links > li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        width: 90%;
        margin: 10px auto 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links li.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu a {
        padding: 10px;
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animated {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
