/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; /* 清除触摸高亮 */
}

body {
  background-color: #f5f5f5;
  color: #111827;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 100px; /* Increased space for floating bottom nav */
}

/* 毛玻璃效果通用类 */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

/* 底部导航栏 */
.bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  height: 64px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
/* Override glass border-top if present */
.bottom-nav.glass {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 10px;
  text-decoration: none;
  flex: 1;
  height: 100%;
}

.nav-item.active {
  color: #1E40AF;
}

.nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  fill: currentColor;
}

.glass-dark {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* 导航栏样式 */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 999;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.nav-icon {
  width: 24px;
  height: 24px;
  fill: #111827;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background-color: #F9FAFB;
}

/* 汉堡菜单样式 */
.menu-panel {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  padding: 16px;
  z-index: 998;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.menu-panel.active {
  transform: translateX(0);
}

.menu-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.menu-user-name {
  font-size: 16px;
  font-weight: 600;
}

.menu-user-company {
  font-size: 12px;
  color: #6B7280;
}

.menu-item {
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #111827;
  margin-bottom: 8px;
  position: relative;
}

.menu-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #1E40AF;
  border-radius: 1px;
}

/* 卡片通用样式 */
.card {
  background-color: #FFFFFF;
  border-radius: 12px;
  border-bottom: 1px solid #F3F4F6;
  padding: 16px;
  margin-bottom: 16px;
}

.card-small {
  padding: 12px;
  margin-bottom: 8px;
}

/* 按钮样式 */
.btn {
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background-color: #1E40AF;
  color: #FFFFFF;
  border-radius: 12px;
  height: 48px;
  font-size: 16px;
}

.btn-text {
  background-color: transparent;
  color: #1E40AF;
  text-decoration: underline;
}

.btn-cancel {
  background-color: transparent;
  color: #6B7280;
}

/* 输入框与选择框样式 */
.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: #1E40AF;
}

.select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  font-size: 14px;
  color: #111827;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

/* 弹窗样式 */
.modal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 20px 16px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.active {
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 标签样式 */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.tag-orange {
  border: 1px solid #FF7D00;
  color: #FF7D00;
}

.tag-blue {
  border: 1px solid #1E40AF;
  color: #1E40AF;
}

.tag-green {
  border: 1px solid #10B981;
  color: #10B981;
}

.tag-gray {
  border: 1px solid #9CA3AF;
  color: #9CA3AF;
}

/* 搜索框样式 */
.search-box {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 36px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  font-size: 14px;
  color: #111827;
  outline: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
}

/* Category Card Styles */
.category-card {
    min-width: 100px;
    background: #FFFFFF;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card.active {
    background: #EFF6FF;
    border-color: #1E40AF;
    color: #1E40AF;
}

/* 列表样式 */
.list {
  margin-top: 16px;
}

.list-item {
  padding: 16px 0;
  border-bottom: 1px solid #F3F4F6;
}

/* 时间轴样式 */
.timeline {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.timeline-icon {
  width: 32px;
  height: 32px;
  fill: #1E40AF;
  margin-bottom: 8px;
}

.timeline-text {
  font-size: 12px;
  color: #111827;
  text-align: center;
}

/* 提示框样式 */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  color: #111827;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.toast.active {
  opacity: 1;
  visibility: visible;
}

/* 悬浮按钮样式 */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 997;
  cursor: pointer;
}

.fab-icon {
  width: 24px;
  height: 24px;
  fill: #EF4444;
}

/* 价格样式 */
.price-orange {
  color: #FF7D00;
  font-weight: 600;
}

.price-normal {
  color: #111827;
  font-weight: 600;
}

.price-desc {
  font-size: 12px;
  color: #6B7280;
  margin-left: 4px;
}

/* 表单字段样式 */
.form-field {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 4px;
}

.form-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  background-color: #FFFFFF;
  font-size: 14px;
  color: #111827;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease;
}

.form-textarea:focus {
  border-color: #1E40AF;
}

/* 复选框与单选框样式 */
.checkbox-group, .radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #111827;
}

.checkbox {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid #E5E7EB;
  appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
}

.checkbox:checked {
  border-color: #1E40AF;
  background-color: #1E40AF;
}

.checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 12px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  appearance: none;
  outline: none;
  cursor: pointer;
  position: relative;
}

.radio:checked {
  border-color: #1E40AF;
}

.radio:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1E40AF;
}

/* 横向滚动列表样式 */
.scroll-list {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-list::-webkit-scrollbar {
  display: none;
}

.scroll-item {
  min-width: 180px;
  background-color: #FFFFFF;
  border-radius: 12px;
  border-bottom: 1px solid #F3F4F6;
  padding: 12px;
}

/* 标签栏样式 */
.tab-bar {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid #F3F4F6;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab-item {
  padding: 8px 0;
  font-size: 14px;
  color: #111827;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.tab-item.active {
    color: #1E40AF;
    font-weight: 600;
}
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #1E40AF;
    border-radius: 2px;
}

/* Filter Chip Styles */
.filter-chip {
    padding: 4px 12px;
    border-radius: 16px;
    background: #F3F4F6;
    color: #4B5563;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}
.filter-chip.active {
    background: #EFF6FF;
    color: #1E40AF;
    border-color: #BFDBFE;
    font-weight: 500;
}

/* 图片轮播样式 */
.slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.3s ease;
}

.slider-item {
  width: 100%;
  flex-shrink: 0;
}

.slider-img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-thumbnails {
  display: flex;
  gap: 8px;
  padding: 8px 0;
}

.slider-thumbnail {
  flex: 1;
  height: 60px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.slider-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-thumbnail.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #1E40AF;
}

/* 适配顶部导航栏占位 */
.page-content {
  padding-top: 64px;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 24px;
}

/* 底部按钮栏样式 */
.btn-bar {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-bar .btn {
  flex: 1;
}
