/*
Theme Name: iHeir Enterprise
Theme URI: https://www.ihaoer.cn/
Author: iHeir Team
Author URI: https://www.ihaoer.cn/
Description: 企业级 WordPress 主题：大气排版、The7/WPBakery 短代码兼容、GEO/AEO 优化、极速加载、自适应。
Version: 2.12.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iheir-enterprise
Tags: business, corporate, responsive, seo, geo, aeo, faq, shortcodes, page-builder
*/

:root {
    --color-primary: #1a5fb4;
    --color-primary-dark: #14498d;
    --color-accent: #e8a020;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #f5f7fa;
    --color-border: #e5e8ec;
    --color-footer-bg: #1c2430;
    --color-footer-text: #aeb6c2;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --container-width: 1200px;
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --radius: 4px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1rem; line-height:  1.57; color: var(--color-text); background: var(--color-bg); word-break: break-word; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { line-height: 1.35; margin: 0 0 var(--space-2); font-weight: 600; color: #222; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; } h3 { font-size: 1.3rem; } h4 { font-size: 1.1rem; }
p { margin-bottom: var(--space-2); }
ul, ol { padding-left: 1.5em; margin-bottom: var(--space-2); }
table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-2); }
table th, table td { border: 1px solid var(--color-border); padding: 0.6em 0.8em; text-align: left; }
table th { background: var(--color-bg-light); }
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding-left: var(--space-2); padding-right: var(--space-2); }
/* Top Bar (The7 风格顶部信息栏) */
.top-bar { background: #2b3240; color: #c8cdd5; font-size: 0.82rem; padding: 6px 0; position: relative; z-index: 101; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.top-bar a { color: #c8cdd5; text-decoration: none; font-size: 0.82rem; }
.top-bar a:hover { color: #ffffff; text-decoration: none; }
.top-bar-contacts { display: flex; align-items: center; gap: 1rem; }
.top-bar-contacts i, .top-bar-contacts .fa { margin-right: 4px; color: var(--color-accent); }
.top-bar-social { display: flex; align-items: center; gap: 0.6rem; }
.top-bar-social a { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.08); transition: background .2s; }
.top-bar-social a:hover { background: var(--color-primary); color: #fff; }

.site-header { background: var(--color-bg); border-bottom: 1px solid var(--color-border); position: relative; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.site-branding { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.site-title { font-size: 1.35rem; font-weight: 700; margin: 0; color: var(--color-primary); letter-spacing: -0.02em; }
.site-description { font-size: 0.82rem; color: var(--color-text-light); margin: 0; }
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.main-navigation > ul > li { position: relative; }
.main-navigation > ul > li > a { display: block; padding: 0.7em 1em; color: var(--color-text); font-weight: 500; font-size: 0.95rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current_page_item > a { color: var(--color-primary); border-bottom-color: var(--color-primary); text-decoration: none; }
/* The7 风格下拉子菜单 */
.main-navigation ul ul { display: none; position: absolute; top: 100%; left: 0; z-index: 999; min-width: 220px; background: #fff; border: 1px solid var(--color-border); border-top: 2px solid var(--color-primary); box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 4px 0; gap: 0; border-radius: 0 0 var(--radius) var(--radius); }
.main-navigation li { position: relative; }
.main-navigation li:hover > ul, .main-navigation li:focus-within > ul { display: block; }
.main-navigation ul ul li { width: 100%; }
.main-navigation ul ul a { display: block; padding: 0.55em 1.2em; font-weight: 400; font-size: 0.9rem; white-space: nowrap; color: var(--color-text); }
.main-navigation ul ul a:hover { background: var(--color-bg-light); color: var(--color-primary); text-decoration: none; }
.main-navigation ul ul ul { top: -2px; left: 100%; border-top-color: var(--color-accent); }
/* 菜单底部高亮下划线 */
.main-navigation > ul > li::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--color-primary); transition: width .25s ease, left .25s ease; pointer-events: none; }
.main-navigation > ul > li:hover::after,
.main-navigation > ul > li.current-menu-item::after,
.main-navigation > ul > li.current_page_item::after { width: 100%; left: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0.4em 0.8em; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.mini-search { flex-shrink: 0; margin-left: 0.75rem; }
.mini-search .searchform { display: flex; align-items: center; margin: 0; position: relative; }
.mini-search .searchform .searchform-s { width: 0; padding: 0.42em 0; border: none; border-bottom: 2px solid transparent; font-size: 0.9rem; background: transparent; color: var(--color-text); transition: width .3s ease, border-color .3s ease, padding .3s ease; outline: none; }
.mini-search .searchform .searchform-s.act,
.mini-search .searchform .searchform-s:focus { width: 200px; border-bottom-color: var(--color-primary); padding: 0.42em 0.8em; }
.mini-search .searchform .searchsubmit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mini-search .searchform .submit { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: none; border-radius: 50%; background: transparent; color: var(--color-text-light); text-decoration: none; font-size: 1rem; cursor: pointer; transition: color .2s, background .2s; }
.mini-search .searchform .submit:hover, .mini-search .searchform .submit.act { color: var(--color-primary); background: var(--color-bg-light); }
.site-content { padding: var(--space-4) 0; min-height: 60vh; }
.content-area { float: none; width: 100%; }
.sidebar-area { width: 100%; }
@media (min-width: 992px) {
    .layout-with-sidebar .content-area { float: left; width: 68%; padding-right: var(--space-4); }
    .layout-with-sidebar .sidebar-area { float: right; width: 32%; }
}
.site-footer { background: var(--color-footer-bg); color: var(--color-footer-text); padding: var(--space-5) 0 0; font-size: 0.9rem; }
.site-footer a { color: #cdd4de; }
.site-footer a:hover { color: #ffffff; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.footer-widgets h3, .footer-widgets .widget-title { color: #ffffff; font-size: 1rem; margin-bottom: var(--space-2); }
.site-info { border-top: 1px solid rgba(255,255,255,0.1); padding: var(--space-2) 0; text-align: center; font-size: 0.8rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: var(--space-3); padding-bottom: var(--space-1); border-bottom: 1px solid var(--color-border); }
.breadcrumbs a { color: var(--color-text-light); } .breadcrumbs a:hover { color: var(--color-primary); } .breadcrumbs .separator { margin: 0 0.4em; color: #b0b6c0; }
.post-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-3); box-shadow: var(--shadow); transition: box-shadow var(--transition); }
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.post-card .entry-title { font-size: 1.25rem; margin-bottom: var(--space-1); }
.post-card .entry-meta { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: var(--space-2); }
.post-card .entry-thumbnail { margin-bottom: var(--space-2); overflow: hidden; border-radius: var(--radius); }
.post-card .entry-thumbnail img { width: 100%; display: block; transition: transform 0.3s ease; }
/* 特色图片尺寸统一：固定容器高度 + 居中裁切（配合 iheir-card 640x400 硬裁，双保险） */
.post-card .entry-thumbnail,
.iheir-blog-list .entry-thumbnail,
.iheir-portfolio-list .entry-thumbnail,
.iheir-blog-grid .entry-thumbnail,
.iheir-portfolio-grid .entry-thumbnail,
.iheir-team-grid .entry-thumbnail { height: 200px; }
.post-card .entry-thumbnail img,
.iheir-blog-list .entry-thumbnail img,
.iheir-portfolio-list .entry-thumbnail img,
.iheir-blog-grid .entry-thumbnail img,
.iheir-portfolio-grid .entry-thumbnail img,
.iheir-team-grid .entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 992px) {
    .post-card .entry-thumbnail,
    .iheir-blog-list .entry-thumbnail,
    .iheir-portfolio-list .entry-thumbnail,
    .iheir-blog-grid .entry-thumbnail,
    .iheir-portfolio-grid .entry-thumbnail,
    .iheir-team-grid .entry-thumbnail { height: 180px; }
}
@media (max-width: 480px) {
    .post-card .entry-thumbnail,
    .iheir-blog-list .entry-thumbnail,
    .iheir-portfolio-list .entry-thumbnail,
    .iheir-blog-grid .entry-thumbnail,
    .iheir-portfolio-grid .entry-thumbnail,
    .iheir-team-grid .entry-thumbnail { height: 150px; }
}
.post-card:hover .entry-thumbnail img { transform: scale(1.02); }
.btn { display: inline-block; background: var(--color-primary); color: #fff !important; padding: 0.6em 1.4em; border-radius: var(--radius); font-weight: 500; text-decoration: none; transition: background var(--transition); }
.btn:hover { background: var(--color-primary-dark); }
.pagination { margin: var(--space-4) 0; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 0.4em 0.9em; margin: 0 0.2em; border: 1px solid var(--color-border); border-radius: var(--radius); color: var(--color-text); }
.pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.search-form { display: flex; gap: 0.5rem; }
.search-form input[type="search"] { flex: 1; padding: 0.6em 0.9em; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 0.95rem; }
.search-form button { background: var(--color-primary); color: #fff; border: none; border-radius: var(--radius); padding: 0 1.2em; cursor: pointer; }
.sidebar-widget { margin-bottom: var(--space-3); }
.sidebar-widget .widget-title { font-size: 1.05rem; padding-bottom: 0.5em; border-bottom: 2px solid var(--color-primary); margin-bottom: var(--space-2); }
.sidebar-widget ul { list-style: none; padding-left: 0; }
.sidebar-widget ul li { padding: 0.35em 0; border-bottom: 1px dashed var(--color-border); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; background: var(--color-primary); color: #fff; padding: 0.6em 1.2em; top: 0; left: 0; z-index: 9999; text-decoration: none; }
pre, code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
pre { background: #f6f8fa; border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-2); overflow-x: auto; margin-bottom: var(--space-2); }
@media (max-width: 991px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .layout-with-sidebar .content-area, .layout-with-sidebar .sidebar-area { float: none; width: 100%; padding-right: 0; }
    .sidebar-area { margin-top: var(--space-4); }
}
@media (max-width: 768px) {
    html { font-size: 15px; }
    .nav-toggle { display: inline-block; }
    .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { flex-direction: column; gap: 0; padding: var(--space-1) var(--space-2); }
    .main-navigation ul li { border-bottom: 1px solid var(--color-border); }
    .main-navigation ul li:last-child { border-bottom: none; }
    .main-navigation a { padding: 0.8em 0; }
    /* 移动端子菜单：从下拉改为平铺展开 */
    .main-navigation ul ul { display: block; position: static; box-shadow: none; border: 0; border-left: 2px solid var(--color-border); margin: 0 0 0 1rem; padding: 0 0 0 0.5rem; background: transparent; min-width: 0; }
    .main-navigation ul ul a { padding: 0.6em 0.5em; white-space: normal; }
    .top-bar { display: none; }
    .mini-search { display: none; }
    h1 { font-size: 1.6rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.15rem; }
    .site-header .container { min-height: 56px; }
    .site-title { font-size: 1.1rem; } .site-description { display: none; }
}
@media (max-width: 480px) {
    .post-card { padding: var(--space-2); } .site-content { padding: var(--space-3) 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
    .site-header, .site-footer, .sidebar-area, .nav-toggle { display: none !important; }
    .content-area { float: none !important; width: 100% !important; }
    body { font-size: 12pt; color: #000; }
}

/* ============================================================
   v2.0 新增：The7 短代码兼容层
   ============================================================ */

/* dt_banner / dt_gap / dt_divider */
.shortcode-banner { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 20px; background-repeat: no-repeat; background-size: cover; background-position: center; }
.shortcode-banner-bg { padding: 10px; box-sizing: border-box; }
.shortcode-banner-inside { box-sizing: border-box; overflow: hidden; text-align: center; vertical-align: middle; }
.shortcode-banner-inside p { margin: 0; }
.dt-divider { height: 1px; background: #e4e4e4; margin: 20px 0; clear: both; }
.gap { display: block; width: 100%; clear: both; }

/* dt_button */
.dt-btn, .more-link { display: inline-block; padding: 10px 22px; background: var(--color-primary); color: #fff !important; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: background .25s ease; }
.dt-btn:hover, .more-link:hover { background: var(--color-primary-dark); color: #fff; }
.dt-btn-s { padding: 6px 14px; font-size: 13px; }
.dt-btn-m { padding: 10px 22px; font-size: 14px; }
.dt-btn-l { padding: 14px 30px; font-size: 16px; }
.btn-blue { background: var(--color-primary); } .btn-dark-blue { background: #123c73; } .btn-green { background: #3b7a4e; } .btn-dark-green { background: #2d5f3c; } .btn-red { background: #c0392b; } .btn-berry { background: #8e44ad; } .btn-orange { background: #e67e22; } .btn-yellow { background: #f1c40f; color: #333 !important; } .btn-pink { background: #e84393; } .btn-violet { background: #6c5ce7; } .btn-black { background: #2d3436; } .btn-gray { background: #636e72; } .btn-white { background: #fff; color: #333 !important; border: 1px solid #ddd; }
.btn-berry:hover, .btn-green:hover, .btn-red:hover, .btn-orange:hover, .btn-pink:hover, .btn-violet:hover, .btn-black:hover, .btn-gray:hover { filter: brightness(0.9); }
.details.more-link { background: none; color: var(--color-primary) !important; padding: 0; }
.details.more-link:hover { color: var(--color-primary-dark); }

/* dt_list */
.standard-arrow, .standard-number-list, .image-arrow { list-style: none; margin: 0 0 20px 0; padding: 0; }
.standard-arrow .dt-list-item, .standard-number-list .dt-list-item, .image-arrow .dt-list-item { position: relative; padding: 6px 0 6px 28px; border-bottom: 0; }
.standard-arrow .dt-list-item:before { content: "\203A"; position: absolute; left: 8px; top: 4px; color: var(--color-primary); font-weight: 700; font-size: 18px; line-height: 1.4; }
.standard-number-list { counter-reset: dt-num; }
.standard-number-list .dt-list-item { counter-increment: dt-num; padding-left: 36px; }
.standard-number-list .dt-list-item:before { content: counter(dt-num) "."; position: absolute; left: 4px; top: 6px; color: var(--color-primary); font-weight: 700; }
.list-divider .dt-list-item { border-bottom: 1px solid #ececec; padding-bottom: 10px; margin-bottom: 8px; }
.list-divider .dt-list-item:last-child { border-bottom: 0; }
.image-arrow .dt-list-item { padding-left: 0; }
.image-arrow .list-img { float: left; margin-right: 12px; max-width: 48px; }

/* dt_benefits_vc */
.benefits-grid { margin-bottom: 20px; }
.benefits-grid .wf-cell { text-align: center; margin-bottom: 20px; }
.benefits-grid .borders { position: relative; padding: 0 15px 20px; }
.benefits-grid .borders:after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: #eee; }
.benefits-grid .wf-cell:last-child .borders:after { display: none; }
.benefits-grid-ico { display: inline-block; margin-bottom: 8px; font-size: 44px; line-height: 1; color: var(--color-primary); }
.benefits-grid-ico img { max-width: 80px; height: auto; }
.icons-bg .benefits-grid-ico { width: 90px; height: 90px; line-height: 90px; text-align: center; background: var(--color-bg-light); border-radius: 50%; }
.icons-bg .benefits-grid-ico img { max-width: 48px; vertical-align: middle; }
.benefits-grid h2, .benefits-grid h3, .benefits-grid h4, .benefits-grid h5 { margin: 8px 0; }
.benefits-grid .text-normal { font-size: 14px; line-height: 1.7; color: #666; }
.benefits-grid .text-small { font-size: 13px; color: #777; }
.benefits-grid .text-big { font-size: 16px; color: #555; }
.benefits-style-one.benefits-grid .wf-cell { text-align: left; }
.benefits-style-one.benefits-grid .wf-td:first-child { width: 90px; padding-right: 12px; }

/* dt_logos */
.logos-grid { margin-bottom: 20px; }
.logos-grid .wf-cell { text-align: center; }
.logos-grid .borders { position: relative; padding: 10px; }
.logos-grid .borders:after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: #eee; }
.logos-grid .wf-cell:last-child .borders:after { display: none; }
.logos-grid img { max-width: 100%; height: auto; filter: grayscale(100%); opacity: .75; transition: all .3s ease; }
.logos-grid a:hover img { filter: grayscale(0); opacity: 1; }

/* dt_portfolio / dt_blog_posts */
.portfolio-grid, .shortcode-blog-posts { margin: 0 -5px; }
.portfolio-grid .wf-cell, .shortcode-blog-posts .wf-cell { padding: 0 5px; }
.portfolio-item, .blog-post { background: #fff; border: 1px solid #ececec; border-radius: var(--radius); overflow: hidden; padding: 0 0 14px; height: 100%; box-sizing: border-box; transition: box-shadow .25s ease, transform .25s ease; }
.portfolio-item:hover, .blog-post:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.portfolio-thumb img, .blog-thumb img { width: 100%; height: auto; display: block; }
.portfolio-title, .blog-title { font-size: 15px; margin: 10px 14px 6px; }
.portfolio-title a, .blog-title a { color: #222; text-decoration: none; }
.portfolio-title a:hover, .blog-title a:hover { color: var(--color-primary); }
.portfolio-meta { font-size: 12px; color: #999; margin: 0 14px 6px; }
.portfolio-excerpt, .blog-excerpt { font-size: 13px; color: #666; margin: 0 14px 8px; line-height: 1.6; }
.blog-meta { font-size: 12px; color: #999; margin: 0 14px 8px; }
.portfolio-item .details, .blog-post .details { margin: 0 14px; }

/* dt_blog_posts_small */
.dt-blog-posts-small { list-style: none; margin: 0; padding: 0; }
.dt-blog-posts-small li { padding: 6px 0; border-bottom: 1px dashed #e8e8e8; }
.dt-blog-posts-small li:last-child { border-bottom: 0; }
.dt-blog-posts-small a { color: #444; text-decoration: none; font-size: 14px; }
.dt-blog-posts-small a:hover { color: var(--color-primary); }

/* dt_sc_heading / dt-quote / dt-highlight / dt-call-to-action */
.dt-sc-heading { margin: 18px 0 12px; color: #1a2b39; }
.dt-quote { border-left: 4px solid var(--color-primary); background: #f8f9fb; padding: 14px 18px; margin: 16px 0; color: #555; font-style: italic; }
.dt-highlight { padding: 1px 6px; border-radius: 2px; }
.dt-call-to-action { background: #f0f4fa; border: 1px solid #d7e2f0; border-radius: var(--radius); padding: 20px 24px; margin: 18px 0; text-align: center; }

/* WPBakery 基础兼容 */
.vc_row.vc_row-fluid { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.vc_row-fluid:after, .vc_row-fluid:before { content: ""; display: table; }
.vc_column_container { box-sizing: border-box; padding: 0 15px; }
.vc_col-sm-12 { width: 100%; } .vc_col-sm-9 { width: 75%; } .vc_col-sm-8 { width: 66.6666%; } .vc_col-sm-6 { width: 50%; } .vc_col-sm-4 { width: 33.3333%; } .vc_col-sm-3 { width: 25%; } .vc_col-sm-2 { width: 16.6666%; } .vc_col-sm-10 { width: 83.3333%; }
.vc_empty_space { clear: both; }
.wpb_single_image img { max-width: 100%; height: auto; }

/* dt-accordion (The7 手风琴) */
.dt-accordion { margin: 14px 0; }
.dt-accordion-item { border: 1px solid var(--color-border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.dt-accordion-head { margin: 0; padding: 12px 18px; background: var(--color-bg-light); font-size: 15px; cursor: pointer; position: relative; border: none; width: 100%; text-align: left; font-weight: 600; color: var(--color-text); }
.dt-accordion-head:after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--color-primary); font-weight: 700; font-size: 1.2rem; }
.dt-accordion-head.is-open:after { content: "\2212"; }
.dt-accordion-body { padding: 12px 18px; border-top: 1px solid #eee; }

/* 响应式短代码 */
@media (max-width: 992px) {
    .wf-1-4 { width: 50%; } .wf-1-5 { width: 50%; }
    .vc_col-sm-8, .vc_col-sm-9, .vc_col-sm-10 { width: 100%; }
}
@media (max-width: 768px) {
    .wf-1-2, .wf-1-3, .wf-2-3, .wf-3-4 { width: 100%; }
    .wf-1-4 { width: 50%; } .wf-td { display: block; } .wf-table { display: block; }
    .benefits-style-one.benefits-grid .wf-td:first-child { width: auto; }
}
@media (max-width: 480px) {
    .wf-1-4 { width: 100%; }
    .vc_col-sm-2, .vc_col-sm-3, .vc_col-sm-4, .vc_col-sm-6 { width: 100%; }
}

/* ============================================================
 * 关键修复：确保容器正确闭合浮动/弹性布局，防止内容跑到页脚
 * ============================================================ */

/* 1. 通用 clearfix - 应用到所有短代码容器 */
.clearfix::after,
.wf-container::after,
.vc_row-fluid::after,
.vc_row::after,
.benefits-grid::after,
.logos-grid::after,
.portfolio-grid::after,
.shortcode-blog-posts::after,
.dt-accordion::after,
.dt-tabs::after,
.dt-pricing-table::after,
.dt-team::after,
.dt-testimonials::after,
.dt-clients::after,
.dt-clients-carousel::after,
.dt-tabs-vertical::after,
.vc_grid::after,
.vc_carousel::after,
.vc_posts_grid::after,
.entry-content::after,
.site-main::after,
.site-content::after,
.content-area::after,
.the7-legacy-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 2. 强制包含浮动子元素 - 防止父级高度塌陷 */
.site-main,
.site-content,
.content-area,
.entry-content,
.the7-legacy-content {
    overflow: hidden;  /* 自动包含浮动 */
}

/* 3. WPBakery 列容器修复 */
.vc_column_container {
    overflow: hidden;
}
.vc_row,
.vc_row_inner {
    overflow: hidden;
}

/* 4. 短代码特定容器 */
.shortcode-banner,
.dt-call-to-action,
.dt-quote,
.dt-accordion-item,
.dt-tab-content,
.dt-pricing-column,
.dt-team-member,
.dt-testimonial,
.dt-icon-box,
.dt-counter,
.dt-progress-bar,
.vc_message,
.vc_alert,
.vc_info_box {
    overflow: hidden;
}

/* 5. 确保页脚不会被内容推高/覆盖 */
.site-footer {
    clear: both;
    position: relative;
    z-index: 10;
}

/* 6. 防止内容区最小高度导致页脚错位 */
.site-content {
    min-height: auto;  /* 移除 60vh 限制，避免空页面页脚偏移 */
}

/* 7. 首页特定修复 */
.home .site-content,
.front-page .site-content {
    min-height: auto;
}

/* 8. 文章/页面内容区 */
.single .entry-content,
.page .entry-content {
    overflow: hidden;
}

/* ============================================================
 * 9. v2.8 模板样式
 * ============================================================ */
/* 全宽页面模板：去掉容器宽度限制 */
.site-content-fullwidth .entry-content-fullwidth {
    width: 100%;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.site-content-fullwidth .entry-header-center {
    text-align: center;
}

/* 联系我们模板：左右两栏布局 */
.contact-page-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 8px;
}
.contact-page-main {
    flex: 1 1 60%;
    min-width: 0;
}
.contact-page-aside {
    flex: 0 0 300px;
    width: 300px;
}
.contact-info-card {
    background: var(--color-bg-light, #f5f7fa);
    border: 1px solid var(--color-border, #e5e8ec);
    border-radius: 6px;
    padding: 24px 22px;
    position: sticky;
    top: 24px;
}
.contact-info-title {
    font-size: 1.15rem;
    color: var(--color-primary, #1a5fb4);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary, #1a5fb4);
    margin-bottom: 16px;
}
.contact-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--color-border, #e5e8ec);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i {
    color: var(--color-primary, #1a5fb4);
    font-size: 16px;
    width: 20px;
    text-align: center;
    margin-top: 3px;
}
.contact-info-list strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light, #666);
    font-weight: 500;
}
.contact-info-list span {
    font-size: 0.95rem;
    color: var(--color-text, #333);
}

@media (max-width: 991px) {
    .contact-page-wrap { flex-direction: column; }
    .contact-page-aside { flex: 1 1 auto; width: 100%; }
    .contact-info-card { position: static; }
}

/* 联系我们页 WPBakery 内容不被裁切（覆盖下方 overflow:hidden 规则） */
.page-template-template-contact .single .entry-content,
.page-template-template-contact .page .entry-content {
    overflow: visible;
}

/* ============================================================
   v2.9 新增：The7 页面模板（Blog/Portfolio/Team）网格样式
   ============================================================ */
.iheir-blog-list,
.iheir-portfolio-list { display: flex; flex-direction: column; gap: var(--space-3); }

.iheir-list-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.iheir-list-item .entry-thumbnail { flex: 0 0 240px; max-width: 240px; margin-bottom: 0; }
.iheir-list-item .iheir-list-body { flex: 1 1 auto; }
@media (max-width: 640px) {
    .iheir-list-item { flex-direction: column; }
    .iheir-list-item .entry-thumbnail { flex: 1 1 auto; max-width: 100%; }
}

.iheir-blog-grid,
.iheir-portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.iheir-blog-grid .post-card,
.iheir-portfolio-grid .post-card { margin-bottom: 0; display: flex; flex-direction: column; }
.iheir-blog-grid .entry-footer,
.iheir-portfolio-grid .entry-footer { margin-top: auto; padding-top: var(--space-2); }
@media (max-width: 991px) {
    .iheir-blog-grid, .iheir-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .iheir-blog-grid, .iheir-portfolio-grid { grid-template-columns: 1fr; }
}

/* 团队网格 */
.iheir-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
@media (max-width: 991px) { .iheir-team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .iheir-team-grid { grid-template-columns: 1fr; } }
.team-card { margin-bottom: 0; text-align: center; }
.team-position { color: var(--color-primary, #1a5fb4); font-weight: 600; font-size: 0.95rem; margin-bottom: var(--space-2); }
.team-desc { font-size: 0.9rem; color: var(--color-text-light, #666); }

/* 产品卡片分类标签 */
.portfolio-card .entry-meta { margin-bottom: var(--space-1); }

/* =========================================
   The7 兼容：两栏等高布局 + 网格系统 (v2.12)
   ========================================= */

/* vc_row 等高容器 - 核心修复：让左右列高度一致 */
.vc_row.vc_row-o-equal-height,
.vc_row.vc_row-o-content-middle,
.vc_row.vc_row-o-content-top,
.vc_row.vc_row-o-content-bottom {
    display: flex;
    flex-wrap: wrap;
}

/* 列容器 flex 子项 */
.vc_row.vc_row-o-equal-height .vc_column_container,
.vc_row.vc_row-o-content-middle .vc_column_container,
.vc_row.vc_row-o-content-top .vc_column_container,
.vc_row.vc_row-o-content-bottom .vc_column_container {
    display: flex;
    flex-direction: column;
}

/* 列内部内容区撑满高度 */
.vc_row.vc_row-o-equal-height .wpb_column,
.vc_row.vc_row-o-content-middle .wpb_column,
.vc_row.vc_row-o-content-top .wpb_column,
.vc_row.vc_row-o-content-bottom .wpb_column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* vc_column_inner 内容撑满 */
.vc_row.vc_row-o-equal-height .vc_column-inner,
.vc_row.vc_row-o-content-middle .vc_column-inner,
.vc_row.vc_row-o-content-top .vc_column-inner,
.vc_row.vc_row-o-content-bottom .vc_column-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* 内容包裹器 flex:1 撑开 */
.vc_row.vc_row-o-equal-height .vc_column_inner,
.vc_row.vc_row-o-content-middle .vc_column_inner,
.vc_row.vc_row-o-content-top .vc_column_inner,
.vc_row.vc_row-o-content-bottom .vc_column_inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 图片列：图片撑满高度 object-fit:cover */
.vc_row.vc_row-o-equal-height .vc_single_image-img,
.vc_row.vc_row-o-equal-height .wpb_single_image img {
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    width: 100%;
}

/* 文本列：内容垂直居中或顶部对齐 */
.vc_row.vc_row-o-content-middle .vc_column_inner > *:first-child { margin-top: auto; }
.vc_row.vc_row-o-content-middle .vc_column_inner > *:last-child { margin-bottom: auto; }
.vc_row.vc_row-o-content-top .vc_column_inner { justify-content: flex-start; }
.vc_row.vc_row-o-content-bottom .vc_column_inner { justify-content: flex-end; }

/* The7 标准网格：wf-container / wf-cell (已在 the7-shortcodes.css 有，这里作兜底) */
.wf-container { margin: 0 -10px; display: flex; flex-wrap: wrap; }
.wf-cell { padding: 0 10px; box-sizing: border-box; }
.wf-1-2 { width: 50%; }
.wf-1-3 { width: 33.3333%; }
.wf-1-4 { width: 25%; }
.wf-1-5 { width: 20%; }
.wf-1-6 { width: 16.6666%; }

/* 响应式断点 */
@media (max-width: 1200px) {
    .wf-cell { width: 50% !important; }
}
@media (max-width: 768px) {
    .wf-cell { width: 100% !important; }
    .vc_row.vc_row-o-equal-height { display: block; }
    .vc_row.vc_row-o-equal-height .vc_column_container { display: block; }
}

/* 列表/归档页：文章/产品卡片统一高度 */
.blog-list-item,
.product-list-item,
.post-type-archive-product .product,
.archive .post {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-list-item .entry-thumbnail,
.product-list-item .entry-thumbnail {
    flex-shrink: 0;
}
.blog-list-item .entry-content,
.product-list-item .entry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-list-item .entry-title,
.product-list-item .entry-title {
    margin-top: 0;
}

/* 修复 dt_gap 高度渲染 */
.dt_gap { display: block; clear: both; }
.dt_gap[style*="height"] { height: auto !important; min-height: inherit; }

