/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* 办厂易经纪人端 - 全局样式 */

/* ==================== CSS变量 ==================== */
:root {
  --primary: #1a2a3a;
  --primary-light: #2d4a5e;
  --primary-dark: #0f1a26;
  --accent: #c9a962;
  --accent-light: #d4b978;
  --accent-dark: #a88c4d;
  --success: #52c41a;
  --warning: #faad14;
  --danger: #ff4d4f;
  --info: #1890ff;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-dark: #1a2a3a;
  --text-primary: #1a2a3a;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --border: #e8e8e8;
  --divider: #f0f0f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 12px rgba(26,42,58,0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ==================== 基础重置 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
}

body {
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ==================== 布局工具 ==================== */
.page-container {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-primary);
  position: relative;
  padding-bottom: 70px;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.page-content {
  padding: 16px;
}

/* ==================== 头部组件 ==================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-primary);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ==================== 底部导航 ==================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 430px;
  max-width: 100%;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: flex;
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 10px;
  transition: color 0.2s;
  position: relative;
}

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

.bottom-nav-item .icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background: var(--danger);
  color: white;
  font-size: 9px;
  padding: 0 4px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
}

/* ==================== 卡片 ==================== */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

/* ==================== 按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
}

.btn-primary:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 13px;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

/* ==================== 表单 ==================== */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-textarea {
  min-height: 100px;
  padding: 12px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row > * {
  flex: 1;
}

/* ==================== 验证码按钮 ==================== */
.code-btn {
  height: 44px;
  padding: 0 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.code-btn:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

/* ==================== 状态标签 ==================== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
}

.tag-success { background: #f6ffed; color: #52c41a; }
.tag-warning { background: #fffbe6; color: #faad14; }
.tag-danger { background: #fff2f0; color: #ff4d4f; }
.tag-info { background: #e6f7ff; color: #1890ff; }
.tag-default { background: var(--bg-secondary); color: var(--text-secondary); }

/* ==================== 统计卡片 ==================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.stat-growth {
  font-size: 11px;
  margin-top: 4px;
}

.stat-growth.up { color: var(--success); }
.stat-growth.down { color: var(--danger); }

/* ==================== 房源卡片 ==================== */
.property-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.property-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg-secondary);
}

.property-info {
  padding: 12px;
}

.property-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.property-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.property-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.property-actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  flex-wrap: wrap;
}

/* ==================== 客户卡片 ==================== */
.customer-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.customer-info {
  flex: 1;
  min-width: 0;
}

.customer-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.customer-demand {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.customer-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ==================== 消息列表 ==================== */
.message-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
}

.message-item.unread {
  background: #fafafa;
}

.message-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.message-icon.inquiry { background: #e6f7ff; }
.message-icon.system { background: #f6ffed; }
.message-icon.favorite { background: #fff7e6; }
.message-icon.deal { background: #fff2f0; }

.message-content {
  flex: 1;
  min-width: 0;
}

.message-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.message-desc {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-time {
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.unread-dot {
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
}

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

.empty-text {
  font-size: 14px;
  margin-bottom: 16px;
}

/* ==================== 加载状态 ==================== */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text-tertiary);
}

/* ==================== 筛选标签栏 ==================== */
.filter-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-tab.active {
  background: var(--primary);
  color: white;
}

/* ==================== Tab切换 ==================== */
.tabs {
  display: flex;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.tab-item.active {
  color: var(--accent);
  font-weight: 600;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ==================== 隐私协议勾选 ==================== */
.agreement-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
}

.agreement-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.agreement-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.agreement-link {
  color: var(--accent);
  text-decoration: none;
}

/* ==================== 进度指示器 ==================== */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
}

.progress-step:last-child::before {
  display: none;
}

.progress-step.done::before {
  background: var(--accent);
}

.progress-step.active::before {
  background: linear-gradient(to right, var(--accent) 50%, var(--border) 50%);
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
}

.progress-step.done .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.progress-step.active .step-dot {
  background: var(--bg-primary);
  border-color: var(--accent);
  color: var(--accent);
}

.step-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

.progress-step.done .step-label,
.progress-step.active .step-label {
  color: var(--text-primary);
}

/* ==================== Toast提示 ==================== */
.toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 42, 58, 0.9);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  z-index: 9999;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==================== 安全区域 ==================== */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 0);
}


/* ==================== 加载状态（新） ==================== */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 12px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-text {
  font-size: 14px;
  color: var(--text-tertiary);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 错误状态 ==================== */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.error-text {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* ==================== 错误卡片 ==================== */
.error-card {
  background: #fff2f0;
  border-radius: var(--radius-md);
  padding: 16px;
}

/* ==================== 小按钮 ==================== */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

/* ==================== 房源位置信息 ==================== */
.property-location {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

