/* 
* 糖心官网样式表
* 主要样式定义
*/

/* 基础样式重置与通用设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: #e94057;
  transition: all 0.3s ease;
}

a:hover {
  color: #c81432;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: #f9f9f9;
}

.img-responsive {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* 标题样式 */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title span {
  color: #e94057;
}

.section-description {
  font-size: 18px;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #e94057, #f27121);
  color: white;
  box-shadow: 0 4px 15px rgba(233, 64, 87, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d63649, #e35e0a);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 64, 87, 0.3);
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: #e94057;
  border: 2px solid #e94057;
}

.btn-secondary:hover {
  background-color: #e94057;
  color: white;
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, #4a90e2, #1976d2);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
  width: 100%;
  padding: 15px 30px;
  margin-top: 20px;
}

.btn-download:hover {
  background: linear-gradient(135deg, #2d7bd2, #0c5aa3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
  color: white;
}

/* 头部样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  display: flex;
  align-items: center;
  color: #333;
}

.logo h1 {
  font-size: 28px;
  font-weight: 700;
}

.logo span {
  color: #e94057;
}

.navigation {
  display: flex;
}

.nav-list {
  display: flex;
}

.nav-item {
  margin: 0 15px;
}

.nav-link {
  color: #333;
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

.nav-link:before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #e94057;
  transition: all 0.3s ease;
}

.nav-link:hover:before,
.nav-link.active:before {
  width: 100%;
}

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

.nav-toggle {
  display: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* 首页横幅 */
.hero-section {
  position: relative;
  background-color: #f9f9f9;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 40px;
}

.headline {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #333;
}

.sub-headline {
  font-size: 24px;
  font-weight: 600;
  color: #e94057;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* 关于我们 */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.about-text p {
  margin-bottom: 20px;
  color: #666;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 功能特点 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
}

.feature-description {
  text-align: center;
  color: #666;
}

/* 下载区域 */
.download-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.download-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.device-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
}

.device-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.device-description {
  margin-bottom: 20px;
  color: #666;
}

/* 用户评价 */
.testimonials-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  flex: 1;
  min-width: 300px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-text {
  font-style: italic;
  color: #666;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.author-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.author-title {
  font-size: 14px;
  color: #888;
}

/* 常见问题 */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.faq-toggle {
  font-size: 24px;
  color: #e94057;
  transition: all 0.3s ease;
}

.faq-question.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question.active + .faq-answer {
  padding: 10px 30px 20px;
  max-height: 1000px;
}

.faq-answer p {
  color: #666;
  line-height: 1.8;
}

/* 联系我们 */
.contact-container {
  display: flex;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 20px;
  overflow: hidden;
}

.contact-details h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.contact-details p {
  color: #666;
}

.contact-form {
  flex: 1;
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e94057;
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 64, 87, 0.1);
}

/* 底部区域 */
.footer {
  background-color: #222;
  color: #fff;
  padding: 80px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-logo h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-logo span {
  color: #e94057;
}

.footer-logo p {
  font-size: 16px;
  color: #aaa;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-links-column h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links-column ul li {
  margin-bottom: 10px;
}

.footer-links-column ul li a {
  color: #aaa;
  transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
  color: #e94057;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #777;
  font-size: 14px;
  margin-bottom: 5px;
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 1.5s infinite;
}