/* 全局样式 */
:root {
  --primary-color: #ffffff;
  --text-color: #333333;
  --background-color: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* 首页 Hero 部分 */
.hero {
  height: 100vh;
  background-image: url('/static/background.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem;
  margin-top: -8rem;  
  text-align: center;   
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  line-height: 1.2;  
  margin-left: auto;
  margin-right: auto;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 600px;  
  margin-left: 2rem;  
  text-align: left;   
}

/* 服务部分 */
.services {
  padding: 5rem 2rem;
  background-color: #f8f9fa;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.service-card p {
  color: #666;
}

/* 联系信息部分 */
.contact-section {
  padding: 5rem 2rem;
  background-color: #f8f9fa;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 2.5rem;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 1rem;
}

.contact-card h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #007bff;
  border-radius: 3px;
}

.contact-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 0.8rem;
}

.contact-card a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Contact Page 特定样式 */
.contact-page {
  padding: 8rem 2rem 5rem;
  background-color: #f8f9fa;
}

.contact-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-page-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

.contact-form-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 3rem;
  margin-top: 3rem;
  transition: transform 0.3s ease;
}

.contact-form-card:hover {
  transform: translateY(-5px);
}

.contact-form-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: center;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: #007bff;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
  width: 100%;
}

.submit-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* About Us 页面样式 */
.about-section {
  padding: 0;
  background-color: var(--background-color);
  width: 100%;
}

.about-container {
  width: 100%;
}

/* 上部分样式 */
.about-header {
  position: relative;
  height: 400px;
  width: 100%;
  background-image: url('/static/company_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.about-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);  
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
  margin-left: 15%;
}

.header-content h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);  
}

.header-content h3 {
  font-size: 1.5rem;
  color: white;
  text-align: left;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);  
}

/* 下部分样式 */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background-color: white;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  margin-left: 15%;  /* 与标题对齐 */
  max-width: 70%;  /* 控制文本宽度 */
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Company Background 部分样式 */
.company-background-section {
  padding: 8rem 2rem 5rem;
  background-color: #f8f9fa;
}

.company-background-container {
  max-width: 1200px;
  margin: 0 auto;
}

.company-background-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-align: center;
}

.company-background-content {
  padding: 3rem 2rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.company-background-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-color);
}

.company-background-content p:last-child {
  margin-bottom: 0;
}

/* Services 页面样式 */
.services-page {
  padding: 8rem 2rem 5rem;
  background-color: #f8f9fa;
}

.service-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 3rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.15);
}

.service-card h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  position: relative;
  padding-bottom: 1rem;
}

.service-card h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #007bff;
  border-radius: 3px;
}

.service-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1.5rem;
}

.service-card ul {
  list-style-type: none;
  padding-left: 0;
  margin-top: 2rem;
}

.service-card li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
}

.service-card li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: #007bff;
}

.service-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Us 页面样式 */
.contact-page {
  padding: 8rem 2rem 5rem;
  background-color: #f8f9fa;
}

.contact-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: #007bff;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #0056b3;
}

/* Mission 部分样式 */
.mission-content {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.mission-content h2 {
  font-size: 2.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  text-align: left;
  margin-left: 15%;
}

.mission-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  margin-left: 15%;
  max-width: 70%;
}

.mission-content p:last-child {
  margin-bottom: 0;
}

/* 页脚样式 */
.footer {
  background-color: var(--background-color);
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
}