@charset "utf-8";

/* 1. 现代重置：统一内外边距，并采用更科学的盒模型 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* 优化：防止 padding 撑开容器宽度 */
}

html {
    -webkit-text-size-adjust: 100%; /* 防止移动端横屏时字体自动变大 */
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

body {
    line-height: 1.5; /* 优化：更舒适的阅读行高 */
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background-color: #fff;
    color: #333;
    -webkit-font-smoothing: antialiased; /* 字体抗锯齿，更清晰 */
}

/* 2. 元素修正 */
ul, ol { list-style: none; }
img { vertical-align: middle; max-width: 100%; border-style: none; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button, input, select, textarea { 
    font-family: inherit; 
    font-size: inherit; 
    outline: none; 
}
table { border-collapse: collapse; border-spacing: 0; }

/* 3. 滚动条美化：改为天蓝色风格以匹配你的 UI */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 191, 255, 0.4); /* 天蓝色透明感 */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 191, 255, 0.8);
}

/* 4. 实用工具类 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.fl { float: left !important; }
.fr { float: right !important; }
.tc { text-align: center !important; }
.mt5 { margin-top: 5px !important; }
.mt20 { margin-top: 20px !important; }

/* 5. 遮罩层与加载：加入高级感透明效果 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑 */
    backdrop-filter: blur(4px); /* 毛玻璃 */
    display: none;
}

.showbox {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 优化：真正的居中方式 */
    z-index: 10000;
}

#AjaxLoading {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: #00BFFF;
    font-size: 14px;
    display: flex;
    align-items: center;
}