/* ================== 全局样式 ================== */
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f2f2f2;
    color: #333;
}

.loading-fallback {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding-top: 30vh;
    z-index: 9999;
}

/* ================== 加载动画 ================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
}

/* ================== 侧边栏样式 ================== */
.layui-side {
    width: 280px;
    transition: all 0.3s ease;
}

.logo {
    padding: 20px 15px;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid #393D49;
}

.logo h1 {
    font-size: 18px;
    margin: 0;
}

.search-box {
    padding: 15px;
    position: relative;
}

.layui-nav-tree {
    width: 100%;
}

/* ================== 表格样式 ================== */
.layui-table {
    font-size: 14px;
    border-collapse: collapse;
}

.layui-table th {
    font-size: 15px;
    font-weight: bold;
    background-color: #f8f8f8;
    text-align: center;
}

.layui-table td,
.layui-table th {
    vertical-align: middle;
    text-align: center;
    height: 60px;
    line-height: 20px;
    padding: 8px 10px;
    font-size: 15px;
    white-space: nowrap;
}

/* ================== 搜索框清除按钮 ================== */
#clear-search {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none;
}

#gun-search:not(:placeholder-shown)+#clear-search {
    display: block;
}

/* ================== 内容区域样式 ================== */
.content-wrapper {
    padding: 15px;
}

.page-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 24px;
    margin: 0;
}

/* ================== 卡片样式 ================== */
.layui-card {
    margin-bottom: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ================== 图片样式 ================== */
.weapon-image {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
}

/* ================== 弹窗样式 ================== */
.modal-code {
    padding: 20px;
    word-break: break-all;
}

.modal-code-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.modal-code-content {
    background: #f8f8f8;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ================== 导航标签样式 ================== */
.code-tabs {
    margin-bottom: 15px;
}

/* ================== 复制按钮样式 ================== */
.copy-btn {
    margin-top: 10px;
}

/* ================== 表单控件 ================== */
.layui-form-item .layui-input-inline {
    width: 160px;
}

/* ================== 开发者信息弹窗 ================== */
.mod-panel {
    padding: 15px;
}

.mod-panel .layui-card {
    box-shadow: none;
    border: 1px solid #eee;
}

.mod-panel .layui-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.mod-panel .layui-card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.mod-panel .close-btn {
    border: none;
    background: none;
    font-size: 18px;
    padding: 0 10px;
    height: auto;
}

.mod-panel .layui-card-body {
    padding: 15px;
}

.developer-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.developer-info strong {
    color: #333;
    width: 100px;
    display: inline-block;
}

.layui-btn-container {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ================== 响应式布局 ================== */
@media screen and (max-width: 1200px) {
    .layui-side {
        width: 240px;
    }
}

@media screen and (max-width: 992px) {
    .layui-side {
        width: 220px;
    }

    .logo h1 {
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    .layui-side {
        width: 200px;
    }

    .search-box {
        padding: 10px;
    }

    #gun-search {
        padding-right: 25px;
    }
}

@media screen and (max-width: 576px) {
    .layui-side {
        width: 180px;
    }

    .logo {
        padding: 15px 10px;
    }

    .search-box {
        padding: 8px;
    }

    .page-header h1 {
        font-size: 20px;
    }
}

.beian {
    z-index: 990;
    height: 44px;
    padding: 0 15px;
    box-shadow: -1px 0 4px rgba(0, 0, 0, 0.12);
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}


.page-footer {
    width: 100%;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.copyright-notice {
    text-align: center;
    color: #999;
    font-size: 13px;
    line-height: 1.5;
}

.copyright-notice a {
    color: #009688;
    text-decoration: none;
}

.copyright-notice a:hover {
    text-decoration: underline;
}

/* 支持我们弹窗样式 */
.support-container {
    text-align: center;
    padding: 20px;
}

.support-container h3 {
    color: #333;
    margin-bottom: 10px;
}

.support-container p {
    color: #666;
    margin: 10px 0;
}

.support-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}