/* ===== 变量定义 ===== */
:root {
    --primary-color: #15b7ff;
    --secondary-color: rgba(255, 0, 136, 0.44);
    --text-color: #333;
    --box-bg-1: #f0f0f0ad;
    --box-bg-2: #afffddad;
    --box-bg-3: rgba(219, 175, 255, 0.68);
    --box-bg-4: rgba(175, 236, 255, 0.68);
    --border-radius: 10px;
    --box-padding: 20px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

title{
    font-size: 20px;
}

/* ===== 基础样式 ===== */
* {
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MyCustomFont', Arial, sans-serif;
    font-weight: normal;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--primary-color);
    background-image: url("../icon-images/background-image.svg");
    background-repeat: repeat;
    background-size: cover;
    min-height: 100vh;
}

/* ===== 排版 ===== */
header {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    margin: 0 auto;
}

h1 {
    margin: 15px 0;
}

h3 {
    font-size: clamp(1rem, 1.8vw, 1.5rem);
    margin-bottom: 0.5rem;
}

h4 {
    margin: 5px 0;
}

/* ===== 通用容器样式 ===== */
.container, .you-box, .hobby, .achievement, .button, .video, .furry-img {
    border-radius: var(--border-radius);
    padding: var(--box-padding);
    width: 80%;
    min-width: 250px;
    margin: 20px auto;
    position: relative;
    box-shadow: var(--box-shadow);
}

.container {
    background-color: var(--secondary-color);
    height: 100%;
}

.you-box {
    background-color: var(--box-bg-1);
    min-height: 180px;
    display: flex;
    align-items: center;
}

.hobby, .button {
    background-color: var(--box-bg-2);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.achievement {
    background-color: var(--box-bg-3);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video {
    background-color: var(--box-bg-4);
    max-width: 80%;
    aspect-ratio: 16/9;
}

/* ===== 头像样式 ===== */
.avatar {
    position: relative;
    width: 50%;
}

.avatar2 {
    border-radius: var(--border-radius);
    position: absolute;
    width: 30%;
    height: auto;
    top: -80px;
    left: 100%;
    max-width: 130px;
    min-width: 100px;
}

.avatar2,.container，.button-img,.button-img2{
    pointer-events: none;
    user-select: none;
}

.name {
    width: 300px;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

/* ===== 兴趣项样式 ===== */
.hobby-item {
    background-color: rgba(240, 240, 240, 0.55);
    padding: 0.7rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
}

/* ===== 按钮样式 ===== */
.toggle-btn {
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9375rem;
    margin-top: 0.9375rem;
    width: 100%;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.hobby .toggle-btn {
    background-color: #4CAF50;
}

.achievement .toggle-btn {
    background-color: rgba(153, 0, 255, 0.9);
}

.toggle-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
    z-index: -1;
}

/* ===== 图片样式 ===== */
.button-img {
    width: 120px;
    height: 50px;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.button-img2 {
    width: 35vw;
    height: 35vw;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.video1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* ===== 轮播组件 ===== */
.carousel-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 450px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-content {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    width: 100%;
    padding: 1.5625rem;
    text-align: center;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-controls {
    opacity: 1;
}

.carousel-controls button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5625rem;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-indicators .indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: white;
    transition: width 0.3s ease;
}

/* 指示器激活状态 */
.carousel-indicators .indicator.active {
    background: #00a6ff;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
}

/* 平滑过渡效果 */
.indicator {
    transition: all 0.3s ease;
}

/* ===== 交互效果 ===== */
@media (hover: hover) {
    .hobby-item:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        background-color: rgba(240, 240, 240, 0.8);
    }

    .toggle-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .hobby .toggle-btn:hover {
        background-color: #45a049;
    }

    .achievement .toggle-btn:hover {
        background-color: rgba(169, 115, 205, 0.9);
    }

    .toggle-btn:hover::after {
        animation: ripple 0.6s ease-out;
    }
}

.hobby-item:active, .toggle-btn:active {
    transform: scale(0.98);
}

.toggle-btn:active::after {
    animation: ripple 0.4s ease-out;
}

.hobby .toggle-btn:active {
    background-color: #3d8b40;
}

.achievement .toggle-btn:active {
    background-color: rgba(149, 95, 185, 0.9);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('../myfont.ttfdata.ttf') format('woff2'),
    url('../myfont.ttfdata.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 优化字体加载体验 */
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .container, .you-box, .hobby, .achievement, .button, .video, .furry-img {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .carousel-container,
    .carousel-slides {
        height: 400px;
    }

    .carousel-controls button {
        width: 40px;
        height: 40px;
        margin: 0 15px;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h3 {
        font-size: 1.25rem;
    }

    .avatar2 {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto 1rem;
        width: 100px;
    }

    .you-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        background-size: auto;
    }

    .container, .you-box, .hobby, .achievement, .button, .video, .furry-img {
        width: 80%;
        padding: 15px;
    }

    .carousel-container,
    .carousel-slides {
        height: 350px;
    }

    .carousel-controls button {
        width: 36px;
        height: 36px;
        margin: 0 10px;
        font-size: 1rem;
    }

    .slide-content {
        padding: 15px;
    }

    .slide-content h3 {
        font-size: 1.125rem;
    }

    .slide-content p {
        font-size: 0.875rem;
    }

    .carousel-indicators .indicator {
        width: 12px;
        height: 12px;
    }

    .hobby-item {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .toggle-btn {
        padding: 0.875rem;
        font-size: 0.875rem;
        min-height: 48px;
    }
}

/* ===== 辅助类 ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === 大幅浮动动画 === */
@keyframes big-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(30px) rotate(-5deg);
    }
}

@keyframes big-float-reverse {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(30px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* === 大幅浮动爪印 === */
.furry-paw {
    position: fixed;
    font-size: 3rem; /* 增大尺寸 */
    opacity: 0.8;
    z-index: -1;
    animation: big-float 8s ease-in-out infinite;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
}

.furry-paw1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
    animation-name: big-float-reverse;
}

.furry-paw2 {
    top: 65%;
    left: 80%;
    animation-delay: 1s;
    font-size: 4rem; /* 更大尺寸 */
}

.furry-paw3 {
    top: 30%;
    left: 85%;
    animation-delay: 2s;
    font-size: 2.5rem;
}

/* === 浮动毛球 === */
.furry-fluff {
    position: fixed;
    width: 40px;
    height: 40px;
    background: rgba(238, 255, 0, 0.74);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
    animation: fluff-float 6s ease-in-out infinite;
}

.furry-fluff1 {
    top: 80%;
    left: 10%;
    animation-delay: 0s;
}

.furry-fluff2 {
    top: 20%;
    left: 90%;
    animation-delay: 3s;
}

@keyframes fluff-float {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-40px) scale(1.2); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(40px) scale(0.8); }
}

/* === 响应式调整 === */
@media (max-width: 768px) {
    .furry-paw {
        font-size: 2rem;
    }

    .furry-paw2 {
        font-size: 3rem;
    }

    .furry-tail {
        width: 80px;
        right: -20px;
    }
}
/* 音乐播放器样式 */
.music-player {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    /* 添加轻微浮动效果 */
    animation: float 3s ease-in-out infinite;
}

.record-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* 添加3D透视效果 */
    perspective: 1000px;
}

.record {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:
            radial-gradient(circle at center, #73528a, #5500ff, #ff00fb),
            repeating-radial-gradient(circle at center, #fff 0%, #fff 1%, transparent 1%, transparent 3%);
    background-size: 100%, 100% 100%;
    position: relative;
    box-shadow:
            0 0 10px rgba(0,0,0,0.5),
            0 0 20px rgba(85, 0, 255, 0.3);
    /* 唱片旋转动画 */
    animation:
            spin 5s linear infinite,
            pulse 2s ease-in-out infinite;
    animation-play-state: paused;
    /* 3D效果 */
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

/* 唱片悬停效果 */
.record:hover {
    transform: scale(1.1) rotateY(10deg);
    box-shadow:
            0 0 15px rgba(0,0,0,0.7),
            0 0 30px rgba(85, 0, 255, 0.5);
}

.record-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid #ccc;
    /* 中心点闪烁效果 */
    animation: center-pulse 2s ease-in-out infinite;
}

.record-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.9);
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* 控制面板弹出动画 */
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition:
            opacity 0.3s ease,
            transform 0.3s ease;
}

/* 悬停时显示控制面板 */
.record-container:hover .record-controls {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.record-btn {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #1521ff;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    /* 按钮呼吸效果 */
    animation: btn-pulse 2s ease-in-out infinite;
}

.record-btn:hover {
    transform: scale(1.2);
    background: #ff00fb;
    animation: none; /* 悬停时停止呼吸效果 */
}

.volume-slider {
    width: 70px;
    height: 4px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    /* 音量条动画 */
    transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #1544ff;
    border-radius: 50%;
    cursor: pointer;
    /* 滑块悬停效果 */
    transition: all 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    background: #ff00fb;
    transform: scale(1.3);
}

/* ===== 新增动画关键帧 ===== */

/* 唱片旋转动画 */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 整体浮动效果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 唱片脉动效果 */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(0,0,0,0.5), 0 0 20px rgba(85, 0, 255, 0.3); }
    50% { box-shadow: 0 0 15px rgba(0,0,0,0.7), 0 0 30px rgba(85, 0, 255, 0.5); }
}

/* 中心点脉动效果 */
@keyframes center-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* 按钮脉动效果 */
@keyframes btn-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(21, 33, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 10px rgba(21, 33, 255, 0.6); }
}

/* 点击唱片时的动画 */
@keyframes record-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* 响应式调整 */
.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.main-btn {
    width: 80%;
    height: 80px;
    background: linear-gradient(45deg, #9a4008, #ff6200);
    border-radius: 20px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.5);
    margin: 30px auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 0, 51, 0.7);
}

.main-btn-text {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
}

/* 模态窗口样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 25px;
}

.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.sub-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(0, 129, 255, 0.43);
    border-radius: 12px;
    text-decoration: none;
    color: #444;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.sub-btn:hover {
    background: #0b7ded;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sub-btn i {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.sub-btn span {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.instructions {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.avatar3{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.no-furry-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 1.2rem;
}

.warn{
    text-align: center;
}

.demo-area {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
}

.demo-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.demo-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.demo-image:hover img {
    transform: scale(1.03);
}

.position-test {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 15px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.grid-cell {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.grid-cell:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-menu {
    position: fixed;
    background: rgb(120, 158, 255);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    display: none;
    z-index: 1000;
    min-width: 200px;
    color: #333;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.custom-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.custom-menu-item:hover {
    background: rgba(26, 42, 108, 0.1);
}

.custom-menu-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    display: none;
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.mouse-position {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    display: none;
    z-index: 1002;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .custom-menu {
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .custom-menu {
        min-width: 160px;
        font-size: 13px;
    }

    .custom-menu-item {
        padding: 8px 16px;
    }
}

