/* 重置样式 */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td{margin:0;padding:0}
table{border-collapse:collapse;border-spacing:0}
ol,ul{list-style:none}
fieldset,img,abbr,acronym{border:0}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

body {
    font-size: 12px;
    font-family: "\5FAE\8F6F\96C5\9ED1";
    background-color: #f5f5f5;
    padding: 0;
    min-height: 100vh;
    margin: 0;
}

.header-area {
    position: relative;
    padding: 25px 0;
    background-color: transparent;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.brand-logo img {
    max-width: 100%;
    height: 60px;
}

.red-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-color: #ff0000;
    width: 100%;
    z-index: 1000;
}

.background_container {
    overflow: hidden;
    background: url(/index_files/bg.jpg) center no-repeat;
    background-size: cover;
    height: calc(100vh - 200px);
    max-height: 800px;
}

.login_box {
    width: 320px;
    margin-left: auto;
    margin-right: 100px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 25px;
}

.admin_login_wrap {
    position: relative;
}

h4 {
    font-size: 19px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 20px 0;
    color: #333;
}

.admin_items li {
    margin-bottom: 18px;
}

.admin_items li:last-child {
    margin-bottom: 0;
}

.admin_items input[type="text"],
.admin_items input[type="email"] {
    width: 100%;
    height: 40px;
    padding: 0 12px 0 32px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.admin_items input[type="password"] {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 32px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.admin_items input[type="text"]:focus,
.admin_items input[type="email"]:focus,
.admin_items input[type="password"]:focus {
    border-color: #1890ff;
    outline: none;
}

.admin_items input[type="text"]#p {
    padding: 0 40px 0 32px;
}

.admin_items input[readonly] {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: #d9d9d9 !important;
}

.input_wrapper:has(input[readonly]) .input_icon {
    color: #999 !important;
}

.input_wrapper {
    position: relative;
}

.input_icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
}

/* 通用 icon 容器（保持原来 layout 的宽高） */
.input_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;    /* 可根据原来图标大小调整 */
  height: 20px;
  margin-right: 8px; /* 保持与输入框的间距 */
  color: #666;    /* 图标颜色（可以改） */
  font-size: 16px;/* 图标尺寸 */
}

/* 若需要特定图标大小或色彩覆盖单独样式 */
.input_icon.user_icon i { font-size:16px; color: #666; }
.input_icon.lock_icon i { font-size:16px; color: #666; }
.input_icon.shield_icon i { font-size:16px; color: #666; }

/* 确保在小屏下布局正常 */
@media (max-width:420px){
  .input_icon { width:18px; height:18px; font-size:14px; }
}


.password_toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    padding: 2px;
    transition: opacity 0.3s ease;
    width: 20px;
    height: 20px;
}

.password_toggle:hover {
    opacity: 0.7;
}

.password_toggle.visible {
    opacity: 1;
}

.captcha_container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha_container input {
    flex: 1;
    height: 40px;
    padding: 0 12px 0 32px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.captcha_container input:focus {
    border-color: #1890ff;
    outline: none;
}

.captcha_container .input_wrapper {
    flex: 1;
    position: relative;
}

.captcha_box {
    width: 95px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e0e0e0;
    overflow: hidden;
    padding: 0 8px;
}

.captcha_box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(200, 200, 200, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(150, 150, 150, 0.2) 1px, transparent 1px),
        radial-gradient(circle at 40% 70%, rgba(180, 180, 180, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(160, 160, 160, 0.2) 1px, transparent 1px),
        linear-gradient(45deg, transparent 40%, rgba(200, 200, 200, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(150, 150, 150, 0.1) 50%, transparent 60%);
    background-size: 15px 15px, 20px 20px, 18px 18px, 12px 12px, 30px 30px, 25px 25px;
    pointer-events: none;
    z-index: 1;
}

.captcha_box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #1890ff;
}

#captcha_code {
    color: #333;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    font-family: 'Courier New', monospace;
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
}

.refresh_btn {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    filter: brightness(0) saturate(0) contrast(1);
    z-index: 3;
}

.refresh_btn:hover {
    opacity: 1;
    transform: rotate(180deg) scale(1.1);
    filter: brightness(0) saturate(0) contrast(1) drop-shadow(0 0 3px rgba(0,0,0,0.5));
}

.refresh_btn:active {
    transform: rotate(180deg) scale(0.95);
}

.submit_button {
    width: 100%;
    height: 38px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.submit_button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.submit_button:active {
    transform: translateY(0);
}

.submit_button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button_error_msg {
    text-align: center;
    margin-top: 12px;
    color: #ff4d4f;
    font-size: 12px;
    min-height: 18px;
    line-height: 1.3;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.footer_copyright {
    text-align: center;
    padding: 0px 50px;
    color: #666;
    font-size: 10px;
    background-color: #f5f5f5;
    margin-top: 30px;
}

.success_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.success_message {
    background: #fff;
    padding: 40px 60px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: successFadeIn 0.5s ease-out;
}

.success_message h3 {
    color: #52c41a;
    font-size: 24px;
    margin: 0 0 20px 0;
    font-weight: bold;
}

.success_message p {
    color: #666;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.loading_spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #52c41a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .main-container {
        padding: 0 15px;
        width: 100%;
    }
    .background_container {
        padding: 20px 1px;
        height: auto;
        min-height: calc(100vh - 150px);
        width: 100%;
    }
    .login_box {
        width: 100%;
        max-width: 350px;
        margin: 20px auto;
        padding: 20px;
    }
    .header-area {
        padding: 15px 0;
    }
    .submit_button,
    .captcha_box {
        min-height: 44px;
    }
    .captcha_box {
        width: 100px;
        height: 44px;
        padding: 0 10px;
    }
    #captcha_code {
        font-size: 16px;
        letter-spacing: 1.5px;
        color: #333;
    }
    .refresh_btn {
        width: 22px;
        height: 22px;
        margin-left: 6px;
    }
    .admin_items input {
        height: 44px;
        font-size: 16px;
    }
    .admin_items input[type="password"] {
        padding: 0 45px 0 32px;
    }
    .admin_items input[type="text"]#p {
        padding: 0 45px 0 32px;
    }
    .password_toggle {
        right: 12px;
        width: 22px;
        height: 22px;
        padding: 4px;
    }
    body {
        font-size: 14px;
    }
    h4 {
        font-size: 16px;
    }
    .admin_items li {
        margin-bottom: 15px;
    }
    .success_message {
        padding: 30px 40px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    .success_message h3 {
        font-size: 20px;
    }
    .success_message p {
        font-size: 14px;
    }
    .loading_spinner {
        width: 36px;
        height: 36px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .login_box {
        margin-right: 50px;
    }
}

/* 防复制保护样式 */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

input[type="text"], input[type="email"], input[type="password"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

.debug-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    text-align: center;
    line-height: 1.5;
}

/* 样式：只读时外观、不可聚焦提示 */
input.preset-email,
input.preset-email[readonly] {
  background: #eef6fb;        /* 可调整背景色 */
  border-color: #c7e0f5;     /* 可调整边框色 */
  color: #222;
  cursor: not-allowed;
  box-shadow: none;
}

/* 禁止聚焦时的外观变化（避免高亮） */
input.preset-email:focus {
  outline: none;
  box-shadow: none;
}

/* 让 input_wrapper 支持右侧锁标志（绝对定位） */
.input_wrapper { position: relative; }

/* 锁标志样式（右侧） */
.input_wrapper .email-locked-badge {
  position: absolute;
  right: 10px;               /* 与你的 password_toggle/图标错开调整 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #6b7280;
  pointer-events: none;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 小屏微调 */
@media (max-width:420px) {
  .input_wrapper .email-locked-badge { right: 8px; font-size: 13px; }
}
