/* ==========================================================================
   智营 AI V5.0 全站品牌设计系统 (Global Design System + Six Product Spaces)
   严格遵循苹果级极简留白、冷白 + 石墨黑 + 钛金灰 + 银蓝克制体系。
   仅作用于用户端页面，不干扰管理后台 (#admin)。
   ========================================================================== */

:root {
  /* 全站颜色 */
  --zy-bg: #fafbfc;
  --zy-surface: #ffffff;
  --zy-surface-secondary: #f0f3f6;
  --zy-text: #17191d;
  --zy-text-body: #535b66;
  --zy-text-secondary: #68717e;
  --zy-text-muted: #818791;
  --zy-border: #dfe3e8;
  --zy-divider: #eceef1;
  --zy-primary: #20242a;
  --zy-accent: #7188a9;
  --zy-brand-blue: #397ec4;

  /* 语义颜色（仅用于真实状态，禁止大面积装饰） */
  --zy-success: #287653;
  --zy-warning: #996719;
  --zy-danger: #b83e45;

  /* 统一字体 */
  --zy-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* 统一间距 */
  --zy-space-1: 4px;
  --zy-space-2: 8px;
  --zy-space-3: 12px;
  --zy-space-4: 16px;
  --zy-space-5: 24px;
  --zy-space-6: 32px;
  --zy-space-7: 48px;
  --zy-space-8: 64px;

  /* 统一圆角 */
  --zy-radius-sm: 8px;
  --zy-radius-md: 12px;
  --zy-radius-lg: 16px;
  --zy-radius-xl: 24px;

  /* 阴影与动画 */
  --zy-shadow: 0 8px 32px rgba(25, 35, 50, 0.035);
  --zy-shadow-hover: 0 12px 36px rgba(25, 35, 50, 0.065);
  --zy-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 布局尺寸 */
  --zy-nav-height: 70px;
  --zy-content-width: 1200px;
  --zy-workspace-width: 1440px;
}

/* ==================== 全局容器与通用原子组件 ==================== */
body.zy-app,
.layout:not(.zy-admin-shell) {
  background: var(--zy-bg);
  color: var(--zy-text);
  font-family: var(--zy-font);
  -webkit-font-smoothing: antialiased;
}

.zy-app *,
.zy-app *::before,
.zy-app *::after {
  box-sizing: border-box;
}

.zy-container {
  width: calc(100% - 96px);
  max-width: var(--zy-content-width);
  margin-inline: auto;
}

.zy-page-heading {
  margin: 0 0 32px;
  text-align: left;
}

.zy-page-eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--zy-text-muted);
  text-transform: uppercase;
}

.zy-page-title,
.layout.zy-v5-shell #page h1.zy-page-title,
.layout.zy-v5-shell #page.student-content h1.zy-page-title {
  margin: 0 !important;
  font-size: clamp(34px, 3.8vw, 44px) !important;
  font-weight: 660 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.035em !important;
  color: var(--zy-text) !important;
  text-align: left !important;
}

.zy-page-description {
  margin: 12px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--zy-text-body);
}

/* ==================== 全站统一返回与面包屑栏 (.zy-back-bar) ==================== */
.zy-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 22px;
  min-height: 36px;
}

.zy-back-bar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: nowrap;
}

.zy-back-pill,
.layout.zy-v5-shell .student-back,
.layout.zy-v5-shell [data-memory-back] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px !important;
  padding: 0 13px 0 9px !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 10px !important;
  background: var(--zy-surface) !important;
  color: var(--zy-text) !important;
  font: inherit !important;
  font-size: 13.5px !important;
  font-weight: 560 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 25, 29, 0.04) !important;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--zy-ease), color 160ms ease;
}

.layout.zy-v5-shell .student-back,
.layout.zy-v5-shell [data-memory-back] {
  padding: 0 14px !important;
  margin: 0 0 18px !important;
}

.zy-back-pill svg {
  width: 16px;
  height: 16px;
  color: var(--zy-text-secondary);
  flex: none;
  transition: transform 160ms var(--zy-ease), color 160ms ease;
}

.zy-back-pill:hover,
.layout.zy-v5-shell .student-back:hover,
.layout.zy-v5-shell [data-memory-back]:hover {
  background: var(--zy-surface-secondary) !important;
  border-color: #c5ccd6 !important;
  color: var(--zy-text) !important;
}

.zy-back-pill:hover svg {
  color: var(--zy-text);
  transform: translateX(-2px);
}

.zy-back-pill:active {
  transform: scale(0.98);
}

.zy-breadcrumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 14px;
  font-size: 13px;
  color: var(--zy-text-muted);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.zy-breadcrumb::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--zy-border);
}

.zy-breadcrumb a {
  color: var(--zy-text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.zy-breadcrumb a:hover {
  color: var(--zy-text);
}

.zy-breadcrumb-sep {
  color: #c5cbd4;
  user-select: none;
}

.zy-breadcrumb-current {
  color: var(--zy-text-body);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 340px;
}

.zy-close-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--zy-border);
  border-radius: 10px;
  background: transparent;
  color: var(--zy-text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.zy-close-tab-btn svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.zy-close-tab-btn:hover {
  background: var(--zy-surface-secondary);
  border-color: #c5ccd6;
  color: var(--zy-text);
}

body.zy-v5-workshop main > .zy-back-bar {
  margin-bottom: 18px;
}

body.zy-app #workspace > .zy-back-bar {
  margin-bottom: 18px;
}

/* 正式对话状态栏内嵌返回首页按钮 */
.zy-chat-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 11px 0 8px;
  border: 1px solid var(--zy-border);
  border-radius: 9px;
  background: var(--zy-bg);
  color: var(--zy-text);
  font: inherit;
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.zy-chat-back-btn:hover {
  background: var(--zy-surface-secondary);
  border-color: #c5ccd6;
}

.zy-chat-back-btn svg {
  width: 15px;
  height: 15px;
  color: var(--zy-text-secondary);
  flex: none;
}

.zy-chat-back-short {
  display: none;
}

.zy-card {
  background: var(--zy-surface);
  border: 1px solid var(--zy-border);
  border-radius: var(--zy-radius-lg);
  padding: 24px;
  box-shadow: var(--zy-shadow);
}

.zy-primary-button,
.layout:not(.zy-admin-shell) .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--zy-radius-md);
  background: var(--zy-primary);
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: transform 160ms var(--zy-ease), background-color 160ms ease, opacity 160ms ease;
}

.zy-primary-button:hover:not(:disabled),
.layout:not(.zy-admin-shell) .primary-button:hover:not(:disabled) {
  background: #0f1115;
}

.zy-primary-button:active:not(:disabled),
.layout:not(.zy-admin-shell) .primary-button:active:not(:disabled) {
  transform: scale(0.98);
}

.zy-primary-button:disabled,
.layout:not(.zy-admin-shell) .primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zy-secondary-button,
.layout:not(.zy-admin-shell) .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--zy-border);
  border-radius: var(--zy-radius-md);
  background: var(--zy-surface);
  color: var(--zy-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.zy-secondary-button:hover:not(:disabled),
.layout:not(.zy-admin-shell) .secondary-button:hover:not(:disabled) {
  border-color: #c5ccd6;
  background: var(--zy-bg);
}

.zy-input {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--zy-border);
  border-radius: var(--zy-radius-md);
  background: var(--zy-surface);
  color: var(--zy-text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.zy-input:focus {
  outline: none;
  border-color: var(--zy-accent);
  box-shadow: 0 0 0 3px rgba(113, 136, 169, 0.14);
}

.zy-app button:focus-visible,
.zy-app a:focus-visible,
.layout:not(.zy-admin-shell) button:focus-visible,
.layout:not(.zy-admin-shell) a:focus-visible {
  outline: 2px solid var(--zy-accent);
  outline-offset: 2px;
}

/* ==================== 全站统一苹果式顶部导航 (.zy-topnav & .flagship-header) ==================== */
.zy-topnav,
.layout.zy-v5-shell > .main-shell > .flagship-header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(250, 251, 252, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--zy-divider);
}

.zy-topnav-inner,
.layout.zy-v5-shell .flagship-nav {
  width: calc(100% - 96px);
  max-width: var(--zy-content-width);
  margin-inline: auto;
  min-height: var(--zy-nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.zy-topnav-brand,
.layout.zy-v5-shell .flagship-brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
  color: var(--zy-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.zy-brand-ai,
.layout.zy-v5-shell .flagship-brand-ai {
  font-weight: 500;
  color: var(--zy-brand-blue);
  letter-spacing: -0.01em;
}

.zy-brand-dot,
.layout.zy-v5-shell .flagship-brand-dot {
  color: var(--zy-text);
  font-weight: 700;
  margin-left: -4px;
}

.zy-topnav-links,
.layout.zy-v5-shell .flagship-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.zy-topnav-links a,
.layout.zy-v5-shell .flagship-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 450;
  color: #62666e;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.zy-topnav-links a:hover,
.layout.zy-v5-shell .flagship-nav-links a:hover {
  color: var(--zy-text);
}

.zy-topnav-links a.active,
.layout.zy-v5-shell .flagship-nav-links a.active {
  color: var(--zy-text);
  font-weight: 600;
}

.zy-topnav-right,
.layout.zy-v5-shell .flagship-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.zy-topnav-action,
.layout.zy-v5-shell .flagship-history-btn,
.layout.zy-v5-shell .flagship-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #62666e;
  font: inherit;
  font-size: 13.5px;
  font-weight: 450;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.zy-topnav-action svg,
.layout.zy-v5-shell .flagship-history-btn svg,
.layout.zy-v5-shell .flagship-support-link svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.zy-topnav-action:hover,
.zy-topnav-action.active,
.layout.zy-v5-shell .flagship-history-btn:hover,
.layout.zy-v5-shell .flagship-support-link:hover {
  color: var(--zy-text);
  background: rgba(23, 25, 29, 0.045);
}

.zy-topnav-account,
.layout.zy-v5-shell .flagship-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--zy-text) !important;
  text-decoration: none;
  cursor: pointer;
}

.zy-account-circle,
.layout.zy-v5-shell .flagship-account-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaecef;
  border: 1px solid var(--zy-border);
  color: var(--zy-text);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.zy-account-circle svg,
.layout.zy-v5-shell .flagship-account-circle svg {
  width: 16px;
  height: 16px;
  color: var(--zy-text-body);
}

.zy-topnav-account:hover .zy-account-circle,
.layout.zy-v5-shell .flagship-account-btn:hover .flagship-account-circle {
  background: #e1e5ea;
  border-color: #cfd5dd;
}

.zy-topnav-menu-btn,
.layout.zy-v5-shell .flagship-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--zy-text);
  cursor: pointer;
}

.zy-topnav-menu-btn svg,
.layout.zy-v5-shell .flagship-menu-btn svg {
  width: 20px;
  height: 20px;
}

.zy-mobile-drawer,
.layout.zy-v5-shell .flagship-mobile-drawer {
  display: none;
}

.zy-mobile-drawer:not([hidden]),
.layout.zy-v5-shell .flagship-mobile-drawer:not([hidden]) {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 16px;
  border-top: 1px solid var(--zy-divider);
  background: rgba(255, 255, 255, 0.97);
  gap: 2px;
}

.zy-mobile-drawer a,
.zy-mobile-drawer button,
.layout.zy-v5-shell .flagship-mobile-drawer a,
.layout.zy-v5-shell .flagship-mobile-drawer button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--zy-text-body);
  font: inherit;
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.zy-mobile-drawer a.active,
.layout.zy-v5-shell .flagship-mobile-drawer a.active {
  color: var(--zy-text);
  font-weight: 600;
}

/* ==================== SPA 全局壳层切换：全站一级用户页取消旧版常驻左侧栏 ==================== */
.layout.zy-v5-shell {
  display: block !important;
  min-height: 100dvh;
  background: var(--zy-bg);
  color: var(--zy-text);
  overflow-x: clip;
}

.layout.zy-v5-shell > .sidebar,
.layout.zy-v5-shell > .main-shell > .student-header,
.layout.zy-v5-shell > .bottom-nav {
  display: none !important;
}

.layout.zy-v5-shell > .main-shell {
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--zy-bg);
  overflow-x: clip;
}

.layout.zy-v5-shell > .main-shell::before {
  display: none !important;
}

/* 通用二级/内容页容器（1200px 标准宽度，个人中心 1080px，课程播放/复杂工作台 1360-1440px） */
.layout.zy-v5-shell > .main-shell > #page.content-page {
  width: calc(100% - 96px);
  max-width: var(--zy-content-width);
  margin: 0 auto;
  padding: 40px 0 64px;
  background: transparent;
  box-sizing: border-box;
  flex: 1 0 auto;
  animation: zyPageFade 220ms var(--zy-ease) both;
}

.layout.zy-v5-shell > .main-shell > #page.student-profile,
.layout.zy-v5-shell > .main-shell > #page.membership-center {
  max-width: 1080px;
}

.layout.zy-v5-shell > .main-shell > #page.course-detail-page {
  max-width: 1360px;
  padding-top: 24px;
}

.layout.zy-v5-shell > .main-shell > .site-record-footer {
  width: calc(100% - 96px);
  max-width: var(--zy-content-width);
  margin: auto auto 0;
  padding: 18px 0 24px;
  border-top: 1px solid var(--zy-divider);
  background: transparent;
  font-size: 11.5px;
  color: #9ba1ab;
}

@keyframes zyPageFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== 空间一：正式 AI 对话工作区（顶部统一导航 + 可折叠历史栏 + 760-880px 净读区） ==================== */
.layout.zy-v5-shell.chat-layout:has(.student-ask.has-conversation) > .main-shell > #page.student-ask.has-conversation {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: calc(100dvh - var(--zy-nav-height));
  display: flex;
  flex-direction: column;
  background: var(--zy-bg);
}

.layout.zy-v5-shell.chat-layout:has(.student-ask.has-conversation) > .main-shell > .site-record-footer {
  border-top: 0;
  padding: 8px 0 12px;
  text-align: center;
}

/* 右上角个人账户轻收纳浮层（将历史会话与快捷管理优雅隐藏于头像内） */
.zy-account-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.zy-account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 220px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--zy-border);
  box-shadow: 0 18px 42px rgba(23, 25, 29, 0.11), 0 2px 6px rgba(23, 25, 29, 0.04);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: zyPopoverIn 150ms var(--zy-ease) both;
}

.zy-account-popover[hidden] {
  display: none !important;
}

@keyframes zyPopoverIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.zy-account-popover-head {
  padding: 10px 12px 9px;
  border-bottom: 1px solid var(--zy-divider);
  margin-bottom: 4px;
}

.zy-account-popover-head strong {
  display: block;
  font-size: 14px;
  font-weight: 620;
  color: var(--zy-text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zy-account-popover-head small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--zy-text-muted);
}

.zy-account-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--zy-text-body);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.zy-account-popover-item svg {
  width: 16px;
  height: 16px;
  color: var(--zy-text-muted);
  flex: none;
  transition: color 140ms ease;
}

.zy-account-popover-item:hover {
  background: var(--zy-surface-secondary);
  color: var(--zy-text);
}

.zy-account-popover-item:hover svg {
  color: var(--zy-text);
}

.zy-account-popover-sep {
  height: 1px;
  margin: 4px 8px;
  background: var(--zy-divider);
}

.zy-account-popover-item.danger {
  color: var(--zy-danger);
}

.zy-account-popover-item.danger:hover {
  background: rgba(184, 62, 69, 0.08);
  color: var(--zy-danger);
}

.zy-chat-topbar {
  display: none;
}

.student-ask.has-conversation .zy-chat-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: calc(100% - 96px);
  max-width: 860px;
  margin: 12px auto 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--zy-divider);
}

.student-ask.has-conversation .zy-chat-topbar #zy-chat-back {
  justify-self: start;
}

.zy-chat-topbar-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.zy-chat-topbar-center strong {
  font-size: 15px;
  font-weight: 620;
  color: var(--zy-text);
  letter-spacing: -0.01em;
}

.zy-chat-topbar-spacer {
  display: block;
}

.layout.zy-v5-shell #page.student-ask.has-conversation > .welcome {
  flex: 1 1 auto;
  width: calc(100% - 96px);
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 0 20px;
}

.layout.zy-v5-shell #page.student-ask.has-conversation .conversation-message.user .conversation-body {
  background: #f0f3f6;
  color: var(--zy-text);
  border: 1px solid #e6eaef;
  border-radius: 16px;
}

.layout.zy-v5-shell #page.student-ask.has-conversation .conversation-message.assistant .conversation-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 2px;
  color: var(--zy-text);
  line-height: 1.75;
}

.layout.zy-v5-shell #page.student-ask.has-conversation > .composer-section {
  position: sticky;
  bottom: 0;
  z-index: 20;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 0 14px;
  background: linear-gradient(180deg, rgba(250, 251, 252, 0) 0%, rgba(250, 251, 252, 0.94) 24%, #fafbfc 100%);
  border: 0;
}

.layout.zy-v5-shell #page.student-ask.has-conversation > .composer-section > * {
  width: calc(100% - 96px);
  max-width: 860px;
  margin-inline: auto;
}

.layout.zy-v5-shell #page.student-ask.has-conversation .flagship-composer {
  border-radius: 20px;
  border: 1px solid var(--zy-border);
  box-shadow: var(--zy-shadow);
  padding: 14px 16px 10px 18px;
}

/* ==================== 空间二：经营工具首页（双列重点 + 四列紧凑网格，彻底去除深蓝宣传横幅与彩虹卡片） ==================== */
.zy-tools-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--zy-divider);
  margin: 0 0 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.zy-tools-tabs::-webkit-scrollbar {
  display: none;
}

.zy-course-toolbar .zy-tools-tabs {
  border-bottom: 0;
  margin: 0;
}

.zy-tools-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--zy-text-secondary);
  font: inherit;
  font-size: 14.5px;
  font-weight: 450;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.zy-tools-tab:hover {
  color: var(--zy-text);
}

.zy-tools-tab.active {
  color: var(--zy-text);
  font-weight: 600;
}

.zy-tools-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--zy-text);
  border-radius: 2px;
}

.zy-featured-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.zy-featured-tool-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 196px;
  padding: 28px;
  border: 1px solid var(--zy-border);
  border-radius: 20px;
  background: linear-gradient(155deg, #ffffff 0%, #f3f6f9 100%);
  text-align: left;
  color: var(--zy-text);
  cursor: pointer;
  transition: transform 200ms var(--zy-ease), border-color 200ms ease, box-shadow 200ms ease;
}

.zy-featured-tool-card:hover {
  transform: translateY(-2px);
  border-color: #c8d0db;
  box-shadow: var(--zy-shadow-hover);
}

.zy-featured-tool-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.zy-featured-tool-kicker {
  font-size: 12px;
  font-weight: 550;
  color: var(--zy-accent);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.zy-featured-tool-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--zy-text);
}

.zy-featured-tool-card p {
  margin: 8px 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--zy-text-body);
}

.zy-featured-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zy-text);
}

.zy-featured-tool-viz {
  flex: none;
  width: 120px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e6ebf0;
  padding: 10px;
}

.zy-featured-tool-viz svg {
  width: 100%;
  height: 100%;
}

.zy-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.zy-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 164px;
  padding: 22px;
  border: 1px solid var(--zy-border);
  border-radius: 16px;
  background: var(--zy-surface);
  text-align: left;
  color: var(--zy-text);
  cursor: pointer;
  transition: transform 200ms var(--zy-ease), border-color 200ms ease, box-shadow 200ms ease;
}

.zy-tool-card:hover {
  transform: translateY(-2px);
  border-color: #c8d0db;
  box-shadow: var(--zy-shadow-hover);
}

.zy-tool-card-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zy-tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--zy-surface-secondary);
  color: var(--zy-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zy-tool-icon svg {
  width: 19px;
  height: 19px;
}

.zy-tool-arrow {
  font-size: 14px;
  color: var(--zy-text-muted);
  transition: transform 180ms var(--zy-ease), color 180ms ease;
}

.zy-tool-card:hover .zy-tool-arrow {
  color: var(--zy-text);
  transform: translate(2px, -2px);
}

.zy-tool-card h3 {
  margin: 2px 0 0;
  font-size: 16.5px;
  font-weight: 620;
  color: var(--zy-text);
}

.zy-tool-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--zy-text-secondary);
}

.zy-tools-ask-banner {
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--zy-border);
  border-radius: 16px;
  background: var(--zy-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.zy-tools-ask-banner strong {
  display: block;
  font-size: 16px;
  font-weight: 620;
  color: var(--zy-text);
}

.zy-tools-ask-banner p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--zy-text-secondary);
}

/* ==================== 空间三：AI 作图工作室（左侧/右侧参数栏 + 浅银灰大画布，清除旧深蓝画布框与旧底栏） ==================== */
body.zy-v5-workshop .workshop-sidebar,
body.zy-v5-workshop .bottom-nav,
body.zy-v5-workshop .mobile-nav,
body.zy-v5-workshop main > a.back {
  display: none !important;
}

body.zy-v5-workshop {
  background: var(--zy-bg) !important;
  color: var(--zy-text) !important;
  padding-left: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
  overflow-x: clip !important;
}

body.zy-v5-workshop main {
  width: calc(100% - 96px) !important;
  max-width: var(--zy-workspace-width) !important;
  margin: 0 auto !important;
  padding: 32px 0 56px !important;
  background: transparent !important;
  background-image: none !important;
}

body.zy-v5-workshop .page-heading {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 16px 20px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.zy-v5-workshop .page-heading h1 {
  margin: 0 !important;
  font-size: clamp(30px, 3.8vw, 44px) !important;
  font-weight: 660 !important;
  letter-spacing: -0.035em !important;
  color: var(--zy-text) !important;
  line-height: 1.18 !important;
}

body.zy-v5-workshop .page-heading p {
  display: block !important;
  margin: 8px 0 0 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  color: var(--zy-text-secondary) !important;
}

body.zy-v5-workshop .dw-mode-tabs {
  max-width: 100% !important;
  background: var(--zy-surface-secondary) !important;
  border: 1px solid var(--zy-divider) !important;
  border-radius: 12px !important;
  padding: 4px !important;
}

body.zy-v5-workshop .dw-mode-tab {
  color: var(--zy-text-secondary) !important;
  border-radius: 9px !important;
  min-width: 0 !important;
}

body.zy-v5-workshop .dw-mode-tab.active,
body.zy-v5-workshop .dw-mode-tab[aria-current="page"] {
  background: var(--zy-surface) !important;
  color: var(--zy-text) !important;
  box-shadow: 0 2px 8px rgba(23, 25, 29, 0.06) !important;
}

body.zy-v5-workshop .format-tag {
  background: var(--zy-surface-secondary) !important;
  color: var(--zy-text-body) !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 999px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  padding: 6px 14px !important;
}

body.zy-v5-workshop .canvas-stage,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage,
body.zy-v5-workshop[data-integrated="true"] #canvas-workbench[data-workshop-mode="main"] .canvas-stage {
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--zy-shadow) !important;
  overflow: hidden !important;
}

body.zy-v5-workshop .canvas-stage-bar,
body.zy-v5-workshop .canvas-stage-foot,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage-bar,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage-foot,
body.zy-v5-workshop[data-integrated="true"] #canvas-workbench[data-workshop-mode="main"] .canvas-stage-bar,
body.zy-v5-workshop[data-integrated="true"] #canvas-workbench[data-workshop-mode="main"] .canvas-stage-foot {
  background: #f5f7fa !important;
  background-image: none !important;
  color: var(--zy-text-secondary) !important;
  border-color: var(--zy-divider) !important;
}

body.zy-v5-workshop .canvas-stage-bar h2,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage-bar h2 {
  color: var(--zy-text) !important;
  font-size: 13.5px !important;
  font-weight: 620 !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage-bar h2::before {
  background: var(--zy-primary) !important;
  box-shadow: none !important;
}

body.zy-v5-workshop .canvas-stage-bar .canvas-swap,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage-bar .canvas-swap,
body.zy-v5-workshop[data-integrated="true"] #canvas-workbench[data-workshop-mode="main"] .canvas-stage-bar .canvas-swap {
  background: var(--zy-surface) !important;
  color: var(--zy-text) !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 9px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 0 12px !important;
  min-height: 34px !important;
}

body.zy-v5-workshop .canvas-stage-bar .canvas-swap:hover,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage-bar .canvas-swap:hover {
  background: var(--zy-surface-secondary) !important;
  border-color: #c5ccd6 !important;
}

body.zy-v5-workshop .canvas-format,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-stage-foot .canvas-format {
  background: var(--zy-surface) !important;
  color: var(--zy-text-body) !important;
  border: 1px solid var(--zy-border) !important;
}

body.zy-v5-workshop .canvas-aperture,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture {
  background: var(--zy-surface-secondary) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* 去掉旧版廉价 AI 蓝色网格与四角科技取景框 */
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture::before,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture::after {
  display: none !important;
}

body.zy-v5-workshop .upload-target,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #product-drop {
  background: var(--zy-surface) !important;
  border: 1.5px dashed #cfd6df !important;
  border-radius: 16px !important;
  color: var(--zy-text) !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #product-empty b {
  width: 68px !important;
  height: 68px !important;
  background: var(--zy-surface-secondary) !important;
  background-image: none !important;
  border: 1px solid var(--zy-border) !important;
  color: var(--zy-text-body) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #product-empty b::before,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #product-empty b::after {
  display: none !important;
}

body.zy-v5-workshop .upload-empty:not([hidden]),
body.zy-v5-workshop #product-empty:not([hidden]) {
  display: grid !important;
  justify-items: center !important;
  text-align: center !important;
}

body.zy-v5-workshop .upload-empty strong,
body.zy-v5-workshop #product-empty strong,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #product-empty strong {
  color: var(--zy-text) !important;
  opacity: 1 !important;
}

body.zy-v5-workshop .upload-empty span,
body.zy-v5-workshop #product-empty span,
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #product-empty > span {
  color: var(--zy-text-secondary) !important;
  opacity: 1 !important;
}

/* 生成等待态：高对比度浅银灰 + 石墨黑克制转环 */
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #ci-wait:not([hidden]) {
  color: var(--zy-text) !important;
  background: var(--zy-surface-secondary) !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture #ci-wait:not([hidden])::before {
  border: 2px solid var(--zy-border) !important;
  border-right-color: var(--zy-primary) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 成图结果区：彻底清除旧深蓝底 #162944，改为浅银灰画布 + 高对比石墨黑/纯白操作键 */
body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture[data-state="result"] #ci-gallery,
body.zy-v5-workshop #ci-gallery {
  background: var(--zy-surface-secondary) !important;
  padding: 20px !important;
  gap: 16px !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture[data-state="result"] #ci-gallery .result-card,
body.zy-v5-workshop #ci-gallery .result-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0 8px !important;
}

body.zy-v5-workshop #ci-gallery .result-card img {
  border-radius: 14px !important;
  box-shadow: 0 12px 32px rgba(23, 25, 29, 0.1) !important;
  background: #ffffff !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture[data-state="result"] #ci-gallery .result-card > a.secondary,
body.zy-v5-workshop #ci-gallery .result-card > a.secondary {
  background: var(--zy-primary) !important;
  border: 1px solid var(--zy-primary) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  min-height: 40px !important;
  font-weight: 550 !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture[data-state="result"] #ci-gallery .result-card > button.secondary,
body.zy-v5-workshop #ci-gallery .result-card > button.secondary {
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  color: var(--zy-text) !important;
  border-radius: 10px !important;
  min-height: 40px !important;
  font-weight: 500 !important;
}

body.zy-v5-workshop[data-canvas="true"][data-integrated="true"] .canvas-aperture[data-state="result"] #ci-gallery .result-card > button.secondary:hover {
  background: var(--zy-bg) !important;
  border-color: #c5ccd6 !important;
}

body.zy-v5-workshop #ci-gallery .result-card p,
body.zy-v5-workshop #ci-gallery .generated-result-notice {
  color: var(--zy-text-muted) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  margin-top: 8px !important;
}

body.zy-v5-workshop .canvas-side,
body.zy-v5-workshop .panel,
body.zy-v5-workshop .upload-panel,
body.zy-v5-workshop .preview-panel {
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 20px !important;
  box-shadow: var(--zy-shadow) !important;
}

body.zy-v5-workshop .canvas-side::before,
body.zy-v5-workshop .canvas-side::after {
  display: none !important;
}

body.zy-v5-workshop .canvas-direction button,
body.zy-v5-workshop .canvas-detail-choices button {
  color: var(--zy-text-body) !important;
  border-color: var(--zy-border) !important;
  background: var(--zy-surface) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

body.zy-v5-workshop .canvas-direction button.active,
body.zy-v5-workshop .canvas-direction button[aria-pressed="true"],
body.zy-v5-workshop #canvas-workbench[data-workshop-mode="main"] .canvas-direction button[aria-pressed="true"],
body.zy-v5-workshop .canvas-detail-choices button.active,
body.zy-v5-workshop .canvas-detail-choices button[aria-pressed="true"],
body.zy-v5-workshop .mode.active,
body.zy-v5-workshop [aria-pressed="true"].mode {
  background: #f4f6fa !important;
  border-color: var(--zy-text) !important;
  color: var(--zy-text) !important;
  font-weight: 620 !important;
  box-shadow: inset 0 0 0 0.5px var(--zy-text) !important;
}

body.zy-v5-workshop .primary-button,
body.zy-v5-workshop #generate,
body.zy-v5-workshop #ci-generate,
body.zy-v5-workshop .canvas-action button,
body.zy-v5-workshop button.primary,
body.zy-v5-workshop .generate-button {
  background: var(--zy-primary) !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 48px !important;
  font-weight: 620 !important;
  box-shadow: none !important;
}

body.zy-v5-workshop .canvas-action #ci-generate:hover:not(:disabled) {
  background: #2c303a !important;
}

body.zy-v5-workshop .canvas-library button,
body.zy-v5-workshop .canvas-library a {
  color: var(--zy-text-body) !important;
}

body.zy-v5-workshop .canvas-stage img,
body.zy-v5-workshop .preview-stage img,
body.zy-v5-workshop .result-well img {
  object-fit: contain !important;
}

/* ==================== 空间四：实战课程中心 & 课程播放页（16:9 质感封面 + 1.85fr/1fr 边看边问） ==================== */
.zy-course-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 24px;
  margin-bottom: 28px;
  background: var(--zy-surface);
  border: 1px solid var(--zy-border);
  border-radius: 18px;
  box-shadow: var(--zy-shadow);
}

.zy-course-continue-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.zy-course-continue-thumb {
  width: 148px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(145deg, #252a33, #3c4554);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px 12px;
  flex: none;
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
}

.zy-course-continue-meta small {
  display: block;
  font-size: 12px;
  color: var(--zy-accent);
  font-weight: 550;
  margin-bottom: 4px;
}

.zy-course-continue-meta strong {
  display: block;
  font-size: 17px;
  font-weight: 620;
  color: var(--zy-text);
}

.zy-course-continue-meta span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--zy-text-muted);
}

.zy-course-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--zy-divider);
  margin-bottom: 24px;
  padding-bottom: 4px;
  max-width: 100%;
  min-width: 0;
}

.zy-course-toolbar .zy-tools-tabs {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.zy-course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.zy-course-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--zy-surface);
  border: 1px solid var(--zy-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--zy-text);
  transition: transform 200ms var(--zy-ease), border-color 200ms ease, box-shadow 200ms ease;
}

.zy-course-card:hover {
  transform: translateY(-2px);
  border-color: #c8d0db;
  box-shadow: var(--zy-shadow-hover);
}

.zy-course-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #f3f5f9 0%, #e4e9f2 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px 16px;
  overflow: hidden;
  color: #181a1f;
}

.zy-course-cover::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -68px;
  top: -86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.zy-course-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(125deg, transparent 58%, rgba(255, 255, 255, 0.06) 58.2%, transparent 62%);
  pointer-events: none;
}

.zy-course-cover.theme-ink {
  background: linear-gradient(145deg, #242934 0%, #14181f 100%);
  color: #ffffff;
}

.zy-course-cover.theme-steel {
  background: linear-gradient(145deg, #253347 0%, #161f2d 100%);
  color: #ffffff;
}

.zy-course-cover.theme-mist {
  background: linear-gradient(145deg, #f5f7fb 0%, #e6ecf5 100%);
  color: #181a1f;
}

.zy-course-cover.theme-stone {
  background: linear-gradient(145deg, #f7f6f2 0%, #ebe8e1 100%);
  color: #181a1f;
}

.zy-course-cover.dark {
  color: #ffffff;
}

.zy-course-cover.has-img::after {
  background: linear-gradient(180deg, rgba(16, 20, 28, 0.22) 0%, rgba(16, 20, 28, 0.12) 45%, rgba(16, 20, 28, 0.68) 100%);
}

.zy-course-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zy-course-cover-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zy-course-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 560;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #2c323d;
  border: 1px solid rgba(24, 26, 31, 0.06);
}

.zy-course-cat-pill em {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.65;
}

.zy-course-cover.dark .zy-course-cat-pill,
.zy-course-cover.has-img .zy-course-cat-pill {
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.zy-course-access-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(24, 26, 31, 0.08);
  color: #181a1f;
}

.zy-course-cover.dark .zy-course-access-pill,
.zy-course-cover.has-img .zy-course-access-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.zy-course-cover-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 660;
  line-height: 1.34;
  letter-spacing: -0.025em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: auto 0;
  padding: 6px 0;
}

.zy-course-cover.has-img .zy-course-cover-title {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.zy-course-cover-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zy-course-brand-mark {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.04em;
  opacity: 0.52;
}

.zy-course-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(24, 26, 31, 0.08);
  color: #181a1f;
}

.zy-course-play-pill i {
  font-style: normal;
  font-size: 8.5px;
  line-height: 1;
}

.zy-course-cover.dark .zy-course-play-pill,
.zy-course-cover.has-img .zy-course-play-pill {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.zy-course-card-body {
  padding: 13px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: none;
  background: #ffffff;
}

.zy-course-bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
}

.zy-course-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #181a1f;
}

.zy-course-status {
  font-size: 12.5px;
  color: #8a93a2;
}

.zy-course-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: #181a1f;
}
}

.zy-course-card-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 620;
  line-height: 1.45;
  color: var(--zy-text);
}

.zy-course-card-meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--zy-text-muted);
}

/* 课程播放页：右侧 AI 边看边问按钮统一石墨黑，章节卡片浅灰高亮 */
.layout.zy-v5-shell .course-return-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.layout.zy-v5-shell .course-detail-page .course-ask-form button[type="submit"],
.layout.zy-v5-shell .course-detail-page .course-ai-send,
.layout.zy-v5-shell .course-detail-page .primary-button {
  background: var(--zy-primary) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

.layout.zy-v5-shell .course-detail-page .course-title-row h1 {
  color: var(--zy-text) !important;
  font-size: clamp(26px, 2.8vw, 32px) !important;
  letter-spacing: -0.025em !important;
}

.layout.zy-v5-shell .course-detail-page .lesson-chapter-list button.active {
  background: var(--zy-surface-secondary) !important;
  border-color: #cfd6e0 !important;
  color: var(--zy-text) !important;
}

.layout.zy-v5-shell .course-detail-page .lesson-chapter-list button.active .ch-idx,
.layout.zy-v5-shell .course-detail-page .lesson-chapter-list button.active .chapter-idx {
  background: var(--zy-primary) !important;
  color: #ffffff !important;
}

.layout.zy-v5-shell .course-detail-page .lesson-chapter-list .chapter-time,
.layout.zy-v5-shell .course-detail-page .lesson-chapter-pill {
  color: var(--zy-text-secondary) !important;
}

.layout.zy-v5-shell .course-detail-page .lesson-quick-chip {
  background: var(--zy-surface-secondary) !important;
  border: 1px solid var(--zy-divider) !important;
  color: var(--zy-text-body) !important;
}

.layout.zy-v5-shell .course-detail-page .lesson-quick-chip:hover:not(:disabled) {
  background: #e6ebf1 !important;
  color: var(--zy-text) !important;
}

/* 会员升降档卡片色系收口：统一冷白+石墨黑+钛金灰 */
.layout.zy-v5-shell .member-help-box {
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 20px !important;
  color: var(--zy-text) !important;
}

.layout.zy-v5-shell .member-help-box h2,
.layout.zy-v5-shell .member-help-box h3,
.layout.zy-v5-shell .member-help-box strong {
  color: var(--zy-text) !important;
}

.layout.zy-v5-shell .member-help-box p,
.layout.zy-v5-shell .member-help-box span,
.layout.zy-v5-shell .member-help-current {
  color: var(--zy-text-body) !important;
}

.layout.zy-v5-shell .member-help-contact {
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  color: var(--zy-text) !important;
  border-radius: 10px !important;
}

.layout.zy-v5-shell .member-help-contact:hover {
  background: var(--zy-surface-secondary) !important;
}

/* ==================== 空间五：个人中心 & 六种金属会员身份体系 ==================== */
.zy-account-container {
  max-width: 1080px;
  margin-inline: auto;
}

.zy-account-identity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: var(--zy-surface);
  border: 1px solid var(--zy-border);
  border-radius: 18px;
  margin-bottom: 20px;
}

.zy-account-identity-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.zy-account-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--zy-surface-secondary);
  border: 1px solid var(--zy-border);
  color: var(--zy-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 650;
  flex: none;
}

.zy-account-identity-meta {
  min-width: 0;
}

.zy-account-identity-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zy-account-identity-name-row strong {
  font-size: 19px;
  font-weight: 650;
  color: var(--zy-text);
}

.zy-account-identity-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--zy-text-muted);
}

.zy-account-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

/* 六种金属会员卡片（严格对应规范第十三章色值） */
.zy-member-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--member-text, #28313d);
  background: var(--member-bg, #edf0f4);
  border: 1px solid var(--member-border, rgba(23, 25, 29, 0.08));
}

.zy-member-card[data-tier="none"] {
  --member-bg: linear-gradient(135deg, #ffffff, #f2f4f7);
  --member-text: #17191d;
  --member-border: #dfe3e8;
}

.zy-member-card[data-tier="trial"] {
  --member-bg: linear-gradient(135deg, #f7f9fc, #e4ecf5);
  --member-text: #223042;
  --member-border: #d4dfec;
}

.zy-member-card[data-tier="expired"] {
  --member-bg: linear-gradient(135deg, #f4f5f7, #e4e6ea);
  --member-text: #535b66;
  --member-border: #d8dce2;
}

/* AI 月会员 */
.zy-member-card[data-tier="ai-month"] {
  --member-bg: linear-gradient(135deg, #f6f8fa, #d9e0e9);
  --member-text: #28313d;
  --member-border: rgba(40, 49, 61, 0.1);
}

/* AI 季度会员 */
.zy-member-card[data-tier="ai-quarter"] {
  --member-bg: linear-gradient(135deg, #eaf0f8, #aebfd6);
  --member-text: #28394e;
  --member-border: rgba(40, 57, 78, 0.12);
}

/* AI 年会员 */
.zy-member-card[data-tier="ai-year"] {
  --member-bg: linear-gradient(135deg, #46566d, #202c3d);
  --member-text: #ffffff;
  --member-border: rgba(255, 255, 255, 0.12);
}

/* 一对一陪跑 + AI 月会员 */
.zy-member-card[data-tier="pro-month"] {
  --member-bg: linear-gradient(135deg, #f5f2ed, #d7d0c5);
  --member-text: #3d3932;
  --member-border: rgba(61, 57, 50, 0.12);
}

/* 一对一陪跑 + AI 季度会员 */
.zy-member-card[data-tier="pro-quarter"] {
  --member-bg: linear-gradient(135deg, #e9e3d8, #c4b39c);
  --member-text: #40382d;
  --member-border: rgba(64, 56, 45, 0.14);
}

/* 一对一陪跑 + AI 年会员 */
.zy-member-card[data-tier="pro-year"] {
  --member-bg: linear-gradient(135deg, #42413f, #1d1d20);
  --member-text: #f7f4ee;
  --member-border: rgba(255, 255, 255, 0.12);
}

/* 极淡金属材质光影（无扫光、无闪烁） */
.zy-member-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(255, 255, 255, 0.16) 48%,
    transparent 70%
  );
}

.zy-member-card::after {
  content: "";
  position: absolute;
  right: -64px;
  top: -64px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.zy-member-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zy-member-brand {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.zy-member-name {
  margin-top: 16px;
  font-size: 26px;
  font-weight: 660;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.zy-member-cycle {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.65;
}

.zy-member-meta {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0.88;
}

.zy-member-card-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zy-member-tagline {
  font-size: 12.5px;
  opacity: 0.72;
}

.zy-member-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zy-member-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: var(--zy-primary);
  color: #ffffff;
}

.zy-member-card[data-tier="ai-year"] .zy-member-card-btn,
.zy-member-card[data-tier="pro-year"] .zy-member-card-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #17191d;
}

/* 全站统一小型 MemberBadge 组件 */
.zy-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.04em;
  line-height: 1.4;
  white-space: nowrap;
}

.zy-member-badge[data-tier="ai-month"] { background: #e8edf3; color: #28313d; }
.zy-member-badge[data-tier="ai-quarter"] { background: #dde6f2; color: #28394e; }
.zy-member-badge[data-tier="ai-year"] { background: #263447; color: #ffffff; }
.zy-member-badge[data-tier="pro-month"] { background: #ebe6de; color: #3d3932; }
.zy-member-badge[data-tier="pro-quarter"] { background: #dfd4c5; color: #40382d; }
.zy-member-badge[data-tier="pro-year"] { background: #222225; color: #f4efe6; }
.zy-member-badge[data-tier="trial"] { background: #e8eef6; color: #28394e; }
.zy-member-badge[data-tier="expired"] { background: #eceef1; color: #68717e; }
.zy-member-badge[data-tier="none"] { background: #f0f3f6; color: #68717e; }

/* 在深色金属卡片内部保持通透对比 */
.zy-member-card .zy-member-badge {
  background: rgba(255, 255, 255, 0.24);
  color: inherit;
}

.zy-member-card[data-tier="ai-year"] .zy-member-badge,
.zy-member-card[data-tier="pro-year"] .zy-member-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/* 点数卡片 */
.zy-credit-card {
  background: var(--zy-surface);
  border: 1px solid var(--zy-border);
  border-radius: 20px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.zy-credit-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--zy-text-muted);
}

.zy-credit-value {
  margin: 10px 0 6px;
  font-size: 40px;
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--zy-text);
  line-height: 1.1;
}

.zy-credit-value small {
  font-size: 15px;
  font-weight: 500;
  color: var(--zy-text-muted);
  margin-left: 4px;
}

.zy-credit-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 14px 0 16px;
  padding-top: 14px;
  border-top: 1px solid var(--zy-divider);
  font-size: 12.5px;
  color: var(--zy-text-secondary);
}

.zy-credit-breakdown span b {
  color: var(--zy-text);
  font-weight: 600;
}

.zy-credit-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zy-text);
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}

.zy-account-section-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--zy-text);
}

.zy-account-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.zy-account-quick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 18px 20px;
  border: 1px solid var(--zy-border);
  border-radius: 14px;
  background: var(--zy-surface);
  color: var(--zy-text);
  font: inherit;
  font-size: 14.5px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--zy-ease), border-color 180ms ease;
}

.zy-account-quick-card:hover {
  transform: translateY(-2px);
  border-color: #c5ccd6;
}

.zy-account-quick-card span:last-child {
  color: var(--zy-text-muted);
}

.zy-account-service-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--zy-divider);
}

.zy-account-service-bar button,
.zy-account-service-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--zy-text-secondary);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.zy-account-service-bar button:hover,
.zy-account-service-bar a:hover {
  color: var(--zy-text);
}

.zy-account-service-bar button.danger {
  color: var(--zy-danger);
}

/* ==================== 会员中心双系列周期对比布局 ==================== */
.zy-member-series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 28px;
}

.zy-member-series-panel {
  background: var(--zy-surface);
  border: 1px solid var(--zy-border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.zy-cycle-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--zy-surface-secondary);
  gap: 4px;
  align-self: flex-start;
}

.zy-cycle-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--zy-text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.zy-cycle-btn.active {
  background: var(--zy-surface);
  color: var(--zy-text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(23, 25, 29, 0.06);
}

.zy-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.zy-plan-price-row strong {
  font-size: 36px;
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--zy-text);
}

.zy-plan-price-row span {
  font-size: 14px;
  color: var(--zy-text-muted);
}

.zy-plan-benefits {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--zy-text-body);
}

.zy-plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.zy-plan-benefits li::before {
  content: "✓";
  color: var(--zy-text);
  font-weight: 600;
}

/* ==================== 空间六：统一联系客服中心 (support.html) ==================== */
body.zy-v5-support {
  background: var(--zy-bg) !important;
  color: var(--zy-text) !important;
  margin: 0 !important;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body.zy-v5-support .support-page {
  width: calc(100% - 96px) !important;
  max-width: var(--zy-content-width) !important;
  margin: 0 auto !important;
  padding: 44px 0 64px !important;
  flex: 1 0 auto;
}

.zy-support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

body.zy-v5-support .zy-support-main-card,
body.zy-v5-support .zy-support-main-card.support-contact {
  display: block !important;
  grid-template-columns: none !important;
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  box-shadow: var(--zy-shadow) !important;
}

.zy-support-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}

.zy-support-qr-box {
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--zy-bg);
  border: 1px solid var(--zy-divider);
  text-align: center;
}

.zy-support-qr-box canvas {
  display: block;
  width: 196px;
  height: 196px;
  border-radius: 10px;
  background: #ffffff;
}

.zy-support-qr-box figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--zy-text-muted);
}

.zy-support-topics-card {
  background: var(--zy-surface);
  border: 1px solid var(--zy-border);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: var(--zy-shadow);
}

.zy-support-topics-card h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 620;
  color: var(--zy-text);
}

.zy-support-topic-list {
  display: flex;
  flex-direction: column;
}

.zy-support-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 4px;
  border: 0;
  border-bottom: 1px solid var(--zy-divider);
  background: transparent;
  color: var(--zy-text-body);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease;
}

.zy-support-topic-item:last-child {
  border-bottom: 0;
}

.zy-support-topic-item:hover,
.zy-support-topic-item.active {
  color: var(--zy-text);
  font-weight: 550;
}

.zy-support-context-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--zy-surface-secondary);
  font-size: 13px;
  color: var(--zy-text-body);
}

/* ==================== 独立经营工具详情页 V5.0 专业工作台统一风格 ==================== */
body.tool-detail.zy-app {
  background: var(--zy-bg) !important;
  color: var(--zy-text) !important;
  font-family: var(--zy-font) !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.tool-detail.zy-app .container {
  width: calc(100% - 96px) !important;
  max-width: var(--zy-content-width) !important;
  margin: 0 auto !important;
  padding: 36px 0 64px !important;
}

body.tool-detail.zy-app .header {
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 0 28px !important;
  margin: 0 !important;
}

body.tool-detail.zy-app .header .tool-return {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: var(--zy-text-muted) !important;
  font-size: 13.5px;
  text-decoration: none;
}

body.tool-detail.zy-app .header .tool-return:hover {
  color: var(--zy-text) !important;
}

body.tool-detail.zy-app .header h1 {
  margin: 0 !important;
  font-size: clamp(30px, 3.6vw, 42px) !important;
  font-weight: 660 !important;
  letter-spacing: -0.035em !important;
  color: var(--zy-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.tool-detail.zy-app .header p {
  margin: 10px 0 0 !important;
  font-size: 15px !important;
  color: var(--zy-text-body) !important;
}

body.tool-detail.zy-app .card {
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--zy-shadow) !important;
}

body.tool-detail.zy-app .badge {
  background: var(--zy-surface-secondary) !important;
  color: var(--zy-text-body) !important;
  border: 1px solid var(--zy-divider) !important;
  font-weight: 500 !important;
}

body.tool-detail.zy-app button,
body.tool-detail.zy-app input,
body.tool-detail.zy-app select,
body.tool-detail.zy-app textarea {
  font-family: var(--zy-font) !important;
}

body.tool-detail.zy-app .seg-btn.active,
body.tool-detail.zy-app .tab-btn.active,
body.tool-detail.zy-app .pill-btn.active,
body.tool-detail.zy-app .mode-btn.active {
  background: var(--zy-primary) !important;
  color: #ffffff !important;
  border-color: var(--zy-primary) !important;
}

body.tool-detail.zy-app .pill-btn.active .p-name,
body.tool-detail.zy-app .pill-btn.active strong,
body.tool-detail.zy-app .pill-btn.active span {
  color: #ffffff !important;
}

body.tool-detail.zy-app .pill-btn.active .p-req,
body.tool-detail.zy-app .pill-btn.active small {
  color: rgba(255, 255, 255, 0.78) !important;
}

/* 所有工具的选项卡片选中态统一：石墨黑边框 + 浅银灰底 + 深色字（彻底清除旧亮蓝 #0071e3） */
body.tool-detail.zy-app :is(.type-btn, .price-pill, .cat-item, .stage-btn, .reason-btn, .style-btn, .opt-btn, .choice-btn).active {
  background: var(--zy-surface-secondary) !important;
  border-color: var(--zy-primary) !important;
  color: var(--zy-text) !important;
  box-shadow: 0 0 0 1px var(--zy-primary) inset !important;
}

body.tool-detail.zy-app :is(.type-btn, .price-pill, .cat-item, .stage-btn, .reason-btn, .style-btn, .opt-btn, .choice-btn).active :is(.t-name, .cat-name, .s-name, .r-name, strong, span) {
  color: var(--zy-text) !important;
}

body.tool-detail.zy-app .script-tag,
body.tool-detail.zy-app .tag-blue,
body.tool-detail.zy-app .sku-role {
  color: var(--zy-text) !important;
  background: var(--zy-surface-secondary) !important;
  border-color: var(--zy-border) !important;
}

body.tool-detail.zy-app .advice-box.ok,
body.tool-detail.zy-app .sku-card.high {
  border-color: var(--zy-border) !important;
  background: var(--zy-bg) !important;
}

body.tool-detail.zy-app .mini-copy {
  color: var(--zy-text) !important;
  border-color: var(--zy-border) !important;
  background: var(--zy-surface) !important;
  border-radius: 8px !important;
}

body.tool-detail.zy-app .mini-copy:hover {
  background: var(--zy-surface-secondary) !important;
  border-color: #c5ccd6 !important;
}

body.tool-detail.zy-app input:checked + .toggle-slider,
body.tool-detail.zy-app input:checked + .slider {
  background-color: var(--zy-primary) !important;
}

/* 运营算账推演 (/pdd-tools/) 清理重复顶栏并统一全站石墨黑+冷白色系 */
body.zy-app > header.site-header {
  display: none !important;
}

body.zy-app nav.tabs {
  background: var(--zy-bg) !important;
  border-bottom: 1px solid var(--zy-divider) !important;
}

body.zy-app nav.tabs .tab[aria-selected="true"],
body.zy-app nav.tabs .tab.active {
  color: var(--zy-text) !important;
  background: var(--zy-surface) !important;
  box-shadow: 0 2px 8px rgba(23, 25, 29, 0.06) !important;
}

body.zy-app #workspace .eyebrow,
body.zy-app #workspace .hero,
body.zy-app #workspace .parameter-panel output,
body.zy-app #workspace .parameter-panel .value,
body.zy-app #workspace #controls strong,
body.zy-app #workspace #controls output,
body.zy-app #workspace #derived {
  color: var(--zy-text) !important;
}

body.zy-app #workspace button.copy {
  background: var(--zy-primary) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
}

body.zy-app #workspace input[type="range"] {
  accent-color: var(--zy-primary) !important;
}

body.tool-detail.zy-app input[type="range"] {
  accent-color: var(--zy-primary);
}

body.tool-detail.zy-app .slider-val,
body.tool-detail.zy-app .val-badge {
  color: var(--zy-text) !important;
  font-variant-numeric: tabular-nums;
}

body.tool-detail.zy-app input[type="range"]::-webkit-slider-thumb {
  border-color: var(--zy-primary) !important;
  background: #ffffff !important;
}

@media (max-width: 768px) {
  body.zy-v5-workshop .dw-mode-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  body.zy-v5-workshop .dw-mode-tab {
    width: 100% !important;
    padding-inline: 8px !important;
    font-size: 13px !important;
    text-align: center !important;
  }
}

body.tool-detail.zy-app .btn-primary,
body.tool-detail.zy-app .calc-btn,
body.tool-detail.zy-app .action-btn,
body.tool-detail.zy-app .copy-btn {
  background: var(--zy-primary) !important;
  background-image: none !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  border: 0 !important;
}

/* ==================== 全站弹窗 / 登录 / Toast 统一苹果克制规范 ==================== */
.layout:not(.zy-admin-shell) ~ #modal-root .modal,
#modal-root .modal,
#modal-root .login-modal,
#modal-root .history-modal,
dialog.modal {
  border-radius: 20px !important;
  background: var(--zy-surface) !important;
  border: 1px solid var(--zy-border) !important;
  box-shadow: 0 24px 64px rgba(18, 25, 38, 0.14) !important;
  color: var(--zy-text) !important;
}

#modal-root :is(.modal, .login-modal, .history-modal) button.primary-button,
#modal-root :is(.modal, .login-modal, .history-modal) button[type="submit"] {
  background: var(--zy-primary) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  min-height: 44px !important;
  border: 0 !important;
}

#modal-root :is(.modal, .login-modal, .history-modal) input {
  border-radius: 12px !important;
  border: 1px solid var(--zy-border) !important;
  min-height: 44px !important;
}

#toast.toast {
  background: var(--zy-primary) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(23, 25, 29, 0.18) !important;
}

/* ==================== 响应式断点：平板 (<= 1024px) & 手机 (<= 768px / 640px) ==================== */
@media (max-width: 1024px) {
  .zy-container,
  .zy-topnav-inner,
  .layout.zy-v5-shell .flagship-nav,
  .layout.zy-v5-shell > .main-shell > #page.content-page,
  .layout.zy-v5-shell > .main-shell > .site-record-footer,
  body.zy-v5-workshop main,
  body.zy-v5-support .support-page,
  body.tool-detail.zy-app .container {
    width: calc(100% - 64px) !important;
  }

  .zy-topnav-links,
  .layout.zy-v5-shell .flagship-nav-links {
    gap: 22px;
  }

  .zy-tool-grid,
  .zy-account-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zy-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.zy-v5-workshop .studio-grid {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .zy-container,
  .zy-topnav-inner,
  .layout.zy-v5-shell .flagship-nav,
  .layout.zy-v5-shell > .main-shell > #page.content-page,
  .layout.zy-v5-shell > .main-shell > .site-record-footer,
  .student-ask.has-conversation .zy-chat-topbar,
  .layout.zy-v5-shell #page.student-ask.has-conversation > .welcome,
  .layout.zy-v5-shell #page.student-ask.has-conversation > .composer-section > *,
  body.zy-v5-workshop main,
  body.zy-v5-support .support-page,
  body.tool-detail.zy-app .container {
    width: calc(100% - 36px) !important;
  }

  .zy-topnav-inner,
  .layout.zy-v5-shell .flagship-nav {
    min-height: 0;
    padding: 4px 0 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: 46px auto;
    gap: 0 10px;
  }

  .zy-topnav-brand,
  .layout.zy-v5-shell .flagship-brand {
    grid-column: 1;
    grid-row: 1;
    font-size: 18.5px;
  }

  .zy-topnav-right,
  .layout.zy-v5-shell .flagship-nav-right {
    grid-column: 2;
    grid-row: 1;
    gap: 2px;
  }

  /* 方案一：手机端第二行极简四栏轻导航（灵儿 · 经营工具 · AI 作图 · 实战课程），一触即达且绝不与输入框/软键盘冲突 */
  .zy-topnav-links,
  .layout.zy-v5-shell .flagship-nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 0 !important;
    margin-top: 2px;
    border-top: 1px solid rgba(236, 238, 241, 0.9);
  }

  .zy-topnav-links a,
  .layout.zy-v5-shell .flagship-nav-links a {
    position: relative;
    justify-content: center;
    min-height: 38px;
    padding: 0 4px;
    font-size: 13.5px;
    font-weight: 450;
    color: var(--zy-text-secondary);
  }

  .zy-topnav-links a.active,
  .layout.zy-v5-shell .flagship-nav-links a.active {
    color: var(--zy-text);
    font-weight: 620;
  }

  .zy-topnav-links a.active::after,
  .layout.zy-v5-shell .flagship-nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--zy-text);
  }

  .zy-topnav-action > span,
  .layout.zy-v5-shell .flagship-history-btn > span,
  .layout.zy-v5-shell .flagship-support-link > span {
    display: none !important;
  }

  .zy-topnav-action,
  .layout.zy-v5-shell .flagship-history-btn,
  .layout.zy-v5-shell .flagship-support-link {
    padding: 0;
    min-width: 38px;
    min-height: 38px;
  }

  /* 四个主导航已直接可见，取消多余的 ≡ 汉堡图标 */
  .zy-topnav-menu-btn,
  .layout.zy-v5-shell .flagship-menu-btn,
  .zy-mobile-drawer,
  .layout.zy-v5-shell .flagship-mobile-drawer {
    display: none !important;
  }

  /* 手机端统一返回栏与对话态返回按钮 */
  .zy-back-bar {
    margin: 0 0 14px;
    gap: 8px;
  }

  .zy-back-pill,
  .layout.zy-v5-shell .student-back,
  .layout.zy-v5-shell [data-memory-back] {
    min-height: 34px !important;
    padding: 0 11px 0 8px !important;
    font-size: 13px !important;
    border-radius: 9px !important;
  }

  .zy-breadcrumb,
  .zy-close-tab-btn {
    display: none !important;
  }

  /* 手机端对话态顶部极简栏（左返回 + 居中灵儿头像，零多余按钮） */
  .layout.zy-v5-shell.chat-layout:has(.student-ask.has-conversation) > .main-shell > #page.student-ask.has-conversation {
    min-height: calc(100dvh - 92px);
    padding-top: 8px;
  }

  .student-ask.has-conversation .zy-chat-topbar {
    margin: 0 auto;
    padding: 2px 0 10px;
  }

  .student-ask.has-conversation .zy-chat-topbar-center strong {
    font-size: 14.5px;
  }

  .layout.zy-v5-shell #page.student-ask.has-conversation > .welcome {
    padding: 12px 0 16px;
  }

  .layout.zy-v5-shell > .main-shell > #page.content-page {
    padding: 18px 0 44px;
  }

  body.zy-v5-workshop main,
  body.zy-v5-support .support-page,
  body.tool-detail.zy-app .container {
    padding-top: 18px !important;
  }

  .zy-featured-tools,
  .zy-account-summary,
  .zy-member-series-grid,
  .zy-support-layout,
  .zy-support-body,
  body.zy-v5-workshop .studio-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .zy-featured-tool-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    min-height: auto;
  }

  .zy-featured-tool-viz {
    width: 100%;
    height: 76px;
  }

  .zy-tools-ask-banner,
  .zy-course-continue,
  .zy-account-identity-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .zy-course-continue-left {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .zy-course-continue-thumb {
    width: 100%;
  }

  .zy-courses-page,
  .zy-courses-page > *,
  .zy-course-toolbar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .zy-course-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
    margin-bottom: 18px !important;
  }

  .zy-course-toolbar .zy-tools-tabs {
    width: 100% !important;
    gap: 18px !important;
    border-bottom: 1px solid var(--zy-divider) !important;
  }

  .zy-course-toolbar .course-search-input {
    width: 100% !important;
    max-width: 100% !important;
  }

  .zy-course-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }

  .zy-course-cover {
    aspect-ratio: 16 / 9 !important;
    padding: 14px 16px !important;
  }

  .zy-course-cover-title {
    font-size: 16px !important;
  }

  .zy-input,
  .layout:not(.zy-admin-shell) input,
  .layout:not(.zy-admin-shell) textarea,
  .layout:not(.zy-admin-shell) select {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .zy-course-grid,
  .zy-tool-grid,
  .zy-account-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==================== 问答区多张截图队列预览（支持粘贴/拍照连加最多 4 张） ==================== */
.zy-img-queue {
  display: grid;
  gap: 8px;
  padding: 10px 14px 4px;
  border-top: 1px solid rgba(24, 26, 31, 0.06);
}
.zy-img-queue[hidden] {
  display: none !important;
}
.zy-img-queue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.zy-img-tile {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(24, 26, 31, 0.1);
  background: #f5f7fa;
  flex-shrink: 0;
}
.zy-img-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zy-img-del {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(24, 26, 31, 0.78);
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.zy-img-queue-meta {
  font-size: 11.5px;
  color: #8a93a2;
  line-height: 1.4;
}
.chat-composer-shell.is-drag {
  border-color: #181a1f !important;
  box-shadow: 0 0 0 3px rgba(24, 26, 31, 0.08) !important;
}

/* ==================== 全站顶部小铃铛提醒 + 临期小胶囊 + 阶梯细提醒条 ==================== */
.zy-alert-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.zy-alert-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #62666e;
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.zy-alert-bell-btn:hover {
  background: rgba(24, 26, 31, 0.05);
  color: #181a1f;
}

.zy-alert-bell-btn.has-pill {
  padding: 0 11px 0 9px;
  height: 34px;
}

.zy-alert-bell-btn.has-pill.is-warn {
  background: #fff8eb;
  border-color: rgba(180, 114, 15, 0.24);
  color: #9a5d07;
}

.zy-alert-bell-btn.has-pill.is-danger {
  background: #fff3f2;
  border-color: rgba(194, 54, 43, 0.24);
  color: #b83227;
}

.zy-alert-bell-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.zy-alert-bell-icon svg {
  width: 18px;
  height: 18px;
}

.zy-alert-pill-txt {
  font-size: 12px;
  font-weight: 620;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.zy-alert-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d93829;
  box-shadow: 0 0 0 2px #ffffff;
}

.zy-alert-bell-btn.has-pill .zy-alert-dot {
  top: 4px;
  right: 4px;
}

.zy-alert-dot[hidden] {
  display: none !important;
}

.zy-alert-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(348px, calc(100vw - 24px));
  background: #ffffff;
  border: 1px solid rgba(24, 26, 31, 0.09);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(24, 26, 31, 0.14);
  z-index: 1200;
  overflow: hidden;
  text-align: left;
}

.zy-alert-popover[hidden] {
  display: none !important;
}

.zy-alert-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(24, 26, 31, 0.06);
  background: #fafbfc;
}

.zy-alert-pop-head strong {
  font-size: 14px;
  font-weight: 650;
  color: #181a1f;
}

.zy-alert-pop-head span {
  font-size: 12px;
  color: #8a93a2;
}

.zy-alert-pop-list {
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
  max-height: min(62vh, 420px);
  overflow-y: auto;
}

.zy-alert-item {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 13px;
  background: #f8f9fb;
  border: 1px solid rgba(24, 26, 31, 0.06);
}

.zy-alert-item.is-warn {
  background: #fffaf0;
  border-color: rgba(180, 114, 15, 0.18);
}

.zy-alert-item.is-danger {
  background: #fff6f5;
  border-color: rgba(194, 54, 43, 0.18);
}

.zy-alert-item.is-accent {
  background: #f4f7fc;
  border-color: rgba(24, 26, 31, 0.12);
}

.zy-alert-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zy-alert-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 620;
  background: rgba(24, 26, 31, 0.08);
  color: #181a1f;
}

.zy-alert-item.is-warn .zy-alert-tag {
  background: rgba(180, 114, 15, 0.14);
  color: #8d5506;
}

.zy-alert-item.is-danger .zy-alert-tag {
  background: rgba(194, 54, 43, 0.14);
  color: #b83227;
}

.zy-alert-item-title {
  font-size: 13.5px;
  font-weight: 630;
  color: #181a1f;
  line-height: 1.4;
}

.zy-alert-item-body {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.55;
  color: #525b6b;
  white-space: pre-wrap;
}

.zy-alert-item-cta {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 12.5px;
  font-weight: 620;
  color: #181a1f;
  text-decoration: none;
}

.zy-alert-item-cta:hover {
  text-decoration: underline;
}

.zy-alert-empty {
  padding: 18px 8px;
  text-align: center;
}

.zy-alert-empty strong {
  display: block;
  font-size: 13.5px;
  font-weight: 620;
  color: #181a1f;
}

.zy-alert-empty p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #8a93a2;
}

/* 阶梯式极细提醒条（仅最后 3 天 / 已到期 / 试用临近结束时显示） */
.zy-alert-banner {
  width: 100%;
  border-bottom: 1px solid rgba(24, 26, 31, 0.08);
  background: #fff9ee;
  color: #7c4a06;
  font-size: 12.8px;
  line-height: 1.45;
  position: relative;
  z-index: 40;
}

.zy-alert-banner.is-danger {
  background: #fff4f3;
  border-bottom-color: rgba(194, 54, 43, 0.15);
  color: #9f2920;
}

.zy-alert-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zy-alert-banner-text {
  flex: 1 1 260px;
  font-weight: 520;
}

.zy-alert-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.zy-alert-banner-cta {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #181a1f;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.zy-alert-banner-cta:hover {
  background: #2e323c;
}

.zy-alert-banner-close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
  opacity: 0.65;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  padding: 0;
}

.zy-alert-banner-close:hover {
  opacity: 1;
  background: rgba(24, 26, 31, 0.07);
}

.zy-alert-banner-close svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .zy-alert-bell-btn.has-pill {
    padding: 0 8px 0 7px;
    height: 32px;
  }
  .zy-alert-pill-txt {
    font-size: 11px;
  }
  .zy-alert-popover {
    position: fixed;
    top: 58px;
    left: 12px;
    right: 12px;
    width: auto;
  }
  .zy-alert-banner-inner {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ==================== 管理员后台统一苹果顶栏，彻底移除老左侧边栏 ==================== */
.layout.zy-admin-shell {
  display: block !important;
  min-height: 100dvh;
  background: var(--zy-bg);
  overflow-x: clip;
}

.layout.zy-admin-shell > .sidebar,
.layout.zy-admin-shell > .main-shell > .student-header,
.layout.zy-admin-shell > .bottom-nav {
  display: none !important;
}

.layout.zy-admin-shell > .main-shell {
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.layout.zy-admin-shell > .main-shell > .flagship-header {
  display: block !important;
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: rgba(250, 251, 252, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--zy-divider);
}

.layout.zy-admin-shell .flagship-nav {
  width: calc(100% - 96px);
  max-width: var(--zy-content-width);
  margin-inline: auto;
  min-height: var(--zy-nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.layout.zy-admin-shell .flagship-brand {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
  color: var(--zy-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.layout.zy-admin-shell .flagship-brand-ai {
  font-weight: 500;
  color: var(--zy-brand-blue);
  letter-spacing: -0.01em;
}

.layout.zy-admin-shell .flagship-brand-dot {
  color: var(--zy-text);
  font-weight: 700;
  margin-left: -4px;
}

.layout.zy-admin-shell .flagship-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.layout.zy-admin-shell .flagship-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 450;
  color: #62666e;
  text-decoration: none;
  white-space: nowrap;
}

.layout.zy-admin-shell .flagship-nav-links a:hover {
  color: var(--zy-text);
}

.layout.zy-admin-shell .flagship-nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.layout.zy-admin-shell .flagship-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  color: #62666e;
  font-size: 13.5px;
  text-decoration: none;
  white-space: nowrap;
}

.layout.zy-admin-shell .flagship-support-link svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.layout.zy-admin-shell .flagship-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.layout.zy-admin-shell .flagship-account-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eaecef;
  border: 1px solid var(--zy-border);
  color: var(--zy-text);
  font-size: 13px;
  font-weight: 600;
}

.layout.zy-admin-shell > .main-shell > #page {
  width: calc(100% - 64px);
  max-width: 1320px;
  margin: 20px auto 48px;
  padding: 0;
  flex: 1 0 auto;
}

@media (max-width: 768px) {
  .layout.zy-admin-shell .flagship-nav {
    width: calc(100% - 36px) !important;
    min-height: 0;
    padding: 4px 0 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: 46px auto;
    gap: 0 10px;
  }
  .layout.zy-admin-shell .flagship-brand { grid-column: 1; grid-row: 1; font-size: 18.5px; }
  .layout.zy-admin-shell .flagship-nav-right { grid-column: 2; grid-row: 1; gap: 2px; }
  .layout.zy-admin-shell .flagship-support-link span { display: none; }
  .layout.zy-admin-shell .flagship-nav-links {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 0 !important;
    border-top: 1px solid rgba(236, 238, 241, 0.9);
  }
  .layout.zy-admin-shell .flagship-nav-links a {
    justify-content: center;
    min-height: 38px;
    font-size: 13.5px;
  }
  .layout.zy-admin-shell > .main-shell > #page {
    width: calc(100% - 28px);
    margin: 14px auto 32px;
  }
}

/* ==================== 无障碍减弱动态 ==================== */
@media (prefers-reduced-motion: reduce) {
  .zy-app *,
  .zy-app *::before,
  .zy-app *::after,
  .layout.zy-v5-shell *,
  .layout.zy-v5-shell *::before,
  .layout.zy-v5-shell *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
