
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f8f6;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: #333;
}
ul, li {
  list-style: none;
}
img {
  border: none;
  vertical-align: middle;
}
button, input, select, textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}
input, select, textarea {
  padding: 8px 10px;
  font-size: 14px;
  background:#fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
th {
  background: #f2f7f4;
  font-weight: bold;
  color:#206c46;
}

/* 布局 顶部导航栏 深绿色 */
.top-wrap {
  height: 50px;
  background: #206c46;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}
.main-container {
  display: flex;
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
}


.left-tabs {
  width: 220px;
  background: #fff;
  border-right: 1px solid #e6edea;
  display: flex;
  flex-direction: column;
}
.right-iframe {
  flex: 1;
  border: none;
  background: #f5f8f6;
}

/* 顶部菜单 */
.menu-container {
  height: 50px;
}
.menu-main {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 15px;
}
.menu-item {
  position: relative;
  margin-right: 5px;
}
.menu-link {
  display: block;
  padding: 0 15px;
  height: 50px;
  line-height: 50px;
  color: #fff;
  font-size: 14px;
}
.menu-link:hover, .menu-link.active {
  background: #185a3a;
}
.sub-menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  width: 160px;
  background: #fff;
  border: 1px solid #e6edea;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 99;
}
.sub-menu li a {
  display: block;
  padding: 0 15px;
  height: 38px;
  line-height: 38px;
  color: #333;
}
.sub-menu li a:hover {
  background: #f2f7f4;
  color: #206c46;
}
.logout-link {
  color: #fff !important;
  cursor: pointer;
}
.fullscreen-btn {
  background: none;
  border: none;
  color: #fff;
  height: 50px;
  padding: 0 10px;
  cursor: pointer;
}

/* 左侧标签栏 */
.tab-content {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}
.system-title {
  font-size: 16px;
  font-weight: bold;
  padding: 10px;
  text-align: center;
  color: #206c46;
}
.close-all-tabs {
  text-align: center;
  padding: 6px;
  background: #f2f7f4;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 12px;
  color:#206c46;
}
.tab-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8faf9;
  border-radius: 4px;
  margin-bottom: 6px;
  cursor: pointer;
}
.tab-item.active {
  background: #e6f2ec;
  color: #206c46;
  border-left: 3px solid #206c46;
}
.tab-close {
  font-size: 16px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
}
.tab-close:hover {
  background: #ff4d4f;
  color: #fff;
}
.copyright-text {
  padding: 10px;
  text-align: center;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #e6edea;
}

/* 登录页 */
.login-body {
  background: #f5f8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-card {
  width: 400px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(32,108,70,0.15);
  padding: 30px;
}
.login-title {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #206c46;
}
.tip {
  color: red;
  text-align: center;
  margin-bottom: 15px;
}
.form-item {
  margin-bottom: 18px;
}
.form-item label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
.form-item input {
  width: 100%;
  height: 42px;
}
.btn {
  width: 100%;
  height: 44px;
  background: #206c46;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}
.btn:hover {
  background: #185a3a;
}

/* 弹窗样式 */
.pwd-modal-mask {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.pwd-modal-box {
  width: 420px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.pwd-modal-header {
  padding: 15px;
  background: #206c46;
  color: #fff;
  display: flex;
  justify-content: space-between;
}
.pwd-modal-close {
  cursor: pointer;
  font-size: 16px;
}
.pwd-modal-body {
  padding: 20px;
}
.pwd-form-item {
  margin-bottom: 15px;
}
.pwd-form-item label {
  display: block;
  margin-bottom: 6px;
}
.pwd-form-item input {
  width: 100%;
  height: 38px;
}
.pwd-tip {
  color: red;
  margin-top: 10px;
  text-align: center;
}
.pwd-modal-footer {
  padding: 15px;
  text-align: right;
  border-top: 1px solid #eee;
}
.pwd-btn {
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  border: none;
}
.pwd-btn-cancel {
  background: #f5f7fa;
  color: #333;
}
.pwd-btn-submit {
  background: #206c46;
  color: #fff;
}

/* 通用卡片、按钮、分页 */
.card {
  background: #fff;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #e6edea;
}
.card-header {
  font-size:16px;
  font-weight:bold;
  margin-bottom:15px;
  color:#206c46;
  border-bottom:1px solid #eee;
  padding-bottom:10px;
}
.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 15px;
  align-items: center;
}
.tool-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.small-btn {
  padding: 6px 12px;
  background: #206c46;
  color: #fff;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 12px;
}
.small-btn.danger {
  background: #ff4d4f;
}
.small-btn.success {
  background: #00b42a;
}
.page-box {
  margin-top: 15px;
  text-align: center;
  padding: 10px 0;
}
.pagination{display:flex;align-items:center;gap:8px;margin-top:15px;flex-wrap:wrap;}
.pagination a,.pagination span{padding:6px 12px;border:1px solid #ddd;border-radius:4px;text-decoration:none;color:#333;}
.pagination a:hover{background:#f2f7f4;color:#206c46;}
.pagination .active{background:#206c46;color:#fff;border-color:#206c46;}
.pagination .disabled{color:#999;cursor:not-allowed;}
.per-page-select{padding:6px;border:1px solid #ccc;border-radius:4px;}
.total-info{margin-left:10px;color:#666;}

/* 新增按钮 */
.btn-add{
  display:inline-block;
  padding:6px 15px;
  background:#206c46;
  color:#fff;
  border-radius:4px;
}
.btn-add:hover{
  background:#185a3a;
}

/* 用户下拉菜单 */
.user-menu:hover .user-dropdown-menu { display: block; }
.user-dropdown-menu {
  right: 0; left: auto; width: 200px;
}


/* 菜单核心样式 - 确保下拉正常 */
.menu-main {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 15px;
    position: relative;
    z-index: 999;
}
.menu-item {
    position: relative;
    list-style: none;
}
.menu-link {
    display: block;
    padding: 0 15px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    text-decoration: none;
}
.menu-item:hover .sub-menu {
    display: block !important;
}
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
}
.sub-menu li {
    list-style: none;
}
.sub-menu li a,
.user-info-item {
    display: block;
    padding: 0 15px;
    height: 38px;
    line-height: 38px;
    color: #333 !important;
    white-space: nowrap;
}
.sub-menu li a:hover {
    background: #f2f7f4;
    color: #206c46 !important;
}
.menu-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}
.fullscreen-btn {
    background: none;
    border: none;
    color: #fff;
    height: 50px;
    padding: 0 10px;
    cursor: pointer;
}

/* 密码弹窗 */
.pwd-modal-mask {
    display: none;
    position: fixed;
    left:0;top:0;right:0;bottom:0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.pwd-modal-box {
    width: 400px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.pwd-modal-header {
    padding: 15px;
    background: #206c46;
    color: #fff;
    display: flex;
    justify-content: space-between;
}
.pwd-modal-close {
    cursor: pointer;
}
.pwd-modal-body {
    padding: 20px;
}
.pwd-form-item {
    margin-bottom: 15px;
}
.pwd-form-item label {
    display: block;
    margin-bottom: 5px;
}
.pwd-form-item input {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.pwd-modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #eee;
}
.pwd-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}
.pwd-btn-submit {
    background: #206c46;
    color: #fff;
}


.form-btn {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.btn {
    width: 200px;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}
.btn-primary {
    background: #206c46;
    color: #fff;
}
.btn-default {
    background: #f5f5f5;
    color: #333;
}