﻿/* 物业专用风格 - 温暖清爽 + 手机完美适配 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}
html, body {
  height: 100%;
  background: #f2f6f7;
  color: #333;
}
ul, li {
  list-style: none;
}
input, button {
  border: none;
  outline: none;
}

/* 登录页 */
.login-page {
  background: #e8f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-box {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  padding: 40px 30px;
  text-align: center;
}
.login-card h2 {
  font-size: 22px;
  margin-bottom: 25px;
  color: #2d6c6f;
  font-weight: 600;
}
.form-item {
  position: relative;
  margin-bottom: 18px;
}
.form-item i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}
.form-item input {
  width: 100%;
  height: 46px;
  background: #f9fbfb;
  border: 1px solid #dde7e7;
  border-radius: 10px;
  padding-left: 45px;
  font-size: 14px;
}
.form-item input:focus {
  border-color: #509da1;
}
.btn-submit {
  width: 100%;
  height: 48px;
  background: #49969a;
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
}
.btn-submit:hover {
  background: #3b8488;
}

/* 主界面 */
.layout {
  display: flex;
  height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: 240px;
  background: #49969a;
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar .logo {
  height: 70px;
  background: #3b8488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
}
.menu {
  padding: 15px;
}
.menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 4px;
  font-size: 14px;
}
.menu li:hover,
.menu li.active {
  background: rgba(255,255,255,0.15);
}

/* 头部 */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.header {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #e0eaea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  font-size: 17px;
  color: #444;
}
.user {
  font-size: 14px;
  color: #666;
}

/* 内容 */
.content {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-title {
  padding: 16px 22px;
  background: #f9fbfb;
  font-size: 15px;
  font-weight: 600;
  color: #444;
  border-bottom: 1px solid #f0f7f7;
}
.card-body {
  padding: 22px;
  line-height: 1.7;
  color: #555;
}

/* 公告 */
.notice-card {
  border-left: 4px solid #f5a623;
}

/* 页面切换 */
.page {
  display: none;
}
.page.show {
  display: block;
}

/* 底部日志 */
.log-bar {
  background: #f9fbfb;
  padding: 12px 25px;
  font-size: 12px;
  color: #777;
  border-top: 1px solid #e0eaea;
}

/* ------------------------------ */
/* 手机端修复 —— 菜单不占屏幕！*/
/* ------------------------------ */
@media (max-width:768px) {
  .layout {
    flex-direction: column;
  }
  /* 手机菜单变成顶部小条 */
  .sidebar {
    width: 100%;
    height: auto;
  }
  .logo {
    display: none !important;
  }
  .menu {
    display: flex;
    overflow-x: auto;
    padding: 8px 10px;
    margin: 0;
    gap: 6px;
  }
  .menu li {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 12px;
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .menu li i {
    font-size: 16px;
  }
  .content {
    padding: 12px;
  }
  .card {
    margin-bottom: 12px;
  }
  .header {
    padding: 0 15px;
    height: 60px;
  }
.logout-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #66CCFF;
  color: #fff;
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.25s ease;
}
.logout-icon-btn:hover {
  background: #e53935;
  transform: scale(0.95);
  color:#fff;
}
}