:root {
  --primary-color: #07c160;
  --secondary-color: #1989fa;
  --text-color: #333333;
  --text-gray: #999999;
  --bg-color: #f5f5f5;
  --border-color: #eeeeee;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  max-width: 750px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  padding-bottom: 70px;
}

.ad-banner {
  height: 80px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-placeholder {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  font-size: 12px;
}

.lang-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  cursor: pointer;
  font-size: 14px;
}

.lang-icon {
  margin-right: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  overflow: hidden;
}

.menu-title {
  padding: 10px 16px 6px;
  font-size: 12px;
  color: var(--text-gray);
  background: #f8f8f8;
}

.menu-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-item:hover {
  background: #f0f0f0;
}

.merchant-info {
  background: #ffffff;
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.merchant-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.merchant-contact {
  font-size: 14px;
  color: var(--text-gray);
}

.merchant-contact span:first-child {
  cursor: pointer;
  color: var(--secondary-color);
}

.product-list {
  padding: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s;
}

.product-card:active {
  transform: scale(0.98);
}

.product-image {
  width: 100%;
  height: 160px;
  background: #f0f0f0;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-name-cn {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-no {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: 6px;
}

.product-price {
  font-size: 18px;
  font-weight: 600;
  color: #ff6b6b;
  cursor: help;
}

.empty-state, .loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-gray);
}

.price-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  z-index: 999;
  transform: translateX(-50%);
}

.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  padding: 12px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.contact-btn {
  width: 100%;
  height: 50px;
  background: var(--secondary-color);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

.contact-btn:active {
  opacity: 0.9;
}

.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  width: 80%;
  max-width: 320px;
}

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

.modal-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 16px;
}

.modal-item span:last-child {
  color: var(--secondary-color);
  cursor: pointer;
}

.modal-close {
  width: 100%;
  height: 44px;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 22px;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
}