/* ==================== 蜡笔小新主题变量 ==================== */
:root {
    /* 主要颜色 - 小新主题 */
    --crayon-red: #FF5252;       /* 小新上衣红色 */
    --crayon-yellow: #FFD600;    /* 小新裤子黄色 */
    --crayon-blue: #42A5F5;      /* 动感超人蓝色 */
    --crayon-pink: #FF80AB;      /* 妮妮/美冴粉色 */
    --crayon-green: #66BB6A;     /* 春日部绿色 */
    --crayon-orange: #FF8A65;    /* 风间橙色 */
    --crayon-brown: #8D6E63;     /* 小白棕色 */
    --crayon-white: #FFF8E1;     /* 背景米白 */
    --crayon-black: #37474F;     /* 文字深灰 */
    
    /* 边框和阴影 */
    --crayon-border: #FF9800;    /* 橙色边框 */
    --crayon-shadow: rgba(255, 152, 0, 0.3);
    --crayon-light-shadow: rgba(255, 214, 0, 0.2);
    
    /* 特殊效果 */
    --crayon-highlight: #FFF9C4; /* 高亮黄色 */
    --crayon-doodle: #E0E0E0;    /* 涂鸦灰色 */
    
    /* 动画时间 */
    --animation-fast: 0.3s;
    --animation-medium: 0.5s;
    --animation-slow: 1s;
    
    /* 阴影效果 */
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    --button-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

/* ==================== 基础样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comic Sans MS', '微软雅黑', 'Arial Rounded MT Bold', sans-serif;
}

/* 自定义光标 - 只在桌面设备显示 */
@media (hover: hover) and (pointer: fine) {
    * {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    pointer-events: none;
    z-index: 99999;
    transition: transform var(--animation-fast) ease;
    transform-origin: center;
    display: none;
    background-image: url('图标.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 3px rgba(255, 214, 0, 0.5));
}

.cursor-click {
    transform: scale(0.8);
}

.cursor-hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 5px rgba(255, 82, 82, 0.6));
}

/* 移动端触摸反馈 */
.touch-feedback {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 82, 82, 0.3) 20%, transparent 70%);
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transform: scale(0);
    transition: opacity var(--animation-medium), transform var(--animation-medium);
    display: none;
    background-image: url('图标.png');
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
}

.touch-feedback.active {
    opacity: 1;
    transform: scale(1);
}

body {
    background: linear-gradient(135deg, var(--crayon-white) 0%, #E3F2FD 100%);
    color: var(--crayon-black);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ==================== 进入界面 ==================== */
/* 修改进入界面背景 */
.entry-screen {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    overflow: hidden;
    /* 移除原来的渐变背景，改为图片背景 */
    background: url('空镜.jpg') no-repeat center center;
    background-size: cover; /* 确保图片覆盖整个屏幕 */
    position: relative;
}

/* 添加半透明遮罩，确保文字可读性 */
.entry-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 半透明黑色遮罩 */
    z-index: -1;
}

.castle-icon {
    width: 33vw;
    height: 33vh;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(255, 214, 0, 0.7));
    position: relative;
    z-index: 1;
}

.castle-icon:hover .castle-img {
    /* 只在悬停时添加轻微放大效果 */
    transform: scale(1.05);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.4));
    box-shadow: 
        0 0 40px rgba(155, 114, 0, 0.7),
        0 20px 50px rgba(155, 82, 82, 0.4);
}

.castle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
}

.castle-fallback {
    font-size: 6rem;
    color: var(--crayon-blue);
    text-shadow: 4px 4px 0 var(--crayon-black), 8px 8px 0 rgba(255, 128, 171, 0.3);
    display: none;
}

.castle-icon.loaded .castle-fallback {
    display: none;
}

.castle-icon:not(.loaded) .castle-img {
    display: none;
}

.castle-icon:not(.loaded) .castle-fallback {
    display: block;
}

@keyframes castleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.entry-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--crayon-red);
    text-shadow: 
        3px 3px 0 var(--crayon-yellow), 
        5px 5px 0 rgba(255, 82, 82, 0.3),
        0 0 25px rgba(255, 214, 0, 0.5);
    letter-spacing: 1.5px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    font-family: 'Arial Rounded MT Bold', 'Comic Sans MS', '微软雅黑', sans-serif;
    font-weight: 800; /* 更粗的字体 */
    animation: titleGlow 2s ease-in-out infinite alternate;
    padding: 0;
}

/* 标题发光动画 */
@keyframes titleGlow {
    0% {
        text-shadow: 
            3px 3px 0 var(--crayon-yellow), 
            5px 5px 0 rgba(255, 82, 82, 0.3),
            0 0 25px rgba(255, 214, 0, 0.5);
    }
    100% {
        text-shadow: 
            3px 3px 0 var(--crayon-yellow), 
            5px 5px 0 rgba(255, 82, 82, 0.3),
            0 0 35px rgba(255, 214, 0, 0.8),
            0 0 45px rgba(255, 82, 82, 0.4);
    }
}

.entry-subtitle {
    font-size: 1.3rem; /* 增大字体 */
    color: var(--crayon-blue); /* 改为蓝色 */
    line-height: 1.5;
    position: relative;
    z-index: 1;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', 'Segoe Print', cursive;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
}

/* 像素方块进入按钮 */
.enter-btn {
    background: linear-gradient(135deg, var(--crayon-red) 0%, #FF8A80 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--animation-fast);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 8px 0 var(--crayon-orange), 0 15px 20px rgba(0, 0, 0, 0.3);
}

/* 按钮悬停效果 */
.enter-btn:hover {
    background: linear-gradient(135deg, #FF7043 0%, var(--crayon-red) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 0 var(--crayon-orange),
        0 20px 30px rgba(0, 0, 0, 0.2);
}

.enter-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 
        0 5px 0 var(--crayon-orange),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ==================== 主内容布局 ==================== */
.main-content {
    display: none;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* 左侧导航栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, var(--crayon-blue) 0%, #64B5F6 100%);
    border-right: 6px solid var(--crayon-red);
    box-shadow: 5px 0 15px var(--crayon-shadow);
    z-index: 1000;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-logo {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background-color: var(--crayon-red);
    border-bottom: 4px solid var(--crayon-yellow);
    text-shadow: 2px 2px 0 var(--crayon-orange);
    margin-bottom: 40px;
    text-align: center;
    padding: 15px 0;
    border-radius: 8px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0 20px 20px 0;
    margin-right: 10px;
    border: 3px solid var(--crayon-yellow);
    padding: 15px;
}

.sidebar-link {
    color: var(--crayon-black);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 15px 20px;
    border: 2px solid transparent;
    transition: all var(--animation-fast);
    text-align: center;
    background: rgba(71, 181, 255, 0.15);
    position: relative;
    cursor: pointer;
    border-bottom: 2px dotted var(--crayon-blue);
    border-radius: 5px;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: var(--crayon-yellow);
    color: var(--crayon-red);
    transform: translateX(5px);
    border: 2px solid var(--crayon-blue);
}

.sidebar-link i {
    color: var(--crayon-red);
}

/* 侧边栏小新动图容器 */
.sidebar-anime-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 4px solid var(--crayon-red);
    box-shadow: 
        0 8px 20px rgba(255, 82, 82, 0.3),
        inset 0 0 30px rgba(255, 214, 0, 0.2);
}

.sidebar-anime-title {
    font-size: 1.2rem;
    color: var(--crayon-red);
    margin-bottom: 15px;
    text-shadow: 1px 1px 0 var(--crayon-yellow);
    text-align: center;
}

.sidebar-anime-gif {
    width: 90%;
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    border: 3px solid var(--crayon-blue);
    box-shadow: 0 0 15px rgba(66, 165, 245, 0.5);
    animation: animeFloat 4s ease-in-out infinite;
}

@keyframes animeFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 0 15px rgba(66, 165, 245, 0.5);
    }
    50% { 
        transform: translateY(-10px) rotate(2deg);
        box-shadow: 0 10px 25px rgba(255, 82, 82, 0.6);
    }
}

.sidebar-anime-text {
    font-size: 0.85rem;
    color: var(--crayon-blue);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    padding: 0 10px;
}
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px dashed var(--crayon-yellow);
    text-align: center;
    color: white;
    font-size: 0.7rem;
    opacity: 0.8;
    background-color: rgba(66, 165, 245, 0.8);
    border-top: 3px solid var(--crayon-yellow);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
}

/* 右侧内容区域 */
.content-area {
    margin-left: 250px; /* 对应侧边栏宽度 */
    padding: 30px 40px;
    min-height: 100vh;
    background: rgba(255, 248, 225, 0.7);
    position: relative;
    z-index: 1; /* 确保在正确层级 */
}

/* ==================== 单页面应用相关样式 ==================== */
.content-container {
    display: none;
    animation: fadeIn var(--animation-medium) ease;
}

.content-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 介绍页面样式 ==================== */
.content-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 225, 0.95) 100%);
    padding: 30px;
    margin-bottom: 30px;
    border: 5px solid var(--crayon-red);
    border-radius: 15px;
    box-shadow: 0 8px 20px var(--crayon-light-shadow);
    position: relative;
}

.section-header {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--crayon-blue);
    text-shadow: 2px 2px 0 var(--crayon-yellow);
    border-bottom: 4px dotted var(--crayon-pink);
    padding-bottom: 10px;
    display: inline-block;
}

.section-header::after {
    content: '✦';
    margin-left: 10px;
    color: var(--crayon-pink);
}

/* 紧凑的个人介绍 */
.compact-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    background: white;
    border: 4px solid var(--crayon-yellow);
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(255, 214, 0, 0.2);
    padding: 20px;
    margin-top: 20px;
}

.compact-avatar {
    flex: 0 0 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--crayon-blue) 0%, var(--crayon-pink) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: white;
    border: 4px solid var(--crayon-red);
    border-radius: 10px;
}

.compact-info {
    flex: 1;
}

.compact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--crayon-red);
}

.compact-info p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 15px;
    background: rgba(20, 35, 65, 0.4);
    padding: 15px;
    border-left: 3px solid var(--crayon-pink);
    border-radius: 5px;
    color: var(--crayon-black);
}

/* 紧凑的技能标签 */
.compact-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--crayon-blue);
}

.compact-skill {
    background-color: var(--crayon-highlight);
    color: var(--crayon-black);
    padding: 8px 15px;
    font-size: 0.8rem;
    border: 2px solid var(--crayon-blue);
    border-radius: 20px;
    transition: all var(--animation-fast);
    cursor: pointer;
}

.compact-skill:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 0 var(--crayon-black);
}

/* 紧凑的联系网格 */
.compact-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.compact-contact-item {
    text-align: center;
    padding: 20px;
    background: white;
    border: 4px solid var(--crayon-pink);
    border-radius: 12px;
    transition: all var(--animation-fast);
    cursor: pointer;
}

.compact-contact-item:hover {
    border-color: var(--crayon-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.compact-contact-icon {
    font-size: 2.2rem;
    color: white;
    background: linear-gradient(135deg, var(--crayon-pink) 0%, #F8BBD0 100%);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid white;
}

.contact-note {
    font-size: 0.7rem;
    color: var(--crayon-blue);
    margin-top: 5px;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, var(--crayon-blue) 0%, #90CAF9 100%);
    margin-top: 30px;
    border-top: 6px solid var(--crayon-yellow);
    border-bottom: 4px solid var(--crayon-blue);
    position: relative;
    color: white;
    border-radius: 15px;
}

.footer-note {
    margin-top: 10px;
    color: var(--crayon-highlight);
    font-size: 0.8rem;
}

.footer-magic {
    margin-top: 5px;
    color: var(--crayon-red);
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: bold;
    text-shadow: 1px 1px 0 white;
}

/* ==================== 计划页面样式 ==================== */
.plan-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    color: var(--crayon-black);
    background: linear-gradient(135deg, #E8F5E9 0%, #F1F8E9 100%);
    border-radius: 15px;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, var(--crayon-blue) 0%, #64B5F6 100%);
    border-radius: 8px;
    border: 6px solid var(--crayon-yellow);
    box-shadow: 8px 8px 0 var(--crayon-shadow);
    position: relative;
}

.plan-title {
    font-size: 1.8rem;
    color: white;
    text-shadow: 3px 3px 0 var(--crayon-red);
    margin-bottom: 15px;
}

.plan-subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--crayon-black);
    padding: 15px;
    border-radius: 4px;
    border-left: 5px solid var(--crayon-red);
    margin-bottom: 10px;
}

.plan-tip {
    font-size: 0.8rem;
    color: var(--crayon-yellow);
    background-color: rgba(255, 82, 82, 0.9);
    padding: 10px;
    border-radius: 10px;
    margin-top: 8px;
}

/* 控制面板 */
.plan-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--crayon-pink) 0%, #F8BBD0 100%);
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 5px solid var(--crayon-red);
    box-shadow: 6px 6px 0 var(--crayon-shadow);
}

.selected-info {
    font-size: 0.9rem;
    color: var(--crayon-blue);
    font-weight: bold;
}

.selected-count {
    color: white;
    background-color: var(--crayon-red);
    padding: 5px 12px;
    margin: 0 4px;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 3px solid var(--crayon-yellow);
}

.plan-buttons {
    display: flex;
    gap: 15px;
}

.plan-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--animation-fast);
    border: 3px solid var(--crayon-black);
    box-shadow: 4px 4px 0 var(--crayon-shadow);
    font-weight: bold;
}

.plan-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--crayon-shadow);
}

.btn-reset {
    background: linear-gradient(135deg, var(--crayon-green) 0%, #81C784 100%);
    color: white;
}

.btn-finalize {
    background: linear-gradient(135deg, var(--crayon-yellow) 0%, #FFEE58 100%);
    color: var(--crayon-red);
}

/* 时间段筛选器 */
.time-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 15px;
    border: 3px dashed var(--crayon-blue);
}

.filter-btn {
    padding: 8px 20px;
    background-color: white;
    border: 3px solid var(--crayon-blue);
    border-radius: 4px;
    color: var(--crayon-blue);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all var(--animation-fast);
}

.filter-btn.active {
    background-color: var(--crayon-blue);
    color: white;
    border-color: var(--crayon-yellow);
}

.filter-btn:hover {
    background: rgba(106, 90, 205, 0.4);
    transform: translateY(-2px);
}

/* 日期卡片 */
.day-card {
    background: linear-gradient(135deg, white 0%, var(--crayon-highlight) 100%);
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 20px;
    border: 5px solid var(--crayon-blue);
    box-shadow: 6px 6px 0 var(--crayon-shadow);
    position: relative;
}

.day-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--crayon-pink);
}

.date-badge {
    background: linear-gradient(135deg, var(--crayon-red) 0%, #FF8A80 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 20px;
    border: 3px solid var(--crayon-yellow);
    font-weight: bold;
}

.day-title {
    font-size: 1.1rem;
    color: var(--crayon-blue);
    text-shadow: 2px 2px 0 var(--crayon-yellow);
}

/* 时段切换标签 */
.time-tabs {
    display: flex;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid var(--crayon-pink);
}

.time-tab {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--crayon-black);
    border-right: 2px solid var(--crayon-pink);
    transition: all var(--animation-fast);
}

.time-tab:last-child {
    border-right: none;
}

.time-tab.active {
    background-color: var(--crayon-pink);
    color: white;
}

.time-tab:hover {
    background: rgba(106, 90, 205, 0.2);
}

.event-count-badge {
    display: inline-block;
    background-color: var(--crayon-yellow);
    color: var(--crayon-red);
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-left: 5px;
    border: 2px solid var(--crayon-red);
}

/* 时段事件区域 */
.time-slot-section {
    margin-bottom: 20px;
    display: none;
}

.time-slot-section.active-slot {
    display: block;
}

.time-slot-title {
    font-size: 0.95rem;
    color: var(--crayon-red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.time-slot-content {
    background-color: white;
    padding: 20px;
    border-radius: 6px;
    border: 4px solid var(--crayon-green);
    min-height: 120px;
    margin-bottom: 15px;
}

.event-placeholder {
    color: var(--crayon-blue);
    font-size: 0.9rem;
    text-align: center;
    padding: 30px 20px;
    opacity: 0.8;
}

.selected-event {
    background-color: rgba(255, 214, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-left: 5px solid var(--crayon-red);
    border: 2px solid var(--crayon-yellow);
}

.selected-event:last-child {
    margin-bottom: 0;
}

.selected-event h4 {
    color: var(--crayon-red);
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-note {
    color: var(--crayon-black);
    font-size: 0.8rem;
    line-height: 1.5;
    padding: 10px 0;
    border-top: 1px solid rgba(106, 90, 205, 0.4);
    margin-top: 8px;
    opacity: 0.9;
}

.clear-slot-btn {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--crayon-red);
    border: 2px solid var(--crayon-red);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all var(--animation-fast);
}

.clear-slot-btn:hover {
    background-color: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

/* 选项区域样式 */
.options-section {
    margin-top: 20px;
}

.options-title {
    font-size: 1rem;
    color: var(--crayon-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.option-btn {
    padding: 15px;
    background: white;
    border: 3px solid var(--crayon-blue);
    border-radius: 6px;
    cursor: pointer;
    color: var(--crayon-black);
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    transition: all var(--animation-fast);
}

.option-btn:hover {
    background-color: rgba(66, 165, 245, 0.1);
    border-color: var(--crayon-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.2);
}

.option-btn.selected {
    background: linear-gradient(135deg, var(--crayon-blue) 0%, #64B5F6 100%);
    color: white;
    border-color: var(--crayon-yellow);
}

.option-btn.selected:after {
    content: "✓";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--crayon-green);
}

.option-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--crayon-red);
}

/* ==================== 日程表样式 ==================== */
.schedule-result {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--crayon-highlight) 0%, #FFFDE7 100%);
    border-radius: 8px;
    padding: 30px;
    border: 6px solid var(--crayon-red);
    box-shadow: 8px 8px 0 var(--crayon-shadow);
    display: none;
    position: relative;
}

.schedule-result h2 {
    color: var(--crayon-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 var(--crayon-yellow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-image {
    background: white;
    padding: 35px;
    border-radius: 10px;
    border: 6px solid var(--crayon-yellow);
    margin-bottom: 25px;
    box-shadow: 
        inset 0 0 20px rgba(255, 214, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.schedule-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 4px solid var(--crayon-green);
    position: relative;
}

.schedule-header h3 {
    color: var(--crayon-red);
    font-size: 1.6rem;
    margin-bottom: 15px;
    text-shadow: 
        2px 2px 0 var(--crayon-yellow),
        4px 4px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.schedule-date {
    color: white;
    font-size: 0.95rem;
    background: linear-gradient(135deg, var(--crayon-pink) 0%, #F8BBD0 100%);
    padding: 10px 20px;
    border-radius: 6px;
    display: inline-block;
    border: 3px solid var(--crayon-red);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.schedule-table {
    width: 100%;
    border: 4px solid var(--crayon-blue);
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.schedule-table th {
    background: linear-gradient(135deg, var(--crayon-red) 0%, #FF8A80 100%);
    color: white;
    padding: 16px;
    font-size: 0.95rem;
    text-align: left;
    border: 2px solid var(--crayon-yellow);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule-table td {
    padding: 14px 16px;
    color: var(--crayon-black);
    font-size: 0.9rem;
    border: 2px solid var(--crayon-doodle);
    background: white;
}

.schedule-table tr:nth-child(even) td {
    background-color: rgba(255, 248, 225, 0.5);
}

.schedule-table tr:hover td {
    background-color: rgba(255, 214, 0, 0.3);
    transition: all var(--animation-fast) ease;
}

.download-btn {
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--crayon-green) 0%, #81C784 100%);
    color: white;
    border: 3px solid var(--crayon-blue);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all var(--animation-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--crayon-yellow) 0%, #FFEE58 100%);
    color: var(--crayon-red);
    transform: translate(-2px, -2px);
    box-shadow: var(--button-shadow);
}

/* 底部下载按钮 */
.bottom-download {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.bottom-download-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--crayon-green) 0%, #81C784 100%);
    color: white;
    border: 3px solid var(--crayon-blue);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all var(--animation-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bottom-download-btn:hover {
    background: linear-gradient(135deg, var(--crayon-yellow) 0%, #FFEE58 100%);
    color: var(--crayon-red);
    transform: translate(-2px, -2px);
    box-shadow: var(--button-shadow);
}

/* 页脚 */
.plan-footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    font-size: 0.8rem;
    padding: 20px;
    background: linear-gradient(135deg, var(--crayon-blue) 0%, #64B5F6 100%);
    border-radius: 8px;
    border: 4px solid var(--crayon-yellow);
}

.plan-footer p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.plan-footer .magic-tip {
    color: var(--crayon-highlight);
    margin-top: 15px;
    font-size: 0.85rem;
}

/* 动漫人物 */
/* 动漫人物容器 - 放大并置于最上层 */
.anime-character {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 500px; /* 放大宽度 */
    height: 550px; /* 放大高度，按比例 */
    z-index: 9999; /* 置于最上层 */
    pointer-events: none;
}
/* ==================== 气泡框样式 ==================== */
.speech-bubble {
    position: absolute;
    top: -120px; /* 在人物上方 */
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--crayon-yellow) 0%, #FFEE58 100%);
    color: var(--crayon-red);
    padding: 15px 25px;
    border-radius: 20px;
    border: 4px solid var(--crayon-red);
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Segoe Print', cursive;
    text-align: center;
    white-space: nowrap;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 8px 20px rgba(255, 82, 82, 0.3),
        0 0 25px rgba(255, 214, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

/* 气泡框显示状态 */
.speech-bubble.show {
    opacity: 1;
    visibility: visible;
    top: -130px;
    transform: translateX(-50%) scale(1.05);
}

/* 气泡箭头 */
.bubble-arrow {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--crayon-yellow);
    filter: drop-shadow(0 4px 2px rgba(255, 82, 82, 0.2));
}

.bubble-arrow::before {
    content: '';
    position: absolute;
    top: -19px;
    left: -14px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid var(--crayon-red);
    z-index: -1;
}

/* 添加一个轻微摇摆动画 */
@keyframes bubbleWiggle {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(1deg); }
    75% { transform: translateX(-50%) rotate(-1deg); }
}

.speech-bubble.show {
    animation: bubbleWiggle 2s ease-in-out infinite;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .speech-bubble {
        font-size: 1rem;
        padding: 12px 20px;
        top: -110px;
    }
    
    .speech-bubble.show {
        top: -120px;
    }
}

@media (max-width: 768px) {
    .speech-bubble {
        font-size: 0.9rem;
        padding: 10px 16px;
        top: -100px;
        white-space: normal;
        width: 180px;
    }
    
    .speech-bubble.show {
        top: -110px;
    }
    
    .bubble-arrow {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid var(--crayon-yellow);
        bottom: -12px;
    }
    
    .bubble-arrow::before {
        top: -15px;
        left: -11px;
        border-left: 11px solid transparent;
        border-right: 11px solid transparent;
        border-top: 11px solid var(--crayon-red);
    }
}

@media (max-width: 480px) {
    .speech-bubble {
        font-size: 0.8rem;
        padding: 8px 14px;
        top: -90px;
        width: 160px;
    }
    
    .speech-bubble.show {
        top: -100px;
    }
}

/* 人物图像 */
.character {
    width: 100%;
    height: 100%;
    background-image: url('character.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    animation: characterFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 214, 0, 0.7)); /* 加强发光效果 */
}

/* 确保人物图片在其他元素之上 */
.main-content * {
    position: relative;
    z-index: auto;
}

.content-area {
    position: relative;
    z-index: 1;
}

/* 确保进入界面中的元素在人物图片之下 */
.entry-screen * {
    position: relative;
    z-index: 10; /* 比人物图片低 */
}

/* 调整漂浮动画 */
@keyframes characterFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(1.5deg); } /* 加大浮动幅度 */
    50% { transform: translateY(-15px) rotate(-1.5deg); }
    75% { transform: translateY(-10px) rotate(0.8deg); }
}

/* 呼吸效果也相应放大 */
.character::before {
    content: '';
    position: absolute;
    bottom: -15px; /* 调整位置 */
    left: 50%;
    transform: translateX(-50%);
    width: 200px; /* 进一步放大呼吸圈 */
    height: 30px;
    background: radial-gradient(ellipse at center, 
        rgba(66, 165, 245, 0.4) 0%,
        rgba(66, 165, 245, 0.2) 30%,
        rgba(66, 165, 245, 0.1) 60%,
        transparent 80%);
    border-radius: 50%;
    animation: breath 6s ease-in-out infinite;
    filter: blur(8px); /* 增加模糊效果 */
    z-index: -1;
}


/* 响应式设计 */
@media (max-width: 992px) {
    .anime-character {
        width: 250px;
        height: 375px;
    }
    
    .character::before {
        width: 180px;
        height: 25px;
    }
}

@media (max-width: 768px) {
    .anime-character {
        width: 200px;
        height: 300px;
        right: 15px;
        bottom: 15px;
    }
    
    .character::before {
        width: 150px;
        height: 20px;
    }
    
    /* 调整小新一家图片在移动端的大小 */
    .castle-icon {
        width: 50vw;
        height: 50vh;
    }
}

@media (max-width: 480px) {
    .anime-character {
        width: 160px;
        height: 240px;
        right: 10px;
        bottom: 10px;
    }
    
    .character::before {
        width: 120px;
        height: 15px;
    }
    
    /* 调整小新一家图片在移动端的大小 */
    .castle-icon {
        width: 70vw;
        height: 70vh;
    }
}

@media (max-width: 992px) {
    .sidebar {
        width: 200px;
    }
    
    .content-area {
        margin-left: 200px;
        padding: 25px;
    }
    
    .entry-title {
        font-size: 2.2rem;
    }
    
    .entry-subtitle {
        font-size: 1rem;
        padding: 15px;
    }
    
    .castle-icon {
        width: 40vw;
        height: 40vh;
    }
}

@media (max-width: 768px) {
    .entry-screen {
        padding: 15px;
    }
    
    .castle-icon {
        width: 50vw;
        height: 50vh;
        margin-bottom: 20px;
    }
    
    .castle-fallback {
        font-size: 4rem;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-subtitle {
        font-size: 0.9rem;
        padding: 15px;
    }
    
    .enter-btn {
        padding: 16px 40px;
        font-size: 1.2rem;
    }
    
    /* 移动端改为上下布局 */
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 4px solid var(--crayon-red);
    }
    
    .content-area {
        margin-left: 0;
        padding: 20px;
    }
    
    .compact-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .compact-avatar {
        flex: 0 0 120px;
        height: 120px;
        font-size: 3rem;
    }
    
    .anime-character {
        width: 150px;
        height: 220px;
        right: 10px;
        bottom: 10px;
    }
    
    .custom-cursor {
        display: none !important;
    }
    
    .touch-feedback {
        display: block;
    }
    
    /* 计划页面响应式 */
    .plan-container {
        padding: 15px;
    }
    
    .plan-title {
        font-size: 1.4rem;
    }
    
    .plan-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .plan-buttons {
        justify-content: center;
    }
    
    .options-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .date-badge {
        margin-right: 0;
    }

    .schedule-table {
        font-size: 0.8rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 10px;
    }
    
    .schedule-header h3 {
        font-size: 1.2rem;
    }

    .schedule-image {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.5rem;
        padding: 10px 20px;
    }
    
    .entry-subtitle {
        font-size: 0.8rem;
        padding: 12px;
    }
    
    .castle-icon {
        width: 70vw;
        height: 70vh;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .section-header {
        font-size: 1.3rem;
    }
    
    .compact-contact-grid {
        grid-template-columns: 1fr;
    }
    
    .anime-character {
        width: 120px;
        height: 180px;
    }
    
    /* 计划页面响应式 */
    .plan-title {
        font-size: 1.2rem;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-tabs {
        flex-direction: column;
    }
    
    .time-tab {
        border-right: none;
        border-bottom: 2px solid var(--crayon-pink);
    }
    
    .time-tab:last-child {
        border-bottom: none;
    }
    
    .plan-btn, .filter-btn, .clear-slot-btn, .download-btn, .bottom-download-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .schedule-table {
        display: block;
        overflow-x: auto;
    }
    
    .schedule-header h3 {
        font-size: 1rem;
    }
}
/* ==================== 联络小白页面样式 ==================== */
.contact-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--crayon-highlight) 0%, #FFF9C4 100%);
    border-radius: 10px;
    border: 3px solid var(--crayon-blue);
}

.contact-intro p {
    margin-bottom: 10px;
}

/* 联系表单样式 */
.contact-form-section {
    margin-top: 40px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    border: 4px solid var(--crayon-green);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: var(--crayon-blue);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 3px solid var(--crayon-doodle);
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all var(--animation-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--crayon-blue);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background: linear-gradient(135deg, var(--crayon-green) 0%, #81C784 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: all var(--animation-fast);
    border: 3px solid var(--crayon-blue);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--crayon-blue) 0%, #64B5F6 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ==================== 春日部相册样式 ==================== */
.gallery-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.1) 0%, rgba(255, 214, 0, 0.2) 100%);
    border-radius: 10px;
    border: 3px dashed var(--crayon-yellow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid var(--crayon-pink);
    transition: all var(--animation-fast);
    text-align: center;
    padding-bottom: 15px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--crayon-red);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    height: 150px;
    background: linear-gradient(135deg, var(--crayon-blue) 0%, var(--crayon-pink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.gallery-image i {
    font-size: 3.5rem;
    color: white;
}

.gallery-item h3 {
    font-size: 1rem;
    color: var(--crayon-red);
    margin-bottom: 8px;
    padding: 0 10px;
}

.gallery-item p {
    font-size: 0.8rem;
    color: var(--crayon-black);
    padding: 0 10px;
    line-height: 1.4;
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .gallery-image {
        height: 120px;
    }
    
    .gallery-image i {
        font-size: 2.5rem;
    }
    
    .contact-form {
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .gallery-image {
        height: 100px;
    }
    
    .gallery-image i {
        font-size: 2rem;
    }
    
    .contact-form-section {
        padding: 15px;
    }
}
/* 小新跑步容器样式 */
.running-shinchan {
    margin-top: 30px;
    position: relative;
    animation: runAnimation 3s infinite alternate ease-in-out;
}

/* 小新图片样式 */
.shinchan-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 214, 0, 0.7));
}

/* 跑步文字 */
.running-text {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--crayon-red);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid var(--crayon-yellow);
    white-space: nowrap;
    animation: textBounce 1s infinite alternate;
}

/* 跑步动画 */
@keyframes runAnimation {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
    100% {
        transform: translateX(-20px);
    }
}

/* 确保小新跑步图片总是朝向右边 */
.shinchan-img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 214, 0, 0.7));
    transform: scaleX(1); /* 确保不翻转 */
}

/* 文字跳动动画 */
@keyframes textBounce {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-5px);
    }
}
@media (max-width: 768px) {
    .running-shinchan {
        margin-top: 20px;
    }
    
    .shinchan-img {
        width: 120px;
    }
    
    .running-text {
        font-size: 0.7rem;
        top: -25px;
    }
    
    .anime-character {
        width: 150px;
        height: 220px;
        right: 10px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .shinchan-img {
        width: 100px;
    }
    
    .running-text {
        font-size: 0.6rem;
        top: -20px;
        padding: 3px 8px;
    }
    
    .anime-character {
        width: 120px;
        height: 180px;
    }
}
/* ==================== 布局修复 ==================== */

/* 确保主内容正确显示 */
.main-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: none; /* 默认隐藏，由JavaScript控制显示 */
}

/* 确保侧边栏不会影响内容区域 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* 确保内容区域宽度正确计算 */
.content-area {
    width: calc(100% - 250px); /* 计算剩余宽度 */
    margin-left: 250px;
    box-sizing: border-box;
}

/* 修复内容容器布局 */
.content-container {
    width: 100%;
    display: none;
}

.content-container.active {
    display: block;
    width: 100%;
}

/* 修复计划容器 */
.plan-container {
    width: 100%;
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto;
    box-sizing: border-box;
}

/* 修复介绍页面内容 */
.compact-profile {
    width: 100%;
    box-sizing: border-box;
}

/* 确保所有盒模型一致 */
* {
    box-sizing: border-box;
}

/* 特殊修复：防止内容溢出 */
body {
    overflow-x: hidden;
}

/* 修复表格在移动端的显示 */
@media (max-width: 768px) {
    .content-area {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .plan-container {
        padding: 15px !important;
    }
    
    .content-section {
        padding: 20px !important;
        margin: 15px 0 !important;
    }
}

/* 确保在桌面端布局正确 */
@media (min-width: 769px) {
    .main-content {
        display: none; /* 由JavaScript控制 */
    }
    
    .main-content.active {
        display: block;
    }
}
/* ==================== 小新掉落特效样式 ==================== */
.shinobu-fall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
    /* 启用硬件加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.shinobu-fall {
    position: absolute;
    width: 50px; /* 减小大小 */
    height: 50px;
    background-image: url('小新.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 99999;
    pointer-events: none;
    /* 使用GPU加速 */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform, opacity;
    /* 添加平滑的贝塞尔曲线 */
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* 提升动画性能 */
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
}

/* 基础掉落动画 */
@keyframes shinobuFall {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        transform: translateY(5vh) rotate(5deg) scale(0.7);
        opacity: 1;
    }
    30% {
        transform: translateY(20vh) rotate(-3deg) scale(0.8);
        opacity: 0.9;
    }
    50% {
        transform: translateY(40vh) rotate(8deg) scale(0.9);
        opacity: 0.8;
    }
    70% {
        transform: translateY(70vh) rotate(-6deg) scale(0.8);
        opacity: 0.7;
    }
    85% {
        transform: translateY(85vh) rotate(4deg) scale(0.7);
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(15deg) scale(0.6);
        opacity: 0;
    }
}

/* 奇数编号的旋转相反 */
.shinobu-fall:nth-child(odd) {
    animation-name: shinobuFallOdd;
}

@keyframes shinobuFallOdd {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        transform: translateY(5vh) rotate(-5deg) scale(0.7);
        opacity: 1;
    }
    30% {
        transform: translateY(20vh) rotate(3deg) scale(0.8);
        opacity: 0.9;
    }
    50% {
        transform: translateY(40vh) rotate(-8deg) scale(0.9);
        opacity: 0.8;
    }
    70% {
        transform: translateY(70vh) rotate(6deg) scale(0.8);
        opacity: 0.7;
    }
    85% {
        transform: translateY(85vh) rotate(-4deg) scale(0.7);
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(-15deg) scale(0.6);
        opacity: 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .shinobu-fall {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .shinobu-fall {
        width: 30px;
        height: 30px;
    }
}

/* ==================== 新标题和按钮框样式 ==================== */
.title-box {
    background: linear-gradient(135deg, rgba(255, 248, 225, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
    border: 6px solid var(--crayon-red);
    border-radius: 20px;
    padding: 30px 40px;
    margin-bottom: 30px;
    box-shadow: 
        0 10px 30px rgba(255, 82, 82, 0.3),
        0 0 40px rgba(255, 214, 0, 0.4);
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
    transform: perspective(1000px) rotateX(5deg); /* 添加3D倾斜效果 */
    transition: all 0.3s ease;
}

.title-box:hover {
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 
        0 15px 40px rgba(255, 82, 82, 0.4),
        0 0 50px rgba(255, 214, 0, 0.6);
}

.title-box::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 3px dashed var(--crayon-yellow);
    border-radius: 24px;
    z-index: -1;
    animation: borderGlow 3s infinite alternate;
}

@keyframes borderGlow {
    0% {
        border-color: var(--crayon-yellow);
        box-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
    }
    100% {
        border-color: var(--crayon-pink);
        box-shadow: 0 0 20px rgba(255, 128, 171, 0.6);
    }
}

.button-box {
    background: linear-gradient(135deg, rgba(66, 165, 245, 0.9) 0%, rgba(100, 181, 246, 0.9) 100%);
    border: 5px solid var(--crayon-yellow);
    border-radius: 15px;
    padding: 20px 30px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(66, 165, 245, 0.4);
    position: relative;
    z-index: 1;
    transform: perspective(1000px) rotateX(-5deg); /* 添加相反的3D倾斜效果 */
    transition: all 0.3s ease;
}

.button-box:hover {
    transform: perspective(1000px) rotateX(0deg);
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(66, 165, 245, 0.6);
}

.button-box::before {
    content: '✦ ✦ ✦';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--crayon-red);
    font-size: 1.2rem;
    background: white;
    padding: 0 15px;
    border-radius: 10px;
    border: 2px solid var(--crayon-yellow);
}

/* 修改按钮样式以匹配新框 */
.enter-btn {
    background: linear-gradient(135deg, var(--crayon-red) 0%, #FF8A80 100%);
    color: white;
    border: none;
    padding: 20px 80px; /* 加宽按钮 */
    font-size: 1.8rem; /* 增大字体 */
    font-weight: bold;
    cursor: pointer;
    transition: all var(--animation-fast);
    text-transform: uppercase;
    letter-spacing: 3px; /* 增加字间距 */
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 8px 0 var(--crayon-orange), 0 15px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Arial Rounded MT Bold', 'Comic Sans MS', '微软雅黑', sans-serif;
}

.enter-btn:hover {
    background: linear-gradient(135deg, #FF7043 0%, var(--crayon-red) 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 0 var(--crayon-orange),
        0 20px 30px rgba(0, 0, 0, 0.2);
    letter-spacing: 4px; /* 悬停时增加字间距 */
}

.enter-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 
        0 5px 0 var(--crayon-orange),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .title-box {
        padding: 25px 30px;
        max-width: 90%;
    }
    
    .entry-title {
        font-size: 2.2rem;
    }
    
    .entry-subtitle {
        font-size: 1.1rem;
    }
    
    .button-box {
        padding: 15px 25px;
    }
    
    .enter-btn {
        padding: 18px 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .title-box {
        padding: 20px 25px;
        margin-bottom: 20px;
        transform: none;
    }
    
    .title-box:hover {
        transform: translateY(-5px);
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .entry-subtitle {
        font-size: 1rem;
    }
    
    .button-box {
        padding: 15px 20px;
        transform: none;
    }
    
    .button-box:hover {
        transform: translateY(-5px);
    }
    
    .enter-btn {
        padding: 16px 40px;
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .title-box {
        padding: 15px 20px;
        border-width: 4px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-subtitle {
        font-size: 0.9rem;
    }
    
    .button-box {
        padding: 10px 15px;
        border-width: 3px;
    }
    
    .enter-btn {
        padding: 14px 30px;
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
}
/* ==================== 字体增大优化 ==================== */
:root {
    /* 新增字体大小变量 */
    --font-size-base: 18px;
    --font-size-large: 1.3rem;
    --font-size-medium: 1.1rem;
    --font-size-small: 0.95rem;
}

/* 在body选择器中添加 */
body {
    font-size: var(--font-size-base);
}
/* 底部控制面板 */
.plan-controls.bottom-controls {
    margin-top: 40px;
    background: linear-gradient(135deg, var(--crayon-green) 0%, #66BB6A 100%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .schedule-title-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .schedule-title-avatar {
        width: 50px;
        height: 50px;
    }
    
    .schedule-header h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .schedule-title-avatar {
        width: 40px;
        height: 40px;
    }
    
    .schedule-header h3 {
        font-size: 1.2rem;
    }
}