.home-welcome {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0.5rem auto 0 auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
}

.welcome-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #ffffff;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 0.6s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.home-icon-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 5rem;
  max-width: 60%;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.home-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
  cursor: pointer;
}

.home-icon-item:hover {
  transform: scale(1.2);
}

.home-icon-item:active {
  transform: scale(0.95);
}

.home-icon-emoji {
  font-size: 4.5rem;
  line-height: 1.3;
  text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
}

.home-icon-label {
  font-size: 1rem;
  margin-top: 0.4rem;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* 笔记板块图片样式 */
.md-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.2em auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 全局滚动条渐变蓝 */
html::-webkit-scrollbar,
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
html::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
  background: transparent;
}
html::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1565c0, #64b5f6);
  border-radius: 10px;
}
html::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1976d2, #90caf9);
}
html {
  scrollbar-width: thin;
  scrollbar-color: #64b5f6 transparent;
}

/* 舞蹈页面时间轴 */
.dance-timeline {
  position: relative;
  margin: 1.2rem 0;
  padding: 0;
}

.dance-timeline::before {
  content: '';
  position: absolute;
  left: 5.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #1565c0, #42a5f5, #90caf9);
  border-radius: 2px;
}

.tl-entry {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.tl-entry:last-child {
  margin-bottom: 0;
}

.tl-date {
  width: 5.5rem;
  text-align: right;
  padding-right: 1.8rem;
  font-size: 0.65rem;
  color: #1e88e5;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.tl-dot {
  position: absolute;
  left: 5.5rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  background: #1e88e5;
  border: 2px solid #e3f2fd;
  border-radius: 50%;
  z-index: 1;
  transform: translateX(-50%);
  box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

.tl-card {
  margin-left: 2rem;
  background: #f8fbff;
  border: 1px solid #e3edf7;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
  flex: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tl-card:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
}

.tl-text {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.5;
  font-weight: 500;
}

.tl-quote {
  margin-top: 0.25rem;
  padding-left: 0.5rem;
  border-left: 2px solid #90caf9;
  color: #888;
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.4;
}

.tl-img {
  margin-top: 0.5rem;
}

.tl-img img {
  display: block;
  max-width: 65%;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

/* 网站主题色 - 优雅蓝 */
:root {
  --md-primary-fg-color: #5c8bc2;
  --md-primary-fg-color--light: #8db4da;
  --md-primary-fg-color--dark: #3d6a9e;
  --md-accent-fg-color: #7bc8e8;
  --md-accent-fg-color--transparent: rgba(123, 200, 232, 0.1);
}

/* 页面渐变蓝背景（上深下浅，1/3处变白，从顶部导航栏开始） */
body {
  background: linear-gradient(180deg, #4a75ab 0%, #7aaddd 12vh, #b8d4ec 22vh, #ffffff 33vh) no-repeat center top / 100% 100vh;
  background-attachment: fixed;
  background-color: #ffffff;
}

/* 导航栏透明，让渐变从顶部自然呈现 */
.md-header {
  background: transparent !important;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06) !important;
}

/* 滚动后导航栏显示实色背景，避免内容穿透 */
.md-header--lifted {
  background: #4a75ab !important;
}

/* 标签栏透明，与导航栏融为一体 */
.md-tabs {
  background: transparent !important;
  border-top: none !important;
}

/* 标签链接改为白色 */
.md-tabs__link {
  color: rgba(255, 255, 255, 0.75) !important;
}

.md-tabs__link--active {
  color: #ffffff !important;
  font-weight: 600;
}

/* 侧边栏完全透明，融入渐变背景 */
.md-sidebar,
.md-sidebar__scrollwrap,
.md-sidebar__inner {
  background: transparent !important;
}

.md-header__topic {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 1.25rem !important;
}

/* ========== 浏览量板块 ========== */
.pv-counter-wrap {
  text-align: center;
  margin: 2rem 0 1rem;
}

.pv-card {
  display: inline-block;
  background: rgba(74, 117, 171, 0.12);
  border-radius: 60px;
  padding: 0.55rem 1.8rem;
  box-shadow: 0 0 60px 16px rgba(74, 117, 171, 0.06);
}

.pv-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #5c8bc2;
}

.pv-label {
  font-size: 0.75rem;
  color: #8db4da;
  margin-left: 0.35rem;
  letter-spacing: 0.05em;
}

.pv-loading-text {
  font-size: 0.8rem;
  color: #aaa;
  display: inline-block;
  margin-top: 0.4rem;
}

/* ========== 手机端适配 ========== */
@media (max-width: 768px) {
  .dance-timeline::before {
    left: 3.8rem;
  }
  .tl-date {
    width: 3.8rem;
    padding-right: 1.2rem;
    font-size: 0.6rem;
  }
  .tl-dot {
    left: 3.8rem;
    width: 8px;
    height: 8px;
  }
  .tl-card {
    margin-left: 1.2rem;
    padding: 0.5rem 0.6rem;
  }
  .tl-text {
    font-size: 0.75rem;
  }
  .tl-quote {
    font-size: 0.65rem;
  }
  .tl-img img {
    max-width: 100%;
  }
}

/* ========== 深色模式适配 ========== */
/* 注意：Material 主题把 data-md-color-scheme 标记打在 <body> 自己身上，
   所以所有深色样式都要用 body[data-md-color-scheme="slate"] 这种写法才会生效 */

/* 深色模式下的主题变量微调：让链接、强调色在深色背景上更清晰 */
body[data-md-color-scheme="slate"] {
  --md-typeset-a-color: #8db4da;
  --md-accent-fg-color: #7bc8e8;
  --md-accent-fg-color--transparent: rgba(123, 200, 232, 0.15);
}

/* 深色渐变背景：上深蓝 → 往下渐变至纯黑（仅非首页页面，首页有独立全屏背景图） */
body[data-md-color-scheme="slate"] {
  background: linear-gradient(180deg, #14283f 0%, #10233a 20vh, #060b14 50vh, #000000 80vh) no-repeat center top / 100% 100vh;
  background-attachment: fixed;
  background-color: #000000;
}

/* 滚动后导航栏颜色，与顶部深蓝渐变呼应 */
body[data-md-color-scheme="slate"] .md-header--lifted {
  background: #14283f !important;
}

/* 顶部标签文字在深色下保持清晰 */
body[data-md-color-scheme="slate"] .md-tabs__link {
  color: rgba(255, 255, 255, 0.8) !important;
}

body[data-md-color-scheme="slate"] .md-tabs__link--active {
  color: #ffffff !important;
}

/* 深色下正文标题颜色更柔和，不刺眼 */
body[data-md-color-scheme="slate"] .md-typeset h1,
body[data-md-color-scheme="slate"] .md-typeset h2,
body[data-md-color-scheme="slate"] .md-typeset h3,
body[data-md-color-scheme="slate"] .md-typeset h4 {
  color: #dfe6ee;
}

/* 舞蹈时间轴卡片深色适配 */
body[data-md-color-scheme="slate"] .tl-card {
  background: #26323f;
  border: 1px solid #35424f;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

body[data-md-color-scheme="slate"] .tl-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

body[data-md-color-scheme="slate"] .tl-text {
  color: #d0d7de;
}

body[data-md-color-scheme="slate"] .tl-date {
  color: #7bc8e8;
}

body[data-md-color-scheme="slate"] .tl-dot {
  border-color: #1d2b3a;
}

body[data-md-color-scheme="slate"] .tl-quote {
  color: #9aa4b0;
  border-left-color: #3d6a9e;
}

/* 浏览量卡片深色适配 */
body[data-md-color-scheme="slate"] .pv-card {
  background: rgba(123, 200, 232, 0.12);
  box-shadow: 0 0 60px 16px rgba(123, 200, 232, 0.08);
}

body[data-md-color-scheme="slate"] .pv-number {
  color: #8db4da;
}

body[data-md-color-scheme="slate"] .pv-label {
  color: #7bc8e8;
}

body[data-md-color-scheme="slate"] .pv-loading-text {
  color: #8b96a1;
}


