/* 全局样式 */
body {
    margin: 0;
    padding: 40px;
    font-family: "Segoe UI", sans-serif;

    /* 背景图，可替换路径或用网络图片 */
    background: url("images/bg.jpg") no-repeat center center fixed;
    background-size: cover;

    color: #fff;
}

/* 标题：自适应优化 */
h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: clamp(20px, 6vw, 36px); /* 自动缩放 */
    line-height: 1.3;
    color: #fff;
    word-break: break-word; /* 长标题自动换行 */
    white-space: normal;
}

/* 容器：竖列布局 */
.container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 卡片 */
.card {
    position: relative;
    background: transparent;
    padding: 18px 20px;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, background 0.25s ease;
}

.card:hover {
    transform: translateX(8px);
    background: rgba(255,255,255,0.1);
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255,255,255,0.4);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 卡片文字 */
.title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.desc {
    margin-top: 4px;
    font-size: 14px;
    color: #eee;
}

/* 圆角玻璃风右键/长按菜单 */
#customMenu {
    position: fixed;
    background: rgba(255,255,255,0.15);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    z-index: 99999;

    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);

    transition: 0.2s ease;

    /* 防止超出屏幕 */
    max-width: 90vw;
    max-height: 90vh;
    overflow-wrap: break-word;
    word-break: break-word;
}

#customMenu:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

/* 响应式优化：手机端 */
@media (max-width: 600px) {
    body {
        padding: 20px;
    }
    .container {
        max-width: 100%;
        padding: 10px;
    }
    .card {
        padding: 14px 16px;
        margin-bottom: 15px;
    }
    h1 {
        font-size: 22px;   /* 手机端更小的字体 */
        margin-bottom: 20px;
        line-height: 1.2;
    }
}
