/* Contact Page Styles */
.contact-section {
  padding: 120px 0 80px;
  min-height: calc(100vh - 72px);
}

.page-title {
  font-size: 48px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-description {
  font-size: 20px;
  color: #515154;
  text-align: center;
  font-weight: 400;
  margin-bottom: 0;
}

.contact-info {
  text-align: center;
  margin: 48px 0;
}

.email-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #1d1d1f;
  backdrop-filter: blur(10px);
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 32px;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.required {
  color: #ff3b30;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d1d1f;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
  background: rgba(255, 255, 255, 1);
}

.form-input.error,
.form-textarea.error {
  border-color: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.error-message {
  display: block;
  color: #ff3b30;
  font-size: 14px;
  margin-top: 6px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.submit-btn {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, #007aff 0%, #005bb5 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 16px;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
}

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

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(52, 199, 89, 0.1);
  border: 2px solid #34c759;
  border-radius: 12px;
  color: #1d7324;
  font-weight: 600;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1c1c1e 0%, #000000 100%);
    color: #f2f2f7;
  }

  .header {
    background: rgba(28, 28, 30, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .logo-text {
    color: #f2f2f7;
  }

  .nav-link {
    color: #98989d;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #f2f2f7;
  }

  .hero-title {
    color: #f2f2f7;
  }

  .hero-description {
    color: #98989d;
  }

  .platform-item {
    background: rgba(28, 28, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .platform-item:hover {
    background: rgba(28, 28, 30, 0.9);
  }

  .platform-item span {
    color: #98989d;
  }

  /* About page responsive styles */
  .about-title {
    font-size: 42px;
  }

  .content-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }

  .card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
  }

  .feature-tags {
    gap: 12px;
  }

  .feature-tag {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-section {
    padding: 100px 0 60px;
  }

  .page-title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .page-description {
    font-size: 18px;
  }

  .contact-form-container {
    padding: 32px 24px;
  }

  .form-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .form-input,
  .form-textarea {
    padding: 14px 16px;
    font-size: 15px;
  }

  .submit-btn {
    padding: 16px 28px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .contact-section {
    padding: 80px 0 40px;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-description {
    font-size: 16px;
  }

  .contact-form-container {
    padding: 24px 20px;
  }

  .form-title {
    font-size: 24px;
  }

  .email-info {
    font-size: 16px;
    padding: 14px 20px;
  }
}

/* File Upload Styles */
.optional {
  color: #86868b;
  font-weight: 400;
  font-size: 14px;
}

.file-upload-area {
  margin-top: 8px;
}

.file-input {
  display: none;
}

.file-upload-prompt {
  border: 2px dashed rgba(0, 122, 255, 0.3);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: rgba(0, 122, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-prompt:hover {
  border-color: rgba(0, 122, 255, 0.5);
  background: rgba(0, 122, 255, 0.05);
}

.file-upload-prompt.drag-over {
  border-color: #007aff;
  background: rgba(0, 122, 255, 0.1);
  transform: scale(1.02);
}

.file-upload-prompt svg {
  margin: 0 auto 12px;
}

.upload-text {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 8px 0;
}

.upload-hint {
  font-size: 14px;
  color: #86868b;
  margin: 0;
}

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.file-item:hover {
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.file-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 8px;
  font-size: 18px;
}

.file-icon.pdf { background: rgba(255, 59, 48, 0.1); }
.file-icon.doc { background: rgba(0, 122, 255, 0.1); }
.file-icon.img { background: rgba(52, 199, 89, 0.1); }
.file-icon.zip { background: rgba(255, 149, 0, 0.1); }
.file-icon.xls { background: rgba(48, 209, 88, 0.1); }

.file-details {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0 0 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 12px;
  color: #86868b;
  margin: 0;
}

.file-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.file-progress {
  width: 60px;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.file-progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #007aff, #005bb5);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.file-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.file-status.pending {
  color: #86868b;
  background: rgba(134, 134, 139, 0.1);
}

.file-status.uploading {
  color: #007aff;
  background: rgba(0, 122, 255, 0.1);
}

.file-status.success {
  color: #34c759;
  background: rgba(52, 199, 89, 0.1);
}

.file-status.error {
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.1);
}

.file-remove {
  padding: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #86868b;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.file-remove:hover {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
}

.file-remove svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* 文件上传响应式设计 */
@media (max-width: 768px) {
  .file-upload-prompt {
    padding: 24px 16px;
  }

  .upload-text {
    font-size: 15px;
  }

  .upload-hint {
    font-size: 13px;
  }

  .file-item {
    padding: 10px 12px;
  }

  .file-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .file-name {
    font-size: 13px;
  }

  .file-size {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .optional {
    display: block;
    margin-top: 4px;
  }

  .file-upload-prompt {
    padding: 20px 12px;
  }

  .file-upload-prompt svg {
    width: 36px;
    height: 36px;
  }

  .upload-text {
    font-size: 14px;
  }

  .upload-hint {
    font-size: 12px;
  }

  .file-info {
    gap: 10px;
  }

  .file-actions {
    flex-direction: column;
    gap: 4px;
  }
}
