/* ============================================================
   红色年轮 · 字体与标题艺术系统
   朱砂渐变 / 暖白高光 / 墨色立体阴影
   ============================================================ */

html,
body {
  text-rendering: optimizeLegibility;
}

p,
li,
dd,
button,
input,
textarea,
summary {
  letter-spacing: 0.012em;
}

/* 标题采用红色艺术字。兼容不支持文字裁切的浏览器时保留朱红字色。 */
.portal-hero h1 strong,
.portal-hero h1 b,
.portal-section-head h2,
.scene-header h2,
.map-heading h1,
.event-copy h2,
.drawer-head h2,
.event-media-card h2,
.region-heading h2,
.martyr-header h2,
.ending-content h2,
.quiz-card h2,
.spirit-room h2,
.guide-card h2,
.scene-help-card h2,
.star-profile-copy h3,
.sand-event-card h3,
.event-panel-illustration figcaption strong {
  color: #e52b46;
  background: linear-gradient(
    172deg,
    #fff4ec 0%,
    #ff9a9f 13%,
    #f04a5d 31%,
    #d51435 55%,
    #9e1530 78%,
    #6f1025 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.45px rgba(255, 225, 216, 0.24);
  filter:
    drop-shadow(0 1px 0 rgba(66, 5, 14, 0.9))
    drop-shadow(0 4px 0 rgba(45, 4, 10, 0.36))
    drop-shadow(0 10px 22px rgba(200, 16, 46, 0.22));
  font-weight: 500;
}

/* 首页主标题：暖白与朱砂两种艺术字层级 */
.portal-hero h1 span,
.portal-hero h1 em {
  color: #f9eee5;
  background: linear-gradient(
    176deg,
    #fffdf8 0%,
    #fff1e7 24%,
    #f5d8d2 55%,
    #dfaaa9 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.7px rgba(156, 32, 43, 0.24);
  filter:
    drop-shadow(0 1px 0 #5d121c)
    drop-shadow(0 4px 0 rgba(68, 9, 18, 0.58))
    drop-shadow(0 11px 26px rgba(0, 0, 0, 0.52));
}

.portal-hero h1 strong,
.portal-hero h1 b {
  -webkit-text-stroke: 0.6px rgba(255, 222, 212, 0.32);
  filter:
    drop-shadow(0 1px 0 #4e0714)
    drop-shadow(0 5px 0 rgba(57, 4, 13, 0.48))
    drop-shadow(0 12px 30px rgba(200, 16, 46, 0.27));
}

.portal-eyebrow,
.memory-gallery-head p,
.portal-section-head > p:first-child,
.scene-header p,
.quiz-card header > p:first-child,
.spirit-room header p,
.guide-card header p,
.login-kicker {
  color: rgba(255, 114, 127, 0.94) !important;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.portal-brand strong {
  color: #fff3eb;
  font-size: 24px;
  font-weight: 600;
  text-shadow:
    0 1px 0 #6c0b1a,
    0 4px 12px rgba(200, 16, 46, 0.3);
}

.portal-brand small {
  color: rgba(255, 225, 215, 0.6);
  font-size: 10.5px;
  font-weight: 500;
}

.portal-hero .portal-lead {
  color: rgba(255, 245, 238, 0.78);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.portal-section-head h2,
.memory-gallery-head h2 {
  font-size: clamp(38px, 3.8vw, 59px);
  letter-spacing: 0.035em;
}

.memory-gallery-head h2 {
  color: #fff3e8;
  background: linear-gradient(176deg, #fffdf8, #fff0e3 38%, #e8b8ac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.65px rgba(139, 27, 21, 0.28);
  filter:
    drop-shadow(0 2px 0 rgba(83, 10, 17, 0.85))
    drop-shadow(0 8px 24px rgba(50, 3, 10, 0.48));
}

.portal-section-head > p:last-child {
  color: rgba(255, 243, 236, 0.62);
  font-size: 15px;
  line-height: 1.9;
}

.exhibition-card > strong {
  color: #fff8f2;
  font-size: clamp(29px, 2.65vw, 42px);
  font-weight: 600;
  text-shadow:
    0 1px 0 #650e20,
    0 5px 16px rgba(0, 0, 0, 0.51);
}

.exhibition-card > strong::after {
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 13px;
  background: linear-gradient(90deg, #e63946, rgba(230, 57, 70, 0));
  content: "";
}

.exhibition-card .card-desc {
  color: rgba(255, 246, 239, 0.63);
  font-size: 14px;
  line-height: 1.85;
}

.exhibition-card .card-enter {
  color: rgba(255, 245, 238, 0.88);
  font-size: 13px;
  font-weight: 600;
}

.card-kicker {
  color: #ff7a86;
  font-size: 10.5px;
  font-weight: 600;
}

/* 主导航和按钮更清晰 */
.portal-nav button {
  color: rgba(255, 244, 237, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.portal-directory-btn,
.portal-user-chip strong {
  font-size: 13px;
  font-weight: 600;
}

.portal-primary,
.portal-secondary {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.055em;
}

/* 战史长卷标题艺术字 */
.app-shell .brand-copy strong {
  color: #fff3eb;
  font-family: var(--portal-kai);
  font-size: 22px;
  font-weight: 600;
  text-shadow:
    0 1px 0 #5c0a18,
    0 4px 12px rgba(200, 16, 46, 0.32);
}

.app-shell .brand-copy small {
  color: rgba(255, 228, 217, 0.58);
  font-size: 9.5px;
}

.app-shell .map-heading h1 {
  font-family: var(--portal-kai);
  font-size: clamp(22px, 1.75vw, 29px);
  font-weight: 600;
  letter-spacing: 0.075em;
}

.app-shell .map-heading p {
  color: rgba(255, 229, 218, 0.6);
  font-size: 10.5px;
  font-weight: 500;
}

.app-shell .event-copy h2 {
  font-family: var(--portal-kai);
  font-size: clamp(31px, 2.35vw, 41px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0.045em;
}

.app-shell .event-date {
  color: rgba(255, 218, 206, 0.62);
  font-size: 10.5px;
  font-weight: 600;
}

.app-shell .event-subtitle {
  color: #ff8992;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.app-shell .event-category {
  font-size: 9.5px;
  font-weight: 600;
}

.app-shell .event-narration {
  color: rgba(255, 244, 237, 0.88);
  font-family: var(--portal-serif);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.9;
}

.app-shell .narration-label {
  color: #ff8c95;
  font-size: 10px;
  font-weight: 600;
}

.app-shell .lens-card p {
  color: rgba(255, 244, 237, 0.74);
  font-size: 13px;
  line-height: 1.85;
}

.app-shell .lens-title h3 {
  color: #fff4ed;
  font-size: 14px;
  font-weight: 600;
}

.app-shell .phase-battle-strip {
  font-size: 11px;
}

.app-shell .phase-battle-strip strong {
  color: #ff6a77;
  font-size: 15px;
}

.app-shell .event-panel-illustration figcaption {
  font-size: 9px;
}

.app-shell .event-panel-illustration figcaption span {
  color: #8c1c13;
  font-weight: 600;
}

.app-shell .event-panel-illustration figcaption strong {
  font-size: 9.5px;
}

.scene-header h2 {
  font-size: clamp(23px, 1.8vw, 29px);
  font-weight: 600;
}

.sand-year-block strong {
  color: #ff7180;
  background: linear-gradient(180deg, #fff0e8, #ff8491 18%, #df2442 58%, #8c1028 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 70px;
  font-weight: 600;
  text-shadow: none;
  filter:
    drop-shadow(0 2px 0 #4b0918)
    drop-shadow(0 10px 24px rgba(200, 16, 46, 0.28));
}

.sand-event-card h3,
.star-profile-copy h3 {
  font-size: 29px;
  font-weight: 600;
}

.sand-event-card > p,
.star-profile-copy > p {
  color: rgba(255, 244, 237, 0.7);
  font-size: 13.5px;
  line-height: 1.88;
}

.star-profile-copy > strong {
  font-size: 11px;
  font-weight: 600;
}

.star-profile-copy blockquote {
  color: rgba(255, 245, 238, 0.84);
  font-size: 13px;
}

.star-list button strong {
  font-size: 15px;
  font-weight: 500;
}

.star-index header h3 {
  color: #ff6876;
  font-size: 27px;
  font-weight: 600;
}

/* 历史档案加粗、增大字号 */
.drawer-head h2 {
  font-size: 37px;
  font-weight: 600;
}

.archive-drawer .drawer-intro {
  color: rgba(255, 242, 234, 0.66);
  font-size: 12px;
  line-height: 1.85;
}

.archive-drawer .history-tab {
  font-size: 12px;
  font-weight: 600;
}

.archive-drawer .battle-entry-title {
  font-family: var(--portal-kai);
  font-size: 18px;
  font-weight: 600;
}

.archive-drawer .battle-entry-date,
.archive-drawer .battle-entry-sub,
.archive-drawer .battle-result-count {
  font-size: 10.5px;
  font-weight: 500;
}

.archive-drawer .battle-entry-body p,
.archive-drawer .archive-body p {
  color: rgba(255, 245, 238, 0.78);
  font-size: 13.5px;
  line-height: 1.9;
}

.archive-drawer .archive-entry h3 {
  font-size: 18px;
  font-weight: 600;
}

.archive-drawer select,
.archive-drawer .battle-select {
  color: #fff5ef;
  font-size: 11px;
  font-weight: 500;
}

/* 知识问答 */
.quiz-title-lockup h2 {
  font-size: 41px;
  font-weight: 600;
}

.quiz-title-lockup p {
  color: rgba(255, 243, 236, 0.58);
  font-size: 11px;
}

.quiz-card #quizQuestion {
  color: #7b101c;
  background: linear-gradient(172deg, #5c0d18 0%, #9e1528 46%, #d9213f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.55;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.42));
}

.option-copy {
  font-size: 15.5px;
  font-weight: 600;
}

.option-index {
  font-size: 14px;
  font-weight: 600;
}

.quiz-hint-btn span {
  font-size: 13px;
  font-weight: 600;
}

.quiz-hint-btn small {
  color: rgba(255, 238, 230, 0.44);
  font-size: 8px;
}

.quiz-card .quiz-feedback {
  color: rgba(255, 244, 238, 0.7);
  font-size: 12.5px;
  line-height: 1.8;
}

.quiz-meta span:first-child,
.quiz-card header > div:nth-child(2) > span {
  font-size: 9.5px;
}

/* 今日回信：深红墨迹艺术标题 */
.letter-head strong {
  color: #7f1220;
  background: linear-gradient(170deg, #4b0913 0%, #8c1326 38%, #c31b38 70%, #e74b59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 35px;
  font-weight: 600;
  filter: drop-shadow(0 1px 0 rgba(255, 250, 242, 0.58));
}

.letter-head span {
  color: rgba(140, 28, 19, 0.8);
  font-size: 9px;
  font-weight: 600;
}

.letter-head small {
  color: rgba(59, 33, 29, 0.53);
  font-size: 9px;
}

.letter-greeting span {
  color: #7f1220;
  font-size: 17px;
  font-weight: 600;
}

.letter-greeting p {
  color: rgba(53, 28, 24, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.today-gate .letter-field > span {
  color: rgba(68, 35, 29, 0.8);
  font-size: 14px;
  font-weight: 600;
}

.today-gate .letter-field textarea {
  color: #341b18;
  font-size: 17px;
  font-weight: 500;
}

.today-gate .letter-suggestions button {
  color: rgba(53, 28, 24, 0.7);
  font-size: 9px;
  font-weight: 500;
}

.today-gate .letter-actions > span {
  color: rgba(53, 28, 24, 0.55);
  font-size: 9px;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .portal-hero h1 strong,
  .portal-hero h1 b,
  .portal-section-head h2,
  .scene-header h2,
  .map-heading h1,
  .event-copy h2,
  .drawer-head h2,
  .quiz-card h2,
  .spirit-room h2,
  .guide-card h2,
  .sand-event-card h3,
  .star-profile-copy h3 {
    color: #e52b46;
    -webkit-text-fill-color: currentColor;
  }
}

@media (max-width: 760px) {
  .portal-hero .portal-lead {
    font-size: 15.5px;
  }

  .portal-section-head h2,
  .memory-gallery-head h2 {
    font-size: 35px;
  }

  .app-shell .event-copy h2 {
    font-size: 30px;
  }

  .app-shell .event-narration {
    font-size: 14px;
  }

  .quiz-title-lockup h2 {
    font-size: 31px;
  }

  .quiz-card #quizQuestion {
    font-size: 19.5px;
  }

  .option-copy {
    font-size: 15px;
  }

  .letter-head strong {
    font-size: 28px;
  }

  .letter-greeting p {
    font-size: 13px;
  }

  .today-gate .letter-field textarea {
    font-size: 16px;
  }
}
