/* ========================================
   Winter's BLOG - 优化版样式
   ======================================== */

/* 导入思源黑体（更好的中文显示） */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* ========================================
   全局变量优化
   ======================================== */
:root {
  /* 优化配色方案 - 深色科技风 */
  --theme-palette-color-1: #6366f1;  /* 主色 - 靛蓝紫 */
  --theme-palette-color-2: #4f46e5;  /* 次色 - 深靛蓝 */
  --theme-palette-color-3: #64748b;  /* 文本色 - 灰蓝 */
  --theme-palette-color-4: #0f172a;  /* 标题色 - 深黑蓝 */
  --theme-palette-color-5: #e2e8f0;  /* 边框色 - 浅灰 */
  --theme-palette-color-6: #f8fafc;  /* 浅背景 */
  --theme-palette-color-7: #f1f5f9;  /* 页面背景 */
  --theme-palette-color-8: #ffffff;  /* 卡片背景 */

  /* 字体优化 */
  --theme-font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --theme-font-weight: 400;
  --theme-font-size: 16px;
  --theme-line-height: 1.75;
  --theme-text-color: var(--theme-palette-color-3);
  --theme-headings-color: var(--theme-palette-color-4);
  --theme-link-initial-color: var(--theme-palette-color-1);
  --theme-link-hover-color: var(--theme-palette-color-2);

  /* 按钮样式 */
  --theme-button-background-initial-color: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --theme-button-background-hover-color: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --theme-button-text-initial-color: #ffffff;
  --theme-button-text-hover-color: #ffffff;
  --theme-button-min-height: 44px;
  --theme-button-padding: 10px 28px;
  --theme-button-border-radius: 8px;

  /* 内容间距 */
  --theme-content-vertical-spacing: 70px;
  --theme-normal-container-max-width: 1200px;
  --theme-narrow-container-max-width: 800px;

  /* 自定义滚动条 */
  scrollbar-width: thin;
  scrollbar-color: var(--theme-palette-color-1) var(--theme-palette-color-6);
}

/* ========================================
   全局样式
   ======================================== */
body {
  background-color: var(--theme-palette-color-7);
  background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  font-family: var(--theme-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 自定义滚动条 - Webkit */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--theme-palette-color-6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--theme-palette-color-1), var(--theme-palette-color-2));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-palette-color-2);
}

/* 选中文本样式 */
::selection {
  background-color: var(--theme-palette-color-1);
  color: #ffffff;
}

/* ========================================
   头部导航优化
   ======================================== */
[data-header*="type-1"] .ct-header [data-row*="middle"] {
  --height: 280px;
  background-position: center center;
  background-size: cover;
  background-color: var(--theme-palette-color-8);
  background-image: url(https://bellwinter.top/wp-content/uploads/2026/06/3697234C7AA142FA1C1E62C292F5A914.jpg);
  position: relative;
}

/* 头部遮罩层 - 增强文字可读性 */
[data-header*="type-1"] .ct-header [data-row*="middle"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.7) 0%,
    rgba(15, 23, 42, 0.5) 50%,
    rgba(15, 23, 42, 0.8) 100%
  );
  z-index: 1;
}

[data-header*="type-1"] .ct-header [data-row*="middle"] > * {
  position: relative;
  z-index: 2;
}

/* Logo 样式 */
[data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
  --theme-font-family: 'Noto Sans SC', sans-serif;
  --theme-font-weight: 700;
  --theme-text-transform: none;
  --theme-text-decoration: none;
  --theme-font-size: 42px;
  --theme-line-height: 1.2;
  --theme-letter-spacing: 0.02em;
  --theme-link-initial-color: #ffffff;
  --theme-link-hover-color: #c7d2fe;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-header*="type-1"] .ct-header [data-id="logo"] .site-description {
  --theme-font-family: 'Noto Sans SC', sans-serif;
  --theme-font-weight: 300;
  --theme-font-size: 16px;
  --theme-line-height: 1.5;
  --theme-text-color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.1em;
}

/* 导航菜单 */
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  --theme-font-family: 'Noto Sans SC', sans-serif;
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 16px;
  --theme-line-height: 1.5;
  --theme-link-initial-color: rgba(255, 255, 255, 0.9);
  --theme-link-hover-color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* 下拉菜单 */
[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu {
  --theme-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --theme-border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link {
  --theme-link-initial-color: rgba(255, 255, 255, 0.8);
  --theme-font-weight: 400;
  --theme-font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

[data-header*="type-1"] .ct-header [data-id="menu"] .sub-menu .ct-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  --theme-link-initial-color: #ffffff;
}

/* 搜索按钮 */
[data-header*="type-1"] [data-id="search"] .ct-label {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 14px;
}

/* 移动端菜单按钮 */
[data-header*="type-1"] [data-id="trigger"] {
  --theme-icon-size: 28px;
  --theme-icon-color: #ffffff;
  --theme-icon-hover-color: var(--theme-palette-color-1);
}

/* ========================================
   搜索模态框
   ======================================== */
[data-header*="type-1"] #search-modal {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

[data-header*="type-1"] #search-modal .ct-search-form {
  --theme-link-initial-color: #ffffff;
  --theme-form-text-initial-color: #ffffff;
  --theme-form-text-focus-color: #ffffff;
  --theme-form-field-border-initial-color: rgba(255, 255, 255, 0.2);
  --theme-form-field-border-focus-color: var(--theme-palette-color-1);
}

[data-header*="type-1"] #search-modal .ct-search-results {
  --theme-font-weight: 400;
  --theme-font-size: 15px;
  --theme-line-height: 1.6;
}

/* ========================================
   移动端侧边栏
   ======================================== */
[data-header*="type-1"] #offcanvas {
  --theme-box-shadow: 0 0 80px rgba(0, 0, 0, 0.4);
  --side-panel-width: 380px;
  --panel-content-height: 100%;
}

[data-header*="type-1"] #offcanvas .ct-panel-inner {
  background-color: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

[data-header*="type-1"] [data-id="mobile-menu"] {
  --theme-font-weight: 500;
  --theme-font-size: 18px;
  --theme-link-initial-color: rgba(255, 255, 255, 0.9);
  --mobile-menu-divider: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   博客文章卡片优化
   ======================================== */
[data-prefix="blog"] .entries {
  --grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

[data-prefix="blog"] .entry-card {
  background-color: var(--theme-palette-color-8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
              0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-prefix="blog"] .entry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.2),
              0 8px 16px -8px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-palette-color-1);
}

/* 文章图片 */
[data-prefix="blog"] .entry-card .ct-image-container {
  overflow: hidden;
}

[data-prefix="blog"] .entry-card .ct-image-container img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-prefix="blog"] .entry-card:hover .ct-image-container img {
  transform: scale(1.08);
}

/* 文章标题 */
[data-prefix="blog"] .entry-card .entry-title {
  --theme-font-size: 20px;
  --theme-line-height: 1.4;
  --theme-font-weight: 600;
  padding: 0 24px;
  margin-top: 20px;
}

[data-prefix="blog"] .entry-card .entry-title a {
  color: var(--theme-palette-color-4);
  transition: color 0.3s ease;
}

[data-prefix="blog"] .entry-card:hover .entry-title a {
  color: var(--theme-palette-color-1);
}

/* 文章摘要 */
[data-prefix="blog"] .entry-card .entry-summary {
  padding: 0 24px;
  margin-top: 12px;
  color: var(--theme-palette-color-3);
  font-size: 14px;
  line-height: 1.7;
}

/* 文章元信息 */
[data-prefix="blog"] .entry-card .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 13px;
  padding: 0 24px;
  margin-top: 16px;
  margin-bottom: 20px;
  color: #94a3b8;
}

/* 分类标签样式 */
[data-prefix="blog"] .entry-card .entry-meta a {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--theme-palette-color-1);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-right: 8px;
  margin-bottom: 8px;
}

[data-prefix="blog"] .entry-card .entry-meta a:hover {
  background: linear-gradient(135deg, var(--theme-palette-color-1) 0%, #8b5cf6 100%);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ========================================
   分类页面样式
   ======================================== */
[data-prefix="categories"] .entries {
  --grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

[data-prefix="categories"] .entry-card {
  background-color: var(--theme-palette-color-8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
              0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-prefix="categories"] .entry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.2),
              0 8px 16px -8px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-palette-color-1);
}

[data-prefix="categories"] .entry-card .entry-title {
  --theme-font-size: 20px;
  --theme-line-height: 1.4;
  --theme-font-weight: 600;
}

[data-prefix="categories"] .entry-card .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 13px;
}

/* ========================================
   搜索结果页面
   ======================================== */
[data-prefix="search"] .entries {
  --grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

[data-prefix="search"] .entry-card {
  background-color: var(--theme-palette-color-8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
              0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-prefix="search"] .entry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.2),
              0 8px 16px -8px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-palette-color-1);
}

[data-prefix="search"] .entry-card .entry-title {
  --theme-font-size: 20px;
  --theme-line-height: 1.4;
  --theme-font-weight: 600;
}

[data-prefix="search"] .entry-card .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 13px;
}

/* ========================================
   作者页面
   ======================================== */
[data-prefix="author"] .entries {
  --grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

[data-prefix="author"] .entry-card {
  background-color: var(--theme-palette-color-8);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
              0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

[data-prefix="author"] .entry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.2),
              0 8px 16px -8px rgba(0, 0, 0, 0.1);
  border-color: var(--theme-palette-color-1);
}

[data-prefix="author"] .entry-card .entry-title {
  --theme-font-size: 20px;
  --theme-line-height: 1.4;
  --theme-font-weight: 600;
}

[data-prefix="author"] .entry-card .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 13px;
}

/* 作者头部区域 */
[data-prefix="author"] .hero-section[data-type="type-2"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --container-padding: 60px 0px;
  border-radius: 0 0 24px 24px;
}

/* ========================================
   单篇文章页面
   ======================================== */
[data-prefix="single_blog_post"] .entry-header .page-title {
  --theme-font-size: 36px;
  --theme-line-height: 1.3;
  --theme-font-weight: 700;
}

[data-prefix="single_blog_post"] .entry-header .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 14px;
  --theme-line-height: 1.5;
}

[data-prefix="single_blog_post"] [class*="ct-container"] > article[class*="post"] {
  --has-boxed: var(--false);
  --has-wide: var(--true);
}

/* 文章内容样式 */
[data-prefix="single_blog_post"] .entry-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--theme-palette-color-3);
}

[data-prefix="single_blog_post"] .entry-content p {
  margin-bottom: 1.5em;
}

[data-prefix="single_blog_post"] .entry-content h2 {
  --theme-font-size: 28px;
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--theme-palette-color-5);
}

[data-prefix="single_blog_post"] .entry-content h3 {
  --theme-font-size: 22px;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

/* 代码块样式 */
[data-prefix="single_blog_post"] .entry-content pre {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.5em 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-prefix="single_blog_post"] .entry-content code {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--theme-palette-color-1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

[data-prefix="single_blog_post"] .entry-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* 引用块 */
[data-prefix="single_blog_post"] .entry-content blockquote {
  border-left: 4px solid var(--theme-palette-color-1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  padding: 20px 24px;
  margin: 1.5em 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

/* 图片样式 */
[data-prefix="single_blog_post"] .entry-content img {
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin: 1.5em 0;
  transition: transform 0.3s ease;
}

[data-prefix="single_blog_post"] .entry-content img:hover {
  transform: scale(1.02);
}

/* 表格样式 */
[data-prefix="single_blog_post"] .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

[data-prefix="single_blog_post"] .entry-content th {
  background: linear-gradient(135deg, var(--theme-palette-color-1) 0%, #8b5cf6 100%);
  color: #ffffff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}

[data-prefix="single_blog_post"] .entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-palette-color-5);
}

[data-prefix="single_blog_post"] .entry-content tr:last-child td {
  border-bottom: none;
}

[data-prefix="single_blog_post"] .entry-content tr:nth-child(even) {
  background-color: var(--theme-palette-color-6);
}

[data-prefix="single_blog_post"] .entry-content tr:hover td {
  background-color: rgba(99, 102, 241, 0.05);
}

/* ========================================
   单个页面
   ======================================== */
[data-prefix="single_page"] .entry-header .page-title {
  --theme-font-size: 36px;
  --theme-line-height: 1.3;
  --theme-font-weight: 700;
}

[data-prefix="single_page"] .entry-header .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 14px;
  --theme-line-height: 1.5;
}

[data-prefix="single_page"] [class*="ct-container"] > article[class*="post"] {
  --has-boxed: var(--false);
  --has-wide: var(--true);
}

/* ========================================
   分类/标签页面标题
   ======================================== */
[data-prefix="categories"] .entry-header .page-title {
  --theme-font-size: 36px;
  --theme-line-height: 1.3;
  --theme-font-weight: 700;
}

[data-prefix="categories"] .entry-header .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 14px;
  --theme-line-height: 1.5;
}

[data-prefix="search"] .entry-header .page-title {
  --theme-font-size: 36px;
  --theme-line-height: 1.3;
  --theme-font-weight: 700;
}

[data-prefix="search"] .entry-header .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 14px;
  --theme-line-height: 1.5;
}

[data-prefix="author"] .entry-header .page-title {
  --theme-font-size: 36px;
  --theme-line-height: 1.3;
  --theme-font-weight: 700;
}

[data-prefix="author"] .entry-header .entry-meta {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 14px;
  --theme-line-height: 1.5;
}

/* ========================================
   页脚优化
   ======================================== */
[data-footer*="type-1"] .ct-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.8);
}

[data-footer*="type-1"] .ct-footer [data-row*="bottom"] {
  --theme-border-top: 1px solid rgba(255, 255, 255, 0.1);
  --theme-border-bottom: none;
  background-color: transparent;
}

[data-footer*="type-1"] .ct-footer [data-row*="bottom"] > div {
  --container-spacing: 40px;
  --theme-border: none;
  --theme-border-top: none;
  --theme-border-bottom: none;
  --grid-template-columns: initial;
}

[data-footer*="type-1"] .ct-footer [data-row*="bottom"] .widget-title {
  --theme-font-size: 18px;
  --theme-font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

[data-footer*="type-1"] [data-id="copyright"] {
  --theme-font-weight: 400;
  --theme-font-size: 14px;
  --theme-line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

[data-footer*="type-1"] footer.ct-container {
  --footer-container-bottom-offset: 40px;
  --footer-container-padding: 0px 40px;
}

/* 页脚链接样式 */
[data-footer*="type-1"] .ct-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

[data-footer*="type-1"] .ct-footer a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

/* ========================================
   侧边栏优化
   ======================================== */
.ct-sidebar {
  --theme-link-initial-color: var(--theme-text-color);
}

.ct-sidebar .widget {
  background-color: var(--theme-palette-color-8);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.ct-sidebar .widget-title {
  --theme-font-size: 18px;
  --theme-font-weight: 600;
  color: var(--theme-palette-color-4);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--theme-palette-color-5);
}

/* ========================================
   面包屑导航
   ======================================== */
.ct-breadcrumbs {
  --theme-font-weight: 500;
  --theme-text-transform: none;
  --theme-font-size: 13px;
  color: #94a3b8;
}

.ct-breadcrumbs a {
  color: var(--theme-palette-color-1);
  transition: color 0.3s ease;
}

.ct-breadcrumbs a:hover {
  color: var(--theme-palette-color-2);
}

/* ========================================
   表单样式
   ======================================== */
form textarea {
  --theme-form-field-height: 180px;
  border-radius: 12px;
  border: 2px solid var(--theme-palette-color-5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form textarea:focus {
  border-color: var(--theme-palette-color-1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}

form input[type="text"],
form input[type="email"],
form input[type="url"],
form input[type="password"] {
  border-radius: 12px;
  border: 2px solid var(--theme-palette-color-5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 12px 16px;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="url"]:focus,
form input[type="password"]:focus {
  border-color: var(--theme-palette-color-1);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}

/* 按钮样式 */
button,
.ct-button {
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover,
.ct-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

/* ========================================
   侧边栏类型3
   ======================================== */
aside[data-type="type-3"] {
  --theme-border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  overflow: hidden;
}

/* ========================================
   引用块样式
   ======================================== */
.wp-block-pullquote {
  --theme-font-family: 'Noto Sans SC', sans-serif;
  --theme-font-weight: 600;
  --theme-font-size: 22px;
  border-left: 4px solid var(--theme-palette-color-1);
  padding-left: 24px;
}

/* ========================================
   代码字体
   ======================================== */
pre, code, samp, kbd {
  --theme-font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --theme-font-weight: 400;
  --theme-font-size: 15px;
}

figcaption {
  --theme-font-size: 14px;
  color: #94a3b8;
  font-style: italic;
}

/* ========================================
   响应式设计
   ======================================== */

/* 平板设备 */
@media (max-width: 1199.98px) {
  :root {
    --theme-normal-container-max-width: 960px;
    --theme-content-vertical-spacing: 50px;
  }

  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 220px;
  }

  [data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
    --theme-font-size: 36px;
  }
}

/* 平板竖屏 */
@media (max-width: 999.98px) {
  [data-header*="type-1"] #offcanvas {
    --side-panel-width: 70vw;
  }

  [data-footer*="type-1"] .ct-footer [data-row*="bottom"] > div {
    --grid-template-columns: initial;
  }

  [data-footer*="type-1"] footer.ct-container {
    --footer-container-padding: 0vw 4vw;
  }

  [data-prefix="blog"] .entries {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  [data-prefix="categories"] .entries {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  [data-prefix="author"] .entries {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  [data-prefix="search"] .entries {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 180px;
  }

  [data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
    --theme-font-size: 32px;
  }
}

/* 手机设备 */
@media (max-width: 767.98px) {
  :root {
    --theme-content-vertical-spacing: 40px;
    --theme-container-edge-spacing: 90vw;
  }

  [data-header*="type-1"] #offcanvas {
    --side-panel-width: 90vw;
  }

  [data-footer*="type-1"] .ct-footer [data-row*="bottom"] > div {
    --container-spacing: 20px;
    --grid-template-columns: initial;
  }

  [data-footer*="type-1"] footer.ct-container {
    --footer-container-padding: 0vw 5vw;
  }

  [data-prefix="blog"] .entries {
    --grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }

  [data-prefix="blog"] .entry-card .entry-title {
    --theme-font-size: 18px;
  }

  [data-prefix="categories"] .entries {
    --grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }

  [data-prefix="categories"] .entry-card .entry-title {
    --theme-font-size: 18px;
  }

  [data-prefix="author"] .entries {
    --grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }

  [data-prefix="author"] .entry-card .entry-title {
    --theme-font-size: 18px;
  }

  [data-prefix="search"] .entries {
    --grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }

  [data-prefix="search"] .entry-card .entry-title {
    --theme-font-size: 18px;
  }

  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 160px;
  }

  [data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
    --theme-font-size: 28px;
  }

  [data-header*="type-1"] .ct-header [data-id="logo"] .site-description {
    --theme-font-size: 14px;
  }

  [data-prefix="single_blog_post"] .entry-header .page-title {
    --theme-font-size: 28px;
  }

  [data-prefix="single_page"] .entry-header .page-title {
    --theme-font-size: 28px;
  }
}

/* 小屏手机 */
@media (max-width: 479.98px) {
  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    --height: 140px;
  }

  [data-header*="type-1"] .ct-header [data-id="logo"] .site-title {
    --theme-font-size: 24px;
  }

  [data-prefix="blog"] .entry-card .entry-title {
    --theme-font-size: 16px;
  }

  [data-prefix="categories"] .entry-card .entry-title {
    --theme-font-size: 16px;
  }

  [data-prefix="author"] .entry-card .entry-title {
    --theme-font-size: 16px;
  }

  [data-prefix="search"] .entry-card .entry-title {
    --theme-font-size: 16px;
  }
}

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

[data-prefix="blog"] .entry-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

[data-prefix="blog"] .entry-card:nth-child(1) { animation-delay: 0.1s; }
[data-prefix="blog"] .entry-card:nth-child(2) { animation-delay: 0.2s; }
[data-prefix="blog"] .entry-card:nth-child(3) { animation-delay: 0.3s; }
[data-prefix="blog"] .entry-card:nth-child(4) { animation-delay: 0.4s; }
[data-prefix="blog"] .entry-card:nth-child(5) { animation-delay: 0.5s; }
[data-prefix="blog"] .entry-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   加载动画
   ======================================== */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.ct-loader {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ========================================
   工具提示样式
   ======================================== */
[title] {
  position: relative;
}

[title]::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  background-color: var(--theme-palette-color-4);
  color: #ffffff;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

[title]:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 8px);
}

/* ========================================
   打印样式
   ======================================== */
@media print {
  body {
    background-color: #ffffff;
    background-image: none;
  }

  [data-header*="type-1"] .ct-header [data-row*="middle"] {
    background-image: none;
    background-color: #f8fafc;
    --height: 100px;
  }

  [data-footer*="type-1"] .ct-footer {
    background-color: #f8fafc;
    color: var(--theme-palette-color-3);
  }

  .entry-card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }
}
