/* 代购活动系统样式表 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

:root {
  --primary-color: #007AFF;
  --secondary-color: #FFFFFF;
  --accent-color: #FF9500;
  --text-color: #333333;
  --light-gray: #F5F5F5;
  --border-radius: 5px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
  background-color: var(--light-gray);
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.5;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.container {
  padding: 15px;
  padding-bottom: 60px; /* 为底部导航栏留出空间 */
}

/* 头部样式 */
.header {
  background-color: #0099FF;
  color: var(--secondary-color);
  padding: 12px 15px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header h1 {
  font-size: 18px;
  font-weight: normal;
  margin: 0;
  flex: 1;
  text-align: center;
}

.back-button {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 16px;
}

.header-right-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 16px;
}

/* 轮播图样式 */
.carousel {
  width: 100%;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.carousel-inner {
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.carousel-item-content {
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: var(--secondary-color);
}

.carousel-item-title {
  font-size: 18px;
  margin-bottom: 5px;
}

.carousel-item-subsidy {
  font-size: 16px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.carousel-button {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.2s;
}

.carousel-button:hover {
  transform: scale(1.05);
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.carousel-indicator.active {
  background-color: var(--secondary-color);
}

/* 活动列表样式 */
.section-title {
  font-size: 18px;
  margin: 15px 0;
  color: var(--primary-color);
}

/* 活动滚动轮播样式 */
.activity-marquee {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 12px 15px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;
  height: 200px;
}

.activity-marquee-container {
  position: absolute;
  width: 100%;
  animation: marquee 15s linear infinite;
}

.activity-marquee-item {
  padding: 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 36px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.activity-marquee-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.activity-marquee-item span.price {
  color: #FF3B30;
  font-weight: bold;
}

.activity-marquee-item span.profit {
  color: var(--accent-color);
  font-weight: bold;
}

@keyframes marquee {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

/* 暂停动画当鼠标悬停 */
.activity-marquee:hover .activity-marquee-container {
  animation-play-state: paused;
}

/* 活动列表样式（旧样式保留，但不再使用） */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
}

.activity-info {
  flex: 1;
}

.activity-name {
  font-size: 16px;
  margin-bottom: 5px;
}

.activity-subsidy {
  color: var(--accent-color);
  font-weight: bold;
  margin-bottom: 5px;
}

.activity-countdown {
  font-size: 12px;
  color: #666;
}

.activity-button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 5px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.2s;
}

.activity-button:hover {
  transform: scale(1.05);
}

/* 悬浮按钮样式 */
.float-button {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #1E90FF;
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  z-index: 100;
  transition: transform 0.2s;
  text-align: center;
  line-height: 1.2;
  font-weight: bold;
  padding: 5px;
}

.float-button:hover {
  transform: translateY(-50%) scale(1.05);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 20px;
  width: 80%;
  max-width: 300px;
  text-align: center;
}

.modal-title {
  font-size: 18px;
  margin-bottom: 15px;
}

.qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-text {
  margin-bottom: 15px;
}

.close-button {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
}

/* 底部导航栏样式 */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--secondary-color);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  text-decoration: none;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-icon {
  font-size: 20px;
  margin-bottom: 5px;
}

.nav-text {
  font-size: 12px;
}

/* 活动详情页样式 */
.activity-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
}

.activity-description {
  margin-bottom: 20px;
  line-height: 1.6;
}

.address-container {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.address {
  flex: 1;
  word-break: break-all;
}

.copy-button {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  padding: 5px 10px;
  border-radius: var(--border-radius);
  margin-left: 10px;
  cursor: pointer;
}

/* 商品分类页样式 */
.category-container {
  display: flex;
  height: calc(100vh - 60px);
}

.category-sidebar {
  width: 20%;
  background-color: var(--light-gray);
  padding: 10px 0;
  overflow-y: auto;
}

.category-button {
  width: 100%;
  padding: 15px 10px;
  text-align: center;
  background-color: var(--secondary-color);
  border: none;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.category-button.active {
  background-color: var(--accent-color);
  color: var(--secondary-color);
}

.product-list {
  width: 80%;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow-y: auto;
}

.product-item {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: transform 0.2s;
}

.product-item:hover {
  transform: scale(1.02);
}

.product-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin-bottom: 10px;
}

.product-name {
  text-align: center;
}

/* 商品详情页样式 */
.product-container {
  padding-top: 10px;
  background-color: var(--secondary-color);
}

.product-info-list {
  margin-bottom: 15px;
}

.product-info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.info-label {
  color: #666;
  font-size: 14px;
  font-weight: normal;
}

.info-value {
  color: #333;
  font-size: 14px;
}

.price-item {
  margin-top: 5px;
}

.price-value {
  color: #FF3B30;
  font-weight: bold;
  font-size: 16px;
}

.product-notice {
  margin: 15px 0;
  padding: 10px;
  background-color: #FFF9F9;
  border-radius: var(--border-radius);
  font-size: 12px;
  line-height: 1.5;
}

.highlight {
  color: #FF3B30;
  font-weight: bold;
}

.notice-highlight {
  color: #FF3B30;
  font-weight: bold;
  text-align: center;
  margin-top: 5px;
}

.quantity-selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 10px 0;
}

.quantity-label {
  font-size: 14px;
  color: var(--text-color);
}

.quantity-controls {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  cursor: pointer;
}

.quantity-input {
  width: 50px;
  height: 30px;
  border: 1px solid #ddd;
  text-align: center;
  margin: 0 5px;
}

.bottom-button-container {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  padding: 10px 15px;
  background-color: var(--secondary-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
  max-width: 750px;
  margin: 0 auto;
}

.confirm-button {
  width: 100%;
  height: 44px;
  background-color: #0099FF;
  color: var(--secondary-color);
  border: none;
  border-radius: 22px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* 提现页面样式 */
.withdraw-title {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.amount-options {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
}

.amount-button {
  flex: 1;
  background-color: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  padding: 12px;
  border-radius: var(--border-radius);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.amount-button:hover {
  transform: scale(1.05);
}

/* 提示框样式 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: var(--border-radius);
  z-index: 2000;
  display: none;
}

/* 响应式调整 */
@media (max-width: 480px) {
  .amount-options {
    flex-direction: column;
  }
  
  .product-list {
    grid-template-columns: 1fr;
  }
}

/* 个人中心页样式 */
.user-profile {
  background-color: white;
  border-radius: 8px;
  padding: 20px 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.user-avatar {
  margin-right: 15px;
}

.user-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}

.user-level {
  font-size: 14px;
  color: #FF9500;
}

.account-balance {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.balance-item {
  flex: 1;
}

.balance-value {
  font-size: 18px;
  font-weight: 500;
  color: #FF3B30;
  margin-bottom: 5px;
}

.balance-label {
  font-size: 12px;
  color: #8E8E93;
}

.menu-list {
  background-color: white;
  border-radius: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #F2F2F7;
  text-decoration: none;
  color: #333;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-icon {
  width: 24px;
  text-align: center;
  margin-right: 10px;
  color: #007AFF;
}

.menu-text {
  flex: 1;
}

.menu-arrow {
  color: #C7C7CC;
}

/* 订单页样式 */
.order-tabs {
  display: flex;
  background-color: white;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.order-tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.order-tab.active {
  color: #007AFF;
  border-bottom: 2px solid #007AFF;
  font-weight: 500;
}

.order-list {
  margin-bottom: 60px;
}

.order-item {
  background-color: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F2F2F7;
}

.order-number {
  font-size: 14px;
  color: #8E8E93;
}

.order-status {
  font-size: 14px;
  font-weight: 500;
}

.order-status.pending {
  color: #FF9500;
}

.order-status.processing {
  color: #007AFF;
}

.order-status.completed {
  color: #4CD964;
}

.order-content {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F2F2F7;
}

.order-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 15px;
}

.order-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.order-product-name {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #333;
}

.order-spec {
  font-size: 13px;
  color: #8E8E93;
  margin-bottom: 10px;
}

.order-price {
  font-size: 15px;
  color: #FF3B30;
  font-weight: 500;
}
.order-price span{
	margin-right: 10px;
}
.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-time {
  font-size: 13px;
  color: #8E8E93;
}

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

.order-button {
  background-color: white;
  border: 1px solid #007AFF;
  color: #007AFF;
  border-radius: 4px;
  padding: 8px 15px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.order-button:hover {
  background-color: #f0f8ff;
}

.order-button.primary {
  background-color: #007AFF;
  color: white;
  border: none;
}

.order-button.primary:hover {
  background-color: #0066cc;
}

.order-button.cancel {
  border-color: #8E8E93;
  color: #8E8E93;
}

.order-button.cancel:hover {
  background-color: #f5f5f5;
}

/* 商品选择下拉框样式 */
.product-select {
  width: 100%;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: var(--text-color);
}

.product-select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.category-group {
  font-weight: bold;
}

/* 选择器样式 */
.selector-item {
  background-color: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 15px;
}

.selector-value {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #333;
}

.selector-value i {
  color: #ccc;
  margin-left: auto;
}

.price-symbol {
  color: #FF9500;
  margin-left: 5px;
  font-weight: bold;
}

.hidden-select {
  display: none;
}

/* 选择器弹出层样式 */
.selector-modal {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 1000;
  border-radius: 10px 10px 0 0;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  max-width: 750px;
  margin: 0 auto;
}

.selector-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.selector-header h3 {
  margin: 0;
  font-size: 16px;
}

/* .selector-close-btn {
  position: absolute;
  left: 15px;
  background: none;
  border: none;
  font-size: 16px;
  color: #999;
  cursor: pointer;
} */

.selector-content {
  padding: 10px 0;
}

.selector-option {
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}

.selector-option:active {
  background-color: #f9f9f9;
}

.selector-option.selected {
  color: var(--primary-color);
}

/* 信息标签页样式 */
.info-tabs {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 5px;
  padding: 15px;
}

.tab-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.tab-divider {
  margin: 0 10px;
  color: #ddd;
}

.professional-service {
  text-align: center;
  color: #0099FF;
  font-size: 14px;
  font-weight: bold;
}

/* 卡片列表样式 */
.card-list {
  margin: 15px 0;
}

.card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.card-item {
  width: 32%;
  height: 80px;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.card-subtitle {
  font-size: 12px;
  opacity: 0.8;
}

/* 页脚样式 */
.footer {
  text-align: center;
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  margin: 0;
  padding: 8px 0;
  /* position: fixed; */
  bottom: 50px;
  width: 100%;
  /* background: #fff; */
}

.footer p {
  margin: 0;
}

.footer a {
  color: #999;
  text-decoration: none;
}
