/* --- 基础样式 --- */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Microsoft YaHei", sans-serif;
}

.layout {
    display: flex;
    min-height: 100vh;
    max-height: 100vh; /* 限制最大高度 */
    overflow: hidden; /* 隐藏溢出 */
}

/* 密码修改页容器 - 保持整体布局适配 */
#douyinqun,
#WXShortlink,
#shortlink,
#Tbplayergz,
#Tbplayergztj,
#s7SubmissionAccount,
#SubmissionAccount,
#AccountManagement,
#TimesManagement,
#grTab,
#ggTab {
    margin: -20px; /* 抵消父级 padding */
    width: calc(100% + 40px); /* 父级 padding 左右各 20px */
    height: calc(100% + 40px); /* 上下各 20px */
    box-sizing: border-box;
    overflow: hidden;
    flex-direction: column;
}
#douyinqun iframe,
#WXShortlink iframe,
#shortlink iframe,
#Tbplayergz iframe,
#Tbplayergztj iframe,
#s7SubmissionAccount iframe,
#SubmissionAccount iframe,
#AccountManagement iframe,
#TimesManagement iframe,
#ggTab iframe,
#grTab iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
}


/* 侧边栏 */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #5530AB; /* 紫色主色 */
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    border-right: none;
    border-radius: 0 12px 12px 0;
}

/* 标题 */
.sidebar h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff; /* 白色标题 */
}

/* 用户信息 */
.sidebar .user-info {
    text-align: center;
    margin-bottom: 25px;
}

.sidebar .user-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 8px;
    padding: 4px; /* 留点内边距，避免图片紧贴边框 */
    background: #fff; /* 白色底 */
    border: 2px solid #fff; /* 白色边框，和底一致 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 柔和阴影，突出头像 */
    object-fit: cover; /* 防止图片变形 */
}

.sidebar .user-info p {
    margin: 0;
    font-size: 14px;
    color: #f0f0f0;
}

/* 退出按钮 */
.sidebar .logout {
    margin-top: auto;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.sidebar .logout:hover {
    background: #fff;
    color: #5530AB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 48, 171, 0.4);
}


/* 一级菜单 */
.menu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 15px;
    color: #f8f8f8;
    display: none;
    text-decoration: none;

}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(4px);
}

/* 二级菜单 */
.submenu {
    display: none;
    padding-left: 10px;
    margin-top: 5px;
}

.submenu-item {
    padding: 10px 30px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.submenu-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(3px);
}

.submenu-item.active {
    background: #fff;
    color: #5530AB;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.25);
}


/* 主体内容 */
.content {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}


.centered-content {
    display: grid;
    place-items: center;
}

.tab {
    display: none;
    position: relative; /* 关键：为子元素绝对定位提供参照 */
    /*min-height: 400px;    !* 根据需要调整内容高度 *!*/
    /*padding-bottom: 60px; !* 预留分页条位置，避免内容被挡 *!*/
    background: #fff;
}

.tab.active {
    display: block;
}




/* --- 仅玩家数据录入页居中 --- */
#PlayerData.active {
    display: grid; /* 使用 grid 可以轻松居中单个元素 */
    place-items: center; /* 水平 + 垂直居中 */
    height: 100%; /* 充满父容器 */
}

#PlayerData .data-entry-container {
    width: 600px; /* 固定宽度 */
    max-width: 90%;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#AccountData.active {
    display: grid; /* 使用 grid 可以轻松居中单个元素 */
    place-items: center; /* 水平 + 垂直居中 */
    height: 100%; /* 充满父容器 */
}

#AccountData .data-entry-container {
    width: 700px; /* 固定宽度 */
    max-width: 90%;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/*form {*/
/*    max-width: 900px;*/
/*    margin: 0 auto;*/
/*    font-family: "Microsoft YaHei", sans-serif;*/
/*}*/

/*.form-group {*/
/*    display: grid;*/
/*    grid-template-columns: repeat(3, 1fr);*/
/*    gap: 20px;*/
/*    margin-bottom: 20px;*/
/*}*/

.form-group label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: bold;
    font-size: 15px;
}

.form-group span {
    font-weight: normal;
    font-size: 12px;
    color: #777;
}

.form-group input {
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.btn-submit,
.btn-reset {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.btn-submit {
    background-color: #4caf50;
    color: white;
}

.btn-reset {
    background-color: #f44336;
    color: white;
}


/* 表单容器样式 */
.data-entry-container {
    max-width: 700px;
    width: 100%;
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(85, 48, 171, 0.15); /* 紫色阴影 */
    border: 1px solid #eee;
}

.data-entry-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #5530AB; /* 主紫 */
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.data-entry-container form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.data-entry-container label {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 14px;
    color: #5530AB; /* 紫色文字 */
}

.data-entry-container input,
.data-entry-container select {
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    font-size: 14px;
    transition: 0.3s;
    background: #fafafa;
}

.data-entry-container input:focus,
.data-entry-container select:focus {
    border-color: #5530AB;
    box-shadow: 0 0 6px rgba(85, 48, 171, 0.35);
    outline: none;
    background: #fff;
}

/* --- 按钮 --- */
.data-entry-container button {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.data-entry-container .btn-submit {
    background: linear-gradient(135deg, #5530AB, #7B5BDB);
    color: #fff;
}

.data-entry-container .btn-submit:hover {
    background: linear-gradient(135deg, #4A2597, #6A47C1);
    box-shadow: 0 4px 12px rgba(85, 48, 171, 0.35);
    transform: translateY(-2px);
}

.data-entry-container .btn-reset {
    background-color: #f5f5f5;
    color: #333;
}

.data-entry-container .btn-reset:hover {
    background-color: #e9e9e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}




/* --- 表单布局 --- */


/* 图片 */

/* ================= 搜索区域 ================= */
.search-box {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px; /* 行间距稍微增大，更舒适 */
    column-gap: 10px; /* 列间距稍微增大 */
    align-items: center;
    margin: 12px 0 15px 0;
    justify-content: flex-end; /* 靠右 */
    background: #fff;
    padding: 10px 14px; /* 内边距稍大 */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 新增按钮靠左 */

.modal-header {
    text-align: center;
    margin-bottom: 18px;
    font-family: "Poppins", "Microsoft YaHei", sans-serif;
}

.modal-subtitle {
    font-size: 14px;
    color: #7a5dd9; /* 比主题紫浅一点，作为副标题 */
    margin: 0;
    font-style: italic;
    letter-spacing: 0.5px;
}
#sr8-new-search-btn,
#sr4-new-search-btn,
#bl1-new-search-btn,
#new-2-search-btn,
#new-search-btn {
    margin-right: auto;
}

/* 输入框和下拉框 */
.search-box input,
.search-box select {
    width: 120px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid #e0e0e0; /* 边框柔和 */
    background-color: #fafafa; /* 背景柔和 */
    box-sizing: border-box;
    font-size: 13px;
    color: #000000; /* 输入文字偏灰，不显眼 */
    transition: all 0.2s;
}

/* 占位符颜色 */
.search-box input::placeholder {
    color: #aaa; /* 占位符更浅 */
    opacity: 1;
}

.search-box input::placeholder {
    color: #000;
    opacity: 1;
}

.search-box input::-webkit-input-placeholder {
    color: #000;
}

.search-box input:-ms-input-placeholder {
    color: #000;
}

.search-box input::-ms-input-placeholder {
    color: #000;
}

/* 聚焦时文字颜色可略加深，保持可读 */
.search-box input:focus,
.search-box select:focus {
    outline: none;
    border-color: #5530AB;
    box-shadow: 0 0 4px rgba(85, 48, 171, 0.3);
    color: #000000; /* 聚焦输入文字稍深，提高可读性 */
}

/* 按钮样式 */
.search-box button {
    flex: 0 0 auto;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background-color: #5530AB;
    color: #fff;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-box button:hover {
    background-color: #45208d;
}

.search-box button:active {
    background-color: #35176b;
}

/* label 靠右紧凑 */
.search-box label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    color: #555; /* 文字颜色更柔和 */
}

/* ================= 表格样式 ================= */
table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-size: 12px;
    background: #fff;
}



th, td {

    padding: 3px 4px;
    border: 1px solid #e0e0e0;
    text-align: center;
    height: 20px;
}

th {
    background: #5530AB;
    color: #fff;
    height: 20px;
}




.right-highlight {
    border-right: 3px solid #FFFF00; /* 暖金黄分割线 */
    text-align: center;
    padding: 8px 0;
    /*font-weight: bold;*/
}

.th-color1 {
    background-color: #92D050; /* 深墨绿色背景 */
    color: #000; /* 金黄色文字，明亮对比 */
    border-right: 3px solid #FFFF00; /* 暖金黄分割线 */
}

.th-color2 {
    background-color: #FFFF00; /* 深墨绿色背景 */
    color: #000; /* 金黄色文字，明亮对比 */
    border-right: 3px solid #FFFF00; /* 暖金黄分割线 */
}


/* 隔行变色 */
tr:nth-child(even) td {
    background: #f7f3fc; /* 淡紫底 */
}

/* hover 效果 */
tr:hover td {
    background: #ede4fa; /* 浅紫 hover */
}


#sr9-table tbody,
#sr8-table tbody,
#sr7-data-table tbody,
#sr2-data-table tbody,
#sr3-table tbody,
#sr1-table tbody,
#bl1-table tbody {
    height: calc(100vh - 260px); /* 根据布局调整 */
    min-height: 200px;
    display: block;
    width: 100%;
    overflow-y: auto; /* ✅ 超出才出现竖向滚动条 */
    overflow-x: hidden; /* ✅ 永不出现横向滚动条 */
    scrollbar-width: thin; /* Firefox 窄滚动条 */
}

/* ✅ Webkit（Chrome / Edge）滚动条样式 */
#sr9-table tbody::-webkit-scrollbar,
#sr8-table tbody::-webkit-scrollbar,
#sr7-data-table tbody::-webkit-scrollbar,
#sr2-data-table tbody::-webkit-scrollbar,
#sr3-table tbody::-webkit-scrollbar,
#sr1-table tbody::-webkit-scrollbar,
#bl1-table tbody::-webkit-scrollbar {
    width: 6px; /* 滚动条更细 */
    background: transparent;
}
#sr9-table tbody::-webkit-scrollbar-thumb,
#sr8-table tbody::-webkit-scrollbar-thumb,
#sr7-data-table tbody::-webkit-scrollbar-thumb,
#sr2-data-table tbody::-webkit-scrollbar-thumb,
#sr3-table tbody::-webkit-scrollbar-thumb,
#sr1-table tbody::-webkit-scrollbar-thumb,
#bl1-table tbody::-webkit-scrollbar-thumb {
    background: rgba(85, 48, 171, 0.4); /* 半透明紫色滑块 */
    border-radius: 4px;
}
#sr9-table tbody::-webkit-scrollbar-thumb:hover,
#sr8-table tbody::-webkit-scrollbar-thumb:hover,
#sr7-data-table tbody::-webkit-scrollbar-thumb:hover,
#sr2-data-table tbody::-webkit-scrollbar-thumb:hover,
#sr3-table tbody::-webkit-scrollbar-thumb:hover,
#sr1-table tbody::-webkit-scrollbar-thumb:hover,
#bl1-table tbody::-webkit-scrollbar-thumb:hover {
    background: rgba(85, 48, 171, 0.7);
}


/* ✅ 各表格 thead 统一样式 */
#sr9-table thead,
#sr8-table thead,
#sr7-data-table thead,
#sr2-data-table thead,
#sr3-table thead,
#sr1-table thead,
#bl1-table thead {
    display: table;
    width: 100%;
    table-layout: fixed;

}

/* ✅ 各表格 tbody 每行统一样式 */
#sr9-table tbody tr,
#sr8-table tbody tr,
#sr7-data-table tbody tr,
#sr2-data-table tbody tr,
#sr3-table tbody tr,
#sr1-table tbody tr,
#bl1-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

#sr9-table th, #sr9-table td,
#sr8-table th, #sr8-table td,
#sr7-data-table th, #sr7-data-table td,
#sr2-data-table th, #sr2-data-table td,
#sr3-table th, #sr3-table td,
#sr1-table th, #sr1-table td,
#bl1-table th, #bl1-table td {
    white-space: normal;       /* 自动换行 */
    word-break: break-all;     /* 单词或中文都能断行 */
    overflow-wrap: break-word; /* 超长字符串也断行 */
    text-overflow: ellipsis;   /* 避免撑破表格 */
    overflow: hidden;          /* 隐藏溢出文字 */
}


.table-container {
    position: relative;
    background: #5530AB;
    border-radius: 8px; /* 改为完整的圆角 */
    overflow: hidden; /* 确保内部元素不破坏圆角 */
}

#sr9-table thead,
#sr8-table thead,
#sr7-data-table thead,
#sr2-data-table thead,
#sr3-table thead,
#sr1-table thead,
#bl1-table thead {
    display: table;
    width: calc(100% - 10px);
    table-layout: fixed;
    background: transparent; /* 透明，让容器背景显示 */
}



/*!* 或者更精确的方案：使用 scrollbar-gutter *!*/
/*#sr9-table tbody,*/
/*#sr8-table tbody,*/
/*#sr7-data-table tbody,*/
/*#sr2-data-table tbody,*/
/*#sr3-table tbody,*/
/*#sr1-table tbody,*/
/*#bl1-table tbody {*/
/*    scrollbar-gutter: stable; !* 为滚动条预留空间 *!*/
/*}*/

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(85, 48, 171, 0.2); /* 紫色边 */
    border-top-color: #5530AB; /* 蓝紫主色，高亮 */
    border-radius: 50%;
    animation: spin 1s linear infinite, glowPulse 1.5s ease-in-out infinite alternate;
    z-index: 15;
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.5),
    0 0 20px rgba(85, 48, 171, 0.6);
}

/* 旋转动画 */
@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* 发光脉冲动画 */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 4px rgba(74, 144, 226, 0.4),
        0 0 10px rgba(85, 48, 171, 0.5);
    }
    100% {
        box-shadow: 0 0 12px rgba(74, 144, 226, 0.7),
        0 0 25px rgba(85, 48, 171, 0.6);
    }
}

/* 半透明背景衬托旋转圈 */
.loading-overlay {
    position: absolute;
    top: 40px; /* 保留表头区域 */
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05); /* 半透明白，商务风 */
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* 加载文字 */
.loading-text {
    margin-top: 65px;
    color: #5530AB;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(85, 48, 171, 0.35);
    animation: textPulse 1.6s ease-in-out infinite alternate;
}

@keyframes textPulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 1;
        transform: scale(1.03);
    }
}



/* ================= 分页控件 ================= */
.pagination {
    display: flex;
    justify-content: space-between; /* 三段布局 */
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-top: 25px; /* 顶部间距 */
}

/* 左中右区域 */
.pagination-left {
    flex: 1;
    text-align: left;
}

.pagination-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.pagination-left,
.pagination-center,
.pagination-right {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

/* 翻页按钮 */
.page-btn {
    min-width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-btn:hover {
    border-color: #5530AB;
    color: #5530AB;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 跳转输入框 */
.goto-label input {
    width: 44px;
    padding: 4px 6px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: 0.2s;
}


.goto-label select:focus {
    outline: none;
    border-color: #5530AB;
    box-shadow: 0 0 4px rgba(85, 48, 171, 0.5);
}

.goto-btn {
    height: 32px;
    padding: 0 10px;
    border-radius: 6px;
    border: 1px solid #5530AB;
    background: #5530AB;
    color: #fff;
    cursor: pointer;
}

.goto-btn:hover {
    background: #45208d;
}

/* --- 图表 --- */

/* ================== 账户管理卡片 ================== */
#AccountManagement .account-cards-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#AccountManagement .account-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 200px;
    box-sizing: border-box;
}

#AccountManagement .account-cards .card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#AccountManagement .account-cards .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(85, 48, 171, 0.25);
}

/* ================== 图表按钮 ================== */
.chart-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.chart-buttons button {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: #5530AB;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chart-buttons button:hover {
    background-color: #45208d;
}

.chart-buttons button:active {
    background-color: #35176b;
}

/* ================== 图表区域 ================== */
.chart-area {
    width: 100%;
    overflow-x: auto;
}

#chart1, #chart2 {
    min-width: 60px;
    width: 100%;
    height: 400px;
}

/* ================== 仪表盘卡片 ================== */
.card-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#chartTab .chart-cards-wrapper {
    margin-top: 30px;
}

.card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(85, 48, 171, 0.25);
}

/* ================== 图表盒子 ================== */
.charts {
    max-width: 100%;
    margin: 0 auto;

}

.chart-card {
    display: inline-block; /* 多列布局 */
    vertical-align: top; /* 顶部对齐 */
    /*width: 33%;                  !* 桌面端 3 列 *!*/
    width: 30%; /* 最大宽度 */
    height: 550px;
    /*margin: 0 1.5% 25px 1.5%;   !* 横向间距 + 下间距 *!*/

    overflow-y: auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.chart-card h3 {
    text-align: center;
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.chart {
    width: 100%;
    height: 100%;
}

/* 自定义滚动条 */
.chart-card::-webkit-scrollbar {
    width: 8px;
}

.chart-card::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chart-card::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chart-card::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/*!* 响应式设计 *!*/
/*@media (max-width: 1024px) {*/
/*    .chart-card {*/
/*        width: 45%; !* 平板两列 *!*/
/*    }*/
/*}*/

/*@media (max-width: 768px) {*/
/*    .chart-card {*/
/*        width: 100%; !* 手机单列 *!*/
/*        margin: 0 0 20px 0;*/
/*    }*/

/*    body {*/
/*        padding: 15px;*/
/*    }*/
/*}*/


/* ================== 筛选控件 ================== */
/* 容器样式 */
.charts-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background-color: #f9fafc;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 20px; /* 增加底部边距 */
}

/* 单个输入框、选择框和日期框的样式 */
.charts-filter input,
.charts-filter select,
.charts-filter input[type="date"] {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid #d6d9df;
    border-radius: 6px;
    background-color: #fff;
    color: #4e4e4e;
    width: 200px;
    height: 36px; /* 统一高度 */
    box-sizing: border-box;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.04);
}

/* 输入框聚焦时样式 */
.charts-filter input:focus,
.charts-filter select:focus,
.charts-filter input[type="date"]:focus {
    border-color: #5530AB; /* 聚焦时的边框颜色 */
    box-shadow: 0 0 6px rgba(85, 48, 171, 0.2); /* 聚焦时的阴影 */
}

/* 标签样式 */
.charts-filter label {
    font-size: 14px;
    color: #4e4e4e;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 8px;
    display: inline-block;
}

/* 按钮样式 */
.charts-filter button {
    padding: 8px 16px; /* 调整内边距，使按钮高度与其他控件一致 */
    background-color: #5530AB; /* 按钮背景颜色 */
    color: #fff; /* 按钮文字颜色 */
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px; /* 统一按钮高度 */
}

/* 按钮悬停时样式 */
.charts-filter button:hover {
    background-color: #45258B; /* 按钮悬停时的颜色 */
    transform: translateY(-2px); /* 按钮上浮效果 */
}

/* 按钮点击时样式 */
.charts-filter button:active {
    transform: translateY(1px); /* 点击时的下沉效果 */
}

/* 响应式设计：调整屏幕较小的设备上的布局 */
@media (max-width: 768px) {
    .charts-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .charts-filter input,
    .charts-filter select,
    .charts-filter input[type="date"] {
        width: 100%;
        margin-bottom: 12px;
    }

    .charts-filter button {
        width: 100%;
        margin-bottom: 12px;
    }

    .charts-filter label {
        margin-bottom: 6px;
    }
}

/* 提示信息（如果有） */
.charts-filter .hint {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

/* 更细致的输入框：禁用状态 */
.charts-filter input:disabled,
.charts-filter select:disabled,
.charts-filter input[type="date"]:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    border-color: #ccc;
    box-shadow: none;
}


/* --- 弹窗 --- */


.data-entry-container .form-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    margin-top: 15px;
}

/* --- 网格布局 --- */
#sr9-dataEntryForm,
#sr8-dataEntryForm,
#sr3-dataEntryForm,
#dataEntryForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}
#sr9-dataEntryForm label,
#sr8-dataEntryForm label,
#sr3-dataEntryForm label,
#dataEntryForm label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5530AB;
}
#sr9-dataEntryForm select,
#sr9-dataEntryForm input,
#sr8-dataEntryForm select,
#sr8-dataEntryForm input,
#sr3-dataEntryForm input,
#sr3-dataEntryForm select,
    /* 输入框与下拉框自适应 */
#dataEntryForm input,
#dataEntryForm select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #fafafa;
    transition: 0.3s;
}
#sr9-dataEntryForm .upload-section,
#sr8-dataEntryForm .upload-section,
#sr3-dataEntryForm .upload-section,
    /* 上传区域 */
#dataEntryForm .upload-section {
    grid-column: 1 / span 2;
    display: flex;
    align-items: center;
    gap: 10px;
}
#sr9-dataEntryForm .recharge-row select,
#sr8-dataEntryForm .recharge-row select,
#sr3-dataEntryForm .recharge-row select,
    /* 下拉 - 是否充值 */
#dataEntryForm .recharge-row select {
    width: 120px !important;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px 12px;
    background: #fff;
}
#sr9-dataEntryForm .form-row,
#sr8-dataEntryForm .form-row,
#sr3-dataEntryForm .form-row,
#dataEntryForm .form-row {
    grid-column: 1 / span 2;
}


/* 美化 fieldset */
fieldset {
    border: 2px solid #5530AB;        /* 紫色边框 */
    border-radius: 2px;               /* 圆角边框 */
    padding: 4px 5px;                /* 内边距 */
    margin-bottom: 5px;               /* 下方间距 */
    background-color: #f9f9ff;         /* 浅紫色背景 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* 轻微阴影 */
    transition: all 0.3s ease;
}

/* 美化 legend */
legend {
    font-weight: bold;
    font-size: 1.1rem;
    color: #5530AB;
    padding: 0 12px;
    background-color: #f9f9ff;
    border-radius: 6px;
}

/* label 内文字颜色 */
fieldset label {
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 输入框美化 */
fieldset input[type="number"],
fieldset input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    flex: 1;
    transition: all 0.2s ease;
}

fieldset input[type="number"]:focus,
fieldset input[type="text"]:focus {
    border-color: #5530AB;
    box-shadow: 0 0 5px rgba(85,48,171,0.3);
    outline: none;
}

/* 遮罩层 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}

/* 弹窗卡片 */
.modal-card {
    background: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    max-width: 600px;

    min-width: 100px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-family: "Microsoft YaHei", Arial, sans-serif;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 9999;
    animation: fadeIn 0.25s ease;
}

/* 弹窗标题 */
.modal-card h2 {
    text-align: center;
    font-size: 20px;
    color: #5530AB;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 关闭按钮 */
.modal-card .close {
    position: absolute;
    top: 15px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
    color: #5530AB;
    transition: all 0.25s ease;
    padding: 6px;
    background: rgba(85, 48, 171, 0.08);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-card .close:hover {
    color: #fff;
    background: #5530AB;
    transform: scale(1.15);
}

.modal-card .close:active {
    transform: scale(1);
    background: #45208d;
}

#modalMessage {
    text-align: center;
    margin: 0 auto;
}

/* 表单两列布局 */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin-top: 20px;
}

/* 表单控件 */
.form-grid label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-grid input,
.form-grid select {
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.25s ease;
}

.form-grid input:focus,
.form-grid select:focus {
    border-color: #5530AB;
    box-shadow: 0 0 6px rgba(85, 48, 171, 0.4);
    outline: none;
}

/* 底部按钮区域 */
.modal-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.modal-actions button {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.modal-actions .btn-cancel {
    background: #f5f5f5;
    color: #333;
}

.modal-actions .btn-cancel:hover {
    background: #e0e0e0;
}

.modal-actions .btn-submit {
    background: #5530AB;
    color: #fff;
}

.modal-actions .btn-submit:hover {
    background: #45208d;
}

.modal-actions .btn-submit:active {
    background: #35176b;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ===============================
   🔒 重置密码弹窗（Reset Password Modal）
   =============================== */
#resetPasswordModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: none; /* 默认隐藏 */
    z-index: 9998;
}

/* 弹窗主体 */
#resetPasswordModal .modal-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 28px 32px;
    border-radius: 12px;
    width: 360px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-family: "Microsoft YaHei", Arial, sans-serif;
    animation: fadeIn 0.25s ease;
}

/* 标题 */
#resetPasswordModal .modal-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #5530AB;
    margin-bottom: 20px;
}

/* 输入框 */
#resetPasswordModal .modal-input {
    width: calc(100% - 10%);
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

#resetPasswordModal .modal-input:focus {
    border-color: #5530AB;
    box-shadow: 0 0 6px rgba(85, 48, 171, 0.4);
    outline: none;
}

/* 按钮组 */
#resetPasswordModal .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#resetPasswordModal button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

#resetPasswordModal #resetConfirm {
    background-color: #5530AB;
    color: #fff;
}

#resetPasswordModal #resetConfirm:hover {
    background-color: #45208d;
}

#resetPasswordModal #resetCancel {
    background-color: #f5f5f5;
    color: #333;
}

#resetPasswordModal #resetCancel:hover {
    background-color: #e0e0e0;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -46%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


/* 表单项 */
.form-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 标签样式 */
.form-item label {
    width: 85px;
    font-size: 15px;
    font-weight: 600;
    color: #5530AB; /* 改成主题紫色 */
    flex-shrink: 0;
}

/* 输入框和选择框样式 */
.form-item input,
.form-item select {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* 输入框聚焦样式 */
.form-item input:focus,
.form-item select:focus {
    border-color: #5530AB;
    box-shadow: 0 0 6px rgba(85, 48, 171, 0.35);
    outline: none;
}

/* 主按钮 & 重置按钮 */
.btn-submit,
.btn-reset {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.btn-submit {
    background-color: #5530AB;
    color: #fff;
}

.btn-submit:hover {
    background-color: #45208d;
}

.btn-submit:active {
    background-color: #35176b;
}

.btn-reset {
    background-color: #f5f5f5;
    color: #333;
}

.btn-reset:hover {
    background-color: #e0e0e0;
}

/* 上传区域 */
.upload-section {
    grid-column: 1 / span 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    background: #fff;
}


.upload-area {
    border: 2px dashed #b8a1e5; /* 改成紫色淡边框 */
    border-radius: 10px;
    padding: 25px;
    font-size: 14px;
    color: #6b46c1; /* 紫色文字 */
    min-height: auto;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.25s ease;
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.upload-area.dragover {
    border-color: #5530AB;
    background-color: rgba(85, 48, 171, 0.06);
    box-shadow: 0 0 0 3px rgba(85, 48, 171, 0.15);
}

.upload-container {
    display: flex;
    gap: 20px; /* 两个之间的间距 */
    align-items: flex-start; /* 顶部对齐 */
    margin-top: 20px;
}


.preview-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* 保证从左到右排列 */
    gap: 12px;
    margin-top: 10px;
}

.preview-img {
    flex: 0 0 calc(20% - 12px); /* ✅ 每张固定占 20% */
    max-width: calc(20% - 12px);
    aspect-ratio: 1 / 1;
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 图片预览 */


.preview-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    border-color: #5530AB;
}


/* 删除按钮 */
.preview-img .delete-btn {
    position: absolute; /* ✅ 改成绝对定位 */
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.85);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    padding: 0;
    opacity: 0;
    transition: opacity 0.25s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.preview-img:hover .delete-btn {
    opacity: 1;
}

.preview-img .delete-btn:hover {
    background: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

/* 上传按钮 */
#sr3-uploadBtn,
#uploadBtn {
    padding: 12px 24px;
    background: #5530AB;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(85, 48, 171, 0.25);
}

#sr3-uploadBtn:hover,
#uploadBtn:hover {
    background: #45208d;
    transform: translateY(-2px);
}

#sr3-uploadBtn:disabled,
#uploadBtn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 表单底部按钮行 */
.form-row {
    grid-column: 1 / span 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

/* Modal 样式 */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column; /* 纵向排列 */
    justify-content: center; /* 垂直居中 */
    align-items: center; /* 水平居中 */
    z-index: 9999;
}

/* 缩略图 */
.thumb {
    width: 20px;
    height: 20px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.25s ease;
}

.thumb:hover {
    transform: scale(1.2);
}

/* 弹窗内容 */
.gallery-modal__content {
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    font-family: "Microsoft YaHei", Arial, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 0.3s ease;
}

/* 关闭按钮 */
.gallery-modal__close {
    position: absolute;
    top: 15px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #5530AB; /* 主题色 */
    transition: all 0.3s ease;
    padding: 6px;
    background: rgba(255, 255, 255, 0.9); /* 白底 */
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-modal__close:hover {
    background: rgba(255, 255, 255, 0.9); /* 白底 */
    transform: scale(1.2);
    color: #45208d;
}

/* 左右切换按钮 */
.gallery-modal__prev,
.gallery-modal__next {
    position: absolute;
    top: 50%;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.9); /* 白底 */
    color: #5530AB; /* 紫色箭头 */
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    z-index: 10000;
    transform: translateY(-50%);
    border-radius: 6px; /* ✅ 改成轻微圆角，而不是椭圆 */
    transition: background 0.25s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.gallery-modal__prev:hover,
.gallery-modal__next:hover {
    background: #fff;
    color: #45208d; /* 深紫 */
    transform: translateY(-50%) scale(1.08);
}

.gallery-modal__prev {
    left: 15px;
}

.gallery-modal__next {
    right: 15px;
}

/* 图片 */
.gallery-modal__img {
    max-width: 100%;
    max-height: 80vh;
    transition: transform 0.3s ease;
    /* 移除 cursor: zoom-in; */
}

.gallery-modal__img.zoomed {
    transform: scale(1.5);
    /* 移除 cursor: zoom-out; */
}


/* 动画 */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式 */
@media (max-width: 900px) {
    .gallery-modal__content {
        max-width: 90%;
    }
}


/* 工具页基础 */
#ToolsTab {
    padding: 20px;
    font-family: "Microsoft YaHei", sans-serif;

}

/* 分区标题 */
.tool-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5530AB; /* 紫色 */
}

/* 工具网格 */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

/* 单个工具卡片 */
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    min-height: 120px;
    text-align: center;
}

/* 卡片图标 */
.tool-card i {
    font-size: 32px;
    color: #5530AB; /* 紫色 */
    margin-bottom: 8px;
    transition: transform 0.3s, color 0.3s;
}

/* 卡片文字 */
.tool-card span {
    font-size: 14px;
    font-weight: 500;
}

/* 悬停效果 */
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(85, 48, 171, 0.2);
}

.tool-card:hover i {
    color: #8955d1; /* 悬停图标变亮紫色 */
    transform: scale(1.2);
}

/* 响应式：小屏幕自动换行 */
@media (max-width: 600px) {
    .tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}


/* promotion.css */

/* =======================
   整体容器
======================= */
#qdTab {
    display: none;
    height: 100%;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: #f4f6fa;
    color: #333;

}

#sr5-RegistrationForm input,
#sr5-RegistrationForm select,
#sr6-RegistrationForm input,
#sr6-RegistrationForm select,
#sr4-RegistrationForm input,
#sr4-RegistrationForm select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

/* 聚焦时的高亮效果 */
#sr5-RegistrationForm input:focus,
#sr5-RegistrationForm select:focus
#sr6-RegistrationForm input:focus,
#sr6-RegistrationForm select:focus
#sr4-RegistrationForm input:focus,
#sr4-RegistrationForm select:focus {
    border-color: #5530AB;
    background-color: rgba(85, 48, 171, 0.06);
    box-shadow: 0 0 0 3px rgba(85, 48, 171, 0.15);
}


.modal-card.modal-card-registration {

    max-width: 300px; /* 最大宽度限制为 600px */

}

/* =======================
   左侧渠道面板
======================= */
.channel-panel {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e5e6eb;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.04);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e6eb;
    background: linear-gradient(90deg, #fafafa, #fff);
}

.panel-title {
    font-weight: 600;
    font-size: 15px;
    color: #222;
}

.panel-actions button {
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: 0.2s;
}

.panel-actions .btn-primary {
    background: #5530AB; /* 紫色 */
    color: #fff;
}

.panel-actions .btn-primary:hover {
    background: #45208d;
}

/* 渠道树结构 */
.channel-tree {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.channel-node {
    margin: 6px 0;
}

.node-header {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.node-header.selected {
    background-color: #5530AB; /* 紫色背景 */
    color: #fff; /* 白色文字 */
}

.node-header.selected .node-icon {
    color: #fff; /* 图标也变白 */
}

.node-header:hover {
    background: #f5faff;
}

.node-header.active {
    background: #e6e0f8; /* 浅紫色 */
    color: #5530AB; /* 紫色文字 */
    font-weight: 600;
}

.node-toggle {
    margin-right: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.node-toggle.open {
    transform: rotate(90deg);
}

.node-name {
    flex: 1;
}

.node-count {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
}

.node-actions {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.node-actions span:hover {
    color: #5530AB;
}

.node-children {
    list-style: none;
    padding-left: 18px;
    margin-top: 4px;
    display: none;
}

.node-children.expanded {
    display: block;
}

/* =======================
   右侧账号管理面板
======================= */
.account-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.03);
}

/* Tabs 栏 */
.tabs {
    display: flex;
    border-bottom: 1px solid #e5e6eb;
    background: #fafafa;
}

.tabs .tab {
    padding: 12px 18px;
    font-size: 13px;
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}

.tabs .tab:hover {
    color: #5530AB;
}

.tabs .tab.active {
    color: #5530AB;
    border-bottom: 3px solid #5530AB;
    font-weight: 600;
}

/* 内容区 */
.tab-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f9fafb;
}

.account-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin: 2px 4px;
    white-space: nowrap;
    cursor: default;
    transition: all 0.2s ease;
}

/* 活跃状态 */
.account-status.status-active {
    background-color: rgba(82, 196, 26, 0.15);
    color: #52c41a;
}

.account-status.status-active:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 禁用状态 */
.account-status.status-disabled {
    background-color: rgba(245, 34, 45, 0.15);
    color: #f5222d;
}

.account-status.status-disabled:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* 筛选区域 */
.account-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.search-member input {
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
}

.search-member button {
    margin-left: 6px;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    border: none;
    background: #5530AB; /* 紫色 */
    color: #fff;
    cursor: pointer;
}

.search-member button:hover {
    background: #45208d; /* 深紫色 hover */
}

.filter-options {
    display: flex;
    gap: 8px;
}

.filter-tag {
    padding: 5px 12px;
    border-radius: 14px;
    background: #f0f2f5;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.filter-tag:hover {
    background: #e0e3e9;
}

.filter-tag.active {
    background: #5530AB; /* 紫色 */
    color: #fff;
}

/* =======================
   账号列表
======================= */
.account-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: 0.2s;
}

.account-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.account-avatar {
    width: 40px;
    height: 40px;
    background: #5530AB; /* 紫色 */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    font-size: 15px;
}

.account-info {
    flex: 1;
}

.account-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.account-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 角色标签 */
.account-role {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #5530AB; /* 紫色 */
    background: #f3eefe;
    border-radius: 16px;
    border: 1px solid #d6c8f7;
    box-shadow: 0 2px 6px rgba(85, 48, 171, 0.1);
    margin: 2px 4px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.account-role:hover {
    background: #e5dbfa;
    border-color: #c1aef2;
    color: #45208d;
    transform: translateY(-1px);
}

/* 各角色颜色 */
.role-1 {
    background: rgba(245, 34, 45, 0.15);
    color: #f5222d;
}

.role-2 {
    background: rgba(85, 48, 171, 0.15);
    color: #5530AB;
}

/* 改为紫色 */
.role-3 {
    background: rgba(82, 196, 26, 0.15);
    color: #52c41a;
}

.role-4 {
    background: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* 状态标签 */
.account-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.status-active {
    background-color: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.status-inactive {
    background-color: rgba(245, 34, 45, 0.1);
    color: #f5222d;
}

/* 操作按钮 */
.account-actions {
    display: flex;
    gap: 6px;
}

.account-actions .nickname-input {
    width: 40px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* 获得焦点时的高亮效果 */
.account-actions .nickname-input:focus {
    border-color: #5530AB;
    background-color: rgba(85, 48, 171, 0.06);
    box-shadow: 0 0 0 3px rgba(85, 48, 171, 0.15);
}

.role-select {
    width: 60px;
    padding: 5px 8px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

/* 鼠标悬停时轻微变亮 */
.role-select:hover {
    border-color: #aaa;
}

/* 聚焦时蓝色高亮边框 */
.role-select:focus {
    border-color: #5530AB;
    background-color: rgba(85, 48, 171, 0.06);
    box-shadow: 0 0 0 3px rgba(85, 48, 171, 0.15);
}

/* 禁用状态样式（如果会用到） */
.role-select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* 只读状态下的样式（如果你用了readonly） */
.account-actions .nickname-input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.action-btn {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover {
    background: #f0f2f5;
}







/* 卡片容器 - 延续主题风格 */
.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    max-width: 700px;
    margin: 0 auto;
}

/* 顶部渐变装饰 - 保留主题标识 */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #5530AB, #7B5BDB);
}

/* 标题样式 - 保持居中与主题色 */
.card-title {
    font-size: 1.75rem;
    color: #5530AB;
    margin: 0 0 0.75rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.card-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 40px;
    height: 3px;
    background: #5530AB;
    border-radius: 3px;
}

.card-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 2.5rem;
    text-align: center;
    line-height: 1.5;
}

/* 账号信息区域 - 与密码区域拉开距离 */
.account-info-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* 账号与用户名间距 */
    margin-bottom: 2.5rem; /* 账号区域与原密码框间距 */
}

/* 表单整体样式 - 密码相关表单项间距 */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* 核心：表单项左右排列，确保容器占满宽度 */
.form-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%; /* 强制表单项占满父容器 */
}

/* 文字标签 - 固定宽度，避免挤压输入框 */
.form-item label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #5530AB;
    width: 100px; /* 固定宽度，所有标签对齐 */
    text-align: right;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0; /* 禁止标签收缩，确保输入框有足够空间 */
}

.form-item label .required {
    color: #ef4444;
    font-size: 1rem;
}

/* 输入框容器 - 关键：占满剩余宽度，且强制子元素继承 */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1; /* 占满父容器剩余空间，确保所有输入框宽度一致 */
    min-width: 0; /* 解决flex容器下子元素宽度异常问题 */
}

/* 统一所有输入框样式（账号、用户名、密码、确认密码） */
.input-wrap input,
.static-input {
    width: 100% !important; /* 强制输入框占满容器，优先级最高 */
    min-width: 100%; /* 防止输入框被压缩 */
    padding: 1rem 1.25rem;
    padding-right: 3.5rem; /* 为密码框眼睛图标留空间 */
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box; /* 确保padding不影响宽度 */
}

/* 非密码输入框（账号、用户名）取消右侧多余内边距 */
.input-wrap input:not([type="password"]) {
    padding-right: 1.25rem;
}

.input-wrap input::placeholder,
.static-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.input-wrap input:focus,
.static-input:focus {
    outline: none;
    border-color: #5530AB;
    box-shadow: 0 0 0 3px rgba(85, 48, 171, 0.15);
    background: #fff;
}

/* 密码显示/隐藏按钮 - 不影响输入框宽度 */
.toggle-btn {
    position: absolute;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1; /* 确保按钮在输入框上方，不挤压输入框 */
}

.toggle-btn:hover {
    background-color: #f3f4f6;
    color: #5530AB;
}

.toggle-btn .eye-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* 密码强度指示器 - 与输入框左对齐 */
.strength-container {
    margin-top: 0.3rem;
    margin-left: calc(100px + 1.5rem);
    width: calc(100% - 100px - 1.5rem); /* 强度条宽度与输入框一致 */
}

.strength-bar {
    height: 4px;
    width: 100%;
    background-color: #f3f4f6;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

#strengthBar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

#strengthBar.weak {
    width: 33%;
    background-color: #ef4444;
}

#strengthBar.medium {
    width: 66%;
    background-color: #f59e0b;
}

#strengthBar.strong {
    width: 100%;
    background-color: #10b981;
}

.strength-text {
    font-size: 0.8rem;
    color: #666;
    transition: color 0.3s ease;
}

/* 错误提示 - 与输入框左对齐 */
.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    margin-left: calc(100px + 1.5rem);
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* 提交按钮 - 右对齐 */
.submit-btn {
    background: linear-gradient(135deg, #5530AB, #7B5BDB);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 6px rgba(85, 48, 171, 0.15);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #4A2597, #6A47C1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(85, 48, 171, 0.3);
}

/* 只读状态样式 */
.static-input[readonly] {
    background-color: #f3f4f6;
    cursor: not-allowed;
    color: #6b7280;
}

/* 响应式调整 - 小屏幕上下排列 */
@media (max-width: 600px) {
    .profile-card {
        padding: 1.8rem 1.2rem;
    }

    .account-info-display {
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    .password-form {
        gap: 1.5rem;
    }

    .form-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .form-item label {
        width: auto;
        text-align: left;
        justify-content: flex-start;
    }

    .strength-container,
    .error-message {
        margin-left: 0;
        width: 100%;
    }

    .input-wrap input,
    .static-input {
        padding: 0.9rem 1rem 0.9rem 1.1rem;
        font-size: 0.95rem;
    }

    .submit-btn {
        width: 100%;
        margin-left: 0;
    }
}


.hover-zoom {
    transition: transform 0.3s ease; /* 平滑动画 */
    cursor: pointer; /* 鼠标指针变手形 */
}

.hover-zoom:hover {
    transform: scale(5); /* 放大 5 倍，可根据需求调整 */
    z-index: 999; /* 避免被覆盖 */
    position: relative; /* 保证放大时不会影响布局 */
}

#ggTab {
    display: block;
}

.main-loading-overlay {
    position: fixed;
    top: 0;
    left: 250px; /* 假设侧边栏宽度为250px，根据实际情况调整 */
    width: calc(100% - 250px); /* 减去侧边栏宽度 */
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998; /* 确保在侧边栏之上，但低于模态框 */
    backdrop-filter: blur(5px);
}

.main-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.main-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(85, 48, 171, 0.2);
    border-top: 3px solid #5530AB;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

.main-loading-text {
    color: #5530AB;
    font-size: 14px;
    font-weight: 600;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 如果侧边栏是折叠的，调整样式 */
.sidebar-collapsed .main-loading-overlay {
    left: 64px; /* 折叠后侧边栏宽度 */
    width: calc(100% - 64px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-loading-overlay {
        left: 0;
        width: 100%;
    }
}







