/* 字体导入 - 添加缓存控制参数 */
@import url('https://cdn.jsdelivr.net/npm/@fontsource/misans@5.0.0/index.css?v=1.0.0');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/misans@5.0.0/300.css?v=1.0.0');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/misans@5.0.0/400.css?v=1.0.0');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/misans@5.0.0/500.css?v=1.0.0');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/misans@5.0.0/600.css?v=1.0.0');
@import url('https://cdn.jsdelivr.net/npm/@fontsource/misans@5.0.0/700.css?v=1.0.0');

/* 缓存控制 - 确保资源正确加载 */
* {
    /* 防止图片缓存问题 */
    image-rendering: auto;
}

img {
    /* 确保图片重新加载时正确显示 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* 全局样式*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* 移除移动端触屏点击时的蓝色半透明选中效果 */
    -webkit-tap-highlight-color: transparent;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'MiSans', 'Mi Sans', sans-serif;
    background-color: #F7F9FC;
    color: #212529;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

:root {
    --header-height: 0px; /* Default value, will be updated by JS */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3 {
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5em, 5vw, 3.5em);
    text-align: center;
    margin-bottom: 0.5em;
    color: #0f172a;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 700;
}

h2 {
    font-size: clamp(2em, 4vw, 2.5em);
    text-align: left;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    position: relative;
    font-weight: 600;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
}

a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

/* 高亮文字样式 */
.highlight-text {
    font-weight: 700;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 50%, #ffa726 70%, #ff6b6b 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 20s ease-in-out infinite;
    position: relative;
}

/* 流光动效关键帧 */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    50% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}



/* 布局 */
main {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
}

/* 设置内容区域宽度，与header对齐 */
.content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    margin-bottom: 20px;
}

#basic-tests, #advanced-tests, #features {
    margin-top: 50px;
}

#about {
    margin-top: 50px;
}

/* 英雄区域保持原有间距 */
.hero-section {
    margin-bottom: 20px;
}



@media (max-width: 768px) {
    main {
        padding: 0;
        margin: 0;
    }
    
    section {
        margin-bottom: 20px;
    }
    
    /* 英雄区域在移动端也保持较大间距 */
    .hero-section {
        margin-bottom: 15px;
    }
    
    header {
        padding: 15px 0;
    }
}

/* 导航栏 */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
}

header > div {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
}

.logo {
    font-size: clamp(1.5em, 3vw, 1.8em);
    font-weight: 600;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    letter-spacing: -0.02em;
    text-decoration: none;
}



.logo-icon {
    height: 1em;
    margin-right: 12px;
    object-fit: contain;
    background: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    justify-content: flex-end;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    text-align: center;
    white-space: nowrap;
}



/* Start按钮样式 */
.start-button {
    background: linear-gradient(90deg, #FF9966, #FF5E62);
    color: #ffffff;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(255, 94, 98, 0.3);
}



@media (max-width: 768px) {
    header > div {
        flex-wrap: wrap;
    }
    
    .header-left {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
        gap: 10px;
    }
    
    nav {
        justify-content: flex-end;
        gap: 6px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 0.95em;
    }
    
    .logo {
        font-size: 1.4em;
    }
    
    .start-button {
        padding: 6px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header > div {
        flex-direction: column;
        height: auto;
        gap: 8px;
        padding: 8px 20px;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
        margin-bottom: 0px;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    nav {
        justify-content: flex-end;
        gap: 4px;
        width: 100%;
    }
    
    nav a {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .start-button {
        padding: 5px 12px;
        font-size: 0.8em;
        margin-left: 8px;
    }
}

/* 卡片样式 */
.card {
    background: #ffffff;
    padding: 32px;
    margin-bottom: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #E9ECEF;
    position: relative;
    overflow: hidden;
    opacity: 1;
}

.card.in-view {
    opacity: 1;
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
        margin-bottom: 15px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
        margin-bottom: 10px;
    }
}

/* 按钮样式 */
.button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 50%, #ffeb3b 100%);
    color: #ffffff;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    text-transform: none;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    color: #ffffff;
    filter: brightness(1.1);
}

.button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    filter: brightness(0.95);
}

@media (max-width: 768px) {
    .button {
        padding: 12px 24px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .button {
        padding: 10px 20px;
        font-size: 0.85em;
        width: 100%;
        text-align: center;
    }
}

/* 英雄区域轮播样式 */
.hero-section {
    width: 100vw;
    height: calc(100vh - var(--header-height, 60px));
    min-height: calc(500px - var(--header-height, 60px));
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height, 60px);
    margin-bottom: 50px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    top: 0;
}

.hero-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
    text-align: center;
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.prev-btn {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.next-btn {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.prev-btn, .next-btn {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn-icon {
    width: 24px;
    height: 24px;
    fill: white;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .hero-section {
        position: relative;
        padding-top: 0;
        height: calc(100vh - var(--header-height, 60px));
        min-height: calc(400px - var(--header-height, 60px));
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
    
    /* 隐藏移动端的左右按钮 */
    .prev-btn, .next-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        position: relative;
        padding-top: 0;
        height: calc(100vh - var(--header-height, 60px));
        min-height: calc(300px - var(--header-height, 60px));
        margin-top: calc(var(--header-height, 60px) - 20px);
    }
    
    header {
        padding: 12px 0;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    /* 确保小屏幕设备也隐藏左右按钮 */
    .prev-btn, .next-btn {
        display: none;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        margin: 0 5px;
    }
}






/* 大脑区域动画 */
.brain-region {
    cursor: pointer;
    transition: all 0.3s ease;
}

.brain-region:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

.brain-region.frontal {
    animation-delay: 0s;
}

.brain-region.hippocampus {
    animation-delay: 1s;
}



/* 神经连接动画 */
.neural-connections line {
    stroke-dasharray: 5, 5;
}



/* 神经元动画 */
.neuron {
}

.neuron:nth-child(1) { animation-delay: 0s; }
.neuron:nth-child(2) { animation-delay: 0.4s; }
.neuron:nth-child(3) { animation-delay: 0.8s; }
.neuron:nth-child(4) { animation-delay: 1.2s; }
.neuron:nth-child(5) { animation-delay: 1.6s; }





/* 大脑区域卡片滚动样式 */
.brain-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.brain-cards-main {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.brain-cards-wrapper {
    overflow: hidden;
    border-radius: 16px;
    padding: 10px;
    width: 600px;
}

.brain-cards-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 0;
}

.brain-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.brain-card:hover {
    transform: translateY(-5px);
}

.brain-card.active {
    transform: translateY(-3px);
}

.brain-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.brain-card-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.brain-card-title {
    margin: 0;
    font-size: 1.1em;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.2;
}

.brain-card-subtitle {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #3b82f6;
    font-weight: 500;
}

.brain-card-description {
    margin: 0;
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.4;
    flex: 1;
}

.nav-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #3b82f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.nav-button:active {
    transform: scale(0.95);
}

.nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-button:disabled:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    transform: none;
}

/* 圆点指示器样式 */
.dots-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.3);
    border: 1px solid #ffffff;
}

.dot:hover {
    background: rgba(59, 130, 246, 0.7);
    transform: scale(1.2);
    border: 1px solid #ffffff;
}

@media (max-width: 768px) {
}

@media (max-width: 480px) {
    .brain-svg-container {
        max-width: 250px;
    }
    
    .brain-cards-container {
        gap: 12px;
    }
    
    .brain-cards-wrapper {
        width: 320px;
    }
    
    .brain-card {
        flex: 0 0 200px;
        padding: 12px;
        height: 120px;
    }
    
    .brain-card-title {
        font-size: 0.9em;
    }
    
    .brain-card-subtitle {
        font-size: 0.8em;
    }
    
    .brain-card-description {
        font-size: 0.75em;
    }
    
    .nav-button {
        width: 32px;
        height: 32px;
    }
    
    .dot {
        width: 5px;
        height: 5px;
    }
    
    .dots-indicator {
        gap: 6px;
    }
}

/* Stats Section */
.stats-section {
    margin-bottom: 20px;
    padding: 0;
    background: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: #ffffff;
    border: 1px solid #E9ECEF;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 25%, #ffeb3b 50%, #ffb366 75%, #ffc299 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: #52575C;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.stat-label sup {
    font-size: 0.6em;
    font-weight: 500;
    color: #9ca3af;
    position: absolute;
    top: -0.5em;
    margin-left: 2px;
}

/* Test Grid */
.test-grid + section {
    margin-top: 0;
}

#advanced-tests {
    margin-bottom: 20px;
}

/* 基础认知能力和高阶认知能力部分的总介绍样式 */
#basic-tests > .card,
#advanced-tests > .card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#basic-tests > .card > p,
#advanced-tests > .card > p {
    font-weight: 400;
    font-size: clamp(1.3em, 3vw, 1.4em);
    color: #666666;
    line-height: 1.5;
    margin: 0;
}
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.test-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 0;
}

.test-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: clamp(1.3em, 3vw, 1.4em);
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 25%, #ffeb3b 50%, #ffb366 75%, #ffc299 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.test-card p {
    flex-grow: 1;
    color: #666666;
    font-size: clamp(0.95em, 2vw, 1.02em);
    margin-bottom: 8px;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.test-card p.description {
    margin-bottom: 0 !important;
}

.test-card .button {
    align-self: flex-start;
    margin-top: auto;
}

/* Features Section */
.features-section {
    margin-bottom: 20px;
    padding: 0px 0;
    background: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 0px;
}

.feature-card {
    background: #F7F9FC;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    margin-bottom: 30px;
    color: #2962FF;
    display: flex;
    justify-content: center;
}

.feature-icon-img {
    width: 56px;
    height: 56px;
    fill: #2962FF;
}

.feature-card h3 {
    font-size: 1.6em;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1.05em;
    color: #52575C;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 2.2em;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .test-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .test-card {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .test-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .test-card {
        min-height: 180px;
    }
}

/* About Cards Grid */
.about-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .about-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.about-card {
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 100%);
    border-radius: 20px;
    padding: 2px;
    margin-bottom: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #ffffff;
    border-radius: 18px;
    z-index: 1;
}

.about-card-content {
    padding: 32px 24px;
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 18px;
}

.about-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    margin-top: 0;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-align: center; /* 标题居中对齐 */
}

.about-card p {
    color: #64748b;
    font-size: 1.05em;
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0em;
}

@media (max-width: 768px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 30px;
    }
    
    .about-card-content {
        padding: 16px 12px;
    }
    
    .about-card h3 {
        font-size: 1.3em;
        margin-bottom: 16px;
    }
    
    .about-card p {
        font-size: 1em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 24px;
    }
    
    .about-card-content {
        padding: 28px 16px; /* 移动设备左右边距 */
    }
    
    .about-card h3 {
        font-size: 1.2em;
        margin-bottom: 14px;
    }
    
    .about-card p {
        font-size: 0.95em;
        line-height: 1.6;
    }
}

/* Footer */
footer {
    padding: 30px 20px;
    margin-top: 40px;
    color: #52575C;
    font-size: 0.9em;
    background: #F7F9FC;
    border-top: 1px solid #E9ECEF;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: none;
    text-align: center;
}

.filing-info {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    justify-content: center;

}

.police-filing {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.filing-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

footer p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
}

footer a {
    color: #52575C;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
        margin-top: 40px;
        font-size: 0.9em;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .filing-info {
        border-left: none;
        padding-left: 0;
    }
    
    .filing-info {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .police-filing {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 20px 10px;
        font-size: 0.8em;
    }
}

/* 额外的响应式优化 */
@media (max-width: 320px) {
    .test-card h3 {
        font-size: 1.3em;
    }
    
    .test-card p {
        font-size: 0.95em;
    }
}

/* 彩虹渐变动画 */
@keyframes rainbow-flow {
    to {
        background-position: 200% center;
    }
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 改善触摸设备体验 */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .button:hover {
        transform: none;
    }
    
    nav a:hover {
        transform: none;
    }
}




@media (max-width: 480px) {
    header > div {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    
    .header-left {
        width: 100%;
        justify-content: center;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    nav {
        justify-content: flex-end;
        gap: 4px;
        width: 100%;
    }
    
    nav a {
        font-size: 0.8em;
        padding: 5px 8px;
    }
    
    .start-button {
        padding: 5px 12px;
        font-size: 0.8em;
        margin-left: 8px;
    }
}
.test-card .description {
    font-weight: 500;
    color: #4a5568; /* A slightly lighter shade for the description */
    margin-bottom: 0;
    text-shadow: none;
    box-shadow: none;
}

.test-card .details {
    margin-top: 15px;
}

.test-card .details p {
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #2d3748; /* Darker text for readability */
}

.test-card .details p:first-child {
    border-left: 3px solid #ff6b6b; /* Red border for "在生活中" */
    padding-left: 15px;
    margin-bottom: 12px;
}

.test-card .details p:last-child {
    border-left: 3px solid #ffa726; /* Light orange border for "在学习中" */
    padding-left: 15px;
    margin-bottom: 0;
}

.test-card .details strong {
    color: #1e293b; /* Emphasize the context (life/study) */
    margin-right: 5px;
}

/* Stats Section */
.stats-section {
    margin-bottom: 20px;
    padding: 0;
    background: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: #ffffff;
    border: 1px solid #E9ECEF;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffd726 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
    color: #52575C;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
}

.stat-label sup {
    font-size: 0.6em;
    font-weight: 500;
    color: #9ca3af;
    position: absolute;
    top: -0.5em;
    margin-left: 2px;
}

/* Test Grid */
.test-grid + section {
    margin-top: 0;
}

#advanced-tests {
    margin-bottom: 20px;
}

/* 基础认知能力和高阶认知能力部分的总介绍样式 */
#basic-tests > .card,
#advanced-tests > .card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#basic-tests > .card > p,
#advanced-tests > .card > p {
    font-weight: 400;
    font-size: clamp(1.3em, 3vw, 1.4em);
    color: #666666;
    line-height: 1.5;
    margin: 0;
}
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.test-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 0;
}

.test-card h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: clamp(1.3em, 3vw, 1.4em);
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 50%, #ffeb3b 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.test-card p {
    flex-grow: 1;
    color: #666666;
    font-size: clamp(0.95em, 2vw, 1.02em);
    margin-bottom: 8px;
    line-height: 1.7;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.test-card .button {
    align-self: flex-start;
    margin-top: auto;
}

/* Features Section */
.features-section {
    margin-bottom: 20px;
    padding: 0px 0;
    background: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 0px;
}

.feature-card {
    background: #F7F9FC;
    padding: 50px 40px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    margin-bottom: 30px;
    color: #2962FF;
    display: flex;
    justify-content: center;
}

.feature-icon-img {
    width: 56px;
    height: 56px;
    fill: #2962FF;
}

.feature-card h3 {
    font-size: 1.6em;
    color: #212529;
    margin-bottom: 20px;
    font-weight: 600;
}

.feature-card p {
    font-size: 1.05em;
    color: #52575C;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .stat-card {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 2.2em;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .test-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .test-card {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .test-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .test-card {
        min-height: 180px;
    }
}

/* About Cards Grid - 滚动卡片容器 */
.about-cards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    margin-top: 0px;
    padding: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    cursor: grab; /* 默认抓手光标 */
    user-select: none; /* 防止拖动时选中文本 */
}

.about-cards-grid:active {
    cursor: grabbing; /* 拖动时的光标 */
}

.about-cards-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.about-cards-grid .about-card {
    flex: 0 0 calc((100% - 48px) / 3); /* 确保3张卡片正好填满容器宽度 */
    scroll-snap-align: start;
    min-width: 280px;
    max-width: none;
}

/* 循环滚动容器 */
.about-cards-wrapper {
    position: relative;
    overflow: hidden;
}

.about-cards-grid.auto-scroll {
    animation: autoScroll 12s infinite linear;
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    25% { transform: translateX(-33.333%); }
    50% { transform: translateX(-66.666%); }
    75% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

#about {
    position: relative;
}

.about-card {
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 100%);
    border-radius: 20px;
    padding: 2px;
    margin-bottom: 0;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #ffffff;
    border-radius: 18px;
    z-index: 1;
}

.about-card-content {
    padding: 40px 24px; /* 设置合适的左右边距 */
    position: relative;
    z-index: 2;
    background: #ffffff;
    border-radius: 18px;
}

.about-card h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #000000;
    margin-bottom: 20px;
    margin-top: 0;
    background: linear-gradient(90deg, #ff6b6b 0%, #ffa726 100%);
    background-size: 150% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.about-card p {
    color: #64748b;
    font-size: 1em; /* 调整字体大小以优化中文显示 */
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-indent: 2em; /* 首行缩进2个字符 */
    text-align: justify; /* 两端对齐 */
}

@media (max-width: 768px) {
    .about-cards-grid {
        gap: 20px;
        margin-top: 15px;
        padding: 0;
    }
    
    .about-cards-grid .about-card {
        flex: 0 0 calc((100% - 20px) / 2); /* 平板显示2张卡片 */
        min-width: 250px;
    }
    
    .about-card-content {
        padding: 32px 20px; /* 平板设备左右边距 */
    }
    
    .about-card h3 {
        font-size: 1.3em;
        margin-bottom: 16px;
    }
    
    .about-card p {
        font-size: 1em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .about-cards-grid {
        display: block; /* 改为块级布局 */
        overflow-x: visible; /* 移除横向滚动 */
        scroll-snap-type: none; /* 移除滚动吸附 */
        gap: 20px;
        margin-top: 15px;
        padding: 0;
    }
    
    .about-cards-grid .about-card {
        flex: none; /* 移除flex属性 */
        width: 100%; /* 全宽显示 */
        min-width: auto;
        margin-bottom: 20px; /* 添加底部间距 */
    }
    
    .about-cards-grid .about-card:last-child {
        margin-bottom: 0; /* 最后一张卡片无底部间距 */
    }
    
    .about-card-content {
        padding: 28px 20px;
    }
    
    .about-card h3 {
        font-size: 1.2em;
        margin-bottom: 14px;
    }
    
    .about-card p {
        font-size: 0.95em;
        line-height: 1.6;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    color: #52575C;
    font-size: 0.9em;
    background: #F7F9FC;
    border-top: 1px solid #E9ECEF;
}

footer p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
        margin-top: 40px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 20px 10px;
        font-size: 0.8em;
    }
}

/* 额外的响应式优化 */
@media (max-width: 320px) {
    .test-card h3 {
        font-size: 1.3em;
    }
    
    .test-card p {
        font-size: 0.95em;
    }
}

/* 彩虹渐变动画 */
@keyframes rainbow-flow {
    to {
        background-position: 200% center;
    }
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 改善触摸设备体验 */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    
    .button:hover {
        transform: none;
    }
    
    nav a:hover {
        transform: none;
    }
}
