/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0a0a0a;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
}

/* 顶部出售提示 */
.top-banner {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #ff4d4d, #ff9900);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  z-index: 1000;
  font-size: 14px;
}

/* 主容器 */
.container {
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  text-align: center;
  padding: 20px;
}

.header h1 {
  font-size: 28px;
  letter-spacing: 2px;
}

.header p {
  color: #aaa;
  margin-top: 5px;
}

/* 图片展示区域 */
.viewer {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* 图片 */
#main-photo {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}

/* 按钮 */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

.nav-btn:hover {
  background: rgba(255,255,255,0.2);
}

.nav-btn.left {
  left: 10px;
}

.nav-btn.right {
  right: 10px;
}

/* 滑动提示 */
.swipe-hint {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  color: #888;
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
  border-radius: 20px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  font-size: 12px;
  color: #666;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 22px;
  }

  #main-photo {
    max-height: 70vh;
  }

  .nav-btn {
    font-size: 24px;
    padding: 8px 10px;
  }
}