﻿﻿﻿﻿﻿﻿﻿﻿﻿﻿:root {
  --bs-font-sans-serif: "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
}

/* 全局基础样式：重置页面默认内外边距、统一盒模型，设置系统通用无衬线字体，规范页面背景色、链接过渡、列表清除默认样式 */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none !important;
  background-color: #f7f8fa;
  font-family: "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, sans-serif !important;
}

* {
  font-family: inherit;
}

/* 覆盖浏览器自动填充的黄色背景 */
@keyframes autofillFix {
  to {
    background-color: #ffffff;
    color: #333333;
  }
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #333333 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-animation: autofillFix 0s forwards !important;
  animation: autofillFix 0s forwards !important;
  caret-color: #333333;
}

a {
  text-decoration: none;
  transition: color 0.24s ease;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 警告提示框：覆盖Bootstrap原生danger红色样式，适配发票须知提示，优化底色、边框、文字对比度、内边距与列表排版 */
.alert.alert-danger {
  background-color: #fff9e8 !important;
  border: 1px solid #ffd591 !important;
  border-radius: 12px !important;
  color: #ad5c00 !important;
  padding: 16px 24px !important;
  margin-bottom: 24px !important;
  line-height: 1.8 !important;
  font-size: 15px !important;
}
.alert.alert-danger ul {
  margin: 0;
  padding-left: 0;
}
.alert.alert-danger li {
  line-height: 2.2;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-left: 26px;
}
.alert.alert-danger li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 1px;
  color: #fa8c16;
  font-weight: 600;
  font-size: 20px;
}

/* 横向滚动条：表格横向滚动专用，默认隐藏滚动条，鼠标悬浮后显示细款浅灰色滚动条，兼容webkit与firefox内核 */
.element-scrollbar {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.element-scrollbar:hover {
  scrollbar-color: #c0c6cf transparent;
}

.element-scrollbar::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.element-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.element-scrollbar::-webkit-scrollbar-thumb {
  background: #c0c6cf;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.element-scrollbar:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}

/* 消息通知弹窗：页面顶部居中显示 */
#notification-container {
  position: fixed !important;
  top: 20px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483647 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  pointer-events: none !important;
  transform: none !important;
}

.notification-toast {
  pointer-events: auto;
  max-width: 90vw;
  min-width: 300px;
}

.notification-toast-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.5;
}

.notification-toast-content {
  flex: 1;
  min-width: 0;
}

.notification-toast-title {
  font-weight: 600;
  font-size: 14px;
  color: #303133;
  margin-bottom: 4px;
}

.notification-toast-message {
  font-size: 13px;
  color: #606266;
  line-height: 1.5;
}

.toast-notification i {
  margin-top: 2px;
  font-size: 18px;
}

.toast-notification .toast-notification-content .title h2 {
  color: #1f2937;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  margin: 0;
}

.toast-notification .toast-notification-content .message {
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
  margin: 4px 0 0;
}

/* 弹窗模态框：全局弹窗统一风格，使用css变量统一配色，控制弹窗宽度、圆角、阴影、头部/内容/底部布局与按钮交互 */
.messagebox-modal {
  --modal-bg: #ffffff;
  --modal-border: #e5e7eb;
  --modal-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --primary-color: #3b82f6;
  --primary-hover: #60a5fa;
  --secondary-bg: #f3f4f6;
  --secondary-text: #4b5563;
}

.modal-dialog {
  max-width: 420px;
}

.messagebox-modal .modal-content {
  border-radius: 10px;
  box-shadow: var(--modal-shadow);
  background: var(--modal-bg);
  border: 1px solid var(--modal-border);
  overflow: hidden;
}

.messagebox-modal .modal-header {
  padding: 16px 20px;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.messagebox-modal .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.messagebox-modal .btn-close {
  width: 30px;
  height: 30px;
  padding: 0;
  opacity: 0.6;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.messagebox-modal .btn-close:hover {
  opacity: 1;
  background: #f3f4f6;
}

.messagebox-modal .modal-body {
  padding: 0 20px 16px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
}

.messagebox-modal .modal-footer {
  padding: 12px 20px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: none;
}

.messagebox-modal .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 14px;
  min-width: 84px;
  transition: background-color 0.24s ease;
}

.messagebox-modal .btn-primary:hover {
  background-color: var(--primary-hover);
}

.messagebox-modal .btn-secondary {
  background-color: var(--secondary-bg);
  border-color: #d1d5db;
  color: var(--secondary-text);
  padding: 8px 22px;
  border-radius: 6px;
  font-size: 14px;
  min-width: 84px;
  transition: background-color 0.24s ease;
}

.messagebox-modal .btn-secondary:hover {
  background-color: #e5e7eb;
}

/* 空数据占位：列表无数据时展示空白页，居中布局，控制图片尺寸与提示文字灰度 */
.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 80px 20px;
  position: relative;
}

.empty .img {
  width: 180px;
  height: 180px;
  margin-bottom: 16px;
}

.empty .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty span {
  color: #9ca3af;
  font-size: 14px;
}

/* 分页组件：列表底部分页控件，统一分页按钮、下拉框、数字输入框样式，hover提供淡蓝交互反馈 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  margin: 20px 0 0 !important;
  color: #4b5563;
}

.pagination span {
  display: flex;
  align-items: center;
}

.pagination span .form-select {
  width: 92px;
  margin: 0 4px;
  color: #4b5563;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

.pagination a {
  text-decoration: none;
  padding: 5px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #3b82f6;
  transition: background 0.2s ease;
}

.pagination a:hover {
  background-color: #eff6ff;
  border-color: #3b82f6;
}

.pagination .current {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
  padding: 5px 10px;
  border-radius: 6px;
}

.pagination .disabled {
  color: #d1d5db;
  cursor: not-allowed;
  border-color: #e5e7eb;
}

.pagination input[type="number"] {
  width: 52px;
  padding: 5px;
  border-radius: 6px;
  margin: 0 4px;
  border: 1px solid #d1d5db;
}

/* 图片上传框：通用文件上传容器，虚线边框，hover变色，内部隐藏文件输入，支持预览图与删除按钮定位 */
.upload-box {
  width: 180px;
  height: 180px;
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.24s ease;
}

.upload-box:hover {
  background-color: #f0f7ff;
  border-color: #93c5fd;
}

.upload-box .plus-icon {
  font-size: 46px;
  color: #9ca3af;
  opacity: 0.8;
  transition: color 0.2s ease;
}

.upload-box:hover .plus-icon {
  color: #3b82f6;
}

.upload-box input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.upload-box .delete-btn {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(-50%, -50%);
  color: #ef4444;
  border: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
}

.upload-box .preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.upload-box .preview-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* 头像上传组件：圆形头像上传模块，hover浮现遮罩上传按钮，边框hover高亮 */
.avatar-upload {
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.avatar-upload:hover .upload-icon {
  opacity: 1;
}

.avatar-upload .upload-icon {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.24s ease;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
}

.avatar-upload .avatar-preview {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s ease;
}

.avatar-upload:hover .avatar-preview {
  border-color: #3b82f6;
}

.avatar-upload .file-input {
  display: none;
}

/* 合作伙伴滚动横幅：横向无限滚动logo栏，鼠标悬浮暂停动画，logo容器hover浅灰底色提升交互感 */
.partners-list-container {
  overflow: hidden;
  width: 100%;
  margin: 24px auto 0;
  border-radius: 10px;
  padding: 16px 0;
  background: #ffffff;
  position: relative;
  border: 1px solid #f3f4f6;
}

.partners-list-container::before,
.partners-list-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.partners-list-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partners-list-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partners-item-row {
  display: inline-flex;
  white-space: nowrap;
  gap: 28px;
  transform: translateZ(0);
  will-change: transform;
  animation: partnersScroll linear infinite;
  animation-play-state: running;
}

.partners-list-container:hover .partners-item-row {
  animation-play-state: paused !important;
}

@keyframes partnersScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.partner-item {
  width: 200px;
  height: 72px;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f3f4f6;
  background: #fff;
}

.partner-item:hover {
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.1);
  transform: translateY(-2px);
}

.partner-item img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
}

/* 发票列表表格专用美化：统一单元格间距、表头底色、行hover交互 */
.table.table-bordered {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.table.table-bordered thead tr td {
  background: linear-gradient(180deg, #f8fafd 0%, #f3f6fb 100%) !important;
  font-weight: 600;
  color: #4a5a75;
  padding: 10px 14px !important;
  border: none;
  border-bottom: 1px solid #e8ecf2;
  font-size: 14px;
}
.table.table-bordered tbody tr td {
  padding: 10px 14px !important;
  border: none;
  border-bottom: 1px solid #f0f2f5;
  color: #2c3e50;
  vertical-align: middle;
  font-size: 14px;
  transition: background-color 0.2s ease;
}
.table.table-bordered tbody tr:last-child td {
  border-bottom: none;
}
.table.table-bordered tbody tr:hover td {
  background-color: #f7faff;
}
/* 单元格对齐样式 */
.remark_center {
  text-align: center;
}
.remark {
  text-align: left;
}
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 轻量化细边框状态标签，参考启用按钮纤细样式，保留原有配色 */
.tag-warning {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #b8d8ff;
  background-color: #e8f3ff;
  color: #005DFF;
  font-size: 13px;
  line-height: 1.4;
}
.tag-success {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #98e8b2;
  background-color: #ecfdf0;
  color: #24C735;
  font-size: 13px;
  line-height: 1.4;
}
.tag-danger {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #ffb8bc;
  background-color: #fee;
  color: #E91B1B;
  font-size: 13px;
  line-height: 1.4;
}
/* 金额文字柔和配色 */
.money-text {
  color: #d63031;
  font-weight: 500;
}

/* 顶部导航按钮（立即登录 / 快速注册）：悬浮变实心白底 */
.header .header-nav-btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.header .header-nav-btn:hover,
.header .header-nav-btn:focus {
  background-color: #ffffff !important;
  color: rgb(0, 93, 255) !important;
  border-color: #ffffff !important;
}


/* 手机端未登录立即登录 / 快速注册按钮：等宽对齐，跟快速注册框一样大小 */
@media (max-width: 1199.98px) {
  .header .mobile-login-btn {
    width: 100%;
    min-width: 90px;
    padding: 0.375rem 0.75rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header .mobile-logout-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: 90px;
    padding: 0.375rem 0.75rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    white-space: nowrap;
  }
  .header .header-nav-btn {
    min-width: 90px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .header .navbar-collapse .navbar-nav .nav-item.btn {
    padding: 0.375rem 1rem;
  }
}


/* navbar 折叠后汉堡菜单里立即登录 / 快速注册框宽度一致 */
.header .navbar-collapse .navbar-nav.d-grid > .nav-item.btn {
  flex: 1 1 0;
  text-align: center;
  min-width: 90px;
}
@media (min-width: 1200px) {
  .header .navbar-collapse .navbar-nav.d-grid > .nav-item.btn {
    flex: 0 0 auto;
    min-width: 90px;
  }
}

/* 通知抖动动画（密码错误等关键错误时） */
@keyframes notification-shake-anim {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-8px); }
  30%, 60%, 90% { transform: translateX(8px); }
}
.notification-toast.notification-shake {
  animation: notification-shake-anim 0.45s ease-in-out;
}

/* 通知消息内嵌链接（如"忘记密码？"） */
.notification-toast-message .notification-link {
  color: #2968ff;
  text-decoration: none;
  margin-left: 8px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.notification-toast-message .notification-link:hover {
  color: #1d4fcc;
  text-decoration: underline;
}

/* 页脚产品专题与原服务指南分列展示 */
.footer .more .content .other .box.footer-link-columns .item {
  width: 20%;
  padding-left: 16px;
}

/* 主站与专题页共用的标题层级：只在此处维护字号和字重 */
.site-main-hero-title {
  color: #fff;
  font-size: 44px;
  font-weight: bold;
  line-height: normal;
  letter-spacing: normal;
}

.site-main-section-title {
  color: #1f2937;
  font-size: 28px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: normal;
}
