/* Standard page template (page.php)
   Scoped to .simple-page so the homepage and About page are untouched. */

/* 1. Page hero */
.simple-page .page-hero {
  background-color: var(--w);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
}

.simple-page .page-hero-title {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  margin-bottom: 30px;
  max-width: 22ch;
  overflow-wrap: break-word;
}

.simple-page .page-hero .slogan-cut {
  margin-bottom: 0;
}

/* Term archive intro (分类法归档页的分类说明，内容来自后台的分类描述) */
.simple-page .term-archive-lead {
  max-width: 68ch;
  margin: 26px 0 0;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.72;
  color: var(--body);
}

/* 2. Content panel */
.simple-page .page-body-section {
  padding: clamp(44px, 5.5vw, 84px) 0 var(--section);
}

.simple-page .page-panel {
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--w);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(30px, 4vw, 60px) clamp(26px, 4vw, 56px) clamp(30px, 4vw, 60px) clamp(32px, 4.6vw, 68px);
}

.simple-page .page-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--r);
}

/* 3. Content typography */
.simple-page .entry-content {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.75;
  color: var(--body);
}

.simple-page .entry-content > *:last-child {
  margin-bottom: 0;
}

.simple-page .entry-content p {
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 20px;
}

.simple-page .entry-content h2,
.simple-page .entry-content h3,
.simple-page .entry-content h4 {
  color: var(--g);
  margin-bottom: 16px;
}

.simple-page .entry-content h2 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.simple-page .entry-content h3 {
  font-size: clamp(19px, 2vw, 25px);
}

.simple-page .entry-content a:not(.btn) {
  color: var(--r);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.simple-page .entry-content a:not(.btn):hover {
  color: var(--rd);
}

/* Buttons keep their own palette inside page content */
.simple-page .entry-content a.btn {
  text-decoration: none;
}

.simple-page .entry-content a.btn-dark {
  color: var(--w);
}

.simple-page .entry-content a.btn-light {
  color: var(--g);
}

.simple-page .entry-content ul,
.simple-page .entry-content ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.simple-page .entry-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.simple-page .entry-content ul li::marker {
  color: var(--r);
}

.simple-page .entry-content blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--r);
  color: var(--g);
}

.simple-page .entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.simple-page .entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.simple-page .entry-content img {
  border-radius: 2px;
}

.simple-page .entry-content strong {
  color: var(--g);
  font-weight: 600;
}

.simple-page .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}

.simple-page .entry-content th,
.simple-page .entry-content td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px 12px 0;
  text-align: left;
  vertical-align: top;
}

.simple-page .entry-content th {
  color: var(--g);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--steel);
}

/* 4. Password form (WordPress native) */
.simple-page .post-password-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.simple-page .post-password-form label {
  font-size: 14px;
  color: var(--g);
}

.simple-page .post-password-form input[type="password"] {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background-color: var(--pw);
  font-family: inherit;
  font-size: 15px;
  color: var(--g);
}

.simple-page .post-password-form input[type="submit"] {
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--g);
  border-radius: 1px;
  background-color: var(--g);
  color: var(--w);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}

.simple-page .post-password-form input[type="submit"]:hover {
  background-color: var(--r);
  border-color: var(--r);
}

/* 5. Responsive */
@media (max-width: 640px) {
  .simple-page .page-panel {
    padding: 26px 20px 26px 24px;
  }
}
