* {
    padding: 0;
    margin: 0;
}
header {
    background-color: #231c1a;
    height: 80px;
    width: 100%;
    position: relative;
}
h1{
    color: white;
    position: absolute;
    left: 120px;
    top: 0;
    line-height: 80px;
}
.news {
    background-color: antiquewhite;
    color: white;
    height:85vh;
    background-image: url("images/p3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.news h2{
    font-size: 60px;
    color: #000000;
}
.news p{
    color: #adadad;
    font-size: 18px;
    margin: 25px 0;
}
.news a{
    color: #000000;
    text-decoration: none;
    border: 1px solid#000000;
    padding: 10px 20px;
    border-radius: 5px;
}
.slogan{
    background-color: #485652;
    color: white;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    line-height: 1.8em;
}
footer{
    background-color: #000000;
    color: #b7b7b7;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.cube{
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }
        
        body {
            background-color: #f9fafb;
            padding: 20px;
        }
        
        .container {
            max-width: 800px;
            margin: 0 auto;
        }
        
        /* 标题样式 - 移除了图例 */
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 1rem;
        }
        
        /* 网格容器 */
        .grid-container {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 5px;
            background-color: white;
            padding: 1rem;
            border-radius: 0.75rem;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        }
        @media(max-width:1024px){
            .container{
                max-width: 90%;
            }
            .grid-container{
                grid-template-columns: repeat(8,1fr);
            }
        }
        @media(max-width:768px){
            .section-title{
                font-size: 1.2rem;
            }
            .grid-container{
                grid-template-columns: repeat(4,1fr);
                gap:4px;
                padding: 0.75rem;
            }
        }
        @media(max-width:480px){
            body{
                padding: 10px;
            }
            .grid-container{
                grid-template-columns: repeat(2,1fr);
                border-radius: 0.5rem;
            }
        }
        
        /* 方块样式 - 所有方块统一为有回忆的样式 */
        .day-square {
            aspect-ratio: 1/1;
            border-radius: 4px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            transition: all 0.2s ease;
            background-color: #EEF2FF;
            border: 2px solid #6366F1;
            cursor: pointer;
        }
        
        .day-square:hover {
            transform: scale(1.05);
        }
        
        .day-number {
            font-weight: 600;
            color: #6366F1;
        }
        
        .day-date {
            font-size: 0.7rem;
            color: #6b7280;
            margin-top: 2px;
        }
        
        .play-icon {
            font-size: 0.6rem;
            color: #6366F1;
            margin-top: 1px;
        }

        /* 模态框样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            background-color: white;
            border-radius: 0.75rem;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 1.5rem;
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }
        
        .modal-overlay.active .modal-content {
            transform: scale(1);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #e5e7eb;
        }
        
        .modal-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: #6366F1;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: #6b7280;
        }
        
        .modal-body {
            margin-bottom: 1rem;
        }
        
        .modal-section {
            margin-bottom: 1.5rem;
        }
        
        .modal-section-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .date-info {
            color: #6b7280;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }
        
        .media-container {
            width: 100%;
            border-radius: 0.5rem;
            overflow: hidden;
            background-color: #f9fafb;
        }
        
        video, audio {
            width: 100%;
            display: block;
        }
        
        .memory-text {
            background-color: #EEF2FF;
            padding: 1rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
            color: #1f2937;
        }