/* Butterfly主题自定义浅色渐变样式覆盖 */

/* 基础浅色渐变背景和排版 */
html[data-theme='light'] body {
  /* 温暖日光渐变: #ffecd2 -> #fcb69f -> #ff9a9e */
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%) fixed;
  color: rgba(51, 51, 51, 0.88);
}

/* 卡片带有微妙的半透明和模糊效果 */
html[data-theme='light'] .card-widget,
html[data-theme='light'] .card,
html[data-theme='light'] .recent-posts .recent-post-item,
html[data-theme='light'] .post,
html[data-theme='light'] .aside-list > .aside-list-item,
html[data-theme='light'] .relatedPosts > .relatedPosts-list > div {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 236, 210, 0.75) 50%, rgba(252, 182, 159, 0.65) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(225, 112, 85, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
}

/* 卡片悬停效果 */
html[data-theme='light'] .card-widget:hover,
html[data-theme='light'] .card:hover,
html[data-theme='light'] .recent-posts .recent-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(225, 112, 85, 0.35);
  transition: all 0.3s ease;
}

/* 头像背景增强 */
html[data-theme='light'] .avatar-img {
  background: linear-gradient(135deg, rgba(253, 121, 168, 0.2) 0%, rgba(232, 67, 147, 0.2) 100%);
  border: 2px solid rgba(225, 112, 85, 0.4);
  box-shadow: 0 0 20px rgba(232, 67, 147, 0.3);
}

/* 页头和页脚与渐变融合 */
html[data-theme='light'] #page-header,
html[data-theme='light'] #footer {
  background: transparent;
}

/* 强调色：温暖橙红色渐变用于链接和选择 */
html[data-theme='light'] a,
html[data-theme='light'] .links-of-author a,
html[data-theme='light'] .article-meta__categories a,
html[data-theme='light'] .article-meta__tags a {
  color: #e17055;
  transition: color .2s ease, text-shadow .2s ease;
}
html[data-theme='light'] a:hover {
  color: #d63031;
  text-shadow: 0 0 8px rgba(214, 48, 49, 0.4);
}

/* 按钮样式 */
html[data-theme='light'] :root {
  --btn-bg: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  --btn-hover-color: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
  --btn-color: #ffffff;
  --text-highlight-color: #e17055;
  --scrollbar-color: #e84393;
}

/* 侧边栏、搜索框等 */
html[data-theme='light'] .sidebar,
html[data-theme='light'] .sidebar #aside-content > .card-widget,
html[data-theme='light'] .search-dialog .search-dialog__title,
html[data-theme='light'] .search-dialog .search-nav {
  background: rgba(255, 255, 255, 0.8);
}


/* 引用块条纹强调 */
html[data-theme='light'] blockquote {
  border-left: 3px solid #e84393;
  background: rgba(232, 67, 147, 0.08);
}

/* 分割线微妙样式 */
html[data-theme='light'] hr {
  border-color: #fab1a0;
}

/* 目录链接颜色和悬停效果 */
html[data-theme='light'] #aside-content .toc .toc-item a {
  color: #e84393;
}
html[data-theme='light'] #aside-content .toc .toc-item a:hover {
  color: #e17055;
}

/* 分页和标签 */
html[data-theme='light'] .pagination .page-number,
html[data-theme='light'] .tag-cloud a,
html[data-theme='light'] .article-tags .tag {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(232, 67, 147, 0.2);
}

/* 文章标题的精美悬停效果 */
html[data-theme='light'] .recent-post-info .article-title a:hover,
html[data-theme='light'] .post-title a:hover {
  color: #e84393;
}

/* 主题切换的平滑过渡 */
html[data-theme='light'] body, html[data-theme='light'] .card, html[data-theme='light'] .card-widget {
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}

/* 更大的艺术首页标题 - 渐变文字，无外部字体依赖 */
html[data-theme='light'] #site-info #site-title.custom-title-art {
  font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(3rem, 6vw, 6rem) !important;
  letter-spacing: 0.04em !important;
  /* 不支持background-clip的浏览器的备用颜色 */
  color: #e84393 !important;
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 35%, #d63031 55%, #e17055 80%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: 0 2px 24px rgba(232,67,147,0.15), 0 2px 40px rgba(253,121,168,0.12) !important;
  /* 强制居中 */
  display: block !important;
  text-align: center !important;
  margin: 0 auto !important;
}

/* 确保在不支持background-clip时文字可见 */
@supports not (-webkit-background-clip: text) {
  html[data-theme='light'] #site-info #site-title.custom-title-art {
    color: #e84393 !important;
    -webkit-text-fill-color: #e84393 !important;
  }
}

/* 温暖主题风格的Markdown样式 - 基于温暖调色板 */
/* 温暖色调变量定义 */
:root {
  --warm-coral: #ff7675;
  --warm-pink: #fd79a8;
  --warm-purple: #e84393;
  --warm-violet: #a29bfe;
  --warm-red: #d63031;
  --warm-orange: #e17055;
  --warm-peach: #fab1a0;
  --warm-yellow: #fdcb6e;
  --warm-green: #00b894;
  --warm-mint: #00cec9;
  --warm-cyan: #74b9ff;
  --warm-blue: #0984e3;
  --warm-indigo: #6c5ce7;
  --warm-lavender: #a29bfe;
  --warm-text: #2d3436;
  --warm-subtext1: #636e72;
  --warm-subtext0: #74b9ff;
  --warm-overlay2: #b2bec3;
  --warm-overlay1: #ddd;
  --warm-overlay0: #f1f2f6;
  --warm-surface2: #ffeaa7;
  --warm-surface1: #fff5f5;
  --warm-surface0: #ffffff;
  --warm-base: #ffecd2;
  --warm-mantle: #fcb69f;
  --warm-crust: #ff9a9e;
}

/* Markdown标题样式 */
html[data-theme='light'] .post-content h1 {
  color: var(--warm-red) !important;
  font-family: "Noto Serif", serif;
  font-weight: 700;
  font-size: 2em;
  line-height: 1.2;
  margin: 15px 0;
  transition: color 0.3s ease;
}

html[data-theme='light'] .post-content h2 {
  color: var(--warm-orange) !important;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 1.6em;
  line-height: 1.2;
  margin: 15px 0;
  transition: color 0.3s ease;
}

html[data-theme='light'] .post-content h3 {
  color: var(--warm-green) !important;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 1.37em;
  line-height: 1.3;
  margin: 15px 0;
  transition: color 0.3s ease;
}

html[data-theme='light'] .post-content h4 {
  color: var(--warm-mint) !important;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 1.25em;
  line-height: 1.4;
  margin: 15px 0;
  transition: color 0.3s ease;
}

html[data-theme='light'] .post-content h5 {
  color: var(--warm-lavender) !important;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 1.12em;
  line-height: 1.5;
  margin: 15px 0;
  transition: color 0.3s ease;
}

html[data-theme='light'] .post-content h6 {
  color: var(--warm-violet) !important;
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 1.12em;
  line-height: 1.5;
  margin: 15px 0;
  transition: color 0.3s ease;
}

/* Markdown加粗文字样式 - 使用蓝色调 */
html[data-theme='light'] .post-content strong,
html[data-theme='light'] .post-content b {
  color: var(--warm-blue) !important;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  border: 1px solid rgba(116, 185, 255, 0.3);
  transition: all 0.2s ease;
}

/* 加粗文字悬停效果 */
html[data-theme='light'] .post-content strong:hover,
html[data-theme='light'] .post-content b:hover {
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  border-color: rgba(116, 185, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(116, 185, 255, 0.3);
}

/* Markdown斜体文字样式 - 使用浅紫色调 */
html[data-theme='light'] .post-content em,
html[data-theme='light'] .post-content i {
  color: var(--warm-lavender) !important;
  font-style: italic;
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.1) 0%, transparent 100%);
  padding: 0.05em 0.2em;
  border-radius: 2px;
}

/* Markdown列表样式优化 */
html[data-theme='light'] .post-content ul li::marker,
html[data-theme='light'] .post-content ol li::marker {
  color: var(--warm-overlay1);
}

html[data-theme='light'] .post-content ul li,
html[data-theme='light'] .post-content ol li {
  margin-bottom: 0.5em;
  line-height: 1.6;
  color: var(--warm-text);
}

/* Markdown链接样式 */
html[data-theme='light'] .post-content a {
  color: var(--warm-cyan) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 206, 201, 0.3);
  transition: all 0.2s ease;
}

html[data-theme='light'] .post-content a:hover {
  color: var(--warm-blue) !important;
  border-bottom-color: var(--warm-blue);
  text-shadow: 0 0 8px rgba(9, 132, 227, 0.4);
}

/* Markdown表格样式 */
html[data-theme='light'] .post-content table {
  border-collapse: collapse;
  margin: 1em 0;
  background: var(--warm-surface0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .post-content table th {
  background: linear-gradient(135deg, rgba(253, 121, 168, 0.2) 0%, rgba(255, 255, 255, 0.2) 100%);
  color: var(--warm-purple) !important;
  font-weight: 700;
  padding: 0.8em;
  border: 1px solid rgba(253, 121, 168, 0.3);
}

html[data-theme='light'] .post-content table td {
  padding: 0.6em 0.8em;
  border: 1px solid var(--warm-overlay0);
  color: var(--warm-text);
}

html[data-theme='light'] .post-content table tr:nth-child(even) {
  background: rgba(255, 245, 245, 0.5);
}



/* 引用块样式 */
html[data-theme='light'] .post-content blockquote {
  border-left: 4px solid var(--warm-peach);
  background: linear-gradient(135deg, rgba(250, 177, 160, 0.1) 0%, transparent 100%);
  padding: 1em 1.5em;
  margin: 1em 0;
  color: var(--warm-subtext1);
  border-radius: 0 8px 8px 0;
}

/* 动画光晕叠加层以丰富背景 */
html[data-theme='light'] body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60vw 60vh at 20% 20%, rgba(253, 121, 168, 0.12), transparent 60%),
    radial-gradient(50vw 50vh at 78% 28%, rgba(232, 67, 147, 0.10), transparent 60%),
    radial-gradient(70vw 70vh at 52% 84%, rgba(255, 154, 158, 0.08), transparent 60%);
  mix-blend-mode: multiply;
  opacity: .6;
  animation: lightAuroraFloat 28s ease-in-out infinite alternate;
}

@keyframes lightAuroraFloat {
  0% { transform: translate3d(0,0,0) scale(1); filter: saturate(1); }
  50% { transform: translate3d(0,1.2%,0) scale(1.01); filter: saturate(1.05); }
  100% { transform: translate3d(0,2.4%,0) scale(1.02); filter: saturate(1.1); }
}

/* 右上角自定义菜单 */
html[data-theme='light'] .custom-right-menus .menu-item {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(232, 67, 147, 0.2);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  color: var(--warm-text);
}
html[data-theme='light'] #nav.nav-fixed .custom-right-menus .menu-item,
html[data-theme='light'] #page-header.not-top-img #nav .custom-right-menus .menu-item {
  color: var(--font-color);
}
html[data-theme='light'] .custom-right-menus .menu-item:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(232, 67, 147, 0.3);
}

/* 修复：恢复代码块（包括 plaintext）为 Butterfly 默认背景（light） */
html[data-theme='light'] figure.highlight table,
html[data-theme='light'] figure.highlight td,
html[data-theme='light'] figure.highlight th {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme='light'] figure.highlight table,
html[data-theme='light'] figure.highlight td,
html[data-theme='light'] figure.highlight th {
  border: none !important;
  outline: none !important;
  border-radius: 0 !important;
}

html[data-theme='light'] figure.highlight,
html[data-theme='light'] figure.highlight .highlight-tools {
  box-shadow: none !important;
}
/* 调整代码块工具栏复制与展开按钮的间距（light） */
html[data-theme='light'] figure.highlight .highlight-tools {
  gap: 6px;
}
html[data-theme='light'] figure.highlight .highlight-tools .expand {
  margin-left: 4px;
}

