/* ===== 全局初始化 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

html, body {
    height: 100%;
    background-color: #FFF;
    color: #333;
}

input, textarea, select, [contenteditable] {
    outline: none !important;
}

.hidden { display: none; }

/* ===== 主题色定义 ===== */
:root {
    --color-primary:linear-gradient(136deg, #286aff, #4e6ef2, #7274f9, #9f66ff);        /* 主蓝色 */
    --color-primary-dark: #306bfc;   /* hover 深蓝 */
    --color-primary-light: #e6f0ff;  /* 浅蓝背景 */
    --color-success: #28a745;  /* 成功绿 */
    --color-danger:  #dc3545;  /* 错误红 */
    --color-info:    #17a2b8;  /* 信息蓝 */
    --color-warning: #000;  /* 警告黄 */
    --color-muted: #6c757d;
    --color-border: #ccc;
	--shadow: rgba(0, 0, 0, 0.08);
	--text-main-b:#333;
}

/* ===== 主体容器 ===== */
.main-container {
    max-width: 100%;
}

/* ===== 顶部导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 65%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000; /* 保证盖在最上面 */
    max-width: 1000px;
    min-width: 900px;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    line-height: 60px;
  padding:0 10px
}

.nav-right {
    display: flex;
    align-items: center;
}
.hm-console:hover{
  color:#007bff
}
.adminuname{
  padding:0 10px
}
.nav-right a,
.nav-right span,
.nav-right button {
    
    text-decoration: none;
    font-size: 14px;
}
.nav-right span sup{
  color:#f00;
  font-weight:500;
 
}

.nav-right a{
  color:#333;
  line-height:60px;
  width:86px;
  text-align:center;
  display:flex;
  align-items: center;
  justify-content: center;
}
.logoutico i{
  color:#f00;
  font-size:20px;
}

.nav-right a.active {
  background: var(--color-primary);
  color:#fff !important
}
.nav-right a:hover{
  color:#4B8BF1;
}

.btn-login{
  background:#4B8BF1;
  color:#fff;
}
.btn-secondary{
  background:none;
  color:#181818
}
.btn-secondary:hover{
  color:#0062ff;
}

.nav-right button.btn {
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width:86px;
  line-height:60px;
}


/* ===== 主体内容区 ===== */
.info-section {
    width: 65%;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    max-width: 1000px;
    min-width: 900px;
	padding-top:70px
}

.tab-page {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

/* ===== 弹窗 ===== */
#global-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

#global-modal.hidden {
  display: none;
  opacity: 0;
}

/* 弹窗主体 */
#global-modal .modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 350px;
  width: 90%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  animation: modal-fade-in 0.25s ease;
  text-align: center;
  overflow: hidden;
  position: relative;
}
/* 标题 */
#global-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  padding: 10px 20px;
  text-align: left;
  width: 100%;
  line-height: 1.2;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.bi-exclamation-triangle-fill {
    color: var(--color-danger);
    font-size: 1.1em;
}
.success-icon i{
  color:#03bd00;
  font-size:40px
}
.success p{
  color:#03bd00;
  font-size:16px
}

/* 正文 */
#global-modal .modal-message {
  font-size: 16px;
  line-height: 1.2;
}
.sending-status {
  text-align: center;
  padding: 10px;
}

.sending-status .spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border: 4px solid #ddd;          /* 灰色背景圈 */
  border-top-color: #1E90FF;       /* 蓝色前景圈 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 动画关键帧 */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.sending-status p {
  margin: 0;
  font-size: 14px;
  color: #333;
}




/* 输入区域 */
.modal-inputs {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#global-modal .modal-inputs input,
#global-modal .modal-inputs textarea {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s;
  color:#007bff
}

.modal-input-wrap {
  display: flex;
  align-items: center;
  flex-direction: row;
  border: 1px solid var(--color-border);
  position:relative
}

.modal-input-wrap input::placeholder {
font-size:0.8em  
}
.modal-input-wrap i{
  position:absolute;
  right:10px;
  cursor: pointer;
}
.input-prefix {
  display: block;
  width: 35%;
  position: relative;
  padding: 0 10px;
  font-size: 15px;
}
.modal-input-wrap i:hover {
  color: #ff006a;
}


.input-prefix::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    border-left: 1px solid var(--color-border);
}

#modal-input-3 { resize: none; }

.upimg-tip {
  font-size: 16px;
  display: block;
  margin: 20px 0;
}

/* 按钮区域 */
#global-modal .modal-buttons {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  margin: 15px 20px;
}

#global-modal .modal-buttons button {
  width: 50%;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

#global-modal .modal-buttons .confirm {
  background: var(--color-primary);
  color: #fff;
  line-height: 1.8;
}

#global-modal .modal-buttons .confirm:hover {
  background: var(--color-primary-dark);
}
#global-modal i{font-size:20px}
#global-modal .modal-buttons .cancel {
  background: #f5f5f5;
  color: var(--color-text);
}

#global-modal .modal-buttons .cancel:hover {
  background: #e2e2e2;
}

/* 动画 */
@keyframes modal-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== 顶部 toast 提示 ===== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Toast 主体 */
.toast {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-40px);
    transition: all 0.6s ease;
    min-width: 180px;
    max-width: 380px;
    text-align: center;
    color: #fff;
}

/* 动画状态 */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* 颜色区分 */
.toast.success {
    background-color: var(--color-success);
}
.toast.error {
    background-color: var(--color-danger);
}
.toast.info {
    background-color: var(--color-info);
}
.toast.warning {
    background-color: var(--color-warning);
    color: #fff; /* 黄色背景下深字 */
}

/* 图标样式 */
.toast .toast-icon {
    margin-right: 8px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* 图标颜色适配 */
.toast.warning .toast-icon {
    color: #fff;
}
.toast.success .toast-icon,
.toast.error .toast-icon,
.toast.info .toast-icon {
    color: #fff;
}


/* 抖动动画 */
@keyframes shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

/* URL 错误提示 */
.modal-message.error-text {
  color: #ff4c4c;             /* 主色 */
  font-size: 13px!important;
  opacity: 1;
  position: absolute;
  top: 15px;
  right: 10px;
  font-weight: bold;
  text-shadow:
    0 0 4px rgba(255, 0, 0, 0.6),
    0 0 8px rgba(255, 0, 0, 0.5),
    0 0 12px rgba(255, 100, 100, 0.4),
    inset 0 0 2px rgba(255, 255, 255, 0.3); /* 模拟内发光的浅反射 */
}


.modal-message.shake {
  animation: shake 0.5s;
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.modal-message.fade-out {
  animation: fadeOut 5s forwards;
}
input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #000 !important; /* 恢复文字颜色 */
  transition: background-color 9999s ease-in-out 0s; /* 防止短暂闪色 */
}

/* ===============================
   🔒 密码输入框 + 显示切换图标
   =============================== */
.password-wrapper {
  display: flex;
  align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  width: 100%;
  padding-right: 40px; /* 预留右侧图标空间 */
}

.password-wrapper .toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.password-wrapper .toggle-password:hover {
  color: #000;
}

