/* 基础样式 - 所有页面共用 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0px;
}

/* 帮助区域样式 */
.help_area {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.help_area a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #e1e1e1;
}

.help_area a:hover {
    color: #e67e22;
    background-color: #f0f0f0;
    text-decoration: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .help_area {
        margin-top: 10px;
        font-size: 13px;
    }
    
    .help_area a {
        padding: 4px 8px;
    }
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #e67e22;
    text-align: center;
    margin-top: 0;
}

/* 表单元素 - 通用样式 */
.mod_form {
    text-align: center;
    margin: 20px 0;
}

.form_group, .form_item {
    display: inline-block;
    margin: 0 5px 15px;
    vertical-align: top;
}

.ipt_text {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    height: 40px;
    box-sizing: border-box;
    width: 200px;
}

select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    height: 40px;
    width: 60px;
}

.btn_orange_1, .button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: 10px;
    height: 40px;
}

.btn_orange_1:hover, .button:hover {
    background: #d35400;
}

/* 信息展示区域 - 通用样式 */
.intro_area, .h2_content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #e67e22;
}

.result_area, .result {
    margin-top: 20px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.result_item, .result-item {
    margin-bottom: 15px;
}

.result_label, .result-label {
    font-weight: bold;
    color: #e67e22;
    display: inline-block;
    width: 100px;
    vertical-align: top;
}

.result_value {
    display: inline-block;
    width: calc(100% - 110px);
}

/* 特殊元素样式 */
.box_b {
    height: 5px;
    background: linear-gradient(to right, #e67e22, #3498db);
    margin: 10px 0;
    border-radius: 3px;
}

.analysis_section, .extra-analysis {
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #2ecc71;
}

.special_analysis {
    background: #fffaf0;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    border-left: 3px solid #f39c12;
}

.analysis_title, .extra-analysis h4 {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
}

/* 文字颜色类 */
.cred, em.bad {
    color: #e74c3c;
    font-weight: bold;
}

.cgreen, em.good {
    color: #2ecc71;
    font-weight: bold;
}

.compound-note {
    color: #3498db;
    font-style: italic;
}

/* 错误提示 */
.error {
    color: #e74c3c;
    text-align: center;
    padding: 10px;
    background: #fdecea;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* 免责声明 */
.disclaimer {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* 黄历侧边栏专用样式 */
.huangli-sidebar {
    font-family: "Microsoft YaHei", sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 20px;
    max-width: 300px;
}

.huangli-header {
    border-bottom: 1px dashed #eaeaea;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.huangli-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #e67e22;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-info {
    font-size: 14px;
    color: #666;
}

.date-info span {
    display: block;
    margin-bottom: 5px;
}

.lunar-date {
    color: #e67e22;
    font-weight: bold;
}

.jieqi {
    color: #2ecc71;
    font-style: italic;
}

.huangli-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suit-section, .avoid-section {
    margin-bottom: 0;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.suit-badge {
    background: #2ecc71;
    color: white;
}

.avoid-badge {
    background: #e74c3c;
    color: white;
}

.act-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.3;
}

.act-item {
    background: #f8f9fa;
    padding: 3px 8px;
    margin: 1px;
    border-radius: 4px;
    font-size: 13px;
    cursor: help;
    transition: all 0.3s;
    position: relative;
}

.act-item:hover {
    background: #eaf7ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.act-item:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 8px;
}

.act-item:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    margin-bottom: 2px;
    z-index: 11;
}

/* 手机号码页面特有 */
.qq_length {
    font-size: 14px;
    color: #7f8c8d;
    margin-left: 5px;
}

/* 姓名测试页面特有 */
.temper_cate {
    margin: 15px 0;
    padding: 10px;
    background: #fffaf0;
    border-radius: 5px;
}

.bt_style {
    display: inline-block;
    padding: 8px 15px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.bt_style:hover {
    background: #2980b9;
}

/* 近期文章样式 */
.smtread-news {
    background-color: #f9f9f9;
    padding: 20px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.smtread-news h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
}

.smtread-news strong {
    display: block;
    font-size: 16px;
    line-height: 36px;
    margin-bottom: 8px;
    background-color: #f2f6fa;
    padding-left: 5px;
    border-left: 3px solid #ff7a18;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list a {
    color: #2980b9;
    text-decoration: none;
    transition: color 0.3s;
}

.news-list a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

body #xunruicms {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  #xunruicms li {
    position: relative;
    padding-left: 1.5em;
    width: 100%;           /* 确保宽度受grid控制 */
    min-width: 0;          /* 防止flex/grid项溢出 */
  }
  #xunruicms li::before {
    content: "▶";
    color: #FFD700;
    position: absolute;
    left: 0;
    font-size: 0.7em; /* 调小三角 */
    top: 0.2em;
  }
#xunruicms li a {
  display: inline-block; /* 或 block */
  max-width: 100%;      /* 限制最大宽度 */
  white-space: nowrap;   /* 禁止换行 */
  overflow: hidden;      /* 隐藏溢出内容 */
  text-overflow: ellipsis; /* 超出部分显示为... */
  color: inherit !important;          /* 继承父元素颜色（通常是黑色） */
  text-decoration: none;   /* 可选：移除下划线 */
}
#xunruicms li a:hover {
  color: inherit;         /* 悬停时保持颜色不变 */
  text-decoration: underline; /* 可选：悬停时显示下划线 */
}
@media (max-width: 600px) { //手机端可添加媒体查询改为单列
  #xunruicms { grid-template-columns: 1fr; }
}