/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 头部样式 */
header {
  background: linear-gradient(135deg, #2d5a39 0%, #3a7d44 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* 主要内容区域 */
main {
  margin-top: 80px;
}

/* Hero 区域 */
.hero {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 200px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  position: relative;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  position: relative;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-btn {
  display: inline-block;
  background-color: #81c784;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn:hover {
  background-color: #66bb6a;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(129,199,132,0.4);
}

/* 服务区块 */
.services {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2d5a39;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  margin: 1rem auto;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.service-card {
  background: #f8f9fa;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border-color: #4caf50;
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #2d5a39;
}

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

/* 关于我们区块 */
.about-preview {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e8 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #2d5a39;
}

.about-text p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #555;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #4caf50;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}

/* 联系区块 */
.contact-section {
  padding: 80px 0;
  background-color: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #2d5a39;
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  width: 40px;
}

.contact-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 12px;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4caf50;
}

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

.submit-btn {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76,175,80,0.4);
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, #2d5a39 0%, #3a7d44 100%);
  color: white;
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}

.footer-section h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  opacity: 0.8;
}

/* 页面标题 */
.page-header {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 内容区块 */
.content-section {
  padding: 60px 0;
}

.content-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.content-card h2 {
  color: #2d5a39;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content-card h3 {
  color: #3a7d44;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
}

.content-card p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #555;
}

.content-card ul {
  list-style: disc;
  padding-left: 2rem;
  margin: 1rem 0;
}

.content-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  color: #555;
}

/* 流程展示 */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.process-step {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e8 100%);
  border-radius: 12px;
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.process-step h4 {
  color: #2d5a39;
  margin-bottom: 0.5rem;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* 自助打印加盟业务样式 */
.self-print-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f0f9f4 0%, #e8f5e9 100%);
  position: relative;
  overflow: hidden;
}

.self-print-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%232d5a39" stroke-width="0.5" opacity="0.1"/></svg>');
  background-size: 100px 100px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

.self-print-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.self-print-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  background: white;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(45, 90, 57, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  animation: slideInLeft 0.6s ease forwards;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 80px;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(45, 90, 57, 0.2);
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

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

.feature-item h3 {
  color: #2d5a39;
  margin-bottom: 0;
  font-size: 1.1rem;
  flex-shrink: 0;
  min-width: 80px;
}

.feature-item p {
  color: #666;
  line-height: 1.5;
  font-size: 0.9rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.self-print-images {
  position: relative;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(45, 90, 57, 0.2);
}

.image-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d5a39 0%, #3a7d44 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  animation: slideUp 8s ease-in-out infinite;
}

.slide.active {
  opacity: 1;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 1.6s; }
.slide:nth-child(3) { animation-delay: 3.2s; }
.slide:nth-child(4) { animation-delay: 4.8s; }
.slide:nth-child(5) { animation-delay: 6.4s; }

@keyframes slideUp {
  0%, 100% {
    opacity: 0;
    transform: translateY(50px);
  }
  10%, 90% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.slide-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.slide-content h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.slide-content p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta-section {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  margin-top: 1rem;
  color: #666;
  font-size: 1.1rem;
}

/* 自助打印加盟业务响应式设计 */
@media (max-width: 768px) {
  .self-print-content {
    grid-template-columns: 1fr;
  }
  
  .self-print-images {
    height: 300px;
  }
  
  .slide-icon {
    font-size: 3rem;
  }
  
  .slide-content h4 {
    font-size: 1.4rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
}
