/* ========================================
   讲师罗云介绍 - 个人介绍网站
   风格：简洁大气，参考 Claude 官网
   配色：暖白底 + 深灰文字 + 珊瑚橙点缀
   ======================================== */

/* 基础变量 */
:root {
  --color-bg: #FAFAF8;
  --color-bg-alt: #F3F2EE;
  --color-bg-card: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6B6B;
  --color-text-light: #999999;
  --color-accent: #D4724E;
  --color-accent-hover: #C0623E;
  --color-accent-light: rgba(212, 114, 78, 0.08);
  --color-border: #E8E6E1;
  --color-border-light: #F0EEE9;
  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--transition);
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  background: var(--color-text) !important;
  color: var(--color-bg) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

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

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: -200px;
  right: -300px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 560px;
}

.hero-photo {
  flex-shrink: 0;
  position: relative;
}

.hero-photo-frame {
  width: 320px;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  border: 4px solid rgba(255,255,255,0.8);
  position: relative;
  background: var(--color-bg-alt);
}

.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  pointer-events: none;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-bg-alt);
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.highlight {
  color: var(--color-accent);
  position: relative;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
}

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

/* ========================================
   客户名录滚动墙
   ======================================== */
.client-marquee-wrapper {
  margin-top: 64px;
  width: 100%;
}

.client-marquee-label {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.client-marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.client-marquee-track {
  display: flex;
  gap: 24px;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.client-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.client-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 120px;
}

.client-logo-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.04);
  padding: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.client-logo-card:hover .client-logo-circle {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.client-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-logo-name {
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  white-space: nowrap;
  font-weight: 500;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-family);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 114, 78, 0.3);
}

.btn-secondary {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-border);
}

/* ========================================
   Section 通用
   ======================================== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
}

/* ========================================
   关于我
   ======================================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}

.about-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========================================
   服务客户
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}

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

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -1px;
  line-height: 1.2;
}

.stat-suffix {
  font-size: 16px;
  font-weight: 500;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}

.stat-detail {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.achievements-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achieve-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--color-text-secondary);
}

.achieve-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ========================================
   授课方向
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px;
  transition: all var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-border);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.service-card:hover .service-num {
  color: var(--color-accent-light);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========================================
   社群
   ======================================== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.community-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  cursor: default;
}

.community-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.community-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.community-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ========================================
   授课瞬间 - 幻灯片
   ======================================== */
.slideshow {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.slide-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 7s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slide-btn:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.05);
}

.slide-prev { left: 16px; }
.slide-next { right: 16px; }

.slide-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.4s ease;
  border: none;
  padding: 0;
}

.slide-dot.active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

.slide-counter {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  font-weight: 500;
}

/* ========================================
   联系我
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
}

.qrcode-wrapper {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
}

.qrcode-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qrcode-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ========================================
   页脚
   ======================================== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-logo {
  font-size: 18px;
  font-weight: 700;
}

.footer-brand p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 4px;
}

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

.footer-links a {
  font-size: 13px;
  color: var(--color-text-light);
  transition: color var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-text-light);
}

/* ========================================
   动画
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-layout {
    gap: 40px;
  }

  .hero-photo-frame {
    width: 240px;
    height: 300px;
    border-radius: 20px;
  }

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

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

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

  .slideshow {
    border-radius: 16px;
  }

  .slide-btn {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-layout {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
  }

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

  .hero-photo-frame {
    width: 200px;
    height: 250px;
    border-radius: 18px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 30px;
  }

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

  .slide-btn {
    width: 34px;
    height: 34px;
  }

  .slide-prev { left: 10px; }
  .slide-next { right: 10px; }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 240px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .client-logo-card {
    width: 100px;
  }

  .client-logo-circle {
    width: 54px;
    height: 54px;
    padding: 8px;
  }
}
