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

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

.required {
  color: #ff6b6b;
}

.device-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.device-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.device-type-item svg {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.device-type-item span {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.device-type-item.active {
  border-color: var(--primary-color);
  background: rgba(78, 205, 196, 0.08);
}

.device-type-item.active span {
  color: var(--primary-color);
  font-weight: 600;
}

.device-type-item:active {
  transform: scale(0.95);
}

.form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

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

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

.form-textarea {
  width: 100%;
  height: 120px;
  padding: 16px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

.form-textarea:focus {
  border-color: var(--primary-color);
}

.form-textarea::placeholder {
  color: var(--text-light);
}

.form-char-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
  color: var(--text-light);
}

.form-value-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 12px;
  transition: border-color var(--transition-fast);
}

.form-value-wrap:hover {
  border-color: var(--primary-color);
}

.form-value {
  font-size: 14px;
  color: var(--text-primary);
}

.form-detail {
  font-size: 13px;
  color: var(--primary-color);
  margin-right: 8px;
}

.form-arrow {
  flex-shrink: 0;
}



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

.image-upload-btn {
  width: 88px;
  height: 88px;
  border: 2px dashed #e0e0e0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #fafafa;
}

.image-upload-btn:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(78, 205, 196, 0.04) 100%);
}

.image-upload-btn svg {
  width: 32px;
  height: 32px;
  color: var(--text-light);
}

.image-upload-btn:hover svg {
  color: var(--primary-color);
}

.upload-text {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}

.image-upload-btn:hover .upload-text {
  color: var(--primary-color);
}

.image-preview {
  width: 85px;
  height: 85px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.image-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.image-remove-btn:hover {
  background: rgba(239, 68, 68, 1);
  transform: scale(1.1);
}

.form-hint {
  font-weight: 400;
  color: var(--text-light);
  font-size: 13px;
}

.form-submit {
  width: 100%;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-glow);
}

.form-submit:active {
  transform: scale(0.98);
  background: var(--primary-dark);
}

.priority-options {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: space-between;
}

.priority-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  background: #fff;
  flex: 1;
  min-width: 0;
}

.priority-option:hover {
  border-color: var(--primary-color);
  background: rgba(78, 205, 196, 0.02);
}

.priority-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.priority-option input[type="radio"]:checked + .priority-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.2);
}

.priority-option input[type="radio"]:checked ~ .priority-title {
  color: var(--primary-color);
  font-weight: 600;
}

.priority-option input[type="radio"]:checked ~ .priority-response {
  background: var(--primary-color);
  color: #fff;
}

.priority-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

.priority-dot.high {
  background: #ff4757;
}

.priority-dot.medium {
  background: #ffa502;
}

.priority-dot.low {
  background: #2ed573;
}

.priority-title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
}

.priority-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-secondary);
  text-align: center;
}

.status-tabs {
  display: flex;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 4px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.status-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.status-tab.active {
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

.status-list {
  padding: 0 0 20px;
}

.status-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-light);
}

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

.status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(78, 205, 196, 0.15);
  color: var(--primary-color);
}

.status-badge.pending {
  background: rgba(79, 195, 247, 0.15);
  color: #4FC3F7;
}

.status-badge.dispatched {
  background: rgba(251, 192, 45, 0.15);
  color: #FBC02D;
}

.status-badge.repairing,
.status-badge.processing {
  background: rgba(255, 112, 67, 0.15);
  color: #FF7043;
}

.status-badge.pending-confirmation,
.status-badge.pending_confirmation,
.status-badge.warning {
  background: rgba(149, 117, 205, 0.15);
  color: #9575CD;
}

.status-badge.completed {
  background: rgba(102, 187, 106, 0.15);
  color: #66BB6A;
}

.status-badge.cancelled {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
}

.status-badge.teal {
  background: rgba(0, 188, 212, 0.15);
  color: #00BCD4;
}

.status-badge.purple {
  background: rgba(171, 71, 188, 0.15);
  color: #AB47BC;
}

.status-badge.indigo {
  background: rgba(92, 107, 192, 0.15);
  color: #5C6BC0;
}

.status-badge.pink {
  background: rgba(236, 64, 122, 0.15);
  color: #EC407A;
}

.status-badge.brown {
  background: rgba(141, 110, 99, 0.15);
  color: #8D6E63;
}

.status-badge.lime {
  background: rgba(156, 204, 101, 0.15);
  color: #9CCC65;
}

.status-time {
  font-size: 13px;
  color: var(--text-light);
}

.status-content {
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.status-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.status-detail {
  flex: 1;
}

.status-location {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.status-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.5;
}

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

.status-timeline {
  padding-top: 16px;
  position: relative;
}

.status-timeline::before {
  display: none;
}

.status-timeline .timeline-item.step-0 { --step-color: #4FC3F7; --step-shadow: rgba(79, 195, 247, 0.16); }
.status-timeline .timeline-item.step-1 { --step-color: #FBC02D; --step-shadow: rgba(251, 192, 45, 0.16); }
.status-timeline .timeline-item.step-2 { --step-color: #FF7043; --step-shadow: rgba(255, 112, 67, 0.16); }
.status-timeline .timeline-item.step-3 { --step-color: #9575CD; --step-shadow: rgba(149, 117, 205, 0.16); }
.status-timeline .timeline-item.step-4 { --step-color: #66BB6A; --step-shadow: rgba(102, 187, 106, 0.16); }

.status-timeline .timeline-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: -4px;
  width: 2px;
  background: #eee;
  transform: translateX(-50%);
}

.status-timeline .timeline-item:last-child::before {
  display: none;
}

.status-timeline .timeline-item.completed::before,
.status-timeline .timeline-item.active::before {
  background: var(--step-color, var(--primary-color));
}

.status-timeline .timeline-line {
  display: none;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
  margin-top: 4px;
}

.status-timeline .timeline-dot {
  position: relative;
  border: 2px solid #ddd;
  background: #f5f5f5;
  color: #aaa;
  box-shadow: none;
}

.status-timeline .timeline-dot::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.timeline-item.completed .timeline-dot {
  background: var(--primary-color);
}

.timeline-item.active .timeline-dot {
  background: var(--primary-color);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-timeline .timeline-item.completed .timeline-dot,
.status-timeline .timeline-item.active .timeline-dot {
  background-color: #fff;
  border-color: var(--step-color, var(--primary-color));
  color: var(--step-color, var(--primary-color));
  box-shadow: 0 0 0 4px var(--step-shadow, rgba(78, 205, 196, 0.12));
  animation: none;
}

.status-timeline .timeline-item.completed .timeline-dot::after,
.status-timeline .timeline-item.active .timeline-dot::after {
  left: 3px;
  top: 3px;
  width: 8px;
  height: 8px;
  background: currentColor;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(78, 205, 196, 0.4);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(78, 205, 196, 0);
  }
}

.timeline-content {
  flex: 1;
}

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

.status-timeline .timeline-item.completed .timeline-title,
.status-timeline .timeline-item.active .timeline-title {
  color: var(--step-color, var(--text-primary));
}

.timeline-item:not(.completed):not(.active) .timeline-title {
  color: var(--text-light);
}

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

.status-timeline .timeline-time {
  margin-bottom: 4px;
}

.status-timeline .timeline-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.status-timeline .timeline-item:not(.completed):not(.active) .timeline-desc {
  color: var(--text-light);
}

.repair-phone-link {
  color: inherit;
  text-decoration: none;
}

.feedback-type-section {
  margin-bottom: 12px;
}

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

.optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: 13px;
}

.feedback-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feedback-type-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: #fafafa;
  border: 1.5px solid #e8e8e8;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.feedback-type-item svg {
  display: none;
}

.feedback-type-item span {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-weight: 500;
}

.feedback-type-item.active {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.15) 0%, rgba(78, 205, 196, 0.08) 100%);
  box-shadow: 0 2px 8px rgba(78, 205, 196, 0.2);
}

.feedback-type-item.active span {
  color: var(--primary-color);
  font-weight: 600;
}

.feedback-type-item:hover {
  border-color: var(--primary-color);
  background: rgba(78, 205, 196, 0.05);
}

.feedback-type-item:active {
  transform: scale(0.96);
}

.feedback-content-section {
  margin-bottom: 12px;
  position: relative;
}

.feedback-textarea {
  width: 100%;
  height: 100px;
  padding: 12px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
  resize: none;
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
  background: #fafafa;
  line-height: 1.6;
}

.feedback-textarea:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.feedback-textarea::placeholder {
  color: var(--text-light);
}

.feedback-char-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.feedback-image-section {
  margin-bottom: 12px;
}

.feedback-image-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feedback-contact-section {
  margin-bottom: 14px;
}

.feedback-contact-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #e8e8e8;
  border-radius: 16px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
  font-family: inherit;
  background: #fafafa;
}

.feedback-contact-input:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.feedback-contact-input::placeholder {
  color: var(--text-light);
}

.feedback-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3db9b0 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(78, 205, 196, 0.35);
}

.feedback-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.feedback-submit:active {
  transform: scale(0.98);
  background: var(--primary-dark);
}

.feedback-modal {
  max-width: 420px;
  width: 90%;
  padding: 0;
  text-align: left;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(1);
  margin: auto;
  align-self: center;
}

.feedback-modal .modal-header {
  padding: 10px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

.feedback-modal.login-prompt-modal .modal-header {
  padding: 0;
  border-bottom: none;
  background: transparent;
}

.announcement-list,
.help-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.announcement-item,
.help-item {
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 16px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.announcement-item:hover,
.help-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
  transform: translateY(-2px);
}

.announcement-date {
  display: inline-block;
  font-size: 12px;
  color: #fff;
  background: var(--primary-color);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 500;
}

.announcement-content h4,
.help-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.announcement-content p,
.help-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.help-item {
  cursor: pointer;
}

.help-item p {
  display: none;
  margin-top: 10px;
}

.help-item.open p {
  display: block;
}

.help-view-tip {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--primary-color);
}

.help-item.open .help-view-tip {
  display: none;
}

/* 联系我们列表样式（与评价标签样式一致）*/
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  padding: 16px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
  transform: translateY(-2px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(78, 205, 196, 0.15) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  transition: all var(--transition-fast);
}

.contact-item:hover .contact-icon svg path {
  fill: #fff;
}

.contact-info {
  flex: 1;
}

.contact-label {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.about-system-modal {
  max-width: 460px;
}

.feedback-type-section {
  margin-bottom: 4px;
}

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

.feedback-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.feedback-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: inherit;
  resize: vertical;
  line-height: 1.6;
}

.feedback-textarea:focus {
  border-color: var(--primary-color);
}

.feedback-textarea::placeholder {
  color: #bbb;
}

.feedback-char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

.feedback-image-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.image-upload-btn {
  width: 80px;
  height: 80px;
  border: 1.5px dashed #ddd;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: #fafafa;
  gap: 4px;
}

.image-upload-btn:hover {
  border-color: var(--primary-color);
  background: rgba(78, 205, 196, 0.05);
}

.image-upload-btn svg {
  width: 28px;
  height: 28px;
  color: #ccc;
  transition: color var(--transition-fast);
}

.image-upload-btn:hover svg {
  color: var(--primary-color);
}

.image-upload-btn .upload-text {
  font-size: 11px;
  color: #999;
}

.image-preview {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1.5px solid #eee;
}

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

.image-remove-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: all var(--transition-fast);
}

.image-remove-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
}

.feedback-contact-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  font-family: inherit;
}

.feedback-contact-input:focus {
  border-color: var(--primary-color);
}

.feedback-contact-input::placeholder {
  color: #bbb;
}

.feedback-submit {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.feedback-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.feedback-submit:active {
  transform: translateY(0);
}

.feedback-submit:disabled {
  background: #e8e8e8 !important;
  color: #999 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.loading-tip,
.empty-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
  gap: 16px;
}

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

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

body:has(> section.banner.home-page) {
  min-height: 100dvh;
  background: linear-gradient(160deg, #cfe7d8 0%, #b7d8ea 55%, #a9c9e7 100%) no-repeat top center;
  background-attachment: scroll;
  background-size: 100% 100%;
}

body > section.banner.home-page {
  background: transparent;
  padding: 0 0 24px;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

body > section.banner.home-page::before {
  content: none;
}

/* Hero 顶部区域 */
.home-hero {
  padding: calc(25px + var(--app-safe-area-top)) 16px 20px;
}

.home-hero-inner {
  position: relative;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.home-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(60, 90, 120, 0.12);
}

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

.home-user-info {
  min-width: 0;
}

.home-hello {
  font-size: 16px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0 0 2px;
  line-height: 1.2;
}

.home-welcome {
  font-size: 12px;
  color: rgba(31, 43, 58, 0.65);
  margin: 0;
  line-height: 1.2;
}

.home-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.home-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  color: #2b4a6b;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(6px);
}

.home-icon-btn.has-dot::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b5b;
  border: 1px solid #fff;
}

/* 搜索框 */
.home-search {
  margin-top: 18px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  box-shadow: 0 6px 14px rgba(60, 90, 120, 0.08);
}

.home-search i {
  color: #8ea6bd;
  font-size: 14px;
}

.home-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #1f2b3a;
}

.home-search input::placeholder {
  color: #98a9bb;
}

/* 搜索：清空按钮 */
.home-search {
  position: relative;
}
.home-search-clear {
  color: #98a9bb;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}
.home-search-clear.is-hidden {
  display: none;
}

/* 搜索：结果下拉面板 */
.home-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30, 60, 90, 0.18);
  z-index: 50;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px 0;
}
.home-search-panel.is-hidden {
  display: none;
}
.home-search-empty,
.home-search-loading {
  padding: 22px 16px;
  text-align: center;
  color: #98a9bb;
  font-size: 13px;
}
.home-search-empty.is-hidden,
.home-search-loading.is-hidden {
  display: none;
}
.home-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-search-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f2f4f7;
  cursor: pointer;
  transition: background 0.15s;
}
.home-search-item:last-child {
  border-bottom: none;
}
.home-search-item:hover,
.home-search-item:active {
  background: #f5faff;
}
.home-search-item .hsi-title {
  font-size: 14px;
  color: #1f2b3a;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.home-search-item .hsi-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7c92;
}
.home-search-item .hsi-order {
  font-family: Menlo, Consolas, monospace;
  color: #4ecdc4;
}
.home-search-item .hsi-status {
  padding: 2px 8px;
  border-radius: 10px;
  background: #eef2f7;
  color: #6b7c92;
  font-size: 11px;
}
.home-search-item .hsi-status.s-pending { background: #fff4e6; color: #ff9500; }
.home-search-item .hsi-status.s-dispatched { background: #e6f4ff; color: #1890ff; }
.home-search-item .hsi-status.s-repairing,
.home-search-item .hsi-status.s-processing { background: #e6fffb; color: #13c2c2; }
.home-search-item .hsi-status.s-pending_confirmation { background: #fff1f0; color: #f5222d; }
.home-search-item .hsi-status.s-completed { background: #f6ffed; color: #52c41a; }
.home-search-item .hsi-status.s-cancelled { background: #f5f5f5; color: #999; }
.home-search-item .hsi-status.s-teal { background: #e0f7fa; color: #00BCD4; }
.home-search-item .hsi-status.s-purple { background: #f3e5f5; color: #AB47BC; }
.home-search-item .hsi-status.s-indigo { background: #e8eaf6; color: #5C6BC0; }
.home-search-item .hsi-status.s-pink { background: #fce4ec; color: #EC407A; }
.home-search-item .hsi-status.s-brown { background: #efebe9; color: #8D6E63; }
.home-search-item .hsi-status.s-lime { background: #f0f4c3; color: #9CCC65; }
.home-search-item .hsi-sub {
  margin-top: 3px;
  font-size: 12px;
  color: #98a9bb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-search-item .hl {
  font-style: normal;
  color: #ff6b6b;
  background: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

.home-search-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-search-item .hsi-icon-wrap {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5faff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ecdc4;
  font-size: 16px;
  flex-shrink: 0;
}

.home-search-item .hsi-content {
  flex: 1;
  min-width: 0;
}

.home-search-item .hsi-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.home-search-item .hsi-type-label {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2f7;
  color: #6b7c92;
  flex-shrink: 0;
}

.home-search-item[data-type="asset"] .hsi-icon-wrap {
  background: #fff7e6;
  color: #ff9500;
}
.home-search-item[data-type="asset"] .hsi-type-label {
  background: #fff7e6;
  color: #ff9500;
}

.home-search-item[data-type="help"] .hsi-icon-wrap {
  background: #e6f7ff;
  color: #1890ff;
}
.home-search-item[data-type="help"] .hsi-type-label {
  background: #e6f7ff;
  color: #1890ff;
}

.home-search-item[data-type="news"] .hsi-icon-wrap {
  background: #f6ffed;
  color: #52c41a;
}
.home-search-item[data-type="news"] .hsi-type-label {
  background: #f6ffed;
  color: #52c41a;
}

.home-search-item .hsi-status.s-in_use { background: #f6ffed; color: #52c41a; }
.home-search-item .hsi-status.s-idle { background: #f5f5f5; color: #999; }
.home-search-item .hsi-status.s-repair { background: #fff7e6; color: #ff9500; }
.home-search-item .hsi-status.s-transfer { background: #e6f4ff; color: #1890ff; }
.home-search-item .hsi-status.s-scrapped { background: #f5f5f5; color: #999; }
.home-search-item .hsi-status.s-news { background: #f6ffed; color: #52c41a; }

/* 主功能卡片区 */
.home-cards-wrap {
  padding: 0 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.home-cards-cols {
  align-items: stretch;
}

.home-cards-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.home-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(60, 90, 120, 0.08);
  min-height: 72px;
}

.home-card-primary {
  background: linear-gradient(135deg, #b9d4ff 0%, #e6efff 100%);
}

.home-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: #6c8dfc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(108, 141, 252, 0.18);
}

.home-card-icon.icon-blue { color: #6c8dfc; }
.home-card-icon.icon-green { color: #4ecdc4; }

.home-card-body { min-width: 0; }

.home-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0 0 4px;
  line-height: 1.2;
}

.home-card-desc {
  font-size: 12px;
  color: #8698ab;
  margin: 0;
  line-height: 1.2;
}

/* 建案记录卡片 */
.home-records {
  background: linear-gradient(135deg, #c9dbff 0%, #dee9ff 100%);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(60, 90, 120, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 72px;
}

.records-label {
  font-size: 12px;
  color: #4c6a8c;
  font-weight: 600;
}

.records-label i {
  margin-right: 4px;
}

.home-records-merged .records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-records-merged .records-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2b3a;
}

.home-records-merged .records-title i {
  margin-right: 4px;
  color: #4ecdc4;
}

.home-records-merged .records-count {
  font-size: 12px;
  color: #4c6a8c;
  font-weight: 600;
}

.home-records-tall {
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
}

.home-cards-col:has(.home-records-tall) {
  justify-content: stretch;
  align-items: stretch;
}

.record-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.record-tag {
  background: rgba(255, 255, 255, 0.9);
  color: #4c6a8c;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
}

/* 快捷导航 */
.home-quick-nav {
  margin-top: 18px;
  padding: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-quick-nav::-webkit-scrollbar {
  display: none;
}

.home-quick-page {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s;
}

.quick-item:active {
  transform: scale(0.94);
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.quick-icon.color-1 { background: linear-gradient(135deg, #4ecdc4, #3fb9b0); }
.quick-icon.color-2 { background: linear-gradient(135deg, #ffb56b, #ff9540); }
.quick-icon.color-3 { background: linear-gradient(135deg, #6c8dfc, #4a6ef5); }
.quick-icon.color-4 { background: linear-gradient(135deg, #9b8cff, #7a67f0); }
.quick-icon.color-5 { background: linear-gradient(135deg, #4ecdc4, #6c8dfc); }
.quick-icon.color-6 { background: linear-gradient(135deg, #ff8fa3, #ff6b81); }
.quick-icon.color-7 { background: linear-gradient(135deg, #57c8f5, #339dd6); }
.quick-icon.color-8 { background: linear-gradient(135deg, #ffc36a, #f59f2b); }
.quick-icon.color-9 { background: linear-gradient(135deg, #86e2a6, #4dc379); }
.quick-icon.color-10 { background: linear-gradient(135deg, #ff9a76, #ef6c4a); }
.quick-icon.color-11 { background: linear-gradient(135deg, #6ab7ff, #3d8bfd); }

.quick-label {
  font-size: 12px;
  color: #2b3f57;
}

.home-quick-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.home-quick-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(60, 90, 120, 0.25);
}

.home-quick-dots .dot.active {
  width: 14px;
  border-radius: 3px;
  background: #6c8dfc;
}

/* 分组标题 */
.home-section-header {
  margin: 24px 16px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0;
  line-height: 1.2;
}

.home-section-text {
  position: relative;
  color: #1f2b3a;
  letter-spacing: 0.5px;
}

.home-section-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: linear-gradient(90deg, rgba(108, 141, 252, 0.35) 0%, rgba(108, 141, 252, 0) 100%);
  border-radius: 3px;
  z-index: -1;
}

.home-section-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 8px 8px 8px 2px;
  background: linear-gradient(135deg, #ff7a59 0%, #ff4d6d 100%);
  letter-spacing: 0.5px;
  transform: translateY(-2px);
}

.home-section-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #8698ab;
  cursor: pointer;
  transition: color 0.2s ease;
}

.home-section-more:hover,
.home-section-more:active {
  color: #6c8dfc;
}

.home-section-more i {
  font-size: 11px;
}

/* Tab */
.home-tabs {
  padding: 0 16px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.home-tab {
  font-size: 14px;
  color: #6b7c92;
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}

.home-tab.active {
  color: #1f2b3a;
  font-weight: 700;
}

.home-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #6c8dfc;
}

.home-tab-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: #8698ab;
  transition: color 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}

.home-tab-more:hover,
.home-tab-more:active {
  color: #6c8dfc;
}

.home-tab-more.active::after {
  display: none;
}

.home-tab-more i {
  font-size: 14px;
  line-height: 1;
}

.home-tab-more.is-loading i {
  animation: homeNewsRefreshSpin 0.8s linear infinite;
}

@keyframes homeNewsRefreshSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 航班卡片 */
.home-flight-list {
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flight-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: 0 4px 12px rgba(60, 90, 120, 0.06);
}

.flight-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0 0 8px;
}

.flight-time {
  font-size: 13px;
  color: #4c6a8c;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.flight-time .t {
  font-weight: 700;
  color: #1f2b3a;
}

.flight-time .arrow {
  color: #8698ab;
}

.flight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #eef1f5;
  padding-top: 10px;
}

.flight-meta {
  font-size: 12px;
  color: #8698ab;
}

.flight-action {
  height: 28px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #dfe6ee;
  background: #fff;
  color: #4c6a8c;
  font-size: 12px;
  cursor: pointer;
}

.flight-detail {
  font-size: 13px;
  line-height: 1.7;
  color: #4a5b6f;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 12px 12px;
  margin: 0 0 10px;
  max-height: 500px;
  overflow: auto;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, margin 0.2s ease;
  word-break: break-word;
  white-space: normal;
}

.flight-detail.is-hidden {
  display: none !important;
}

.flight-detail-empty {
  color: #99a5b3;
}

.flight-card.is-expanded {
  box-shadow: 0 6px 18px rgba(60, 90, 120, 0.1);
}

/* 首页保留的空 action-section 占位 */
body > section.banner.home-page + .action-section {
  display: none !important;
}

/* ===================== 待办中心卡片样式优化 ===================== */
.home-records.home-todo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf3ff 0%, #f5ecff 55%, #ffeef5 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 12px;
  gap: 10px;
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  box-shadow:
    0 8px 20px rgba(80, 110, 160, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-records.home-todo::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(78, 205, 196, 0.32), rgba(78, 205, 196, 0) 70%);
  pointer-events: none;
}

.home-records.home-todo::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 149, 178, 0.26), rgba(255, 149, 178, 0) 70%);
  pointer-events: none;
}

.home-records.home-todo:active {
  transform: scale(0.985);
  box-shadow: 0 4px 12px rgba(80, 110, 160, 0.12);
}

.home-records.home-todo .records-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(76, 106, 140, 0.18);
  min-width: 0;
}

.home-records.home-todo .records-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: #1f2b3a;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-records.home-todo .records-title i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  margin-right: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #4ecdc4 0%, #44b3ac 100%);
  box-shadow: 0 3px 6px rgba(78, 205, 196, 0.4);
}

.home-records.home-todo .records-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #ff6b6b;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.22);
  line-height: 1;
  white-space: nowrap;
}

.home-records.home-todo .record-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.home-records.home-todo .record-tag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #4c6a8c;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(60, 90, 120, 0.08);
  cursor: pointer;
  white-space: nowrap;
  flex: 1 1 0;
  min-height: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.home-records.home-todo .record-tag::before {
  content: "";
  flex: 0 0 auto;
  order: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.home-records.home-todo .record-tag::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  flex: 0 0 auto;
  margin-left: 2px;
  font-size: 10px;
  color: #9db1c8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.home-records.home-todo .record-tag .rt-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-records.home-todo .record-tag .rt-num {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 18px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ecdc4 0%, #44b3ac 100%);
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.35);
}

.home-records.home-todo .record-tag[data-todo="pending"] .rt-num {
  background: linear-gradient(135deg, #ffb266 0%, #ff9f43 100%);
  box-shadow: 0 2px 4px rgba(255, 159, 67, 0.4);
}

.home-records.home-todo .record-tag[data-todo="pending_confirmation"] .rt-num {
  background: linear-gradient(135deg, #4ecdc4 0%, #44b3ac 100%);
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.4);
}

.home-records.home-todo .record-tag[data-todo="unrated"] .rt-num {
  background: linear-gradient(135deg, #b79cff 0%, #a78bfa 100%);
  box-shadow: 0 2px 4px rgba(167, 139, 250, 0.4);
}

.home-records.home-todo .record-tag[data-todo="pending"]::before {
  background: #ff9f43;
  box-shadow: 0 0 0 2px rgba(255, 159, 67, 0.22);
}

.home-records.home-todo .record-tag[data-todo="pending_confirmation"]::before {
  background: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.22);
}

.home-records.home-todo .record-tag[data-todo="unrated"]::before {
  background: #a78bfa;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.24);
}

.home-records.home-todo .record-tag:hover,
.home-records.home-todo .record-tag:active {
  background: #fff;
  color: #1f2b3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(60, 90, 120, 0.14);
}

.home-records.home-todo .record-tag:hover::after,
.home-records.home-todo .record-tag:active::after {
  color: #4ecdc4;
  transform: translateX(2px);
}

/* 极窄空间下的微调 */
@media (max-width: 360px) {
  .home-records.home-todo .records-title {
    font-size: 12px;
  }
  .home-records.home-todo .record-tag {
    font-size: 11px;
    padding: 5px 8px;
  }
}

#pageNews .news-refresh-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
#pageNews .news-refresh-btn:hover {
  background: rgba(78, 205, 196, 0.12);
  color: #4ecdc4;
}
#pageNews .news-refresh-btn.is-loading svg {
  animation: newsRefreshSpin 0.8s linear infinite;
}
@keyframes newsRefreshSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.news-tabs {
  display: flex;
  gap: 10px;
  padding: 12px 0 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.news-tabs::-webkit-scrollbar { display: none; }

.news-tab {
  flex: none;
  padding: 6px 16px;
  font-size: 13px;
  color: #666;
  background: #f2f4f7;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.news-tab.active {
  color: #fff;
  background: #4ecdc4;
  box-shadow: 0 2px 6px rgba(78, 205, 196, 0.35);
}

.news-updated-at {
  padding: 4px 2px 12px;
  font-size: 12px;
  color: #999;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8ecef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s;
}
.news-item:hover {
  border-color: #4ecdc4;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
}

.news-rank {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f2f4f7;
  color: #999;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.news-item.top-1 .news-rank { background: #ff4d4f; color: #fff; }
.news-item.top-2 .news-rank { background: #ff7a45; color: #fff; }
.news-item.top-3 .news-rank { background: #ffa940; color: #fff; }

.news-thumb {
  flex: none;
  width: 88px;
  min-width: 88px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-thumb.is-fallback[data-src="baidu"] {
  background: linear-gradient(135deg, #eef8f7 0%, #d6f3f0 100%);
}
.news-thumb.is-fallback[data-src="baidu"]::after {
  content: '百度';
  color: #4ecdc4;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.news-thumb.is-fallback[data-src="weibo"] {
  background: linear-gradient(135deg, #fff1f0 0%, #ffd8d5 100%);
}
.news-thumb.is-fallback[data-src="weibo"]::after {
  content: '微博';
  color: #ff4d4f;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* ============ 首页资讯卡片缩略图 ============ */
.flight-card.has-thumb .flight-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.flight-card.has-thumb .flight-card-body {
  flex: 1;
  min-width: 0;
}
.flight-card.has-thumb .flight-footer {
  margin-top: 10px;
  justify-content: flex-start;
  gap: 12px;
}
.flight-card.has-thumb .flight-meta {
  margin-right: auto;
}
.flight-thumb {
  flex: none;
  width: 96px;
  min-width: 96px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f4f7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flight-thumb.is-fallback[data-src="baidu"] {
  background: linear-gradient(135deg, #eef8f7 0%, #d6f3f0 100%);
}
.flight-thumb.is-fallback[data-src="baidu"]::after {
  content: '百度';
  color: #4ecdc4;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}
.flight-thumb.is-fallback[data-src="weibo"] {
  background: linear-gradient(135deg, #fff1f0 0%, #ffd8d5 100%);
}
.flight-thumb.is-fallback[data-src="weibo"]::after {
  content: '微博';
  color: #ff4d4f;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 知识库分类占位图 */
.flight-thumb.is-fallback.kb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flight-thumb.is-fallback.kb svg {
  width: 36px;
  height: 36px;
  opacity: 0.85;
}
.flight-thumb.is-fallback.kb[data-category="问答"] {
  background: linear-gradient(135deg, #eef8f7 0%, #d6f3f0 100%);
}
.flight-thumb.is-fallback.kb[data-category="问答"] svg { color: #4ecdc4; }
.flight-thumb.is-fallback.kb[data-category="热门"] {
  background: linear-gradient(135deg, #fff1f0 0%, #ffd8d5 100%);
}
.flight-thumb.is-fallback.kb[data-category="热门"] svg { color: #ff6b6b; }
.flight-thumb.is-fallback.kb[data-category="推荐"] {
  background: linear-gradient(135deg, #fff9d9 0%, #ffe580 100%);
}
.flight-thumb.is-fallback.kb[data-category="推荐"] svg { color: #d4a017; }
.flight-thumb.is-fallback.kb[data-category="全部"] {
  background: linear-gradient(135deg, #ede7ff 0%, #d3c5ff 100%);
}
.flight-thumb.is-fallback.kb[data-category="全部"] svg { color: #6c5ce7; }
.flight-thumb.is-fallback.kb[data-category="新闻资讯"] {
  background: linear-gradient(135deg, #eef8f7 0%, #d6f3f0 100%);
}
.flight-thumb.is-fallback.kb[data-category="新闻资讯"] svg { color: #4ecdc4; }
.flight-thumb.is-fallback.kb[data-category="帮助文档"] {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}
.flight-thumb.is-fallback.kb[data-category="帮助文档"] svg { color: #1890ff; }
.flight-thumb.is-fallback.kb[data-category="平台公告"] {
  background: linear-gradient(135deg, #fff7e6 0%, #ffd591 100%);
}
.flight-thumb.is-fallback.kb[data-category="平台公告"] svg { color: #fa8c16; }

.news-body {
  flex: 1;
  min-width: 0;
}
.news-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
  margin: 0 0 6px;
  word-break: break-word;
}
.news-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-item.is-expanded .news-desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #999;
  flex-wrap: wrap;
}
.news-meta .news-source {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef8f7;
  color: #4ecdc4;
  font-weight: 500;
}
.news-meta .news-source.weibo {
  background: #fff1f0;
  color: #ff4d4f;
}
.news-meta .news-hot {
  color: #ff7a45;
  font-weight: 600;
}

.news-empty {
  padding: 60px 0;
  text-align: center;
  color: #999;
  font-size: 14px;
}

/* ================= 新闻资讯详情页 ================= */
.news-detail {
  padding: 4px 2px 24px;
}
.news-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 12px;
}
.news-detail-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f2f4f7;
  color: #666;
}
.news-detail-badge.baidu {
  background: #eef8f7;
  color: #4ecdc4;
}
.news-detail-badge.weibo {
  background: #fff1f0;
  color: #ff4d4f;
}
.news-detail-badge.rank {
  background: #fff7e6;
  color: #ff7a45;
}
.news-detail-badge.hot {
  background: #fff0f0;
  color: #ff4d4f;
}
.news-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2b3a;
  line-height: 1.4;
  margin: 0 0 10px;
  word-break: break-word;
}
.news-detail-meta {
  font-size: 12px;
  color: #999;
  margin: 0 0 16px;
}
.news-detail-cover {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 16px;
  background: #f2f4f7;
}
.news-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.news-detail-content {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  word-break: break-word;
}
.news-detail-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.news-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #4ecdc4;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.35);
}
.news-detail-link:hover {
  background: #3fb8b0;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #4ecdc4 0%, #3ab5ac 60%, #2c9d95 100%);
  color: #fff;
  text-align: center;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(78, 205, 196, 0.25);
}

.guide-hero::before {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.guide-hero::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.guide-hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.guide-hero-title {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-hero-desc {
  position: relative;
  z-index: 1;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 18px;
}

.guide-hero-stat {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
}

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

.guide-hero-stat-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  font-family: 'Consolas', monospace;
}

.guide-hero-stat-num span {
  font-size: 12px;
  font-weight: 500;
  margin-left: 2px;
  opacity: 0.8;
}

.guide-hero-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.guide-hero-stat-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
}

.guide-section {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf1f3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 12px;
}

.guide-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 14px;
}

.guide-section-bar {
  width: 4px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4ecdc4, #3ab5ac);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-step {
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fbfb 0%, #f2fafa 100%);
  border: 1px solid #e5eeed;
  transition: transform 0.15s, box-shadow 0.15s;
}

.guide-step:active {
  transform: scale(0.99);
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
}

.guide-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.guide-step-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4ecdc4 0%, #3ab5ac 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Consolas', monospace;
  box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
}

.guide-step-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.guide-step-image {
  position: relative;
  margin: 10px auto 12px;
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef7f6;
  border: 1px solid #d9ebe9;
  box-shadow: 0 6px 18px rgba(78, 205, 196, 0.16);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-step-image:active {
  transform: scale(0.995);
  box-shadow: 0 8px 22px rgba(78, 205, 196, 0.22);
}

.guide-step-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: linear-gradient(135deg, #f0f9f8 0%, #e6f4f2 100%);
}

.guide-step-image-caption {
  display: none;
}

/* 新手引导 - 图片放大预览 */
.guide-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: guideViewerFadeIn 0.18s ease-out;
  overscroll-behavior: contain;
}

@keyframes guideViewerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.guide-image-viewer-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  transition: transform 0.2s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.guide-image-viewer-close {
  position: absolute;
  top: calc(20px + var(--app-safe-area-top, 0px));
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 1;
}

.guide-image-viewer-close:active {
  background: rgba(255, 255, 255, 0.32);
}

.guide-step-title {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

.guide-step-desc {
  font-size: 13px;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 8px;
  padding-left: 42px;
}

.guide-step-tips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  margin-left: 42px;
  border-radius: 8px;
  background: rgba(78, 205, 196, 0.08);
  border-left: 3px solid #4ecdc4;
}

.guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  color: #0d9488;
  line-height: 1.65;
}

.guide-tip-dot {
  flex-shrink: 0;
  color: #4ecdc4;
  font-weight: 700;
}

.guide-faqs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-faq-item {
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f5;
  overflow: hidden;
  transition: border-color 0.2s;
}

.guide-faq-item.open {
  border-color: rgba(78, 205, 196, 0.4);
  background: #fff;
  box-shadow: 0 2px 10px rgba(78, 205, 196, 0.08);
}

.guide-faq-q {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}

.guide-faq-q-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4ecdc4 0%, #3ab5ac 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Consolas', monospace;
}

.guide-faq-q-text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.5;
}

.guide-faq-arrow {
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.25s;
}

.guide-faq-item.open .guide-faq-arrow {
  transform: rotate(-180deg);
  color: #4ecdc4;
}

.guide-faq-a {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 4px 14px 14px;
  border-top: 1px dashed #e5e7eb;
  margin-top: -1px;
}

.guide-faq-item.open .guide-faq-a {
  display: flex;
  padding-top: 12px;
}

.guide-faq-a-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(249, 115, 22, 0.12);
  color: #ea580c;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Consolas', monospace;
  margin-top: 1px;
}

.guide-faq-a-text {
  flex: 1;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.guide-section-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.08) 0%, rgba(78, 205, 196, 0.02) 100%);
  border-color: rgba(78, 205, 196, 0.2);
}

.guide-cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.15);
}

.guide-cta-text {
  flex: 1;
  min-width: 160px;
}

.guide-cta-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 3px;
}

.guide-cta-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.55;
}

.guide-cta-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.guide-cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}

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

.guide-cta-btn-primary {
  background: linear-gradient(135deg, #4ecdc4 0%, #3ab5ac 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.guide-cta-btn-secondary {
  background: #fff;
  color: #4ecdc4;
  border: 1px solid #4ecdc4;
}
