:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --accent-color: #8b5cf6;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* 导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.8); /* 深色半透明背景 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary-color);
}

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

.nav a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    position: relative;
}

.nav a:hover, .nav a.active {
    color: var(--white);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav a:hover::after, .nav a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.auth-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Hero 区域 */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background-color: #0f172a; /* 深色背景 */
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* 动态背景 */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 40%);
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    color: var(--white);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* 玻璃拟态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background-color: #ef4444; }
.yellow { background-color: #f59e0b; }
.green { background-color: #10b981; }

.chart-mockup {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
    width: 15%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
}

.bar.active {
    background: var(--gradient-main);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.stats-row {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.stat-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

/* 浮动图标 */
.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: -20px;
    right: 20px;
    color: #10b981;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 40px;
    left: -30px;
    color: #3b82f6;
    animation-delay: 2s;
}

.icon-3 {
    top: 40%;
    right: -40px;
    color: #f59e0b;
    animation-delay: 4s;
}

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

/* 数据统计区域 */
.stats-section {
    padding: 60px 0;
    background: var(--white);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #f0f0f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box p {
    color: var(--text-light);
    font-weight: 500;
}

/* 功能特色 */
.features {
    padding: 90px 0;
    background-color: var(--bg-light);
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #e0e7ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 24px;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 流程展示 */
.process {
    padding: 100px 0;
    background: var(--white);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 20px;
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(79, 70, 229, 0.1);
    margin-bottom: -30px;
    position: relative;
    z-index: 1;
}

.step-content {
    position: relative;
    z-index: 2;
}

.step-content h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

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

.step-arrow {
    color: var(--text-light);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* CTA 区域 */
.cta {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: #4f46e5;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    z-index: 1;
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-col {
    display: flex;
    /* 居中对齐 */
    justify-content: center;
    align-items: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 修改为居中对齐 */
    align-items: center;
    text-align: center; /* 确保文字内容也居中 */
}
.footer-bottom a {
    text-decoration: none;
    color: #e7e7e7;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.social-links a:hover {
    color: var(--white);
    transform: scale(1.2);
}

/* 动画工具类 */
.animate-up, .animate-right, .animate-float {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-right {
    transform: translateX(-30px);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* 响应式设计 */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }

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

    .process-steps {
        flex-direction: column;
        gap: 30px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .nav {
        display: none; /* 简化处理：移动端隐藏菜单，实际项目需添加汉堡菜单 */
    }
}

/* 考生专区 */
.student-zone {
    padding: 100px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.student-zone::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.dashboard-mockup {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
}

.dash-card {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}

.dash-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.dash-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dash-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.dash-header i {
    font-size: 1.2rem;
}

.icon-blue { color: #3b82f6; }
.icon-purple { color: #8b5cf6; }
.icon-cyan { color: #06b6d4; }

/* 考试列表 */
.exam-item {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.exam-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.exam-item.completed .exam-icon {
    background: #dcfce7;
    color: #10b981;
}

.exam-info {
    flex: 1;
}

.exam-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.exam-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.status-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 6px;
    font-weight: 600;
}

.status-tag.success {
    background: #f0fdf4;
    color: #15803d;
}

/* 仪表盘 */
.score-gauge {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid #e2e8f0;
}

.circle-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: #8b5cf6;
    border-right-color: #8b5cf6;
    transform: rotate(-45deg);
}

.score-text {
    text-align: center;
}

.score-val {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

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

.progress-bars {
    margin-top: 20px;
}

.p-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.bar-bg {
    width: 70%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 3px;
}

.bar-fill.purple { background: #8b5cf6; }

/* 快捷操作 */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.action-btn {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
}

.bg-blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.bg-red { background: linear-gradient(135deg, #f87171, #ef4444); }
.bg-green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.bg-orange { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

/* 学生特色功能 */
.student-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.s-feature {
    text-align: center;
    padding: 20px;
}

.s-feature i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.s-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.s-feature p {
    color: var(--text-light);
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .student-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .student-features {
        grid-template-columns: 1fr;
    }
    
    .dashboard-mockup {
        padding: 20px;
    }
}

/* 合作院校 */
.partners {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.scrolling-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    position: relative;
}

/* 左右两侧渐变遮罩，营造无限滚动效果 */
.scrolling-wrapper::before,
.scrolling-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.scrolling-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
}

.scrolling-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
}

.scrolling-row {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.scrolling-content {
    display: flex;
    gap: 30px;
    /* 这里的宽度需要根据卡片数量动态调整，或者足够宽以容纳内容 */
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* 确保内容不会折行 */
    white-space: nowrap; 
    padding-right: 30px; /* 间距补偿 */
}

/* 向左滚动动画 */
.scroll-left .scrolling-content {
    animation-name: scrollLeft;
    animation-duration: 40s;
}

/* 向右滚动动画 */
.scroll-right .scrolling-content {
    animation-name: scrollRight;
    animation-duration: 45s;
}

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

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

/* 卡片样式 */
.partner-card {
    flex: 0 0 auto; /* 防止被压缩 */
    width: 200px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.partner-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.1);
    transform: translateY(-5px);
}

/* 鼠标悬停时停止滚动 */
.scrolling-row:hover .scrolling-content {
    animation-play-state: paused;
}

.partner-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 10px;
}

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

.partner-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}
