:root {
  --brand: #6174ed;
  --brand-dark: #4359df;
  --brand-soft: #edf0ff;
  --ink: #16213d;
  --muted: #6f7b91;
  --line: #e6e9f0;
  --page: #f4f6fa;
  --card: #ffffff;
  --shadow-sm: 0 2px 9px rgba(22, 33, 61, 0.06);
  --shadow-md: 0 12px 35px rgba(31, 46, 91, 0.12);
  --radius: 12px;
  --topbar-height: 82px;
  --content-max: 1760px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --site-font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-custom: var(--site-font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: var(--site-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--site-font-heading); }
a { color: inherit; text-decoration: none; }
button { border: 0; }

.noscript {
  padding: 16px;
  color: #7c2d12;
  background: #ffedd5;
  text-align: center;
}

.app-shell { min-height: 100vh; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  color: #fff;
  background: linear-gradient(115deg, #6879ef 0%, #5f72eb 46%, #566be6 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% -40%, rgba(255,255,255,.18), transparent 34%),
    radial-gradient(circle at 85% 150%, rgba(55,75,190,.18), transparent 35%);
}

.topbar-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left,
.topbar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease);
}

.icon-button:hover { background: rgba(255,255,255,.13); }
.icon-button:active { transform: scale(.94); }
.icon-button svg { width: 22px; height: 22px; }

.brand-mini {
  display: none;
  font-weight: 750;
  letter-spacing: .01em;
}

.topbar-user {
  position: relative;
  z-index: 1;
  padding: 7px 9px 7px 7px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  cursor: default;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(45deg, rgba(255,255,255,.26) 25%, transparent 25%) 0 0 / 8px 8px,
    linear-gradient(-45deg, rgba(255,255,255,.18) 25%, transparent 25%) 0 0 / 8px 8px,
    #6a1b76;
  box-shadow: 0 0 0 2px rgba(255,255,255,.32);
}
.avatar svg { width: 20px; height: 20px; }
.user-caret { opacity: .82; }

.layout {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 28px 56px;
}

.page-heading {
  min-height: 78px;
  margin-top: -16px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(20px, 1.45vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.back-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--brand-dark);
  background: transparent;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.back-button:hover { background: var(--brand-soft); }
.back-button:active { transform: translateX(-2px); }
.back-button svg { width: 19px; height: 19px; }

.home-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
}

.platform-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 38px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 5px 13px rgba(21, 33, 67, .18);
  isolation: isolate;
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease);
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(118deg, var(--card-start, #6174ed), var(--card-end, #4359df));
}

.platform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(0,0,0,.12), transparent 58%);
  opacity: .24;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 34px rgba(21, 33, 67, .24);
  filter: saturate(1.04);
}

.platform-card:focus-visible {
  outline: 4px solid rgba(93, 116, 237, .28);
  outline-offset: 4px;
}

.platform-card h2 {
  margin: 0 0 8px;
  max-width: 75%;
  font-size: clamp(31px, 2.4vw, 47px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 720;
}

.platform-card p {
  margin: 0;
  max-width: 72%;
  font-size: clamp(14px, 1.2vw, 19px);
  line-height: 1.55;
  font-weight: 520;
  opacity: .95;
}

.platform-mark {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 142px;
  height: 142px;
  transform: translateY(-50%);
  opacity: .18;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.platform-card:hover .platform-mark { transform: translateY(-50%) scale(1.06) rotate(-2deg); opacity: .23; }
.platform-mark svg { width: 100%; height: 100%; }



/* Optional font override for an individual tutorial content item. */
.item-font-override,
.item-font-override p,
.item-font-override li,
.item-font-override h3,
.item-font-override summary,
.item-font-override button,
.item-font-override span:not(.inline-code) {
  font-family: var(--item-font-family, var(--site-font-body)) !important;
}
.item-font-body { --item-font-family: var(--site-font-body); }
.item-font-heading { --item-font-family: var(--site-font-heading); }
.item-font-system { --item-font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }
.item-font-yahei { --item-font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif; }
.item-font-pingfang { --item-font-family: "PingFang SC", "苹方-简", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
.item-font-source-han-sans { --item-font-family: "Source Han Sans SC", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.item-font-heiti { --item-font-family: SimHei, "黑体", "Microsoft YaHei", sans-serif; }
.item-font-songti { --item-font-family: SimSun, "宋体", STSong, serif; }
.item-font-kaiti { --item-font-family: KaiTi, "楷体", STKaiti, serif; }
.item-font-source-han-serif { --item-font-family: "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", STSong, SimSun, serif; }
.item-font-rounded { --item-font-family: "Arial Rounded MT Bold", "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", sans-serif; }
.item-font-custom { --item-font-family: var(--site-font-custom, var(--site-font-body)); }

.tutorial-wrap { margin-top: 30px; }

.scope-banner {
  margin-bottom: 18px;
  padding: 16px 20px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  color: #fff;
  background: linear-gradient(115deg, #6678ed, #5c6fe6);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.scope-banner svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.scope-banner strong { display: block; margin-bottom: 4px; font-size: 16px; }
.scope-banner p { margin: 0; font-size: 13px; line-height: 1.7; opacity: .98; }

.content-card {
  padding: 16px 34px 26px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.section-title {
  margin: 18px -34px 0;
  padding: 12px 34px;
  color: #68778a;
  background: #f0f2f6;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.25;
  font-weight: 750;
}
.section-title:first-child { margin-top: -16px; }

.step {
  padding: 21px 0 27px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }

.step-number {
  margin: 0 0 10px;
  color: var(--step-color, #3159be);
  font-size: clamp(27px, 2vw, 35px);
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.02em;
}

.step p,
.notice p,
.tip-panel p,
.step li {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.step p { margin: 0 0 14px; }
.step p:last-child { margin-bottom: 0; }
.step ul,
.step ol { margin: 10px 0 18px; padding-left: 24px; }
.step li { margin: 3px 0; }
.inline-code {
  padding: .08em .38em;
  border-radius: 5px;
  color: #e1491b;
  background: #fff1ec;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px;
}

.action-button {
  min-height: 45px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: var(--button-bg, #164277);
  border-radius: 999px;
  box-shadow: 0 4px 10px color-mix(in srgb, var(--button-bg, #164277) 30%, transparent);
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), filter .18s var(--ease), box-shadow .18s var(--ease);
}
.action-button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.action-button:active { transform: translateY(0) scale(.98); }
.action-button svg { width: 17px; height: 17px; }
.action-button.blue { --button-bg: #164277; }
.action-button.sky { --button-bg: #2c7bc7; }
.action-button.orange { --button-bg: #e6420d; }
.action-button.green { --button-bg: #2c8c23; }
.action-button:focus-visible { outline: 4px solid rgba(70, 91, 224, .24); outline-offset: 3px; }

.notice-stack {
  display: grid;
  gap: 15px;
}

.notice {
  padding: 17px 18px;
  border: 1px solid var(--notice-border);
  border-radius: 11px;
  background: var(--notice-bg);
}
.notice-title {
  margin: 0 0 5px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--notice-title);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 760;
}
.notice-title svg { width: 17px; height: 17px; flex: 0 0 auto; }
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }
.notice ol, .notice ul { margin: 6px 0 14px; padding-left: 23px; }
.notice li { margin: 4px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.notice.info {
  --notice-bg: #eaf7ff;
  --notice-border: #75c8ff;
  --notice-title: #1671bc;
}
.notice.warning {
  --notice-bg: #fff8e9;
  --notice-border: #f6c46c;
  --notice-title: #dc6d00;
}
.notice.danger {
  --notice-bg: #fff1f1;
  --notice-border: #ff8e8e;
  --notice-title: #df2d2d;
}
.notice.success {
  --notice-bg: #f2ffe9;
  --notice-border: #99d970;
  --notice-title: #2f901d;
}
.notice.neutral {
  --notice-bg: #f6f7fa;
  --notice-border: #dfe3eb;
  --notice-title: #4b586d;
}

.config-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  color: #23801c;
  background: #fff;
  border: 1px dashed #73c956;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(17px, 1.5vw, 23px);
  font-weight: 760;
  letter-spacing: .03em;
  cursor: pointer;
}
.config-code:hover { background: #fbfff8; }
.config-code svg { width: 18px; height: 18px; opacity: .75; }

.code-block {
  position: relative;
  margin: 12px 0 16px;
  padding: 17px 18px;
  overflow-x: auto;
  color: #26344d;
  background: #f7f8fa;
  border: 1px solid #eef0f4;
  border-radius: 7px;
  font: 13px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.details-box {
  margin-top: 18px;
  border-top: 1px dashed #d8dce6;
}
.details-box summary {
  padding: 16px 0 4px;
  color: #536cf0;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}
.details-box summary::-webkit-details-marker { display: none; }
.details-box summary::before { content: "▶"; display: inline-block; margin-right: 8px; font-size: 10px; transition: transform .18s; }
.details-box[open] summary::before { transform: rotate(90deg); }
.details-box > div { padding: 8px 0 2px; }

.tip-panel {
  margin-top: 24px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(112deg, #ff9e1a, #ffaa26);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.tip-title { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 750; }
.tip-title svg { width: 20px; height: 20px; }
.tip-panel p { margin: 0; color: #fff; }
.tip-panel .inline-code { color: #e04c20; background: rgba(255,255,255,.95); }

.service-button {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 45;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: #4057f2;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(64, 87, 242, .32);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.service-button:hover { transform: translateY(-2px); box-shadow: 0 11px 27px rgba(64, 87, 242, .4); }
.service-dot { width: 9px; height: 9px; border-radius: 50%; background: #6be769; box-shadow: 0 0 0 3px rgba(107, 231, 105, .17); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  background: rgba(20, 27, 50, .38);
  backdrop-filter: blur(2px);
  transition: opacity .22s var(--ease), visibility .22s;
}
.drawer-overlay.open { visibility: visible; opacity: 1; }

.drawer {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(330px, 88vw);
  padding: 24px 18px;
  color: var(--ink);
  background: #fff;
  box-shadow: 12px 0 40px rgba(20, 27, 50, .18);
  transform: translateX(-105%);
  transition: transform .26s var(--ease);
}
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-head { padding: 8px 10px 24px; }
.drawer-brand { margin: 0; font-size: 21px; font-weight: 780; }
.drawer-sub { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.drawer-nav { display: grid; gap: 7px; }
.drawer-link {
  min-height: 48px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  color: #4c586c;
  font-size: 14px;
  font-weight: 660;
  transition: background .16s, color .16s;
}
.drawer-link:hover, .drawer-link.active { color: var(--brand-dark); background: var(--brand-soft); }
.drawer-link svg { width: 21px; height: 21px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 120;
  max-width: min(440px, calc(100vw - 36px));
  padding: 12px 17px;
  color: #fff;
  background: rgba(22, 33, 61, .94);
  border-radius: 10px;
  box-shadow: 0 14px 35px rgba(22,33,61,.24);
  font-size: 14px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: var(--reading, 0%);
  height: 3px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 1px 5px rgba(255,255,255,.4);
  pointer-events: none;
}

@media (min-width: 900px) {
  .brand-mini { display: block; }
}

@media (max-width: 860px) {
  :root { --topbar-height: 70px; }
  .topbar-inner { padding: 0 15px; }
  .layout { padding: 0 14px 44px; }
  .page-heading { min-height: 68px; margin-top: -10px; padding: 0 16px; }
  .home-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .platform-card { min-height: 138px; padding: 28px 26px; border-radius: 9px; }
  .platform-card h2 { max-width: 74%; }
  .platform-mark { width: 112px; height: 112px; right: 12px; }
  .tutorial-wrap { margin-top: 20px; }
  .content-card { padding: 11px 18px 20px; }
  .section-title { margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .section-title:first-child { margin-top: -11px; }
  .scope-banner { padding: 14px 15px; }
  .service-button { right: 14px; bottom: 14px; }
}

@media (max-width: 520px) {
  .topbar-user .hello-text, .user-caret { display: none; }
  .topbar-user { padding: 0; }
  .page-heading h1 { font-size: 19px; }
  .platform-card { min-height: 124px; padding: 24px 22px; }
  .platform-card h2 { font-size: 30px; }
  .platform-card p { font-size: 13px; }
  .platform-mark { width: 92px; height: 92px; }
  .step { padding: 19px 0 23px; }
  .notice { padding: 14px; }
  .action-button { width: 100%; }
  .action-row { gap: 9px; }
  .service-button { width: 46px; height: 46px; min-height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
  .service-button .service-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}


/* 后台内容编辑器生成的通用内容块 */
.step > .notice + .notice,
.step > .notice + .details-box,
.step > .details-box + .notice { margin-top: 15px; }

.content-divider {
  height: 1px;
  margin: 22px 0;
  border: 0;
  background: var(--line);
}

.tutorial-image { margin: 18px 0; }
.tutorial-image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(31, 46, 91, .13);
}
.tutorial-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.preview-banner {
  margin-bottom: 16px;
  padding: 12px 15px;
  color: #8a4b00;
  background: #fff3d8;
  border: 1px solid #f3c46a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
}

.empty-state {
  margin-top: 30px;
  padding: 70px 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.empty-icon {
  color: var(--brand-dark);
  font-size: clamp(58px, 9vw, 104px);
  font-weight: 800;
  line-height: 1;
  opacity: .16;
}
.empty-state h2 { margin: -8px 0 8px; font-size: 25px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }
.empty-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 999px;
  font-weight: 700;
}

.tip-panel .content-item.item-paragraph p { margin: 8px 0; }
.tip-panel .action-row { margin: 12px 0 16px; }

@media (max-width: 520px) {
  .tutorial-image img { border-radius: 7px; }
}

/* 富媒体：视频、音频与附件 */
.tutorial-video {
  margin: 20px 0;
}
.video-frame {
  width: 100%;
  overflow: hidden;
  background: #11131a;
  border-radius: 11px;
  box-shadow: 0 10px 32px rgba(25, 35, 70, .16);
}
.tutorial-video.aspect-16-9 .video-frame { aspect-ratio: 16 / 9; }
.tutorial-video.aspect-4-3 .video-frame { aspect-ratio: 4 / 3; }
.tutorial-video.aspect-9-16 { max-width: 430px; margin-left: auto; margin-right: auto; }
.tutorial-video.aspect-9-16 .video-frame { aspect-ratio: 9 / 16; }
.tutorial-video.aspect-auto .video-frame { background: transparent; }
.video-frame video,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  background: #11131a;
}
.tutorial-video.aspect-auto .video-frame video { height: auto; min-height: 0; }
.tutorial-video figcaption,
.tutorial-audio figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.tutorial-audio {
  margin: 18px 0;
  padding: 16px 17px;
  background: linear-gradient(145deg, #f8faff, #f3f6ff);
  border: 1px solid #e2e7f5;
  border-radius: 11px;
}
.audio-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #34466d;
  font-size: 14px;
}
.audio-heading svg { width: 20px; height: 20px; color: var(--brand-dark); }
.tutorial-audio audio { display: block; width: 100%; height: 42px; }

.attachment-card {
  margin: 16px 0;
  min-height: 78px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #27334c;
  background: #fff;
  border: 1px solid #e0e6f0;
  border-radius: 11px;
  box-shadow: 0 5px 18px rgba(31, 46, 91, .06);
  transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.attachment-card:hover {
  transform: translateY(-2px);
  border-color: #aebcf2;
  box-shadow: 0 10px 27px rgba(31, 46, 91, .11);
}
.attachment-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-radius: 10px;
}
.attachment-icon svg,
.attachment-download svg { width: 21px; height: 21px; }
.attachment-copy { min-width: 0; flex: 1; }
.attachment-copy strong { display: block; font-size: 14px; line-height: 1.45; }
.attachment-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.attachment-type {
  min-width: 44px;
  padding: 5px 8px;
  color: #60708d;
  background: #f2f4f8;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.attachment-download { color: var(--brand-dark); }
.tip-panel .attachment-card { color: #27334c; }
.tip-panel .tutorial-audio { color: #27334c; }

@media (max-width: 520px) {
  .video-frame video,
  .video-frame iframe { min-height: 190px; }
  .tutorial-video.aspect-9-16 .video-frame video,
  .tutorial-video.aspect-9-16 .video-frame iframe { min-height: 0; }
  .attachment-card { align-items: flex-start; }
  .attachment-type { display: none; }
}

/* V4: Help center and editable articles */
.home-help {
  margin-top: 34px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  border: 1px solid #e7eaf2;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.home-help-hero {
  padding: clamp(20px, 2.8vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 30px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,255,255,.18), transparent 32%),
    radial-gradient(circle at 94% 115%, rgba(31,54,177,.34), transparent 40%),
    linear-gradient(120deg, #697bed, #5268df);
  border-radius: 12px;
  position: relative;
}
.home-help-copy { display: flex; align-items: center; gap: 18px; min-width: 0; }
.home-help-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #5268df;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(27,43,125,.23);
}
.home-help-icon svg { width: 34px; height: 34px; }
.home-help-eyebrow { margin: 0 0 7px !important; font-size: 10px !important; font-weight: 850; letter-spacing: .16em; opacity: .72 !important; }
.home-help-copy h2 { margin: 0; font-size: clamp(23px, 2.1vw, 34px); line-height: 1.18; letter-spacing: -.025em; }
.home-help-copy p { margin: 8px 0 0; max-width: 680px; font-size: 14px; line-height: 1.7; opacity: .9; }
.home-help-search {
  min-height: 58px;
  padding: 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.98);
  border-radius: 13px;
  box-shadow: 0 12px 35px rgba(30,42,111,.2);
}
.home-help-search > span { width: 40px; display: grid; place-items: center; color: #6f7b91; }
.home-help-search svg { width: 20px; height: 20px; }
.home-help-search input { min-width: 0; height: 44px; padding: 0 4px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.home-help-search button {
  height: 44px;
  padding: 0 17px;
  color: #fff;
  background: #4057db;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}
.home-help-grid,
.help-list-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.help-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(31,46,91,.065);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.help-card:hover {
  transform: translateY(-4px);
  border-color: #bcc7f4;
  box-shadow: 0 17px 38px rgba(31,46,91,.13);
}
.help-card-visual {
  height: 118px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef1ff, #e2e7ff);
}
.help-card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s var(--ease); }
.help-card:hover .help-card-visual img { transform: scale(1.035); }
.help-card-placeholder {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #5b6fe4;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(91,111,228,.14);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(59,77,170,.1);
}
.help-card-placeholder svg { width: 30px; height: 30px; }
.help-card-body { min-height: 190px; padding: 17px 17px 15px; display: flex; flex-direction: column; }
.help-card-meta { display: flex; align-items: center; gap: 7px; color: #5368d7; font-size: 10px; font-weight: 800; }
.help-card-meta > span:first-child { padding: 5px 8px; background: #eef1ff; border-radius: 999px; }
.help-featured { padding: 5px 8px; color: #a05e00; background: #fff2d7; border-radius: 999px; }
.help-card-title { margin-top: 12px; display: block; font-size: 17px; line-height: 1.45; letter-spacing: -.012em; }
.help-card-summary {
  margin-top: 8px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.help-card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8a94a7; font-size: 10px; border-top: 1px solid #edf0f5; }
.help-card-foot > span { display: inline-flex; align-items: center; gap: 5px; }
.help-card-foot svg { width: 13px; height: 13px; }
.help-card-arrow { color: #5268da; font-weight: 760; white-space: nowrap; }
.help-card-arrow svg { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.help-card:hover .help-card-arrow svg { transform: translateX(3px); }
.home-help-more { margin-top: 18px; display: flex; justify-content: center; }
.home-help-more a { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; color: #4d62d2; background: #f0f3ff; border-radius: 999px; font-size: 12px; font-weight: 760; }
.home-help-more svg { width: 16px; height: 16px; }
.home-help-empty { margin-top: 20px; padding: 19px; display: flex; align-items: center; gap: 14px; color: #4c596f; background: #f7f8fb; border: 1px dashed #d6dce8; border-radius: 11px; }
.home-help-empty > span { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #5b6fe4; background: #fff; border-radius: 11px; }
.home-help-empty svg { width: 22px; height: 22px; }
.home-help-empty div { flex: 1; min-width: 0; }
.home-help-empty strong { font-size: 14px; }
.home-help-empty p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.home-help-empty > a { padding: 10px 14px; color: #fff; background: #5268da; border-radius: 9px; font-size: 12px; font-weight: 760; }

.help-search-panel {
  margin-top: 28px;
  padding: clamp(23px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  gap: 30px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 5% -20%, rgba(255,255,255,.2), transparent 34%),
    radial-gradient(circle at 95% 120%, rgba(35,49,157,.4), transparent 42%),
    linear-gradient(120deg, #6a7ced, #5267dd);
  border-radius: 13px;
  box-shadow: var(--shadow-md);
}
.help-search-copy { display: flex; align-items: center; gap: 18px; }
.help-search-copy > span { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; color: #5065d8; background: #fff; border-radius: 17px; }
.help-search-copy > span svg { width: 31px; height: 31px; }
.help-search-copy p { margin: 0 0 5px; font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .75; }
.help-search-copy h2 { margin: 0; font-size: clamp(23px, 2vw, 32px); line-height: 1.25; }
.help-search-copy small { display: block; margin-top: 7px; font-size: 12px; line-height: 1.65; opacity: .84; }
.help-search-form { min-height: 60px; padding: 6px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px; align-items: center; background: #fff; border-radius: 13px; box-shadow: 0 12px 36px rgba(29,42,123,.22); }
.help-search-form > span { width: 43px; display: grid; place-items: center; color: #7d879b; }
.help-search-form svg { width: 21px; height: 21px; }
.help-search-form input { min-width: 0; height: 46px; padding: 0 4px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.help-search-form button { height: 46px; padding: 0 20px; color: #fff; background: #4057db; border-radius: 10px; font-size: 13px; font-weight: 760; cursor: pointer; }
.help-category-nav { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.help-category-nav a { min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; color: #68748a; background: #fff; border: 1px solid #e1e6ee; border-radius: 999px; font-size: 12px; font-weight: 700; box-shadow: 0 4px 13px rgba(31,46,91,.04); }
.help-category-nav a span { min-width: 23px; height: 23px; padding: 0 6px; display: grid; place-items: center; color: #7c879b; background: #f1f3f7; border-radius: 999px; font-size: 10px; }
.help-category-nav a.active { color: #fff; background: #556be0; border-color: #556be0; }
.help-category-nav a.active span { color: #4459ce; background: #fff; }
.help-results-head { margin-top: 29px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.help-results-head h2 { margin: 0; font-size: 21px; }
.help-results-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.help-results-head > a { color: #5268d8; font-size: 12px; font-weight: 740; }
.help-list-grid { margin-top: 15px; }
.help-card-list .help-card-visual { height: 132px; }
.help-card-list .help-card-body { min-height: 205px; }
.help-empty-state { margin-top: 15px; }

.article-page { margin-top: 28px; }
.article-hero {
  min-height: 310px;
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .34fr);
  gap: 36px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 4% 0%, rgba(255,255,255,.19), transparent 30%),
    radial-gradient(circle at 95% 120%, rgba(28,42,142,.48), transparent 42%),
    linear-gradient(120deg, #687aed, #5065d9);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.article-hero.has-cover { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
.article-hero-copy { position: relative; z-index: 2; min-width: 0; }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-kicker span { min-height: 27px; padding: 0 10px; display: inline-flex; align-items: center; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.article-kicker .article-featured { color: #8a5400; background: #fff1ca; border-color: #fff1ca; }
.article-hero h1 { margin: 18px 0 0; max-width: 980px; font-size: clamp(31px, 4vw, 58px); line-height: 1.13; letter-spacing: -.04em; }
.article-summary { margin: 18px 0 0; max-width: 900px; font-size: clamp(14px, 1.25vw, 18px); line-height: 1.8; opacity: .9; }
.article-meta-line { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; color: rgba(255,255,255,.78); font-size: 11px; }
.article-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-line svg { width: 15px; height: 15px; }
.article-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.article-tags span { min-height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px; color: rgba(255,255,255,.9); background: rgba(25,40,120,.18); border-radius: 999px; font-size: 10px; }
.article-tags svg { width: 12px; height: 12px; }
.article-cover { height: 100%; min-height: 240px; margin: 0; overflow: hidden; border-radius: 12px; box-shadow: 0 18px 45px rgba(23,36,113,.28); }
.article-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.article-hero-mark { justify-self: center; width: 180px; height: 180px; display: grid; place-items: center; color: rgba(255,255,255,.25); transform: rotate(-5deg); }
.article-hero-mark svg { width: 100%; height: 100%; }
.article-content-wrap { max-width: 1240px; margin-left: auto; margin-right: auto; }
.article-content-section { padding: 25px 0; border-bottom: 1px solid var(--line); }
.article-content-section:last-child { border-bottom: 0; }
.article-section-title { margin: 0 0 15px; color: #273657; font-size: clamp(22px, 2vw, 31px); line-height: 1.3; }
.article-content-section .item-paragraph p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.article-content-section .item-paragraph p:last-child { margin-bottom: 0; }
.article-content-section .item-paragraph ul,
.article-content-section .item-paragraph ol { margin: 10px 0 18px; padding-left: 24px; }
.article-content-section .item-paragraph li { margin: 5px 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.article-finish { max-width: 1240px; margin: 20px auto 0; padding: 20px 22px; display: flex; align-items: flex-start; gap: 14px; color: #28583d; background: #effaf3; border: 1px solid #b9e2c9; border-radius: 12px; }
.article-finish > span { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: #3a9a62; border-radius: 50%; }
.article-finish svg { width: 20px; height: 20px; }
.article-finish h2 { margin: 0; font-size: 16px; }
.article-finish p { margin: 6px 0 0; color: #587365; font-size: 12px; line-height: 1.7; }
.related-help { margin-top: 32px; padding-top: 25px; border-top: 1px solid #e2e6ee; }
.related-help-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.related-help-head p { margin: 0 0 4px; color: #6579e7; font-size: 10px; font-weight: 820; letter-spacing: .14em; }
.related-help-head h2 { margin: 0; font-size: 22px; }
.related-help-head > a { display: inline-flex; align-items: center; gap: 6px; color: #5268d8; font-size: 12px; font-weight: 750; }
.related-help-head svg { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .home-help-grid,
  .help-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-help-hero,
  .help-search-panel { grid-template-columns: 1fr; }
  .article-hero.has-cover { grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); }
}

@media (max-width: 760px) {
  .home-help { margin-top: 22px; padding: 15px; }
  .home-help-hero,
  .help-search-panel { padding: 20px 16px; gap: 20px; }
  .home-help-copy,
  .help-search-copy { align-items: flex-start; }
  .home-help-icon,
  .help-search-copy > span { width: 48px; height: 48px; border-radius: 13px; }
  .home-help-icon svg,
  .help-search-copy > span svg { width: 25px; height: 25px; }
  .home-help-search,
  .help-search-form { grid-template-columns: auto minmax(0, 1fr); }
  .home-help-search button,
  .help-search-form button { grid-column: 1 / -1; width: 100%; }
  .home-help-grid,
  .help-list-grid { grid-template-columns: 1fr; }
  .help-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .help-card-visual,
  .help-card-list .help-card-visual { width: 112px; height: 100%; min-height: 178px; }
  .help-card-body,
  .help-card-list .help-card-body { min-height: 178px; padding: 14px; }
  .help-card-summary { -webkit-line-clamp: 2; }
  .home-help-empty { align-items: flex-start; flex-wrap: wrap; }
  .home-help-empty > a { width: 100%; text-align: center; }
  .help-results-head,
  .related-help-head { align-items: flex-start; flex-direction: column; }
  .article-hero,
  .article-hero.has-cover { min-height: 0; padding: 28px 20px; grid-template-columns: 1fr; gap: 24px; }
  .article-hero h1 { font-size: clamp(30px, 8.4vw, 43px); }
  .article-cover { min-height: 210px; max-height: 330px; }
  .article-hero-mark { width: 110px; height: 110px; position: absolute; right: 12px; bottom: 10px; opacity: .5; }
}

@media (max-width: 500px) {
  .help-card { display: flex; }
  .help-card-visual,
  .help-card-list .help-card-visual { width: 100%; height: 110px; min-height: 110px; }
  .help-card-body,
  .help-card-list .help-card-body { min-height: 188px; }
  .home-help-search input,
  .help-search-form input { font-size: 12px; }
  .article-meta-line { align-items: flex-start; flex-direction: column; gap: 8px; }
  .article-finish { padding: 17px 15px; }
}
.home-help-more-only { margin-top: 22px; padding: 6px 0 2px; }
