:root {
  --help-ink:#27264d;
  --help-copy:#5f607f;
  --help-purple:#605ce5;
  --help-bg:#f7f9ff;
  --help-shadow:0 2px 14px rgba(227,233,250,.6);
  --help-shadow-hover:0 4px 18px rgb(215,223,245);
  --help-page-background:url("help-center/background-optimized.webp");
  --help-hot-card-background:url("help-center/hot-card.png");
}

* { box-sizing:border-box; }
html { min-width:320px; scroll-behavior:smooth; }
body {
  margin:0;
  color:var(--help-ink);
  background:#f8f9fa;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input { font:inherit; }
a { color:inherit; }

.help-page {
  min-height:100vh;
  overflow:hidden;
  background-color:var(--help-bg);
  background-image:linear-gradient(to bottom,transparent 330px,rgba(247,249,255,.18) 385px,rgba(247,249,255,.7) 465px,var(--help-bg) 555px),var(--help-page-background);
  background-position:center top,center top;
  background-size:100% 555px,2560px 485px;
  background-repeat:no-repeat,no-repeat;
}

.help-brand {
  position:absolute;
  z-index:20;
  top:18px;
  left:40px;
  display:flex;
  align-items:center;
  gap:22px;
  height:44px;
  color:#505170;
  font-size:20px;
  line-height:1;
}
.help-brand a { display:flex; align-items:center; text-decoration:none; }
.help-brand img { display:block; width:172px; height:auto; }
.help-embedded .help-brand,.help-embedded .help-footer,.help-embedded .help-more { display:none; }
.help-embedded,.help-embedded body { height:auto; min-height:0; overflow:hidden; }
.help-embedded .help-page { min-height:0; background-color:#f7f9ff; background-image:none; }
.help-embedded .help-main { padding-bottom:clamp(88px,6vw,112px); }

.help-main { width:min(1200px,calc(100% - 48px)); margin:0 auto; padding:62px 0 0; }
.help-embedded .help-main { padding-top:24px; }
.help-hero { text-align:center; }
.help-hero h1 {
  margin:0;
  font-size:40px;
  font-weight:600;
  line-height:58px;
  letter-spacing:-1.5px;
}

.help-search {
  position:relative;
  display:flex;
  width:748px;
  height:54px;
  margin:39px auto 0;
  padding:4px;
  border:1px solid transparent;
  border-radius:8px;
  background:#fff;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.help-search:hover,.help-search:focus-within { border-color:var(--help-purple); }
.help-search__icon {
  position:absolute;
  top:18px;
  left:20px;
  width:15px;
  height:15px;
  border:2px solid #7d7d94;
  border-radius:50%;
  pointer-events:none;
}
.help-search__icon::after {
  position:absolute;
  right:-5px;
  bottom:-3px;
  width:6px;
  height:2px;
  border-radius:2px;
  background:#7d7d94;
  content:"";
  transform:rotate(45deg);
}
.help-search input {
  min-width:0;
  flex:1;
  height:44px;
  padding:0 18px 0 43px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--help-ink);
  font-size:16px;
}
.help-search input::placeholder { color:#c2c2c6; }
.help-search .btn-donate {
  --clr-font-main:hsla(0 0% 20% / 100%);
  --btn-bg-1:hsla(194 100% 69% / 1);
  --btn-bg-2:hsla(217 100% 56% / 1);
  --btn-bg-color:hsla(360 100% 100% / 1);
  --radii:.5em;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  min-width:108px;
  min-height:44px;
  padding:.9em 1.4em;
  border:0;
  border-radius:var(--radii);
  background-image:linear-gradient(325deg,var(--btn-bg-2) 0%,var(--btn-bg-1) 55%,var(--btn-bg-2) 90%);
  background-size:280% auto;
  color:var(--btn-bg-color);
  box-shadow:0 0 20px rgba(71,184,255,.5),0 5px 5px -1px rgba(58,125,233,.25),inset 4px 4px 8px rgba(175,230,255,.5),inset -4px -4px 8px rgba(19,95,216,.35);
  font-size:var(--size,1rem);
  font-weight:500;
  transition:background-position .8s ease,transform .2s ease;
}
.help-search .btn-donate:hover { background-position:right top; }
.help-search .btn-donate:active { transform:scale(.98); }
.help-search .btn-donate:is(:focus,:focus-visible,:active) {
  outline:none;
  box-shadow:0 0 20px rgba(71,184,255,.5),0 5px 5px -1px rgba(58,125,233,.25),inset 4px 4px 8px rgba(175,230,255,.5),inset -4px -4px 8px rgba(19,95,216,.35);
}
.help-search__button-icon { position:relative; width:14px; height:14px; border:2px solid currentColor; border-radius:50%; }
.help-search__button-icon::after { position:absolute; right:-5px; bottom:-3px; width:6px; height:2px; border-radius:2px; background:currentColor; content:""; transform:rotate(45deg); }
@media (prefers-reduced-motion:reduce) {
  .help-search .btn-donate { transition:linear; }
}
.help-search__results {
  position:absolute;
  z-index:30;
  top:62px;
  right:0;
  left:0;
  overflow:hidden;
  padding:8px;
  border:1px solid rgba(96,92,229,.12);
  border-radius:10px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 40px rgba(51,55,105,.16);
  text-align:left;
}
.help-search__results a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:42px;
  padding:8px 12px;
  border-radius:7px;
  color:#4e4f70;
  font-size:14px;
  text-decoration:none;
}
.help-search__results a::after { color:var(--help-purple); content:"›"; font-size:22px; }
.help-search__results a:hover,.help-search__results a.is-active { background:#f2f3ff; color:var(--help-purple); }
.help-search__empty { padding:14px; color:#8a8ba2; font-size:14px; }

.help-board {
  display:grid;
  grid-template-columns:387px 1fr;
  gap:20px;
  margin-top:82px;
}
.help-card {
  border-radius:8px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--help-shadow);
  transition:box-shadow .22s ease;
}
.help-card:hover { box-shadow:var(--help-shadow-hover); }
.help-card__heading { display:flex; height:36px; align-items:center; }
.help-card__heading img { width:36px; height:36px; object-fit:contain; }
.help-card__heading h2 { margin:0 0 0 12px; font-size:20px; font-weight:600; line-height:28px; }
.help-card__heading > a {
  display:flex;
  margin-left:auto;
  align-items:center;
  color:#123b8f;
  font-size:14px;
  text-decoration:none;
}
.help-card__heading > a span { margin-left:3px; font-size:25px; line-height:1; transition:transform .2s ease; }
.help-card__heading > a:hover span { transform:translateX(3px); }
.help-card__heading > a:hover { color:#0d2f75; }

.help-hot {
  min-height:469px;
  padding:27px 22px 29px;
  background:transparent var(--help-hot-card-background) center / cover no-repeat;
}
.help-hot__list { margin:25px 0 0; padding:0; list-style:none; }
.help-hot__list li + li { margin-top:21px; }
.help-hot__list a { display:flex; align-items:center; color:#555674; font-size:16px; line-height:26px; text-decoration:none; transition:color .18s ease,transform .18s ease; }
.help-hot__list a:hover { color:var(--help-purple); transform:translateX(2px); }
.help-hot__list span { width:39px; flex:0 0 39px; color:#c8cad8; font-size:20px; font-weight:700; }
.help-hot__list em { margin-left:7px; padding:0 6px; border-radius:9px; background:#ffe6e6; color:#ff6262; font-size:10px; font-style:italic; font-weight:700; line-height:16px; }

.help-categories { display:grid; grid-template-columns:386px 1fr; gap:20px; }
.help-category { min-width:0; min-height:224px; padding:27px 22px 24px; }
.help-category .help-card__heading h2 { margin-left:16px; }
.help-category ul { margin:29px 0 0; padding:0; list-style:none; }
.help-category li + li { margin-top:13px; }
.help-category li { position:relative; padding-left:18px; }
.help-category li::before { position:absolute; top:10px; left:0; width:4px; height:4px; background:#626483; content:""; }
.help-category li a { display:block; overflow:hidden; color:#5b5c7b; font-size:15px; line-height:24px; text-decoration:none; text-overflow:ellipsis; white-space:nowrap; transition:color .18s ease,transform .18s ease; }
.help-category li a:hover { color:var(--help-purple); transform:translateX(2px); }

.help-more { display:flex; min-height:295px; margin-top:80px; flex-direction:column; }
.help-more > h2 { margin:0; text-align:center; font-size:32px; font-weight:600; line-height:56px; }
.help-more__grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin:31px 0 104px; }
.help-more__card {
  display:flex;
  height:104px;
  align-items:center;
  justify-content:space-between;
  padding:0 24px;
  border-radius:8px;
  background:rgba(255,255,255,.9);
  box-shadow:var(--help-shadow);
  text-decoration:none;
  transition:box-shadow .22s ease,transform .22s ease;
}
.help-more__card:hover { box-shadow:var(--help-shadow-hover); transform:translateY(-2px); }
.help-more__card span { display:flex; flex-direction:column; }
.help-more__card strong { font-size:18px; font-weight:600; }
.help-more__card small { margin-top:7px; color:#85869d; font-size:14px; }
.help-more__card img { width:54px; height:54px; object-fit:contain; transition:transform .22s ease; }
.help-more__card:hover img { transform:translateX(3px); }

.help-footer {
  display:flex;
  width:min(1200px,calc(100% - 48px));
  min-height:72px;
  margin:0 auto;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #e6e9f3;
  color:#9294aa;
  font-size:13px;
}
.help-footer a { color:inherit; text-decoration:none; }
.help-footer a:hover { color:var(--help-purple); }

@media (max-width:900px) {
  .help-page { background-size:100% 450px,auto 390px; }
  .help-embedded .help-main { padding-top:24px; }
  .help-brand { position:relative; top:auto; left:auto; width:calc(100% - 36px); margin:0 auto; padding-top:16px; }
  .help-brand img { width:132px; }
  .help-brand span { font-size:16px; }
  .help-main { width:calc(100% - 36px); padding-top:35px; }
  .help-hero h1 { font-size:clamp(27px,5vw,32px); line-height:1.38; }
  .help-search { width:100%; margin-top:26px; }
  .help-board { grid-template-columns:1fr; margin-top:48px; }
  .help-hot { min-height:auto; }
  .help-categories { grid-template-columns:1fr 1fr; }
  .help-more__grid { grid-template-columns:1fr 1fr; margin-bottom:70px; }
}

@media (max-width:620px) {
  .help-embedded .help-main { padding-bottom:24px; }
  .help-main { padding-bottom:44px; }
  .help-hero h1 { font-size:clamp(23px,6.6vw,27px); line-height:1.38; letter-spacing:-.5px; }
  .help-search { height:52px; }
  .help-search input { padding-right:8px; font-size:14px; }
  .help-search .btn-donate { min-width:74px; padding:.75em .8em; font-size:14px; }
  .help-board { gap:16px; margin-top:42px; }
  .help-hot { background-size:100% 100%; }
  .help-categories,.help-more__grid { grid-template-columns:1fr; gap:16px; }
  .help-category { min-height:206px; }
  .help-hot__list a { font-size:15px; }
  .help-more { margin-top:54px; }
  .help-more > h2 { font-size:27px; }
  .help-more__grid { margin-top:20px; }
  .help-footer { width:calc(100% - 36px); flex-direction:column; justify-content:center; gap:6px; padding:18px 0; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}
