/* Xinyouyuan site styles — scoped, no external requests */

.entry-content {
  font-size: 17px;
  line-height: 1.68;
  color: #14181c;
}

.entry-content > * + * { margin-top: 1.1em; }

.entry-content h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.012em;
  margin-top: 2.2em;
  padding-bottom: .35em;
  border-bottom: 1px solid #dfe3e6;
}

.entry-content h3 {
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 700;
  margin-top: 1.7em;
}

.entry-content p { margin: 0 0 1.05em; }
.entry-content strong { font-weight: 650; }
.entry-content em { font-style: italic; }

.entry-content ul,
.entry-content ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li > ul { margin-top: .5em; }

.entry-content a {
  color: #0b4f6c;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: #08374d; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  margin: 1.4em 0 1.6em;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.entry-content thead th {
  text-align: left;
  font-weight: 650;
  background: #f2f5f6;
  border-bottom: 2px solid #cfd6da;
  padding: 10px 14px;
}
.entry-content tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #e6eaec;
  vertical-align: top;
}
.entry-content tbody tr:nth-child(even) { background: #fafbfb; }

.entry-content blockquote {
  margin: 1.5em 0;
  padding: .2em 0 .2em 1.1em;
  border-left: 3px solid #0b4f6c;
  color: #3d474f;
}

.entry-content hr {
  border: 0;
  border-top: 1px solid #dfe3e6;
  margin: 2.4em 0;
}

/* ---------- home page blocks ---------- */

.xy-lead {
  font-size: 1.14rem;
  line-height: 1.62;
  color: #34404a;
  max-width: 46em;
}

.xy-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: #dfe3e6;
  border: 1px solid #dfe3e6;
  margin: 2em 0;
}
.xy-stats > div {
  background: #fff;
  padding: 18px 18px 16px;
}
.xy-stats b {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: #0b4f6c;
  letter-spacing: -0.02em;
}
.xy-stats span {
  display: block;
  font-size: .82rem;
  color: #5b666f;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.xy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 1.6em 0 2em;
}
.xy-card {
  border: 1px solid #dfe3e6;
  padding: 20px 20px 18px;
  background: #fff;
  transition: border-color .15s ease;
}
.xy-card:hover { border-color: #0b4f6c; }
.xy-card h3 {
  margin: 0 0 .45em;
  font-size: 1.05rem;
  line-height: 1.35;
}
.xy-card p {
  margin: 0 0 .8em;
  font-size: .93rem;
  line-height: 1.55;
  color: #4d5861;
}
.xy-card a.xy-more {
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.xy-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin: 1.4em 0 2em;
}
@media (max-width: 720px) {
  .xy-split { grid-template-columns: 1fr; gap: 20px; }
}

.xy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #dfe3e6;
}
.xy-list li {
  padding: 12px 0;
  border-bottom: 1px solid #dfe3e6;
  font-size: .95rem;
  line-height: 1.5;
}
.xy-list li b { display: block; font-weight: 650; margin-bottom: 2px; }
.xy-list li span { color: #5b666f; }

.xy-cta {
  border: 1px solid #0b4f6c;
  background: #f4f8fa;
  padding: 26px 26px 22px;
  margin: 2.2em 0 1em;
}
.xy-cta h2 { border: 0; margin: 0 0 .5em; padding: 0; font-size: 1.35rem; }
.xy-cta p { margin: 0 0 1em; }
.xy-btn {
  display: inline-block;
  background: #0b4f6c;
  color: #fff !important;
  text-decoration: none !important;
  padding: 11px 22px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
}
.xy-btn:hover { background: #08374d; }

.xy-postlist { list-style: none; padding: 0; margin: 1.2em 0; }
.xy-postlist li {
  padding: 14px 0;
  border-bottom: 1px solid #dfe3e6;
}
.xy-postlist a { font-weight: 600; text-decoration: none; }
.xy-postlist a:hover { text-decoration: underline; }
.xy-postlist span {
  display: block;
  font-size: .9rem;
  color: #5b666f;
  margin-top: 4px;
  line-height: 1.5;
}

/* ---------- archive and single polish ---------- */

.ast-article-post .entry-meta,
.ast-article-post .cat-links,
.entry-meta .posted-by,
.entry-meta .ast-author-avatar { display: none; }

.ast-article-post .entry-title { font-weight: 650; }
.ast-article-post .entry-summary p,
.ast-article-post .entry-content p { color: #4d5861; }

@media (max-width: 720px) {
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 1.4rem; }
}
