/*
 * react-calendar-heatmap styles
 *
 * All of the styles in this file are optional and configurable!
 * The github and gitlab color scales are provided for reference.
 */

.react-calendar-heatmap text {
  font-size: 10px;
  fill: #aaa;
}

.react-calendar-heatmap .react-calendar-heatmap-small-text {
  font-size: 5px;
}

.react-calendar-heatmap rect:hover {
  stroke: #555;
  stroke-width: 1px;
}

/*
 * Default color scale
 */

.react-calendar-heatmap .color-empty {
  fill: #eeeeee;
}

.react-calendar-heatmap .color-filled {
  fill: #8cc665;
}

/*
 * Github color scale
 */

.react-calendar-heatmap .color-github-0 {
  fill: #eeeeee;
}
.react-calendar-heatmap .color-github-1 {
  fill: #d6e685;
}
.react-calendar-heatmap .color-github-2 {
  fill: #8cc665;
}
.react-calendar-heatmap .color-github-3 {
  fill: #44a340;
}
.react-calendar-heatmap .color-github-4 {
  fill: #1e6823;
}

/*
 * Gitlab color scale
 */

.react-calendar-heatmap .color-gitlab-0 {
  fill: #ededed;
}
.react-calendar-heatmap .color-gitlab-1 {
  fill: #acd5f2;
}
.react-calendar-heatmap .color-gitlab-2 {
  fill: #7fa8d1;
}
.react-calendar-heatmap .color-gitlab-3 {
  fill: #49729b;
}
.react-calendar-heatmap .color-gitlab-4 {
  fill: #254e77;
}

:root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{left:0;opacity:0;pointer-events:none;position:absolute;top:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{background:inherit;position:absolute;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay) ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay) ease-in}.styles-module_tooltip__mnnfp{border-radius:3px;font-size:90%;padding:8px 16px;width:max-content}.styles-module_arrow__K0L3T{height:var(--rt-arrow-size);width:var(--rt-arrow-size)}[class*=react-tooltip__place-top]>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*=react-tooltip__place-right]>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*=react-tooltip__place-bottom]>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*=react-tooltip__place-left]>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}
/* 页面容器滚动条样式 */
.page-container-wrapper {
  /* WebKit 浏览器滚动条样式 */
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 #f5f5f5;
}

.page-container-wrapper::-webkit-scrollbar {
  width: 8px;
}

.page-container-wrapper::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.page-container-wrapper::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.page-container-wrapper::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

/* 暗色主题滚动条 */
[data-theme="dark"] .page-container-wrapper {
  scrollbar-color: #434343 #1f1f1f;
}

[data-theme="dark"] .page-container-wrapper::-webkit-scrollbar-track {
  background: #1f1f1f;
}

[data-theme="dark"] .page-container-wrapper::-webkit-scrollbar-thumb {
  background: #434343;
}

[data-theme="dark"] .page-container-wrapper::-webkit-scrollbar-thumb:hover {
  background: #595959;
}

/* 确保内容区域的滚动条也有样式 */
.ant-card-body {
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 transparent;
}

.ant-card-body::-webkit-scrollbar {
  width: 6px;
}

.ant-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.ant-card-body::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}

.ant-card-body::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

/* 折叠面板内容滚动条 */
.ant-collapse-content-box {
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 transparent;
}

.ant-collapse-content-box::-webkit-scrollbar {
  width: 6px;
}

.ant-collapse-content-box::-webkit-scrollbar-track {
  background: transparent;
}

.ant-collapse-content-box::-webkit-scrollbar-thumb {
  background: #d4d4d4;
  border-radius: 3px;
}

.ant-collapse-content-box::-webkit-scrollbar-thumb:hover {
  background: #bfbfbf;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .page-container-wrapper::-webkit-scrollbar {
    width: 6px;
  }
}

@media (max-width: 480px) {
  .page-container-wrapper::-webkit-scrollbar {
    width: 4px;
  }
}

/* 右下角浮动下载按钮样式 */
.download-floating-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  animation: slideInUp 0.3s ease-out;
}

.download-floating-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 16px;
  width: 280px;
  border: 1px solid #f0f0f0;
  position: relative;
  transition: all 0.2s ease;
}

.download-floating-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* 暗色主题适配 */
[data-theme="dark"] .download-floating-card {
  background: #1f1f1f;
  border-color: #434343;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .download-floating-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.download-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
}

.download-close-btn:hover {
  color: #666;
  background: #f5f5f5;
}

[data-theme="dark"] .download-close-btn:hover {
  color: #ccc;
  background: #333;
}

.download-content {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-right: 24px;
}

.download-icon {
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-text {
  flex: 1;
}

.download-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f1f1f;
  margin-bottom: 2px;
}

[data-theme="dark"] .download-title {
  color: #fff;
}

.download-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

[data-theme="dark"] .download-desc {
  color: #999;
}

.download-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.download-primary-btn {
  flex: 1;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
}

/* 动画效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .download-floating-container {
    bottom: 16px;
    right: 16px;
  }
  
  .download-floating-card {
    width: 260px;
    padding: 14px;
  }
  
  .download-content {
    margin-bottom: 10px;
  }
  
  .download-icon {
    font-size: 20px;
    margin-right: 10px;
  }
  
  .download-title {
    font-size: 13px;
  }
  
  .download-desc {
    font-size: 11px;
  }
  
  .download-primary-btn {
    height: 28px;
    font-size: 12px;
  }
}

/* 小屏幕隐藏 */
@media (max-width: 480px) {
  .download-floating-container {
    display: none;
  }
}

/* 确保不遮挡其他浮动元素 */
.download-floating-container {
  pointer-events: auto;
}

.download-floating-card {
  backdrop-filter: blur(8px);
}

/* 悬停效果优化 */
.download-floating-card .ant-btn {
  transition: all 0.2s ease;
}

.download-floating-card .ant-btn:hover {
  transform: translateY(-1px);
}

/* Dropdown 样式调整 */
.download-floating-card .ant-dropdown-trigger {
  color: #666;
}

[data-theme="dark"] .download-floating-card .ant-dropdown-trigger {
  color: #999;
}

.download-floating-card .ant-dropdown-trigger:hover {
  color: #1890ff;
}

/* 确保在所有页面都可见 */
.download-floating-container {
  position: fixed !important;
  z-index: 1050 !important;
}

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f5f5f5;
  font-size: var(--font-size, 14px);
  line-height: var(--line-height, 1.6);
}

#root {
  height: 100%;
  min-height: 100vh;
}

/* 网页版特有样式 */
.web-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 移除桌面版的拖拽区域样式 */
.app-container {
  height: 100vh;
  background: #f5f5f5;
}

/* 网页版头部样式 */
.web-header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.web-header .logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #1890ff;
}

.web-header .logo svg {
  margin-right: 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .web-header {
    padding: 0 16px;
    height: 56px;
  }

  .web-header .logo {
    font-size: 16px;
  }

  /* 移动端隐藏部分按钮，只保留核心功能 */
  .web-header .ant-space > .ant-btn:not(.mobile-keep) {
    display: none;
  }

  /* 移动端显示汉堡菜单 */
  .mobile-menu-trigger {
    display: block !important;
  }

  /* 移动端内容区域调整 */
  .web-content {
    padding-bottom: 60px; /* 为底部导航栏留出空间 */
  }

  /* 移动端底部导航栏 */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background: #141414;
    border-top-color: #434343;
  }

  .mobile-bottom-nav .ant-btn {
    border: none;
    background: transparent;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    padding: 4px 8px;
    min-width: 60px;
  }

  .mobile-bottom-nav .ant-btn .anticon {
    margin-bottom: 2px;
  }
}

@media (max-width: 480px) {
  .web-header {
    height: 50px;
    padding: 0 12px;
  }

  .web-header .logo {
    font-size: 14px;
  }

  .web-header .logo img {
    width: 20px !important;
    height: 20px !important;
  }

  /* 超小屏幕优化 */
  .mobile-bottom-nav {
    height: 56px;
  }

  .mobile-bottom-nav .ant-btn {
    height: 44px;
    font-size: 9px;
    min-width: 50px;
    padding: 2px 4px;
  }

  /* 内容区域调整 */
  .web-content {
    padding-bottom: 56px;
  }
}

/* 桌面端隐藏移动端元素 */
@media (min-width: 769px) {
  .mobile-menu-trigger {
    display: none !important;
  }

  .mobile-bottom-nav {
    display: none !important;
  }

  .web-content {
    padding-bottom: 0 !important;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 暗色模式滚动条 */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #2f2f2f;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #555;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* 加载状态 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

[data-theme="dark"] .loading-overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* 网页版特有的布局调整 */
.web-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.web-content {
  flex: 1;
  overflow: hidden;
}

/* 移除桌面版的窗口控制按钮样式 */
.window-controls {
  display: none !important;
}

/* 网页版的全屏样式 */
.web-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #fff;
}

[data-theme="dark"] .web-fullscreen {
  background: #141414;
}

/* 移动端组件优化 */
@media (max-width: 768px) {
  /* 卡片间距优化 */
  .ant-card {
    margin-bottom: 12px;
  }

  .ant-card-body {
    padding: 16px;
  }

  /* 表单优化 */
  .ant-form-item {
    margin-bottom: 16px;
  }

  /* 按钮组优化 */
  .ant-space {
    flex-wrap: wrap;
  }

  /* 模态框优化 */
  .ant-modal {
    margin: 16px;
    max-width: calc(100vw - 32px);
  }

  .ant-modal-content {
    border-radius: 8px;
  }

  /* 抽屉优化 */
  .ant-drawer-content {
    border-radius: 16px 16px 0 0;
  }

  /* 列表优化 */
  .ant-list-item {
    padding: 12px 16px;
  }

  /* 标签优化 */
  .ant-tag {
    margin-bottom: 4px;
  }

  /* 输入框优化 */
  .ant-input, .ant-select-selector {
    height: 44px;
    font-size: 16px; /* 防止iOS缩放 */
  }

  .ant-btn {
    height: 44px;
    font-size: 14px;
  }

  .ant-btn-sm {
    height: 36px;
    font-size: 12px;
  }

  /* 编辑器优化 */
  .editor-container {
    height: calc(100vh - 120px) !important;
  }

  /* 侧边栏优化 */
  .ant-layout-sider {
    position: fixed !important;
    left: -100% !important;
    transition: left 0.3s ease !important;
    z-index: 999 !important;
    height: 100vh !important;
  }

  .ant-layout-sider.mobile-sider-open {
    left: 0 !important;
  }

  /* 内容区域适配 */
  .ant-layout-content {
    margin-left: 0 !important;
    padding: 16px 12px !important;
  }

  /* 头像优化 */
  .ant-avatar {
    width: 32px !important;
    height: 32px !important;
  }

  /* 下拉菜单优化 */
  .ant-dropdown-menu {
    min-width: 160px;
  }

  .ant-dropdown-menu-item {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .ant-card-body {
    padding: 12px;
  }

  .ant-modal {
    margin: 8px;
    max-width: calc(100vw - 16px);
  }

  .ant-list-item {
    padding: 8px 12px;
  }

  .ant-layout-content {
    padding: 12px 8px !important;
  }

  /* 文字大小调整 */
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }

  /* 编辑器在小屏幕上的优化 */
  .editor-container {
    height: calc(100vh - 110px) !important;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  /* 增加可点击区域 */
  .ant-btn, .ant-list-item, .ant-card {
    min-height: 44px;
  }

  /* 优化滚动 */
  .ant-layout-content, .ant-modal-body {
    -webkit-overflow-scrolling: touch;
  }

  /* 禁用hover效果 */
  .ant-btn:hover, .ant-list-item:hover {
    background-color: inherit;
  }
}

/* 热力图样式 */
.activity-heatmap-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

[data-theme="dark"] .activity-heatmap-card {
  background: #1f1f1f;
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.heatmap-container {
  margin-bottom: 16px;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.legend-label {
  font-size: 12px;
}

.legend-squares {
  display: flex;
  gap: 2px;
}

.legend-square {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid #e1e4e8;
}

[data-theme="dark"] .legend-square {
  border-color: #30363d;
}

/* GitHub风格的热力图颜色 */
.color-empty {
  background-color: #ebedf0;
}

.color-github-1 {
  background-color: #9be9a8;
}

.color-github-2 {
  background-color: #40c463;
}

.color-github-3 {
  background-color: #30a14e;
}

.color-github-4 {
  background-color: #216e39;
}

/* 暗色模式下的热力图颜色 */
[data-theme="dark"] .color-empty {
  background-color: #161b22;
}

[data-theme="dark"] .color-github-1 {
  background-color: #0e4429;
}

[data-theme="dark"] .color-github-2 {
  background-color: #006d32;
}

[data-theme="dark"] .color-github-3 {
  background-color: #26a641;
}

[data-theme="dark"] .color-github-4 {
  background-color: #39d353;
}

/* 移动端热力图优化 */
@media (max-width: 768px) {
  .heatmap-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .year-selector {
    align-self: flex-end;
  }

  .heatmap-legend {
    flex-wrap: wrap;
    gap: 6px;
  }

  .legend-label {
    font-size: 11px;
  }

  .legend-square {
    width: 8px;
    height: 8px;
  }
}

/* 网页版全局样式 */
html, body {
  transition: background-color 0.3s ease, color 0.3s ease;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: var(--font-size, 14px);
  line-height: var(--line-height, 1.6);
}

* {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

/* 网页版特有的根容器样式 */
#root {
  height: 100vh;
  overflow: hidden;
}

/* 一键排版动画 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}

/* 热力图样式 */
.react-calendar-heatmap {
  font-size: 10px;
  line-height: 1;
}

.react-calendar-heatmap .react-calendar-heatmap-weekday-label {
  font-size: 9px;
  font-weight: 400;
  fill: #586069;
}

.react-calendar-heatmap .react-calendar-heatmap-month-label {
  font-size: 10px;
  fill: #586069;
}

.react-calendar-heatmap rect {
  stroke: #fff;
  stroke-width: 1px;
}

.react-calendar-heatmap rect.color-empty {
  fill: #ebedf0;
}

.react-calendar-heatmap rect.color-github-1 {
  fill: #9be9a8;
}

.react-calendar-heatmap rect.color-github-2 {
  fill: #40c463;
}

.react-calendar-heatmap rect.color-github-3 {
  fill: #30a14e;
}

.react-calendar-heatmap rect.color-github-4 {
  fill: #216e39;
}

/* 夜间模式热力图 */
[data-theme="dark"] .react-calendar-heatmap rect {
  stroke: #262626;
}

[data-theme="dark"] .react-calendar-heatmap rect.color-empty {
  fill: #161b22;
}

[data-theme="dark"] .react-calendar-heatmap .react-calendar-heatmap-weekday-label,
[data-theme="dark"] .react-calendar-heatmap .react-calendar-heatmap-month-label {
  fill: #8b949e;
}

/* 网页版布局样式 */
.web-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.web-header {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  position: relative;
}

.web-content {
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 64px);
}

/* 移除桌面版的窗口控制按钮 */
.window-controls {
  display: none !important;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 夜间模式滚动条 */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #2f2f2f;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #555;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* Dashboard 样式 */
.dashboard-container {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px;
  background: #f5f5f5;
}

.dashboard-content {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 24px;
}

/* 夜间模式下的dashboard */
[data-theme="dark"] .dashboard-container {
  background: #0f0f0f;
}

/* 卡片样式 */
.ant-card {
  margin-bottom: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: visible;
  transition: all 0.3s ease;
}

.ant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ant-card-body {
  padding: 16px;
  overflow: visible;
}

/* 夜间模式卡片 */
[data-theme="dark"] .ant-card {
  background: #1f1f1f;
  border-color: #434343;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .ant-card-body {
  background: #1f1f1f;
}

[data-theme="dark"] .ant-card-head {
  background: #1f1f1f;
  border-color: #434343;
}

/* 编辑器容器样式 */
.editor-container {
  padding: 16px;
  background: #f5f5f5;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

[data-theme="dark"] .editor-container {
  background: #0f0f0f;
}

/* 设置页面样式 */
.settings-container {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f5f5;
  padding: 24px;
  padding-bottom: 60px;
}

.settings-content {
  max-width: 800px;
  margin: 0 auto;
  overflow: visible;
}

[data-theme="dark"] .settings-container {
  background: #0f0f0f;
}

/* 夜间模式通用样式 */
[data-theme="dark"] {
  background-color: #141414;
  color: #fff;
}

[data-theme="dark"] .ant-layout {
  background: #141414;
}

[data-theme="dark"] .ant-layout-content {
  background: #141414;
}

[data-theme="dark"] .web-header {
  background: #141414;
  border-color: #434343;
}

[data-theme="dark"] .ant-input {
  background: #1f1f1f;
  border-color: #434343;
  color: #fff;
}

[data-theme="dark"] .ant-input:focus,
[data-theme="dark"] .ant-input-focused {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

[data-theme="dark"] .ant-select-selector {
  background: #1f1f1f !important;
  border-color: #434343 !important;
  color: #fff !important;
}

[data-theme="dark"] .ant-btn {
  border-color: #434343;
}

[data-theme="dark"] .ant-btn:not(.ant-btn-primary) {
  background: #1f1f1f;
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .dashboard-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .web-header {
    padding: 0 16px;
  }
  
  .dashboard-container {
    padding: 12px;
  }
  
  .settings-container {
    padding: 16px;
  }
  
  .ant-card-body {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .web-header {
    height: 56px;
    padding: 0 12px;
  }
  
  .web-content {
    height: calc(100vh - 56px);
  }
  
  .dashboard-container {
    padding: 8px;
  }
  
  .settings-container {
    padding: 12px;
  }
  
  .ant-card {
    margin-bottom: 8px;
  }
  
  .ant-card-body {
    padding: 8px;
  }
}

/* 加载状态 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay > * {
  text-align: center;
}

[data-theme="dark"] .loading-overlay {
  background: rgba(0, 0, 0, 0.8);
}

/* 网页版特有的全屏样式 */
.web-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #fff;
}

[data-theme="dark"] .web-fullscreen {
  background: #141414;
}

/* 网页版特有的通知样式 */
.web-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  max-width: 300px;
  z-index: 1001;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 网页版离线指示器 */
.offline-indicator {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ff4d4f;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1000;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* 网页版增强样式 */

/* 热力图增强样式 */
.activity-heatmap-card {
  padding: 16px;
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.year-selector {
  display: flex;
  align-items: center;
}

.heatmap-container {
  margin-bottom: 16px;
  overflow-x: auto;
  padding: 8px 0;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.legend-squares {
  display: flex;
  gap: 2px;
}

.legend-square {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-label {
  font-size: 12px;
}

.react-calendar-heatmap {
  font-size: 12px;
  user-select: none;
}

.react-calendar-heatmap .react-calendar-heatmap-month-label {
  font-size: 12px;
  fill: #666;
  font-weight: 500;
}

.react-calendar-heatmap .react-calendar-heatmap-weekday-label {
  font-size: 10px;
  fill: #999;
}

.react-calendar-heatmap rect {
  stroke: #fff;
  stroke-width: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.react-calendar-heatmap rect:hover {
  stroke-width: 2px;
  stroke: #1890ff;
}

.react-calendar-heatmap rect.color-empty {
  fill: #ebedf0;
}

.react-calendar-heatmap rect.color-empty-selected {
  fill: #d1ecf1;
  stroke: #1890ff;
  stroke-width: 2px;
}

.react-calendar-heatmap rect.color-github-1 {
  fill: #9be9a8;
}

.react-calendar-heatmap rect.color-github-2 {
  fill: #40c463;
}

.react-calendar-heatmap rect.color-github-3 {
  fill: #30a14e;
}

.react-calendar-heatmap rect.color-github-4 {
  fill: #216e39;
}

.react-calendar-heatmap rect.color-github-selected {
  stroke: #1890ff !important;
  stroke-width: 3px !important;
}

/* 深色模式适配 */
[data-theme='dark'] .react-calendar-heatmap rect.color-empty {
  fill: #2d3748;
}

[data-theme='dark'] .react-calendar-heatmap .react-calendar-heatmap-month-label {
  fill: #a0aec0;
}

[data-theme='dark'] .react-calendar-heatmap .react-calendar-heatmap-weekday-label {
  fill: #718096;
}

/* 夜间模式热力图 */
[data-theme="dark"] .react-calendar-heatmap rect {
  stroke: #262626;
}

[data-theme="dark"] .react-calendar-heatmap rect:hover {
  stroke: #1890ff;
}

[data-theme="dark"] .react-calendar-heatmap rect.color-empty {
  fill: #161b22;
}

[data-theme="dark"] .react-calendar-heatmap rect.color-github-1 {
  fill: #0e4429;
}

[data-theme="dark"] .react-calendar-heatmap rect.color-github-2 {
  fill: #006d32;
}

[data-theme="dark"] .react-calendar-heatmap rect.color-github-3 {
  fill: #26a641;
}

[data-theme="dark"] .react-calendar-heatmap rect.color-github-4 {
  fill: #39d353;
}

[data-theme="dark"] .react-calendar-heatmap .react-calendar-heatmap-month-label,
[data-theme="dark"] .react-calendar-heatmap .react-calendar-heatmap-weekday-label {
  fill: #8b949e;
}

/* 日历容器样式 */
.calendar-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 16px 0;
  min-width: 800px;
  background: transparent;
}

/* 网页版特有的动画效果 */
.ant-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .ant-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 按钮增强效果 */
.ant-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ant-btn:hover {
  transform: translateY(-1px);
}

.ant-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 输入框增强效果 */
.ant-input:focus,
.ant-input-focused {
  transform: scale(1.02);
  transition: all 0.3s ease;
}

/* 标签增强效果 */
.ant-tag {
  transition: all 0.3s ease;
  cursor: pointer;
}

.ant-tag:hover {
  transform: scale(1.05);
}

/* 网页版特有的快捷键提示 */
.shortcut-hint {
  font-size: 11px;
  color: #8c8c8c;
  margin-left: 4px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.shortcut-hint:hover {
  opacity: 1;
}

[data-theme="dark"] .shortcut-hint {
  color: #666;
}

/* 自动保存指示器 */
.auto-save-indicator {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #52c41a;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  z-index: 1000;
  animation: slideInFadeOut 3s ease;
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

@keyframes slideInFadeOut {
  0% { 
    opacity: 0; 
    transform: translateX(100%); 
  }
  15% { 
    opacity: 1; 
    transform: translateX(0); 
  }
  85% { 
    opacity: 1; 
    transform: translateX(0); 
  }
  100% { 
    opacity: 0; 
    transform: translateX(100%); 
  }
}

/* 网页版特有的加载动画 */
.web-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
}

.web-loading > * {
  text-align: center;
}

.web-loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1890ff;
  border-radius: 50%;
  animation: webSpin 1s linear infinite;
  margin: 0 auto;
}

@keyframes webSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

[data-theme="dark"] .web-loading-spinner {
  border-color: #434343;
  border-top-color: #1890ff;
}

/* 网页版特有的错误状态 */
.web-error {
  text-align: center;
  padding: 40px 20px;
  color: #ff4d4f;
}

.web-error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.web-error-message {
  font-size: 16px;
  margin-bottom: 16px;
}

.web-error-action {
  margin-top: 16px;
}

/* 网页版特有的空状态 */
.web-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8c8c8c;
}

.web-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.web-empty-message {
  font-size: 16px;
  margin-bottom: 24px;
}

[data-theme="dark"] .web-empty {
  color: #666;
}

/* 网页版特有的搜索高亮 */
.search-highlight {
  background: #fff566;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 500;
}

[data-theme="dark"] .search-highlight {
  background: #d4b106;
  color: #000;
}

/* 网页版特有的拖拽样式 */
.drag-over {
  border: 2px dashed #1890ff;
  background: rgba(24, 144, 255, 0.05);
  transition: all 0.3s ease;
}

[data-theme="dark"] .drag-over {
  background: rgba(24, 144, 255, 0.1);
}

/* 网页版特有的选择状态 */
.selectable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.selectable:hover {
  background: rgba(24, 144, 255, 0.05);
}

.selectable.selected {
  background: rgba(24, 144, 255, 0.1);
  border-color: #1890ff;
}

[data-theme="dark"] .selectable:hover {
  background: rgba(24, 144, 255, 0.1);
}

[data-theme="dark"] .selectable.selected {
  background: rgba(24, 144, 255, 0.15);
}

/* 网页版特有的工具提示 */
.web-tooltip {
  font-size: 12px;
  max-width: 200px;
}

/* 网页版特有的进度指示器 */
.web-progress {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  height: 2px;
  background: #1890ff;
  z-index: 1001;
  animation: progressSlide 2s ease-in-out infinite;
}

@keyframes progressSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* 网页版特有的浮动操作按钮 */
.web-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1890ff;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
}

.web-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4);
}

.web-fab:active {
  transform: scale(0.95);
}

/* 响应式增强 */
@media (max-width: 768px) {
  .calendar-container {
    min-width: 600px;
    padding: 12px 0;
  }
  
  .auto-save-indicator {
    top: 70px;
    right: 12px;
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .web-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .calendar-container {
    min-width: 400px;
    padding: 8px 0;
  }
  
  .react-calendar-heatmap {
    font-size: 10px;
  }
  
  .web-empty-icon {
    font-size: 48px;
  }
  
  .web-error-icon {
    font-size: 36px;
  }
}

/* 网页版编辑器修复样式 */

/* 确保所有编辑器文本在夜间模式下为白色 */
[data-theme="dark"] .w-md-editor,
[data-theme="dark"] .w-md-editor-text,
[data-theme="dark"] .w-md-editor-area,
[data-theme="dark"] .w-md-editor-input,
[data-theme="dark"] .w-md-editor-text-pre,
[data-theme="dark"] .w-md-editor-text-pre > code,
[data-theme="dark"] .w-md-editor-text-input {
  color: #ffffff !important;
}

[data-color-mode="dark"] .w-md-editor,
[data-color-mode="dark"] .w-md-editor-text,
[data-color-mode="dark"] .w-md-editor-area,
[data-color-mode="dark"] .w-md-editor-input,
[data-color-mode="dark"] .w-md-editor-text-pre,
[data-color-mode="dark"] .w-md-editor-text-pre > code,
[data-color-mode="dark"] .w-md-editor-text-input {
  color: #ffffff !important;
}

/* 强制夜间模式下编辑器文本颜色 */
.w-md-editor[data-color-mode="dark"] .w-md-editor-text-input {
  color: #ffffff !important;
  caret-color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 确保textarea元素在夜间模式下也是白色 */
[data-theme="dark"] textarea.w-md-editor-text-input,
[data-color-mode="dark"] textarea.w-md-editor-text-input {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* 修复特定浏览器兼容性问题 */
@media all {
  [data-color-mode="dark"] .w-md-editor-text-input {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
  }
}

/* 修复编辑器文本颜色 - 高优先级 */
.w-md-editor-text-pre > code,
.w-md-editor-text-input {
  color: inherit !important;
}

[data-color-mode="dark"] .w-md-editor-text-pre > code,
[data-color-mode="dark"] .w-md-editor-text-input {
  color: #ffffff !important;
}

/* 编辑器工具栏按钮文本颜色 */
[data-color-mode="dark"] .w-md-editor-toolbar button {
  color: #ffffff !important;
}

/* 确保编辑器内所有文本元素在夜间模式下为白色 */
[data-color-mode="dark"] .w-md-editor *:not(pre):not(code) {
  color: #ffffff !important;
}

/* 修复预览模式样式 */
.w-md-editor-preview {
  padding: 16px !important;
  overflow-y: auto !important;
  height: 100% !important;
  min-height: calc(100vh - 240px) !important;
}

/* 网页版特有：修复双滚动条问题 */
.w-md-editor {
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.w-md-editor-text {
  flex: 1 !important;
  overflow: hidden !important;
}

.w-md-editor-text-area {
  height: 100% !important;
  overflow: hidden !important;
}

.w-md-editor-text-input {
  height: 100% !important;
  resize: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* 网页版特有：编辑器容器适配 */
.editor-wrapper {
  height: calc(100vh - 200px);
  min-height: 400px;
}

.editor-wrapper .w-md-editor {
  height: 100% !important;
}

/* 网页版特有：工具栏样式优化 */
.w-md-editor-toolbar {
  border-bottom: 1px solid #e8e8e8 !important;
  background: #fafafa !important;
  padding: 8px 12px !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .w-md-editor-toolbar {
  border-color: #434343 !important;
  background: #1f1f1f !important;
}

.w-md-editor-toolbar button {
  margin: 0 2px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease !important;
}

.w-md-editor-toolbar button:hover {
  background: rgba(24, 144, 255, 0.1) !important;
}

/* 网页版特有：预览区域样式 */
.w-md-editor-preview {
  background: #fff !important;
  border-left: 1px solid #e8e8e8 !important;
}

[data-theme="dark"] .w-md-editor-preview {
  background: #1f1f1f !important;
  border-color: #434343 !important;
  color: #fff !important;
}

/* 网页版特有：预览内容样式 */
.w-md-editor-preview h1,
.w-md-editor-preview h2,
.w-md-editor-preview h3,
.w-md-editor-preview h4,
.w-md-editor-preview h5,
.w-md-editor-preview h6 {
  margin-top: 24px !important;
  margin-bottom: 16px !important;
  font-weight: 600 !important;
}

.w-md-editor-preview p {
  margin-bottom: 16px !important;
  line-height: 1.6 !important;
}

.w-md-editor-preview code {

/* 代码行号样式（react-syntax-highlighter） */
pre > code .linenumber, .linenumber {
  opacity: 0.6;
  user-select: none;
}
  background: #f6f8fa !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
  font-size: 0.9em !important;
}

[data-theme="dark"] .w-md-editor-preview code {
  background: #2d2d2d !important;
  color: #fff !important;
}

.w-md-editor-preview pre {
  background: #f6f8fa !important;
  padding: 16px !important;
  border-radius: 6px !important;
  overflow-x: auto !important;
  margin: 16px 0 !important;
}

[data-theme="dark"] .w-md-editor-preview pre {
  background: #2d2d2d !important;
}

.w-md-editor-preview blockquote {
  border-left: 4px solid #dfe2e5 !important;
  padding-left: 16px !important;
  margin: 16px 0 !important;
  color: #6a737d !important;
}

[data-theme="dark"] .w-md-editor-preview blockquote {
  border-color: #434343 !important;
  color: #8b949e !important;
}

.w-md-editor-preview table {
  border-collapse: collapse !important;
  width: 100% !important;
  margin: 16px 0 !important;
}

.w-md-editor-preview table th,
.w-md-editor-preview table td {
  border: 1px solid #dfe2e5 !important;
  padding: 8px 12px !important;
  text-align: left !important;
}

.w-md-editor-preview table th {
  background: #f6f8fa !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .w-md-editor-preview table th,
[data-theme="dark"] .w-md-editor-preview table td {
  border-color: #434343 !important;
}

[data-theme="dark"] .w-md-editor-preview table th {
  background: #2d2d2d !important;
  color: #fff !important;
}

[data-theme="dark"] .w-md-editor-preview table td {
  color: #fff !important;
}

/* 代码块容器与复制按钮（网页预览、详情） */
.code-block-wrapper {
  position: relative;
}

.code-block-wrapper .code-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .2s ease;
}

.code-block-wrapper .copy-button {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  cursor: pointer;
}

.code-block-wrapper .format-button {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.8);
  border-radius: 4px;
  cursor: pointer;
}

.code-block-wrapper .format-button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
}

[data-theme="dark"] .code-block-wrapper .copy-button,
[data-theme="dark"] .code-block-wrapper .format-button {
  background: rgba(0,0,0,0.4);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}

.code-block-wrapper:hover .code-actions {
  opacity: 1;
}

/* 行号样式兼容 react-syntax-highlighter */
.react-syntax-highlighter-line-number {
  opacity: 0.6;
  padding-right: 12px;
  min-width: 2em;
  display: inline-block;
  text-align: right;
  user-select: none;
}

/* 网页版特有：响应式编辑器 */
@media (max-width: 768px) {
  .editor-wrapper {
    height: calc(100vh - 160px);
  }
  
  .w-md-editor-toolbar {
    padding: 6px 8px !important;
  }
  
  .w-md-editor-toolbar button {
    padding: 3px 6px !important;
    font-size: 12px !important;
  }
  
  .w-md-editor-preview {
    padding: 12px !important;
  }
}

@media (max-width: 480px) {
  .editor-wrapper {
    height: calc(100vh - 120px);
  }
  
  .w-md-editor-toolbar {
    padding: 4px 6px !important;
    flex-wrap: wrap !important;
  }
  
  .w-md-editor-toolbar button {
    margin: 1px !important;
    padding: 2px 4px !important;
    font-size: 11px !important;
  }
  
  .w-md-editor-preview {
    padding: 8px !important;
  }
  
  .w-md-editor-preview h1,
  .w-md-editor-preview h2,
  .w-md-editor-preview h3 {
    font-size: 1.2em !important;
  }
}

/* 网页版特有：全屏编辑器 */
.editor-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background: #fff !important;
}

[data-theme="dark"] .editor-fullscreen {
  background: #141414 !important;
}

.editor-fullscreen .w-md-editor {
  height: 100vh !important;
  border: none !important;
}

/* 网页版特有：编辑器加载状态 */
.editor-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  width: 100%;
  background: #fafafa;
}

.editor-loading > * {
  text-align: center;
}

[data-theme="dark"] .editor-loading {
  background: #1f1f1f;
}

.editor-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #1890ff;
  border-radius: 50%;
  animation: editorSpin 1s linear infinite;
  margin: 0 auto;
}

@keyframes editorSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

[data-theme="dark"] .editor-loading-spinner {
  border-color: #434343;
  border-top-color: #1890ff;
}

/* 网页版个人中心样式 */
.user-dashboard {
  padding: 24px;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f5f5;
}

[data-theme="dark"] .user-dashboard {
  background: #0f0f0f;
}

/* 用户信息卡片 */
.user-info-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.user-info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.user-avatar {
  border: 3px solid #1890ff;
  box-shadow: 0 0 12px rgba(24, 144, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(24, 144, 255, 0.4);
}

.user-info {
  padding: 8px 0;
}

.user-info h3 {
  margin-bottom: 4px;
  font-weight: 600;
}

.user-info p {
  margin-bottom: 2px;
  color: #666;
}

[data-theme="dark"] .user-info p {
  color: #999;
}

/* 会员权益卡片 */
.vip-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.vip-info-section {
  padding: 8px 0;
}

.usage-section {
  padding: 8px 0;
}

.vip-action {
  padding: 8px 0;
  text-align: center;
}

/* VIP状态指示器 */
.vip-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.vip-status.active {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #8b4513;
}

.vip-status.inactive {
  background: #f5f5f5;
  color: #666;
}

[data-theme="dark"] .vip-status.inactive {
  background: #2d2d2d;
  color: #999;
}

/* 使用情况进度条 */
.usage-progress {
  margin-top: 8px;
}

.usage-progress .ant-progress-text {
  font-size: 12px;
}

/* 标签管理卡片 */
.tags-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tags-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tag-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.tag-list::-webkit-scrollbar {
  width: 6px;
}

.tag-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.tag-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.tag-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 标签项样式 */
.tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.tag-item:hover {
  background: rgba(24, 144, 255, 0.05);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: 4px;
}

.tag-item:last-child {
  border-bottom: none;
}

[data-theme="dark"] .tag-item {
  border-color: #434343;
}

[data-theme="dark"] .tag-item:hover {
  background: rgba(24, 144, 255, 0.1);
}

/* 迷你统计卡片 */
.mini-stat-card {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
}

.mini-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mini-stat-card .stat-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: #1890ff;
}

.mini-stat-card .stat-value {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #262626;
}

.mini-stat-card .stat-label {
  font-size: 12px;
  color: #8c8c8c;
}

[data-theme="dark"] .mini-stat-card {
  background: #1f1f1f;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .mini-stat-card .stat-value {
  color: #fff;
}

[data-theme="dark"] .mini-stat-card .stat-label {
  color: #999;
}

/* 操作按钮组 */
.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-buttons .ant-btn {
  flex: 1;
  min-width: 120px;
}

/* 网页版特有的头像上传区域 */
.avatar-upload-area {
  position: relative;
  display: inline-block;
}

.avatar-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.avatar-upload-area:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-upload-overlay .upload-icon {
  color: white;
  font-size: 20px;
}

/* 网页版特有的数据可视化 */
.data-visualization {
  margin-top: 16px;
}

.chart-container {
  height: 200px;
  padding: 16px 0;
}

/* 夜间模式适配 */
[data-theme="dark"] .user-info-card,
[data-theme="dark"] .vip-card,
[data-theme="dark"] .tags-card,
[data-theme="dark"] .mini-stat-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  background-color: #1f1f1f;
}

[data-theme="dark"] .tag-list::-webkit-scrollbar-track {
  background: #2d2d2d;
}

[data-theme="dark"] .tag-list::-webkit-scrollbar-thumb {
  background: #555;
}

[data-theme="dark"] .tag-list::-webkit-scrollbar-thumb:hover {
  background: #777;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .user-dashboard {
    padding: 16px;
  }
  
  .user-avatar {
    margin-bottom: 16px;
  }

  .tag-list {
    max-height: 200px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons .ant-btn {
    min-width: auto;
  }
  
  .chart-container {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .user-dashboard {
    padding: 8px;
  }
  
  .mini-stat-card {
    margin-bottom: 16px;
    padding: 12px;
  }
  
  .mini-stat-card .stat-icon {
    font-size: 20px;
  }
  
  .mini-stat-card .stat-value {
    font-size: 16px;
  }
  
  .tag-list {
    max-height: 150px;
  }
  
  .chart-container {
    height: 120px;
  }
}

/* 网页版特有的加载状态 */
.user-dashboard-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
  width: 100%;
}

.user-dashboard-loading > * {
  text-align: center;
}

.user-dashboard-loading .loading-content {
  text-align: center;
}

.user-dashboard-loading .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1890ff;
  border-radius: 50%;
  animation: dashboardSpin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes dashboardSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

[data-theme="dark"] .user-dashboard-loading .loading-spinner {
  border-color: #434343;
  border-top-color: #1890ff;
}

/* 网页版特有的错误状态 */
.user-dashboard-error {
  text-align: center;
  padding: 40px 20px;
  color: #ff4d4f;
}

.user-dashboard-error .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.user-dashboard-error .error-message {
  font-size: 16px;
  margin-bottom: 16px;
}

.user-dashboard-error .error-action {
  margin-top: 16px;
}


/*# sourceMappingURL=main.854671acfe5ddc4131b9.css.map*/