/* ================================================
   紫来集运 PC端 - 转运线路查询页样式
   ================================================ */

/* ---- 线路筛选 ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}

.filter-select {
  padding: 8px 32px 8px 12px;
  font-size: 0.875rem;
  background: var(--bg);
  border: 1.5px solid var(--p-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  min-width: 120px;
}

.filter-select:focus {
  border-color: var(--p);
  outline: none;
}

.filter-search {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.filter-search-input {
  padding: 8px 12px;
  font-size: 0.875rem;
  width: 200px;
  border: 1.5px solid var(--p-border);
  border-radius: var(--r-sm);
}

.filter-search-input:focus {
  border-color: var(--p);
  outline: none;
}

/* ---- 运费计算器 ---- */
.calculator-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.calc-form {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: var(--space-lg);
}

.calc-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calc-form-title i {
  color: var(--p);
}

.calc-form-subtitle {
  font-size: 0.8125rem;
  color: var(--text3);
  margin-top: -8px;
  margin-bottom: var(--space-md);
  padding-left: 28px;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.calc-form-grid .form-group.full {
  grid-column: 1 / -1;
}

.calc-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.calc-range input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--p), var(--p2));
  outline: none;
}

.calc-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--p);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(123, 63, 242, 0.4);
}

.calc-range-value {
  font-weight: 700;
  color: var(--p);
  min-width: 60px;
  text-align: right;
}

/* ---- 标签式切换按钮 ---- */
.ship-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 2px solid var(--border);
  background: var(--bg-white);
  color: var(--text2);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  user-select: none;
}

.ship-tag:hover {
  border-color: var(--p2);
  color: var(--p);
  background: #f5f0ff;
}

/* 选中状态 - 单选 (运输方式) */
.ship-tag:has(input:checked) {
  border-color: var(--p);
  background: var(--p);
  color: white;
  box-shadow: 0 3px 10px rgba(123, 63, 242, 0.35);
}

/* 选中状态 - 多选 (增值服务) */
.value-tag:has(input:checked) {
  border-color: var(--p);
  background: #f0ebff;
  color: var(--p);
  box-shadow: 0 2px 8px rgba(123, 63, 242, 0.25);
}

.value-tag:has(input:checked) i {
  color: var(--p);
}

.calc-result {
  background: var(--gradient-p-hero);
  border-radius: var(--r-xl);
  padding: var(--space-lg);
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calc-result-title {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.calc-result-price {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.calc-result-unit {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: var(--space-md);
}

.calc-result-detail {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: var(--space-sm);
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.calc-result-row:last-child {
  border-bottom: none;
}

.calc-result-row span:first-child {
  opacity: 0.9;
}

.calc-result-row span:last-child {
  font-weight: 600;
}

/* ---- 线路卡片 ---- */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.route-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
  border: 1.5px solid transparent;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--p-border);
}

.route-card-header {
  background: var(--gradient-p);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-card-route {
  font-size: 1rem;
  font-weight: 700;
}

.route-card-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.route-card-tag.hot {
  background: rgba(245, 158, 11, 0.8);
}

.route-card-tag.new {
  background: rgba(16, 185, 129, 0.8);
}

.route-card-body {
  padding: var(--space-md);
}

.route-price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--p-border);
  font-size: 0.9375rem;
}

.route-price-row:last-child {
  border-bottom: none;
}

.route-price-row .label {
  color: var(--text2);
}

.route-price-row .value {
  font-weight: 700;
  color: var(--text1);
}

.route-price-row .value.highlight {
  color: var(--p);
  font-size: 1.125rem;
}

.route-card-footer {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.route-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text2);
}

.route-time i {
  color: var(--p);
}

/* ---- 价格说明 ---- */
.price-note {
  background: var(--p-lighter);
  border: 1px solid var(--p-border);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-xl);
}

.price-note-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--p);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-note-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.price-note-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text2);
}

.price-note-item i {
  color: var(--p);
  margin-top: 3px;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .calculator-section {
    grid-template-columns: 1fr;
  }
  
  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .calc-form-grid {
    grid-template-columns: 1fr;
  }
  
  .routes-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-search {
    margin-left: 0;
  }
}


/* ---- 服务优势 ---- */
.advantages-section {
      background: var(--bg-white);
    padding: 30px;
    border-radius: 20px;
  margin-bottom: var(--space-xl);
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i {
  color: var(--p);
  font-size: 1.2rem;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.advantage-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid #ede9f6;
  transition: all 0.25s;
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(123, 63, 242, 0.1);
  border-color: var(--p2);
}
.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(123,63,242,0.1), rgba(168,85,247,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.4rem;
  color: var(--p);
}
.advantage-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 6px;
}
.advantage-card p {
  font-size: 0.82rem;
  color: var(--text3);
  line-height: 1.5;
}
