/* ==========================================
   智慧物业服务平台 - 高保真原型样式
   ========================================== */

/* 引入Font Awesome图标库 */
/* CSS变量 - 高保真配色方案 */
:root {
  /* 主色系 */
  --primary: #1F69FF;
  --primary-light: #4096FF;
  --primary-dark: #0E5FD9;
  --primary-gradient: linear-gradient(135deg, #1F69FF 0%, #0E5FD9 100%);

  /* 辅助色 */
  --success: #52C41A;
  --success-light: #73D13D;
  --warning: #FAAD14;
  --warning-light: #FFC53D;
  --danger: #FF4D4F;
  --danger-light: #FF7875;

  /* 中性色 */
  --white: #FFFFFF;
  --bg: #F5F7FA;
  --bg-light: #FAFBFC;
  --border: #E8ECF0;
  --border-light: #F0F2F5;

  /* 文字色 */
  --text: #1F2329;
  --text-secondary: #646A73;
  --text-light: #8F959E;
  --text-disabled: #C9CDD4;

  /* 阴影 */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.04);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);

  /* 圆角 */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-round: 24px;

  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html,
body {
  width: 100%;
  min-height: 100%;
  background: #F0F6FF;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #F0F6FF;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:active { opacity: 0.7; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* 表单元素优化 */
input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  width: 100%;
  background: var(--bg-light);
  color: var(--text);
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}
input::placeholder, textarea::placeholder {
  color: var(--text-light);
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
select {
  -webkit-appearance: menulist;
  appearance: auto;
  background-image: none;
  cursor: default;
}

/* ==========================================
   原型入口页 - 优化版
   ========================================== */
.prototype-index {
  max-width: 1000px;
  margin: 40px auto;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.prototype-index h1 {
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.prototype-index .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 40px;
  font-size: 14px;
}
.terminal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.terminal-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  background: var(--bg-light);
}
.terminal-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  background: var(--white);
}
.terminal-card .icon {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.terminal-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 600;
}
.terminal-card p {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.terminal-card .page-list {
  text-align: left;
  max-height: 300px;
  overflow-y: auto;
}
.terminal-card .page-list a {
  display: block;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  border-radius: 4px;
  margin-bottom: 4px;
  transition: var(--transition);
}
.terminal-card .page-list a:hover {
  background: var(--bg-light);
  padding-left: 16px;
}
.terminal-card .page-list a:last-child { border-bottom: none; }

/* ==========================================
   移动端手机壳容器
   ========================================== */
.phone-shell {
  width: 375px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  background: #F0F6FF;
  position: relative;
  box-shadow: -4px 0 20px rgba(0,0,0,0.1), 4px 0 20px rgba(0,0,0,0.1);
  overflow-x: hidden;
}

/* 状态栏 */
.status-bar {
  height: 44px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
}
.status-bar .time { font-size: 14px; }
.status-bar .icons { display: flex; gap: 4px; font-size: 12px; }

/* 导航栏 */
.nav-bar {
  height: 44px;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-bar .back { font-size: 20px; margin-right: 8px; cursor: pointer; color: var(--text); }
.nav-bar .title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.nav-bar .right { width: 28px; }

/* 页面内容区 */
.page-content {
  padding-bottom: 60px;
  min-height: calc(100vh - 88px);
  min-height: calc(100dvh - 88px);
  background: #F0F6FF;
}
.page-content.white-bg { background: #F0F6FF; }

/* 底部Tab栏 - 优化版 */
.tab-bar {
  position: fixed;
  bottom: 0;
  width: 375px;
  left: 50%;
  transform: translateX(-50%);
  height: 56px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-light);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}
.tab-item:active {
  transform: scale(0.95);
}
.tab-item.active {
  color: var(--primary);
  font-weight: 600;
}
.tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 0 0 3px 3px;
}
.tab-item .tab-icon {
  font-size: 24px;
  margin-bottom: 3px;
  transition: var(--transition);
}
.tab-item.active .tab-icon {
  transform: scale(1.1);
}

/* ==========================================
   通用移动端组件
   ========================================== */

/* 轮播图/Banner - 优化版 */
.banner {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  box-shadow: inset 0 -2px 10px rgba(0,0,0,0.1);
}
.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.banner-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  transition: var(--transition);
}
.banner-dots .dot.active {
  background: var(--white);
  width: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 功能宫格 - 优化版 */
.grid-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 20px 16px;
  gap: 16px;
  background: var(--white);
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border-radius: var(--radius-sm);
}
.grid-item:active {
  background: var(--bg);
  transform: scale(0.95);
}
.grid-item .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--primary);
}
.grid-item:active .icon {
  box-shadow: none;
  transform: scale(0.9);
}
.grid-item .label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 分区标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
  background: var(--white);
}
.section-header h3 { font-size: 16px; font-weight: 600; }
.section-header .more { font-size: 12px; color: var(--text-secondary); }

/* 卡片 - 优化版 */
.card {
  background: var(--white);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}
.card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.4;
}
.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.card-meta {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 列表项 - 优化版 */
.list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.list-item:active {
  background: var(--bg-light);
}
.list-item .item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #F5F7FA 0%, #E8ECF0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.list-item .item-content {
  flex: 1;
  min-width: 0;
}
.list-item .item-title {
  font-size: 15px;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--text);
}
.list-item .item-desc {
  font-size: 12px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.list-item .item-right {
  flex-shrink: 0;
  text-align: right;
  margin-left: 12px;
}
.list-item .item-right .amount {
  font-size: 17px;
  font-weight: 700;
  color: var(--danger);
  font-family: 'SF Pro Display', -apple-system, sans-serif;
}
.list-item .item-right .arrow {
  color: var(--text-light);
  font-size: 16px;
}

/* 状态标签 - 优化版 */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.tag-blue {
  background: linear-gradient(135deg, #E6F7FF 0%, #D6EFFF 100%);
  color: var(--primary);
  border: 1px solid rgba(22, 119, 255, 0.2);
}
.tag-green {
  background: linear-gradient(135deg, #F6FFED 0%, #E8FFDB 100%);
  color: var(--success);
  border: 1px solid rgba(82, 196, 26, 0.2);
}
.tag-red {
  background: linear-gradient(135deg, #FFF2F0 0%, #FFE4E1 100%);
  color: var(--danger);
  border: 1px solid rgba(255, 77, 79, 0.2);
}
.tag-orange {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFEFD6 100%);
  color: var(--warning);
  border: 1px solid rgba(250, 173, 20, 0.2);
}
.tag-gray {
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* 按钮 - 优化版 */
.btn {
  display: block;
  width: 100%;
  padding: 13px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.3);
}
.btn-primary:active {
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.4);
}
.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}
.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}
.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}
.btn-outline:active {
  background: rgba(22, 119, 255, 0.05);
}
.btn-gray {
  background: var(--bg);
  color: var(--text-secondary);
  box-shadow: none;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  width: auto;
  display: inline-block;
  font-weight: 500;
}
.btn + .btn { margin-top: 12px; }

/* 表单 */
.form-group {
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid #f5f5f5;
}
.form-label {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  display: block;
}
.form-label .required { color: var(--danger); margin-right: 4px; }
.form-hint { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* 表单行（标签在左，输入在右） */
.form-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid #f5f5f5;
}
.form-row .row-label {
  width: 80px;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text);
}
.form-row .row-label .required { color: var(--danger); margin-right: 2px; }
.form-row .row-input { flex: 1; }
.form-row .row-input input,
.form-row .row-input select { border: none; padding: 0; text-align: right; }

/* 图片上传 */
.upload-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0;
}
.upload-box {
  width: 80px; height: 80px;
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
}
.upload-box .plus { font-size: 24px; margin-bottom: 2px; }
.upload-preview {
  width: 80px; height: 80px;
  border-radius: 4px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 10px;
}

/* Tab切换 - 优化版 */
.tabs {
  display: flex;
  background: var(--white);
  border-bottom: 2px solid var(--border-light);
  position: sticky;
  top: 88px;
  z-index: 99;
}
.tab {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-weight: 500;
}
.tab:active {
  background: var(--bg-light);
}
.tab.active {
  color: var(--primary);
  font-weight: 600;
}
.tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 -2px 8px rgba(22, 119, 255, 0.3);
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.empty .empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty .empty-text { font-size: 14px; }

/* 信息行 - 优化版 */
.info-row {
  display: flex;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.info-row .label {
  width: 90px;
  color: var(--text-light);
  font-size: 14px;
  flex-shrink: 0;
  font-weight: 500;
}
.info-row .value {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

/* 步骤条 - 优化版 */
.steps {
  display: flex;
  padding: 24px 16px;
  background: var(--white);
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
}
.step:last-child::before { display: none; }
.step.done::before {
  background: var(--primary-gradient);
  box-shadow: 0 1px 4px rgba(22, 119, 255, 0.3);
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}
.step.done .step-dot {
  background: var(--primary-gradient);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.4);
}
.step.active .step-dot {
  border-color: var(--primary);
  color: var(--primary);
  border-width: 3px;
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.1);
}
.step-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
}
.step.done .step-label,
.step.active .step-label {
  color: var(--primary);
  font-weight: 600;
}

/* 数据统计 */
.stat-row {
  display: flex;
  background: var(--white);
  padding: 16px;
  gap: 8px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  background: var(--bg);
  border-radius: var(--radius);
}
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* 弹窗遮罩 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.modal {
  width: 270px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  text-align: center;
}
.modal h3 {
  margin: 0;
  padding: 24px 20px 8px;
  color: #000;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
}
.modal p {
  margin: 0;
  padding: 0 20px 18px;
  color: #353535;
  font-size: 15px;
  line-height: 22px;
}
.modal .modal-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid #e5e5e5;
  min-height: 52px;
}
.modal .modal-actions .btn {
  flex: 1;
  width: auto;
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  color: #353535;
  font-size: 17px;
  line-height: 52px;
  font-weight: 400;
}
.modal .modal-actions .btn + .btn {
  margin-top: 0;
  border-left: 1px solid #e5e5e5;
}
.modal .modal-actions .btn.btn-primary {
  background: #fff;
  color: var(--primary);
  font-weight: 500;
}
.modal .modal-actions .btn.btn-danger {
  background: #fff;
  color: var(--danger);
  font-weight: 500;
}

/* 底部操作栏 - 优化版 */
.bottom-action {
  position: fixed;
  bottom: 0;
  width: 375px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 16px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  z-index: 100;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
}
.bottom-action .btn { border-radius: var(--radius-round); }

/* 分割线 - 优化版 */
.divider {
  height: 10px;
  background: var(--bg);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* 通知条 - 优化版 */
.notice {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FFFBE6 0%, #FFF9D6 100%);
  font-size: 13px;
  color: #AD6800;
  gap: 10px;
  border-left: 3px solid var(--warning);
  line-height: 1.5;
}

/* ==========================================
   PC管理端布局（后续使用）
   ========================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 240px;
  background: #001529;
  color: var(--white);
  flex-shrink: 0;
}
.admin-main { flex: 1; background: var(--bg); }
.admin-header {
  height: 64px;
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.admin-content { padding: 24px; }

/* ==========================================
   资讯公告模块 - 精细化设计
   ========================================== */

/* 搜索栏 */
.news-search {
  padding: 12px 16px;
  background: var(--white);
}
.news-search-input {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-round);
  padding: 8px 16px;
  gap: 8px;
}
.news-search-input i {
  color: var(--text-light);
  font-size: 14px;
}
.news-search-input input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  width: 100%;
}
.news-search-input input:focus {
  box-shadow: none;
}

/* 置顶公告横幅 */
.news-pinned {
  margin: 12px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.news-pinned-img {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #1F69FF 0%, #0E5FD9 60%, #764BA2 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
}
.news-pinned-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.news-pinned-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-round);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255,77,79,0.4);
}
.news-pinned-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.news-pinned-content .news-pinned-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.news-pinned-content .news-pinned-meta {
  font-size: 11px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 资讯卡片 - 图文混排 */
.news-card {
  display: flex;
  background: var(--white);
  margin: 0 16px 12px;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  align-items: flex-start;
}
.news-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow);
}
.news-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 76px;
}
.news-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.news-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
}
.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.news-card-source {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-card-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-light);
}
.news-card-stats span {
  display: flex;
  align-items: center;
  gap: 3px;
}
.news-card-thumb {
  width: 96px;
  height: 76px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-light);
}
.news-card-thumb.thumb-blue {
  background: linear-gradient(135deg, #E6F7FF 0%, #BAE7FF 100%);
}
.news-card-thumb.thumb-orange {
  background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%);
}
.news-card-thumb.thumb-green {
  background: linear-gradient(135deg, #F6FFED 0%, #D9F7BE 100%);
}
.news-card-thumb.thumb-purple {
  background: linear-gradient(135deg, #F9F0FF 0%, #EFDBFF 100%);
}
.news-card-thumb i {
  font-size: 28px;
  opacity: 0.5;
}

/* 纯文字资讯卡片（无图） */
.news-card-text {
  display: block;
  background: var(--white);
  margin: 0 16px 12px;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.news-card-text:active {
  transform: scale(0.98);
}

/* 三图资讯卡片 */
.news-card-multi {
  display: block;
  background: var(--white);
  margin: 0 16px 12px;
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}
.news-card-multi:active {
  transform: scale(0.98);
}
.news-card-images {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.news-card-images .img-item {
  flex: 1;
  height: 72px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-light);
}

/* 公告详情页 */
.article-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border-light);
}
.article-tag {
  margin-bottom: 12px;
}
.article-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
  color: var(--text);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}
.article-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.article-body {
  padding: 20px 16px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text);
}
.article-body p {
  margin-bottom: 16px;
}
.article-body .section-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  position: relative;
  padding-left: 12px;
}
.article-body .section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}
.article-body .signature {
  text-align: right;
  color: var(--text-light);
  margin-top: 24px;
}
.article-attachment {
  padding: 0 16px 20px;
}
.article-attachment-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-attachment-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}
.article-attachment-item:active {
  background: var(--bg-light);
}
.article-attachment-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FFF2F0 0%, #FFE4E1 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--danger);
}
.article-attachment-info {
  flex: 1;
}
.article-attachment-name {
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--text);
}
.article-attachment-size {
  font-size: 12px;
  color: var(--text-light);
}

/* 文章底部操作栏 */
.article-actions {
  position: fixed;
  bottom: 0;
  width: 375px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.article-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.article-action-item i {
  font-size: 18px;
}
.article-action-item:active {
  color: var(--primary);
}

/* 首页资讯公告模块 */
.home-news-item {
  display: flex;
  padding: 12px 16px;
  background: var(--white);
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  align-items: flex-start;
}
.home-news-item:last-child {
  border-bottom: none;
}
.home-news-item:active {
  background: var(--bg-light);
}
.home-news-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 64px;
}
.home-news-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-news-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-news-thumb {
  width: 80px;
  height: 64px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-light);
}

/* ==========================================
   服务/工单模块 - 精细化设计
   ========================================== */

/* 工单卡片 */
.order-card {
  background: var(--white);
  margin: 12px 16px;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: var(--transition);
  overflow: hidden;
}
.order-card:active {
  transform: scale(0.98);
  box-shadow: var(--shadow);
}
.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}
.order-card-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.order-card-type i {
  font-size: 14px;
}
.order-card-body {
  padding: 14px;
}
.order-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.order-card-info {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-card-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-card-info-item i {
  width: 14px;
  text-align: center;
  color: var(--text-light);
  font-size: 11px;
}
.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}
.order-card-worker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.order-card-worker-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E6F7FF, #BAE7FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--primary);
}
.order-card-action {
  font-size: 12px;
  color: var(--warning);
  font-weight: 500;
}
.order-card-rating {
  font-size: 12px;
  color: var(--success);
}

/* 工单状态头部 */
.order-status-header {
  background: var(--white);
  padding: 24px 16px;
  text-align: center;
}
.order-status-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.order-status-icon.status-processing {
  background: linear-gradient(135deg, #E6F7FF, #BAE7FF);
  color: var(--primary);
}
.order-status-icon.status-pending {
  background: linear-gradient(135deg, #FFF7E6, #FFE7BA);
  color: var(--warning);
}
.order-status-icon.status-done {
  background: linear-gradient(135deg, #F6FFED, #D9F7BE);
  color: var(--success);
}
.order-status-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.order-status-desc {
  font-size: 13px;
  color: var(--text-light);
}

/* 信息分组 */
.info-section {
  background: var(--white);
}
.info-section-title {
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.info-section-title i {
  font-size: 14px;
  color: var(--primary);
}

/* 维修人员卡片 */
.worker-card {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.worker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E6F7FF, #BAE7FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.worker-info {
  flex: 1;
}
.worker-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.worker-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* 时间线 */
.timeline {
  padding: 16px;
}
.timeline-item {
  position: relative;
  padding-left: 28px;
  padding-bottom: 20px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: -12px;
  width: 2px;
  background: var(--border);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  z-index: 1;
}
.timeline-item.active .timeline-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 119, 255, 0.15);
}
.timeline-item.done .timeline-dot {
  border-color: var(--success);
  background: var(--success);
}
.timeline-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 12px;
  color: var(--text-light);
}

/* 报修类型选择 */
.repair-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.repair-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: calc(25% - 8px);
  padding: 12px 4px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-light);
  background: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.repair-type-item:active {
  transform: scale(0.95);
}
.repair-type-item.selected {
  border-color: var(--primary);
  background: rgba(22, 119, 255, 0.05);
}
.repair-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.repair-type-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.repair-type-item.selected .repair-type-label {
  color: var(--primary);
  font-weight: 600;
}

/* 图片上传优化 */
.upload-area-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
}
.upload-box-new {
  width: 80px;
  height: 80px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 11px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-light);
  gap: 4px;
}
.upload-box-new:active {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(22, 119, 255, 0.03);
}
.upload-box-new i {
  font-size: 22px;
}

/* 工具类 */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.p-16 { padding: 16px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* 项目切换头部 */
.project-header {
  background: var(--white);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
}
.project-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
}
.project-selector:active {
  background: var(--border);
}
.project-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.project-arrow {
  font-size: 10px;
  color: var(--text-light);
}
.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(135deg, #FFF7E6 0%, #FFE7BA 100%);
  color: var(--warning);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.notification-icon:active {
  background: var(--warning);
  color: var(--white);
  transform: scale(0.95);
}
.notification-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.2);
}
