/*
 * 渊古文化 · Desktop app shell
 *
 * The public site is presented as a focused software workspace rather than a
 * stack of paper-like marketing sections.  The shell stays blue/white with a
 * restrained red action accent; product art remains intentionally distinct.
 */
:root {
  --yg-app-ink: #0b173d;
  --yg-app-blue: #1947d8;
  --yg-app-blue-bright: #3f70ff;
  --yg-app-blue-deep: #0b2b91;
  --yg-app-surface: rgba(248, 251, 255, .90);
  --yg-app-paper: #ffffff;
  --yg-app-muted: #68779d;
  --yg-app-line: rgba(31, 66, 157, .16);
  --yg-app-shadow: 0 22px 56px rgba(20, 48, 125, .13);
  --yg-app-shadow-soft: 0 10px 26px rgba(20, 48, 125, .10);
}

body.brand-site {
  background:
    radial-gradient(circle at 18% 4%, rgba(75, 116, 255, .18), transparent 26rem),
    radial-gradient(circle at 90% 18%, rgba(255, 93, 111, .12), transparent 24rem),
    linear-gradient(135deg, #eaf0ff 0%, #f8faff 48%, #eef2ff 100%);
  color: var(--yg-app-ink);
}

body.brand-site::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(29, 66, 158, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 66, 158, .05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(140deg, #000 0%, transparent 78%);
}

/* Left application rail -------------------------------------------------- */
body.brand-site .app-rail {
  position: fixed;
  z-index: 20;
  top: 14px;
  bottom: 14px;
  left: 14px;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 24px;
  background: linear-gradient(180deg, #10245d 0%, #0b173d 58%, #08122f 100%);
  box-shadow: 0 22px 52px rgba(7, 18, 54, .30), 0 0 0 1px rgba(39, 88, 226, .18) inset;
}

body.brand-site .app-rail-brand,
body.brand-site .app-rail-nav a,
body.brand-site .app-rail-tool {
  color: rgba(235, 241, 255, .72);
  text-decoration: none;
}

body.brand-site .app-rail-brand {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  padding: 4px 0 15px;
}

body.brand-site .app-rail-brand > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 13px 13px 17px 13px;
  background: linear-gradient(145deg, #5b84ff, #1439b4);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(45, 94, 245, .38);
}

body.brand-site .app-rail-brand small,
body.brand-site .app-rail-nav small,
body.brand-site .app-rail-tool small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}

body.brand-site .app-rail-nav,
body.brand-site .app-rail-tool {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

body.brand-site .app-rail-nav {
  gap: 7px;
}

body.brand-site .app-rail-nav a,
body.brand-site .app-rail-tool {
  display: grid;
  justify-items: center;
  gap: 5px;
  width: 54px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: transform .22s ease, color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

body.brand-site .app-rail-nav a:hover,
body.brand-site .app-rail-tool:hover,
body.brand-site .app-rail-nav a.is-current {
  transform: translateY(-2px);
  border-color: rgba(126, 158, 255, .28);
  background: linear-gradient(145deg, rgba(77, 118, 255, .36), rgba(36, 67, 167, .28));
  color: #fff;
  box-shadow: 0 8px 18px rgba(5, 18, 59, .20);
}

body.brand-site .app-rail-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 3px;
  height: 24px;
  border-radius: 99px;
  background: #ff5a6a;
  box-shadow: 0 0 12px rgba(255, 90, 106, .65);
}

body.brand-site .app-rail-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .07);
  color: currentColor;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

body.brand-site .app-rail-spacer {
  flex: 1 1 auto;
}

body.brand-site .app-rail-tool {
  margin-top: 6px;
}

body.brand-site .app-rail-tool:first-of-type .app-rail-icon {
  border-color: rgba(255, 102, 119, .34);
  background: linear-gradient(145deg, #ff6072, #bd2347);
  color: #fff;
  box-shadow: 0 6px 16px rgba(232, 57, 85, .26);
}

/* Floating chrome -------------------------------------------------------- */
body.brand-site .site-top-announcement {
  min-height: 30px;
  margin: 14px 22px 0 104px;
  border: 1px solid rgba(124, 157, 255, .17);
  border-radius: 15px 15px 8px 8px;
  background: linear-gradient(90deg, #10275f, #183ca5 50%, #10275f);
  box-shadow: 0 8px 18px rgba(22, 52, 132, .16);
}

body.brand-site .brand-header {
  width: auto;
  max-width: none;
  min-height: 72px;
  margin: 0 22px 0 104px;
  padding: 12px 20px;
  border: 1px solid rgba(53, 86, 175, .15);
  border-top: 0;
  border-radius: 8px 8px 20px 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--yg-app-shadow-soft);
  backdrop-filter: blur(18px);
}

body.brand-site .site-main-nav {
  display: none;
}

body.brand-site .site-header-actions {
  gap: 14px;
}

body.brand-site .header-account-link,
body.brand-site .header-register-link {
  color: var(--yg-app-muted);
}

body.brand-site .header-free-download {
  border: 1px solid rgba(255, 255, 255, .24);
  background: linear-gradient(135deg, #f1586b, #d62e50 62%, #a8183d);
  box-shadow: 0 10px 22px rgba(219, 46, 79, .26), 0 0 0 1px rgba(255, 255, 255, .16) inset;
}

body.brand-site main {
  position: relative;
  min-height: 55vh;
  margin: 16px 22px 0 104px;
  border: 1px solid rgba(47, 82, 173, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(238, 244, 255, .60));
  box-shadow: 0 22px 72px rgba(29, 57, 139, .10);
  isolation: isolate;
}

body.brand-site main::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 10%, rgba(68, 104, 239, .12), transparent 18rem),
    radial-gradient(circle at 10% 92%, rgba(249, 81, 104, .08), transparent 20rem);
}

body.brand-site .brand-footer {
  width: auto;
  max-width: none;
  margin: 16px 22px 18px 104px;
  padding: 34px 28px 30px;
  border: 1px solid rgba(47, 82, 173, .14);
  border-radius: 22px;
  background: linear-gradient(145deg, #0d1b46, #0a1332);
  color: #e7edff;
  box-shadow: 0 18px 50px rgba(8, 18, 52, .20);
}

body.brand-site .footer-brand-block strong { color: #fff; }
body.brand-site .footer-link-block a { color: #aab9e5; }
body.brand-site .footer-link-block a:hover { color: #fff; }

/* Raised work surfaces --------------------------------------------------- */
body.brand-site.single-screen-page .brand-page-heading,
body.brand-site.single-screen-page .brand-hero {
  position: relative;
  z-index: 1;
}

body.brand-site.single-screen-page .brand-page-heading h1,
body.brand-site.home-screen-page .brand-hero h1 {
  color: var(--yg-app-ink);
  text-shadow: 0 5px 20px rgba(24, 54, 137, .08);
}

body.brand-site.single-screen-page .brand-page-heading h1 em,
body.brand-site.home-screen-page .brand-hero h1 em {
  color: #e33f59;
}

body.brand-site.single-screen-page .brand-product-directory,
body.brand-site.single-screen-page .brand-download-directory,
body.brand-site.single-screen-page .brand-release-directory,
body.brand-site.single-screen-page .brand-tutorial-directory,
body.brand-site.single-screen-page .contact-grid,
body.brand-site.single-screen-page .help-directory,
body.brand-site.single-screen-page .feedback-layout,
body.brand-site.single-screen-page .search-columns {
  border: 1px solid rgba(45, 81, 178, .14);
  border-radius: 22px;
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--yg-app-shadow-soft);
}

body.brand-site.single-screen-page .brand-directory-toolbar {
  border-color: var(--yg-app-line);
  background: rgba(255, 255, 255, .72);
}

body.brand-site.single-screen-page .brand-product-filters {
  border: 1px solid rgba(44, 83, 183, .12);
  background: rgba(224, 233, 255, .56);
}

body.brand-site.single-screen-page .brand-product-filters button,
body.brand-site .help-tabs a {
  border-color: rgba(54, 91, 185, .18);
  background: rgba(255, 255, 255, .78);
  color: var(--yg-app-muted);
  box-shadow: 0 3px 9px rgba(39, 74, 162, .06);
}

body.brand-site.single-screen-page .brand-product-filters button.active,
body.brand-site.single-screen-page .brand-product-filters button:hover,
body.brand-site .help-tabs a:hover {
  border-color: var(--yg-app-blue);
  background: linear-gradient(135deg, #1745cf, #426fff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(33, 79, 218, .24);
}

body.brand-site .brand-product-card,
body.brand-site .brand-download-card,
body.brand-site .brand-release-card,
body.brand-site .brand-tutorial-card,
body.brand-site .browser-variant-card,
body.brand-site .tutorial-guide-card,
body.brand-site .contact-route-card,
body.brand-site .about-principle-grid article,
body.brand-site .feedback-form,
body.brand-site .search-result-group {
  border-color: rgba(44, 81, 173, .18);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 7px 18px rgba(34, 69, 156, .08), 0 0 0 1px rgba(255, 255, 255, .45) inset;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

body.brand-site .brand-product-card:hover,
body.brand-site .brand-download-card:hover,
body.brand-site .brand-release-card:hover,
body.brand-site .brand-tutorial-card:hover,
body.brand-site .browser-variant-card:hover,
body.brand-site .tutorial-guide-card:hover,
body.brand-site .contact-route-card:hover,
body.brand-site .about-principle-grid article:hover,
body.brand-site .search-result-group:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 88, 210, .36);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 30px rgba(31, 70, 161, .15), 0 0 0 1px rgba(94, 133, 255, .12) inset;
}

body.brand-site .brand-product-card-art,
body.brand-site .download-card-rail,
body.brand-site .brand-release-number,
body.brand-site .tutorial-card-number {
  color: var(--yg-app-blue);
}

body.brand-site .brand-art-card-browser .brand-product-card-art,
body.brand-site .brand-art-card-browser,
body.brand-site .brand-download-card-featured .download-card-rail,
body.brand-site .brand-detail-art,
body.brand-site .browser-spotlight,
body.brand-site .tutorial-detail-art,
body.brand-site .about-service-card,
body.brand-site .priority-card-featured,
body.brand-site .updates-band {
  border-color: rgba(52, 95, 212, .35);
  background: linear-gradient(145deg, #153db5 0%, #1b51df 52%, #0b2b83 100%);
  box-shadow: 0 20px 44px rgba(16, 51, 153, .26), 0 0 0 1px rgba(132, 164, 255, .14) inset;
}

body.brand-site .brand-product-card-art {
  background: linear-gradient(145deg, #d7e5ff, #f5f8ff);
}

body.brand-site .brand-product-card-art strong,
body.brand-site .brand-product-card-art small {
  color: #183b9d;
}

body.brand-site .brand-art-jike .brand-product-card-art,
body.brand-site .brand-product-jike .brand-product-card-art {
  background: linear-gradient(145deg, #c7f3ff, #d4dcff);
}

body.brand-site .brand-art-social-card-generator .brand-product-card-art,
body.brand-site .brand-product-social-card-generator .brand-product-card-art {
  background: linear-gradient(145deg, #ffd5e2, #f2d8ff);
}

body.brand-site .brand-art-website-navigator .brand-product-card-art,
body.brand-site .brand-product-website-navigator .brand-product-card-art {
  background: linear-gradient(145deg, #cbe5ff, #d9f2ff);
}

body.brand-site .brand-art-timeflow .brand-product-card-art,
body.brand-site .brand-product-timeflow .brand-product-card-art {
  background: linear-gradient(145deg, #d8f8e9, #d8ecff);
}

body.brand-site .brand-art-super-screenshot .brand-product-card-art,
body.brand-site .brand-product-super-screenshot .brand-product-card-art {
  background: linear-gradient(145deg, #e0dcff, #d8e8ff);
}

body.brand-site .brand-art-format-converter .brand-product-card-art,
body.brand-site .brand-product-format-converter .brand-product-card-art {
  background: linear-gradient(145deg, #ffe1c9, #ffd5e0);
}

body.brand-site .brand-art-magic-desktop-pet .brand-product-card-art,
body.brand-site .brand-product-magic-desktop-pet .brand-product-card-art {
  background: linear-gradient(145deg, #ded1ff, #f0d9ff);
}

body.brand-site .brand-art-xingren-recorder .brand-product-card-art,
body.brand-site .brand-product-xingren-recorder .brand-product-card-art {
  background: linear-gradient(145deg, #d9f5ff, #d2e2ff);
}

body.brand-site .brand-detail-art small,
body.brand-site .detail-art-label,
body.brand-site .browser-spotlight .spotlight-topline,
body.brand-site .browser-spotlight .spotlight-copy p {
  color: #cbd9ff;
}

body.brand-site .brand-detail-copy h1 em,
body.brand-site .browser-variant-top span,
body.brand-site .eyebrow,
body.brand-site .product-meta,
body.brand-site .tutorial-guide-label {
  color: #e4435a;
}

body.brand-site .button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #173fbf, #356aff 60%, #12328f);
  box-shadow: 0 11px 24px rgba(29, 74, 211, .28), 0 0 0 1px rgba(255, 255, 255, .18) inset;
}

body.brand-site .button.primary:hover {
  background: linear-gradient(135deg, #2454e5, #4a7cff 60%, #173cae);
  box-shadow: 0 16px 30px rgba(29, 74, 211, .36), 0 0 0 1px rgba(255, 255, 255, .26) inset;
}

body.brand-site .button.quiet,
body.brand-site .button.light {
  border-color: rgba(49, 86, 178, .18);
  background: rgba(255, 255, 255, .80);
  color: #1b3b90;
  box-shadow: 0 6px 16px rgba(31, 70, 159, .08);
}

body.brand-site .button.quiet:hover,
body.brand-site .button.light:hover {
  border-color: rgba(45, 91, 217, .46);
  background: #fff;
  color: #0f2b78;
  box-shadow: 0 12px 24px rgba(35, 78, 181, .16);
}

body.brand-site .status-pill.is-free {
  background: #e5edff;
  color: #1a48c7;
}

body.brand-site .status-pill.is-sale {
  background: #ffe4e8;
  color: #c72d4d;
}

body.brand-site .status-pill.is-muted {
  background: #edf1fb;
  color: #66779f;
}

body.brand-site input,
body.brand-site select,
body.brand-site textarea {
  border-color: rgba(48, 85, 177, .22) !important;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: 0 4px 12px rgba(32, 70, 158, .05) inset;
}

body.brand-site input:focus,
body.brand-site select:focus,
body.brand-site textarea:focus {
  border-color: #3d6dff !important;
  box-shadow: 0 0 0 4px rgba(61, 109, 255, .13), 0 4px 12px rgba(32, 70, 158, .06) inset;
}

@keyframes yg-app-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(70, 117, 255, .18); }
  50% { box-shadow: 0 0 0 7px rgba(70, 117, 255, 0); }
}

body.brand-site .app-rail-brand > span {
  animation: yg-app-pulse 3.8s ease-in-out infinite;
}

body.brand-site .browser-spotlight::after,
body.brand-site .brand-detail-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background: linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, .18) 48%, transparent 78%);
  transform: translateX(-120%);
  animation: yg-app-sheen 8s ease-in-out infinite;
}

@keyframes yg-app-sheen {
  0%, 54% { transform: translateX(-120%); }
  74%, 100% { transform: translateX(120%); }
}

@media (max-width: 820px) {
  body.brand-site {
    background:
      radial-gradient(circle at 80% -4%, rgba(75, 116, 255, .18), transparent 15rem),
      linear-gradient(145deg, #edf3ff, #fbfcff 74%);
  }

  body.brand-site::before,
  body.brand-site .app-rail {
    display: none;
  }

  body.brand-site .site-top-announcement {
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  body.brand-site .brand-header {
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-bottom: 1px solid rgba(45, 81, 173, .14);
    border-radius: 0;
    box-shadow: 0 7px 18px rgba(29, 58, 140, .08);
  }

  body.brand-site main {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.brand-site .brand-footer {
    margin: 14px 0 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.brand-site .app-rail-brand > span,
  body.brand-site .browser-spotlight::after,
  body.brand-site .brand-detail-art::after {
    animation: none;
  }
}
