.ry-ws {
  --ws-ink: #13352d;
  --ws-muted: #64766f;
  --ws-soft: #94a59f;
  --ws-line: #e4ede9;
  --ws-brand: #0bd092;
  --ws-brand-deep: #08a978;
  --ws-brand-dark: #078a63;
  --ws-tint: #e3f8ef;
  --ws-shadow: 0 8px 24px rgb(19 53 45 / 6%), 0 1px 2px rgb(19 53 45 / 4%);

  min-height: 100vh;
  font-family:
    'PingFang SC', 'HarmonyOS Sans SC', 'Noto Sans SC', 'Microsoft YaHei',
    system-ui, sans-serif;
  color: var(--ws-ink);
  background:
    radial-gradient(
      900px 520px at 0% -8%,
      rgb(11 208 146 / 14%),
      transparent 64%
    ),
    radial-gradient(
      800px 600px at 100% 0%,
      rgb(160 232 210 / 22%),
      transparent 60%
    ),
    linear-gradient(180deg, #eefaf5 0%, #f4faf8 40%, #f6faf9 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.ry-ws button {
  font: inherit;
  color: inherit;
}

.ry-ws-wrap {
  max-width: 1320px;
  padding: 0 clamp(20px, 4vw, 48px);
  margin: 0 auto;
}

/* ---------- 顶栏 ---------- */
.ry-ws-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(240 250 246 / 78%);
  backdrop-filter: blur(14px);
}

.ry-ws-top__bar {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px) 1fr;
  gap: 24px;
  align-items: center;
  height: 68px;
}

.ry-ws-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  font-size: 19px;
  font-weight: 700;
}

.ry-ws-brand img {
  flex: none;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.ry-ws-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ry-ws-search {
  position: relative;
  display: flex;
  align-items: center;
}

.ry-ws-search__ico {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: var(--ws-soft);
  pointer-events: none;
}

.ry-ws-search input {
  width: 100%;
  height: 42px;
  padding: 0 60px 0 44px;
  font: inherit;
  font-size: 14px;
  color: var(--ws-ink);
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.ry-ws-search input::placeholder {
  color: var(--ws-soft);
}

.ry-ws-search input:focus {
  border-color: var(--ws-brand);
  box-shadow: 0 0 0 4px rgb(11 208 146 / 14%);
}

.ry-ws-search input::-webkit-search-cancel-button {
  display: none;
}

.ry-ws-search kbd {
  position: absolute;
  right: 14px;
  padding: 1px 7px;
  font-family: inherit;
  font-size: 12px;
  color: var(--ws-soft);
  background: #f4f7f6;
  border-radius: 6px;
}

.ry-ws-tools {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}

.ry-ws-lang button {
  width: 38px !important;
  height: 38px !important;
  color: var(--ws-muted);
  border-radius: 10px !important;
}

.ry-ws-lang button:hover {
  background: rgb(19 53 45 / 5%);
}

.ry-ws-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ws-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 10px;
}

.ry-ws-icon-btn:hover {
  color: var(--ws-ink);
  background: rgb(19 53 45 / 5%);
}

.ry-ws-icon-btn__ico {
  width: 19px;
  height: 19px;
  color: var(--ws-muted);
}

.ry-ws-user {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 42px;
  padding: 0 10px 0 4px;
  margin-left: 8px;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 999px;
}

.ry-ws-user:hover {
  background: rgb(19 53 45 / 5%);
}

.ry-ws-user__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #3ddcaa, var(--ws-brand-deep));
  border-radius: 50%;
}

.ry-ws-user__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ry-ws-user__name {
  max-width: 120px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ry-ws-user__arr {
  color: var(--ws-soft);
}

.ry-ws-menu-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}

/* ---------- 标题 ---------- */
.ry-ws-hd {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 30px 0 26px;
}

.ry-ws-hd h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.ry-ws-hd__meta {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ws-muted);
}

.ry-ws-hd__slogan {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ws-muted);
  text-align: right;
  letter-spacing: 0.08em;
}

.ry-ws-hd__slogan b {
  font-weight: 500;
  color: var(--ws-brand-dark);
}

.ry-ws-sec {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ry-ws-sec h2 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.ry-ws-sec h2 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ws-muted);
}

.ry-ws-link-btn {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
}

.ry-ws .ry-ws-link-btn {
  color: var(--ws-muted);
}

.ry-ws .ry-ws-link-btn:hover {
  color: var(--ws-brand-dark);
  background: rgb(11 208 146 / 8%);
}

.ry-ws .ry-ws-link-btn[aria-pressed='true'] {
  color: var(--ws-brand-dark);
  background: var(--ws-tint);
}

/* ---------- 固定按钮 ---------- */
.ry-ws-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 8px;
}

.ry-ws .ry-ws-pin {
  color: var(--ws-soft);
}

.ry-ws .ry-ws-pin:hover,
.ry-ws .ry-ws-pin[aria-pressed='true'] {
  color: var(--ws-brand-dark);
}

.ry-ws .ry-ws-pin:hover {
  background: rgb(11 208 146 / 10%);
}

/* ---------- 常用模块 ---------- */
.ry-ws-favs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.ry-ws-fav {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 14px 14px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 16px;
  box-shadow: var(--ws-shadow);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}

.ry-ws-fav:hover {
  border-color: rgb(11 208 146 / 35%);
  box-shadow: 0 16px 32px rgb(19 53 45 / 9%);
  transform: translateY(-2px);
}

.ry-ws-fav:focus-visible,
.ry-ws-mod:focus-visible {
  outline: 2px solid var(--ws-brand);
  outline-offset: 2px;
}

.ry-ws-fav__art {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.ry-ws-fav__bd {
  flex: 1;
  min-width: 0;
}

.ry-ws-fav__bd b {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.ry-ws-fav__bd small {
  display: block;
  overflow: hidden;
  font-size: 12px;
  color: var(--ws-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ry-ws-fav__go {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  align-self: flex-end;
  font-size: 12px;
  font-weight: 500;
  color: var(--ws-brand-dark);
  white-space: nowrap;
}

/* ---------- 业务模块 ---------- */
.ry-ws-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.ry-ws-tabs button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 38px;
  padding: 0 14px 0 16px;
  font-size: 14px;
  cursor: pointer;
  background: rgb(255 255 255 / 70%);
  border: 1px solid var(--ws-line);
  border-radius: 999px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.ry-ws-tabs button:hover {
  border-color: rgb(11 208 146 / 50%);
}

.ry-ws-tabs button span {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 20px;
  color: var(--ws-muted);
  text-align: center;
  background: rgb(19 53 45 / 6%);
  border-radius: 10px;
}

.ry-ws .ry-ws-tabs button[aria-selected='true'] {
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #08a978, #10c991);
  border-color: transparent;
  box-shadow: 0 8px 18px rgb(8 169 120 / 26%);
}

.ry-ws-tabs button[aria-selected='true'] span {
  color: #fff;
  background: rgb(255 255 255 / 24%);
}

.ry-ws-mods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.ry-ws-mod {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 18px;
  box-shadow: var(--ws-shadow);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  animation: ry-ws-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: var(--d, 0ms);
}

.ry-ws-mod:hover {
  border-color: rgb(11 208 146 / 35%);
  box-shadow: 0 22px 44px rgb(19 53 45 / 12%);
  transform: translateY(-4px);
}

.ry-ws-mod__art {
  height: 150px;
  overflow: hidden;
  background: #eef8f4;
}

.ry-ws-mod__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.ry-ws-mod:hover .ry-ws-mod__art img {
  transform: scale(1.04);
}

.ry-ws-mod .ry-ws-pin {
  top: 10px;
  right: 10px;
  background: rgb(255 255 255 / 85%);
  opacity: 0;
  transition: opacity 0.15s;
}

.ry-ws-mod:hover .ry-ws-pin,
.ry-ws-mod .ry-ws-pin[aria-pressed='true'],
.ry-ws--pin .ry-ws-mod .ry-ws-pin {
  opacity: 1;
}

.ry-ws-mod__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--ws-brand-dark);
  background: rgb(255 255 255 / 88%);
  border-radius: 6px;
}

.ry-ws-mod__bd {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 14px;
}

.ry-ws-mod__bd h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ws-ink);
}

.ry-ws-mod__bd p {
  flex: 1;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ws-muted);
}

.ry-ws-mod__ft {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 33px;
  padding-top: 12px;
  border-top: 1px dashed var(--ws-line);
}

/* 单行展示快捷入口,放不下的整条换到被裁掉的第二行,避免两条都被截成省略号 */
.ry-ws-mod__subs {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0 12px;
  min-width: 0;
  height: 20px;
  overflow: hidden;
}

.ry-ws-mod__sub {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  max-width: 100%;
  height: 20px;
  padding: 0;
  font-size: 12px;
  cursor: pointer;
  background: none;
  border: 0;
}

.ry-ws .ry-ws-mod__sub {
  color: var(--ws-muted);
}

.ry-ws .ry-ws-mod__sub:hover {
  color: var(--ws-brand-dark);
}

.ry-ws-mod__sub svg {
  flex: none;
  color: var(--ws-soft);
}

.ry-ws-mod__sub span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ry-ws-mod__enter {
  display: inline-flex;
  flex: none;
  gap: 3px;
  align-items: center;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-brand-dark);
}

.ry-ws mark {
  color: inherit;
  background: rgb(11 208 146 / 22%);
  border-radius: 3px;
}

.ry-ws-empty {
  grid-column: 1 / -1;
  padding: 56px 0;
  color: var(--ws-muted);
  text-align: center;
}

.ry-ws-empty svg {
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  color: var(--ws-soft);
}

@keyframes ry-ws-rise {
  from {
    opacity: 0;
    translate: 0 12px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1100px) {
  .ry-ws-favs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ry-ws-top__bar {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .ry-ws-brand span,
  .ry-ws-user__name,
  .ry-ws-user__arr,
  .ry-ws-search kbd,
  .ry-ws-hd__slogan,
  .ry-ws-sec h2 small {
    display: none;
  }

  .ry-ws-sec h2,
  .ry-ws-link-btn {
    white-space: nowrap;
  }

  .ry-ws-search input {
    padding-right: 16px;
  }

  .ry-ws-hd h1 {
    font-size: 28px;
  }

  .ry-ws-favs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ry-ws-mod {
    animation: none;
  }
}
