a{
    color: inherit;
}
.analysis-card * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.analysis-card {
  margin: 20px auto;
  width:99%;
  padding: 5px;
  background: #f2f2f2;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.tag-cloud {
  margin: 20px auto;
  width:99%;
  padding: 5px;
  background: #f2f2f2;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.scrolling-viewport {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    min-height: 2em; /* 保持文字高度 */
}

.scrolling-track {
    position: absolute;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}
.home-news {
  margin: 20px auto;
  width:99%;
  padding: 5px;
  background: black;
  color: yellow;
  font-weight: bold;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 基础样式 */
.scrolling-text {
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

/* 滚动动画 */
@keyframes marquee {
    from { transform: translateX(70%); }
    to { transform: translateX(-70%); }
}

.scrolling-text:hover {
    animation-play-state: paused;
}

[data-scroll-animation] {
    animation: marquee 15s linear infinite;
}
.link-card {
  margin: 20px auto;
  width:99%;
  padding: 5px;
  background: #f2f2f2;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.foot-text {
  margin: 20px auto;
  width:99%;
  padding: 5px;
  background: #f2f2f2;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.analysis-header {

  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
h2.title {
text-align: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid #e74c3c;

}
.responsive-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
figcaption {
  display: block;
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1.4;
  color:#eee;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.6); 

  letter-spacing: 0.03em;
  font-style: italic; 
  text-align: center;
}
/* 辅助样式 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.subtitle {
  font-size: 1.2rem;
  color: #34495e;
  margin: 0.9rem 0 1rem;
  border-bottom: 2px solid #3498db;
  text-align: center;
  padding-top: 0.5rem;
  background: #e0e0e0
}
.period-analysis {
  margin: 0.3rem 0;
  padding: 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}
.period-analysis-shym {
  margin: 0.3rem 0;
  padding: 0.5rem;
  background: -webkit-linear-gradient(1deg,#e28c12,#e1c894,#eee2c4); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(1deg,#e28c12,#e1c894,#eee2c4); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  border-radius: 8px;
}
.period-analysis-cbt {
  margin: 0.3rem 0;
  padding: 0.5rem;
  background: -webkit-linear-gradient(45deg,#fff4c7,#ffe1a1,#ffab6f); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(45deg,#fff4c7,#ffe1a1,#ffab6f); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  border-radius: 8px;
}
.period-analysis-4bx {
  margin: 0.3rem 0;
  padding: 0.5rem;
  background: -webkit-linear-gradient(90deg,#d1d1cc,#dcdddb,#d1d1cc); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(90deg,#d1d1cc,#dcdddb,#d1d1cc); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  border-radius: 8px;
}
/* 标题样式 */
.period-title {
  font-size: 1.0rem;
  font-weight: 600;
  line-height: 1.2;
  border-left: 3px solid #e74c3c;
  margin-bottom: 1rem;
}
.period-recommend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap; /* 防止换行 */
}
.period-number {
  margin: 0;
  font-size: 1.1rem;
  white-space: nowrap;
}
.recommendation-content {
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  color: #c0392b;
}
.analysis-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.analysis-list li {
  padding: 0.5rem 0;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
}
.poem-section {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 2px solid #27ae60;
}
.poem-header {
  margin-bottom: 0.2rem;
}

.poem-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;

}
.poem-label {
  background: #000;
  color: #ff0;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}
.mystery-text {
  font-size: 1.4rem;
  color: #0000ff;
  margin: 0;
}
.interpretation {
  font-weight: 600;
  margin: 0.5rem 0;
}
.code-range {
  color: #7f8c8d;
  margin-bottom: 0.5rem;
}
.result {
  font-weight: 600;
  margin-top: 1rem;
}
.x5m10-list {
  list-style: none;
  padding: 0;
     text-align: center;
    font-size: 16px;
}

.x5m10-list li {
  padding: 5px 10px;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
}
.x5m10-list li span {
     margin: 10px 0;
}

.AAgongkai-list {
  list-style: none;
  padding: 0;
    font-size: 14px;
    font-weight: bold;
}

.AA-period-item {
  padding: 0.5rem 0;
  line-height: 1.4;
  border-bottom: 1px solid #eee;
  background: #000;
  color: red;
  font-weight: bold;
}
.AA-selection-item {
  padding: 0.5rem 0;
  line-height: 1.6;
  border-bottom: 1px solid #eee;
  background: #f00;
  color: white;
  font-weight: bold;
}
/* 主体网格布局 */
.card-body {
  display: grid;
  grid-template-columns: 55% 43%;
  gap: 2%;
  align-items: stretch;
}

/* 图片容器 */
.card-image {
  height: 100%;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 文字内容区域 - 关键修改 */
.card-content {
  height: 100%;
  display: flex;
  flex-wrap: wrap; /* 允许换行 */
  gap: 8px;
  align-content: flex-start; /* 顶部对齐 */
}

/* 信息项样式修改 */
.info-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 8px 12px;
  border-left: 2px solid #3498db;
  width: calc(50% - 4px); /* 关键：每行两个 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px; /* 增加最小高度 */
}

.info-label {
  font-size: 14px; /* 适当缩小字号 */
  color: #7f8c8d;
  margin-bottom: 4px;
}

.info-value {

  color: #2c3e50;
  font-weight: 600;
}

/* 底部操作 */
.card-actions {
  margin-top: 1rem;
  text-align: center;
}

.action-button {
  display: inline-block;
  padding: 12px 40px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 28px;
  width: 100%;
}
/* 底部 */
.analysis-footer {
  text-align: center;
  margin: 1rem 0 1rem;
}
.more-act {
  margin: 0 auto;
  width:98%;
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #3f51b5;
  color: #ffeb3b;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s;
}

.more-act:hover {
  background: #303f9f;
}
.more-relate{
    text-align: left;
    margin-top: 10px;
    font-size:11px;
    color:#8B8989;
}
.tag{
    margin:0 4px 1px;
    border-radius:2px;
    box-shadow:none;
    padding:2px 4px 4px;
    display:inline-block;
    font-size:11px;
    background:#e9e9e9;
    
}

/* 标签基础样式 */
.tag-text {
  display: inline-block;  /* 关键属性 */
  margin: 3px 2px;
  padding: 2px 3px;
  border-radius: 15px;
  background: #e9e9e9;
  transition: all 0.3s;
  cursor: pointer;
  font-family: Arial, sans-serif;
  color: #333;
  white-space: nowrap;   /*防止文字换行 */
}

/* 字号阶梯 */
.tag-text.tag1 { font-size: 10px; }
.tag-text.tag2 { font-size: 14px; }
.tag-text.tag3 { font-size: 16px; }
.tag-text.tag4 { font-size: 12px; }
.tag-text.tag5 { font-size: 18px; }

/* 悬停效果 */
.tag-text:hover {
  background: #007bff;
  color: white;
  transform: scale(1.1);
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
  .tag-text {
    background: #404040;
    color: #fff;
  }
}
 pre{
      white-space: pre-wrap;
 }  
/*链接样式开始*/
.link-list{
        display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;

}

  .link-list li{
	float: left;
	width: calc(33.33% - 4px);
	margin: 6px auto;
	margin-right: 6px;
    border-radius:2px;
    box-shadow:none;

    background:#e9e9e9;
    
}  
.link-list li a:hover{

    background:#e9e9e9;
    
}
.link-list li:nth-child(3n) {
	margin-right: 0;
}
.link-list li a {
	padding: 8px;
	text-align: center;
	border: solid 1px #cfcfcf;
	border-radius: 3px;
	background: #fff;
	display: block;
}
/* 隐藏默认三角 */
details > summary {
    list-style: none;
}
/* 悬停效果4.19 */
summary:hover {
  background: rgba(52, 152, 219, 0.05);
}
  summary {
      list-style: none;
    cursor: pointer;
    color: #007bff;
    padding: 1rem;
    border: solid 1px #cfcfcf;

  }
  summary::before {
    content: "❯"; /* 未展开时的图标 */
    margin-right: 0.5rem;
  }
  details[open] summary::before {
    content: "▼"; /* 展开后的图标 */
  }
  /*链接样式结束*/
      /* 基础重置 */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    a{
        text-decoration:none;
    }
    body {
      font-family: Arial, sans-serif;
      padding: 55px 0 80px; /* 顶部留出logo空间 */
      max-width: 800px; /* 常见PC端宽度 */
      margin: 0 auto;
    }

    /* 顶部Logo */
    .main-logo {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: #f35216;
      z-index: 1000;
      padding: 1px ;
      border-bottom: 1px solid #eee;
      max-width: 800px; /* 常见PC端宽度 */
      margin: 0 auto;   
      height: 60px;
    }

    /* 底部主导航 */
    .main-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background: #fff;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
      z-index: 1000;
      padding: 5px 0;
      max-width: 800px; /* 常见PC端宽度 */
      margin: 0 auto;
    }

.footer-links{
    background: #f2f2f2;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 5px;
  margin: 20px auto;
  width: 99%;  
}

.copyright{
    background: #f2f2f2;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 5px;
  margin: 20px auto;
  width: 99%;  
  text-align: center;
}
    .main-nav ul {
      display: flex;
      list-style: none;
    }

    .main-nav li {
      flex: 1;
      text-align: center;
     
    }

    .main-nav a {
      display: block;
      padding: 8px 5px;
      text-decoration: none;
      color: #333;

    }

    .main-nav img {
      width: 24px;
      height: 24px;
      margin: 0 auto 3px;
      display: block;
    }

    /* 工具导航（固定5列） */
    footer nav ul {
      display: flex;
      flex-wrap: wrap;
      list-style: none;
      margin: 0 -2px; /* 消除容器边距 */
    }

    footer nav li {
      width: 20%;
      padding: 0 2px; /* 精确控制间距 */
      margin-bottom: 4px;
    }

    footer nav a {
      display: block;
      background: #f9f9f9;
      padding: 8px 0;
      text-align: center;
    }
    footer nav a:hover {
        background: #fff;
    }
    footer nav img {
      width: 32px;
      height: 32px;
      margin: 0 auto 5px;
      display: block;
    }

    /* 常用链接导航（4列） */
    #nav2.nav2 {
      display: flex;
      flex-wrap: wrap;
      list-style: none;
      margin: 0 -5px;
      
    }

    #nav2.nav2 .item {
      width: 50%;
      padding: 0 5px;
      margin-bottom: 10px;
    }

    #nav2.nav2 a {
      display: block;
      border: 1px solid #ddd;
      padding: 8px;
      text-align: center;
      background: #00f;
      color: #fff;
      font-size: 14px;
      font-weight: bold;
      border-radius: 20px;
    }
    #nav2.nav2 a:hover{
      background:green;
    }

/* 高亮样式 */
.result-detail {
  font-weight: 500;
  color: #27ae60;
}
.highlight-red {
  color: #c0392b;
  font-weight: bold;
}

.highlight-green {
  color: #27ae60;
}
.highlight-yellow{
    background: yellow;
}
/* 响应式优化 */
@media (max-width: 768px) {
  .analysis-header {
    flex-direction: column;
    gap: 0.5rem;
  }
/* 响应式设计 - 关键修改 */
.tag1 { font-size: 5px; }
.tag2 { font-size: 9px; }
.tag3 { font-size: 11px; }
.tag4 { font-size: 7px; }
.tag5 { font-size: 13px; }
    #nav2.nav2 a {

      font-size: 11px;

    }
  /* 保持左右布局 */
  .card-body {
    grid-template-columns: 50% 48%; /* 微调比例 */
    gap: 2%;
  }

  /* 图片适当缩小 */
  .card-image {
    max-width: 100%;
    height: auto;
  }

  .title {
    font-size: 20px;
  }

  .info-item {
    min-height: 70px; /* 移动端高度调整 */
    width: calc(50% - 4px); /* 保持每行两个 */
    padding: 6px 1px;
  }

  .info-label {
    font-size: 14px;
  }

  .info-value {
    font-size: 13px;
  }

  .action-button {
    font-size: 20px;
    padding: 10px;
  }
.tab-button{
    font-size: 14px;
}
  .more-link a {
    font-size: 18px;
  }
        body {
        width: 100%;
        max-width: 100%;
        padding: 60px 5px 50px; /* 减少留白 */
      }

      .main-nav a {
        font-size: 12px;
        padding: 5px 2px;
      }

      .main-nav img {
        width: 20px;
        height: 20px;
      }
}

/* 超小屏幕适配 */
@media (max-width: 480px) {
  .card-body {
    grid-template-columns: 44% 54%; /* 进一步缩小图片 */
  }
  
  .info-item {
    min-height: 60px;
  }
}


