/**
 * 象形科技主题自定义样式
 * Version: 1.0.3 - 经典主题适配
 */

/* ========== CSS变量定义（替代theme.json） ========== */
:root {
    --wp--preset--color--primary: #1a3a5c;
    --wp--preset--color--secondary: #2a5a8c;
    --wp--preset--color--white: #ffffff;
    --wp--preset--color--light-gray: #f5f5f5;
    --wp--preset--color--medium-gray: #e0e0e0;
    --wp--preset--color--gray: #666666;
    --wp--preset--color--dark: #333333;
    --wp--preset--color--black: #000000;
    --wp--preset--font-family--system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --header-height: 130px;
}

/* ========== 颜色类定义 ========== */
.has-primary-color { color: var(--wp--preset--color--primary) !important; }
.has-secondary-color { color: var(--wp--preset--color--secondary) !important; }
.has-white-color { color: var(--wp--preset--color--white) !important; }
.has-light-gray-color { color: var(--wp--preset--color--light-gray) !important; }
.has-medium-gray-color { color: var(--wp--preset--color--medium-gray) !important; }
.has-gray-color { color: var(--wp--preset--color--gray) !important; }
.has-dark-color { color: var(--wp--preset--color--dark) !important; }
.has-black-color { color: var(--wp--preset--color--black) !important; }

.has-primary-background-color { background-color: var(--wp--preset--color--primary) !important; }
.has-secondary-background-color { background-color: var(--wp--preset--color--secondary) !important; }
.has-white-background-color { background-color: var(--wp--preset--color--white) !important; }
.has-light-gray-background-color { background-color: var(--wp--preset--color--light-gray) !important; }
.has-medium-gray-background-color { background-color: var(--wp--preset--color--medium-gray) !important; }
.has-gray-background-color { background-color: var(--wp--preset--color--gray) !important; }
.has-dark-background-color { background-color: var(--wp--preset--color--dark) !important; }
.has-black-background-color { background-color: var(--wp--preset--color--black) !important; }

.has-text-color { /* 文字颜色标记 */ }
.has-background { /* 背景标记 */ }

/* ========== 基础样式 ========== */
body {
    font-family: var(--wp--preset--font-family--system);
    font-size: 1.0625rem; /* 17px - 更舒适的阅读大小 */
    line-height: 1.6;
    color: var(--wp--preset--color--dark);
    background-color: var(--wp--preset--color--white);
    margin: 0;
    padding: 0;
}

/* ========== 内容区字体大小 ========== */
/* 业务模块、案例模块、设备模块的内容文字 */
[id^="section-"] p,
[id^="section-"] li,
[id^="case-"] p,
[id^="case-"] li,
[id^="equipment-"] p,
[id^="equipment-"] li,
.business-section p,
.business-section li,
.equipment-section p,
.equipment-section li {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* 列表样式 - 减少圆点与文本间距 */
[id^="section-"] ul,
[id^="section-"] ol,
[id^="case-"] ul,
[id^="case-"] ol,
[id^="equipment-"] ul,
[id^="equipment-"] ol {
    font-size: 1.3rem;
    line-height: 1.8;
    padding-left: 1.5em;
    margin: 0.5rem 0;
    list-style-position: outside;
}

[id^="section-"] li,
[id^="case-"] li,
[id^="equipment-"] li {
    padding-left: 0;
    margin-bottom: 0.6rem;
}

/* 使用自定义圆点减少间距 */
[id^="section-"] ul,
[id^="case-"] ul,
[id^="equipment-"] ul {
    list-style: none;
}

[id^="section-"] ul li,
[id^="case-"] ul li,
[id^="equipment-"] ul li {
    position: relative;
    padding-left: 1em;
}

[id^="section-"] ul li::before,
[id^="case-"] ul li::before,
[id^="equipment-"] ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--primary);
}

/* H3小标题 */
[id^="section-"] h3,
[id^="case-"] h3,
[id^="equipment-"] h3 {
    font-size: 1.25rem; /* 20px */
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* ========== 布局类 ========== */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.wp-block-columns {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: flex-start;
}

.wp-block-column {
    flex: 1 1 0;
    min-width: 0;
}

/* 支持 flex-basis 百分比设置 */
.wp-block-column[style*="flex-basis"] {
    flex-grow: 0;
    flex-shrink: 0;
}

/* 响应式：平板及以下设备垂直堆叠 */
@media (max-width: 992px) {
    .wp-block-columns {
        flex-wrap: wrap;
    }

    .wp-block-column,
    .wp-block-column[style*="flex-basis"] {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}

.are-vertically-aligned-center {
    align-items: center;
}

.is-vertically-aligned-center {
    align-self: center;
}

.has-text-align-center {
    text-align: center;
}

/* ========== 图片样式 ========== */
.wp-block-image {
    margin: 0;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-block-image.size-large img {
    width: 100%;
}

/* 页眉样式 */
header {
    background-color: #fff;
}

/* 强制去除站点头部后的所有间距 */
.site-header {
    margin-bottom: 0 !important;
}

.site-header + *,
header.site-header + * {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* 页眉高度控制 */
header .wp-block-group {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Logo样式 - 确保背景透明 */
header .wp-block-image img {
    background: transparent !important;
    background-color: transparent !important;
    width: 180px !important;
}

/* 移除页眉和主内容之间的间距 */
header + main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 全局强制：页眉后第一个元素无间距 */
body > header:first-of-type + *:not(script):not(style) {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

body .site-header + * {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* Banner轮播增强 */
.hero-banner-slider {
    position: relative;
    margin-top: 0 !important;
}

.hero-banner-slider .bxslider {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-banner-slider .bxslider > li {
    margin: 0;
    padding: 0;
}

.hero-banner-slider .wp-block-cover {
    min-height: var(--banner-height, calc(100vh - 130px)) !important;
}

/* bxSlider控制按钮样式优化 */
.hero-banner-slider .bx-wrapper .bx-controls-direction a {
    width: 32px;
    height: 32px;
    margin-top: -16px;
    background-color: transparent !important;
    border-radius: 0;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.hero-banner-slider .bx-wrapper .bx-controls-direction a:hover {
    opacity: 1;
    transform: scale(1.2);
}

.hero-banner-slider .bx-wrapper .bx-prev {
    left: 20px;
}

.hero-banner-slider .bx-wrapper .bx-next {
    right: 20px;
}

/* bxSlider分页器样式优化 */
.hero-banner-slider .bx-wrapper .bx-pager {
    bottom: 30px;
    padding: 0;
}

.hero-banner-slider .bx-wrapper .bx-pager.bx-default-pager a {
    background: rgba(255, 255, 255, 0.5);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-banner-slider .bx-wrapper .bx-pager.bx-default-pager a:hover,
.hero-banner-slider .bx-wrapper .bx-pager.bx-default-pager a.active {
    background: #fff;
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .hero-banner-slider .wp-block-cover {
        min-height: var(--banner-height, calc(100vh - 130px)) !important;
    }

    .hero-banner-slider .bx-wrapper .bx-controls-direction a {
        width: 28px;
        height: 28px;
        margin-top: -14px;
    }

    .hero-banner-slider .bx-wrapper .bx-prev {
        left: 10px;
    }

    .hero-banner-slider .bx-wrapper .bx-next {
        right: 10px;
    }
}

/* 业务图标导航悬浮效果 */
.business-icons-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 业务图标容器 - 默认状态无阴影 */
.business-icon-item {
    background-color: #ffffff;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.business-icon-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

/* SVG图标容器 - 确保居中显示 */
.business-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 80px;
    height: 80px;
}

.business-icon-wrapper svg {
    display: block;
    width: 80px !important;
    height: 80px !important;
    transition: fill 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.business-icon-item p {
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停效果 - 向上移动10px，增加阴影 */
.business-icon-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 统一深蓝色悬停背景和白色图标文字 */
.business-icon-item[data-color="#1a3a5c"]:hover {
    background-color: #1a3a5c;
}

.business-icon-item[data-color="#1a3a5c"]:hover svg {
    fill: #ffffff;
}

.business-icon-item[data-color="#1a3a5c"]:hover p {
    color: #ffffff !important;
}

/* 业务模块图片效果 */
.business-section .wp-block-image img {
    transition: transform 0.3s ease;
}

.business-section .wp-block-image:hover img {
    transform: scale(1.02);
}

/* 列表样式增强 */
.wp-block-group ul li {
    position: relative;
    padding-left: 1.5rem;
}

.wp-block-group ul li::marker {
    color: var(--wp--preset--color--primary);
}

/* 按钮悬浮效果 */
.wp-block-button__link {
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

/* 页脚链接列表样式 */
.site-footer ul,
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li,
footer ul li {
    padding: 0;
}

.site-footer ul li::before,
footer ul li::before {
    display: none;
}

/* ========== 移动端导航菜单 ========== */

/* 汉堡菜单按钮 - 默认隐藏 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 汉堡菜单激活状态 - 变成X */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端菜单抽屉 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

/* 移动端导航链接 */
.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 5rem 2rem 2rem 2rem;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    color: #333;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    color: #BF0001;
    padding-left: 0.5rem;
    background-color: #fafafa;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* 遮罩层 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* 导航菜单响应式 */
@media (max-width: 992px) {
    /* 隐藏桌面导航 */
    .desktop-nav {
        display: none !important;
    }

    /* 显示汉堡按钮 */
    .mobile-menu-toggle {
        display: flex;
    }

    .wp-block-navigation__responsive-container.is-menu-open {
        padding: 2rem;
    }

    .wp-block-navigation__responsive-container-content {
        padding-top: 2rem;
    }
}

/* ========== 移动端响应式样式 ========== */

/* 全局溢出控制 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* 平板端 (768px - 992px) */
@media (max-width: 992px) {
    /* 页眉Logo缩小 */
    header .wp-block-image img {
        width: 180px !important;
    }

    /* 业务图标导航 - 允许换行 */
    .business-icons-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        padding: 2rem 1rem !important;
    }

    .business-icons-nav > * {
        flex: 0 0 calc(25% - 1.5rem) !important;
        min-width: 80px;
    }

    /* 业务模块图文布局 */
    .business-section .wp-block-columns {
        flex-direction: column !important;
    }

    .business-section .wp-block-column {
        flex-basis: 100% !important;
    }
}

/* 手机端 (小于768px) */
@media (max-width: 768px) {
    /* 页眉调整 */
    header .wp-block-group {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    header .wp-block-image img {
        width: 150px !important;
    }

    /* Banner高度调整 */
    .hero-banner-slider .wp-block-cover {
        min-height: 300px !important;
    }

    .hero-banner-slider .wp-block-cover h1,
    .hero-banner-slider .wp-block-cover h2 {
        font-size: 1.5rem !important;
    }

    .hero-banner-slider .wp-block-cover p {
        font-size: 0.9rem !important;
    }

    /* 业务图标导航 - 两列布局 */
    .business-icons-nav {
        flex-wrap: wrap !important;
        justify-content: space-around !important;
        gap: 1rem !important;
        padding: 1.5rem 1rem !important;
    }

    .business-icons-nav > * {
        flex: 0 0 calc(33.33% - 1rem) !important;
        min-width: 70px;
    }

    .business-icons-nav img {
        width: 50px !important;
        height: 50px !important;
    }

    .business-icons-nav p {
        font-size: 0.75rem !important;
    }

    /* 业务模块内边距 */
    .business-section {
        padding: 2rem 1rem !important;
    }

    .business-section h2 {
        font-size: 1.3rem !important;
    }

    .business-section p {
        font-size: 0.9rem !important;
    }

    /* 页脚调整 */
    footer .wp-block-group,
    .site-footer .wp-block-group {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    footer .wp-block-columns,
    .site-footer .wp-block-columns {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    footer .wp-block-column,
    .site-footer .wp-block-column {
        flex-basis: 100% !important;
        text-align: center;
    }

    footer h3 {
        font-size: 1rem !important;
    }

    footer p,
    footer li {
        font-size: 0.85rem !important;
    }

    footer .wp-block-image {
        margin: 0 auto;
    }

    /* 版权信息 */
    footer .has-text-align-center {
        font-size: 0.75rem !important;
        padding: 1rem !important;
    }
}

/* 小屏手机 (小于480px) */
@media (max-width: 480px) {
    /* Logo进一步缩小 */
    header .wp-block-image img {
        width: 120px !important;
    }

    /* Banner */
    .hero-banner-slider .wp-block-cover {
        min-height: 250px !important;
    }

    .hero-banner-slider .wp-block-cover h1,
    .hero-banner-slider .wp-block-cover h2 {
        font-size: 1.2rem !important;
    }

    /* 业务图标 - 三列紧凑布局 */
    .business-icons-nav {
        gap: 0.75rem !important;
        padding: 1rem 0.5rem !important;
    }

    .business-icons-nav > * {
        flex: 0 0 calc(33.33% - 0.75rem) !important;
        min-width: 60px;
    }

    .business-icons-nav img {
        width: 40px !important;
        height: 40px !important;
    }

    .business-icons-nav p {
        font-size: 0.7rem !important;
        margin-top: 0.25rem !important;
    }

    /* 业务模块 */
    .business-section {
        padding: 1.5rem 0.75rem !important;
    }

    .business-section h2 {
        font-size: 1.1rem !important;
    }

    /* 返回顶部按钮 */
    .scroll-to-top {
        width: 40px !important;
        height: 40px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 16px !important;
    }
}

/* 超小屏幕 (iPhone 5/SE: 320px-360px) */
@media (max-width: 360px) {
    /* Logo更小 */
    header .wp-block-image img {
        width: 100px !important;
    }

    /* Banner更紧凑 */
    .hero-banner-slider .wp-block-cover {
        min-height: 200px !important;
        padding: 2rem 1rem !important;
    }

    .hero-banner-slider .wp-block-cover h1,
    .hero-banner-slider .wp-block-cover h2 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }

    .hero-banner-slider .wp-block-cover p {
        font-size: 0.75rem !important;
    }

    /* 业务图标 - 两列布局更合适 */
    .business-icons-nav {
        gap: 0.5rem !important;
        padding: 1rem !important;
    }

    .business-icons-nav > * {
        flex: 0 0 calc(50% - 0.5rem) !important;
        min-width: 50px;
    }

    .business-icons-nav img {
        width: 35px !important;
        height: 35px !important;
    }

    .business-icons-nav p {
        font-size: 0.65rem !important;
        margin-top: 0.2rem !important;
    }

    /* 业务模块 */
    .business-section {
        padding: 1rem 0.5rem !important;
    }

    .business-section h2 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .business-section h3 {
        font-size: 0.95rem !important;
    }

    .business-section p,
    .business-section li {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    /* 全局内边距缩小 */
    .wp-block-group[style*="padding"] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* 标题字体缩小 */
    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.2rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--wp--preset--color--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wp--preset--color--secondary);
}

/* 图片加载占位 */
.wp-block-image img {
    background-color: #f5f5f5;
}

/* 分页样式 */
.wp-block-query-pagination {
    margin-top: 2rem;
}

.wp-block-query-pagination-numbers .page-numbers {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current {
    background-color: var(--wp--preset--color--primary);
    color: #fff;
}

/* 搜索框样式 */
.wp-block-search__inside-wrapper {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.wp-block-search__input {
    border: none;
    padding: 0.75rem 1rem;
}

.wp-block-search__button {
    background-color: var(--wp--preset--color--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wp-block-search__button:hover {
    background-color: var(--wp--preset--color--secondary);
}

/* 评论样式 */
.wp-block-comments {
    margin-top: 2rem;
}

.wp-block-comment-template {
    list-style: none;
    padding: 0;
}

/* 文章摘要 */
.wp-block-post-excerpt__more-text {
    color: var(--wp--preset--color--primary);
    font-weight: 500;
}

/* 分隔线样式 */
.wp-block-separator {
    border-color: #e0e0e0;
    opacity: 1;
}

/* 页脚通栏分隔线 - 1px */
footer .wp-block-separator,
.wp-block-separator.alignfull {
    border-top-width: 1px !important;
    border-bottom: none !important;
    height: 1px !important;
}

/* 表单元素 */
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
}

input[type="submit"] {
    background-color: var(--wp--preset--color--primary);
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: var(--wp--preset--color--secondary);
}

/* ========== 设备页面样式 ========== */

/* 栏目页Banner */
.wp-block-cover.section-banner {
    min-height: 300px !important;
    margin-top: 0 !important;
}

/* Banner包装器 - 确保紧贴页眉 */
.section-banner-wrapper {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* 分类页面特定样式 - 确保无顶部间距 */
.category .section-banner-wrapper,
.archive .section-banner-wrapper {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* 注意：不要对.wp-block-cover本身设置margin，会影响内部定位 */

/* 修复Cover Block内部定位问题 - 确保文字正确叠加在图片上 */
.wp-block-cover {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wp-block-cover__inner-container {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
}

.wp-block-cover__background,
.wp-block-cover__image-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

/* Banner遮罩层 - 让白色文字更清晰 */
.wp-block-cover__image-background {
    z-index: 0 !important;
}

.wp-block-cover__background {
    background-color: rgba(0, 0, 0, 0.4) !important;
    z-index: 1 !important;
}

.wp-block-cover__background.has-background-dim-40 {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
}

.wp-block-cover__background.has-background-dim {
    opacity: 1 !important;
}

.wp-block-cover__inner-container {
    z-index: 2 !important;
}

/* 去除页眉和内容区之间的间距 */
body > header + * {
    margin-top: 0 !important;
}

/* 清除 WordPress 默认的 body 内容区间距 */
.wp-site-blocks {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

/* 清除所有可能的顶部间距 */
body,
body > *,
#page,
.wp-site-blocks > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 去除 main 内第一个元素的上边距和内边距 */
main > .wp-block-group:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 确保栏目 banner 紧贴页眉 */
.wp-block-cover.section-banner,
main > .wp-block-cover:first-child {
    margin-top: 0 !important;
}

/* 去除 header 后面的 blockGap 间距 */
header + .wp-block-group,
header + .wp-block-cover,
header + div,
header + .section-banner-wrapper {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* 专门针对页面模板中 header 和 banner 之间的间距 */
.wp-site-blocks > header + .wp-block-group,
.wp-site-blocks > header + .wp-block-cover,
header + .section-banner-wrapper {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* 清除 WordPress 区块之间的默认间距 */
.wp-site-blocks > * + * {
    margin-block-start: 0 !important;
}

/* 强制清除分类归档页面的所有顶部间距 */
.category-faq .wp-site-blocks,
.category .wp-site-blocks,
.archive .wp-site-blocks {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.category-faq header + *,
.category header + *,
.archive header + * {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    padding-top: 0 !important;
}

/* 技术规格表格样式 */
.equipment-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.equipment-specs-table th,
.equipment-specs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.equipment-specs-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: var(--wp--preset--color--dark);
    width: 30%;
}

.equipment-specs-table td {
    color: var(--wp--preset--color--gray);
}

.equipment-specs-table tr:hover {
    background-color: #fafafa;
}

/* 设备规格表格响应式 */
@media (max-width: 768px) {
    .equipment-specs-table th,
    .equipment-specs-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .equipment-specs-table th,
    .equipment-specs-table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .equipment-specs-table th {
        width: 35%;
    }
}

/* 超小屏设备 - 表格卡片式布局 */
@media (max-width: 360px) {
    .equipment-specs-table {
        border: none;
    }

    .equipment-specs-table,
    .equipment-specs-table tbody,
    .equipment-specs-table tr {
        display: block;
        width: 100%;
    }

    .equipment-specs-table tr {
        margin-bottom: 0.75rem;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow: hidden;
        background-color: #fff;
    }

    .equipment-specs-table th,
    .equipment-specs-table td {
        display: block;
        width: 100% !important;
        padding: 0.5rem 0.75rem;
        border: none;
        text-align: left;
    }

    .equipment-specs-table th {
        background-color: #f5f5f5;
        font-size: 0.85rem;
        font-weight: 600;
        color: #BF0001;
        border-bottom: 1px solid #e0e0e0;
    }

    .equipment-specs-table td {
        font-size: 0.9rem;
        padding: 0.65rem 0.75rem;
    }

    .equipment-specs-table tr:hover {
        background-color: #fff;
    }
}

/* 设备和案例图片点击放大 */
.equipment-section .wp-block-image img,
[id^="equipment-"] .wp-block-image img,
[id^="case-"] .wp-block-image img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-section .wp-block-image img:hover,
[id^="equipment-"] .wp-block-image img:hover,
[id^="case-"] .wp-block-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 图片弹窗样式 */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-lightbox.active {
    display: flex;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: default;
    animation: lightboxImgZoom 0.3s ease;
}

@keyframes lightboxImgZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    line-height: 46px;
    text-align: center;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 返回按钮样式 */
.back-button-wrapper {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: #BF0001;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 0, 1, 0.3);
}

.back-button:hover {
    background-color: #a00001;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 0, 1, 0.4);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(191, 0, 1, 0.3);
}

.back-button-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-button:hover .back-button-icon {
    transform: translateX(-4px);
}

.back-button-text {
    letter-spacing: 0.5px;
}

/* 行业案例图片组合布局优化 */
[id^="case-"] .wp-block-column > .wp-block-image:first-of-type {
    margin-bottom: 2rem;
}

[id^="case-"] .wp-block-column .wp-block-image {
    overflow: hidden;
    border-radius: 8px;
}

[id^="case-"] .wp-block-column .wp-block-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 行业案例标题间距优化 */
[id^="case-"] h2.wp-block-heading {
    margin-bottom: 1.5rem;
}

[id^="case-"] h3.wp-block-heading {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

/* 七大业务模块标题间距优化 */
[id^="section-"] h2.wp-block-heading {
    margin-bottom: 1.5rem;
}

[id^="section-"] h3.wp-block-heading {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

/* 3D设备页面标题间距优化 */
[id^="equipment-"] h2.wp-block-heading {
    margin-bottom: 1.5rem;
}

[id^="equipment-"] h3.wp-block-heading {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
}

/* 设备页面文本折叠/展开功能 (仅桌面端≥992px) */
@media (min-width: 992px) {
    /* 图片列和文本列容器 */
    [id^="equipment-"] .equipment-content-col {
        position: relative;
    }

    /* 文本内容区默认限制高度 */
    [id^="equipment-"] .equipment-content-col.collapsed {
        max-height: var(--equipment-image-height, 600px);
        overflow: hidden;
    }

    /* 渐变遮罩层 */
    .equipment-expand-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,1) 100%);
        pointer-events: none;
        z-index: 5;
        transition: opacity 0.3s ease;
    }

    /* 灰底设备的渐变遮罩 */
    .has-light-gray-background-color .equipment-expand-overlay {
        background: linear-gradient(to bottom, rgba(245,245,245,0) 0%, rgba(245,245,245,0.95) 50%, rgba(245,245,245,1) 100%);
    }

    /* 展开按钮容器 - 横向布局(图标+文字) */
    .equipment-expand-btn {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 6;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
    }

    .equipment-expand-btn:hover {
        transform: translateX(-50%) translateY(3px);
    }

    /* 双箭头图标 - 使用Unicode真实双箭头 */
    .equipment-expand-icon {
        font-size: 28px;
        line-height: 1;
        color: #BF0001;
        opacity: 0.85;
        transition: opacity 0.3s ease;
    }

    /* 展开文字提示 */
    .equipment-expand-text {
        font-size: 16px;
        font-weight: 600;
        color: #BF0001;
        opacity: 0.85;
        transition: opacity 0.3s ease;
    }

    .equipment-expand-btn:hover .equipment-expand-icon,
    .equipment-expand-btn:hover .equipment-expand-text {
        opacity: 1;
    }

    /* 收起按钮 - 相对于文本容器定位 */
    .equipment-collapse-btn {
        position: absolute;
        bottom: 20px;
        right: 20px;
        background-color: #BF0001;
        color: white;
        padding: 12px 24px;
        border-radius: 24px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(191, 0, 1, 0.3);
        font-size: 1rem;
        font-weight: 600;
        z-index: 100;
        transition: all 0.3s ease;
        display: none;
        pointer-events: auto;
    }

    .equipment-collapse-btn:hover {
        background-color: #a00001;
        box-shadow: 0 6px 16px rgba(191, 0, 1, 0.4);
        transform: translateY(-2px);
    }

    .equipment-collapse-btn.show {
        display: block;
        animation: fadeInUp 0.3s ease;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 展开状态 */
    [id^="equipment-"] .equipment-content-col.expanded {
        max-height: none;
        overflow: visible;
    }

    [id^="equipment-"] .equipment-content-col.expanded .equipment-expand-overlay,
    [id^="equipment-"] .equipment-content-col.expanded .equipment-expand-btn {
        opacity: 0;
        pointer-events: none;
    }
}

/* 设备页面和案例页面响应式 */
@media (max-width: 992px) {
    .equipment-section .wp-block-columns {
        flex-direction: column !important;
    }

    .equipment-section .wp-block-column {
        flex-basis: 100% !important;
    }

    /* 案例页面平板优化 */
    [id^="case-"] .wp-block-columns {
        gap: 2rem !important;
    }

    [id^="case-"] .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }

    [id^="case-"] .wp-block-column > .wp-block-image:first-of-type {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .wp-block-cover.section-banner {
        min-height: 250px !important;
    }
    
    .wp-block-cover.section-banner h1 {
        font-size: 1.8rem !important;
    }
    
    .wp-block-cover.section-banner p {
        font-size: 0.95rem !important;
    }
    
    .equipment-section h2 {
        font-size: 1.5rem !important;
    }
    
    .equipment-section h3 {
        font-size: 1.1rem !important;
    }
    
    .equipment-section ul,
    .equipment-section p {
        font-size: 0.9rem !important;
    }

    /* 案例页面手机端优化 */
    [id^="case-"] h2 {
        font-size: 1.5rem !important;
    }

    [id^="case-"] h3 {
        font-size: 1.1rem !important;
    }

    [id^="case-"] ul,
    [id^="case-"] ol,
    [id^="case-"] p {
        font-size: 0.9rem !important;
    }

    [id^="case-"] .wp-block-column > .wp-block-image:first-of-type {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .wp-block-cover.section-banner {
        min-height: 200px !important;
    }
    
    .wp-block-cover.section-banner h1 {
        font-size: 1.4rem !important;
    }
    
    .equipment-section h2 {
        font-size: 1.3rem !important;
    }
    
    .equipment-section h3 {
        font-size: 1rem !important;
    }

    /* 案例页面小屏优化 */
    [id^="case-"] .wp-block-group {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    [id^="case-"] .wp-block-column > .wp-block-image:first-of-type {
        margin-bottom: 0.8rem;
    }

    [id^="case-"] h2 {
        font-size: 1.3rem !important;
    }

    [id^="case-"] h3 {
        font-size: 1rem !important;
    }
}

/* ========== 问答页面手风琴样式 ========== */

/* 问答容器 */
.qa-accordion {
    width: 100%;
    max-width: 100%;
}

/* 问答项 */
.qa-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #fff;
}

.qa-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 问题标题区 */
.qa-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    background-color: #fafafa;
    transition: all 0.3s ease;
    user-select: none;
}

.qa-question:hover {
    background-color: #f5f5f5;
}

.qa-question.active {
    background-color: #BF0001;
}

.qa-question.active h3 {
    color: #fff;
}

.qa-question.active .qa-icon {
    color: #fff;
}

/* 问题图标 */
.qa-icon {
    font-size: 1rem;
    color: #BF0001;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.qa-question.active .qa-icon {
    transform: rotate(90deg);
}

/* 问题标题 */
.qa-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* 答案区域 */
.qa-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.qa-answer.active {
    max-height: 5000px;
}

/* 答案内容 */
.qa-answer-content {
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.qa-answer-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.qa-answer-content p:last-child {
    margin-bottom: 0;
}

.qa-answer-content ul,
.qa-answer-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    line-height: 1.8;
    color: #555;
}

.qa-answer-content ul li,
.qa-answer-content ol li {
    margin-bottom: 0.5rem;
}

.qa-answer-content strong {
    color: #333;
    font-weight: 600;
}

.qa-answer-content a {
    color: #BF0001;
    text-decoration: none;
    transition: color 0.3s ease;
}

.qa-answer-content a:hover {
    color: #a00001;
    text-decoration: underline;
}

/* 空状态 */
.qa-empty {
    padding: 3rem 2rem;
    text-align: center;
}

/* 问答页面响应式 */
@media (max-width: 768px) {
    .qa-question {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .qa-question h3 {
        font-size: 1rem;
    }

    .qa-icon {
        font-size: 0.9rem;
    }

    .qa-answer-content {
        padding: 1.25rem;
    }

    .qa-answer-content p,
    .qa-answer-content ul,
    .qa-answer-content ol {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .qa-question {
        padding: 0.875rem 1rem;
        gap: 0.5rem;
    }

    .qa-question h3 {
        font-size: 0.95rem;
    }

    .qa-answer-content {
        padding: 1rem;
    }

    .qa-answer-content p,
    .qa-answer-content ul,
    .qa-answer-content ol {
        font-size: 0.85rem;
    }
}

/* ========== 新闻列表页样式 ========== */

/* 新闻列表容器 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 新闻列表项 */
.news-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-item-inner {
    display: flex;
    gap: 1.5rem;
    padding: 1.25rem;
}

/* 新闻缩略图 */
.news-thumbnail {
    flex: 0 0 280px;
    max-width: 280px;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
}

.news-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

/* 新闻内容区 */
.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

/* 新闻标题 */
.news-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    color: #BF0001;
}

/* 新闻摘要 */
.news-excerpt {
    flex: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 新闻元信息 */
.news-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #999;
}

.news-date,
.news-views {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.news-date svg,
.news-views svg {
    color: #999;
}

/* 查看更多链接 */
.news-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    color: #BF0001;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-more:hover {
    color: #a00001;
    gap: 0.5rem;
}

.news-more span {
    transition: transform 0.3s ease;
}

.news-more:hover span {
    transform: translateX(3px);
}

/* 新闻分页包装器 */
.news-pagination-wrapper {
    margin-top: 3rem;
    text-align: center;
}

/* 分页统计信息 */
.news-pagination-info {
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    display: inline-block;
}

.pagination-stats {
    font-size: 0.95rem;
    color: #666;
}

.pagination-stats strong {
    color: #BF0001;
    font-weight: 600;
}

/* 新闻分页导航 */
.news-pagination {
    margin-top: 1.5rem;
}

.news-pagination .pagination-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination .pagination-nav li {
    margin: 0;
}

.news-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.news-pagination .page-numbers.current {
    background-color: #BF0001;
    border-color: #BF0001;
    color: #fff;
}

.news-pagination .prev,
.news-pagination .next {
    font-weight: 500;
    padding: 0 1.25rem;
}

.news-pagination .dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 0.5rem;
}

/* ========== 新闻详情页样式 ========== */

/* 新闻详情文章 */
.news-detail {
    background-color: #fff;
}

/* 新闻详情标题 */
.news-detail-title {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    text-align: center;
}

/* 新闻详情元信息 */
.news-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #999;
}

.news-detail-date,
.news-detail-views,
.news-detail-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-detail-date svg,
.news-detail-views svg,
.news-detail-category svg {
    color: #999;
}

.news-detail-category a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-detail-category a:hover {
    color: #BF0001;
}

/* 新闻详情特色图片 */
.news-detail-thumbnail {
    margin: 0 0 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 新闻详情正文 */
.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
}

.news-detail-content h2 {
    margin: 2.5rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.news-detail-content h3 {
    margin: 2rem 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.news-detail-content li {
    margin-bottom: 0.5rem;
}

.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.news-detail-content a {
    color: #BF0001;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-detail-content a:hover {
    color: #a00001;
    text-decoration: underline;
}

.news-detail-content blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #BF0001;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* 新闻标签 */
.news-detail-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.news-detail-tags a {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-detail-tags a:hover {
    background-color: #BF0001;
    color: #fff;
}

/* 上一篇/下一篇导航 */
.news-detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-previous,
.nav-next {
    flex: 1;
    max-width: 45%;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-detail-nav a {
    display: block;
    font-size: 0.95rem;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-detail-nav a:hover {
    color: #BF0001;
}

/* 返回列表按钮 */
.news-detail-back {
    margin-top: 2.5rem;
    text-align: center;
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: #BF0001;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 0, 1, 0.3);
}

.back-to-list:hover {
    background-color: #a00001;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 0, 1, 0.4);
    color: #fff;
}

.back-to-list span {
    transition: transform 0.3s ease;
}

.back-to-list:hover span {
    transform: translateX(-4px);
}

/* ========== 新闻页面响应式 ========== */

@media (max-width: 992px) {
    .news-thumbnail {
        flex: 0 0 220px;
        max-width: 220px;
        height: 150px;
    }

    .news-title {
        font-size: 1.15rem;
    }

    .news-excerpt {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 768px) {
    .news-item-inner {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .news-thumbnail {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 200px;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }

    .news-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }

    /* 详情页响应式 */
    .news-detail-title {
        font-size: 1.5rem;
    }

    .news-detail-meta {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.85rem;
    }

    .news-detail-content {
        font-size: 1rem;
    }

    .news-detail-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-previous,
    .nav-next {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .news-item-inner {
        padding: 0.875rem;
    }

    .news-thumbnail {
        height: 160px;
    }

    .news-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .news-excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .news-meta {
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    .news-more {
        font-size: 0.85rem;
    }

    .news-pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    /* 详情页响应式 */
    .news-detail-title {
        font-size: 1.3rem;
    }

    .news-detail-meta {
        font-size: 0.8rem;
    }

    .news-detail-content {
        font-size: 0.95rem;
    }

    .news-detail-content h2 {
        font-size: 1.3rem;
    }

    .news-detail-content h3 {
        font-size: 1.1rem;
    }

    .back-to-list {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 新闻页面超小屏优化 */
@media (max-width: 360px) {
    .news-item-inner {
        padding: 0.75rem;
    }

    .news-thumbnail {
        height: 140px;
    }

    .news-title {
        font-size: 0.95rem;
    }

    .news-excerpt {
        font-size: 0.8rem;
    }

    .news-meta {
        gap: 0.5rem;
        font-size: 0.7rem;
    }

    .news-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 0.5rem;
        font-size: 0.8rem;
    }

    .news-detail-title {
        font-size: 1.1rem;
    }

    .news-detail-content {
        font-size: 0.9rem;
    }

    .back-to-list {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* ========================================
   关于页面样式
   ======================================== */

/* 车间设备图片网格 */
.workshop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.workshop-image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: block;
}

.workshop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.workshop-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

/* 资质卡片网格 */
.qualifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.qualification-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.qualification-card figure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0;
}

.qualification-card h3 {
    margin-top: auto !important;
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.qualification-card img {
    transition: transform 0.3s ease;
}

.qualification-card:hover img {
    transform: scale(1.05);
}

/* 服务优势卡片统一高度 */
#section-quality .wp-block-columns.are-vertically-aligned-center {
    align-items: stretch !important;
    display: flex !important;
}

#section-quality .wp-block-columns.are-vertically-aligned-center > .wp-block-column {
    display: flex !important;
    flex: 1 1 0% !important;
    align-self: stretch !important;
}

#section-quality .wp-block-columns.are-vertically-aligned-center > .wp-block-column > .wp-block-group {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    width: 100% !important;
}

#section-quality .wp-block-columns.are-vertically-aligned-center > .wp-block-column > .wp-block-group > p {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
}

/* 合作伙伴网格 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.partner-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #BF0001 !important;
}

.partner-item img {
    transition: transform 0.3s ease;
    object-fit: contain;
}

.partner-item:hover img {
    transform: scale(1.1);
}

/* 关于页面响应式 */
@media (max-width: 1200px) {
    .workshop-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .qualifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .workshop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qualifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .workshop-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .qualifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .qualifications-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-item {
        padding: 1rem !important;
        min-height: 80px !important;
    }

    .partner-item img {
        max-height: 50px !important;
    }
}

/* 超小屏幕优化 (iPhone 5/SE: 320px) */
@media (max-width: 360px) {
    /* 生产车间 - 确保单列 */
    .workshop-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    /* 资质证书 - 单列大图 */
    .qualifications-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .qualification-card {
        padding: 1rem !important;
    }

    .qualification-card h3 {
        font-size: 0.9rem !important;
        text-align: center;
    }

    /* 品质检验卡片 - 强制单列 */
    /* 强制品质检验5列网格改为单列 */
    #section-quality > div > .wp-block-group[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    #section-quality .wp-block-columns {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    #section-quality .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    #section-quality .wp-block-group {
        padding: 1.25rem !important;
    }

    #section-quality h3 {
        font-size: 1rem !important;
    }

    #section-quality p {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
    }

    /* 服务优势 - 强制单列布局 */
    [id*="advantage"] .wp-block-columns,
    .wp-block-columns.are-vertically-aligned-center {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    [id*="advantage"] .wp-block-column,
    .are-vertically-aligned-center .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 服务优势卡片内容 */
    [id*="advantage"] .wp-block-group,
    .has-primary-background-color.wp-block-group {
        padding: 1.25rem !important;
        min-height: auto !important;
    }

    [id*="advantage"] h3 {
        font-size: 1.1rem !important;
    }

    [id*="advantage"] p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    /* 合作伙伴 - 保持两列但缩小间距 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }

    .partner-item {
        padding: 0.75rem !important;
        min-height: 70px !important;
    }

    .partner-item img {
        max-height: 40px !important;
        width: auto !important;
    }

    /* 联系方式 - 单列居中 */
    .about-contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        text-align: center;
    }

    /* 通用标题缩小 */
    h2.wp-block-heading {
        font-size: 1.3rem !important;
    }

    h3.wp-block-heading {
        font-size: 1rem !important;
    }

    /* 通用内边距缩小 */
    .wp-block-group[style*="padding"] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    /* 设备页面优化 */
    [id^="equipment-"] h2 {
        font-size: 1.3rem !important;
    }

    [id^="equipment-"] h3 {
        font-size: 1rem !important;
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    [id^="equipment-"] p,
    [id^="equipment-"] li {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    [id^="equipment-"] ul {
        margin-left: 1rem !important;
        padding-left: 0.5rem !important;
    }

    [id^="equipment-"] .wp-block-columns {
        gap: 1.5rem !important;
    }
}

/* ========================================
   联系我们页面样式
   ======================================== */

/* 联系主区域布局 */
.contact-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

/* 联系信息区域 */
.contact-info-section {
    background-color: #f9f9f9;
    padding: 2.5rem;
    border-radius: 12px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #BF0001 0%, #8a0001 100%);
    border-radius: 10px;
    color: #fff;
}

.contact-info-content h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.contact-info-content p {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.5;
}

.contact-info-content a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: #BF0001;
}

/* 快速联系按钮 */
.contact-quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.contact-action-phone {
    background-color: #BF0001;
    color: #fff;
    box-shadow: 0 4px 12px rgba(191, 0, 1, 0.3);
}

.contact-action-phone:hover {
    background-color: #a00001;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(191, 0, 1, 0.4);
    color: #fff;
}

.contact-action-email {
    background-color: #1a3a5c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 58, 92, 0.3);
}

.contact-action-email:hover {
    background-color: #0f2840;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 58, 92, 0.4);
    color: #fff;
}

/* 联系表单区域 */
.contact-form-section {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.form-group label .required {
    color: #BF0001;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #BF0001;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(191, 0, 1, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 提交按钮 */
.form-submit {
    margin-top: 0.5rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #BF0001 0%, #8a0001 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(191, 0, 1, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #a00001 0%, #700001 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 0, 1, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 表单提交成功 */
.contact-form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.contact-form-success svg {
    color: #28a745;
    margin-bottom: 1.5rem;
}

.contact-form-success h3 {
    font-size: 1.5rem;
    color: #28a745;
    margin: 0 0 1rem 0;
}

.contact-form-success p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* 表单错误提示 */
.contact-form-error {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form-error p {
    color: #c53030;
    margin: 0;
    font-size: 0.95rem;
}

/* 地图区域 */
.map-container {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #e8e8e8;
}

/* 可拖动地图容器 */
.baidu-map-draggable {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    border-radius: 12px 12px 0 0;
}

.baidu-map-draggable:active {
    cursor: grabbing;
}

.baidu-map-draggable img {
    position: absolute;
    top: 0;
    left: 0;
    /* 图片以原始尺寸1:1显示，不缩放 */
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    will-change: transform;
}

/* 地图操作栏 */
.map-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.map-drag-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #888;
}

.map-drag-hint svg {
    color: #999;
}

.map-open-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #BF0001;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.map-open-link:hover {
    background-color: #a00001;
    color: #fff;
    transform: translateY(-1px);
}

.map-open-link svg {
    flex-shrink: 0;
}

/* 交通指南 */
.traffic-guide {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.traffic-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.traffic-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.traffic-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.traffic-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    color: #BF0001;
}

.traffic-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.traffic-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* 联系页面响应式 */
@media (max-width: 1200px) {
    .contact-main-wrapper {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .contact-main-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .traffic-items {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-info-section,
    .contact-form-section {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-quick-actions {
        flex-direction: column;
    }

    .contact-action-btn {
        width: 100%;
    }

    .traffic-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .contact-info-section,
    .contact-form-section {
        padding: 1.25rem;
    }

    .contact-info-item {
        padding: 0.875rem;
    }

    .contact-info-icon {
        width: 44px;
        height: 44px;
    }

    .contact-info-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-info-content h3 {
        font-size: 0.9rem;
    }

    .contact-info-content p {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .traffic-icon {
        width: 40px;
        height: 40px;
    }

    .traffic-content h4 {
        font-size: 1rem;
    }

    .traffic-content p {
        font-size: 0.9rem;
    }
}

/* 联系页面超小屏优化 */
@media (max-width: 360px) {
    .contact-info-section,
    .contact-form-section {
        padding: 1rem;
    }

    .contact-info-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }

    .contact-info-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-info-content h3 {
        font-size: 0.85rem;
    }

    .contact-info-content p {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.8rem 1.25rem;
        font-size: 0.95rem;
    }

    .map-container {
        height: 300px;
    }

    .baidu-map-draggable {
        height: 300px;
    }
}

/* ========================================
   页脚样式
   ======================================== */

.site-footer {
    background-color: #1a3a5c;
    color: #fff;
}

/* 页脚主内容区 */
.footer-main {
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

/* 左侧品牌区 */
.footer-brand {
    flex: 0 0 260px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 56px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-slogan {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

.footer-work-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0.5rem 0 0 0;
    line-height: 1.5;
}

/* 右侧三列 */
.footer-columns {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* 列标题 */
.footer-col-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

/* 快速链接 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* 联系方式 */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact li a:hover {
    color: #fff;
}

/* 二维码 */
.footer-col-qrcode {
    text-align: center;
}

.footer-col-qrcode .footer-col-title {
    text-align: left;
}

.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.footer-qrcode img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    background-color: #fff;
    padding: 5px;
}

.footer-qrcode span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

/* 版权信息 */
.footer-copyright {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1.25rem 2rem;
}

.footer-copyright .footer-container {
    display: block;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #fff;
}

/* 页脚响应式 */
@media (max-width: 992px) {
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-brand {
        flex: none;
        text-align: center;
        width: 100%;
    }

    .footer-columns {
        width: 100%;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 2.5rem 1.5rem;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-col-qrcode {
        grid-column: span 2;
    }

    .footer-col-qrcode .footer-col-title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: 2rem 1rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col-title {
        text-align: center;
    }

    .footer-col-qrcode {
        grid-column: span 1;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .footer-copyright {
        padding: 1rem;
    }

    .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* 页脚超小屏优化 */
@media (max-width: 360px) {
    .footer-main {
        padding: 1.5rem 0.75rem;
    }

    .footer-logo img {
        height: 48px;
    }

    .footer-slogan {
        font-size: 0.85rem;
    }

    .footer-work-time {
        font-size: 0.8rem;
    }

    .footer-col-title {
        font-size: 0.9rem;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 0.85rem;
    }

    .footer-qrcode img {
        width: 100px;
        height: 100px;
    }

    .footer-copyright {
        padding: 0.875rem 0.5rem;
    }

    .footer-copyright p {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}
