/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* --- CSS变量 & 基础设定 (全局控制中心) --- */
:root {
    --primary-color: #0d6eff;       /* 主题蓝色*/
    --secondary-color: #00247e;   /* 深蓝色 (用于悬停或强调) */
    --heading-color: #232323;     /* 标题颜色 */
    --text-color: #616161;         /* 正文文本颜色 */
    --light-gray: #f5f7fa;        /* 浅灰色背景 */
    --border-color: #e6e9f0;      /* 边框颜色 */
    --font-primary: 'Noto Sans SC', sans-serif;
    --font-headings: 'Noto Sans SC', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- 通用排版样式 --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--heading-color);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* --- Elementor 结构与小组件基础样式 --- */
.elementor-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.elementor-widget:not(:last-child) {
    margin-bottom: 20px;
}
/* === Elementor 侧边栏小工具容器 === */
.elementor-widget-sidebar li.widget {
  list-style: none !important; 
  margin: 0 0 25px 0;
  padding: 20px;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.elementor-widget-sidebar li.widget::marker {
  content: none !important;
}

/* === 小工具标题 === */
.elementor-widget-sidebar .widgettitle {
  position: relative;
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color, #232323);
  margin-bottom: 15px;
  padding-bottom: 6px;
}
.elementor-widget-sidebar .widgettitle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color, #0d6eff);
  border-radius: 2px;
}

/* === 分类/菜单列表 === */
.elementor-widget-sidebar ul.menu,
.elementor-widget-sidebar ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.elementor-widget-sidebar ul li {
  border-bottom: 1px dashed #e6e9f0;
}
.elementor-widget-sidebar ul li:last-child {
  border-bottom: none;
}

/* === 链接样式 === */
.elementor-widget-sidebar ul li a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-color, #616161);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}
.elementor-widget-sidebar ul li a:hover {
  color: var(--primary-color, #00247e);
  background-color: #f5f7fa;
  padding-left: 18px;
}

/* === 当前项高亮 === */
.elementor-widget-sidebar ul li.current-menu-item > a {
  color: var(--primary-color, #00247e);
  font-weight: 700;
}
.elementor-widget-sidebar ul li.current-menu-item > a::before,
.elementor-widget-sidebar ul li a:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background-color: var(--primary-color, #00247e);
  border-radius: 2px;
}

/* === 响应式优化 === */
@media (max-width: 768px) {
  .elementor-widget-sidebar li.widget {
    padding: 15px;
  }
  .elementor-widget-sidebar .widgettitle {
    font-size: 16px;
  }
  .elementor-widget-sidebar ul li a {
    font-size: 14px;
    padding: 8px 10px;
  }
}

/* Q&A Section Styles for Elementor */

.qa-section-title {
    font-size: 1.5rem;
    color: #0D6EFF;
    border-bottom: 2px solid #eef2f7;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.qa-answer-item {
    background: #f8fbff;
    border: 1px solid #d9e6f5;
    border-left: 4px solid #0D6EFF;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qa-answer-item:hover {
    box-shadow: 0 5px 15px rgba(30, 115, 190, 0.1);
    transform: translateY(-2px);
}

.qa-answer-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eef2f7;
}

.qa-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50% !important; 
    border: 2px solid #0D6EFF;
    object-fit: cover;
    margin-right: 15px;
}

.qa-meta {
    display: flex;
    flex-direction: column;
}

.qa-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.qa-title {
    font-size: 0.85rem;
    color: #777;
    font-weight: 500;
}

.qa-answer-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

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