/*
Theme Name: IT Company Child
Template: it-company
*/

/* ==============================================
   服务页面特定样式
   ============================================== */

/* 隐藏服务页面标题 */
.page-services .entry-title,
.page-services h1.entry-title {
    display: none !important;
}

/* 隐藏服务页面红色按钮 */
.page-services .btn-red,
.page-services .button-red,
.page-services .elementor-button-red {
    display: none !important;
}

/* ==============================================
   通用规则 - 隐藏所有页面的自动标题
   ============================================== */

/* 隐藏所有页面类型的标题 */
.page .entry-title {
    display: none;
}

/* 隐藏所有文章的标题（如果需要） */
.post .entry-title {
    display: none;
}

/* ==============================================
   隐藏红色按钮 - 多种可能性
   ============================================== */

/* 通用红色按钮隐藏 */
.btn-red,
.button-red,
.elementor-button-red,
.wp-block-button.is-style-fill-red,
a.button.red,
input[type="submit"].red-button {
    display: none !important;
}

/* ===== 翻译模块响应式调整 ===== */

/* 默认样式（桌面） */
.translate-container {
  position: absolute;
  top: 20px;
  right: 200px;
}

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
  .translate-container {
    right: 150px; /* 稍微向左移动 */
    top: 15px;
  }
  /* 如果需要调整翻译下拉菜单大小 */
  .goog-te-menu-frame {
    max-width: 300px !important;
  }
}

/* 手机设备 (< 768px) */
@media (max-width: 768px) {
  .translate-container {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    text-align: center;
    margin: 10px 0;
  }
  
  /* 让翻译按钮更易点击 */
  .goog-te-gadget-simple {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }
  
  /* 调整下拉菜单适应小屏幕 */
  .goog-te-menu-frame {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
  }
  
  /* 如果是Google翻译，隐藏不必要的文本 */
  .goog-te-gadget span {
    display: none !important;
  }
}

/* ==============================================
   Footer小工具横排显示
   ============================================== */

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-widgets .widget {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .footer-widgets .widget {
        flex: 1 1 100%;
    }
}
/* ========== 翻译模块响应式样式 ========== */

/* 桌面端样式 */
.translation-container,
.translate-box {
    display: inline-block;
    vertical-align: middle;
}

.language-switcher {
    display: inline-flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lang-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .translation-container {
        padding: 5px 0 !important;
        margin-right: 15px;
    }
    
    .language-switcher {
        gap: 6px;
    }
    
    .lang-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* 手机设备 (< 768px) */
@media (max-width: 768px) {
    /* 当翻译模块在顶部栏时 */
    .top-header .translation-container {
        width: 100%;
        text-align: center;
        order: 1; /* 放到社交媒体前面 */
        margin-bottom: 10px;
    }
    
    /* 当翻译模块在导航栏时 */
    .menu-sec .translation-mobile {
        order: 0; /* 调整顺序 */
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
    
    .language-switcher {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .lang-btn {
        padding: 8px 15px;
        margin: 2px;
        min-width: 60px;
    }
    
    /* 隐藏文字，只显示国旗图标（如果有的话） */
    .lang-btn span.text {
        display: none;
    }
}

/* 超小屏幕 (< 480px) */
@media (max-width: 480px) {
    .language-switcher {
        gap: 4px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 50px;
    }
}
