﻿/* 专业步数修改平台 - 完整CSS代码 */
:root {
  --primary-color: #00C853;
  --primary-dark: #009624;
  --secondary-color: #00B0FF;
  --secondary-dark: #0086CC;
  --accent-color: #FFC107;
  --accent-dark: #FFA000;
  --dark-color: #263238;
  --gray-color: #607D8B;
  --light-color: #F5F7FA;
  --white: #FFFFFF;
  --success-color: #4CAF50;
  --warning-color: #FF9800;
  --error-color: #F44336;
}

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', 'Noto Sans SC', sans-serif;
  color: var(--dark-color);
  background-color: var(--light-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.primary-btn {
  background-color: var(--primary-color);
  color: var(--white);
}

.primary-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 200, 83, 0.3);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.highlight {
  color: var(--accent-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

/* 导航栏样式 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
}

.logo i {
  margin-right: 10px;
  color: var(--primary-color);
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  margin: 0 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(0, 200, 83, 0.1);
}

.cta-btn {
  margin-left: 20px;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* 英雄区域样式 */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.1), rgba(0, 176, 255, 0.1));
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding-right: 40px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  margin-top: 50px;
}

.step-counter {
  background-color: var(--white);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.counter-label {
  font-size: 1.2rem;
  color: var(--gray-color);
}

.platform-icons {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
}

.platform-icon {
  width: 60px;
  height: 60px;
  background-color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.platform-icon:hover {
  transform: translateY(-5px);
  color: var(--primary-color);
}

/* 核心功能样式 */
.features {
  padding: 100px 0;
  background-color: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--light-color);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: var(--white);
  font-size: 2rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--gray-color);
  font-size: 1rem;
}

/* 平台优势样式 */
.advantages {
  padding: 100px 0;
  background-color: var(--light-color);
}

.advantages-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

.advantages-image {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.feature-img {
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.stats-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--white);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 15px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-color);
}

.advantages-list {
  flex: 1;
  min-width: 300px;
}

.advantage-item {
  display: flex;
  margin-bottom: 30px;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 200, 83, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.advantage-text h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.advantage-text p {
  color: var(--gray-color);
}

/* 使用场景样式 */
.use-cases {
  padding: 100px 0;
  background-color: var(--white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.case-card {
  background-color: var(--light-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 200, 83, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.case-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.case-card p {
  color: var(--gray-color);
}

/* 联系我们样式 */
.contact {
  padding: 100px 0;
  background-color: var(--light-color);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: var(--white);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.contact-form p {
  color: var(--gray-color);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.info-card {
  background-color: var(--white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.info-card p {
  color: var(--gray-color);
  margin-bottom: 30px;
}

.qr-codes {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.qr-code {
  text-align: center;
}

.qr-code img {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
}

.qr-code p {
  font-size: 0.9rem;
  color: var(--gray-color);
}

/* 常见问题样式 */
.faq {
  padding: 100px 0;
  background-color: var(--white);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
  background-color: var(--light-color);
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(0, 200, 83, 0.1);
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.faq-question i {
  transition: all 0.3s ease;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: var(--white);
}

.faq-answer p {
  padding: 20px 0;
  color: var(--gray-color);
}

.faq-item.active .faq-question {
  background-color: rgba(0, 200, 83, 0.1);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* 页脚样式 */
.footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 80px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-about .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary-color);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 15px;
  background-color: rgba(0, 200, 83, 0.2);
  border-radius: 50px;
  color: var(--primary-color);
  font-size: 0.8rem;
}

.security-badge i {
  margin-right: 5px;
}

/* /* 返回顶部按钮 / */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* / 模态框样式 / */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: white;
  border-radius: 15px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-color);
}

.modal-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.modal h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.modal p {
  color: var(--gray-color);
  margin-bottom: 10px;
}

.modal-close-btn {
  margin-top: 20px;
}

/* 响应式设计  */
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: all 0.3s ease;
  }

  .nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }

  .nav ul {
    flex-direction: column;
  }

  .nav-link {
    margin: 10px 0;
    padding: 12px 20px;
    display: block;
  }

  .mobile-menu-btn {
    display: block;
  }

  .cta-btn {
    display: none;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .advantages-content {
    flex-direction: column;
  }

  .advantages-image {
    margin-bottom: 50px;
  }

  .stats-card {
    position: static;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .contact-content {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .secondary-btn {
    margin-left: 0;
    margin-top: 1rem;
  }

  .feature-card,
  .case-card {
    padding: 20px;
  }

  .modal-content {
    padding: 30px 20px;
  }
}