/* 广延科技-智能家居系列产品 */

:root {
  --primary-color: #6c63ff;
  --secondary-color: #4d44db;
  --accent-color: #ff6584;
  --light-color: #f8f9ff;
  --dark-color: #2d3748;
  --text-color: #4a5568;
  --success-color: #68d391;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.7;
}

header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  text-align: center;
  padding: 5rem 1rem 8rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: -3rem;
}

.logo {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

header p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 101, 132, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 101, 132, 0.6);
}

.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 2rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h2 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

section {
  padding: 5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
  position: relative;
  font-weight: 700;
}

.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  margin: 1rem auto;
  border-radius: 2px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.course-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.course-image {
  height: 160px;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.course-content {
  padding: 1.5rem;
}

.course-title {
  color: var(--dark-color);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.course-desc {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.enroll-btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.enroll-btn:hover {
  background: var(--secondary-color);
}

.about-content {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

textarea.form-input {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  width: 100%;
}

.submit-btn:hover {
  background: #ff4d6d;
  transform: translateY(-2px);
}

footer {
  background: var(--dark-color);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-color);
}

.copyright {
  opacity: 0.8;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  header {
    padding: 3rem 1rem 6rem;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .logo {
    font-size: 2rem;
  }

  header p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-content,
  .contact-form {
    padding: 2rem;
  }
}
