/*
Theme Name: Martfury Child
Theme URI: http://drfuri.com/unero
Author: DrFuri
Author URI: http://drfuri.com
Description: Martfury Child Theme.
Version: 1.0
License: GNU General Public License v2+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: martfury
Domain Path: /lang/
Tags: one-column, two-columns, left-sidebar, right-sidebar, full-width-template, post-formats, theme-options, threaded-comments, translation-ready
Template: martfury
*/

/* 你的功能代码 放在这里 */
.hide-submenu+.sub-menu{display:none!important;}

/* PC 端主导航：Pharmacy / MDS 靠近右边缘，三级菜单向右展开会超出屏幕。
   将这两个菜单项的三级子菜单改为向左展开，并紧贴父菜单项以保证 hover 连续。 */
.site-header .primary-nav .menu > li.menu-item-17599 > ul > li > ul,
.site-header .primary-nav .menu > li.menu-item-25782 > ul > li > ul {
    left: auto;
    right: 100%;
    top: 0;
    transition: right 0.3s ease 0s, opacity 0.3s;
}

.site-header .primary-nav .menu > li.menu-item-17599 > ul > li:hover > ul,
.site-header .primary-nav .menu > li.menu-item-25782 > ul > li:hover > ul {
    left: auto;
    right: 100%;
    top: 0;
}

/* hover 桥接：二级菜单项左侧透明区域，保证从二级滑向三级菜单不丢失 hover */
.site-header .primary-nav .menu > li.menu-item-17599 > ul > li,
.site-header .primary-nav .menu > li.menu-item-25782 > ul > li {
    position: relative;
}

.site-header .primary-nav .menu > li.menu-item-17599 > ul > li:not(:hover)::before,
.site-header .primary-nav .menu > li.menu-item-25782 > ul > li:not(:hover)::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    width: 20px;
    height: 100%;
}

/* 仅首页手机端，图片强制两列并排（修正：作用于 Elementor 图片区块，而非 #page） */
@media (max-width: 767px) {
    /* 只对首页生效，不影响其他页面 */
    .home {
        display: block;
    }

    /* Elementor 图片 widget 两列并排 */
    .home .elementor-widget-image {
        width: 48% !important;
        margin-bottom: 2% !important;
        display: inline-block;
        vertical-align: top;
    }

    /* 图片自适应 */
    .home img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
}

/* ========== eVoice Medical Voice 页面 ========== */
/* 标题已由模板渲染（dh-evoice-header 内），隐藏主题 page-header 的重复标题 */
.page-id-25557 .page-header-page .entry-title {
    display: none;
}

.dh-evoice-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.dh-evoice-header {
    text-align: center;
    margin-bottom: 30px;
}

.dh-evoice-title {
    font-size: 34px;
    font-weight: 700;
    color: #1a3a6b;
    margin: 0 0 8px;
}

.dh-evoice-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.dh-evoice-cols {
    display: flex;
    gap: 24px;
}

.dh-evoice-col {
    flex: 1;
    min-width: 0;
}

.dh-evoice-panel {
    background: #f7f9fc;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    padding: 22px;
    height: 100%;
}

.dh-evoice-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a3a6b;
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a3a6b;
}

.dh-evoice-panel-desc {
    font-size: 13px;
    color: #777;
    margin: 10px 0 16px;
}

.dh-evoice-panel-sub {
    font-size: 17px;
    font-weight: 600;
    color: #1a3a6b;
    margin: 22px 0 12px;
}

.dh-evoice-forumcats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dh-evoice-forumcat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 6px;
    padding: 10px 14px;
    text-decoration: none;
    transition: all .2s;
}

.dh-evoice-forumcat:hover {
    background: #1a3a6b;
    border-color: #1a3a6b;
}

.dh-evoice-forumcat-name {
    font-weight: 600;
    color: #1a3a6b;
}

.dh-evoice-forumcat:hover .dh-evoice-forumcat-name {
    color: #fff;
}

.dh-evoice-forumcat-count {
    font-size: 12px;
    color: #999;
}

.dh-evoice-forumcat:hover .dh-evoice-forumcat-count {
    color: #cfe0ff;
}

.dh-evoice-blogcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dh-evoice-blogcat {
    display: inline-block;
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #1a3a6b;
    text-decoration: none;
    transition: all .2s;
}

.dh-evoice-blogcat:hover {
    background: #1a3a6b;
    color: #fff;
    border-color: #1a3a6b;
}

.dh-evoice-latest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dh-evoice-latest-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #e0e5ee;
}

.dh-evoice-latest-list li:last-child {
    border-bottom: none;
}

.dh-evoice-latest-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    flex: 1;
    padding-right: 10px;
}

.dh-evoice-latest-list a:hover {
    color: #1a3a6b;
    text-decoration: underline;
}

.dh-evoice-latest-type,
.dh-evoice-latest-date {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

.dh-evoice-empty {
    color: #999;
    font-size: 14px;
}

.dh-evoice-more {
    display: inline-block;
    margin-top: 14px;
    color: #1a3a6b;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.dh-evoice-more:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dh-evoice-cols {
        flex-direction: column;
    }
}

/* ========== Medical Blog 页面 ========== */
.dh-blog-cats-section {
    margin-bottom: 30px;
}

.dh-blog-cats-big {
    margin-top: 12px;
}

.dh-blog-cat-count {
    font-size: 11px;
    color: #999;
}

.dh-blog-posts-section {
    padding-top: 10px;
}

.dh-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 16px;
}

.dh-blog-card {
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.dh-blog-card:hover {
    box-shadow: 0 4px 16px rgba(26, 58, 107, .1);
}

.dh-blog-card-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.dh-blog-card-body {
    padding: 14px 16px 16px;
}

.dh-blog-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
}

.dh-blog-card-title a {
    color: #1a3a6b;
    text-decoration: none;
}

.dh-blog-card-title a:hover {
    color: #0f2550;
    text-decoration: underline;
}

.dh-blog-card-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.dh-blog-card-meta a {
    color: #1a3a6b;
}

.dh-blog-card-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.dh-blog-pagination {
    margin-top: 28px;
    text-align: center;
}

.dh-blog-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #e3e8f0;
    border-radius: 4px;
    color: #1a3a6b;
    text-decoration: none;
    background: #fff;
}

.dh-blog-pagination .page-numbers.current {
    background: #1a3a6b;
    color: #fff;
    border-color: #1a3a6b;
}

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

@media (max-width: 600px) {
    .dh-blog-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   Multilingual Comment CTA (17 languages)
   ============================================ */
.dh-comment-cta {
    margin: 28px 0 10px;
    padding: 0;
}

.dh-comment-cta-inner {
    background: linear-gradient(135deg, #f4f8ff 0%, #eef3fb 100%);
    border: 1px solid #dde6f5;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(26, 58, 107, 0.06);
}

.dh-comment-cta-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.dh-comment-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dh-comment-cta-intro {
    font-size: 13px;
    color: #5b6b84;
}

.dh-comment-cta-title {
    font-size: 19px;
    font-weight: 600;
    color: #1a3a6b;
    line-height: 1.3;
}

.dh-comment-cta-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.dh-comment-cta-lang-label {
    font-size: 13px;
    color: #5b6b84;
    white-space: nowrap;
}

.dh-comment-cta-select {
    border: 1px solid #c9d5ea;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    background: #fff;
    color: #1a3a6b;
    cursor: pointer;
    max-width: 220px;
}

.dh-comment-cta-body {
    border-top: 1px dashed #cdd9ec;
    padding-top: 14px;
    display: block;
}

.dh-comment-cta-body[hidden] {
    display: none;
}

.dh-comment-cta-body-title {
    display: block;
    font-size: 15px;
    color: #1a3a6b;
    margin-bottom: 4px;
}

.dh-comment-cta-body-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #34495e;
}

.dh-comment-cta-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #cdd9ec;
}

.dh-comment-cta-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1a3a6b;
    border: 1px solid #1a3a6b;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.dh-comment-cta-btn:hover,
.dh-comment-cta-btn:focus {
    background: #0f2550;
    border-color: #0f2550;
    color: #fff;
    text-decoration: none;
}

.dh-comment-cta-btn:focus-visible {
    outline: 2px solid #1a3a6b;
    outline-offset: 2px;
}

/* ============================================
   Review Enhancements (sort toolbar / language / helpful)
   ============================================ */
.dh-review-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    font-size: 13px;
}

.dh-review-toolbar-label,
.dh-review-toolbar-lang {
    color: #5b6b84;
    font-weight: 600;
}

.dh-review-sort {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #d9e2f0;
    border-radius: 4px;
    color: #1a3a6b;
    text-decoration: none;
    background: #fff;
    transition: all .15s ease;
}

.dh-review-sort:hover,
.dh-review-sort-active {
    background: #1a3a6b;
    color: #fff;
    border-color: #1a3a6b;
}

.dh-review-toolbar-lang {
    margin-left: 10px;
}

.dh-review-lang-filter {
    border: 1px solid #d9e2f0;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 13px;
    background: #fff;
    color: #1a3a6b;
}

.dh-review-extra {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.dh-review-lang {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #1a3a6b;
    background: #eef3fb;
    border: 1px solid #dde6f5;
    border-radius: 20px;
    padding: 2px 10px;
    letter-spacing: .3px;
}

.dh-review-helpful {
    display: inline-flex;
}

.dh-helpful-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5b6b84;
    background: #f6f8fb;
    border: 1px solid #e0e6ef;
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all .15s ease;
}

.dh-helpful-btn:hover {
    background: #eef3fb;
    color: #1a3a6b;
    border-color: #c9d5ea;
}

.dh-helpful-btn[disabled] {
    opacity: .55;
    cursor: default;
}

.dh-helpful-btn .dh-helpful-count {
    font-weight: 700;
    color: #1a3a6b;
}

@media (max-width: 600px) {
    .dh-review-toolbar {
        gap: 6px;
    }
    .dh-review-toolbar-lang {
        margin-left: 0;
        width: 100%;
    }
}

/* ============================================
   Social Share Buttons
   ============================================ */
.dh-share-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 8px;
    padding-top: 18px;
    border-top: 1px solid #eef1f6;
}

.dh-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #5b6b84;
}

.dh-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dh-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e0e6ef;
    background: #f7f9fc;
    color: #3c5068;
    text-decoration: none;
    cursor: pointer;
    transition: all .15s ease;
    line-height: 1.4;
}

.dh-share-btn:hover {
    background: #1a3a6b;
    border-color: #1a3a6b;
    color: #fff;
}

.dh-share-copy {
    border-style: dashed;
}

@media (max-width: 600px) {
    .dh-share-label {
        width: 100%;
    }
}

/* ============================================
   博客与论坛页面字体统一（与站点其他页面一致）
   ============================================ */
/* Medical Blog 页面卡片 */
.dh-blog-card-title {
    font-size: 18px;
}

.dh-blog-card-meta {
    font-size: 14px;
}

.dh-blog-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
}

.dh-evoice-latest-list a {
    font-size: 16px;
}

.dh-evoice-latest-type,
.dh-evoice-latest-date {
    font-size: 13px;
}

.dh-evoice-panel-desc {
    font-size: 15px;
}

.dh-evoice-blogcat {
    font-size: 15px;
}

.dh-evoice-more {
    font-size: 15px;
}

/* 论坛页面（bbPress）字体统一 */
#bbpress-forums {
    font-size: 16px;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
    font-size: 16px;
}

#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-content,
#bbpress-forums .bbp-reply-content {
    font-size: 16px;
    line-height: 1.7;
}

#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a,
#bbpress-forums .bbp-forum-post-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count {
    font-size: 14px;
}

#bbpress-forums .bbp-header,
#bbpress-forums .bbp-footer {
    font-size: 15px;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
    font-size: 14px;
}

#bbpress-forums .bbp-author-name,
#bbpress-forums .bbp-author-role {
    font-size: 14px;
}

#bbpress-forums .bbp-topic-tags a,
#bbpress-forums .bbp-topic-tags {
    font-size: 14px;
}

#bbpress-forums .bbp-reply-title,
#bbpress-forums .bbp-topic-title {
    font-size: 16px;
}

#bbpress-forums .bbp-breadcrumb {
    font-size: 15px;
}

#bbpress-forums textarea,
#bbpress-forums input[type="text"],
#bbpress-forums select {
    font-size: 15px;
}

/* Shop directory hub */
.dh-entry-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dh-entry-col { background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 18px 20px; }
.dh-entry-title { font-size: 20px; line-height: 1.3; margin: 0 0 12px; }
.dh-entry-title a { color: #1d2433; text-decoration: none; }
.dh-entry-title a:hover { color: #c8102e; }
.dh-entry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; line-height: 1.45; }
.dh-entry-list a { color: #445; text-decoration: none; }
.dh-entry-list a:hover { color: #c8102e; text-decoration: underline; }
@media (max-width: 767px) { .dh-entry-section { grid-template-columns: 1fr; } .dh-entry-list { grid-template-columns: 1fr; } }
.dh-shop-hub { width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px 0 48px; }
.dh-hub-section { margin: 0 0 58px; }
.dh-hub-head { margin-bottom: 22px; }
.dh-hub-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #c8102e; margin-bottom: 8px; }
.dh-hub-head h2 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; color: #1d2433; }
.dh-hub-head p { font-size: 15px; line-height: 1.65; color: #667; margin: 0; max-width: 780px; }
.dh-dept-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dh-dept-card { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border: 1px solid #e6e8ec; border-radius: 12px; background: #fff; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.dh-dept-card:hover { border-color: #c8102e; box-shadow: 0 10px 26px rgba(0,0,0,.08); transform: translateY(-2px); }
.dh-dept-initial { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #fdecef; color: #c8102e; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; }
.dh-dept-body { display: flex; flex-direction: column; min-width: 0; }
.dh-dept-name { font-size: 14px; font-weight: 700; color: #1d2433; line-height: 1.35; }
.dh-dept-meta { font-size: 12px; color: #8a93a3; margin-top: 3px; }
.dh-arrow { margin-left: auto; color: #c8102e; font-size: 16px; }
.dh-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dh-cat-card { background: #fff; border: 1px solid #e6e8ec; border-radius: 12px; padding: 18px 18px 14px; }
.dh-cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; text-decoration: none; border-bottom: 1px solid #f0f2f5; padding-bottom: 10px; }
.dh-cat-name { font-size: 16px; font-weight: 700; color: #1d2433; }
.dh-cat-top:hover .dh-cat-name { color: #c8102e; }
.dh-cat-count { font-size: 12px; color: #8a93a3; white-space: nowrap; }
.dh-cat-tree { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; line-height: 1.5; }
.dh-cat-tree li { margin: 5px 0; color: #556; }
.dh-cat-tree a { color: #445; text-decoration: none; }
.dh-cat-tree a:hover { color: #c8102e; text-decoration: underline; }
.dh-cat-tree .dh-cat-tree { margin: 5px 0 5px 10px; padding-left: 10px; border-left: 1px solid #eef0f3; font-size: 12.5px; }
.dh-cat-count { color: #9aa2b1; font-size: 11px; margin-left: 3px; }
@media (max-width: 1100px) { .dh-dept-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dh-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .dh-dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dh-cat-grid { grid-template-columns: 1fr; } .dh-hub-head h2 { font-size: 25px; } }
@media (max-width: 480px) { .dh-dept-grid { grid-template-columns: 1fr; } }
