/* Contact页面特定样式 */
:root {
  --secondary: #1A3A5F;
  --neutral-dark: #2C394B;
  --metal-gray: #8892A0;
  --red-500: #ef4444;
  --red-50: #fef2f2;
  --red-200: #fee2e2;
  --red-700: #b91c1c;
  --green-50: #ecfdf5;
  --green-200: #bbf7d0;
  --green-500: #10b981;
  --green-700: #047857;
}

/* Contact Section Styles */
.contact-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom right, var(--neutral), var(--white), var(--neutral));
  position: relative;
  overflow: hidden;
}

.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
}

.bg-decoration div {
  position: absolute;
  border-radius: 50%;
  filter: blur(3xl);
}

.contact-section .bg-decoration div:first-child {
  top: 5rem;
  left: 2.5rem;
  width: 8rem;
  height: 8rem;
  background: var(--primary);
}

.contact-section .bg-decoration div:last-child {
  bottom: 5rem;
  right: 2.5rem;
  width: 10rem;
  height: 10rem;
  background: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
}

.section-title i {
  margin-right: 0.75rem;
  color: var(--accent);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background-color: var(--gray-100);
}

.contact-info-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(to bottom right, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
  transform: scale(1.05);
}

.contact-info-icon i {
  color: var(--white);
  font-size: 1.125rem;
}

.contact-info-content h4 {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.contact-info-content p {
  color: var(--gray-600);
  line-height: 1.7;
}

.work-time {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: linear-gradient(to right, rgba(22, 93, 255, 0.05), rgba(0, 191, 255, 0.05));
  border-radius: 0.75rem;
  border-left: 4px solid var(--primary);
}

.work-time-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.125rem;
}

.work-time-title i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.work-time-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.work-time-item {
  display: flex;
  justify-content: space-between;
  color: var(--gray-600);
}

.work-time-item span:last-child {
  font-weight: 500;
}

.work-time-item:last-child span:last-child {
  color: var(--red-500);
}

/* Form Styles */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  min-height: 400px;
  height: calc(100% - 70px);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
  }
}

.form-group {
  flex: 1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.1), 0 0 0 1px var(--primary);
}

.form-group:hover .form-input,
.form-group:hover .form-textarea {
  border-color: rgba(22, 93, 255, 0.5);
}

.form-textarea {
  resize: none;
  min-height: 8rem;
}

.form-submit {
  width: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--white);
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
}

.form-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.form-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-submit i {
  margin-right: 0.5rem;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  display: none;
}

.form-message.success {
  background-color: var(--green-50);
  border: 1px solid var(--green-200);
}

.form-message.error {
  background-color: var(--red-50);
  border: 1px solid var(--red-200);
}

.form-message i {
  margin-right: 0.5rem;
}

.form-message.success i {
  color: var(--green-500);
}

.form-message.error i {
  color: var(--red-500);
}

.form-message p {
  font-size: 0.875rem;
}

.form-message.success p {
  color: var(--green-700);
}

.form-message.error p {
  color: var(--red-700);
}

/* Map Section Styles */
.map-section {
  padding: 5rem 0;
  background: linear-gradient(to bottom right, var(--neutral), var(--white), var(--neutral));
  position: relative;
  overflow: hidden;
}

.map-section .bg-decoration div:first-child {
  top: 2.5rem;
  right: 2.5rem;
  width: 8rem;
  height: 8rem;
  background: var(--primary);
}

.map-section .bg-decoration div:last-child {
  bottom: 2.5rem;
  left: 2.5rem;
  width: 10rem;
  height: 10rem;
  background: var(--accent);
}

.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .map-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.map-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.map-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.map-header {
  background: linear-gradient(to right, var(--primary), var(--accent));
  color: var(--white);
  padding: 1rem;
}

.map-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-header-left {
  display: flex;
  align-items: center;
}

.map-header-left i {
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.map-header-info h3 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.map-header-info p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.map-open-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 0.875rem;
}

.map-open-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.map-open-btn i {
  margin-right: 0.5rem;
}

.map-container {
  position: relative;
  height: 100%;
  background-color: var(--gray-100);
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.map-loading-content {
  text-align: center;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 4px solid var(--primary);
  border-top: 4px transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.loading-subtext {
  color: var(--gray-500);
  font-size: 0.75rem;
}

.map-info-panel {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 10;
  border: 1px solid var(--gray-200);
}

.map-info-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.location-pulse {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--red-500);
  border-radius: 50%;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }

  70% {
    box-shadow: 0 0 0 0.5rem rgba(239, 68, 68, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.map-info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.map-info-details {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.map-info-details div {
  margin-bottom: 0.25rem;
}

.map-info-details div:last-child {
  margin-bottom: 0;
  color: var(--green-600);
  font-weight: 500;
}

.map-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.map-control-btn {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
}

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

.map-control-btn:nth-child(2):hover {
  background-color: var(--accent);
  color: var(--white);
}

.map-control-btn i {
  font-size: 0.875rem;
  transition: transform 0.3s ease;
}

.map-control-btn:hover i {
  transform: scale(1.1);
}

.location-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-info-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.location-info-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.location-info-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.location-info-title i {
  margin-right: 0.75rem;
  color: var(--accent);
}

.location-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-detail-item {
  display: flex;
  align-items: flex-start;
}

.location-detail-item i {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  width: 1rem;
  text-align: center;
}

.location-detail-text {
  flex: 1;
}

.location-detail-text p:first-child {
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.location-detail-text p:last-child {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.directions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.direction-item {
  display: flex;
  align-items: flex-start;
}

.direction-icon {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  width: 1rem;
  text-align: center;
}

.direction-content {
  flex: 1;
}

.direction-content p:first-child {
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.direction-content p:last-child {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Toast notification */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: var(--green-500);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.toast i {
  margin-right: 0.5rem;
}

.toast.hide {
  opacity: 0;
  transform: translateY(-20px);
}