* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
    background-color:#F0DFBF;
    /*#EED9B6*/
    
} 

body{
  color: #333;
  max-width:900px;
  margin:0 auto;
  font-family: "Garamond", "Cambria", "Georgia", "Times New Roman", serif;
  min-height: 100vh;     /* 回退 */
  min-height: 100dvh;    /* 更准的动态视口单位，移动端更稳 */
  display: flex;
  flex-direction: column;
  
  /*text-align: justify;           两端对齐 
  text-justify: inter-ideograph; 针对中文，按汉字对齐而不是拉空格 
  word-break: break-word;        避免长英文单词撑破布局 */
}

@media (max-width: 768px) {
    body{
        color: #333;
        max-width:100%;
        margin:0 auto;
        min-height: 100vh;     /* 回退 */
        min-height: 100dvh;    /* 更准的动态视口单位，移动端更稳 */
        display: flex;
        flex-direction: column;
    }
    
}


.verytop{
    display:flex;
    align-items:center;
    padding-left:1.5rem;
    padding-top:0.5rem;
    padding-bottom:0.5rem;
}

.verytop .logo{
    display:flex;
    align-items:center;
    gap:0.5rem;
}

.verytop .logo img{
    width:2.5rem;
    height:2.5rem;
    border-radius:50%;
    border:2px dotted red;
}

.verytop .logo figcaption{
    display:block;
    padding:0rem 3rem 0rem 0rem;
    font-size:2rem;
    font-weight:550;
    color:#2F3E9E;
    font-style: italic;
}


.site-nav ul{
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding:0rem 2rem 0rem 0.5rem;
  font-size:1.5rem;
}


.verytop > a,
.verytop > a:link,
.verytop > a:visited,
.verytop > a:hover,
.verytop > a:focus,
.verytop > a:active {
  text-decoration: none;
  color: inherit;           /* 让文字颜色继续用 figcaption 的 #2F3E9E */
  display: inline-flex;     /* 避免下划线对内联内容的影响 */
  align-items: center;
}


.verytop nav a, 
.verytop nav a:link, 
.verytop nav a:visited { 
    color: #2F3E9E; 
    text-decoration: none; 
}

.verytop nav a:hover,
.verytop nav a:focus-visible {
  color: #1e2a73;                 /* 想要的悬停色 */
  text-decoration-line: underline;
  text-decoration-thickness: 1px; /* 可调粗细 */
  text-underline-offset: 0.2em;   /* 下划线离文字远一点，更美观 */
}


.headerline{
  border-top: 3px double #333; 
  border-bottom:none;
}

@media (max-width: 768px) {
    .verytop{
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        padding-left:0.5rem;
        padding-top:0.5rem;
        padding-bottom:0.5rem;
    }    
    
  .brand{
    order: 1;
    flex: 1 1 100%;         /* 占满第一行 */
  }
   .site-nav{
    order: 2;
    flex: 1 1 100%;         /* 占满第二行 */
  } 
 
}

main{
    padding-left:1rem;
    padding-right:1rem;
    flex: 1; 
}


main p{
    padding-top:1rem;
    line-height:1.75;
    letter-spacing:0.1rem;
    /*font-family: "STKaiti", "KaiTi", "KaiTi_GB2312", serif;*/
    font-family: "Courier New", serif; 
    font-size:1.2rem;
}

h1, h2{
    padding-top:0.5rem;
    padding-bottom:0.5rem;
    font-family: "STKaiti", "KaiTi", "KaiTi_GB2312", serif;
}

footer{
    padding-left:1rem;
    padding-right:1rem;
    padding-top:1rem;
    padding-bottom:1rem;
    margin-top: auto;
}

.toc{
  display: flex;
  flex-wrap: wrap;   /* 允许换行 */
  gap: 1rem 2rem;  /* 行间距 列间距 */
  list-style: none;
  margin: 0;
  font-family: "Courier New", serif;
  font-size:1.2rem;
}

 .toc li {
    flex: 0 0 33%;     /* 每个 li 占大约三分之一宽度 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }



.toc a, 
.toc a:link, 
.toc a:visited { 
    text-decoration: none; 
    color:#333;
}

@media (max-width: 768px) {
    
  /*这个小部分是检测用的。*/    
  /*
  body::before {
    content: "<=768px";
    background: rgba(255,215,0,.85);
  }
  */
  
  .toc {
    display: flex;
    flex-wrap: wrap;   /* 允许换行 */
    gap: 0.5rem 1rem;  /* 行间距 列间距 */
  }
  .toc li {
    flex: 0 0 48%;     /* 每个 li 占大约一半宽度 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 480px) {
  /* 手机竖屏的特别优化 */
.toc {
  display: block;   /* 默认就是 block，可以省略 */
}
.toc li {
  display: block;   /* 每个 li 独占一行 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
}


.deco{
    float:right;
    margin:1rem;
    width:40%;
    border: 10px solid #A9745B;   
    background:#FFFFF0;
    box-shadow: 2px 4px 5px rgba(92, 64, 51, 0.9), 3px 5px 15px rgba(0, 49, 83,0.7);
}

.deco2{
    float:left;
    margin:1rem 1rem 1rem 0;
    width:40%;
    border: 10px solid #E0FFFF;
    background:#455A64;
    box-shadow: -2px 4px 5px rgba(92, 64, 51, 0.9), -3px 5px 15px rgba(0, 49, 83,0.7);
}

.deco3{
    float:right;
    margin:1rem;
    width:75%;
    border: 10px solid #A9745B;   
    background:#FFFFF0;
    box-shadow: 2px 4px 5px rgba(92, 64, 51, 0.9), 3px 5px 15px rgba(0, 49, 83,0.7);
}


.deco5{
    float:right;
    margin:1rem;
    width:50%;
    border: 10px solid #A9745B;   
    background:#FFFFF0;
    box-shadow: 2px 4px 5px rgba(92, 64, 51, 0.9), 3px 5px 15px rgba(0, 49, 83,0.7);
}

.deco6{
    float:left;
    margin:1rem 1rem 1rem 0;
    width:50%;
    border: 10px solid #E0FFFF;
    background:#455A64;
    box-shadow: -2px 4px 5px rgba(92, 64, 51, 0.9), -3px 5px 15px rgba(0, 49, 83,0.7);
}

@media (max-width: 768px) {
  .deco, .deco2, .deco3 , .deco5 , .deco6{
    float: none;              /* 关掉浮动，改为块级居中 */
    display: block;
    width: 98%;
    margin: 1rem auto;        /* 居中 */
  }
 
}

.deco img{
    border: 4px solid #EED9B9; 
    margin:4%;
    width:92%;
}

.deco2 img{
    border: 3px solid #A9A9A9; 
    margin:4%;
    width:92%;
}

.deco3 img{
    border: 3px solid #EED9B9; 
    margin:1%;
    width:98%;
}

.deco5 img{
    border: 3px solid #EED9B9; 
    margin:2%;
    width:96%;
}

.deco6 img{
    border: 3px solid #A9A9A9; 
    margin:2%;
    width:96%;
}

.decotitle {
    color:#003153;
    padding:0 1rem 1rem 1rem;
    text-decoration: underline;
    text-decoration-color: pink;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}

.deco2 .decotitle,.deco6 .decotitle {
    color:#F0DFBF;
    padding:0 1rem 1rem 1rem;
    text-decoration: underline;
    text-decoration-color: pink;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

details summary {
  list-style: none;         /* 去掉默认三角 */
  cursor: pointer;
  display: inline-flex;      /* 内容和箭头排成一行 */
  align-items: center;
  gap: 0.3em;               /* 一月 和 箭头之间留点空隙 */
}

details summary::after {
  content: "▶";             /* 收起时箭头 */
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(90deg); /* 展开时箭头旋转 */
}


.thought-box{
  border:2px solid #ccc; 
  padding:0.5rem; 
  margin:0.5rem 0rem 0.5rem 1rem; 
  max-width:50%;
  float:right;
  background-color: #F4E7CE; /* 淡黄色，饱和度不高 */
  font-family: "DengXian", serif;
  font-size:1rem; 
  line-height:1.5;
}


.raven-form {
  max-width: 400px;
  margin: 2rem auto;
  font-family: "Courier New", serif; /* 打字机风格 */
  background-color: #fdfcf5; /* 淡稿纸色 */
  border: 1px solid #d8c6a8;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.raven-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #333;
}

.raven-form .input-group {
  display: flex;
  gap: 0.5rem;
}

.raven-form input[type="password"] {
  flex: 1;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #fffbe6;
  font-family: inherit; /* 保持打字机风格 */
}

.raven-form input[type="password"]::placeholder {
  color: #999;
}

.raven-form button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background-color: #5c2f0a; /* 深棕色，稳重 */
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: inherit;
}

.raven-form button:hover {
  background-color: #8b4513; /* hover 更亮一些 */
}

.artists{
    display:flex;
    gap:1rem;
    margin-top:1rem;
}

.artists figure{
    width:23%;
    background-color:#FFF8DC;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* 阴影 */
    border-radius: 6px;        /* 可选：稍微圆角，让效果更柔和 */
}

.artists img{
    width:100%;
    border: 4px solid #FFF8DC;   /* 2px 象牙白边框 */
    border-radius: 4px;        /* 可选：稍微圆角，让效果更柔和 */
}

.artists figcaption{
    padding:6px;
}

.nameme{
    font-weight:900;
}

@media (max-width: 480px) {
  /* 容器：竖排 + 居中 + 左右留白 */
  .artists{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;      /* 让子项居中 */
    padding: 0 12px;          /* 两侧留点空 */
    margin-top: 1rem;
  }

  /* 卡片：占满一行但不超过一定宽度 */
  .artists figure{
    width: 100%;
    max-width: 420px;         /* 防止太宽；你也可用 92vw */
    margin: 0;
    box-sizing: border-box;
    background-color:#FFF8DC;
    box-shadow: 0 4px 8px rgba(0,0,0,.3);
    border-radius: 12px;
    overflow: hidden;         /* 圆角对内部生效 */
    padding: 12px;            /* 让文字别贴边 */
  }

  /* 图片：自适应缩放，不撑出卡片 */
  .artists figure img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;       /* 如果想圆角，只给顶部也行 */
  }

  /* 文字更易读（可选） */
  .artists figcaption{
    line-height: 1.5;
    font-size: 16px;
    margin-top: 8px;
    word-break: break-word;   /* 防止长词/英文把布局撑破 */
  }
}

.current{
    color:#9B3D3D;    
}
