/* ==================== 基础重置与变量 ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #B22222;
    --dark-red: #8B1A1A;
    --darker-red: #6B0F0F;
    --nav-bg: rgba(0, 0, 0, 0.75);
    --nav-active-bg: #B22222;
    --text-dark: #333;
    --text-light: #fff;
    --text-muted: #999;
    --panel-bg: #f5f0eb;
    --transition-fast: 0.25s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: #1a1a1a;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==================== 导航栏 ==================== */
.main-nav {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-container {
    display: inline-flex;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    height: 60px;
    pointer-events: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    gap: 0;
}

.nav-item {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.nav-item:first-child {
    border-radius: 10px 0 0 10px;
}
.nav-item:last-child {
    border-radius: 0 10px 10px 0;
}

.nav-item a {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #1a1a1a 0%, #555555 100%);
    transition: background var(--transition-fast);
}

/* 菜单之间的分割线 */
.nav-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
}

.nav-item:last-child::after {
    display: none;
}

/* 导航文字层叠效果 */
.nav-text {
    display: block;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: transform var(--transition-medium), opacity var(--transition-medium);
}

.nav-text.zh {
    color: var(--text-light);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 150%);
    opacity: 0;
}

.nav-text.en {
    color: var(--text-light);
    position: relative;
    font-size: 12px;
    font-weight: 600;
}

/* 导航悬停/激活效果 - 使用对应的彩色背景图片 */
.nav-item:nth-child(1):hover a,
.nav-item:nth-child(1).active a {
    background-image: url('../assets/images/color/1-home-04.jpg');
}
.nav-item:nth-child(2):hover a,
.nav-item:nth-child(2).active a {
    background-image: url('../assets/images/color/2-about-02.jpg');
}
.nav-item:nth-child(3):hover a,
.nav-item:nth-child(3).active a {
    background-image: url('../assets/images/color/3-services-01.jpg');
}
.nav-item:nth-child(5):hover a,
.nav-item:nth-child(5).active a {
    background-image: url('../assets/images/color/4-cases-01.jpg');
}
.nav-item:nth-child(6):hover a,
.nav-item:nth-child(6).active a {
    background-image: url('../assets/images/color/5-news-02.jpg');
}
.nav-item:nth-child(7):hover a,
.nav-item:nth-child(7).active a {
    background-image: url('../assets/images/color/6-contact-02.jpg');
}

/* 通用背景图样式 */
.nav-item:hover a,
.nav-item.active a {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: overlay;
}

.nav-item:hover .nav-text.en,
.nav-item.active .nav-text.en {
    transform: translateY(-150%);
    opacity: 0;
}

.nav-item:hover .nav-text.zh,
.nav-item.active .nav-text.zh {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* Logo */
.nav-logo {
    margin:0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0;
    position: relative;
    z-index: 10;
    overflow: visible;
    cursor: pointer;
}

/* Logo 悬停/点击切换 - 默认中文 logo，悬停显示英文 logo
   两层同时交叉淡入淡出，无缩放/位移，避免出现忽闪和跳动 */
.nav-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100px;
    width: 100%;
    transform: translate(-50%, -50%);
    opacity: 0;
    background: url('../assets/images/color/logo.png') center / contain no-repeat;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                filter var(--transition-fast);
}

.nav-logo:hover .logo-img,
.nav-logo.logo-switched .logo-img {
    opacity: 0;
}

.nav-logo:hover::after,
.nav-logo.logo-switched::after {
    opacity: 1;
    filter: drop-shadow(0 4px 16px rgba(178, 34, 34, 0.8));
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(178, 34, 34, 0.5);
    transition: text-shadow var(--transition-fast);
}

.nav-logo:hover .logo-text {
    text-shadow: 0 0 20px rgba(178, 34, 34, 0.8), 0 0 40px rgba(178, 34, 34, 0.4);
}

.logo-img {
    height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                filter var(--transition-fast);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 4px 16px rgba(178, 34, 34, 0.8));
}

.logo-img1 {
    height: 220px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: filter var(--transition-fast);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.logo-img2 {
    height: 340px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: filter var(--transition-fast);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.logo-img3{
    height: 340px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: filter var(--transition-fast);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .nav-logo::after {
        height: 60px;
    }

    .logo-img {
        height: 60px;
    }
}

/* ==================== 通用区块 ==================== */
.section {
    width: 100%;
    position: relative;
}

/* ==================== 首页 ==================== */
.home-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: url('../assets/images/color/1-home-01.png') center / cover no-repeat #e8e4df;
    display: flex;
    flex-direction: column;
}

.city-map-wrapper {
    flex: 1;
    position: relative;
    min-height: 0;
    padding: 10px 20px 0;
}

.city-map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
}

.city-map-container.grabbing {
    cursor: grabbing;
}

/* 可拖拽内部容器（高度由灰度图片自然撑开） */
.city-map-inner {
    position: relative;
    width: 100%;
    will-change: transform;
}

/* 灰度底图（相对定位，撑开inner高度） */
.city-base {
    position: relative;
    width: 100%;
    z-index: 1;
    font-size: 0; /* 消除图片底部间隙 */
}

.city-base img {
    width: 100%;
    height: auto;
    display: block;
}

/* 彩色覆盖层容器 */
.color-overlays {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    filter: drop-shadow(0 0 0px rgba(255, 255, 200, 0));
    transition:
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: normal;
}

.color-overlay.active {
    opacity: 1;
    filter:
        drop-shadow(0 0 12px rgba(255, 255, 200, 0.6))
        drop-shadow(0 0 24px rgba(255, 255, 150, 0.3))
        brightness(1.15);
}

/* SVG 不规则热点区域 */
.hotspots-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

.hotspot-poly {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0.3;
    transition: fill 0.25s ease, stroke 0.25s ease;
    cursor: pointer;

    /*fill: rgba(178, 34, 34, 0.08);*/
    /*stroke: rgba(178, 34, 34, 0.4);*/
}

/* 浮动提示框 */
.poly-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
    transform: translate(-50%, -100%);
    margin-top: -12px;
}

.poly-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
}

.poly-tooltip .tooltip-zh {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.poly-tooltip .tooltip-en {
    display: block;
    font-size: 11px;
    color: #ccc;
    letter-spacing: 1px;
}

.poly-tooltip.visible {
    opacity: 1;
}

/* 首页底部 - 悬浮/点击效果 */
.home-footer-img {
    width: 400px;
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* 底部图片悬停/点击时显示的中文操作提示（红色气泡背景图） */
.home-footer-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    line-height: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    background: url('../assets/images/color/1-home-01.png') center / 100% 100% no-repeat;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 鼠标放上去：原图淡出，中文提示淡入 */
.home-footer-img:hover,
.home-footer-img.hint-active {
    opacity: 0;
}

.home-footer-img:hover + .home-footer-hint,
.home-footer-img.hint-active + .home-footer-hint {
    opacity: 1;
    visibility: visible;
}

.home-footer {
    height: 50px;
    line-height: 50px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);;
    z-index: 10;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    font-size: 16px;
    color: #fff;
}

.ticker-container {
    display: flex;
    position: relative;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    width: 280px;
    /*background-image: url('../assets/images/color/1-home-02.png');*/
    /*background-size: cover;*/
    /*background-position: center;*/
    /*background-repeat: no-repeat;*/
    background-color: var(--primary-red);
    font-weight: 700;
    letter-spacing: 2px;
    padding-left: 20px;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
}

.ticker-text {
    position: relative;
    flex: 1;
    background: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: -1;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    line-height: 50px;
    animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
    padding-right: 60px;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ==================== 内容区块通用样式 ==================== */
.content-section {
    flex: 1;
    min-width: 0;
    background-color: #7E1C0B;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center -200px;
}

.section-body {
    padding: 0 40px 60px;
    max-width: 1200px;
    margin: 250px auto 0;
    /*position: absolute;*/
    /*top: 250px;*/
    /*left: 50%;*/
    /*transform: translate(-50%, 0);*/
}

.content-panel {
    background: var(--panel-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

/* 子标签页 - 原型图样式 */
.sub-tabs {
    display: flex;
    background: #444;
    overflow-x: auto;
}

.sub-tab {
    display: flex;
    align-items: center;
    gap: 0;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
    background: #444;
    transition: background 0.15s ease;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%, 30px 50%);
    margin-left: -30px;
    padding-left: 30px;
}

.sub-tab:first-child {
    clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
    margin-left: 0;
    padding-left: 0;

    .tab-text.ch {
        padding-left: 5px;
    }
}

/* 数字部分 */
/*.sub-tab::before {
    content: attr(data-num);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 42px;
    background: #555;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    transition: background 0.15s ease;
    padding: 0 8px;
}*/

/* 文字部分 */
.tab-text {
    display: inline-flex;
    align-items: center;
    height: 42px;
    /*padding: 0 16px;*/
    padding-left: 20px;
    position: relative;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* 中英文切换 - 中文文字默认隐藏在下方 */
.switch-lang .tab-text:not(.en) {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(150%);
    opacity: 0;
}

/* 中英文切换 - 英文文字默认可见 */
.switch-lang .tab-text.en {
    white-space: nowrap;
}

.tab-text.ch {
    padding-left: 35px;
}

/* 右侧三角形箭头 */
/*.sub-tab .tab-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
    border-left: 10px solid #555;
    transition: border-left-color 0.15s ease;
}*/

/* 激活状态 - 红色背景 */
.sub-tab.active {
    background: var(--primary-red);
    color: #fff;
}

.sub-tab.active::before {
    background: var(--primary-red);
}

.sub-tab.active .tab-text::after {
    border-left-color: var(--primary-red);
}

/* 非激活hover */
.sub-tab:hover:not(.active) {
    background: #666;
}

.sub-tab:hover:not(.active)::before {
    background: #666;
}

.sub-tab:hover:not(.active) .tab-text::after {
    border-left-color: #666;
}

/* ==================== 关于页面：sub-tabs 背景图替换 ==================== */
/* 仅作用于 #about 页面，保留原始标签样式，仅将背景色替换为对应图片 */
#about .sub-tab {
    /*background: url('../assets/images/color/2-about-04.png') no-repeat center / cover;*/
    background-color: #444444;
    width: 230px;
}

/*#about .sub-tab::before {
    background: transparent;
}

#about .sub-tab .tab-text::after {
    border-left-color: rgba(0, 0, 0, 0.12);
}*/

/* 选中状态：红色背景图 2-about-03.png */
#about .sub-tab.active {
    /*background-image: url('../assets/images/color/2-about-03.png');*/
    background-color: #960001;
}

/*#about .sub-tab.active::before {
    background: transparent;
}

#about .sub-tab.active .tab-text::after {
    border-left-color: rgba(0, 0, 0, 0.12);
}*/

/* hover 未选中：保持灰色背景图 */
#about .sub-tab:hover:not(.active) {
    /*background-image: url('../assets/images/color/2-about-04.png');*/
}

/*#about .sub-tab:hover:not(.active)::before {
    background: transparent;
}

#about .sub-tab:hover:not(.active) .tab-text::after {
    border-left-color: rgba(0, 0, 0, 0.12);
}*/

#about .tab-index {
    padding-left: 20px;
    font-size: 24px;
    font-weight: bolder;
    color: #FFF;
}

/* ==================== 关于页面：项目足迹 4列列表 ==================== */
#about .project-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 32px;
    padding: 30px 20px;
    background: #fff;
}

#about .project-list .project-col {
    list-style: none;
    padding: 0;
    margin: 0;
}

#about .project-list .project-col li {
    padding: 7px 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    border-bottom: 1px dashed #e8e3dd;
    position: relative;
    padding-left: 18px;
    transition: color 0.2s ease;
}

#about .project-list .project-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    transform: rotate(45deg);
}

#about .project-list .project-col li:hover {
    color: var(--primary-red);
}

#about .project-list .project-col li:last-child {
    border-bottom: none;
}

/* 小屏响应：2列 */
@media (max-width: 1024px) {
    #about .project-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 移动端响应：单列 */
@media (max-width: 640px) {
    #about .project-list {
        grid-template-columns: 1fr;
    }
}

/* 关于页 - 合作伙伴 logo 网格（3行：7+6+7，对应原图布局） */
#about .partner-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px 20px;
    background: #fff;
    margin-top: 20px;
}
#about .partner-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
}
#about .partner-row-6 {
    grid-template-columns: repeat(6, 1fr);
}
#about .partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e6e0d6;
    height: 86px;
    padding: 10px 14px;
}
#about .partner-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 1024px) {
    #about .partner-row,
    #about .partner-row-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 640px) {
    #about .partner-row,
    #about .partner-row-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 中英文切换动画 - 英文上移消失，中文上滑出现 */
.switch-lang .sub-tab:hover .tab-text.en,
.switch-lang .sub-tab.active .tab-text.en {
    transform: translateY(-150%);
    opacity: 0;
}

.switch-lang .sub-tab:hover .tab-text:not(.en),
.switch-lang .sub-tab.active .tab-text:not(.en) {
    transform: translateY(-50%);
    opacity: 1;
}

/* 标签内容 */
.tab-content {
    display: none;
    padding: 40px;
}

.tab-content.active {
    display: block;
}

#about .content-panel {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

#about .sub-tabs {
    margin: 0 71px 0 51px;
}

#services .content-panel {
    background: url(../assets/images/color/3-services-02.png) no-repeat center top;
    background-size: cover;
    background-position: center top;
    border-radius: 0;
    overflow: hidden;
    padding: 50px 0 30px;
    box-shadow: none;
    min-height: 900px;
    margin-top: 0;
}

#services .sub-tabs {
    background: transparent;
    margin: 0;
    padding: 17px 20px;
    position: relative;
    z-index: 2;
    max-width: 100%;
    box-sizing: border-box;
}

#services .sub-tab {
    background: transparent;
    flex-shrink: 1;
    min-width: 0;
}

#services .sub-tab::before {
    background: transparent;
}

#services .sub-tab .tab-text::after {
    border-left-color: #555;
}

/* 服务页 sub-tab 背景图：3-services-04.png 未选中，3-services-05.png 选中 */
#services .sub-tab {
    background-image: url(../assets/images/color/3-services-05.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #444;
}

#services .sub-tab.active {
    background-image: url(../assets/images/color/3-services-04.png);
    background-color: var(--primary-red);
}

#services .sub-tab:hover:not(.active) {
    background-image: url(../assets/images/color/3-services-05.png);
}

#services .tab-content {
    background: transparent;
    padding: 20px 80px 20px 40px;
    position: relative;
    z-index: 1;
    color: #333;
}

#about .tab-content.active {
    background-image: url(../assets/images/color/book.png);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding-left: 120px;
    padding-right: 120px;
    height: 903px;
}

.content-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    margin-left: 30px;
}
.content-text {
    font-size: 14px;
    line-height: 2;
    color: #555;
    margin-bottom: 30px;
}

.content-text .highlight {
    font-size: 16px;
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 12px;
}

.content-text p {
    margin-bottom: 9px;
    text-align: justify;
}

.content-text .signature {
    text-align: right;
    color: var(--primary-red);
    font-weight: 500;
    margin-top: 20px;
}

.content-en {
    margin-top: 24px;
}

.content-en h3 {
    font-size: 18px;
    color: #666;
    margin-bottom: 16px;
    font-weight: 400;
}

.content-en p {
    font-size: 13px;
    line-height: 1.8;
    color: #888;
    margin-bottom: 10px;
    text-align: justify;
}

.content-en .signature-en {
    text-align: right;
    color: #999;
    font-style: italic;
    margin-top: 16px;
}

/* ==================== 服务页面 ==================== */
.service-layout {
    display: grid;
    grid-template-columns: 140px 1fr 220px;
    gap: 0;
    min-height: 500px;
}

.service-categories {
    background: #f0ebe5;
    border-right: 1px solid #e0d9d1;
    padding: 20px 0;
}

.service-cat {
    display: block;
    padding: 12px 20px;
    font-size: 13px;
    color: #666;
    border-left: 3px solid transparent;
    transition: all var(--transition-fast);
}

.service-cat.active,
.service-cat:hover {
    background: #fff;
    color: var(--primary-red);
    border-left-color: var(--primary-red);
    font-weight: 500;
}

.service-desc {
    padding: 30px;
    background: #fff;
}

.service-desc p {
    font-size: 14px;
    line-height: 2;
    color: #555;
    text-indent: 2em;
    margin-bottom: 20px;
}

.service-image {
    text-align: center;
    margin-top: 20px;
}

.service-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.service-list {
    background: #faf8f6;
    border-left: 1px solid #e0d9d1;
    padding: 24px 20px;
}

.service-list h3 {
    font-size: 16px;
    color: var(--primary-red);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0d9d1;
}

.service-list li {
    padding: 10px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px dashed #e0d9d1;
    transition: color var(--transition-fast);
}

.service-list li:hover {
    color: var(--primary-red);
}

.service-list .num {
    color: var(--primary-red);
    font-weight: 700;
    margin-right: 6px;
    font-size: 14px;
}

/* 服务页面顶部项目类别选择 */
.service-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: transparent;
    border-bottom: 1px solid rgba(180, 30, 30, 0.3);
    padding: 0 30px;
}

.service-cat-tabs .service-cat {
    display: inline-flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    color: #666;
    border-left: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.service-cat-tabs .service-cat:hover {
    color: var(--primary-red);
    background: transparent;
    border-bottom-color: rgba(178, 34, 34, 0.3);
}

.service-cat-tabs .service-cat.active {
    color: var(--primary-red);
    background: transparent;
    border-bottom-color: var(--primary-red);
    font-weight: 600;
}

/* 服务页面左右布局 */
.service-detail-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
    min-height: 480px;
}

.service-left {
    padding: 30px;
    border-right: 1px dashed #d0c9c1;
}

.service-desc-text {
    font-size: 14px;
    line-height: 2;
    color: #555;
    text-indent: 2em;
    margin-bottom: 24px;
    text-align: justify;
}

.service-image {
    text-align: center;
    margin-top: 20px;
}

.service-right {
    background: #faf8f6;
    padding: 28px 24px;
}

.service-right h3 {
    font-size: 18px;
    color: var(--primary-red);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0d9d1;
    font-weight: 600;
}

.service-items-list {
    list-style: none;
}

.service-items-list li {
    padding: 11px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dashed #e0d9d1;
    transition: color var(--transition-fast);
}

.service-items-list li:last-child {
    border-bottom: none;
}

.service-items-list li:hover {
    color: var(--primary-red);
}

.service-items-list .num {
    color: var(--primary-red);
    font-weight: 700;
    margin-right: 8px;
    font-size: 14px;
}

/* 合作流程 */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.process-stage {
    flex: 1;
    min-width: 180px;
    max-width: 260px;
    background: #fff;
    border: 1px solid #e8e4df;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.stage-header {
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: #5cb8b8;
}

.stage-business .stage-header {
    background: #666;
}

.stage-design .stage-header {
    background: #5cb8b8;
}

.stage-construction .stage-header {
    background: #7fb069;
}

.stage-list {
    list-style: none;
    padding: 18px 16px;
}

.stage-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: #555;
    border-bottom: 1px dashed #e8e4df;
}

.stage-list li:last-child {
    border-bottom: none;
}

.stage-list .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #b5b5b5;
    border-radius: 50%;
    flex-shrink: 0;
}

.process-arrow {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #d5d5d5;
    padding: 11px 2px 0 2px;
    align-self: flex-start;
    font-weight: 300;
}

/* 服务网格卡片 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
    background: #fff;
}

.service-card {
    background: #faf8f6;
    border: 1px solid #e0d9d1;
    padding: 20px;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.service-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-card h3 {
    font-size: 16px;
    color: var(--primary-red);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0d9d1;
    font-weight: 600;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 8px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px dashed #e0d9d1;
    transition: color var(--transition-fast);
}

.service-card li:last-child {
    border-bottom: none;
}

.service-card li:hover {
    color: var(--primary-red);
}

.service-card .num {
    color: var(--primary-red);
    font-weight: 700;
    margin-right: 8px;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-flow {
        flex-wrap: wrap;
    }

    .process-stage {
        min-width: 180px;
        max-width: calc(50% - 20px);
    }

    .process-arrow {
        display: none;
    }
}

@media (max-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .process-stage {
        max-width: 320px;
        width: 100%;
    }
}

/* ==================== 案例页面 ==================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 30px;
}

.case-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.case-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-medium);
}

.case-card:hover .case-img {
    transform: scale(1.05);
}

.case-info {
    padding: 16px;
}

/* ==================== 新闻中心页：参照服务页承载背景图 ==================== */
#news .content-panel {
    background: url(../assets/images/color/5-news-04.png) no-repeat center top;
    background-size: cover;
    background-position: center top;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin-top: 0;
    padding: 50px 0 60px;
    min-height: 1400px;
}
#news .sub-tabs {
    background: transparent;
    margin: 0;
    padding: 14px 44px;
    position: relative;
    z-index: 2;
    max-width: 100%;
    box-sizing: border-box;
}
#news .sub-tab {
    flex-shrink: 1;
    min-width: 0;
    background-image: url(../assets/images/color/3-services-05.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #444;
}
#news .sub-tab.active {
    background-image: url(../assets/images/color/3-services-04.png);
    background-color: var(--primary-red);
}
#news .sub-tab:hover:not(.active) {
    background-image: url(../assets/images/color/3-services-05.png);
}
#news .tab-content {
    background: transparent;
    padding: 20px 120px 30px;
    position: relative;
    z-index: 1;
    color: #333;
}

/* ==================== 联系我们页：参照服务页承载背景图 ==================== */
#contact .content-panel {
    background: url(../assets/images/color/6-contact-01.png) no-repeat center top;
    background-size: cover;
    background-position: center top;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin-top: 0;
    padding: 50px 0 30px;
    /* 固定高度：sub-tabs padding 增大不会撑大整个页面 */
    height: 900px;
    display: flex;
    flex-direction: column;
}
#contact .sub-tabs {
    background: transparent;
    margin: 0;
    padding: 16px 38px;
    position: relative;
    z-index: 2;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
#contact .sub-tab {
    flex-shrink: 1;
    min-width: 0;
    background-image: url(../assets/images/color/3-services-05.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #444;
}
#contact .sub-tab.active {
    background-image: url(../assets/images/color/3-services-04.png);
    background-color: var(--primary-red);
}
#contact .sub-tab:hover:not(.active) {
    background-image: url(../assets/images/color/3-services-05.png);
}
#contact .tab-content {
    background: transparent;
    padding: 0 140px 0 40px;
    position: relative;
    z-index: 1;
    color: #333;
    /* 在固定高度容器内填充剩余空间，调 padding 不撑大整体 */
    flex: 1;
}

/* ==================== 服务/新闻/联系我们 sub-tab 数字（参照关于页） ==================== */
#services .sub-tab::before,
#news .sub-tab::before,
#contact .sub-tab::before {
    content: attr(data-num);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    background: transparent;
}

/* 选中/hover 时清除默认的方块背景（与服务/新闻/联系 sub-tab 整体融为一体） */
#services .sub-tab.active::before,
#news .sub-tab.active::before,
#contact .sub-tab.active::before,
#services .sub-tab:hover:not(.active)::before,
#news .sub-tab:hover:not(.active)::before,
#contact .sub-tab:hover:not(.active)::before {
    background: transparent;
}
#services .sub-tab .tab-text,
#news .sub-tab .tab-text,
#contact .sub-tab .tab-text {
    padding-left: 12px;
}

/* ==================== 案例页：左侧导航 + 右侧 2 列图片网格 ==================== */
#cases .section-body {
    /* 继承通用 .section-body 的 margin-top:250px，与服务页对齐 */
}
#cases .content-panel {
    background: url(../assets/images/color/4-cases-02.png) no-repeat center top;
    background-size: 100% 100%;
    background-position: center top;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin-top: 0;
    padding: 50px 0 60px;
    min-height: 700px;
}
#cases .cases-layout {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 80px;
}
#cases .cases-sidebar {
    flex: 0 0 200px;
    padding: 20px 0 20px 30px;
    border-right: 1px dashed #c5bcb0;
    margin-right: 30px;
}
#cases .cases-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    letter-spacing: 4px;
}
#cases .cases-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}
#cases .cases-cat {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: center;
    user-select: none;
}
#cases .cases-cat:hover {
    color: var(--primary-red);
}
#cases .cases-cat.active {
    color: var(--primary-red);
    font-weight: 600;
}
#cases .cases-content {
    flex: 1;
    min-width: 0;
    height: 700px;
    overflow-y: auto;
}
#cases .cases-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 18px;
}
#cases .cases-grid.active {
    display: grid;
}
#cases .cases-grid .case-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
    cursor: pointer;
    height: 250px;
    display: flex;
    flex-direction: column;
}
#cases .cases-grid .case-name {
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: #555;
    background: transparent;
    margin-top: auto;
}
#cases .cases-grid .case-card:hover {
    transform: none;
    box-shadow: none;
}
#cases .cases-grid .case-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #eee;
    border-radius: 0;
    transition: none;
    flex-shrink: 0;
}
#cases .cases-grid .case-card:hover .case-img {
    transform: none;
}
#cases .cases-grid .case-img[data-img="land"] {
    background-image: url('../assets/images/color/land-park.png');
}
#cases .cases-grid .case-img[data-img="water"] {
    background-image: url('../assets/images/color/water-park.png');
}
#cases .cases-grid .case-img[data-img="indoor"] {
    background-image: url('../assets/images/color/indoor-park.png');
}

/* ==================== 案例详情弹框 ==================== */
.case-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.case-modal.active {
    display: flex;
}
.case-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}
.case-modal-dialog {
    position: relative;
    width: min(1080px, 92vw);
    max-height: 90vh;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.case-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    z-index: 2;
}
.case-modal-close:hover {
    color: #000;
}
.case-detail {
    padding: 28px 36px 24px;
    overflow-y: auto;
}
.case-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: 2px;
}
.case-detail-desc {
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    text-align: justify;
    margin: 0 0 18px;
}
.case-detail-viewer {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111 center / cover no-repeat;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}
.case-detail-main {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
}
.case-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}
.case-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}
.case-arrow-prev { left: 12px; }
.case-arrow-next { right: 12px; }
.case-detail-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.case-thumb {
    height: 72px;
    background: #eee center / cover no-repeat;
    border: 2px solid transparent;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}
.case-thumb:hover {
    opacity: 1;
}
.case-thumb.active {
    border-color: var(--primary-red, #b41e1e);
    opacity: 1;
}
@media (max-width: 900px) {
    #cases .cases-layout {
        flex-direction: column;
    }
    #cases .cases-sidebar {
        flex: none;
        border-right: none;
        border-bottom: 1px dashed #c5bcb0;
        margin-right: 0;
        padding: 20px 0;
    }
    #cases .cases-grid {
        grid-template-columns: 1fr;
    }
}

.case-info h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.case-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==================== 新闻页面 ==================== */
.news-list {
    padding: 30px;
}

.news-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e8e3dd;
    transition: background var(--transition-fast);
}

.news-item:hover {
    background: rgba(178, 34, 34, 0.02);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 10px;
    background: var(--primary-red);
    color: #fff;
    border-radius: 4px;
    text-align: center;
}

.news-date .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.news-date .month {
    font-size: 11px;
    opacity: 0.9;
    margin-top: 4px;
}

.news-content h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.news-item:hover .news-content h4 {
    color: var(--primary-red);
}

.news-content p {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
}

/* ==================== 联系页面 ==================== */
/* 与新闻/服务页一致：内容自然排布，不靠 flex 撑高 */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    position: relative;
    background: transparent;
}

.contact-address {
    padding: 0 30px;
}

.contact-info {
    padding: 0 15px;
    background: transparent;
    border-left: 1px dashed #c8c2b8;
    width: 280px;
}

.contact-title {
    font-size: 18px;
    color: #FE6602;
    margin-bottom: 20px;
    font-weight: 600;
}

.title-en {
    font-size: 18px;
    color: #FE6602;
    font-weight: 600;
    margin-left: 4px;
}

.address-zh {
    font-size: 18px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.6;
    font-weight: 500;
}

.address-en {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 500;
}

.map-container {
    border-radius: 0;
    overflow: hidden;
    border: none;
    height: 320px;
    background: #e8e4df;
}

.real-map {
    width: 100%;
    height: 100%;
}

.map-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e4df 0%, #d4cec7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
}

.map-fallback p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.map-fallback-addr {
    color: var(--primary-red);
    font-weight: 600;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e4df 0%, #d4cec7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
}

.map-pin {
    font-size: 36px;
    color: var(--primary-red);
    animation: bounce 2s ease infinite;
}

.map-placeholder p {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 0;
    border-bottom: none;
    text-align: center;
}

.contact-icon,
.contact-icon-img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    position: relative;
    object-fit: contain;
    display: block;
}

.contact-value {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
}

.contact-label {
    font-size: 18px;
    color: #333;
    margin-top: 6px;
    font-weight: 500;
}

/* ==================== 页脚 ==================== */
.main-footer {
    background: #1a1a1a;
    padding: 30px;
    text-align: center;
    border-top: 2px solid var(--dark-red);
    flex-shrink: 0;
}

.footer-content p {
    color: #666;
    font-size: 12px;
    margin: 4px 0;
}

/* ==================== 滚动到顶部按钮 ==================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(178, 34, 34, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .service-layout {
        grid-template-columns: 120px 1fr 200px;
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-address {
        border-right: none;
        border-bottom: 1px solid #e8e3dd;
    }
}

/* Mobile nav toggle button */
.nav-toggle {
    display: none;
    position: fixed;
    right: 12px;
    top: 6px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    margin: 4px auto;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        width: 100%;
        border-radius: 0;
    }

    .nav-menu {
        flex-direction: column;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        width: 100%;
    }

    .nav-menu.mobile-open {
        height: auto;
        min-height: 320px;
    }

    .nav-item a {
        padding: 12px 16px;
        height: 48px;
        width: 100%;
    }

    .nav-logo {
        order: -1;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 6px 0;
    }

    .nav-logo {
        height: auto;
        padding: 6px 0;
    }

    .city-map-container {
        max-width: 100%;
        height: auto;
        max-height: 50vh;
    }

    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-categories {
        display: flex;
        flex-wrap: wrap;
        border-right: none;
        border-bottom: 1px solid #e0d9d1;
        padding: 10px;
    }

    .service-cat {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 8px 14px;
    }

    .service-cat.active,
    .service-cat:hover {
        border-left-color: transparent;
        border-bottom-color: var(--primary-red);
    }

    .service-list {
        border-left: none;
        border-top: 1px solid #e0d9d1;
    }

    .service-detail-layout {
        grid-template-columns: 1fr;
    }

    .service-left {
        border-right: none;
        border-bottom: 1px dashed #d0c9c1;
        padding: 24px;
    }

    .service-right {
        padding: 24px;
    }

    .service-cat-tabs {
        padding: 0 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .service-cat-tabs .service-cat {
        padding: 12px 14px;
        font-size: 13px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .section-body {
        padding: 0 20px 40px;
    }

    .tab-content {
        padding: 24px;
    }

    #about .tab-content.active,
    #about .sub-tabs {
        padding-left: 30px;
        padding-right: 30px;
    }

    .news-item {
        flex-direction: column;
        gap: 12px;
    }

    .news-date {
        flex-direction: row;
        gap: 8px;
        align-self: flex-start;
        padding: 6px 14px;
    }

    .news-date .day {
        font-size: 18px;
    }
}

/* ==================== 加载动画 ==================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    z-index: 10000;
    transition: opacity 0.4s ease;
    opacity: 1;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: none;
}
