/* 首页（按 UI改版/00首页.jpg 结构重做） */

.home-body {
  /* 覆盖 common.css 的背景，做成“纸张”风格 */
  background: url(../images/content_bg.png) repeat;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  display: flex;
  flex-direction: column;
}

.home-body .home-topbar {
  margin: 0;
  flex-shrink: 0;
}

.home-body main {
  width: 100%;
  min-height: 800px;
  margin: 0;
  padding: 0;
  flex: 1;
}

.home-body .home-footer {
  margin: 0;
  flex-shrink: 0;
}

.home-container {
  width: 1200px;
  margin: 0 auto;
}

.home-topbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.home-topbar-inner {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.home-brand {
  display: flex;
  align-items: center;
  min-width: 260px;
}

.home-brand-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.home-title-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-title-img {
  height: 32px;
  object-fit: contain;
}

.home-userbox {
  min-width: 260px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: #6b6b6b;
  flex: 1;
  justify-content: flex-end;
}

.home-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(#d7c08f, #b18a44);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s;
}

.home-login-btn:hover {
  background: linear-gradient(#b18a44, #d7c08f);
  box-shadow: 0 2px 8px rgba(177, 138, 68, 0.3);
}

/* 用户下拉框（layuiadmin 风格） */
.home-user-dropdown {
  position: relative;
}

.home-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
}

.home-user-trigger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.home-user-avatar-icon {
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  font-size: 18px;
  border-radius: 50%;
  background: #e8e8e8;
  color: #666;
  flex-shrink: 0;
}

.home-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: 14px;
}

.home-user-arrow {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 4px;
  transition: transform 0.2s;
}

.home-user-dropdown.open .home-user-arrow {
  transform: rotate(180deg);
}

.home-user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin: 4px 0 0;
  padding: 6px 0;
  min-width: 120px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #eee;
  list-style: none;
  display: none;
  z-index: 1000;
}

.home-user-dropdown.open .home-user-menu {
  display: block;
}

.home-user-menu dd {
  margin: 0;
  padding: 0;
}

.home-user-menu dd a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.home-user-menu dd a:hover {
  background: #f6f6f6;
  color: #009688;
}

.home-user-menu dd a[href*="login/out"]:hover {
  color: #a94d2a;
}

.home-panel {
  margin-top: 0;
  padding: 55px 0 80px;
  background: url(../images/index/banner-bg.png) no-repeat center;
  background-size: 100% 100%;
  width: 100%;
}

.home-panel--content {
  min-height: 800px;
  padding: 24px 0;
  background: url(../images/content_bg.png) repeat;
}

.home-panel > .home-container {
  display: flex;
  gap: 22px;
  padding: 0 26px;
}

.home-panel-left {
  flex: 1;
  min-width: 0;
  color: #6b4a34;
}

.home-meta-block {
  margin: 0 0 18px 0;
  font-size: 16px;
  line-height: 2.2;
}

.home-meta-line {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 48px;
}

.home-meta-line + .home-meta-line {
  margin-top: 6px;
}

.home-meta-pair {
  color: #6b4a34;
}

.home-meta-pair b {
  font-weight: 700;
}

.home-meta-gap {
  display: inline-block;
  width: 32px;
}

.home-desc {
  margin-top: 28px;
}

.home-desc-title {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 8px 0;
  text-align: left;
}
.home-desc p {
  margin: 0;
  line-height: 2;
  text-align: justify;
  text-indent: 2em;
  font-size: 16px;
}

.home-panel-right {
  width: 520px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: -10px;
}

.home-phonetics {
  overflow: hidden;
  line-height: 0;
}

.home-phonetics img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.home-photo {
  height: auto;
  min-height: 200px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.home-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.home-entry {
  margin: 0;
  padding: 45px 0 55px;
  background: url(../images/index/nav-bg.png) no-repeat center;
  background-size: 100% 100%;
  width: 100%;
  position: relative;
}

.home-entry::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: calc(100% - 100px);
  background: url(../images/index/nav-border.png) no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
}

.home-entry > .home-container {
  padding: 55px 26px 65px;
  position: relative;
  z-index: 1;
}

.home-entry-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
}

.home-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.home-card--locked {
  cursor: default;
  opacity: 0.9;
}

.home-card-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.home-card-btn {
  width: 170px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  background: url(../images/index/nav-btn.png) no-repeat center;
  background-size: 100% 100%;
  border: none;
  transition: background 0.3s;
}

.home-card:hover .home-card-btn {
  background: url(../images/index/nav-btn-on.png) no-repeat center;
  background-size: 100% 100%;
}

.home-card-btn--gold {
  /* 第一个按钮保持金色样式，如果需要的话 */
}

.home-card-btn--gray {
  /* 其他按钮使用图片背景 */
}

.home-footer {
  background: #8f5f47;
  color: rgba(255, 255, 255, 0.92);
}

.home-footer-inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 1px;
}

/* 登录弹窗 */
.login-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.login-popup-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.52);
}

.login-popup-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 56px rgba(107, 74, 52, 0.22), 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 0;
  overflow: hidden;
}

.login-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  background: linear-gradient(180deg, #faf8f5 0%, #fff 100%);
  border-bottom: 1px solid #eee;
}

.login-popup-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #6b4a34;
  letter-spacing: 1px;
}

.login-popup-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}

.login-popup-close:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.08);
}

.login-popup-card .login-form {
  padding: 28px 28px 32px;
  margin: 0;
}

.login-popup-card .login-field {
  margin-bottom: 20px;
}

.login-popup-card .login-field:last-of-type {
  margin-bottom: 24px;
}

.login-popup-card .login-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #6b4a34;
  margin-bottom: 8px;
}

.login-popup-card .login-input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  font-size: 15px;
  border: 1px solid #d4c4a8;
  border-radius: 8px;
  background: #fdfcf9;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.login-popup-card .login-input::placeholder {
  color: #aaa;
}

.login-popup-card .login-input:focus {
  outline: none;
  border-color: #b18a44;
  box-shadow: 0 0 0 3px rgba(177, 138, 68, 0.15);
}

.login-popup-card .login-msg {
  min-height: 20px;
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 20px;
}

.login-popup-card .login-msg--err {
  color: #c44;
}

.login-popup-card .login-msg--ok {
  color: #4a8;
}

.login-popup-card .login-btn {
  width: 100%;
  height: 46px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(#d7c08f, #b18a44);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.login-popup-card .login-btn:hover:not(:disabled) {
  background: linear-gradient(#b18a44, #d7c08f);
  box-shadow: 0 4px 12px rgba(177, 138, 68, 0.35);
}

.login-popup-card .login-btn:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}