/* 
 * 糖果零钱助手官网样式
 * 主题：粉色系
 * 自适应设计
 */

/* 基础样式 */
:root {
  --primary-color: #FF6B9A; /* 主要粉色 */
  --primary-light: #FFD1DC; /* 浅粉色 */
  --primary-dark: #E84A7F; /* 深粉色 */
  --accent-color: #FF9E6B; /* 强调色（橙色） */
  --text-color: #333333;
  --text-light: #666666;
  --text-white: #FFFFFF;
  --bg-color: #FFFFFF;
  --bg-light: #FFF5F8; /* 浅粉背景 */
  --shadow: 0 5px 15px rgba(255, 107, 154, 0.2);
  --border-radius: 10px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-header p {
  font-size: 18px;
  color: var(--text-light);
  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: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: 0 4px 10px rgba(255, 107, 154, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 107, 154, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-3px);
}

.btn-service {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 10px 25px;
  font-size: 15px;
}

.btn-service:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-large {
  padding: 15px 40px;
  font-size: 18px;
}

/* 导航栏样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 50px;
}

.nav-menu ul {
  display: flex;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  padding: 10px 0;
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover, .nav-menu a.active {
  color: var(--primary-color);
}

.nav-menu a:hover:after, .nav-menu a.active:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* 首页横幅样式 */
.hero {
  padding: 180px 0 100px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../image/banner4.png');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 600px;
  color: var(--text-white);
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 18px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-image {
  width: 40%;
  animation: float 3s ease-in-out infinite;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(255, 107, 154, 0.3);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* 服务项目样式 */
.services {
  background-color: var(--bg-color);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 107, 154, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 107, 154, 0.1);
  border-radius: 50%;
  padding: 15px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-features {
  margin: 20px 0;
}

.feature {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  margin-right: 10px;
  font-size: 14px;
}

/* 产品特点样式 */
.features {
  background-color: var(--bg-light);
}

.features-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 107, 154, 0.25);
}

.feature-item:nth-child(even) {
  flex-direction: row-reverse;
}

.feature-icon {
  flex: 0 0 100px;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-content p {
  font-size: 16px;
  color: var(--text-light);
}

/* 使用方法样式 */
.howto {
  background-color: var(--bg-color);
}

.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  align-items: center;
  margin-bottom: 50px;
  position: relative;
}

.step-item:not(:last-child):after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 25px;
  width: 2px;
  height: 30px;
  background-color: var(--primary-light);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.step-content p {
  font-size: 16px;
  color: var(--text-light);
}

.step-image {
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-left: 20px;
  flex-shrink: 0;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-container {
  text-align: center;
  margin-top: 50px;
}

/* 常见问题样式 */
.faq {
  background-color: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.faq-toggle {
  font-size: 24px;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-item.active .faq-question {
  background-color: var(--primary-light);
}

.faq-item.active .faq-question h3 {
  color: var(--primary-dark);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 1000px;
}

.faq-answer p {
  font-size: 16px;
  color: var(--text-light);
}

/* 产品展示样式 */
.product-showcase {
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.showcase-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.showcase-item {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.showcase-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 107, 154, 0.3);
}

.showcase-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-item:hover img {
  transform: scale(1.05);
}

.showcase-caption {
  padding: 20px;
  background-color: var(--bg-color);
  position: relative;
}

.showcase-caption h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.showcase-caption p {
  font-size: 15px;
  color: var(--text-light);
}

/* 入口区域样式 */
.entry {
  background-color: var(--bg-color);
}

.entry-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.entry-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.entry-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 107, 154, 0.3);
}

.entry-image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  padding: 20px;
}

.entry-image img {
  max-height: 160px;
  margin: 0 auto;
}

.entry-content {
  padding: 30px;
}

.entry-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.entry-content p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
}

/* 页脚样式 */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #ccc;
  font-size: 14px;
}

.footer-links h3, .footer-contact h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-light);
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after, .footer-contact h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ccc;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.footer-contact p {
  color: #ccc;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: #999;
}

.copyright a {
  color: var(--primary-light);
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
  
  .section-header h2 {
    font-size: 30px;
  }
  
  .hero {
    padding: 150px 0 80px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero h2 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 40px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    width: 60%;
  }
  
  .feature-item, .feature-item:nth-child(even) {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-icon {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
  .header .container {
    height: 70px;
  }
  
  .showcase-container {
    grid-template-columns: 1fr;
  }
  
  .showcase-item {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .logo img {
    height: 40px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-color);
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    padding: 40px 0;
  }
  
  .nav-menu li {
    margin: 0;
    text-align: center;
  }
  
  .nav-menu a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
  }
  
  .section-header h2 {
    font-size: 26px;
  }
  
  .hero h1 {
    font-size: 30px;
  }
  
  .hero h2 {
    font-size: 24px;
  }
  
  .hero p {
    font-size: 15px;
  }
  
  .hero-image {
    width: 80%;
    margin: 0 auto;
  }
  
  .hero-image img {
    max-width: 100%;
    border-radius: 8px;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin: 0 0 20px 0;
  }
  
  .step-item:not(:last-child):after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .step-image {
    margin: 20px 0 0 0;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 24px;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 26px;
  }
  
  .hero h2 {
    font-size: 22px;
  }
  
  .hero p {
    font-size: 14px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .btn {
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .service-card, .entry-card {
    padding: 20px;
  }
  
  .service-icon, .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .service-card h3, .feature-content h3, .entry-content h3 {
    font-size: 20px;
  }
  
  .service-card p, .feature-content p, .entry-content p, .faq-answer p {
    font-size: 14px;
  }
  
  .faq-question h3 {
    font-size: 16px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo img {
    margin: 0 auto 15px;
  }
  
  .footer-links h3:after, .footer-contact h3:after {
    left: 50%;
    transform: translateX(-50%);
  }
}