/*
Theme Name: realcn
Template: kadence
*/



/* ============================================
   第一部分：全局字体设置（已排除图标干扰）
   ============================================ */

/* 英文及数字全局字体 */



/* ============================================
   第二部分：修复点赞图标字体（核心修复）
   ============================================ */

/* 
   方案 A：使用 WordPress 自带的 Dashicons（最稳妥）
   如果图标不是爱心，请改用方案 B 或 C
*/
body .oacs-spl-icon icon-heart2-filled  {
    font-family: "dashicons" !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   方案 B：使用插件自带的字体（如果方案 A 无效）
   ============================================ */

/*
body .oacs-spl-icon.icon-heart2-filled {
    font-family: "oacs-spl-icon", "oacs-spl-font", "dashicons", sans-serif !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
*/


/* ============================================
   方案 C：强制使用 Font Awesome（如果图标来自 FA）
   ============================================ */

/*
body .oacs-spl-icon.icon-heart2-filled {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    speak: none;
    font-style: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
*/


/* ============================================
   第三部分：图标额外样式微调（可选）
   ============================================ */

/* 如果图标显示后大小或位置不对，可以在这里调整 */
body .oacs-spl-icon.icon-heart2-filled {
    /* 颜色已在你的 HTML 内联样式中定义，这里不用重复 */
    /* 如果觉得图标偏上偏下，可以调整下面这行 */
    vertical-align: middle;
    /* 如果图标显示不完整，可以尝试下面这行 */
    /* display: inline-block; */
}

/* 统一设置所有 Dashicons 的颜色 */
.dashicons {
    color: #354574;
    font-size: 18px;
}

.footer-nav-column ul.footer-nav-list{
    margin: 0px !important ;
}

.widget-area ul{
    padding-left: 0px !important;
}

/* ===== 微信浏览器专用 - 强制重置列表边距 ===== */
.footer-nav-column .footer-nav-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    -webkit-padding-start: 0 !important;
    -webkit-margin-before: 0 !important;
    -webkit-margin-after: 0 !important;
    padding-inline-start: 0 !important;
    margin-inline-start: 0 !important;
}

.footer-nav-column .footer-nav-list li {
    margin: 0 !important;
    padding: 4px 0 !important;
    list-style: none !important;
    -webkit-margin-before: 0 !important;
    -webkit-margin-after: 0 !important;
}

/* 页脚列表去除圆点和左边距 */
ul.wp-block-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

ul.wp-block-list li {
    list-style: none !important;
}

/* 针对微信浏览器的额外重置 */
.footer-nav-column {
    margin: 0 !important;
    padding: 0 !important;
}

div.wp-block-group__inner-container{
    max-width: 2000px !important;
}

#primary .wp-block-group.alignfull .wp-block-group__inner-container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    /* 或者如果你只想改顶部，保留左右和底部 */
    /* padding: 0 20px 20px 20px !important; */
}

.popup-drawer .drawer-inner{
 background:#354574 !important;
}

/* ===== 语言切换器样式 ===== */

/* ===== 统一国旗尺寸（4:3 比例，视觉统一） ===== */

.custom-lang-switcher .selected-lang img,
.custom-lang-switcher .lang-options .lang-item img {
    width: 28px !important;
    height: 21px !important;       /* 直接固定高度为 21px */
    max-width: 28px !important;
    max-height: 21px !important;
    object-fit: cover;             /* 裁剪填充，视觉统一 */
    display: block;
    flex-shrink: 0;
}

/* 手机版 */
@media (max-width: 768px) {
    .custom-lang-switcher .selected-lang img,
    .custom-lang-switcher .lang-options .lang-item img {
        width: 24px !important;
        height: 18px !important;
        max-width: 24px !important;
        max-height: 18px !important;
    }
}

/* 整个切换器容器 */
.custom-lang-switcher {
    position: relative;
    display: inline-block;
    cursor: pointer;
    z-index: 9999;
    user-select: none;
}

/* 当前选中的语言显示区 */
.custom-lang-switcher .selected-lang {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    min-height: 40px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    gap: 6px;
    cursor: pointer;
}

/* ★ 当前国旗：统一用高度控制，宽度自适应 ★ */
.custom-lang-switcher .selected-lang img {
    width: auto;
    height: 28px;
    max-height: 28px;
    display: block;
    pointer-events: none;
}

/* 下拉箭头 */
.custom-lang-switcher .selected-lang .arrow {
    font-size: 11px;
    color: #888;
    transition: transform 0.2s;
    pointer-events: none;
    line-height: 1;
}

/* 展开时箭头旋转 */
.custom-lang-switcher.active .selected-lang .arrow {
    transform: rotate(180deg);
}

/* 下拉选项列表（默认隐藏） */
.custom-lang-switcher .lang-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 70px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    list-style: none;
    padding: 4px 0;
    margin: 4px 0 0 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    z-index: 99999;
}

/* 展开时显示 */
.custom-lang-switcher.active .lang-options {
    display: block;
}

/* 每个语言选项 */
.custom-lang-switcher .lang-options .lang-item {
    padding: 6px 12px;
    margin: 0;
    text-align: center;
    list-style: none;
}

/* ★ 下拉列表中的国旗：统一用高度控制 ★ */
.custom-lang-switcher .lang-options .lang-item img {
    width: auto;
    height: 28px;
    max-height: 28px;
    display: block;
}

/* 悬停效果 */
.custom-lang-switcher .lang-options .lang-item:hover {
    background: #f0f0f0;
}

/* 隐藏当前语言（不在下拉列表中重复出现） */
.custom-lang-switcher .lang-options .lang-item.current-lang {
    display: none;
}

/* ===== 移动端优化（只需调整高度数值） ===== */
@media (max-width: 768px) {
    .custom-lang-switcher .selected-lang {
        min-height: 36px;
        padding: 4px 8px;
        gap: 4px;
    }
    
    /* 手机版：缩小国旗高度 */
    .custom-lang-switcher .selected-lang img {
        height: 22px;
        max-height: 22px;
    }
    
    .custom-lang-switcher .selected-lang .arrow {
        font-size: 9px;
    }
    
    .custom-lang-switcher .lang-options .lang-item img {
        height: 22px;
        max-height: 22px;
    }
    
    .custom-lang-switcher .lang-options .lang-item {
        padding: 8px 12px;
    }
}

/* ===== 个人资料专用样式 ===== */
    .guide-profile-wrapper * {
        box-sizing: border-box;
    }
    
    .guide-profile-wrapper {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    }
    
    .guide-profile-header {
        display: grid;
        grid-template-columns: 200px auto;
        gap: 48px;
        padding: 20px 0 40px 0;
        border-bottom: 0px solid #f0f0f0;
        margin: 0 auto 30px auto;
        width: fit-content;
    }
    
    .guide-profile-avatar {
        text-align: center;
    }
    
    .guide-profile-avatar img {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid #ffffff;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        background: #f5f5f5;
    }
    
    .guide-profile-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .guide-profile-name {
        margin: 0 0 4px 0;
        font-size: 32px;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: -0.5px;
    }
    
    /* 副标题（另一种语言的名字） */
    .guide-profile-secondary-name {
        margin: 0 0 8px 0;
        font-size: 16px;
        color: #888;
    }
    
    .guide-profile-tags {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin: 8px 0 12px 0;
    }
    
    .guide-profile-tags-label {
        font-size: 14px;
        font-weight: 500;
        color: #555;
        margin-right: 2px;
    }
    
    .guide-profile-tags span {
        background: #f0f2f5;
        padding: 4px 14px;
        border-radius: 20px;
        font-size: 13px;
        color: #555;
    }
    
    .guide-profile-bio {
        padding: 0 0 20px 0;
        border-bottom: 2px solid #f0f0f0;
        margin-bottom: 30px;
    }
    
    .guide-profile-bio h2 {
        margin: 0 0 16px 0;
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
        letter-spacing: 0.5px;
    }
    
    .guide-profile-bio-content {
        font-size: 15px;
        line-height: 1.9;
        color: #444;
    }
    
    .guide-profile-bio-content p {
        margin: 0 0 12px 0;
    }
    
    .guide-profile-bio-content p:last-child {
        margin-bottom: 0;
    }
    
    .guide-profile-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding-top: 10px;
    }
    
    .guide-profile-footer h2 {
        margin: 0 0 20px 0;
        font-size: 18px;
        font-weight: 600;
        color: #1a1a1a;
        letter-spacing: 0.5px;
    }
    
    .guide-profile-info-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .guide-profile-info-item {
        display: flex;
        align-items: baseline;
        padding: 10px 0;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .guide-profile-info-item .label {
        width: 110px;
        font-size: 14px;
        color: #999;
        flex-shrink: 0;
    }
    
    .guide-profile-info-item .value {
        word-break: break-all;
        color: #333;
        font-size: 15px;
    }
    
    .guide-profile-info-item .value a {
        color: #354574;
        text-decoration: none;
    }
    
    .guide-profile-info-item .value a:hover {
        text-decoration: underline;
    }
    
    .guide-profile-placeholder {
        color: #bbb;
        font-style: italic;
    }
    
    .guide-profile-routes {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 30px 20px;
        text-align: center;
        border: 1px dashed #dde0e4;
    }
    
    .guide-profile-routes svg {
        margin-bottom: 12px;
    }
    
    .guide-profile-routes p {
        margin: 0 0 16px 0;
        font-size: 15px;
        color: #666;
    }
    
    .guide-profile-routes .btn-routes {
        display: inline-block;
        padding: 10px 32px;
        background: #354574;
        color: #ffffff;
        border-radius: 6px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.2s ease;
    }
    
    .guide-profile-routes .btn-routes:hover {
        background: #2a3a60;
    }
    
    @media screen and (max-width: 768px) {
        .guide-profile-header {
            grid-template-columns: 1fr;
            gap: 24px;
            padding-bottom: 28px;
            margin: 0 0 28px 0;
            width: 100%;
        }
        
        .guide-profile-avatar {
            text-align: center;
            display: flex;
            justify-content: center;
            width: 100%;
        }
        
        .guide-profile-avatar img {
            width: 140px;
            height: 140px;
            display: block;
            margin: 0 auto;
        }
        
        .guide-profile-info {
            text-align: center;
            align-items: center;
        }
        
        .guide-profile-tags {
            justify-content: center;
        }
        
        .guide-profile-footer {
            grid-template-columns: 1fr;
            gap: 30px;
        }
        
        .guide-profile-info-item {
            flex-direction: column;
            align-items: flex-start;
            padding: 8px 0;
            gap: 2px;
        }
        
        .guide-profile-info-item .label {
            width: auto;
            font-size: 13px;
        }
        
        .guide-profile-routes {
            padding: 24px 16px;
        }
    }
    
    @media screen and (max-width: 480px) {
        .guide-profile-avatar img {
            width: 110px;
            height: 110px;
        }
        
        .guide-profile-name {
            font-size: 24px;
        }
        
        .guide-profile-routes .btn-routes {
            padding: 10px 24px;
            font-size: 13px;
        }
    }
