@font-face {
    font-family: 'Miao';
    src: url('miao.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Miao', Arial, sans-serif; padding: 20px; max-width: 1480px; margin: 0 auto; background: #f5f5f5; }

/* 容器居中样式 */
.container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
}

.container h1 {
    display: block;
    margin-bottom: 10px;
}

.container .hint {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.container .verify-btn {
    display: inline-block;
    margin-top: 10px;
}

/* 窗帘容器（全屏覆盖） */
.curtain-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
}

/* 上窗帘 */
.curtain-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #222;
    transition: transform 0.5s ease;
}

/* 下窗帘 */
.curtain-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #222;
    transition: transform 0.5s ease;
}

/* 上下拉开动画 */
.curtain-wrapper.open .curtain-top {
    transform: translateY(-100%);
}
.curtain-wrapper.open .curtain-bottom {
    transform: translateY(100%);
}
/* .container { text-align: center; margin-top: 50px; } */
.verify-btn { padding: 10px 68px; font-size: 16px; background-color: #007bff; color: white; border: none; border-radius: 4px; cursor: pointer; margin-bottom: 20px; transition: background-color 0.2s; }
.verify-btn:hover { background-color: #0056b3; }
.verify-btn:disabled { background-color: #6c757d; cursor: not-allowed; }
.hint { color: #666; margin-bottom: 20px; }
.loading { color: #007bff; display: none; position: relative; padding-left: 20px; }
.loading::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; border: 2px solid #007bff; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.error { color: red; display: none; margin: 10px 0; }
.nav-container { display: none; margin-top: 30px; text-align: left; opacity: 0; transition: opacity 0.3s ease; }
.nav-container.show { opacity: 1; }
.empty-message { text-align: center; color: #999; padding: 40px 0; }

/* 分类标题样式 */
.category-title { height: 15px; line-height: 1; font-size: 15px; padding: 18px 0 15px; box-sizing: content-box; display: flex; align-items: center; color: #333; justify-content: start; font-weight: 600; text-align: left; }

/* 导航列表基础样式 */
.nav-list { display: grid; gap: 5px; justify-content: start; align-content: start; }

/* 样式1：文字样式 */
.category-container[data-style-type="1"] .nav-list { grid-template-columns: repeat(10, 1fr); }
.category-container[data-style-type="1"] .nav-item { line-height: 1; display: flex; align-items: center; justify-content: start; padding: 0 8px; border-radius: 4px; background: #fff; cursor: pointer; transition: all .3s; height: 38px; width: 141px; font-size: 15px; color: #333; }
.category-container[data-style-type="1"] .nav-item:hover { box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.category-container[data-style-type="1"] .nav-item a { text-decoration: none; color: #333; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 样式2：小图标文字样式 */
.category-container[data-style-type="2"] .nav-list { grid-template-columns: repeat(10, 1fr); }
.category-container[data-style-type="2"] .nav-item { line-height: 1; display: flex; align-items: center; justify-content: start; padding: 0 3px 0 8px; border-radius: 4px; background: #fff; cursor: pointer; transition: all .3s; height: 38px; width: 141px; font-size: 15px; color: #333; }
.category-container[data-style-type="2"] .nav-item:hover { box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.category-container[data-style-type="2"] .nav-item a { text-decoration: none; color: #333; display: flex; align-items: center; width: 100%; }
.category-container[data-style-type="2"] .nav-item img { width: 20px; height: 20px; margin-right: 5px; flex-shrink: 0; border-radius: 2px; }
.category-container[data-style-type="2"] .nav-item span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 样式3：APP图标样式 */
.category-container[data-style-type="3"] .nav-list { grid-template-columns: repeat(10, 1fr); gap: 5px; }
.category-container[data-style-type="3"] .nav-item { text-align: center; background: #fff; border-radius: 8px; padding: 5px; transition: all .3s; width: 141px; }
.category-container[data-style-type="3"] .nav-item:hover { box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.category-container[data-style-type="3"] .nav-item a { text-decoration: none; display: flex; flex-direction: column; align-items: center; color: #333; }
.category-container[data-style-type="3"] .nav-item img { width: 126px; height: 126px; object-fit: cover; border-radius: 4px; }
.category-container[data-style-type="3"] .nav-item span { font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }

/* 响应式布局 - 手机端 */
@media (max-width: 768px) {
    /* 减小手机端左右边距 */
    body { padding: 10px 5px; }
    
    /* 样式1：文字样式 - 手机端 */
    .category-container[data-style-type="1"] .nav-list { grid-template-columns: repeat(4, 1fr); }
    
    /* 样式2：小图标文字样式 - 手机端 */
    .category-container[data-style-type="2"] .nav-list { grid-template-columns: repeat(4, 1fr); }
    
    /* 样式3：APP图标样式 - 手机端 */
    .category-container[data-style-type="3"] .nav-list { grid-template-columns: repeat(4, 1fr); }
    
    /* 调整手机端字体大小 */
    .category-container[data-style-type="1"] .nav-item,
    .category-container[data-style-type="2"] .nav-item {
        font-size: 11px;
        width: 94px;
        height: 30px;
    }
    
    /* 手机端文字样式 - 减小左边距 */
    .category-container[data-style-type="1"] .nav-item { padding: 0 2px 0 4px; }
    
    /* 手机端小图标文字样式 - 减小左边距 */
    .category-container[data-style-type="2"] .nav-item { padding: 0 2px 0 4px; }
    
    .category-container[data-style-type="2"] .nav-item img { width: 16px; height: 16px; margin-right: 3px; }
    
    /* 手机端APP图标样式容器固定尺寸 */
    .category-container[data-style-type="3"] .nav-item {
        width: 94px;
        padding: 10px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .category-container[data-style-type="3"] .nav-item a {
        width: 100%;
        height: 100%;
        justify-content: center;
    }
    
    .category-container[data-style-type="3"] .nav-item img { width: 80px; height: 80px; }
    
    .category-container[data-style-type="3"] .nav-item span { font-size: 12px; }
}
