/* ========================================
   home.css — 首页样式
   现代化、简约、暗色主题
   ======================================== */

* { -webkit-tap-highlight-color: transparent; }

.home-body {
  background-color: #0a0a0a;
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  user-select: none;
}

.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 40px 20px;
}

/* 标题 */
.home-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.home-title:hover {
  color: #e8a040;
}

.home-title::after {
  content: '点击显示作者信息';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #666;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.home-title:hover::after {
  opacity: 1;
}

/* 主按钮区域 */
.home-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 320px;
}

.home-btn {
  height: 64px;
  border: 1px solid #3a3a3e;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  outline: none;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}

.home-btn-primary {
  background: linear-gradient(180deg, #3a2518 0%, #2a1a10 100%);
  border-color: #8a5a2a;
  color: #e8c080;
  box-shadow: 0 0 16px rgba(196, 130, 58, 0.2);
}

.home-btn-primary:hover {
  background: linear-gradient(180deg, #4a3020 0%, #3a2010 100%);
  border-color: #c4823a;
  box-shadow: 0 0 24px rgba(196, 130, 58, 0.35);
  transform: translateY(-2px);
}

.home-btn-secondary {
  background: linear-gradient(180deg, #1a1a2e 0%, #141430 100%);
  border-color: #3a5aaa;
  color: #a0b8f0;
  box-shadow: 0 0 16px rgba(58, 90, 170, 0.15);
}

.home-btn-secondary:hover {
  background: linear-gradient(180deg, #1e1e3a 0%, #181838 100%);
  border-color: #5a7acc;
  box-shadow: 0 0 24px rgba(58, 90, 170, 0.3);
  transform: translateY(-2px);
}

/* 沙盒摆放按钮 */
.home-btn-sandbox {
  background: linear-gradient(180deg, #1a2e1a 0%, #102a10 100%);
  border-color: #3a8a3a;
  color: #a0e0a0;
  box-shadow: 0 0 16px rgba(58, 138, 58, 0.15);
  font-size: 16px;
  height: 56px;
}

.home-btn-sandbox:hover {
  background: linear-gradient(180deg, #1e3a1e 0%, #143014 100%);
  border-color: #5aaa5a;
  box-shadow: 0 0 24px rgba(58, 138, 58, 0.3);
  transform: translateY(-2px);
}

/* 物资库 + 市场 按钮行（各占一半，对齐） */
.home-btn-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.home-btn-library,
.home-btn-market {
  flex: 1 1 0;
  width: auto;
  box-sizing: border-box;
  text-align: center;
}

/* 物资库按钮 */
.home-btn-library {
  background: linear-gradient(180deg, #2a2a2e 0%, #1e1e22 100%);
  border-color: #4a4a4e;
  color: #c0c0c0;
  font-size: 14px;
  height: 48px;
}

.home-btn-library:hover {
  background: linear-gradient(180deg, #3a3a3e 0%, #2a2a2e 100%);
  border-color: #666668;
  color: #e0e0e0;
  transform: translateY(-1px);
}

/* 市场按钮 */
.home-btn-market {
  background: linear-gradient(180deg, #2a2418 0%, #1e1a10 100%);
  border-color: #8a7a2a;
  color: #e8d080;
  font-size: 14px;
  height: 48px;
  box-shadow: 0 0 16px rgba(196, 170, 58, 0.15);
}

.home-btn-market:hover {
  background: linear-gradient(180deg, #3a3220 0%, #2a2414 100%);
  border-color: #c4aa3a;
  color: #f0e0a0;
  box-shadow: 0 0 24px rgba(196, 170, 58, 0.3);
  transform: translateY(-1px);
}

/* 作者信息弹窗 */
.author-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.author-overlay.visible {
  display: flex;
}

.author-panel {
  width: 300px;
  background: linear-gradient(180deg, #1e1e22 0%, #16161a 100%);
  border: 1px solid #4a4a4e;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  padding: 24px;
  text-align: center;
}

.author-panel h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.author-panel p {
  font-size: 13px;
  color: #a0a0a8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.author-close {
  width: 100%;
  height: 36px;
  background: linear-gradient(180deg, #4a4a4e 0%, #3a3a3e 100%);
  border: 1px solid #555558;
  border-radius: 3px;
  color: #e0e0e0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.author-close:hover {
  background: linear-gradient(180deg, #5a5a5e 0%, #4a4a4e 100%);
  border-color: #666668;
}
