
body {
max-width: 800px;
margin:0 auto;
}
ol,ul,li {
    list-style: none
}
a{text-decoration:none;color: inherit;}
/* 防止图片溢出 */
img {
  max-width: 100%;
  height: auto;
}

/* 确保预格式化文本换行 */
pre {
  overflow-x: auto; /* 横向滚动而非撑开页面 */
}
        /* 修复后的CSS */
        .nav-header {
           height: 55px;  /* 新增高度定义 */
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: relative;
            background: linear-gradient(to bottom, #00b30e, #028a1f);  

            margin: auto;

        }

        .nav-container {
            height: 100%;
            margin: 0 auto;
            padding:0 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }



        /* 桌面导航菜单 */
        .nav-menu {
            display: flex;
            gap: 2rem;
            list-style: none;
            margin: 0;
            padding: 0;
            transition: all 0.3s ease;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            color: #333;
            text-decoration: none;
            padding: 0.5rem 1rem;
            display: block;
            transition: color 0.3s;
        }

        .nav-link:hover {
            
            border-left: 4px solid #3498db;

        }
        

        /* 下拉菜单 */
        .submenu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            box-shadow: 0 5px 10px rgba(0,0,0,0.5);
            min-width: 200px;
            max-height: 0;
            overflow: hidden;
            padding: 0;
            border-radius: 4px;
            transition: max-height 0.3s ease;
        }

        .has-submenu:hover .submenu {
            max-height: 500px;
            padding: 0.5rem 0;
        }

        /* 汉堡按钮 */
        .hamburger {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1000;
        }

        .hamburger span {
            display: block;
            width: 25px;
            height: 2px;
            background: #333;
            margin: 5px 0;
            transition: all 0.3s ease;
        }

        /* 移动端样式 */
        @media (max-width: 768px) {
            .hamburger {
                display: block;
            }

            .hamburger.active span:nth-child(1) {
                transform: rotate(45deg) translate(5px, 5px);
            }

            .hamburger.active span:nth-child(2) {
                opacity: 0;
            }

            .hamburger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(7px, -6px);
            }

            .nav-menu {
                position: fixed;
                top: 55px;
                left: 0;
                right: 0;
                background: #fff;
                flex-direction: column;
                max-height: 0;
                overflow: hidden;
                padding: 0;
                box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                transition: max-height 0.3s ease;
            }

            .nav-menu.active {
                max-height: 1000px;
                padding: 1rem;
            }

            .submenu {
                position: static;
                max-height: 0;
                box-shadow: none;
                padding-left: 1rem;
                background: #f8f9fa;
            }

            .has-submenu:hover .submenu {
                max-height: 0;
                padding: 0;
            }

            .submenu.active {
                max-height: 500px;
                padding: 0.5rem 0;
            }
                .has-submenu.active .submenu {
        max-height: 300px !important;
        padding: 0.5rem 0 !important;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
    }

    .nav-menu.active {
        display: block;
    }
    
    .submenu {
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
    }
        }


  .tag-cloud {
  margin: 6px auto;
  padding: 5px;
  background: #fff;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* 标签基础样式 */
.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);
}
.tag-text::before {
    content: "#";
    margin-right: 4px;
    color: #9ca3af;
}
.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;
}
nav.link-card {
  background-color: #000;
  padding: 10px 0;
  min-width: 300px; /* 最小宽度保持可读性 */
}

.nav2 {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: block; /* 改为块级布局 */
}

.item {
  text-align: center; /* 文本居中 */
  white-space: nowrap;   /*防止文字换行 */
}

.item a {
  color: #ff0000;
  text-decoration: none;
  line-height：22px;
  font-size: 22px; /* 适当放大字号 */
  font-weight: bold; /* 字体加粗 */
  font-family: Arial, sans-serif;

  display: inline-block; /* 保持点击区域 */
  position: relative;
  transition: all 0.3s ease;

}

/* 增加交互反馈 */
.item a:hover {
  color: #ff6666; /* 悬停颜色变化 */
  transform: scale(1.05); /* 轻微放大 */
}

/* 添加分割线 */
.item:not(:last-child)::after {
  content: "";
  display: block;
  width: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 5px auto;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .item a {
    font-size: 16px;
  }
  .item::after {
    width: 70%;
  }
}

.card-container {
    display: flex;

    margin: 0 auto;
}
.analysis-card {
  margin: 6px auto;

  padding: 5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


h2.title {
text-align: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 0.2rem;
  padding-bottom: 0.2rem;
  border-bottom: 4px solid #00b30e;

}
h3.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
}

.jinghua {
  margin: 6px auto;
  padding: 5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.jinghua>ul>li>a>span{color:red;}

.jinghua>ul{display:flex;flex-direction: row;flex-wrap: wrap;justify-content: space-between;}
.jinghua>ul>li{width: calc(50% - 5px);height:45px;line-height:45px;font-size:18px;font-weight:bold;color:#000;border-bottom:1px solid #eee;}
.jinghua>ul>li:last-child{border-bottom:0}
.jinghua>ul>li:hover{background:#fafafa;}
.jinghua>ul>li>a{display:block;}

@media screen and (max-width: 769px){
.jinghua>ul>li{width:100%}
}
 pre{
      white-space: pre-wrap;
 }

.more-relate{display:flex;flex-wrap:wrap;padding:1px;}
.more-relate>li{flex:20%;text-align:center;padding:5px 0;font-size:12px;justify-content:center;display:flex;}
.more-relate>li>a{justify-content: center;display:flex;box-sizing: border-box;width:95%;background:#2778f9;padding:5px 8px;color:#fff;border-radius:15px;}
.more-relate>li>a:hover{background:#f60;}
.tag{
    margin:0 4px 1px;
    border-radius:2px;
    box-shadow:none;
    padding:2px 4px 4px;
    display:inline-block;
    font-size:11px;
    background:#e9e9e9;
    
}
.card-figure {
    flex: 1;
    margin: 0;
}

.card-figure img {
    width: 100%;
    height: auto;
    display: block;
}


.card-info {
    flex: 1;
    display: grid;
    grid-template-rows: repeat(6, 1fr);

    margin: 0;
}

.info-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #666;
    padding: 0.5rem 0;
}

.info-title {
    text-align: center;
    min-width: 120px;
    margin: 0;
    font-size: 1.2em;
    line-height: 1.2em;
    color: #333;
    border-right: 1px solid #666;

}

.info-content {
    text-align: center;
    margin: 0 auto;
    font-size: 1.2em;
    line-height: 1.2em;
    color: #000;

}

/* 响应式设计 */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
    }
    
    .card-info {
        grid-template-rows: auto;
    }
}

            .image-caption {
            padding: 1rem;
            text-align: center;
            font-family: sans-serif;
            font-size: 20px;
            color: #333;
            background: -webkit-linear-gradient(90deg,#ffd700,#ff8c00,#ff4500); /* Chrome 10-25, Safari 5.1-6 */ background: linear-gradient(90deg,#ffd700,#ff8c00,#ff4500); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
            

    margin-bottom: 0.8rem;
        }

.highlight-red {
  color: #c0392b;
  font-weight: bold;
}

.highlight-green {
  color: #27ae60;
}
.highlight-yellow{
    background: yellow;
}

figure {
    flex: 1;
    margin: 0;
}

figure img {
    width: 100%;
    height: auto;
    display: block;
}
.responsive-img {

  height: auto;
  display: block;
  border-radius: 6px;
}

.AAgongkai-list {
  list-style: none;
  padding: 0;
    font-size: 14px;
    font-weight: bold;
    width: 99%;
    margin: 0 auto;
}
.AAgongkai-list>li> .highlight-green
{
      margin-left: 20px;
}
.AA-period-item {
  padding: 0.5rem 0;
  line-height: 1.4rem;
  border-bottom: 1px solid #eee;
  background: #000;
  color: red;
  font-weight: bold;
}
.AA-selection-item {
  font-size: 1rem;
  padding: 0.5rem 0;
  line-height: 1.4rem;
  border-bottom: 1px solid #eee;
  background: #f00;
  color: #000;
  font-weight: bold;
  text-align: center;
}
.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; 
  border-bottom: 1px solid #eee;
  padding: 8px 0;
}
.period-number {
  margin: 0;
  font-size: 1.1rem;
  white-space: nowrap;
}
.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;
}
.recommendation-content {
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  color: #c0392b;
}
.result-detail {
  font-weight: 500;
  color: #27ae60;
}
.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;
}
.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;
}
.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;
}
.all-links {
  margin: 6px auto;
  padding: 5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.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;

    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 {
    margin:  5px 0;
    border-radius:6px;
    color: #000;
    font-size: 18px;
    font-family: Arial, sans-serif;
}

summary:hover {
  background: rgba(52, 152, 219, 0.05);
}
  summary {

    cursor: pointer;
    color: #007bff;
    padding: 1rem;
    border: solid 1px #cfcfcf;

  }

  .main-footer {
  margin: 6px auto;

  padding: 5px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.post-tags {color:#999;font-size:15px;margin:4px 0;padding:3px 0 0 0;}
.post-tags p{padding-left:10px}
.post-tags span {margin:0 4px 1px;border-radius:2px;box-shadow:none;padding:2px 4px 4px;display:inline-block;font-size:13px;}


.nav-item {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255,255,255,0.5);
}

.nav-item.active {
    background: rgba(147, 197, 253, 0.5);
    color: #1e40af;
}
/* 当前区域提示 */
.section-indicator {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.8);
    padding: 8px 20px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    color: #666;
}

.section-indicator.show {
    opacity: 1;
}
