/* ============================================================
   找农机 · Apple 风格设计系统 (iOS 17 Style)
   大字号、大点击区域、语义色 —— 专为农民/农机手优化
   ============================================================ */

:root {
  /* iOS 系统色 */
  --blue: #007AFF;
  --blue-dark: #0062CC;
  --green: #34C759;
  --red: #FF3B30;
  --orange: #FF9500;
  --gray: #8E8E93;
  --gray-light: #E5E5EA;
  --separator: rgba(60, 60, 67, 0.14);
  /* iOS 分组背景 */
  --bg: #F2F2F7;
  --card: #FFFFFF;
  /* 文本三级 */
  --text-primary: #000000;
  --text-secondary: rgba(60, 60, 67, 0.62);
  --text-tertiary: rgba(60, 60, 67, 0.32);
  /* 圆角 */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  /* 阴影 */
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-btn: 0 6px 16px rgba(0, 122, 255, 0.32);
  /* 安全区 */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--safe-top);
  user-select: none;
}

input, textarea, select, button { font-size: 17px; font-family: inherit; user-select: text; }
a { text-decoration: none; color: var(--blue); }

/* ============ 页面容器 ============ */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: calc(92px + var(--safe-bottom));
  animation: pageIn .28s cubic-bezier(.2, .9, .3, 1);
}
.page.active { display: block; }

/* 页面容器：仅当激活时才使用 flex 布局 */
#page-profile.active { display: flex; flex-direction: column; }
#page-profile .content { flex: 1; display: flex; flex-direction: column; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.content {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============ 顶部导航栏 ============ */
.nav-bar {
  position: relative;
  padding: 14px 16px 6px;
  max-width: 560px;
  margin: 0 auto;
}
.nav-bar-solid {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.nav-large-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.nav-title { font-size: 17px; font-weight: 600; text-align: center; flex: 1; }

.back-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-light);
  color: var(--blue);
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}
.back-btn:active { background: #D1D1D6; }

/* ============ 底部 Tab 栏（iOS 风格） ============ */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(52px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--separator);
  display: flex;
  z-index: 200;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--gray);
  font-size: 10px;
}
.tab-icon { font-size: 24px; line-height: 1.2; }
.tab-item.active { color: var(--blue); }

/* ============ 按钮（iOS 风格） ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  gap: 8px;
  transition: transform .12s ease, opacity .12s ease, background .15s ease;
}
.btn:active { transform: scale(0.97); opacity: 0.9; }
.btn-lg { padding: 15px 24px; font-size: 18px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, #3B8BFF 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:active { background: var(--blue-dark); }
.btn-outline {
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
}
.btn-sm { padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-wechat {
  background: linear-gradient(180deg, #2ABE4B 0%, #07C160 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(7, 193, 96, 0.32);
}
.btn-wechat .wechat-icon { font-size: 20px; }
.btn-wechat:active { background: #06AD56; }

/* 登录分隔线 */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 22px 0 20px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-light);
}

/* 手机号登录入口（图标，点击展开） */
.phone-login-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 26px auto 0;
  cursor: pointer;
  user-select: none;
}
.phone-icon-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-card);
  transition: transform .12s ease;
}
.phone-icon-btn:active { transform: scale(0.92); }
.phone-icon-label { font-size: 13px; color: var(--text-secondary); }

/* 登录页辅助提示（绑定手机号等） */
.auth-tip {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin: -6px 0 16px;
  line-height: 1.5;
}

/* 农机列表 · 发布者 */
.mc-owner {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ============ 表单（iOS Grouped 风格） ============ */
.ios-form, .auth-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin: 0 4px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group label .req { color: var(--red); font-weight: 600; margin-left: 2px; }
.form-input, .form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--card);
  color: var(--text-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-input::placeholder { color: var(--text-tertiary); }
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238E8E93' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

.auth-input { margin-bottom: 14px; padding: 16px; border-radius: 16px; font-size: 17px; }
.auth-input:focus { box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2); }

.code-row { display: flex; gap: 10px; margin-bottom: 0; }
.code-row .code-btn {
  flex-shrink: 0;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 15px;
  white-space: nowrap;
}
.code-btn:disabled { opacity: 0.6; }

/* 类别选择（大按钮） */
.chip-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip-option {
  padding: 14px 6px;
  text-align: center;
  background: var(--card);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 16px;
  cursor: pointer;
  transition: all .15s ease;
}
.chip-option .chip-emoji { font-size: 24px; display: block; margin-bottom: 4px; }
.chip-option.active {
  border-color: var(--blue);
  background: rgba(0, 122, 255, 0.08);
  color: var(--blue);
  font-weight: 600;
}
.price-row { display: flex; gap: 10px; }
.price-row .form-input { flex: 1; }
.price-row .form-select { width: 130px; flex-shrink: 0; }

/* ============ 登录页 ============ */
#page-auth {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  justify-content: center;
}
#page-auth.active { display: flex; }
.auth-hero { text-align: center; padding: 48px 24px 32px; }
.auth-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, #4CAF50, #2E7D32);
  box-shadow: 0 12px 32px rgba(46, 125, 50, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
}
.auth-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.auth-subtitle { font-size: 16px; color: var(--text-secondary); margin-top: 6px; }
.auth-form { padding: 0 24px 48px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 16px; color: var(--text-secondary); }
#login-btn { margin-top: 20px; }

/* ============ 图形验证码 ============ */
.captcha-row {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f5f5f7;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
}
.captcha-box img {
  width: 120px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e5e5ea;
}
.captcha-box input {
  flex: 1;
  margin-bottom: 0;
}
.captcha-row .btn-ghost {
  align-self: flex-end;
  color: var(--blue);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
}
.captcha-row .btn-ghost:hover {
  text-decoration: underline;
}

/* ============ 隐私政策勾选 ============ */
.privacy-agree {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 14px;
  margin-bottom: 16px;
  padding: 0 4px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-tertiary, #8e8e93);
  line-height: 1.5;
  user-select: none;
  transition: color 0.2s;
}
.privacy-agree input[type="checkbox"] {
  display: none;
}
.privacy-checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d1d6;
  border-radius: 5px;
  margin-right: 10px;
  margin-top: 0;
  position: relative;
  background: #fff;
  transition: all 0.2s;
}
.privacy-agree:hover .privacy-checkbox {
  border-color: var(--blue);
}
/* 选中状态：黑色勾勾 */
.privacy-agree input[type="checkbox"]:checked + .privacy-checkbox {
  background: #fff;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
.privacy-agree input[type="checkbox"]:checked + .privacy-checkbox::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 14px;
  font-weight: bold;
}
/* 选中后文字变蓝 */
.privacy-agree input[type="checkbox"]:checked ~ .privacy-text {
  color: var(--blue);
}
.privacy-text {
  color: inherit;
  transition: color 0.2s;
}
.privacy-text a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
.privacy-text a:hover {
  text-decoration: underline;
}

/* ============ 隐私政策弹窗 ============ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #8e8e93;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.modal-close:hover {
  background: #f0f0f0;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  flex-shrink: 0;
}

/* 隐私政策内容样式 */
.privacy-body h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-primary);
}
.privacy-body h4:first-child {
  margin-top: 0;
}
.privacy-body p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.privacy-body strong {
  color: var(--text-primary);
}
.privacy-update-time {
  font-size: 12px;
  color: #8e8e93;
  margin-bottom: 16px;
}

/* ============ 选择身份页 ============ */
.role-hero { padding: 40px 24px 8px; }
.role-title { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; text-align: center; }
.role-subtitle { font-size: 16px; color: var(--text-secondary); text-align: center; margin-top: 6px; }
.role-cards { padding: 24px 24px 48px; max-width: 480px; margin: 0 auto; }
.role-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border: 1.5px solid var(--gray-light);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
  position: relative;
}
.role-card:active { transform: scale(0.98); }
.role-card-icon { font-size: 44px; margin-bottom: 10px; }
.role-card-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.role-card-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.6; }
#role-farmer { border-top: 4px solid var(--green); }
#role-operator { border-top: 4px solid var(--blue); }

/* 当前选中的身份卡片 */
.role-card.selected {
  border-color: var(--green);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.06), rgba(52, 199, 89, 0.02));
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.15);
}
.role-card.selected #role-farmer,
.role-card.selected.farmer-selected {
  border-color: var(--green);
}
.role-card.selected.operator-selected {
  border-color: var(--blue);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.06), rgba(0, 122, 255, 0.02));
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

/* 右上角勾选标识 */
.role-card-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: transparent;
  transition: all .2s ease;
}
.role-card.selected .role-card-check {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
}
.role-card.selected.operator-selected .role-card-check {
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

/* 当前身份标签 */
.role-card-current-tag {
  display: none;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
}
.role-card.selected .role-card-current-tag {
  display: inline-block;
  background: rgba(52, 199, 89, 0.14);
  color: #1E8E3E;
}
.role-card.selected.operator-selected .role-card-current-tag {
  background: rgba(0, 122, 255, 0.12);
  color: var(--blue);
}

/* ============ 搜索 & 分类 ============ */
.search-bar { display: flex; gap: 10px; margin: 12px 0 14px; }
.search-bar input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--gray-light);
  outline: none;
  font-size: 16px;
}
.search-bar input:focus { background: #fff; box-shadow: 0 0 0 1.5px var(--blue); }
.search-bar button {
  padding: 0 22px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.search-bar button:active { opacity: .85; }

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--card);
  border: 1px solid transparent;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all .15s ease;
}
.category-tab.active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* ============ 农机卡片（农民端列表） ============ */
.machine-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform .12s ease;
  position: relative;
}
.machine-card:active { transform: scale(0.985); }
.mc-top { display: flex; align-items: flex-start; gap: 14px; }
.mc-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #F0F4FF, #E4EBFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}
.mc-info { flex: 1; min-width: 0; }
.mc-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; line-height: 1.35; }
.mc-location { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.mc-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--separator); }
.mc-price { font-size: 18px; font-weight: 700; color: var(--orange); }
.mc-price small { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.mc-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mc-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(52, 199, 89, 0.35);
  transition: transform .12s ease;
}
.mc-call:active { transform: scale(0.94); }
.mc-del {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
  transition: transform .12s ease;
}
.mc-del:active { transform: scale(0.94); }

/* ============ 详情页 ============ */
.detail-hero {
  text-align: center;
  padding: 24px 16px 8px;
}
.detail-icon {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 28px;
  background: linear-gradient(145deg, #F0F4FF, #E4EBFF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  box-shadow: var(--shadow-card);
}
.detail-title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.detail-meta { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--gray-light);
  font-size: 14px;
  color: var(--text-primary);
}
.chip-green { background: rgba(52, 199, 89, 0.14); color: #1E8E3E; font-weight: 600; }

.detail-card { margin-top: 16px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 0.5px solid var(--separator);
}
.detail-row:last-child { border-bottom: none; }
.row-label { color: var(--text-secondary); font-size: 15px; flex-shrink: 0; }
.row-value { font-size: 15px; text-align: right; word-break: break-all; }
.row-price { color: var(--orange); font-weight: 700; font-size: 17px; }

.owner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-top: 14px;
}
.owner-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.owner-info { flex: 1; min-width: 0; }
.owner-name { font-size: 17px; font-weight: 600; }
.owner-phone { font-size: 15px; color: var(--text-secondary); margin-top: 2px; }

/* 底部固定拨打按钮 */
.bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: linear-gradient(to top, rgba(242, 242, 247, 0.97) 70%, rgba(242, 242, 247, 0));
  z-index: 100;
}
.call-btn {
  max-width: 528px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #3FD66F 0%, var(--green) 55%, #2BA84E 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(52, 199, 89, 0.45);
  animation: callPulse 2.2s ease-in-out infinite;
}
.call-icon { font-size: 22px; }
@keyframes callPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ============ 农机手端 ============ */
.publish-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  border: 2px dashed rgba(0, 122, 255, 0.5);
  border-radius: var(--radius-lg);
  background: rgba(0, 122, 255, 0.04);
  color: var(--blue);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  margin: 12px 0 16px;
  transition: all .15s ease;
}
.publish-btn:active { background: rgba(0, 122, 255, 0.12); }
.publish-plus { font-size: 22px; font-weight: 400; }

/* 我的农机卡片 */
.my-mc-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.my-mc-top { display: flex; align-items: flex-start; gap: 14px; }
.my-mc-info { flex: 1; min-width: 0; }
.my-mc-status { display: inline-block; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.my-mc-status.free { background: rgba(52, 199, 89, 0.14); color: #1E8E3E; }
.my-mc-status.rented { background: rgba(255, 149, 0, 0.16); color: #C93400; }
.my-mc-title { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.my-mc-loc { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }
.my-mc-price { font-size: 16px; font-weight: 700; color: var(--orange); }

/* 违规下架的农机卡片（灰色置灰，不可编辑） */
.my-mc-violated {
  opacity: 0.55;
  filter: grayscale(0.8);
  pointer-events: none;
}
.my-mc-violated .my-mc-actions .btn-danger {
  pointer-events: auto;
}
.my-mc-violated-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  background: rgba(255, 59, 48, 0.12);
  color: var(--red);
}

/* 禁用按钮 */
.btn-disabled {
  background: var(--gray-light);
  color: var(--text-tertiary);
  cursor: not-allowed;
  opacity: 0.6;
}
.btn-disabled:active {
  transform: none;
  opacity: 0.6;
}
.my-mc-actions { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--separator); }
.my-mc-actions .btn { flex: 1; }

/* ============ 卡片通用 ============ */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

/* ============ 个人中心 ============ */
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  margin: 14px 0;
  box-shadow: var(--shadow-card);
}
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #E8ECF2, #D5DBE3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-phone { font-size: 15px; color: var(--text-secondary); margin-top: 3px; }
.profile-role {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.profile-role.farmer { background: rgba(52, 199, 89, 0.14); color: #1E8E3E; }
.profile-role.operator { background: rgba(0, 122, 255, 0.12); color: var(--blue); }

.menu-list { overflow: hidden; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 0.5px solid var(--separator);
  cursor: pointer;
  font-size: 17px;
  transition: background .12s ease;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--gray-light); }
.menu-item .icon { font-size: 22px; width: 28px; text-align: center; }
.menu-item .text { flex: 1; }
.menu-item .arrow { color: var(--text-tertiary); font-size: 20px; }
.text-danger { color: var(--red) !important; }
.version-tip { text-align: center; font-size: 13px; color: var(--text-tertiary); margin-top: auto; padding-top: 40px; padding-bottom: 20px; }

/* ============ 空状态 ============ */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state .icon { font-size: 56px; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 16px; color: var(--text-secondary); }

/* ============ Toast（iOS 风格） ============ */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(28, 28, 30, 0.92);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 加载指示器 */
.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-light);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 40px auto;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 下拉刷新提示（轻量） */
.pull-tip { text-align: center; font-size: 13px; color: var(--text-tertiary); padding: 8px 0 2px; }

/* ============ 管理员 · 违规内容管理 ============ */
.admin-tab-bar {
  display: flex;
  gap: 0;
  margin: 12px 0 16px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 3px;
}
.admin-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: all .2s ease;
}
.admin-tab-active {
  background: var(--card);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.admin-tip {
  background: rgba(255, 149, 0, 0.12);
  color: #b45309;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.admin-mc-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.admin-mc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.admin-mc-status { font-size: 13px; font-weight: 600; }
.admin-mc-status.ok { color: var(--green); }
.admin-mc-status.bad { color: var(--red); }
.admin-mc-id { font-size: 12px; color: var(--text-tertiary); }
.admin-mc-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; word-break: break-all; }
.admin-mc-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; word-break: break-all; }
.admin-mc-actions { display: flex; gap: 10px; margin-top: 10px; }
.admin-mc-card-disabled { opacity: 0.55; filter: grayscale(0.8); }

/* 超级管理员 · 审核记录 */
.admin-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 22px 4px 10px;
  color: var(--text-primary);
}
.review-log-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.review-log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-result { font-size: 13px; font-weight: 600; }
.review-result.ok { color: var(--green); }
.review-result.bad { color: var(--red); }
.review-time { font-size: 12px; color: var(--text-tertiary); }
.review-log-title { font-size: 14px; font-weight: 500; word-break: break-all; }
.review-mid { font-size: 12px; color: var(--text-tertiary); font-weight: 400; }
.review-log-content { font-size: 12px; color: var(--text-secondary); margin-top: 4px; word-break: break-all; }
.review-log-hit { font-size: 12px; color: var(--red); margin-top: 4px; }
