/* 学生任务打卡APP 网站主样式 */

/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

a {
  text-decoration: none;
  color: #4a6cf7;
  transition: color 0.3s;
}

a:hover {
  color: #2a4bd7;
}

ul, ol {
  list-style: none;
}

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: 8px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4a6cf7 0%, #00f2fe 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3a5ce7 0%, #00e2ee 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(74, 108, 247, 0.2);
}

.btn-secondary {
  background-color: #fff;
  color: #4a6cf7;
  border: 1px solid #4a6cf7;
}

.btn-secondary:hover {
  background-color: #f0f2ff;
  color: #3a5ce7;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 18px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-download i {
  font-size: 20px;
}

/* 头部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #333;
}

.nav ul {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  position: relative;
}

.nav-link:hover {
  color: #4a6cf7;
}

.nav-link.active {
  color: #4a6cf7;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #4a6cf7;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
}

/* 英雄区域 */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f0f2ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
  max-width: 80%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 特点区域 */
.features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

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

.feature-icon {
  margin-bottom: 20px;
  font-size: 50px;
  color: #4a6cf7;
}

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

.feature-text {
  color: #666;
  font-size: 16px;
}

/* 用户场景区域 */
.use-cases {
  padding: 80px 0;
  background-color: #f0f2ff;
}

.role-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.role-tab {
  padding: 12px 24px;
  margin: 0 10px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  background-color: #fff;
  color: #333;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
}

.role-tab.active {
  background-color: #4a6cf7;
  color: #fff;
  border-color: #4a6cf7;
}

.role-content {
  display: none;
}

.role-content.active {
  display: block;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.case-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-content {
  padding: 20px;
}

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

.case-text {
  color: #666;
  font-size: 16px;
}

/* 应用展示区域 */
.app-showcase {
  padding: 80px 0;
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.showcase-content {
  padding-right: 20px;
}

.showcase-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
}

.showcase-text {
  color: #666;
  font-size: 16px;
  margin-bottom: 30px;
}

.showcase-features {
  margin-bottom: 30px;
}

.showcase-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.showcase-feature i {
  color: #4a6cf7;
  font-size: 20px;
  margin-right: 10px;
  margin-top: 3px;
}

.showcase-feature-text {
  color: #333;
}

.showcase-images {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  background-color: #000;
  border-radius: 40px;
  padding: 12px;
  width: 280px;
  height: 560px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
}

.phone-frame.parent {
  transform: rotate(-5deg) translateX(30px);
  z-index: 1;
}

.phone-frame.student {
  transform: rotate(5deg) translateX(-30px);
  z-index: 2;
}

/* 下载区域 */
.download {
  padding: 80px 0;
  background: linear-gradient(135deg, #4a6cf7 0%, #00f2fe 100%);
  color: #fff;
  text-align: center;
}

.download-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.download-text {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 18px;
  opacity: 0.9;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.download-btn {
  background-color: #fff;
  color: #4a6cf7;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.download-btn i {
  font-size: 24px;
}

.qrcode-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.qrcode-item {
  text-align: center;
}

.qrcode {
  background-color: #fff;
  padding: 15px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.qrcode img {
  width: 120px;
  height: 120px;
}

.qrcode-text {
  font-size: 16px;
  opacity: 0.9;
}

/* 页脚 */
.footer {
  background-color: #fff;
  padding: 60px 0 30px;
  color: #333;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo-section .logo {
  margin-bottom: 20px;
}

.footer-about {
  color: #666;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: #333;
  font-size: 20px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #4a6cf7;
}

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

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

.footer-links a {
  color: #666;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #4a6cf7;
}

.footer-divider {
  height: 1px;
  background-color: #eee;
  margin-bottom: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-size: 14px;
}

/* 滚动到顶部按钮 */
.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  background-color: #4a6cf7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 100;
}

.scroll-to-top.show {
  opacity: 1;
}

.scroll-to-top:hover {
  background-color: #3a5ce7;
  transform: translateY(-3px);
} 