/* 觅金地图 Web 版样式 */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
}

.nav-brand h1 {
  font-size: 20px;
  color: #d4a017;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 60px;
  left: 0;
  width: 320px;
  height: calc(100vh - 60px);
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  overflow-y: auto;
  z-index: 999;
  padding: 20px;
}

.filter-section {
  margin-bottom: 20px;
}

.filter-section h3 {
  margin-bottom: 15px;
  color: #333;
}

.filter-item {
  margin-bottom: 15px;
}

.filter-item label {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: 14px;
}

.filter-item select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 矿点列表 */
.mine-list {
  margin-top: 20px;
}

.mine-list h3 {
  margin-bottom: 15px;
  color: #333;
}

#mineListContent {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.mine-item {
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.mine-item:hover {
  background: #f5f5f5;
}

.mine-item h4 {
  font-size: 14px;
  color: #333;
  margin-bottom: 5px;
}

.mine-item p {
  font-size: 12px;
  color: #999;
}

/* 地图容器 */
#mapContainer {
  position: fixed;
  top: 60px;
  left: 320px;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* 按钮样式 */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-primary {
  background: #1890ff;
  color: #fff;
}

.btn-primary:hover {
  background: #40a9ff;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-gold {
  background: linear-gradient(135deg, #d4a017, #f4d03f);
  color: #fff;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 10px;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content .close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
}

/* 登录方式 */
.login-method {
  text-align: center;
  margin-bottom: 20px;
}

.wechat-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.wechat-qr img {
  width: 180px;
  height: 180px;
}

.login-tip {
  font-size: 14px;
  color: #666;
}

.login-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.login-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #ddd;
}

.login-divider span {
  background: #fff;
  padding: 0 10px;
  position: relative;
  z-index: 1;
  color: #999;
  font-size: 14px;
}

/* 短信验证码行 */
.sms-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.sms-row .input {
  flex: 1;
}

.sms-row .btn {
  white-space: nowrap;
}

/* 登录切换 */
.login-toggle {
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.login-toggle a {
  color: #1890ff;
  text-decoration: none;
  margin-left: 5px;
}

.login-toggle a:hover {
  text-decoration: underline;
}

/* 标签页样式优化 */
.login-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #1890ff;
  border-bottom-color: #1890ff;
  background: transparent;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* 输入框 */
.input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

/* 会员套餐 */
.member-packages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.package-card {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.package-card:hover {
  border-color: #d4a017;
  transform: translateY(-2px);
}

.package-card h3 {
  margin-bottom: 10px;
  color: #333;
}

.package-card .price {
  font-size: 24px;
  color: #d4a017;
  font-weight: bold;
  margin-bottom: 15px;
}

/* 响应式 */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
  }
  
  #mapContainer {
    top: auto;
    left: 0;
    height: 50vh;
    bottom: 0;
  }
  
  .member-packages {
    grid-template-columns: 1fr;
  }
}
