/* ================================================================
   style.css  锐途科技 - 首页专用样式
   说明：公共样式（CSS 变量、body、新闻中心、底部信息、动画）
        已提取到 common.css，请在页面中同时引入 common.css。
   ================================================================ */

/* ========== 顶部导航栏（首页：透明背景，浮于 Banner 之上） ========== */
.navbar-custom {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: transparent;
    border-bottom: none;
    backdrop-filter: blur(2px);
}
.navbar-custom .container { max-width: 1610px; }
.navbar-custom .logo {
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
}
.navbar-custom .logo span { color: var(--accent-color); }
.navbar-custom .nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
    justify-content: center;
}
.navbar-custom .nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    position: relative;
}
.navbar-custom .nav-menu a:hover,
.navbar-custom .nav-menu a.active {
    color: #fff;
    font-weight: bold;
}
.navbar-custom .nav-menu a.active::after,
.navbar-custom .nav-menu li:hover > a::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}
.navbar-custom .phone {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: bold;
    white-space: nowrap;
}
.navbar-custom .phone i { font-size: 20px; margin-right: 5px; color:#fff}

/* 二级下拉菜单 */
.nav-menu .has-dropdown { position: relative; }
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.75);
    min-width: 160px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 10px 0;
}
.nav-menu .has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
}
.nav-dropdown li { margin: 0; }
.nav-dropdown li a {
    display: block;
    padding: 8px 20px;
    color: #fff;
    font-size: 14px !important;
    white-space: nowrap;
    transition: background 0.3s;
}
.nav-dropdown li a:hover {
    background: rgba(255, 255, 255, 0.15);
    font-weight: normal;
}
.nav-dropdown li a::after { display: none; }

/* 导航栏滚动固定 */
.navbar-custom.scrolled {
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    animation: navSlideDown 0.3s ease;
}
@keyframes navSlideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}

/* ========== Banner ========== */
.banner {
    position: relative;
    overflow: hidden;
}
.banner .carousel-inner { width: 100%; }
.banner .carousel-item {
    width: 100%;
    aspect-ratio: 1920 / 919;
    background-size: cover;
    background-position: center;
}
.banner .banner-overlay {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 10;
}
.banner .banner-overlay h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.banner .banner-overlay p {
    font-size: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 500px;
}

/* ========== 通用 Section 标题 ========== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}
.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.section-title .subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
}
.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto;
}

/* ========== 产品中心 ========== */
.product-section { background: #fff; padding-bottom: 60px; }
.product-section .container { max-width: 1440px; }
.product-title { text-align: center; margin-bottom: 15px; padding-top: 60px; }
.product-title h2 { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.product-title h2 .accent { color: #c30d23; }
.product-title h2 .normal { color: #333; }
.product-title .slogan { font-size: 15px; color: #999; }
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.product-tabs .tab-item {
    padding: 10px 36px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    background: #f6f6f6;
    color: #666;
}
.product-tabs .tab-item.active {
    background: #c30d23;
    color: #fff;
}
.product-tabs .tab-item:hover:not(.active) {
    background: #e8e8e8;
}
.product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}
.product-card .product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    overflow: hidden;
    border: 1px solid #dcdcdc;
}
.product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.product-card:hover .product-img img {
    transform: scale(1.08);
}
.product-card .product-info { padding: 20px; text-align: center; }
.product-card .product-info h5 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.product-card .product-info p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}
.product-card .product-info a {
    color: var(--text-dark);
}

/* ========== 一站式行业解决方案 ========== */
.solution-section { background: #fff; padding-bottom: 60px; }
.solution-section .container { max-width: 1782px; }
.solution-title { text-align: center; margin-bottom: 15px; padding-top: 60px; }
.solution-title h2 { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.solution-title h2 .accent { color: #c30d23; }
.solution-title h2 .normal { color: #333; }
.solution-title .slogan { font-size: 15px; color: #999; }
.solution-layout { display: flex; flex-direction: column; gap: 10px; }
.solution-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: stretch;
}
.solution-side-left { grid-column: 1 / span 1; }
.solution-center { grid-column: 2 / span 3; }
.solution-side-right { grid-column: 5 / span 1; }
.solution-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.solution-main {
    position: relative;
    overflow: hidden;
    height: 100%;
}
.solution-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.solution-bottom {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.solution-thumb {
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
}
.solution-thumb:hover,
.solution-thumb.active {
    border-color: var(--accent-color);
    transform: scale(1.03);
}
.solution-side .solution-thumb { flex: 1; }
.solution-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 小图改为 <a> 后的重置：去下划线/链接色，保持块级布局 */
a.solution-thumb {
    text-decoration: none;
    color: inherit;
    display: block;
}
/* 中间大图淡入切换 */
#solutionMainImg {
    transition: opacity .25s ease;
}

/* ========== 选择锐途竞争优势 ========== */
.advantage-section { background: var(--bg-light); padding-bottom: 60px; }
.advantage-section .container { max-width: 1440px; padding-left: 0; padding-right: 0; }
.advantage-title { text-align: center; margin-bottom: 15px; padding-top: 60px; }
.advantage-title h2 { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.advantage-title h2 .accent { color: #c30d23; }
.advantage-title h2 .normal { color: #333; }
.advantage-title .slogan { font-size: 15px; color: #999; }
.advantage-layout {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 29px;
    margin-top: 40px;
}
.advantage-item {
    position: relative;
    cursor: pointer;
}
.advantage-item.side { width: 420px; flex-shrink: 0; }
.advantage-item.center {
    width: 542px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.advantage-item .adv-img {
    overflow: hidden;
    position: relative;
}
.advantage-item.side .adv-img { width: 420px; height: 500px; }
.advantage-item.center .adv-img { width: 542px; height: 237px; }
.advantage-item .adv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.adv-img:hover img {
    transform: scale(1.05);
}
/* 默认标题：图片内部底部 */
.advantage-item .adv-default-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px 10px;
    font-size: 18px;
    color: #fff;
    font-weight: bold;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    z-index: 2;
    transition: opacity 0.3s;
}
.adv-img:hover .adv-default-title {
    opacity: 0;
}
/* hover 遮罩层（每张图片独立触发） */
.advantage-item .adv-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 25px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 3;
}
.adv-img:hover .adv-overlay {
    transform: translateY(0);
}
.advantage-item .adv-overlay h5 {
    font-size: 18px;
    margin: 0 0 10px;
    font-weight: bold;
}
.advantage-item .adv-overlay p {
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
    opacity: 0.9;
}

/* ========== 工程案例（首页布局） ========== */
.case-section { background: #fff; padding-bottom: 60px; }
.case-section .container { max-width: 1782px; }
.case-title { text-align: center; margin-bottom: 15px; padding-top: 60px; }
.case-title h2 { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.case-title h2 .accent { color: #c30d23; }
.case-title h2 .normal { color: #333; }
.case-title .slogan { font-size: 15px; color: #999; }
.case-grid { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.case-row-top { display: flex; gap: 32px; }
.case-row-bottom { display: flex; gap: 32px; }
.case-row-top .case-item:first-child { flex: 1164; min-width: 0; }
.case-row-top .case-item:last-child { flex: 566; min-width: 0; }
.case-row-bottom .case-item { flex: 566; min-width: 0; }
.case-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}
.case-item:hover { transform: translateY(-5px); }
.case-item .case-img {
    width: 100%;
    overflow: hidden;
}
.case-row-top .case-item:first-child .case-img { aspect-ratio: 1164 / 456; }
.case-row-top .case-item:last-child .case-img,
.case-row-bottom .case-item .case-img { aspect-ratio: 566 / 456; }
.case-item .case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.case-item:hover .case-img img { transform: scale(1.05); }
.case-item .case-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    text-align: left;
}
.case-item .case-info h5 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.case-item .case-info p {
    font-size: 13px;
    margin: 0;
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 关于锐途 ========== */
.about-section { background: #fff; padding-bottom: 60px; }
.about-title { text-align: center; margin-bottom: 15px; padding-top: 60px; }
.about-title h2 { font-size: 36px; font-weight: bold; margin-bottom: 10px; }
.about-title h2 .accent { color: #c30d23; }
.about-title h2 .normal { color: #333; }
.about-title .slogan { font-size: 15px; color: #999; }

/* 中间背景图 + 白色半透明内容 */
.about-banner {
    background-image: url('../images/i_about_bg.jpg');
    background-size: cover;
    background-position: center;
    max-height: 947px;
    aspect-ratio: 1920 / 947;
    margin-top: 40px;
    display: flex;
    align-items: flex-end;
}
.about-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 90px 80px;
    background: rgba(255, 255, 255, 0.92);
}
.about-content p {
    font-size: 18px;
    line-height: 2;
    color: #333;
    margin: 0;
    text-align: justify;
    padding-left: 21px;
    position: relative;
}
.about-content p::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 5px;
    height: 17px;
    background: #c30d23;
}

/* 底部5张图片 */
.about-images {
    max-width: 1756px;
    margin: 30px auto 0;
    display: flex;
    gap: 12px;
    padding: 0 15px;
}
.about-images .about-img {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s;
}
.about-images .about-img:hover { transform: translateY(-5px); }
.about-images .about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 首页响应式 ========== */
@media (max-width: 991px) {
    .navbar-custom .nav-menu { display: none; }
    .navbar-custom .phone { font-size: 18px; }
    .banner .carousel-item { aspect-ratio: 1920 / 919; }
    .banner .banner-overlay h2 { font-size: 30px; }
    .banner .banner-overlay p { font-size: 16px; }
    .section-title h2 { font-size: 28px; }
    .advantage-layout { flex-direction: column; }
    .advantage-item:not(.center) .adv-img { height: 200px; }
    .about-stats { flex-wrap: wrap; gap: 30px; }
    .about-images { flex-wrap: wrap; }
    .about-images .about-img { min-width: 30%; }
}
@media (max-width: 767px) {
    .solution-thumbs { grid-template-columns: repeat(2, 1fr); }
    .case-row-top, .case-row-bottom { flex-direction: column; }
    .about-images { flex-direction: column; }
}
