:root {
  --secondary-pink: #ff6480;
  --secondary-deep: #a52e50;
  --secondary-ink: #302a30;
  --secondary-muted: #887a82;
  --secondary-line: #f3d8e0;
  --secondary-wash: #fff8fa;
  --secondary-shadow: 0 14px 34px rgba(214, 103, 128, .10);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.secondary-body {
  margin: 0;
  min-width: 320px;
  color: var(--secondary-ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 208, 218, .34), transparent 22%),
    linear-gradient(180deg, #fff 0%, #fff8fa 100%);
  font-family: "Ark Pixel", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

.secondary-body a { color: inherit; text-decoration: none; }
.secondary-body a:focus-visible { outline: 3px solid rgba(255, 100, 128, .34); outline-offset: 3px; }
.secondary-body .site-header { min-height: 84px; }

.secondary-shell { width: min(90%, 1240px); margin: 0 auto; padding: 34px 0 58px; }
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 17px;
  padding: 42px 48px 38px;
  border: 1px solid var(--secondary-line);
  border-radius: 4px;
  background: linear-gradient(110deg, rgba(255,255,255,.98), rgba(255,245,248,.90));
  box-shadow: var(--secondary-shadow);
}
.page-hero::after {
  position: absolute;
  z-index: -1;
  right: -70px;
  top: -130px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(246, 166, 183, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 231, 237, .36), 0 0 0 44px rgba(255, 241, 245, .58);
  content: "";
}
.page-hero::before {
  position: absolute;
  z-index: -1;
  left: 42px;
  bottom: 20px;
  width: 92px;
  height: 92px;
  background: url("brand/mabinogi-mark.png") center / contain no-repeat;
  content: "";
  opacity: .045;
  mix-blend-mode: multiply;
}
.page-hero .eyebrow { margin-bottom: 12px; color: #ef7187; font-size: 11px; font-weight: 700; letter-spacing: 4px; }
.page-hero h1 { margin: 0; color: var(--secondary-deep); font-family: "Ark Pixel", "Microsoft YaHei", sans-serif; font-size: clamp(36px, 4vw, 54px); letter-spacing: 0; line-height: 1.2; }
.page-hero p { max-width: 650px; margin: 13px 0 0; color: #75676e; font-size: 15px; line-height: 1.8; }
.page-hero .page-back { position: absolute; top: 39px; right: 47px; color: var(--secondary-pink); font-size: 13px; font-weight: 700; }

.guide-tabs { display: flex; gap: 10px; margin-bottom: 17px; }
.guide-tab { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 145px; padding: 12px 19px; border: 1px solid var(--secondary-line); border-radius: 4px; color: #a16b78; background: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; transition: .2s ease; }
.guide-tab:hover, .guide-tab.active { border-color: var(--secondary-pink); color: #fff; background: linear-gradient(135deg, #ff8292, #f44e6d); box-shadow: 0 7px 16px rgba(239,71,104,.16); }
.guide-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 12px; color: var(--secondary-muted); font-size: 13px; }
.guide-summary strong { color: var(--secondary-deep); font-size: 16px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.guide-card { position: relative; display: block; min-height: 144px; padding: 22px 20px 20px; border: 1px solid var(--secondary-line); border-radius: 4px; background: rgba(255,255,255,.94); box-shadow: 4px 4px 0 rgba(196,53,92,.11), 0 7px 20px rgba(214,103,128,.06); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.guide-card::before { position: absolute; top: 0; left: 20px; width: 36px; height: 3px; border-radius: 0 0 99px 99px; background: #ff8399; content: ""; }
.guide-card:hover { border-color: #f2a9b9; box-shadow: 0 12px 26px rgba(214,103,128,.13); transform: translateY(-3px); }
.guide-card strong { display: block; margin-bottom: 10px; color: #43373e; font-size: 17px; line-height: 1.45; }
.guide-card span { display: block; color: #897b83; font-size: 13px; line-height: 1.7; }
.guide-card .guide-arrow { position: absolute; right: 18px; bottom: 17px; color: var(--secondary-pink); font-size: 20px; }
.empty { padding: 45px; border: 1px solid var(--secondary-line); border-radius: 18px; color: var(--secondary-muted); background: rgba(255,255,255,.9); text-align: center; }

.article-shell { width: min(88%, 980px); margin: 0 auto; padding: 27px 0 62px; }
.article-breadcrumb { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 14px; color: #a17f89; font-size: 13px; }
.article-breadcrumb a { color: var(--secondary-pink); font-weight: 700; }
.article-card { padding: clamp(25px, 4vw, 52px); border: 1px solid var(--secondary-line); border-radius: 4px; background: rgba(255,255,255,.96); box-shadow: 4px 4px 0 rgba(196,53,92,.11), var(--secondary-shadow); }
.article-meta { display: flex; align-items: center; gap: 12px; color: #98868e; font-size: 13px; }
.article-meta .tag { display: inline-flex; padding: 5px 11px; border-radius: 6px; color: #fff; background: linear-gradient(135deg, #ff8292, #f44e6d); font-size: 11px; }
.article-card h1 { margin: 17px 0 12px; color: #92314f; font-family: "Ark Pixel", "Microsoft YaHei", sans-serif; font-size: clamp(31px, 4vw, 48px); line-height: 1.3; }
.article-summary { margin: 0 0 28px; padding: 14px 17px; border-left: 3px solid #ff8292; border-radius: 0 12px 12px 0; color: #816f78; background: #fff6f8; font-size: 14px; line-height: 1.8; }
.article-content { color: #4d4249; font-size: 15px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.article-content a { color: #df4568; text-decoration: underline; text-underline-offset: 3px; }
.article-images { display: grid; gap: 15px; margin-top: 28px; }
.article-images img { display: block; width: 100%; height: auto; border: 1px solid var(--secondary-line); border-radius: 15px; background: #fff7fa; }
.article-bottom { margin-top: 32px; padding-top: 19px; border-top: 1px solid #f5e4e8; color: #9a8b92; font-size: 12px; }
.article-bottom a { color: var(--secondary-pink); font-weight: 700; }

.site-footer { width: min(92%, 1240px); margin: 0 auto; padding: 19px 3px 25px; border-top: 1px solid #f3e3e7; color: #9a8d94; font-size: 12px; line-height: 1.6; text-align: center; }
.site-footer .footer-heart { color: #ff7b94; font-size: 19px; vertical-align: -2px; }

@media (max-width: 1100px) {
  .secondary-body .site-header { gap: 18px; padding-inline: 28px; }
  .secondary-body .site-nav { gap: 18px; }
  .secondary-body .site-nav a { font-size: 14px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 840px) {
  .secondary-body .site-header { flex-wrap: wrap; gap: 0 20px; padding-block: 13px 0; }
  .secondary-body .site-nav { order: 3; width: calc(100% + 40px); margin-inline: -20px; overflow-x: auto; justify-content: flex-start; gap: 26px; min-height: 48px; padding-inline: 20px; scrollbar-width: none; }
  .secondary-body .site-nav::-webkit-scrollbar { display: none; }
  .secondary-body .site-nav a.active::after { bottom: 6px; }
  .secondary-shell { width: calc(100% - 28px); padding-top: 22px; }
  .page-hero { padding: 33px 24px 29px; }
  .page-hero .page-back { top: 29px; right: 24px; }
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .secondary-body .site-header { padding-inline: 16px; }
  .secondary-body .site-nav { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; }
  .secondary-body .server-state { padding-inline: 9px; }
  .secondary-body .state-heart { display: none; }
  .page-hero h1 { font-size: 37px; }
  .page-hero p { font-size: 13px; }
  .page-hero .page-back { position: static; display: inline-block; margin-top: 17px; }
  .guide-tabs { overflow-x: auto; padding-bottom: 3px; }
  .guide-tab { min-width: 130px; }
  .guide-summary { align-items: flex-start; flex-direction: column; }
  .article-shell { width: calc(100% - 28px); padding-top: 19px; }
  .article-breadcrumb { align-items: flex-start; flex-direction: column; }
  .article-card { padding: 24px 18px; border-radius: 18px; }
  .article-content { font-size: 14px; line-height: 1.9; }
}
