.page-content h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}
.page-date {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.page-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-content h2::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.page-content .highlight-box + h2,
.page-content .page-date + p + .highlight-box + h2 {
  border-top: none;
  padding-top: 0;
}
.page-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.page-content > p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.page-content > p strong {
  color: var(--text);
  font-weight: 600;
}
.page-content ol,
.page-content ul {
  margin-bottom: 20px;
  padding-left: 0;
  list-style: none;
}
.page-content li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}
.page-content li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.page-content li strong {
  color: var(--text);
  font-weight: 600;
}
.page-content a {
  color: var(--accent);
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.page-content a:hover {
  border-bottom-color: var(--accent);
  opacity: 1;
}
.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(230, 181, 74, 0.06) 0,
    rgba(230, 181, 74, 0.02) 100%
  );
  border: 1px solid rgba(230, 181, 74, 0.15);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
  position: relative;
}
.highlight-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.highlight-box p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 0;
}
.highlight-box p strong {
  color: var(--text);
}
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 32px;
  margin: 40px 0 24px;
  text-align: center;
}
.contact-box h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--text);
}
.contact-box p {
  margin-bottom: 0;
  font-size: 15px;
}
.contact-box a {
  color: var(--accent);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  border-bottom: 1px dashed rgba(230, 181, 74, 0.4);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}
.contact-box a:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--accent);
}
.warning-box {
  background: linear-gradient(
    135deg,
    rgba(236, 179, 54, 0.08) 0,
    rgba(236, 179, 54, 0.03) 100%
  );
  border: 1px solid rgba(236, 179, 54, 0.25);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 24px 0;
  position: relative;
}
.warning-box::before {
  content: '⚠';
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 16px;
  line-height: 1;
}
.warning-box p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.warning-box p:last-child {
  margin-bottom: 0;
}
.warning-box a {
  color: var(--accent);
  font-weight: 600;
}
.warning-box h3 {
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
}
.warning-box ul {
  margin-top: 8px;
  margin-left: 20px;
}
.page-content p > strong:first-child {
  color: var(--accent);
  font-weight: 600;
}
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 50vh;
  padding: calc(var(--header-h) + 80px) 24px 80px;
  max-width: 520px;
  margin: 0 auto;
}
.error-code {
  font-size: clamp(100px, 20vw, 160px);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}
.error-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin-bottom: 12px;
}
.error-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}
[dir='rtl'] .page-content h2 {
  flex-direction: row-reverse;
}
[dir='rtl'] .page-content li {
  padding-left: 0;
  padding-right: 24px;
}
[dir='rtl'] .page-content li::before {
  left: auto;
  right: 6px;
}
[dir='rtl'] .highlight-box::before {
  left: auto;
  right: 0;
}
[dir='rtl'] .warning-box::before {
  left: auto;
  right: 20px;
}
[dir='rtl'] .warning-box ul {
  margin-left: 0;
  margin-right: 20px;
}
@media (max-width: 640px) {
  .highlight-box,
  .warning-box {
    padding: 16px 18px;
  }
  .contact-box {
    padding: 24px 20px;
  }
  .contact-box a {
    font-size: 15px;
  }
  .page-content h2 {
    font-size: 18px;
    margin-top: 36px;
    padding-top: 20px;
  }
}
