:root {
    --primary-color: #4a9f9d;
    --secondary-color: #f6b352;
    --accent-color: #f57e7e;
    --dark-color: #2c3e50;
    --light-color: #f5f7fa;
    --text-color: #333;
    --text-light: #777;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #f9fbfd;
    line-height: 1.6;
    overflow-x: hidden;
}
.brain-animation {
    position: relative;
    width: 120px;
    height: 100px;
    margin-bottom: 20px;
}
/* 基础按钮样式 */
.test-btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* 按钮内部光晕效果 */
.test-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: -1;
}

/* 悬浮效果 */
.test-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ff5252 0%, #ff7676 100%);
}

.test-btn:hover::before {
  transform: scale(1);
  opacity: 1;
}

/* 点击效果 */
.test-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* 针对不同年龄段的按钮颜色变体 */
.test-card:nth-child(1) .test-btn { /* 6-12岁卡片按钮 */
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.test-card:nth-child(2) .test-btn { /* 13-18岁卡片按钮 */
  background: linear-gradient(135deg, #3a86ff 0%, #5390d9 100%);
  box-shadow: 0 4px 12px rgba(72, 191, 227, 0.3);
}

.test-card:nth-child(3) .test-btn:hover {
  background: linear-gradient(135deg, #48bfe3 0%, #52cf80 100%);
  box-shadow: 0 6px 16px rgba(72, 191, 227, 0.5);
}

/* 按钮内文字样式 */
.test-btn span {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.test-btn:hover span {
  transform: translateY(-1px);
}

/* 图片悬停效果（可选） */
.test-card img {
  transition: transform 0.3s ease;
  border-radius: 8px; /* 圆角图片 */
}

.test-card:hover img {
  transform: scale(1.03); /* 轻微放大 */
}
.brain-lobe {
    position: absolute;
    width: 50px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50px 50px 20px 20px;
    animation: pulse 2s infinite ease-in-out;
}

.brain-lobe.left {
    left: 0;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.brain-lobe.right {
    right: 0;
    transform: rotate(15deg);
    animation-delay: 0.5s;
}

.brain-stem {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 0 0 10px 10px;
}

.loader p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--dark-color);
    animation: fadeInOut 2s infinite;
}


.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 159, 157, 0.3);
}

.primary-btn:hover {
    background-color: #3d8886;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 159, 157, 0.4);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(246, 179, 82, 0.3);
}

.secondary-btn:hover {
    background-color: #e0a046;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(246, 179, 82, 0.4);
}

.login-btn {
    background-color: transparent;
    color: var(--dark-color);
    margin-right: 10px;
}

.login-btn:hover {
    color: var(--primary-color);
}

.register-btn {
    background-color: var(--dark-color);
    color: white;
}

.register-btn:hover {
    background-color: #1a252f;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}


.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ai-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #5bc0be);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(74, 159, 157, 0.4);
    transition: var(--transition);
    animation: float 3s ease-in-out infinite;
}

.ai-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(74, 159, 157, 0.5);
}

.ai-bubble {
    background-color: white;
    padding: 12px 20px;
    border-radius: 25px;
    margin-right: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.ai-assistant:hover .ai-bubble {
    opacity: 1;
    transform: translateX(0);
    max-width: 300px;
}




.emergency-btn {
    position: fixed;
    bottom: 110px;
    right: 30px;
    z-index: 999;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(245, 126, 126, 0.4);
    transition: var(--transition);
}

.emergency-btn:hover {
    background-color: #e06b6b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 126, 126, 0.5);
}

.emergency-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 150px 5% 100px;
    background: linear-gradient(135deg, #f9fbfd 0%, #e6f0f9 100%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--dark-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 600px;
}

.main-hero-img {
    width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
}

.element img {
    width: 40px;
    height: 40px;
}

.emotion {
    top: 10%;
    left: 10%;
    background-color: #f8e5e5;
    animation-delay: 0s;
}

.brain {
    top: 70%;
    left: 15%;
    background-color: #e5f0f8;
    animation-delay: 0.5s;
}

.heart {
    top: 40%;
    right: 10%;
    background-color: #f8e5f0;
    animation-delay: 1s;
}

.age-selection {
    padding: 80px 5%;
    text-align: center;
}

.age-selection h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.age-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.age-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px 25px;
    width: 220px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    cursor: pointer;
}

.age-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #5bc0be);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.age-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.age-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.age-card:hover .card-decoration {
    height: 10px;
}

.teacher-card .card-icon {
    background: linear-gradient(135deg, var(--secondary-color), #f9a352);
}


.features {
    padding: 80px 5%;
    background-color: #f0f5fa;
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.feature-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-btn {
    padding: 12px 25px;
    background-color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.tab-btn:hover {
    background-color: var(--light-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 159, 157, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.feature-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.feature-text ul {
    margin-bottom: 30px;
    list-style: none;
}

.feature-text li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-text li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.floating-stars {
    position: absolute;
    top: -20px;
    right: -20px;
}

.star {
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    position: absolute;
    animation: twinkle 2s infinite alternate;
}

.star:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 20px;
    left: 30px;
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    top: -10px;
    left: 40px;
    animation-delay: 1s;
}


.age-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.age-card:hover::before {
  opacity: 0.1;
}


body {
  color: #4a4a4a; 
}

.teacher-card h3,
.teacher-card p {
  color: #2c3e50; 
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.video-caption {
  font-family: var(--font-main);
  font-size: 18px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  padding: 8px 12px;
  background: rgba(0,0,0,0.7);
  border-radius: 4px;
}

@keyframes cognitive-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.loader p {
  animation: cognitive-pulse 1.5s ease-in-out infinite;
}


:root {
  --primary-green: #4a9f9d; 
  --secondary-orange: #f6b352; 
}

.nav-links a.active {
  color: var(--primary-green);
}

.vr-environment {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform: translateZ(0);
}

.vr-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(74, 159, 157, 0.3) 0%,
    rgba(246, 179, 82, 0.2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-card[data-age="6-9"] .card-icon {
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.psychology-dashboard {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--primary-green);
}


.emergency-btn {
  animation: emergency-pulse 1.5s ease infinite;
}

@keyframes emergency-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245,126,126,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(245,126,126,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,126,126,0); }
}


h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  line-height: 1.8;
  max-width: 65ch;
}

.age-selection {
  padding: 4rem 0;
}

.age-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.age-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  position: relative;
  transition: transform 0.3s;
}

.age-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}


.feature-tabs {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.tab-btn {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 12px 30px;
  border-radius: 30px;
  transition: all 0.3s;
}

.tab-btn.active {
  background: var(--primary-blue);
  color: white;
}


.tips-carousel {
  padding: 4rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.tip-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  min-width: 300px;
  text-align: center;
}

.tip-card i {
  font-size: 2rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
}


.test-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.test-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.test-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary-orange);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.footer {
  background: var(--primary-blue);
  color: white;
  margin-top: 4rem;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
}

.tips-carousel {
    padding: 4rem 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 1rem 0;
    scroll-behavior: smooth;
}

.carousel-slide {
    flex: 0 0 auto;
}

.tip-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    min-width: 300px;
    text-align: center;
    box-shadow: var(--box-shadow);
}

.tip-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tip-card p {
    font-size: 1rem;
    color: var(--text-light);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.carousel-prev,
.carousel-next {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #3d8886;
}

.footer {
    background: var(--primary-color);
    color: white;
    margin-top: 4rem;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 0 5%;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-contact p i {
    margin-right: 0.5rem;
}

.footer-contact .contact-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.footer-contact .contact-btn:hover {
    background-color: #e0a046;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}
 