/* ===== 顶部时局条 ===== */
decree {
  display: block;
  margin: 0 0 14px;
  padding: 12px 16px 12px 20px;
  background: linear-gradient(135deg, #7B1113 0%, #A62B2B 55%, #7B1113 100%);
  border: 1px solid #C9A227;
  border-left: 5px solid #C9A227;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28), inset 0 0 22px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
}
decree::after {
  content: "";
  position: absolute;
  top: -18px; right: -18px;
  width: 70px; height: 70px;
  border: 1px solid rgba(201,162,39,.35);
  border-radius: 50%;
  pointer-events: none;
}
decree p {
  margin: 3px 0;
  color: #F6E7C1;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .5px;
  text-shadow: 0 1px 2px rgba(0,0,0,.5);
}
decree p:first-child {
  font-weight: 700;
  font-size: 15px;
  color: #FFF3D4;
}
decree p:last-child {
  font-size: 13px;
  color: #E3C89A;
  font-style: italic;
}

/* ===== 正文 ===== */
text {
  display: block;
  margin: 0 0 18px;
  padding: 20px 20px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 120px),
    linear-gradient(160deg, #F7F1E2 0%, #EFE5CF 100%);
  border: 1px solid #D8C79B;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(90,70,40,.16);
  position: relative;
}
text::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #C9A227, rgba(201,162,39,.15));
  border-radius: 4px 0 0 4px;
}
text p {
  margin: 0 0 13px;
  color: #2E2A24;
  font-size: 15.5px;
  line-height: 2;
  text-indent: 2em;
  letter-spacing: .3px;
  text-align: justify;
}
text p:last-child { margin-bottom: 0; }
text p:first-of-type::first-letter {
  font-size: 2.1em;
  font-weight: 700;
  color: #8B1A1A;
  float: left;
  line-height: .95;
  margin: 4px 6px 0 0;
  text-indent: 0;
}
text p:first-of-type { text-indent: 0; }

/* ===== 状态栏折叠块 ===== */
details {
  margin: 0 0 10px;
  background: linear-gradient(150deg, #FBF7EC 0%, #F1E8D5 100%);
  border: 1px solid #CDB88A;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(90,70,40,.12);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
details:hover {
  border-color: #C9A227;
  box-shadow: 0 4px 14px rgba(139,26,26,.18);
}
details summary {
  list-style: none;
  cursor: pointer;
  padding: 11px 38px 11px 14px;
  background: linear-gradient(90deg, rgba(139,26,26,.10) 0%, rgba(201,162,39,.06) 100%);
  border-left: 4px solid #8B1A1A;
  color: #6E1416;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  user-select: none;
  transition: background .25s ease, color .25s ease, letter-spacing .25s ease;
}
details summary::-webkit-details-marker { display: none; }
details summary:hover {
  background: linear-gradient(90deg, rgba(139,26,26,.20) 0%, rgba(201,162,39,.12) 100%);
  color: #8B1A1A;
  letter-spacing: 1.6px;
}
details summary::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid #A0522D;
  border-bottom: 2px solid #A0522D;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s ease, border-color .3s ease;
}
details[open] > summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: #8B1A1A;
}
details[open] > summary {
  background: linear-gradient(90deg, rgba(139,26,26,.22) 0%, rgba(201,162,39,.10) 100%);
  border-bottom: 1px dashed #CDB88A;
}

/* 折叠块内容 */
details p {
  margin: 0;
  padding: 8px 14px;
  color: #3A342B;
  font-size: 13.5px;
  line-height: 1.85;
  border-bottom: 1px dotted rgba(160,140,100,.35);
  transition: background .2s ease, padding-left .2s ease;
}
details p:last-child { border-bottom: none; }
details p:hover {
  background: rgba(201,162,39,.10);
  padding-left: 18px;
}
details p b {
  display: block;
  color: #8B1A1A;
  font-size: 14px;
  letter-spacing: .8px;
  border-left: 3px solid #C9A227;
  padding-left: 8px;
  margin: 2px 0;
}

/* 嵌套折叠块（若回退到多层记忆区结构） */
details details {
  margin: 8px 12px;
  background: rgba(255,255,255,.45);
  border-color: #DCCBA4;
  box-shadow: none;
}
details details summary {
  padding: 8px 34px 8px 12px;
  font-size: 13.5px;
  border-left-width: 3px;
  border-left-color: #A0522D;
  color: #7A3B10;
}
details details p { font-size: 13px; padding: 6px 12px; }

/* ===== 移动端适配 ===== */
@media (max-width: 600px) {
  decree { padding: 10px 12px 10px 14px; }
  decree p { font-size: 13px; }
  decree p:first-child { font-size: 13.5px; }
  text { padding: 14px 13px 12px; }
  text p { font-size: 14.5px; line-height: 1.92; }
  details summary { padding: 10px 32px 10px 11px; font-size: 13.5px; letter-spacing: .5px; }
  details summary:hover { letter-spacing: .8px; }
  details p { font-size: 12.8px; padding: 7px 11px; }
  details details { margin: 6px 8px; }
}