/* H5通用样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #fff;
  background: #000;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  outline: none;
  border: none;
  font-family: inherit;
}

/* 通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-block {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

/* Toast */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s;
  max-width: 80%;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Modal */
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-box {
  width: 85%;
  max-width: 360px;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.modal-content {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-input {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
}

.btn-cancel {
  background: rgba(255,255,255,0.1);
  color: #ccc;
}

.btn-confirm {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
}

/* 空状态 */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.empty-icon {
  font-size: 60px;
  margin-bottom: 16px;
}

.empty-text {
  font-size: 15px;
  margin-bottom: 8px;
}

.empty-tip {
  font-size: 12px;
  color: #555;
}

/* 卡片 */
.card {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

/* 标签 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 11px;
  color: #ccc;
}

.tag-red {
  background: rgba(255,71,87,0.2);
  color: #ff4757;
}

.tag-green {
  background: rgba(46,213,115,0.2);
  color: #2ed573;
}

.tag-gold {
  background: rgba(255,215,0,0.2);
  color: #ffd700;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* 响应式 */
@media (min-width: 768px) {
  body {
    font-size: 15px;
  }
}
