/*--------------------------------------------------------------
# Contact Page Styles
--------------------------------------------------------------*/

/* Contact页面Hero Section优化 - 添加全球概念 */
.contact-page .hero {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color), transparent 95%) 50%, color-mix(in srgb, var(--accent-color), transparent 98%) 25%, transparent 50%);
  min-height: 40vh; /* 从70vh调整为40vh */
  position: relative;
  overflow: hidden;
}

.contact-page .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/world-map-dots.png') no-repeat center center;
  background-size: contain;
  opacity: 0.08;
  z-index: 0;
}

.contact-page .hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(89,89,251,0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.contact-page .hero .container {
  position: relative;
  z-index: 1;
}

.contact-page .hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-page .hero h1::after {
  content: '🌍';
  position: absolute;
  top: -10px;
  right: -50px;
  font-size: 2rem;
  opacity: 0.6;
}

.contact-page .hero p {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-page .btn-get-started {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  border: 2px solid var(--primary-color);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-page .btn-get-started:hover {
  background: linear-gradient(135deg, var(--primary-color-light), var(--primary-color));
  border-color: var(--primary-color-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89,89,251,0.3);
  color: white;
}

/* Contact Information Section */
.contact-info .info-item {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(89,89,251,0.1);
  position: relative;
  overflow: hidden;
}

.contact-info .info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
}

.contact-info .info-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-info .info-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-info .info-item h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.contact-info .info-item p {
  color: #666;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Global Offices Section */
/*--------------------------------------------------------------
# Global Offices Section - 添加国家标识
--------------------------------------------------------------*/
.offices {
  background: white;
  position: relative;
}

.offices::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(89,89,251,0.02) 0%, rgba(89,89,251,0.05) 100%);
}

.offices .container {
  position: relative;
  z-index: 1;
}

.offices .office-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
}

.offices .office-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
}

.offices .office-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.offices .office-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.offices .office-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0;
}

/* 使用CSS创建国家标识 - 去掉遮罩效果 */
.offices .flag-icon {
  width: 50px;
  height: 35px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
  overflow: visible; /* 改为 visible 去掉遮罩 */
}

/* 如果使用的是图片国旗，确保没有遮罩 */
.offices .flag-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  /* 去掉任何可能的遮罩效果 */
}

/* 美国国旗样式 */
.office-card:nth-child(1) .flag-icon {
  background: linear-gradient(to bottom, #B22234 0%, #B22234 7.7%, white 7.7%, white 15.4%, #B22234 15.4%);
}

.office-card:nth-child(1) .flag-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 53.8%;
  background: #3C3B6E;
}

/* 日本国旗样式 */
.office-card:nth-child(2) .flag-icon {
  background: white;
}

.office-card:nth-child(2) .flag-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #BC002D;
  border-radius: 50%;
}

/* 中国国旗样式 */
.office-card:nth-child(3) .flag-icon {
  background: #DE2910;
}

.office-card:nth-child(3) .flag-icon::before {
  content: '★';
  position: absolute;
  top: 8px;
  left: 8px;
  color: #FFDE00;
  font-size: 12px;
}

.offices .office-content {
  position: relative;
  z-index: 1;
}

.offices .office-address,
.offices .office-time {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.offices .office-address i,
.offices .office-time i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-right: 1rem;
  width: 20px;
}

.offices .office-address p,
.offices .office-time p {
  margin: 0;
  color: #666;
  font-size: 1rem;
}

/* Contact Form Section */
.contact-form {
  background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.contact-form .php-email-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 1px solid rgba(89,89,251,0.1);
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(89,89,251,0.15);
  background: white;
  outline: none;
}

.contact-form select.form-control {
  cursor: pointer;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.contact-form button[type="submit"] {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  border: none;
  color: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(89,89,251,0.3);
}

.contact-form button[type="submit"]:active {
  transform: translateY(0);
}

/* Form validation styles */
.contact-form .form-control.is-invalid {
  border-color: #dc3545;
}

.contact-form .form-control.is-valid {
  border-color: #28a745;
}

/* Loading and message styles */
.contact-form .loading {
  display: none;
  text-align: center;
  padding: 1rem;
  color: var(--primary-color);
}

.contact-form .error-message {
  display: none;
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #f5c6cb;
}

.contact-form .sent-message {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #c3e6cb;
}

/*--------------------------------------------------------------
# Company Info Section - 采用首页Stats Section的设计 */
.company-info {
  background: white;
  color: var(--color-text);
  position: relative;
  padding: 80px 0;
}

.company-info .section-title h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  text-align: center;
}

.company-info .section-title p {
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* 采用首页stats-card的完整样式 */
.company-info .stats-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  height: 100%;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid rgba(89, 89, 251, 0.1);
  background: white;
}

.company-info .stats-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.company-info .stats-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  transition: all 0.3s ease;
}

.company-info .stats-card:hover::after {
  height: 6px;
}

.company-info .stats-content {
  flex-grow: 1;
}

.company-info .stats-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.company-info .highlight-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 42px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(89, 89, 251, 0.1);
}

.company-info .stats-label {
  font-size: 18px;
  color: var(--heading-color);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.company-info .stats-desc {
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 0;
  line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .company-info {
    padding: 60px 0;
  }
  
  .company-info .stats-card {
    padding: 25px;
  }
  
  .company-info .highlight-text {
    font-size: 36px;
  }
  
  .company-info .stats-label {
    font-size: 16px;
  }
  
  .company-info .stats-desc {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .company-info .stats-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .company-info .highlight-text {
    font-size: 32px;
  }
  
  .company-info .stats-label {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .company-info .stats-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .company-info .highlight-text {
    font-size: 32px;
  }
  
  .company-info .stats-label {
    font-size: 15px;
  }
}
