/* 家装平台V2 - 主样式文件 */
:root {
  /* 主色调：偏中性、科技感色系（灰蓝 / 高级灰） */
  --primary-color: #3B82F6;
  --secondary-color: #93C5FD;
  --accent-color: #2563EB;
  --text-color: #333333;
  --light-text: #666666;
  --lighter-text: #999999;
  --background-color: #F5F7FA;
  --card-color: #FFFFFF;
  --border-color: #E5E7EB;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  
  /* 字体 */
  --font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 移动设备样式 */
.mobile-container {
  position: relative;
  width: 100%;
  max-width: 414px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: white;
  overflow: hidden;
}

/* 状态栏样式 */
.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
  background-color: black;
  color: white;
  font-size: 12px;
}

.status-bar .right {
  display: flex;
  gap: 5px;
}

/* 内容区域 */
.content {
  padding: 15px;
  padding-bottom: 70px; /* 为底部导航腾出空间 */
}

/* 底部导航 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 414px;
  margin: 0 auto;
  display: flex;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 5px 0;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  color: var(--light-text);
  font-size: 12px;
  cursor: pointer;
}

.tab-item i {
  font-size: 18px;
  margin-bottom: 3px;
}

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

/* 通用卡片样式 */
.card {
  background-color: var(--card-color);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.card[onclick] {
  cursor: pointer;
}

.card[onclick]:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.card[onclick]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

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

.btn-success {
  background-color: var(--success-color);
  color: white;
}

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

.btn-warning {
  background-color: var(--warning-color);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
}

/* 分隔线 */
.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 10px 0;
}

/* 表单样式 */
.form-group {
  margin-bottom: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: var(--light-text);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-color);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 2px 8px;
  background-color: #F3F4F6;
  border-radius: 4px;
  font-size: 12px;
  color: var(--light-text);
}

/* 价格样式 */
.price {
  color: #FF6B35;
  font-weight: 500;
}

/* 标题分隔样式 */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 500;
}

.section-title .more {
  font-size: 12px;
  color: var(--lighter-text);
  cursor: pointer;
  transition: color 0.3s ease;
}

.section-title .more:active {
  color: var(--primary-color);
}

/* 滚动卡片 */
.scroll-cards {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 5px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.scroll-cards::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.scroll-card {
  flex: 0 0 auto;
  width: 150px;
  border-radius: 8px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.scroll-card:active {
  transform: scale(0.95);
}

.scroll-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.scroll-card-content {
  padding: 10px;
}

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

.scroll-card-desc {
  font-size: 12px;
  color: var(--lighter-text);
}

/* 星级评价 */
.stars {
  display: flex;
  gap: 2px;
}

.stars i {
  color: #E5E7EB;
  font-size: 12px;
}

.stars i.filled {
  color: #FBBF24;
}

/* 筛选标签 */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-tag {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  background-color: #F3F4F6;
  color: var(--light-text);
  cursor: pointer;
}

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

/* 徽章 */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: normal;
}

.badge-primary {
  background-color: #E0F2FE;
  color: var(--primary-color);
}

.badge-success {
  background-color: #DCFCE7;
  color: var(--success-color);
}

.badge-warning {
  background-color: #FEF3C7;
  color: var(--warning-color);
}

.badge-danger {
  background-color: #FEE2E2;
  color: var(--danger-color);
}

.badge-secondary {
  background-color: #F3F4F6;
  color: #6B7280;
}

/* 公司详情页样式 */
.company-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 15px;
  border-radius: 0 0 16px 16px;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  cursor: pointer;
}

.tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  font-weight: 500;
}

/* 家装进度条 */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  position: relative;
}

.progress-steps::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 0;
}

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

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  font-weight: 500;
}

.step.active .step-icon, .step.completed .step-icon {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.step-text {
  font-size: 12px;
  color: var(--light-text);
}

.step.active .step-text {
  color: var(--primary-color);
}

/* 主页风格 */
.home-page .swiper {
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.home-page .swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-section {
  margin-bottom: 20px;
}

/* 添加装修公司端所需样式 */
.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 10px 0 20px;
}

.steps::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 40px;
  right: 40px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  flex: 1;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  font-size: 14px;
}

.step.active .step-icon {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.step-text {
  font-size: 12px;
  color: var(--light-text);
  text-align: center;
}

.step.active .step-text {
  color: var(--primary-color);
}

/* 案例管理样式 */
.case-item-list {
  margin-bottom: 20px;
}

/* 留言管理样式 */
.message-list .card {
  margin-bottom: 15px;
}

/* 合同管理样式 */
.contract-list .card {
  margin-bottom: 15px;
}

/* 装修案例图集 */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px;
}

.case-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.case-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.case-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 12px;
}

/* 搜索框 */
.search-bar {
  display: flex;
  align-items: center;
  background-color: rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 8px 15px;
  margin: 10px 15px;
}

.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  margin-left: 8px;
}

.search-bar input:focus {
  outline: none;
}

/* 底部固定按钮 */
.fixed-bottom-btn {
  position: fixed;
  bottom: 80px;
  left: 15px;
  right: 15px;
  padding: 15px;
  background-color: white;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  z-index: 10;
  border-top: 1px solid var(--border-color);
}

/* 其他小组件样式 */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 专为首页定制样式 */
.home-section {
  margin-bottom: 20px;
}

/* 专为找装修页面定制样式 */
.filter-tags {
  display: flex;
  overflow-x: auto;
  padding: 0 15px 10px;
  -webkit-overflow-scrolling: touch;
}

.filter-tag {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  margin-right: 8px;
  font-size: 12px;
  color: #666;
}

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

/* 专为公司详情页定制样式 */
.company-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: white;
}

.company-header .logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 15px;
}

.company-header .logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-header .info {
  flex: 1;
}

.company-header .name {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.company-header .desc {
  font-size: 12px;
  color: #999;
}

/* 专为预约流程页面定制样式 */
.appointment-card {
  margin: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background-color: white;
}

.appointment-header {
  padding: 15px;
  background-color: var(--primary-color);
  color: white;
}

.appointment-header .title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 5px;
}

.appointment-header .desc {
  font-size: 12px;
  opacity: 0.8;
}

.appointment-content {
  padding: 15px;
}

.appointment-item {
  margin-bottom: 12px;
}

.appointment-item .label {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

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

/* 索引页专用样式 */
.prototype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-gap: 30px;
  padding: 30px;
}

.prototype-card {
  position: relative;
}

.prototype-title {
  position: absolute;
  top: -30px;
  left: 0;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.prototype-frame {
  width: 100%;
  height: 900px;
  border: none;
  border-radius: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ====== 装修攻略页面样式 ====== */

/* 导航栏样式 */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 25px;
  z-index: 100;
}

.nav-left, .nav-right {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-left i, .nav-right i {
  font-size: 18px;
  color: #333;
}

.nav-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* 搜索区域 */
.search-section {
  padding: 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.search-box {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 8px 15px;
}

.search-box i {
  color: #999;
  margin-right: 10px;
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.search-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 6px 12px;
  font-size: 12px;
  margin-left: 10px;
  cursor: pointer;
}

/* 筛选区域 */
.filter-section {
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
  display: flex;
  padding: 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #f5f5f5;
  color: #666;
  font-size: 14px;
  margin-right: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* 攻略列表 */
.guide-list {
  background-color: #f8f9fa;
}

.guide-item {
  display: flex;
  background-color: white;
  margin: 10px 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.guide-item:active {
  transform: scale(0.98);
}

.guide-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.guide-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-desc {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #999;
}

.guide-meta span {
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.guide-meta i {
  margin-right: 4px;
}

.guide-date {
  margin-left: auto;
}

/* 加载更多 */
.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #666;
  cursor: pointer;
  background-color: #f8f9fa;
}

.load-more i {
  margin-right: 8px;
  font-size: 16px;
}

/* ====== 攻略详情页面样式 ====== */

/* 文章头部 */
.article-header {
  padding: 20px 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-info {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.author-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.publish-date {
  font-size: 12px;
  color: #999;
}

.article-stats {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #999;
}

.article-stats span {
  margin-left: 15px;
  display: flex;
  align-items: center;
}

.article-stats i {
  margin-right: 4px;
}

/* 文章内容 */
.article-content {
  background-color: white;
}

.content-image {
  margin: 20px 0;
  text-align: center;
}

.content-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.content-image img:hover {
  transform: scale(1.02);
}

.article-text {
  padding: 0 15px 20px;
  line-height: 1.6;
}

.article-text p {
  margin-bottom: 15px;
  color: #333;
  font-size: 15px;
}

.article-text h3 {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 25px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
}

.article-text ul {
  margin: 15px 0;
  padding-left: 20px;
}

.article-text li {
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
}

/* 小贴士框 */
.tips-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  color: white;
}

.tips-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.tips-title i {
  margin-right: 8px;
  font-size: 18px;
}

.tips-content p {
  margin-bottom: 5px;
  font-size: 14px;
  opacity: 0.9;
}

/* 电器布局 */
.appliance-layout {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
}

.appliance-item {
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 14px;
  color: #333;
}

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

/* 材料对比 */
.material-comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin: 20px 0;
}

.material-item {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
}

.material-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.material-content p {
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
}

/* 总结框 */
.summary-box {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border-radius: 12px;
  padding: 15px;
  margin: 25px 0;
  color: white;
}

.summary-title {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

.summary-title i {
  margin-right: 8px;
  font-size: 18px;
}

.summary-content p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
}

/* 互动区域 */
.interaction-area {
  background-color: white;
  border-top: 1px solid var(--border-color);
  padding: 15px;
  position: sticky;
  bottom: 0;
  z-index: 100;
}

.action-buttons {
  display: flex;
  justify-content: space-around;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.action-btn i {
  font-size: 20px;
  margin-bottom: 4px;
}

.action-btn.active {
  color: var(--primary-color);
}

.action-btn:active {
  background-color: #f5f5f5;
}

/* 相关推荐 */
.related-section {
  background-color: #f8f9fa;
  padding: 20px 0;
}

.related-list {
  padding: 0 15px;
}

.related-item {
  display: flex;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.related-item:active {
  transform: scale(0.98);
}

.related-item img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
}

.related-content {
  flex: 1;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.related-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  display: flex;
  align-items: center;
  font-size: 11px;
  color: #999;
}

.related-meta span {
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.related-meta i {
  margin-right: 4px;
}

/* ====== 套餐页面样式 ====== */

/* 套餐列表页面 */
.package-list {
  background-color: #f8f9fa;
  padding: 10px 15px;
}

.package-item {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.package-item:active {
  transform: scale(0.98);
}

.package-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.package-badge.popular {
  background-color: #ff6b35;
}

.package-badge.luxury {
  background: linear-gradient(45deg, #ffd700, #ff8c00);
}

.package-content {
  padding: 15px;
}

.package-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.package-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 12px;
}

.package-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.feature-tag {
  background-color: #f0f8ff;
  color: var(--primary-color);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
}

.package-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.package-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-main {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
}

.price-sub {
  font-size: 12px;
  color: #999;
}

.package-area {
  font-size: 12px;
  color: #666;
}

/* 套餐详情页面 */
.package-header {
  background-color: white;
  margin-bottom: 10px;
}

.package-image-main {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.package-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-badge-main {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--primary-color);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 500;
}

.package-info {
  padding: 20px 15px;
}

.package-title-main {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.package-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.package-price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 15px;
}

.price-current {
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
}

.price-original {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}

.price-label {
  font-size: 14px;
  color: #666;
}

.package-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background-color: #f0f8ff;
  color: var(--primary-color);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.package-section {
  background-color: white;
  margin-bottom: 10px;
  padding: 20px 15px;
}

/* 套餐亮点 */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--primary-color), #667eea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.highlight-text {
  flex: 1;
}

.highlight-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.highlight-desc {
  font-size: 12px;
  color: #666;
}

/* 包含项目 */
.included-items {
  space-y: 15px;
}

.item-category {
  margin-bottom: 20px;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.category-title i {
  color: var(--primary-color);
}

.item-list {
  space-y: 8px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}

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

.item-name {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.item-detail {
  font-size: 13px;
  color: #666;
}

/* 效果图展示 */
.effect-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.effect-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.effect-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.effect-item:hover img {
  transform: scale(1.05);
}

.effect-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
}

/* 客户评价 */
.reviews-list {
  space-y: 15px;
}

.review-item {
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 15px;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.review-info {
  flex: 1;
}

.review-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 2px;
}

.review-date {
  font-size: 12px;
  color: #999;
}

.review-rating {
  color: #ffc107;
  font-size: 12px;
}

.review-content {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* 底部操作栏 */
.bottom-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid #e9ecef;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.action-left {
  flex: 1;
}

.price-info {
  display: flex;
  flex-direction: column;
}

.price-main {
  font-size: 18px;
  font-weight: bold;
  color: #e74c3c;
}

.price-desc {
  font-size: 12px;
  color: #999;
}

.action-right {
  display: flex;
  gap: 10px;
}

.btn-consult {
  background-color: #f8f9fa;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-consult:active {
  background-color: #e9ecef;
}

.btn-book {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-book:active {
  background-color: #0056b3;
}

/* 首页套餐卡片点击效果 */
.card div[onclick]:active {
  transform: scale(0.98);
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/* 上门勘测页面样式 */
.survey-page .survey-checklist {
  margin-top: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.checklist-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

.checklist-item.completed .checklist-icon {
  background-color: var(--success-color);
  color: white;
}

.checklist-item.active .checklist-icon {
  background-color: var(--primary-color);
  color: white;
}

.checklist-item .checklist-icon {
  background-color: #f0f0f0;
  color: #999;
}

.checklist-content {
  flex: 1;
}

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

.checklist-desc {
  font-size: 12px;
  color: var(--light-text);
}

.checklist-item.completed .checklist-title {
  color: var(--success-color);
}

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

.survey-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.photo-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.photo-item:active img {
  transform: scale(0.95);
}

.photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 12px;
  padding: 15px 8px 8px;
  text-align: center;
}

/* 签订合同页面样式 */
.contract-page .price-breakdown {
  margin-top: 10px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.price-item.total {
  border-top: 2px solid var(--border-color);
  margin-top: 10px;
  padding-top: 15px;
  font-weight: 600;
}

.price-item-left {
  flex: 1;
}

.price-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 2px;
}

.price-item-desc {
  font-size: 12px;
  color: var(--light-text);
}

.price-item-right {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.total-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--danger-color);
}

.payment-schedule {
  margin-top: 10px;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.payment-stage {
  display: flex;
  align-items: center;
  flex: 1;
}

.payment-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--primary-color);
}

.payment-info {
  flex: 1;
}

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

.payment-desc {
  font-size: 12px;
  color: var(--light-text);
}

.payment-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger-color);
}

.warranty-list {
  margin-top: 10px;
}

.warranty-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.warranty-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e3f2fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  color: var(--primary-color);
  margin-top: 2px;
}

.warranty-content {
  flex: 1;
}

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

.warranty-desc {
  font-size: 12px;
  color: var(--light-text);
  line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .survey-photos {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .payment-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .payment-stage {
    width: 100%;
  }
  
  .payment-amount {
    align-self: flex-end;
  }
}

/* 支付页面样式 */
.payment-page .payment-schedule {
  margin-top: 10px;
}

.payment-stage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.stage-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.stage-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 14px;
}

.payment-stage-item.completed .stage-icon {
  background-color: var(--success-color);
  color: white;
}

.payment-stage-item.current .stage-icon {
  background-color: var(--warning-color);
  color: white;
}

.payment-stage-item .stage-icon {
  background-color: #f0f0f0;
  color: #999;
}

.stage-content {
  flex: 1;
}

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

.stage-desc {
  font-size: 12px;
  color: var(--light-text);
}

.payment-stage-item.current .stage-title {
  color: var(--warning-color);
}

.payment-stage-item.completed .stage-title {
  color: var(--success-color);
}

.stage-amount {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
}

.stage-amount.completed {
  color: var(--success-color);
}

.stage-amount.current {
  color: var(--warning-color);
  font-weight: 600;
}

.stage-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.progress-btn {
  border: 1px solid #e0e0e0 !important;
  color: #666 !important;
  background: white !important;
  font-size: 11px !important;
  padding: 4px 8px !important;
  margin-top: 5px !important;
  border-radius: 4px !important;
  transition: all 0.3s ease;
}

.progress-btn:hover {
  background: #f5f5f5 !important;
  border-color: #ccc !important;
}

/* 工程进度弹窗样式 */
.progress-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.progress-media-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f8f8;
  transition: transform 0.2s ease;
}

.progress-media-item:hover {
  transform: translateY(-2px);
}

.media-info {
  padding: 8px;
}

.media-title {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 2px;
  color: #333;
}

.media-date {
  font-size: 11px;
  color: #999;
}

.payment-current {
  border-left: 4px solid var(--warning-color);
}

.payment-methods {
  margin-top: 10px;
}

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-method:last-child {
  margin-bottom: 0;
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method.active {
  border-color: var(--primary-color);
  background-color: #f0f8ff;
}

.method-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 20px;
}

.method-content {
  flex: 1;
}

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

.method-desc {
  font-size: 12px;
  color: var(--light-text);
}

.method-radio {
  color: var(--primary-color);
  font-size: 18px;
}

.payment-method:not(.active) .method-radio {
  color: #ccc;
}

.payment-bottom {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  max-width: 414px;
  margin: 0 auto;
  background-color: white;
  border-top: 1px solid #e0e0e0;
  padding: 15px;
}

.payment-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-info {
  flex: 1;
}

.payment-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  min-width: 120px;
}

/* 为支付页面的内容区域添加底部边距 */
.payment-page .content {
  padding-bottom: 120px;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .payment-method {
    padding: 12px;
  }
  
  .method-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .payment-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .payment-btn {
    width: 100%;
  }
}

/* ====== 公司列表页样式 ====== */

/* 头部导航样式 */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 25px;
  z-index: 100;
}

.header-left, .header-right {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-left i, .header-right i {
  font-size: 18px;
  color: #333;
}

.header-title {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* 搜索栏样式 */
.search-bar {
  padding: 10px 15px;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
}

.search-input {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 20px;
  padding: 8px 15px;
}

.search-input i {
  color: #999;
  margin-right: 10px;
}

.search-input input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.search-input .fa-times {
  margin-left: 10px;
  margin-right: 0;
  cursor: pointer;
  color: #ccc;
}

/* 筛选栏样式 */
.filter-bar {
  display: flex;
  background-color: white;
  border-bottom: 1px solid var(--border-color);
  padding: 0 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 12px 0;
  margin-right: 20px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  position: relative;
}

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

.filter-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.filter-item i {
  margin-left: 4px;
  font-size: 12px;
}

/* 公司列表样式 */
.company-list {
  padding: 15px 15px 0;
}

.company-card {
  display: flex;
  background-color: white;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.company-card:active {
  transform: scale(0.98);
}

.company-image {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #FFD700;
  color: #333;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
}

.company-badge.silver {
  background-color: #C0C0C0;
  color: #333;
}

.company-info {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.company-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.company-verify {
  display: flex;
  align-items: center;
  font-size: 10px;
  color: #4CAF50;
}

.company-verify i {
  margin-right: 2px;
  font-size: 10px;
}

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.company-tags .tag {
  padding: 2px 6px;
  font-size: 10px;
  background-color: #f0f0f0;
  color: #666;
  border-radius: 4px;
}

.company-stats {
  display: flex;
  margin-bottom: 8px;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 10px;
  color: #999;
  margin-bottom: 2px;
}

.stat-value {
  display: block;
  font-size: 12px;
  color: #333;
  font-weight: 500;
}

.company-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
  margin-top: auto;
}

/* 加载更多样式 */
.load-more {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
  cursor: pointer;
}

.load-more:active {
  opacity: 0.6;
}

.load-more i {
  margin-right: 5px;
}

/* 公司资料页面样式 */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.info-label {
  font-size: 14px;
  color: #666;
  min-width: 80px;
  flex-shrink: 0;
}

.info-value {
  font-size: 14px;
  color: #333;
  flex: 1;
  text-align: right;
  word-break: break-all;
}

/* ====== 表单验证错误样式 ====== */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--danger-color);
  background-color: #fef2f2;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* 合同选项卡样式 */
.contract-tab {
  color: #666;
  transition: all 0.2s ease;
}

.contract-tab.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  font-weight: 500;
}

.contract-tab:hover {
  color: var(--primary-color);
}

.contract-section {
  transition: opacity 0.3s ease;
} 