.banner_swiper {
    position: relative;
    width: 100%;
    height: 480px;
}

.banner_swiper img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 480px;
    width: 100%;
    object-fit: cover;
}

.banner_swiper .swiper-pagination-bullet {
    width: 30px;
    height: 2px;
    background: #fff;
    opacity: .5;
    border-radius: 0 !important;
}

.banner_swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.index_wrap {
    width: 100%;
    position: relative;
}

/* Backgrounds - handled with CSS vars or specific logic for images */
.index_wrap.bg1 {
    min-height: 650px;
    background: url(../imgs/index_bg1.jpg) no-repeat center;
    background-size: cover;
    padding-bottom: 50px;
}
/* Dark mode overlay for bg1 */
[data-theme="dark"] .index_wrap.bg1 {
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.8), rgba(10, 14, 23, 0.95)), url(../imgs/index_bg1.jpg) no-repeat center;
    background-size: cover;
}

.index_wrap.bg2 {
    background: var(--bg-color);
    padding-bottom: 60px;
}

.index_wrap.bg3 {
    min-height: 800px;
    background: url(../imgs/index_bg3.jpg) no-repeat center;
    background-size: cover;
    padding-bottom: 50px;
}
[data-theme="dark"] .index_wrap.bg3 {
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.95), rgba(10, 14, 23, 0.8)), url(../imgs/index_bg3.jpg) no-repeat center;
    background-size: cover;
}

.index_wrap.bg4 {
    min-height: 600px;
    background: var(--bg-color);
    padding-bottom: 50px;
}

.index_wrap.bg5 {
    min-height: 540px;
    background: url(../imgs/index_bg5.jpg) no-repeat center;
    background-size: cover;
}
[data-theme="dark"] .index_wrap.bg5 {
    background: linear-gradient(to top, rgba(10, 14, 23, 1), rgba(10, 14, 23, 0.8)), url(../imgs/index_bg5.jpg) no-repeat center;
    background-size: cover;
}

/* DT Items (Hot Projects) - 4 per row */
.dt_ul {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Changed from center to allow precise gaps */
    width: 1200px; /* Force width to match container */
    margin-left: auto;
    margin-right: auto;
}

.dt_item {
    position: relative;
    width: 282px; /* Fixed width */
    height: 320px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-right: 24px; /* Fixed right margin */
    margin-bottom: 24px;
    padding-top: 85px;
    cursor: pointer;
    transition: all .3s;
    border: 1px solid var(--border-color);
}

.dt_item:nth-child(4n) {
    margin-right: 0; /* Remove margin for every 4th item */
}

.dt_item:hover {
    box-shadow: 0px 10px 40px 0px var(--shadow-color);
    transform: translateY(-8px);
    border-color: rgba(14, 183, 144, 0.3);
}

/* Light mode specific hover bg if needed, or use var(--card-bg) which changes */

.dt_item .log {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    margin: auto;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    z-index: 1;
    background: #fff; /* Logo bg always white */
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dt_item h2 {
    width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    line-height: 24px;
    margin: 10px auto 0;
}

.dt_item .center {
    padding: 24px 0 26px 0;
}

.dt_item .center .item {
    position: relative;
    float: left;
    width: 50%;
    text-align: center;
}

.dt_item .center .item span {
    display: block;
}

.dt_item .center .item .sp1 {
    line-height: 24px;
    font-size: 24px;
    font-weight: bold;
    color: #FE574A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0 auto;
    font-family: DINProM;
}

.dt_item .center .item .sp2 {
    line-height: 24px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    font-family: DINProM;
}

.dt_item .center .item .sp3 {
    font-size: 12px;
    color: var(--text-color-light);
    margin-top: 10px;
}

.dt_item .center .item:after {
    position: absolute;
    content: '';
    width: 1px;
    height: 30px;
    background: var(--border-color);
    right: 0;
    top: 15px;
}

.dt_item .center .item:last-of-type:after {
    display: none;
}

.dt_item .tg_btn {
    display: block;
    width: 222px;
    background: linear-gradient(90deg, #0EB790, #0ccfa3);
    border-radius: 4px;
    margin: 0 auto;
    transition: all .3s;
    font-size: 14px;
    font-weight: bold;
    color: #FFFFFF;
    line-height: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(14, 183, 144, 0.3);
}

.dt_item .tg_btn:hover {
    box-shadow: 0 6px 20px rgba(14, 183, 144, 0.5);
    transform: scale(1.02);
}

.dt_item p {
    font-size: 12px;
    color: var(--text-color-secondary);
    line-height: 16px;
    text-align: center;
    margin-top: 15px;
}

.dt_ul2 {
    display: none;
    margin-top: 26px !important;
}

.index_wrap .bot_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 163px;
    height: 40px;
    background: rgba(14, 183, 144, 0.1);
    border: 1px solid rgba(14, 183, 144, 0.3);
    border-radius: 4px;
    margin: 30px auto 0;
    color: var(--primary-color);
    transition: all .3s;
    font-weight: bold;
}

.index_wrap .bot_btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(14, 183, 144, 0.4);
}

.tab_nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.tab_nav .tab_item {
    position: relative;
    line-height: 40px;
    padding: 0 24px;
    font-size: 16px;
    color: var(--text-color-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.tab_nav .tab_item:hover, .tab_nav .tab_item.on {
    color: var(--primary-color);
}

.tab_nav .tab_item.on:after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    margin: auto;
    content: '';
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

/* DJ Items (Big Factory) - 4 per row */
.dj_ul {
    display: none;
    margin-top: 26px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.dj_ul:first-of-type {
    display: flex;
}

.dj_item {
    position: relative;
    width: 282px; /* Adjusted width for 4 per row */
    height: 240px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-right: 24px;
    margin-bottom: 24px;
    padding: 20px 24px 24px 24px;
    transition: all .3s;
    border: 1px solid var(--border-color);
}

.dj_item:nth-child(4n) {
    margin-right: 0; /* Remove margin for every 4th item */
}

.dj_item:hover {
    box-shadow: 0px 10px 40px 0px var(--shadow-color);
    transform: translateY(-5px);
    border-color: rgba(14, 183, 144, 0.3);
}

.dj_item .info {
    padding-left: 100px; /* Adjusted padding since image is smaller relative to width? No, keep logic but check layout. */
}

.dj_item .info h4 {
    font-size: 18px;
    color: var(--text-color);
    line-height: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
}

.dj_item .info p {
    font-size: 13px;
    color: var(--text-color-secondary);
    margin-top: 8px;
}

.dj_tu {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 90px; /* Reduced width to fit smaller card */
    height: 120px; /* Reduced height proportionally */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dj_tu img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dj_tu .fen {
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 20px;
    background: linear-gradient(313deg, #0a0e17 0%, #2c3e50 100%);
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 20px;
    border-bottom-left-radius: 8px;
}

.dj_item .center {
    padding: 20px 0 0 0;
}

.dj_item .center .item {
    position: relative;
    float: left;
    width: 50%;
}

.dj_item .center .item:nth-child(2n) {
    padding-left: 20px;
}

.dj_item .center .item span {
    display: block;
}

.dj_item .center .item .sp1 {
    line-height: 30px;
    font-size: 22px;
    color: var(--text-color);
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: DINProM;
}

.dj_item .center .item .sp2 {
    font-size: 22px;
    color: #FE574A;
    line-height: 30px;
    font-weight: bold;
    font-family: DINProM;
}

.dj_item .center .item .sp3 {
    font-size: 12px;
    color: var(--text-color-light);
    margin-top: 6px;
}

.dj_item .center .item:after {
    position: absolute;
    content: '';
    width: 1px;
    height: 30px;
    background: var(--border-color);
    right: 0;
    top: 15px;
}

.dj_item .center .item:last-of-type:after {
    display: none;
}

.dj_item .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, #0EB790, #0ccfa3);
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    color: #FFFFFF;
    margin-top: 32px;
    cursor: pointer;
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(14, 183, 144, 0.3);
}

.dj_item:hover .btn {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(14, 183, 144, 0.5);
}

/* News Items */
.news_ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 10px;
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news_item {
    width: 384px; /* Fixed width to match layout (1200/3 = 400 approx, use 384+24) */
    background: var(--card-bg);
    border-radius: 12px;
    transition: all .3s;
    padding: 24px 24px 0 24px;
    margin-right: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.news_item:nth-child(3n) {
    margin-right: 0;
}

.news_item:hover {
    box-shadow: 0px 10px 40px 0px var(--shadow-color);
    transform: translateY(-5px);
    border-color: rgba(14, 183, 144, 0.3);
}

.news_item .top {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.news_item .top img {
    width: 28px;
    margin-right: 12px;
    filter: invert(var(--invert-icon));
}

.news_item ul {
    height: 185px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.news_item li a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    line-height: 32px;
}

.news_item li span {
    position: relative;
    font-size: 14px;
    color: var(--text-color-secondary);
    padding-left: 10px;
    width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.news_item li span:after {
    position: absolute;
    left: 0;
    top: 14px;
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-color-light);
    border-radius: 50%;
}

.news_item li em {
    font-size: 12px;
    color: var(--text-color-light);
}

.news_item li:hover span {
    color: var(--primary-color);
    font-weight: 600;
}

.news_item li:hover span:after {
    background: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

.news_item li:hover em {
    color: var(--primary-color);
}

.news_item .bot {
    display: flex;
    align-items: center;
    height: 60px;
    font-size: 14px;
    color: var(--text-color);
    transition: all .3s;
}

.news_item .bot img {
    width: 14px;
    margin-left: 10px;
    filter: invert(var(--invert-icon));
}

.news_item .bot:hover {
    color: var(--primary-color);
}

/* Advantage Items (YS) - 4 per row */
.ys_ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ys_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 282px; /* Fixed width */
    height: 310px;
    background: var(--card-bg);
    border-radius: 12px;
    transition: all .3s;
    padding: 24px;
    margin-right: 24px; /* Fixed margin */
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.ys_item:nth-child(4n) {
    margin-right: 0;
}

.ys_item:hover {
    box-shadow: 0px 10px 40px 0px var(--shadow-color);
    transform: translateY(-5px);
    border-color: rgba(14, 183, 144, 0.3);
}

.ys_item h4 {
    font-size: 18px;
    color: var(--text-color);
    line-height: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.ys_item p {
    font-size: 14px;
    color: var(--text-color-secondary);
    line-height: 24px;
    text-align: center;
    margin-top: 14px;
}

/* Animations */
.ys_item i {
    display: block;
    width: 140px;
    height: 140px;
    -webkit-animation: icons_anim_end 0.6s steps(49) both;
    animation: icons_anim_end 0.6s steps(49) both;
    background-size: cover;
    background-position: 0 0;
    background-repeat: no-repeat;
}
[data-theme="dark"] .ys_item i {
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2));
}

.ys_item:hover i {
    -webkit-animation: icons_anim_start 0.6s steps(49) both;
    animation: icons_anim_start 0.6s steps(49) both;
}
[data-theme="dark"] .ys_item:hover i {
    filter: drop-shadow(0 0 10px rgba(14, 183, 144, 0.6));
}

.ys_item i.icon1 { background-image: url(../imgs/ys_icon1.png); }
.ys_item i.icon2 { background-image: url(../imgs/ys_icon2.png); }
.ys_item i.icon3 { background-image: url(../imgs/ys_icon3.png); }
.ys_item i.icon4 { background-image: url(../imgs/ys_icon4.png); }

@-webkit-keyframes icons_anim_start {
    0% { background-position-y: 0; }
    100% { background-position-y: -6860px; }
}

@keyframes icons_anim_start {
    0% { background-position-y: 0; }
    100% { background-position-y: -6860px; }
}

@-webkit-keyframes icons_anim_end {
    0% { background-position-y: -6860px; }
    100% { background-position-y: 0; }
}

@keyframes icons_anim_end {
    0% { background-position-y: -6860px; }
    100% { background-position-y: 0; }
}

/* Mobile Media Queries for Index */
@media (max-width: 768px) {
    .banner_swiper, .banner_swiper img {
        height: 200px;
    }
    
    .index_wrap.bg1, .index_wrap.bg3, .index_wrap.bg4, .index_wrap.bg5 {
        min-height: auto;
        padding: 30px 0;
    }
    
    .dt_ul, .dj_ul, .news_ul, .ys_ul {
        width: 100%;
        justify-content: center;
    }
    
    .dt_item, .dj_item, .news_item, .ys_item {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        height: auto;
    }

    .dt_item {
        padding-bottom: 20px;
    }
    
    .common_title {
        padding: 40px 0 20px 0;
    }
    
    .common_title h2 {
        font-size: 24px;
    }
}

/* Added for new section layout */
.dt_section {
    width: 100%;
    padding: 50px 0;
    background: var(--bg-color);
}
.dt_title {
    text-align: center;
    margin-bottom: 30px;
}
.dt_title h2 {
    font-size: 30px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}
.dt_title p {
    font-size: 14px;
    color: var(--text-color-secondary);
}

/* Fix for PC Grid Layout (4 items per row) in new section */
/* Override default w12 padding to allow full 1200px width for 4 items */
.dt_content .w12 {
    width: 1200px !important;
    padding: 0 !important;
    max-width: 1200px !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Ensure dt_item behaves correctly in the new flex container */
.dt_content .dt_item {
    margin-right: 24px;
    margin-bottom: 24px;
    /* Reuse styles from .dt_item above */
}

.dt_content .dt_item:nth-child(4n) {
    margin-right: 0;
}

/* Mobile adjustments for the new section */
@media (max-width: 768px) {
    .dt_content .w12 {
        width: 100% !important; /* Reset width for mobile */
        padding: 0 10px !important; /* Restore padding for mobile */
        justify-content: center;
    }
    .dt_content .dt_item {
        margin-right: 0;
        width: 100%; /* Full width on mobile */
    }
}
