/* ========================================
   长沙云弈境科技有限公司 - 官网样式
   活力校园风
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #FF6B35;
  --orange-light: #FF8C5A;
  --orange-dark: #E55A2B;
  --blue: #00B4D8;
  --blue-light: #48CAE4;
  --blue-dark: #0096C7;
  --teal: #2EC4B6;
  --teal-light: #5EDCCD;
  --yellow: #FFD166;
  --pink: #F77FBE;
  --purple: #9B5DE5;
  --green: #06D6A0;

  --bg: #F8FAFE;
  --text: #2D3436;
  --text-light: #636E72;
  --white: #FFFFFF;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* --- 导航栏 --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  font-size: 1.6rem;
}

.logo-text {
  background: linear-gradient(135deg, var(--orange), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 6px 18px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 0 120px;
  background: linear-gradient(135deg, #E8F4FD 0%, #FFF5EE 30%, #E8F8F5 60%, #FFF0F5 100%);
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--orange);
  top: -100px;
  right: -50px;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--blue);
  bottom: -30px;
  left: 10%;
  animation: float 8s ease-in-out 1s infinite;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--teal);
  top: 30%;
  left: -50px;
  animation: float 7s ease-in-out 2s infinite;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: var(--yellow);
  top: 20%;
  right: 20%;
  animation: float 5s ease-in-out 0.5s infinite;
}

.shape-5 {
  width: 80px;
  height: 80px;
  background: var(--pink);
  bottom: 20%;
  right: 35%;
  animation: float 9s ease-in-out 3s infinite;
}

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

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(255,107,53,0.1);
  color: var(--orange);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text);
}

.highlight {
  background: linear-gradient(135deg, var(--orange), var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,107,53,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid #ddd;
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* 数据统计 */
.hero-stats {
  display: flex;
  gap: 40px;
}

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

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Hero 插画 */
.hero-image {
  flex: 0 0 400px;
}

.hero-illustration {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
}

.illust-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 30px rgba(255,107,53,0.3);
  animation: pulse 3s ease-in-out infinite;
}

.illust-main span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 4px;
}

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

.illust-card {
  position: absolute;
  padding: 10px 18px;
  background: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: floatCard 4s ease-in-out infinite;
}

.card-1 { top: 10px; right: 20px; animation-delay: 0s; }
.card-2 { bottom: 40px; left: 0; animation-delay: 1s; }
.card-3 { top: 120px; left: 20px; animation-delay: 2s; }

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

/* Wave divider */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 80px;
}

/* --- Section 通用 --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(0,180,216,0.08);
  color: var(--blue);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- 校园快递 --- */
.express {
  padding: 100px 0;
}

.express-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 80px;
}

.express-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  position: relative;
  border: 2px solid transparent;
}

.express-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.express-card.featured {
  border-color: var(--orange);
  background: linear-gradient(180deg, #FFF8F4 0%, var(--white) 30%);
}

.card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 20px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}

.express-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.express-card > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-features li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 4px;
}

/* 使用流程 */
.express-process {
  text-align: center;
}

.express-process h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 36px;
  color: var(--text);
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  width: 120px;
}

.step-number {
  display: none;
}

.step-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--blue-light), var(--teal-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0,180,216,0.2);
  transition: transform 0.3s;
}

.step:hover .step-icon {
  transform: scale(1.1) rotate(5deg);
}

.step p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--blue);
  font-weight: 700;
}

/* --- 其他校园生活服务 --- */
.services {
  padding: 100px 0;
  background: var(--white);
}

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

.service-item {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  background: var(--bg);
  transition: all 0.3s;
  cursor: default;
}

.service-item:hover {
  background: linear-gradient(135deg, #FFF5EE, #E8F4FD);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  font-size: 2.6rem;
  display: block;
  margin-bottom: 14px;
}

.service-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-item p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- 联系我们 --- */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg), #EEF4FF);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.contact-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- 页脚 --- */
.footer {
  background: #1A1D23;
  color: #B0B8C1;
  padding: 48px 0 28px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  margin-top: 6px;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: #B0B8C1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.icp a {
  color: #B0B8C1;
  text-decoration: none;
  transition: color 0.3s;
}

.icp a:hover {
  color: var(--white);
}

/* --- 回到顶部 --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255,107,53,0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(255,107,53,0.45);
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    flex: none;
    width: 100%;
  }

  .hero-illustration {
    width: 280px;
    height: 280px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .express-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: 12px 20px;
    border-radius: 12px;
  }

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

  .hero-desc {
    font-size: 0.95rem;
  }

  .express-cards {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .process-steps {
    gap: 8px;
  }

  .step-arrow {
    display: none;
  }

  .step {
    width: 80px;
  }

  .step-icon {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 1.4rem;
  }
}