@font-face {
    font-family: 'HeadingFont';
    src: url('ttf/1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BodyFont';
    src: url('ttf/2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ===== 侧边栏系统重构 ===== */

/* Uiverse卡片效果 - 侧边栏外层 */
.sidebar-outer {
    position: fixed !important;
    left: 20px !important;
    top: 20px !important;
    width: calc(33.33% - 40px) !important;
    height: calc(100vh - 40px) !important;
    background-image: linear-gradient(163deg, #FFC107 0%, #00C896 100%);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.sidebar-outer:hover {
    box-shadow: 0px 0px 30px 1px rgba(255, 193, 7, 0.30);
}

/* 侧边栏内层 */
.sidebar-inner {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, var(--content-bg-light), rgba(255, 255, 255, 0.25));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 18px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-inner:hover {
    transform: scale(0.98);
}

/* 强制侧边栏固定定位规则 - 最高优先级 */
aside.sidebar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1000 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 默认隐藏侧边栏（移动端） */
.sidebar {
    display: none;
    position: absolute !important;
    width: 100%;
    height: 100%;
    padding: 2rem;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000 !important;
    border-radius: 0;
    border: none;
    overflow: hidden;
    transform: translateZ(0) !important;
    will-change: auto;
    -webkit-transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: none !important;
}

/* 桌面模式下的侧边栏显示 */
@media (min-width: 1024px) {
    .sidebar-outer {
        display: block !important;
    }
    
    .sidebar {
        display: flex !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        z-index: 1000 !important;
    }
    
    /* 确保主内容区域为侧边栏留出空间 */
    .main-content {
        margin-left: 33.33% !important;
        padding-left: 20px !important;
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        min-height: calc(100vh - 40px) !important;
    }
}

/* 移动端隐藏外层卡片效果 */
@media (max-width: 1023px) {
    .sidebar-outer {
        display: none !important;
    }
}

/* 移除旧的悬停效果规则，新的效果在sidebar-outer和sidebar-inner上实现 */

/* 额外的强制规则 - 更新为新的结构 */
.sidebar,
aside.sidebar,
body .sidebar,
html .sidebar {
    position: absolute !important;
    transform: none !important;
}

/* 按钮点击效果 */
.sidebar *:active,
.sidebar button:active,
.sidebar .clickable:active {
    background-color: var(--accent-color) !important;
    transform: none !important;
    transition: none !important;
}

/* ===== 侧边栏下方图片系统 ===== */

/* 默认隐藏图片容器 */
.sidebar-bottom-image {
    display: none;
    position: fixed;
    left: 20px;
    bottom: 25px; /* 从底部向上25px，给出一个合适的间距 */
    width: calc(33.33% - 40px);
    z-index: 1001; /* 调整为比sidebar-outer高，确保可见 */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 桌面模式下显示图片 */
@media (min-width: 1024px) {
    .sidebar-bottom-image {
        display: block !important;
    }
}

/* 图片容器悬停效果 */
.sidebar-bottom-image:hover {
    transform: translateX(5px); /* 只进行水平移动 */
}

/* 图片链接样式 */
.sidebar-image-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-image-link:hover {
    text-decoration: none;
}

.sidebar-image-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 15px;
}

/* 图片卡片样式 */
.sidebar-image-card {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-medium-light);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; /* 添加手型指针表示可点击 */
}

.sidebar-image-card:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.15);
}

/* 点击效果 */
.sidebar-image-card:active {
    transform: translateY(0) scale(0.995);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.sidebar-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
}

/* 校园卡小图标样式 */
.campus-card-item-link {
    display: inline;
    text-decoration: none;
    color: inherit; /* 继承父元素的文字颜色 */
    transition: all 0.2s ease;
}

.campus-card-item-link:hover {
    text-decoration: none;
    color: var(--accent-color); /* 悬停时文字变为主题色 */
}

.campus-card-link {
    display: inline;
    text-decoration: none;
    margin-left: 2px;
    margin-right: 2px;
}

.campus-card-icon {
    height: 2em; /* 进一步放大图片 */
    width: auto;
    vertical-align: middle; /* 垂直居中对齐 */
    display: inline;
    transition: transform 0.2s ease;
    margin-left: 6px; /* 增加与文字的间距 */
}

.campus-card-icon:hover {
    transform: scale(1.1);
}

.campus-card-item-link:focus {
    outline: 1px solid var(--accent-color);
    outline-offset: 1px;
    border-radius: 2px;
}

/* 点击提示文字样式 */
.click-tip {
    color: #ff0000; /* 红色文字 */
    font-size: 0.8em; /* 小一些的字体 */
    margin-left: 4px;
    font-weight: normal;
    transition: color 0.2s ease;
}

.campus-card-item-link:hover .click-tip {
    color: #ff3333; /* 悬停时稍微亮一些的红色 */
}

:root {
    --accent-color: #FFC107;
    --bg-light: #FFFFFF;
    --text-light: #333333;
    --content-bg-light: rgba(243, 244, 253, 0.9);
    --bg-dark: #121212;
    --text-dark: #E0E0E0;
    --content-bg-dark: rgba(42, 42, 62, 0.9);
    --nav-bg-light: rgba(255, 255, 255, 0.85);
    --nav-bg-dark: rgba(42, 42, 62, 0.85);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(255, 255, 255, 0.2);
    --border-medium-light: rgba(255, 255, 255, 0.3);
    --border-medium-dark: rgba(255, 255, 255, 0.4);
    --border-strong-light: rgba(255, 255, 255, 0.4);
    --border-strong-dark: rgba(255, 255, 255, 0.5);
    --green-color: #00C896;
    --green-light: rgba(0, 200, 150, 0.9);
    --green-medium: rgba(0, 200, 150, 0.8);
    --green-dark: rgba(0, 200, 150, 0.95);
}

/* 暗色模式 - 直接重新定义所有变量 */
body.dark-mode {
    --bg-light: #121212;
    --text-light: #E0E0E0;
    --content-bg-light: rgba(42, 42, 62, 0.9);
    --nav-bg-light: rgba(42, 42, 62, 0.85);
    --border-light: rgba(255, 255, 255, 0.2);
    --border-medium-light: rgba(255, 255, 255, 0.4);
    --border-strong-light: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'BodyFont', sans-serif;
    background-color: var(--bg-light);
    background-image: url('image/5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(0px);
    color: var(--text-light);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    /* 确保侧边栏固定定位不受影响 */
    position: relative;
}

/* 为body添加伪元素来实现背景虚化效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image/5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(8px);
    z-index: -1;
}

/* 主题切换覆盖层 - 用于实现主题切换的视觉效果 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: -1;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

/* 暗色模式的主题覆盖层 */
.dark-mode::after {
    background-color: rgba(18, 18, 18, 0.85); /* 深灰色半透明覆盖层 */
}

h1, h2, h3 {
    font-family: 'HeadingFont', serif;
}

/* ===== 侧边栏内部元素样式 ===== */

.profile {
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile:hover {
    transform: translateY(-2px);
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 193, 7, 0.3);
}

.profile h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.profile p {
    font-size: 1.1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-characters {
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.6s ease;
}

.footer-characters.visible {
    transform: translateY(0);
    opacity: 1;
}

.character-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.character-img:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.character-img.wiggle {
    animation: wiggle 0.5s ease-in-out;
}

.profile p {
    font-size: 1.1rem;
    opacity: 0.8;
}

.footer-characters {
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.6s ease;
}



.footer-characters.visible {
    transform: translateY(0);
    opacity: 1;
}

.character-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.character-img.wiggle {
    animation: wiggle 0.5s ease-in-out;
}

/* 打字机效果动画 */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 按钮点击动画 - 已被:active伪类替代，符合交互规范 */
/* @keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
} */

/* 卡片悬停动画 - 进一步减少悬浮效果强度 */
@keyframes cardHover {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translateY(-1px) scale(1.005);
        box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.12);
    }
}

/* 粒子动画 */
@keyframes particle {
    0% {
        opacity: 1;
        transform: scale(0) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1) translate(var(--dx), var(--dy));
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* 波浪动画效果 */
@keyframes wave {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    25% {
        background-position: 50% 30%, -25% -20%;
    }
    50% {
        background-position: 100% 40%, -50% -30%;
    }
    75% {
        background-position: 150% 30%, -75% -20%;
    }
    100% {
        background-position: 200% 0%, -100% 0%;
    }
}

@keyframes wave-green {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    25% {
        background-position: 40% 35%, -30% -25%;
    }
    50% {
        background-position: 80% 45%, -60% -35%;
    }
    75% {
        background-position: 120% 35%, -90% -25%;
    }
    100% {
        background-position: 160% 0%, -120% 0%;
    }
}

.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    background: var(--nav-bg-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.5rem 0.8rem;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.mobile-name {
    font-family: 'HeadingFont', serif;
    font-size: 1.2rem;
    font-weight: bold;
}

.main-content {
    margin-left: 33.33%;
    min-height: 100vh;
    padding: 2rem;
}

.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    border-radius: 15px;
}

.content-switcher {
    flex: 1;
    display: flex;
    justify-content: center;
}

.switcher-pill {
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 6px;
    display: flex;
    cursor: pointer;
    border: 1px solid var(--border-medium-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.2);
}

.switcher-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.switcher-pill:active {
    background-color: var(--accent-color) !important;
    transform: none !important;
    transition: none !important;
}

.pill-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: var(--accent-color);
    border-radius: 24px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1;
}



.pill-text {
    padding: 15px 30px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.pill-text.active {
    color: #333;
}

.pill-text:not(.active) {
    color: var(--text-light);
    opacity: 0.7;
}

/* 调整购买清单文字位置，使其与入学前建议边距保持一致 */
.pill-text:nth-child(3) {
    padding-left: 35px;
}

/* ===== 新样式切换器 ===== */
.toggle-container {
    --active-color: #FFC107; /* 改为网页的黄色 */
    --inactive-color: #d3d3d6;
    position: relative;
    aspect-ratio: 292 / 142;
    height: 1.875em;
}

.toggle-input {
    appearance: none;
    margin: 0;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.toggle {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.toggle-background {
    fill: var(--inactive-color);
    transition: fill .4s;
}

.toggle-input:checked + .toggle .toggle-background {
    fill: var(--active-color);
}

.toggle-circle-center {
    transform-origin: center;
    transition: transform .6s;
}

.toggle-input:checked + .toggle .toggle-circle-center {
    transform: translateX(150px);
}

.toggle-circle {
    transform-origin: center;
    transition: transform .45s;
    backface-visibility: hidden;
}

.toggle-circle.left {
    transform: scale(1);
}

.toggle-input:checked + .toggle .toggle-circle.left {
    transform: scale(0);
}

.toggle-circle.right {
    transform: scale(0);
}

.toggle-input:checked + .toggle .toggle-circle.right {
    transform: scale(1);
}

.toggle-icon {
    transition: fill .4s;
}

.toggle-icon.on {
    fill: var(--inactive-color);
}

.toggle-input:checked + .toggle .toggle-icon.on {
    fill: #fff;
}

.toggle-icon.off {
    fill: #eaeaec;
}

.toggle-input:checked + .toggle .toggle-icon.off {
    fill: var(--active-color);
}

/* 移动端新切换器样式调整 */
@media (max-width: 1023px) {
    .mobile-header .toggle-container {
        height: 1.8em; /* 放大移动端尺寸 */
        transform: scale(1.2); /* 放大显示 */
    }
    
    .mobile-header .content-switcher {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1001;
        background: transparent; /* 移除背景 */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        flex: none;
    }
    
    /* 移动端明暗切换按钮位置调整 */
    .mobile-header #themeToggle {
        position: relative;
        right: -10px; /* 向右移动10px */
        transform: scale(0.45); /* 进一步缩小尺寸到45% */
        margin-right: -20px; /* 进一步减少与屏幕右边界的边距 */
    }
    
    /* 整体移动端header显示 */
    .mobile-header {
        display: flex;
        padding-right: 0.3rem; /* 减少右侧内边距 */
    }
}

/* ===== BB8机器人主题切换按钮样式 ===== */
/* From Uiverse.io by Galahhad */ 

.bb8-toggle {
  --toggle-size: 16px;
  --toggle-width: 10.625em;
  --toggle-height: 5.625em;
  --toggle-offset: calc((var(--toggle-height) - var(--bb8-diameter)) / 2);
  --toggle-bg: linear-gradient(#2c4770, #070e2b 35%, #628cac 50% 70%, #a6c5d4) no-repeat;
  --bb8-diameter: 4.375em;
  --radius: 99em;
  --transition: 0.4s;
  --accent: #de7d2f;
  --bb8-bg: #fff;
  cursor: pointer;
  font-size: var(--toggle-size);
}

.bb8-toggle,
.bb8-toggle *,
.bb8-toggle *::before,
.bb8-toggle *::after {
  box-sizing: border-box;
}

.bb8-toggle__checkbox {
  appearance: none;
  display: none;
}

.bb8-toggle__container {
  width: var(--toggle-width);
  height: var(--toggle-height);
  background: var(--toggle-bg);
  background-size: 100% 11.25em;
  background-position-y: -5.625em;
  border-radius: var(--radius);
  position: relative;
  transition: var(--transition);
}

.bb8 {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: calc(var(--toggle-offset) - 1.688em + 0.188em);
  left: var(--toggle-offset);
  transition: var(--transition);
  z-index: 2;
}

.bb8__head-container {
  position: relative;
  transition: var(--transition);
  z-index: 2;
  transform-origin: 1.25em 3.75em;
}

.bb8__head {
  overflow: hidden;
  margin-bottom: -0.188em;
  width: 2.5em;
  height: 1.688em;
  background: linear-gradient(
      transparent 0.063em,
      dimgray 0.063em 0.313em,
      transparent 0.313em 0.375em,
      var(--accent) 0.375em 0.5em,
      transparent 0.5em 1.313em,
      silver 1.313em 1.438em,
      transparent 1.438em
    ),
    linear-gradient(
      45deg,
      transparent 0.188em,
      var(--bb8-bg) 0.188em 1.25em,
      transparent 1.25em
    ),
    linear-gradient(
      -45deg,
      transparent 0.188em,
      var(--bb8-bg) 0.188em 1.25em,
      transparent 1.25em
    ),
    linear-gradient(var(--bb8-bg) 1.25em, transparent 1.25em);
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0.063em 0.125em gray);
}

.bb8__head::before {
  content: "";
  position: absolute;
  width: 0.563em;
  height: 0.563em;
  background: radial-gradient(
      0.125em circle at 0.25em 0.375em,
      red,
      transparent
    ),
    radial-gradient(
      0.063em circle at 0.375em 0.188em,
      var(--bb8-bg) 50%,
      transparent 100%
    ),
    linear-gradient(45deg, #000 0.188em, dimgray 0.313em 0.375em, #000 0.5em);
  border-radius: var(--radius);
  top: 0.413em;
  left: 50%;
  transform: translate(-50%);
  box-shadow: 0 0 0 0.089em lightgray, 0.563em 0.281em 0 -0.148em,
    0.563em 0.281em 0 -0.1em var(--bb8-bg), 0.563em 0.281em 0 -0.063em;
  z-index: 1;
  transition: var(--transition);
}

.bb8__head::after {
  content: "";
  position: absolute;
  bottom: 0.375em;
  left: 0;
  width: 100%;
  height: 0.188em;
  background: linear-gradient(
    to right,
    var(--accent) 0.125em,
    transparent 0.125em 0.188em,
    var(--accent) 0.188em 0.313em,
    transparent 0.313em 0.375em,
    var(--accent) 0.375em 0.938em,
    transparent 0.938em 1em,
    var(--accent) 1em 1.125em,
    transparent 1.125em 1.875em,
    var(--accent) 1.875em 2em,
    transparent 2em 2.063em,
    var(--accent) 2.063em 2.25em,
    transparent 2.25em 2.313em,
    var(--accent) 2.313em 2.375em,
    transparent 2.375em 2.438em,
    var(--accent) 2.438em
  );
  transition: var(--transition);
}

.bb8__antenna {
  position: absolute;
  transform: translateY(-90%);
  width: 0.059em;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
}

.bb8__antenna:nth-child(1) {
  height: 0.938em;
  right: 0.938em;
  background: linear-gradient(#000 0.188em, silver 0.188em);
}

.bb8__antenna:nth-child(2) {
  height: 0.375em;
  left: 50%;
  transform: translate(-50%, -90%);
  background: silver;
}

.bb8__body {
  width: 4.375em;
  height: 4.375em;
  background: var(--bb8-bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  z-index: 1;
  transform: rotate(45deg);
  background: linear-gradient(
      -90deg,
      var(--bb8-bg) 4%,
      var(--accent) 4% 10%,
      transparent 10% 90%,
      var(--accent) 90% 96%,
      var(--bb8-bg) 96%
    ),
    linear-gradient(
      var(--bb8-bg) 4%,
      var(--accent) 4% 10%,
      transparent 10% 90%,
      var(--accent) 90% 96%,
      var(--bb8-bg) 96%
    ),
    linear-gradient(
      to right,
      transparent 2.156em,
      silver 2.156em 2.219em,
      transparent 2.188em
    ),
    linear-gradient(
      transparent 2.156em,
      silver 2.156em 2.219em,
      transparent 2.188em
    );
  background-color: var(--bb8-bg);
}

.bb8__body::after {
  content: "";
  bottom: 1.5em;
  left: 0.563em;
  position: absolute;
  width: 0.188em;
  height: 0.188em;
  background: rgb(236, 236, 236);
  color: rgb(236, 236, 236);
  border-radius: 50%;
  box-shadow: 0.875em 0.938em, 0 -1.25em, 0.875em -2.125em,
    2.125em -2.125em, 3.063em -1.25em, 3.063em 0, 2.125em 0.938em;
}

.bb8__body::before {
  content: "";
  width: 2.625em;
  height: 2.625em;
  position: absolute;
  border-radius: 50%;
  z-index: 0.1;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 0.313em solid var(--accent);
  background: radial-gradient(
      1em circle at center,
      rgb(236, 236, 236) 50%,
      transparent 51%
    ),
    radial-gradient(1.25em circle at center, var(--bb8-bg) 50%, transparent 51%),
    linear-gradient(
      -90deg,
      transparent 42%,
      var(--accent) 42% 58%,
      transparent 58%
    ),
    linear-gradient(var(--bb8-bg) 42%, var(--accent) 42% 58%, var(--bb8-bg) 58%);
}

.artificial__hidden {
  position: absolute;
  border-radius: inherit;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bb8__shadow {
  content: "";
  width: var(--bb8-diameter);
  height: 20%;
  border-radius: 50%;
  background: #3a271c;
  box-shadow: 0.313em 0 3.125em #3a271c;
  opacity: 0.25;
  position: absolute;
  bottom: 0;
  left: calc(var(--toggle-offset) - 0.938em);
  transition: var(--transition);
  transform: skew(-70deg);
  z-index: 1;
}

.bb8-toggle__scenery {
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  position: relative;
  border-radius: inherit;
}

.bb8-toggle__scenery::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: #b18d71;
  z-index: 1;
}

.bb8-toggle__cloud {
  z-index: 1;
  position: absolute;
  border-radius: 50%;
}

.bb8-toggle__cloud:nth-last-child(1) {
  width: 0.875em;
  height: 0.625em;
  filter: blur(0.125em) drop-shadow(0.313em 0.313em #ffffffae)
    drop-shadow(-0.625em 0 #fff) drop-shadow(-0.938em -0.125em #fff);
  right: 1.875em;
  top: 2.813em;
  background: linear-gradient(to top right, #ffffffae, #ffffffae);
  transition: var(--transition);
}

.bb8-toggle__cloud:nth-last-child(2) {
  top: 0.625em;
  right: 4.375em;
  width: 0.875em;
  height: 0.375em;
  background: #dfdedeae;
  filter: blur(0.125em) drop-shadow(-0.313em -0.188em #e0dfdfae)
    drop-shadow(-0.625em -0.188em #bbbbbbae) drop-shadow(-1em 0.063em #cfcfcfae);
  transition: 0.6s;
}

.bb8-toggle__cloud:nth-last-child(3) {
  top: 1.25em;
  right: 0.938em;
  width: 0.875em;
  height: 0.375em;
  background: #ffffffae;
  filter: blur(0.125em) drop-shadow(0.438em 0.188em #ffffffae)
    drop-shadow(-0.625em 0.313em #ffffffae);
  transition: 0.8s;
}

.gomrassen,
.hermes,
.chenini {
  position: absolute;
  border-radius: var(--radius);
  background: linear-gradient(#fff, #6e8ea2);
  top: 100%;
}

.gomrassen {
  left: 0.938em;
  width: 1.875em;
  height: 1.875em;
  box-shadow: 0 0 0.188em #ffffff52, 0 0 0.188em #6e8ea24b;
  transition: var(--transition);
}

.gomrassen::before,
.gomrassen::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  box-shadow: inset 0 0 0.063em rgb(140, 162, 169);
  background: rgb(184, 196, 200);
}

.gomrassen::before {
  left: 0.313em;
  top: 0.313em;
  width: 0.438em;
  height: 0.438em;
}

.gomrassen::after {
  width: 0.25em;
  height: 0.25em;
  left: 1.25em;
  top: 0.75em;
}

.hermes {
  left: 3.438em;
  width: 0.625em;
  height: 0.625em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: 0.6s;
}

.chenini {
  left: 4.375em;
  width: 0.5em;
  height: 0.5em;
  box-shadow: 0 0 0.125em #ffffff52, 0 0 0.125em #6e8ea24b;
  transition: 0.8s;
}

.tatto-1,
.tatto-2 {
  position: absolute;
  width: 1.25em;
  height: 1.25em;
  border-radius: var(--radius);
}

.tatto-1 {
  background: #fefefe;
  right: 3.125em;
  top: 0.625em;
  box-shadow: 0 0 0.438em #fdf4e1;
  transition: var(--transition);
}

.tatto-2 {
  background: linear-gradient(#e6ac5c, #d75449);
  right: 1.25em;
  top: 2.188em;
  box-shadow: 0 0 0.438em #e6ad5c3d, 0 0 0.438em #d755494f;
  transition: 0.7s;
}

.bb8-toggle__star {
  position: absolute;
  width: 0.063em;
  height: 0.063em;
  background: #fff;
  border-radius: var(--radius);
  filter: drop-shadow(0 0 0.063em #fff);
  color: #fff;
  top: 100%;
}

.bb8-toggle__star:nth-child(1) {
  left: 3.75em;
  box-shadow: 1.25em 0.938em, -1.25em 2.5em, 0 1.25em, 1.875em 0.625em,
    -3.125em 1.875em, 1.25em 2.813em;
  transition: 0.2s;
}

.bb8-toggle__star:nth-child(2) {
  left: 4.688em;
  box-shadow: 0.625em 0, 0 0.625em, -0.625em -0.625em, 0.625em 0.938em,
    -3.125em 1.25em, 1.25em -1.563em;
  transition: 0.3s;
}

.bb8-toggle__star:nth-child(3) {
  left: 5.313em;
  box-shadow: -0.625em -0.625em, -2.188em 1.25em, -2.188em 0,
    -3.75em -0.625em, -3.125em -0.625em, -2.5em -0.313em, 0.75em -0.625em;
  transition: var(--transition);
}

.bb8-toggle__star:nth-child(4) {
  left: 1.875em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.5s;
}

.bb8-toggle__star:nth-child(5) {
  left: 5em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.6s;
}

.bb8-toggle__star:nth-child(6) {
  left: 2.5em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.7s;
}

.bb8-toggle__star:nth-child(7) {
  left: 3.438em;
  width: 0.125em;
  height: 0.125em;
  transition: 0.8s;
}

/* BB8机器人主题切换动画效果 */

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(1) {
  top: 0.625em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(2) {
  top: 1.875em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(3) {
  top: 1.25em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(4) {
  top: 3.438em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(5) {
  top: 3.438em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(6) {
  top: 0.313em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__star:nth-child(7) {
  top: 1.875em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8-toggle__cloud {
  right: -100%;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .gomrassen {
  top: 0.938em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .hermes {
  top: 2.5em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .chenini {
  top: 2.75em;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container {
  background-position-y: 0;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .tatto-1 {
  top: 100%;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .tatto-2 {
  top: 100%;
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8 {
  left: calc(100% - var(--bb8-diameter) - var(--toggle-offset));
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8__shadow {
  left: calc(100% - var(--bb8-diameter) - var(--toggle-offset) + 0.938em);
  transform: skew(70deg);
}

.bb8-toggle__checkbox:checked + .bb8-toggle__container .bb8__body {
  transform: rotate(225deg);
}

.bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__head::before {
  left: 100%;
}

.bb8-toggle__checkbox:not(:checked):hover + .bb8-toggle__container .bb8__antenna:nth-child(1) {
  right: 1.5em;
}

.bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__antenna:nth-child(2) {
  left: 0.938em;
}

.bb8-toggle__checkbox:hover + .bb8-toggle__container .bb8__head::after {
  background-position: 1.375em 0;
}

.bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__head::before {
  left: 0;
}

.bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__antenna:nth-child(2) {
  left: calc(100% - 0.938em);
}

.bb8-toggle__checkbox:checked:hover + .bb8-toggle__container .bb8__head::after {
  background-position: -1.375em 0;
}

.bb8-toggle__checkbox:active + .bb8-toggle__container .bb8__head-container {
  transform: rotate(25deg);
}

.bb8-toggle__checkbox:checked:active + .bb8-toggle__container .bb8__head-container {
  transform: rotate(-25deg);
}

.bb8:hover .bb8__head::before,
.bb8:hover .bb8__antenna:nth-child(2) {
  left: 50% !important;
}

.bb8:hover .bb8__antenna:nth-child(1) {
  right: 0.938em !important;
}

.bb8:hover .bb8__head::after {
  background-position: 0 0 !important;
}

/* BB8机器人主题按钮响应式设计 */

/* 桌面端样式 */
@media (min-width: 1024px) {
  .bb8-toggle {
    --toggle-size: 14px; /* 桌面端稍小一些 */
  }
}

/* 移动端样式 */
@media (max-width: 1023px) {
  .bb8-toggle {
    --toggle-size: 12px; /* 移动端缩小按钮尺寸 */
    transform: scale(0.6); /* 进一步缩小到60% */
    transform-origin: center; /* 确保从中心缩放 */
  }
  
  /* 移动端头部的BB8按钮样式 */
  .mobile-header .bb8-toggle {
    --toggle-size: 14px; /* 稍微调整基础尺寸 */
    transform: scale(0.45); /* 进一步缩小到45% */
    transform-origin: center;
    margin: 0; /* 移除额外外边距 */
    margin-right: -15px; /* 向右移动，减少与屏幕边界的距离 */
    display: flex !important;
    position: relative !important;
    z-index: 1002 !important;
    flex-shrink: 0;
    touch-action: manipulation !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    /* 确保与左侧头像对称 */
    flex: 0 0 auto;
  }
  
  /* 移动端主题按钮激活效果 - 在缩放基础上进行 */
  .mobile-header .bb8-toggle:active {
    transform: scale(0.35) !important; /* 在原有缩放基础上再缩小 */
  }
  
  /* 移动端主题按钮悬停效果 - 在缩放基础上进行 */
  .mobile-header .bb8-toggle:hover {
    transform: scale(0.5) !important; /* 在原有缩放基础上稍微放大 */
  }
}

.content {
    display: block;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 100vh;
}

.content.hidden {
    display: none; /* 简单的隐藏/显示切换 */
}

/* 确保所有内容都可见 */
.content .scroll-animate {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 简化的滚动动画 - 确保内容始终可见 */
.scroll-animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 首次加载时的动画效果 */
.scroll-animate.fade-in {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-animate.fade-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 段落级动画延迟 */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }
.scroll-animate:nth-child(7) { transition-delay: 0.7s; }
.scroll-animate:nth-child(8) { transition-delay: 0.8s; }
.scroll-animate:nth-child(9) { transition-delay: 0.9s; }
.scroll-animate:nth-child(10) { transition-delay: 1.0s; }

.content-card {
    background: var(--content-bg-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-medium-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* 移除默认的opacity动画，让滚动动画控制 */
    opacity: 1; /* 确保内容卡片默认可见 */
    transform: translateY(0); /* 确保内容卡片默认位置正确 */
}

.content-card:hover {
    animation: cardHover 0.3s ease-out forwards;
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-color);
    animation: typewriter 3s steps(40, end), blink-caret 1s step-end infinite;
    /* 确保两个页面的标题长度不影响动画速度 */
    max-width: 100%;
    animation-fill-mode: forwards;
}

/* 为不同页面的标题调整动画步数以保持一致的速度 */
#advice-section .typewriter {
    animation: typewriter 3s steps(35, end), blink-caret 1s step-end infinite;
}

#list-section .typewriter {
    animation: typewriter 3s steps(20, end), blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--accent-color);
    }
}

.animate-text {
    opacity: 0;
    animation: slideInLeft 0.6s ease-out forwards;
}

/* 确保所有页面的列表项动画时间一致 */
.animate-text:nth-child(1) { animation-delay: 0.1s; }
.animate-text:nth-child(2) { animation-delay: 0.2s; }
.animate-text:nth-child(3) { animation-delay: 0.3s; }
.animate-text:nth-child(4) { animation-delay: 0.4s; }
.animate-text:nth-child(5) { animation-delay: 0.5s; }
.animate-text:nth-child(6) { animation-delay: 0.6s; }
.animate-text:nth-child(7) { animation-delay: 0.7s; }
.animate-text:nth-child(8) { animation-delay: 0.8s; }
.animate-text:nth-child(9) { animation-delay: 0.9s; }
.animate-text:nth-child(10) { animation-delay: 1.0s; }
.animate-text:nth-child(11) { animation-delay: 1.1s; }
.animate-text:nth-child(12) { animation-delay: 1.2s; }
.animate-text:nth-child(13) { animation-delay: 1.3s; }
.animate-text:nth-child(14) { animation-delay: 1.4s; }
.animate-text:nth-child(15) { animation-delay: 1.5s; }

.content-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.section-block {
    margin-bottom: 2rem;
}

.section-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.section-block ul {
    list-style: none;
    padding-left: 0;
}

.section-block li {
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.section-block li:hover {
    transform: translateX(5px);
    background: rgba(255, 193, 7, 0.1);
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ffb300;
}

/* 新生活元素样式 */
.new-life-section {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    min-height: 150px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-life-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.new-life-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: calc(100% - 2rem);
    height: 80px;
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.9) 0%, 
        rgba(255, 203, 17, 0.8) 25%,
        rgba(255, 193, 7, 0.95) 50%,
        rgba(255, 183, 7, 0.85) 75%,
        rgba(255, 193, 7, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 2px solid var(--accent-color);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 193, 7, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: default; /* 改为默认光标，不显示手型 */
    transition: none; /* 禁用过渡动画 */
    margin: 0 auto;
    overflow: hidden;
    pointer-events: none; /* 完全禁用点击事件 */
}

.new-life-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: 
        radial-gradient(ellipse at center, rgba(255, 193, 7, 0.4) 0%, transparent 60%),
        linear-gradient(90deg, 
            rgba(255, 193, 7, 0.9) 0%, 
            rgba(255, 203, 17, 0.8) 25%,
            rgba(255, 193, 7, 0.95) 50%,
            rgba(255, 183, 7, 0.85) 75%,
            rgba(255, 193, 7, 0.9) 100%);
    background-size: 400% 150%, 500% 120%;
    border-radius: 0 0 13px 13px;
    transition: height 0.1s ease, background 0.3s ease;
    z-index: 1;
    box-shadow: 
        0 -2px 10px rgba(255, 193, 7, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    pointer-events: none;
    animation: wave 6s ease-in-out infinite;
    overflow: hidden;
}

.new-life-progress::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -100%;
    width: 300%;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(255, 255, 255, 0.4) 20px,
        transparent 40px
    );
    animation: wave-ripple 4s linear infinite;
}

@keyframes wave-ripple {
    0% {
        transform: translateX(-33%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* 播放状态下的翠绿色进度条 */
.new-life-card.playing .new-life-progress {
    background: 
        radial-gradient(ellipse at center, rgba(0, 200, 150, 0.4) 0%, transparent 60%),
        linear-gradient(90deg, 
            var(--green-light) 0%, 
            rgba(0, 220, 160, 0.8) 25%,
            var(--green-dark) 50%,
            rgba(0, 180, 140, 0.85) 75%,
            var(--green-medium) 100%);
    background-size: 400% 150%, 500% 120%;
    box-shadow: 
        0 -2px 10px rgba(0, 200, 150, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    animation: wave-green 5s ease-in-out infinite;
}

.new-life-card.playing .new-life-progress::before {
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        rgba(255, 255, 255, 0.5) 18px,
        transparent 36px
    );
    animation: wave-ripple 3.5s linear infinite;
}

.new-life-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-color), transparent, var(--accent-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 悬浮和点击效果已禁用 - 保留样式，取消功能 */
/*
.new-life-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(255, 193, 7, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.new-life-card:hover::before {
    opacity: 1;
}

.new-life-card:active {
    background: rgba(255, 193, 7, 0.95) !important;
    border-color: rgba(255, 193, 7, 1.0) !important;
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.8) !important;
    transform: scale(0.98) !important;
    transition: none !important;
}

.new-life-card:active .new-life-text {
    color: #222 !important;
    font-weight: bold !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

.new-life-card:hover .new-life-text {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
*/

/* 新生活按钮文字样式 */
.new-life-text {
    font-family: 'BodyFont', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    line-height: 1.4;
    text-align: center;
    transition: none; /* 禁用过渡动画 */
    position: relative;
    z-index: 2;
    pointer-events: none; /* 禁止文字阻挡点击事件 */
}

.mobile-footer {
    display: none;
    text-align: center;
    padding: 2rem;
    min-height: 200px; /* 确保有足够的空间显示角色 */
    position: relative;
}

.mobile-footer .footer-characters {
    text-align: center;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.6s ease;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
}

.mobile-footer .footer-characters.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.mobile-character {
    width: 140px;
    height: 140px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* 确保移动端图片完全移除背景和边框效果 */
.mobile-footer .character-img.mobile-character {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.mobile-character.wiggle {
    animation: wiggle 0.5s ease-in-out;
}

/* 中等屏幕适配 (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .sidebar {
        position: fixed !important;
        width: 30%;
    }
    
    .main-content {
        margin-left: 30%;
        padding: 1.5rem;
    }
    
    .profile h1 {
        font-size: 2rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .content-card {
        padding: 1.8rem;
    }
    
    .desktop-nav {
        padding: 0.8rem 1.5rem;
    }
}

/* 小屏幕适配 (480px - 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .content-card h2 {
        font-size: 1.8rem;
    }
    
    .section-block h3 {
        font-size: 1.3rem;
    }
    
    .intro {
        font-size: 1.05rem;
    }
}

/* ===== 移动端隐藏规则 ===== */
@media (max-width: 1023px) {
    .sidebar {
        display: none !important;
    }
    
    .sidebar-bottom-image {
        display: none !important;
    }

    /* 移动端头部布局保持不变，但移除旧的主题按钮样式 */
    .mobile-header {
        display: flex;
        position: relative;
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(0, 200, 150, 0.15)), var(--nav-bg-light);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 0.5rem 0.4rem;
        align-items: center;
        justify-content: space-between; /* 确保左右对齐 */
        z-index: 1000;
        border-bottom: 1px solid var(--border-light);
        height: 60px;
    }
    
    /* 左侧头像和姓名容器 */
    .header-left {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex: 0 0 auto; /* 固定宽度，不伸缩 */
        min-width: 0; /* 允许收缩 */
    }

    /* 移动端内容切换器 - 完全居中并独立于左右元素 */
    .mobile-header .content-switcher {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1001;
        background: transparent; /* 移除背景 */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        border: none;
        box-shadow: none;
        flex: none;
    }

    .mobile-header .toggle-container {
        height: 1.8em; /* 放大移动端尺寸 */
        transform: scale(1.2); /* 放大显示 */
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        padding-top: 70px; /* 减少顶部间距 */
    }

    .desktop-nav {
        display: none;
    }

    .mobile-footer {
        display: block;
    }
    
    /* 移动端页脚图片完全移除背景和边框 */
    .mobile-footer .footer-characters img,
    .mobile-footer .character-img,
    .mobile-footer .mobile-character,
    img.mobile-character {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
    }
    
    .new-life-section {
        display: block;
        padding: 1.5rem 1rem;
    }
    
    .new-life-card {
        max-width: calc(100% - 1rem);
        height: 70px;
    }
    
    .new-life-progress {
        border-radius: 0 0 11px 11px;
    }
    
    .new-life-text {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    .content-card {
        padding: 1.5rem;
    }

    .content-card h2 {
        font-size: 1.5rem;
    }

    .section-block h3 {
        font-size: 1.2rem;
    }

    .intro {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .section-block li {
        padding: 0.6rem;
        font-size: 0.9rem;
    }


}

.theme-transition {
    position: fixed;
    width: 100px;
    height: 100px;
    background: #FFFFFF; /* 默认颜色，将由JavaScript动态设置 */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10002;
    pointer-events: none;
    transition: none;
}

.theme-transition.active {
    animation: expandCircle 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandCircle {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(15);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(25);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-color);
    color: #333;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10000;
}

/* 粒子爆炸效果 */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: particle 0.8s ease-out forwards;
}

.particle::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: particle 0.8s ease-out forwards;
}

.notification.show {
    transform: translateX(0);
}

/* 欢迎弹窗样式 */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-modal.show {
    opacity: 1;
    visibility: visible;
}

.welcome-modal-content {
    background: var(--content-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-medium-light);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-width: 90%;
    width: 400px;
}

.welcome-modal.show .welcome-modal-content {
    transform: scale(1) translateY(0);
}

.welcome-modal h3 {
    font-family: 'HeadingFont', serif;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-modal p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.welcome-modal .close-btn {
    background: var(--accent-color);
    border: none;
    color: #333;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.welcome-modal .close-btn:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

/* ===== 主题状态调试指示器 ===== */
.theme-debug-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-family: monospace;
    z-index: 10003;
    pointer-events: none;
    transition: all 0.3s ease;
}

.dark-mode .theme-debug-indicator {
    background: rgba(255, 255, 255, 0.9);
    color: black;
}