
/* SwitchCard 主题变量 */
html {
    --switch-card-bottom-icon-color: rgba(0, 0, 0, 0.7);
    --switch-card-bottom-title-color: rgba(0, 0, 0, 1);
}

html.dark {
    --switch-card-bottom-icon-color: rgba(255, 255, 255, 0.7);
    --switch-card-bottom-title-color: rgba(255, 255, 255, 1);
}

/* SliderCard 主题变量 */
html {
    --slider-card-bottom-title-color: rgba(0, 0, 0, 1);
    --slider-card-icon-color: rgba(0, 0, 0, 0.7);
    --slider-card-track-bg: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 2px, transparent 2px, transparent 4px);
    --slider-card-thumb-shadow: none;
    --slider-card-thumb-bg: transparent;
}

html.dark {
    --slider-card-bottom-title-color: rgba(255, 255, 255, 1);
    --slider-card-icon-color: rgba(255, 255, 255, 0.7);
    --slider-card-track-bg: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0px, rgba(255, 255, 255, 0.2) 2px, transparent 2px, transparent 4px);
    --slider-card-thumb-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 0 0 0.5px inset rgba(255, 255, 255, 0.1), 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 4px 6px 0 rgba(31, 31, 31, 0.4), 0 1px 0 0 inset rgba(255, 255, 255, 0.2);
    --slider-card-thumb-bg: linear-gradient(180deg, rgba(83, 83, 83, 1) 0%, rgba(46, 46, 46, 1) 100%);
}

/* AppStoreCard 主题变量 */
html {
    --app-store-card-bg: rgba(255, 255, 255, 0.8);
    --app-store-card-hover-bg: rgba(255, 255, 255, 0.9);
    --app-store-card-store-icon-color: #6B7280;
    --app-store-card-store-text-color: #6B7280;
    --app-store-card-divider-color: rgba(0, 0, 0, 0.05);
    --app-store-card-app-item-hover-bg: rgba(0, 0, 0, 0.1);
    --app-store-card-app-name-color: #1C1C1E;
    --app-store-card-app-desc-color: rgba(0, 0, 0, 0.7);
    --app-store-card-downloads-color: rgba(0, 0, 0, 0.7);
    --app-store-card-rating-number-color: rgba(0, 0, 0, 0.5);
    --app-store-card-star-active-bg: rgba(255, 182, 0, 1);
    --app-store-card-star-color: rgba(0, 0, 0, 0.15);
}

html.dark {
    --app-store-card-bg: rgba(255, 255, 255, 0.05);
    --app-store-card-hover-bg: rgba(255, 255, 255, 0.08);
    --app-store-card-store-icon-color: rgba(255, 255, 255, 0.7);
    --app-store-card-store-text-color: rgba(255, 255, 255, 0.7);
    --app-store-card-divider-color: rgba(255, 255, 255, 0.1);
    --app-store-card-app-item-hover-bg: rgba(255, 255, 255, 0.1);
    --app-store-card-app-name-color: rgba(255, 255, 255, 1);
    --app-store-card-app-desc-color: rgba(255, 255, 255, 0.7);
    --app-store-card-downloads-color: rgba(255, 255, 255, 0.5);
    --app-store-card-rating-number-color: rgba(255, 255, 255, 0.5);
    --app-store-card-star-active-bg: rgba(255, 182, 0, 1);
    --app-store-card-star-color: rgba(0, 0, 0, 0.15);
}

/* ScheduleCard 主题变量 */
html {
    --schedule-card-date-display-color: rgba(0, 0, 0, 0.7);
    --schedule-card-meeting-bar-bg: rgba(208, 45, 97, 1);
    --schedule-card-meeting-content-bg: linear-gradient(270deg, rgba(208, 45, 97, 0) 0%, rgba(208, 45, 97, 0.4) 100%);
    --schedule-card-meeting-text-color: rgba(0, 0, 0, 1);
}

html.dark {
    --schedule-card-date-display-color: rgba(255, 255, 255, 0.7);
    --schedule-card-meeting-bar-bg: rgba(156, 26, 68, 1);
    --schedule-card-meeting-content-bg: linear-gradient(270deg, rgba(156, 26, 68, 0) 0%, rgba(156, 26, 68, 0.4) 100%);
    --schedule-card-meeting-text-color: rgba(255, 255, 255, 1);
}

/* 开关卡片底部样式 - 覆盖父类右边距 */
.card-base__bottom--switch {
  padding-right: 10px;
}

/* 开关卡片特定样式（下半部分） */
.switch-card__left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.switch-card__bottom-icon {
  flex-shrink: 0;
  color: var(--switch-card-bottom-icon-color);
}

.switch-card__bottom-title {
  height: 21px;
  color: var(--switch-card-bottom-title-color);
  font-family: SourceHanSansSC-Normal;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;;
  padding-left: 6px;
}

.switch-card__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.switch-card__switch {
  cursor: pointer;
  user-select: none;
}

/************************************* 滑块卡片样式 **************************************/
/* Slider 卡片基础样式，比switch-card的宽度要大 */
.card-base--slider {
  width: 280px;
}

.slider-card__left-section {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.slider-card__bottom-title {
  color: var(--slider-card-bottom-title-color);
  font-family: SourceHanSansSC-Normal;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  align-items: center;
}

.slider-card__slider-wrapper {
  display: flex;
  align-items: center;
  flex-shrink: 1;
}

.slider-card__icon {
  color: var(--slider-card-icon-color);
}

/* 滑块容器 - 需要设置 position: relative 以便 thumb 相对于它定位 */
.slider-card__slider-container {
  position: relative;
}

.slider-card__slider-wrapper > :not(:last-child) {
  margin-right: 6px;
}

/* 自定义滑块轨道 */
.slider-card__slider-track {
  width: 116px;
  height: 2px;
  background: var(--slider-card-track-bg);
  position: relative;
  border-radius: 1px;
}

/* 自定义滑块进度 */
.slider-card__slider-progress {
  height: 100%;
  background: linear-gradient(
    90deg,
    #007AFF 0%,
    #007AFF 100%
  );
  background-image: repeating-linear-gradient(
    90deg,
    #007AFF 0px,
    #007AFF 2px,
    transparent 2px,
    transparent 4px
  );
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: 0 0;
  border-radius: 1px;
  position: absolute;
  top: 0;
  left: 0;
}

/* 自定义滑块滑块 */
.slider-card__slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  display: flex;
}

.slider-card__slider-input:disabled {
  /* cursor: not-allowed;  鼠标禁用
  opacity: 0.5; */
}

/************************************* 字体滑块卡片样式 **************************************/
/* 字体滑块卡片基础样式 - 调整宽高 */
.card-base--slider.slider-card--font-size {
  width: 320px;
  height: 115px;
}

/* 字体滑块卡片底部容器 - 垂直布局 */
.card-base--slider.slider-card--font-size .card-base__bottom {
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 20px;
}

/* 第一行：左边文字和导轨线垂直居中对齐 */
.slider-card__font-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 21px;
}

/* 字体滑块容器 */
.slider-card__slider--font-container {
  position: relative;
  width: 200px;
  height: 2px;
}

/* 自定义滑块轨道 */
.slider-card__slider--font-track {
  width: 200px;
  height: 2px;

  background: var(--slider-card-track-bg);
  position: relative;
  border-radius: 1px;
}

/* 自定义滑块滑块 */
.slider-card__slider--font-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 10;
  display: flex;
}

/* 第二行：刻度线和数字 */
.slider-card__font-ticks-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  margin-top: 4px;
}

/* 刻度线容器 */
.slider-card__ticks {
  position: relative;
  width: 200px;
  height: 6px;
}

/* 单个刻度线 */
.slider-card__tick {
  position: absolute;
  top: 0;
  width: 2px;
  height: 6px;
  background: #999;
  transform: translateX(-50%);
}

/* 刻度文字容器 */
.slider-card__labels {
  position: relative;
  width: 200px;
  height: 20px;
  padding-top: 2px;
}

/* 单个刻度文字 */
.slider-card__label {
  position: absolute;
  transform: translateX(-50%);
  font-size: 12px;
  color: #666;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

/* 激活状态的刻度文字 */
.slider-card__label.active {
  /* width: 17px;
  height: 16px; */
  box-shadow: 0 -1px 0 0 inset rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  background-color: rgba(31, 110, 231, 1);
  color: #fff;
}

/* Qt5 兼容降级：移除 inset */
html[data-legacy-css] .slider-card__label.active {
  box-shadow: none;
}

/************************************** 日程卡片样式 **************************************/
/* Schedule 卡片基础样式，使用 CardBase 组件 */
.card-base--schedule {
  width: 360px;
  height: 115px;
}

/* 下半部分：会议信息 - schedule 特定样式 */
.card-base__bottom--schedule {
  padding: 20px 10px 10px 10px;
  flex-direction: column;
  align-items: flex-start;
}

/* Qt5 兼容降级：移除 inset、0.5px → 1px、去重 */
html.dark[data-legacy-css] {
  --slider-card-thumb-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 6px 0 rgba(31, 31, 31, 0.4);
}

/* 日期显示 */
.schedule-card__date-display {
  height: 14px;
  color: var(--schedule-card-date-display-color);
  font-family: SourceHanSansSC-Normal;
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  line-height: 14px;
  margin-bottom: 2px;
}

/* 会议内容红色渐变文本框 */
.schedule-card__meeting-content {
  width: 330px;
  height: 40px;
  border-radius: 2px;
  background: var(--schedule-card-meeting-content-bg);
  display: flex;
  align-items: center;
  padding-right: 12px;
  box-sizing: border-box;
}

/* 红色竖向线条 */
.schedule-card__meeting-bar {
  width: 3px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--schedule-card-meeting-bar-bg);
  margin-right: 10px;
  flex-shrink: 0;
}

.schedule-card__meeting-text {
  width: 320px;
  color: var(--schedule-card-meeting-text-color);
  font-family: SourceHanSansSC-Normal;
  font-size: 10px;
  font-weight: 400;
  font-style: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 14px;
  max-height: 28px;
}


/************************************** 应用卡片样式 **************************************/
/* AppStoreCard 基于 CardBase，只定义特定样式 */
.card-base--app-store {
  width: 250px;
  /* 高度动态伸缩，根据应用数量自动调整 */
  height: fit-content;
  min-height: 110px;
  padding-bottom: 10px;
}

/* 上半部分：应用商店 */
.app-store-card__top {
  display: flex;
  align-items: center;
  padding: 6px 10px;
}

/* 下半部分 - AppStoreCard 特定样式 */
.card-base__bottom--app-store {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.app-store-card__store-icon {
  width: 16px;
  height: 16px;
  color: var(--app-store-card-store-icon-color);
  flex-shrink: 0;
}

.app-store-card__store-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--app-store-card-store-text-color);
  padding-left: 8px;
}

/* 下半部分：应用列表 */
.app-store-card__bottom {
  display: flex;
  flex-direction: column;
  padding: 0px 10px;
}

/* 单个应用项 */
.app-store-card__app-item {
  display: flex;
  align-items: center;
  width: 230px;
  height: 71px;
  border-radius: 8px;
  padding: 8px;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
  flex-direction: column;
}

.app-store-card__app-item--hovered {
  background-color: var(--app-store-card-app-item-hover-bg);
}

.app-store-card__app-item:hover {
  background-color: var(--app-store-card-app-item-hover-bg);
}

.app-store-card__app-header {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1px;
}

/* 应用图标 */
.app-store-card__app-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-right: 8px;
}

.app-store-card__app-icon.has-url {
  background: transparent;
}

.app-store-card__app-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

/* 应用信息 */
.app-store-card__app-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  padding-left: 32px;
}

.app-store-card__app-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--app-store-card-app-name-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-store-card__app-desc {
  color: var(--app-store-card-app-desc-color);
  font-family: SourceHanSansSC-Normal;
  font-size: 8px;
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-store-card__app-stats {
  display: flex;
  align-items: center;
}

.app-store-card__downloads {
  color: var(--app-store-card-downloads-color);
  font-family: SourceHanSansSC-Normal;
  font-size: 8px;
  font-weight: 400;
  font-style: normal;
  margin-right: 6px;
}

.app-store-card__rating {
  display: flex;
  align-items: center;
  font-size: 8px;
}

/* 星星样式 */
.app-store-card__star {
  color: var(--app-store-card-star-color);
  font-size: 8px;
}

/* 激活状态的星星（黄色） */
.app-store-card__star--active {
  color: var(--app-store-card-star-active-bg);
}

/* 评分数字 */
.app-store-card__rating-number {
  margin-left: 6px;
  height: 11px;
  color: var(--app-store-card-rating-number-color);
  font-family: SourceHanSansSC-Normal;
  font-size: 8px;
  font-weight: 400;
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
