/* XReply Pro shared site chrome. Page-specific styles stay in account.css,
   purchase.css and the existing download page inline styles; every selector
   here is prefixed with xr- so those pages keep working unchanged. */
:root {
  --xr-ink: #13151b;
  --xr-ink-soft: #333743;
  --xr-muted: #667085;
  --xr-orange: #ff5a1f;
  --xr-orange-dark: #d9440e;
  --xr-orange-soft: #fff1ea;
  --xr-cream: #fff8f1;
  --xr-paper: #fffdfb;
  --xr-line: #e8e2da;
  --xr-navy: #11152a;
  --xr-navy-soft: #1b2140;
  --xr-radius: 16px;
  --xr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC",
    "Hiragino Sans GB", Arial, sans-serif;
}

.xr-skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--xr-navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
}
.xr-skip:focus { top: 0; }

.xr-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 253, 250, 0.9);
  border-bottom: 1px solid rgba(232, 226, 218, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.xr-header-scrolled {
  box-shadow: 0 12px 30px -22px rgba(17, 21, 42, 0.55);
}
.xr-container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.xr-header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.xr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--xr-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.xr-brand svg { display: block; flex: 0 0 auto; }
.xr-brand .xr-logo-mark {
  display: block;
  flex: 0 0 auto;
  object-fit: cover;
}
.xr-brand small {
  color: var(--xr-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid var(--xr-line);
  background: #fff;
  border-radius: 999px;
  padding: 2px 8px;
}
.xr-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--xr-ink-soft);
}
.xr-nav a {
  color: inherit;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.xr-nav a:hover { color: var(--xr-orange-dark); border-bottom-color: var(--xr-orange); }
.xr-nav a[aria-current="page"] {
  color: var(--xr-ink);
  font-weight: 700;
  border-bottom-color: var(--xr-orange);
}
.xr-nav .xr-nav-cta {
  margin-left: 4px;
  background: var(--xr-navy);
  color: #fff;
  border: 1px solid var(--xr-navy);
  border-radius: 999px;
  padding: 9px 17px;
  font-weight: 700;
  border-bottom-color: var(--xr-navy);
}
.xr-nav .xr-nav-cta:hover { background: #232a4d; color: #fff; border-bottom-color: #232a4d; }
.xr-menu {
  display: none;
  margin-left: auto;
  border: 1px solid var(--xr-line);
  background: #fff;
  color: var(--xr-ink);
  border-radius: 9px;
  padding: 8px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.xr-footer {
  margin-top: 80px;
  background: var(--xr-navy);
  color: #c9cfe3;
  padding: 54px 0 24px;
}
.xr-footer a { color: #eef1fa; text-decoration: none; }
.xr-footer a:hover { color: #fff; text-decoration: underline; }
.xr-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(120px, 0.6fr));
  gap: 36px;
}
.xr-footer-brand p {
  margin: 14px 0 0;
  max-width: 340px;
  color: #aeb6ce;
  font-size: 13px;
  line-height: 1.75;
}
.xr-footer .xr-brand { color: #fff; }
.xr-footer .xr-brand small { background: transparent; border-color: #39405d; color: #aeb6ce; }
.xr-footer h3 {
  margin: 2px 0 14px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.xr-footer-col { display: grid; align-content: start; gap: 10px; font-size: 13px; }
.xr-footer-bottom {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid #2a3150;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #8f98b5;
  font-size: 12px;
}

@media (max-width: 920px) {
  .xr-header-inner { min-height: 64px; }
  .xr-menu { display: inline-flex; align-items: center; }
  .xr-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px 24px 20px;
    background: var(--xr-paper);
    border-bottom: 1px solid var(--xr-line);
    box-shadow: 0 22px 40px -28px rgba(17, 21, 42, 0.45);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .xr-nav.xr-nav-open { display: flex; }
  .xr-nav a { padding: 10px 0; border-bottom: 1px solid #f2ece5; }
  .xr-nav a[aria-current="page"] { border-bottom-color: var(--xr-orange); }
  .xr-nav .xr-nav-cta { margin: 10px 0 0; text-align: center; border-bottom: 1px solid var(--xr-navy); }
  .xr-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .xr-container { width: min(1160px, calc(100% - 32px)); }
  .xr-brand small { display: none; }
  .xr-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .xr-footer { margin-top: 56px; padding-top: 40px; }
}

/* 顶部动态公告 / 维护提示 */
.xr-site-notices {
  position: relative;
  z-index: 90;
}
.xr-site-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.xr-site-notice strong {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.xr-site-notice span { min-width: 0; white-space: pre-line; }
.xr-site-notice.is-maintenance {
  background: #fff1e8;
  color: #7f3414;
}
.xr-site-notice.is-maintenance strong {
  background: #ff5a1f;
  color: #fff;
}
.xr-site-notice.is-announcement {
  background: var(--xr-navy);
  color: #fff;
}
.xr-site-notice.is-announcement strong {
  background: rgba(255, 255, 255, 0.16);
  color: #ffd7c6;
}
@media (max-width: 600px) {
  .xr-site-notice {
    align-items: flex-start;
    padding: 8px 14px;
    font-size: 12px;
    text-align: left;
  }
}