/* ========================================
   哈茨曼科技官网 - 参考君铭网站设计风格
   ======================================== */

/* ===== CSS Variables & Reset ===== */
:root {
    --primary: #1a3a5c;
    --primary-light: #2a5a8c;
    --accent: #b8923a;
    --accent-light: #d4b056;
    --bg: #f5f6f8;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #eeeeee;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    --radius: 8px;
    --transition: all 0.3s ease;

    /* 字体变量 — 德语/英语优先，中文后备 */
    --font-sans: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-number: 'Inter', 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* sticky header 高度 */
}

/* Safari 14- 兼容：sticky 需要 -webkit- 前缀 */
@supports not (position: sticky) {
    header {
        position: -webkit-sticky;
        position: sticky;
    }
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }

@media (min-width: 576px) {
    .d-sm-block { display: block !important; }
    .d-sm-none { display: none !important; }
}
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

/* 平板端(≥768px) */
@media (min-width: 768px) {
    .col-md-6  { width: 50%; }
    .col-md-12 { width: 100%; }
}

/* 桌面端(≥992px) */
@media (min-width: 992px) {
    .col-lg-4  { width: 33.333%; }
    .col-lg-6  { width: 50%; }
    .col-lg-8  { width: 66.666%; }
}

.me-3 { margin-right: 15px; }

/* ===== 导航栏 (参考君铭：浅色背景 + 阴影) ===== */
header {
    background: #e8eef5;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    height: 80px;
}

header .container {
    height: 80px;
}

/* Logo 样式 */
.logo a {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

/* 导航菜单 */
.menu ul {
    display: flex;
    gap: 0;
}

.menu li {
    position: relative;
}

.menu li a {
    display: block;
    padding: 28px 18px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.menu li a.active,
.menu li a:hover {
    color: var(--primary);
}

.menu li a.active::after,
.menu li a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--accent);
}

/* 下拉菜单 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    z-index: 999;
}

.menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu-item a {
    padding: 12px 20px !important;
    font-size: 14px !important;
    border-bottom: 1px solid var(--border);
    display: block;
}

.sub-menu-item:last-child a {
    border-bottom: none;
}

.sub-menu-item a:hover {
    background: rgba(26,58,92,0.04);
    color: var(--primary) !important;
}

/* 语言切换 */
.lang-wrapper {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.lang-wrapper:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
}

.lang-dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 15px;
    color: var(--text-light);
    transition: var(--transition);
}

.lang-dropdown li a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* 手机菜单按钮 */
.menu-mobile {
    font-size: 24px;
    color: var(--text);
    padding: 8px;
}

.menu-mobile .menu-close { display: none; }
.menu-mobile.open .menu-icon { display: none; }
.menu-mobile.open .menu-close { display: inline; }

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 16px 0;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
    color: var(--primary);
    background: var(--bg);
}

/* ===== 全屏轮播 Banner (参考君铭) ===== */
.main-slider {
    position: relative;
    height: 374px;
    overflow: hidden;
    max-width: 1320px;
    margin: 0 auto;
    border-radius: 8px;
}

.swiper-slide {
    position: relative;
    height: 374px;
    overflow: hidden;
}

.swiper-slide-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background-size: cover;
    background-position: center;
    -webkit-animation: zoomBg 8s ease infinite alternate;
    animation: zoomBg 8s ease infinite alternate;
}

@-webkit-keyframes zoomBg {
    from { -webkit-transform: scale(1); transform: scale(1); }
    to { -webkit-transform: scale(1.08); transform: scale(1.08); }
}
@keyframes zoomBg {
    from { -webkit-transform: scale(1); transform: scale(1); }
    to { -webkit-transform: scale(1.08); transform: scale(1.08); }
}

.image-layer {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,25,35,0.65), rgba(26,58,92,0.45));
}

.image-layer-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    background: linear-gradient(to right, rgba(15,25,35,0.7) 0%, transparent 60%);
}

.swiper-slide-content {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    inset: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    z-index: 2;
}

.main-slider__content {
    color: var(--white);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-slider__content h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.main-slider__content p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    margin-bottom: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.main-slider__content .more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 1px;
    white-space: nowrap;
    width: fit-content;
}

.main-slider__content .more:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184,146,58,0.4);
}

/* Swiper 导航按钮 */
.main-slider__nav {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.swiper-button-prev,
.swiper-button-next {
    position: static;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border-radius: 4px;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--accent);
}

/* 旧版 Firefox 不支持 backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
    .swiper-button-prev,
    .swiper-button-next {
        background: rgba(255,255,255,0.35);
    }
}

.swiper-pagination {
    bottom: 40px !important;
    left: 40px !important;
    width: auto !important;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    opacity: 1;
    margin: 0 5px !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
}

/* ===== 公共标题样式 (参考君铭 .public-title) ===== */
/* 兼容旧版 Safari — 部分旧版不支持 gap 的 flex 布局，使用 margin 后备 */
@supports not (gap: 8px) {
    .about-wrapper-c > * + * { margin-left: 32px; }
    .services-grid > * { margin: 8px; }
    .adv-cards > * { margin: 6px 8px; }
    .contact-layout-3 > * { margin: 10px; }
    .detail-gallery > * { margin: 12px; }
}
.public-title {
    margin-bottom: 28px;
}

.public-title h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.public-title p {
    font-size: 13px;
    color: var(--text-lighter);
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
}

.link-section a {
    display: inline-block;
    padding: 8px 18px;
    margin: 4px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.public-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    transition: var(--transition);
}

.public-more:hover {
    color: var(--primary);
}

/* ===== 关于我们 方案C（图片缩小为左侧，紧凑布局）===== */
.about-wrapper-c {
    display: flex;
    align-items: stretch;
    gap: 32px;
    padding: 48px 0;
    background: var(--white);
}

.about-left {
    flex: 0 0 460px;
    max-width: 460px;
    border-radius: var(--radius);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.about-left img {
    width: 100%;
    height: 500px;
    min-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
}

.about-img-caption {
    text-align: center;
    font-size: 13px;
    color: var(--text-lighter);
    padding: 10px 8px 6px;
    margin: 0;
    letter-spacing: 0.5px;
    font-style: italic;
    background: var(--white);
    border-radius: 0 0 var(--radius) var(--radius);
}

.about-right-c {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-right-c h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.about-right-c .about-en {
    font-size: 14px;
    color: var(--text-lighter);
    letter-spacing: 1px;
    margin-bottom: 18px;
    font-weight: 500;
}

.about-right-c .info {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 24px;
}

.count-wrapper-c {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.count-item-c {
    min-width: 70px;
}

.count-item-c .count-text {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.count-item-c .count-text .number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-number);
}

.count-item-c .count-text .unit {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
}

.count-item-c p {
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: 4px;
}

@media (max-width: 767px) {
    .about-wrapper-c {
        flex-direction: column;
        gap: 20px;
    }
    .about-left {
        flex: none;
        max-width: 100%;
    }
    .about-left img {
        height: auto;
        min-height: 300px;
        max-height: 380px;
        object-fit: cover;
    }
}

/* 数据统计 (已被 about-wrapper-c 体系替代，count-wrapper-c / count-item-c 见上方) */
/* 通用样式 .count-text / .number / .unit 保留在 count-item-c 中使用 */

/* ===== 服务项目/产品卡片 (已废弃，现用 services-grid + project-card) ===== */

/* ===== 服务项目紧凑布局（方案B）===== */
.section-pad { padding: 40px 15px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--text); letter-spacing: 2px; margin-bottom: 6px; }
.section-sub { font-size: 14px; color: var(--text-lighter); letter-spacing: 2px; font-weight: 500; text-transform: uppercase; }
.text-center { text-align: center; }
.mb-3 { margin-bottom: 24px; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    border-color: var(--primary);
}

.service-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 16px;
    border-radius: 8px;
}

.service-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
}

.service-card p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 767px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 14px 16px; }
}

/* ===== 核心优势 (参考君铭案例展示) ===== */
.case-wrapper {
    padding: 24px 0;
    background: var(--white);
}

.adv-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.adv-cards > .col-lg-6 {
    width: calc(50% - 8px) !important;
}

.adv-card {
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius);
    height: 100%;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.adv-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.adv-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 14px;
    border-radius: 6px;
    margin: 0;
}

.adv-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.adv-card p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== 新闻中心 (已废弃，现用 case-projects-wrapper + project-card) ===== */

/* ===== 联系表单 (参考君铭留言板块) ===== */
.contact-wrapper {
    padding: 20px 0;
    background: linear-gradient(135deg, #2a5a8c 0%, #1a3a5c 100%);
}

/* .contact-content 和 .contact-form 已废弃，现用 contact-layout-3 + contact-info-box */

/* ===== Footer ===== */
/* footer 主样式见下方"简化 Footer 样式"区域 */
/* .copyriht 已废弃 — 版权信息现在直接在 <footer> 内 */

/* ===== 回到顶部浮动按钮 (参考君铭 #backTop) ===== */
#backTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

#backTop span {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#backTop span:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* .ft-tel 已废弃 */

/* ===== WOW.js 动画初始化 ===== */
.wow {
    visibility: hidden;
}

/* 减弱动画偏好：尊重 prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 991px) {
    /* .about-wrapper / .about-right 已废弃 */

    .main-slider,
    .swiper-slide {
        height: 267px;
    }

    .main-slider__content h2 {
        font-size: 26px;
    }

    .main-slider__content p {
        font-size: 15px;
    }

    .nav-pc {
        display: none;
    }

    .d-sm-none {
        display: block !important;
    }

    .public-title h3 {
        font-size: 26px;
    }

    /* .count-wrapper 已废弃 */

    #backTop {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 575px) {
    .main-slider,
    .swiper-slide {
        height: 214px;
    }

    .main-slider__content h2 {
        font-size: 20px;
    }

    .main-slider__content p {
        font-size: 13px;
    }

    /* .contact-form 已废弃 */

    .case-wrapper {
        padding: 50px 0;
    }
}

/* ===== 独立子页面样式 ===== */

/* 页面 Banner - 已废弃，现用 detail-banner-section */

/* 内容区域 */
.section-padding {
    padding: 80px 0;
}

/* 旧版 Safari 不支持 gap + flex-wrap 同时用 row-gap，这里提供 fallback */
.contact-layout-3 > div {
    margin: 10px 0;
}

.detail-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    /* 清除浮动，防止 margin 塌陷 */
    overflow: hidden;
}

.detail-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.detail-lead {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-text h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 28px 0 16px;
}

.detail-text p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* 服务流程 */
.process-list {
    margin: 24px 0;
}

.process-item {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: var(--transition);
}

.process-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.process-num {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    font-family: var(--font-number);
}

.process-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.process-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 优势列表 */
.advantage-list {
    margin: 16px 0 32px;
    padding-left: 0;
    list-style: none;
}

.advantage-list li {
    position: relative;
    padding: 12px 0 12px 28px;
    font-size: 15px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

.advantage-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* 侧边栏 */
.sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-content p i {
    color: var(--accent);
    width: 16px;
    text-align: center;
}

.btn-sidebar {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
    transition: var(--transition);
}

.btn-sidebar:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(184,146,58,0.4);
}

.sidebar-links a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.sidebar-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* 图片展示区 - 已废弃，现用 detail-gallery */

/* 响应式 */
@media (max-width: 991px) {
    /* .page-banner 已废弃 */
    
    .detail-content {
        padding: 24px;
    }
    
    .sidebar {
        position: static;
        margin-top: 32px;
    }
}

/* ============================================
   全面响应式自适应补充
   - 手机端: <768px
   - 平板端: 768px - 991px
   - 桌面端: ≥992px
   ============================================ */

/* ===== 平板端 768px - 991px ===== */
@media (max-width: 991px) {

    /* 导航 */
    .nav-pc { display: none !important; }
    .menu-mobile { display: flex !important; }
    header { height: 64px; }
    header .container { height: 64px; }

    /* Banner */
    .main-slider, .swiper-slide { height: 267px; }
    .main-slider__content h2 { font-size: 26px; letter-spacing: 1px; }
    .main-slider__content p { font-size: 14px; }
    .main-slider__content .more { padding: 6px 16px; font-size: 12px; }

    /* 关于我们 */
    /* .about-wrapper 已废弃，现用 .about-wrapper-c */

    /* 关于我们 - 紧凑版 平板适配 */
    .about-wrapper-c { flex-direction: column; gap: 16px; padding: 32px 0; }
    .about-left { flex: none; max-width: 100%; width: 100%; }
    .about-left img { height: 400px; min-height: auto; object-fit: cover; }
    .about-right-c h2 { font-size: 22px; }
    .about-right-c .info { font-size: 13px; }

    /* 服务卡片：平板2列 */
    /* .product-item 已废弃 */

    /* 核心优势卡片：平板2列（2x2布局） */
    .adv-cards > [class*="col-"] { margin-bottom: 16px; }

    /* 标题 */
    .public-title h3 { font-size: 24px; }
    .section-title { font-size: 24px; }

    /* 底部 */

}

/* ===== 手机端 <768px ===== */
@media (max-width: 767px) {

    /* Banner */
    .main-slider, .swiper-slide { height: 214px; }
    .main-slider__content h2 { font-size: 20px; letter-spacing: 0; }
    .main-slider__content p { font-size: 13px; display: none; }
    .main-slider__content .more { padding: 6px 16px; font-size: 12px; }
    .swiper-slide-content { align-items: center; padding-bottom: 0; }

    /* 服务卡片：手机1列 */
    /* .product-item 已废弃 */

    /* 核心优势：手机1列 */
    .adv-cards > .col-12 { width: 100%; margin-bottom: 12px; }

    /* 关于我们数字统计 */
    /* .count-wrapper / .count-item 已废弃，现用 .count-wrapper-c / .count-item-c */

    /* 服务标签横向滚动 */
    .link-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding-bottom: 8px;
    }
    .link-section a { white-space: nowrap; flex-shrink: 0; }

    /* section 内边距 */
    .case-wrapper { padding: 48px 0; }
    .contact-wrapper { padding: 16px 0; }
    footer { padding: 36px 0 0; }

    /* 子页面 */
    .process-item { flex-direction: column; gap: 12px; padding: 16px; }
    .process-num { width: 40px; height: 40px; font-size: 13px; }
    .detail-content { padding: 20px 16px; }
    .section-padding { padding: 40px 0; }
    .sidebar-widget { padding: 20px; }

    /* 浮动按钮 */
    #backTop { bottom: 16px; right: 16px; }
    #backTop span { width: 40px; height: 40px; font-size: 14px; }

    /* Footer */
    footer { padding: 28px 0 0; }

}

/* ===== 超小屏 <480px ===== */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .main-slider__content h2 { font-size: 16px; }
    .about-left img { max-height: 320px; }
    .adv-card { padding: 20px 16px; }
}

/* ===== 简化 Footer 样式 ===== */
footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.7);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
}

/* .footer-simple / .footer-brand / .footer-contact 已废弃 — 现用简化 footer 结构 */
/* footer 内直接放 <div class="container"><p>Copyright...</p></div> */

/* Logo 旁文字样式 */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}
.logo-sub {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.3px;
}
@media (max-width: 767px) {
    .logo-name { font-size: 13px; }
    .logo-sub { font-size: 9px; }
}

/* 联系区域左右布局 (旧版 .contact-layout 已废弃，现用 .contact-layout-3) */

.contact-right {
    flex: 0 0 320px;
}

.contact-info-box {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
}

.contact-info-box h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.contact-info-box p {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.contact-info-box p i {
    color: var(--accent);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 3px;
}

/* .contact-form-vertical 已废弃 */

/* 联系区域左侧标题白色 */

/* 三列联系布局（三张卡片） */
.contact-layout-3 {
    gap: 20px;
    flex-wrap: wrap;
}

.contact-layout-3 > div {
    display: flex;
    flex: 1 1 400px;
    min-width: 330px;
}

.contact-layout-3 .contact-info-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-layout-3 .contact-info-box p:last-child {
    margin-top: auto;
}

/* 手机端：单列 */
@media (max-width: 767px) {
    .contact-layout-3 {
        flex-direction: column !important;
        gap: 16px;
    }
    .contact-layout-3 > div {
        flex-basis: 100%;
        width: 100%;
    }
}

/* 平板端：两列 */
@media (max-width: 991px) and (min-width: 768px) {
    .contact-layout-3 > div {
        flex-basis: calc(50% - 10px);
        min-width: 0;
    }
}

/* ===== 成功案例和项目 ===== */
.case-projects-wrapper {
    padding: 24px 0 60px;
    background: var(--bg);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
}

.projects-grid {
    gap: 24px 16px;
}

/* 固定 3 列：桌面3列、平板2列、手机1列 */
.projects-grid > [class*="col-"] {
    flex: 0 0 calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

.project-img {
    overflow: hidden;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.08);
}

.project-info {
    padding: 20px 22px 24px;
}

.project-tag {
    display: inline-block;
    background: var(--bg);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.project-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.project-info p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

@media (max-width: 991px) {
    .projects-grid > [class*="col-"] {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

@media (max-width: 767px) {
    .case-projects-wrapper { padding: 16px 0 40px; }
    .project-img { height: 220px; }
    .projects-grid > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ===== 卡片链接包裹器 ===== */
.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.project-card-link:hover {
    color: inherit;
}

/* ===== 案例详情页 ===== */

/* 面包屑 */
.breadcrumb-plain {
    font-size: 13px;
    color: var(--text-lighter);
    padding: 12px 0;
}
.breadcrumb-plain a {
    color: var(--text-light);
}
.breadcrumb-plain a:hover {
    color: var(--primary);
}

/* 案例横幅图片（容器内） */
.detail-banner-section {
    padding: 8px 0 40px;
}
.detail-banner {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}
.detail-banner img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.detail-banner.editable-banner {
    cursor: pointer;
    outline: 3px dashed var(--accent);
    outline-offset: -3px;
}
.detail-banner.editable-banner::after {
    content: '点击更换横幅图片';
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
}

/* 信息区域 */
.detail-info-section {
    padding: 32px 0 20px;
}
.detail-header {
    max-width: 1000px;
    margin: 0 auto;
}
.detail-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-size: 12px;
    padding: 4px 14px;
    margin-bottom: 10px;
}
.detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
    letter-spacing: 0.5px;
}
.detail-intro {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* 图集区域 */
.detail-gallery-section {
    padding: 24px 0 80px;
    background: var(--white);
}
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.detail-gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--transition);
    background: var(--white);
}
.detail-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.detail-gallery-img {
    position: relative;
    overflow: hidden;
    height: 500px;
    cursor: default;
}
.detail-gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f5f5f5;
    transition: transform 0.5s ease;
}
.detail-gallery-item:hover .detail-gallery-img img {
    transform: scale(1.05);
}
.detail-gallery-caption {
    font-size: 14px;
    color: var(--text-light);
    padding: 16px 18px;
    margin: 0;
    line-height: 1.6;
}

/* 图集删除按钮（编辑模式可见） */

/* 图集添加按钮（编辑模式可见） */

/* ===== 案例导航按钮 ===== */
.case-nav-btn:hover {
    background: var(--primary);
    color: var(--white) !important;
    border-color: var(--primary);
}

/* 编辑模式 */


/* contenteditable 样式 */

/* 响应式 */
@media (max-width: 991px) {
    .detail-banner-section { padding: 4px 0 28px; }
    .detail-banner { max-height: 360px; }
    .detail-banner img { max-height: 360px; }
    .detail-header { max-width: 100%; }
    .detail-title { font-size: 21px; }
    .detail-intro { font-size: 13px; line-height: 1.65; }
    .detail-info-section { padding: 24px 0 16px; }
    .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .detail-gallery-img { height: 360px; }
}

@media (max-width: 767px) {
    .detail-banner-section { padding: 0 0 20px; }
    .detail-banner { max-height: 260px; }
    .detail-banner img { max-height: 260px; }
    .detail-header { max-width: 100%; }
    .detail-title { font-size: 18px; line-height: 1.3; margin-bottom: 8px; }
    .detail-intro { font-size: 13px; line-height: 1.6; }
    .detail-tag { font-size: 11px; padding: 3px 10px; margin-bottom: 8px; }
    .detail-info-section { padding: 20px 0 12px; }
    .detail-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .detail-gallery-img { height: 280px; }
    .detail-gallery-caption { font-size: 13px; padding: 12px 14px; }
    .detail-gallery-section { padding: 16px 0 60px; }
}

@media (max-width: 480px) {
    .detail-banner-section { padding: 0 0 16px; }
    .detail-banner { max-height: 220px; }
    .detail-banner img { max-height: 220px; }
    .detail-title { font-size: 19px; }
    .detail-gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
    .detail-gallery-img { height: 220px; }
}

/* ===== 案例列表编辑模式 ===== */


/* 编辑模式下禁掉卡片链接跳转 */

/* 编辑模式下图片可点击换图 */

/* 编辑模式下文字可编辑 */

@media (max-width: 767px) {
}

/* ========================================
   首页编辑模式样式
   ======================================== */

/* 浮动编辑按钮 */

/* 编辑工具栏 */

@media (max-width: 767px) {
}
