* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    font-family: "Comic Sans MS", "Chalkboard SE", "幼圆", "Yuanti SC", "cursive", sans-serif;
    background-color: #fde9d0;
    background-image:
        radial-gradient(circle at 15% 30%, #ffe4b5 6px, transparent 6px),
        radial-gradient(circle at 85% 70%, #ffd7a5 10px, transparent 10px),
        radial-gradient(circle at 40% 80%, #ffc9a2 8px, transparent 8px),
        linear-gradient(135deg, #fff1da 0%, #ffe1c6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    line-height: 1.4;
    color: #352211;
}

.cartoon-panel {
    max-width: 1300px;
    width: 100%;
    background-color: rgba(255, 245, 232, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 70px 70px 70px 70px / 60px 60px 60px 60px;
    padding: 2.5rem 2rem;
    box-shadow: 0 18px 0 #af8f6b, 0 25px 30px -8px rgba(80, 40, 10, 0.3);
    border: 4px solid #835e3a;
    transition: all 0.2s ease;
}

.title-section {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.title-section h1 {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
    font-weight: 800;
    letter-spacing: 2px;
    color: #5a3a22;
    text-shadow: 2px 2px 0 #ffcf9c, 4px 4px 0 #a9744e;
    background: #fff3bf;
    display: inline-block;
    padding: 0.4rem 2rem 0.8rem 2rem;
    border-radius: 100px 40px 100px 40px;
    border: 5px solid #402b16;
    transform: rotate(-1deg);
    box-shadow: 0 12px 0 #5f422b;
}

.title-section h1 i {
    color: #bb5e00;
    font-size: 0.9em;
    margin-right: 0.3rem;
}

.card-deck {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem 2rem;
    margin: 1.5rem 0 2.5rem 0;
}

.module-card {
    flex: 1 1 200px;
    max-width: 280px;
    min-width: 200px;
    background: #fcf3e0;
    border: 5px solid #2e1d10;
    border-radius: 50px 25px 50px 25px;
    box-shadow: 12px 12px 0 #402d1b, 0 10px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem 1rem 1.8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    transform: rotate(0deg);
    backdrop-filter: blur(2px);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.module-card:nth-child(odd) {
    transform: rotate(0.8deg);
}

.module-card:nth-child(even) {
    transform: rotate(-0.5deg);
}

.module-card:hover {
    transform: translate(-6px, -6px) rotate(0deg) scale(1.02);
    box-shadow: 18px 18px 0 #2e1b0c, 0 18px 25px -5px #6b4b2e;
    border-color: #ad6d3d;
    background-color: #fff9ed;
}

.module-card i {
    font-size: 5rem;
    margin-bottom: 1.3rem;
    filter: drop-shadow(4px 6px 0 #cd9f72);
    transition: transform 0.2s;
    color: #3f280e;
}

.module-card:hover i {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(6px 8px 0 #aa7b4c);
}

.module-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background-color: #fff0b5;
    padding: 0.2rem 1.2rem 0.5rem 1.2rem;
    border-radius: 40px 15px 40px 15px;
    border: 3px solid #352211;
    margin-top: 0.4rem;
    margin-bottom: 0;
    box-shadow: inset 0 -4px 0 #b38b60, 0 6px 0 #4e3620;
    letter-spacing: 1px;
    color: #2d1c0b;
    display: inline-block;
}

.module-card:nth-child(1) i {
    color: #3d7a3d;
}

.module-card:nth-child(2) i {
    color: #c45a2c;
}

.module-card:nth-child(3) i {
    color: #3a6ea5;
}

.module-card:nth-child(4) i {
    color: #954f6b;
}

.extend-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.7rem;
    background-color: #e6d7bd;
    border: 4px dashed #a77d55;
    border-radius: 80px 30px 80px 30px;
    padding: 0.8rem 2.5rem;
    margin-top: 2rem;
    color: #3b2b17;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 0 #9b7b5b;
    transition: 0.2s;
}

.extend-tip i {
    font-size: 2.8rem;
    color: #856b42;
    filter: drop-shadow(2px 4px 0 #dbb486);
}

.extend-tip span {
    font-weight: 700;
}

.extend-tip:hover {
    background-color: #f3e4ca;
    border-style: solid;
    border-color: #a5622b;
    box-shadow: 0 10px 0 #7b562e;
    transform: translateY(-3px);
}

/* 移动端优化 */
@media screen and (max-width: 600px) {
    .cartoon-panel {
        padding: 1.5rem 1rem;
        border-radius: 40px 40px 40px 40px;
    }

    .module-card {
        max-width: 260px;
        flex-basis: 180px;
        padding: 1.5rem 0.8rem;
    }

    .module-card i {
        font-size: 4rem;
    }

    .module-card h2 {
        font-size: 1.8rem;
    }

    .title-section h1 {
        font-size: 2.2rem;
    }

    .extend-tip {
        font-size: 1.4rem;
        padding: 0.5rem 1.5rem;
    }

    .extend-tip i {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 380px) {
    .module-card {
        min-width: 150px;
    }
}

::-webkit-scrollbar {
    width: 18px;
    background-color: #fcd5a5;
}

::-webkit-scrollbar-thumb {
    background: #bf8f64;
    border-radius: 30px;
    border: 4px solid #ffeac2;
}