/* 自定义样式 - 深蓝科技风暗黑模式 */

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 全局样式 */
body {
    background-color: #05101f; /* 深蓝黑色背景 */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    color: #e6f1ff; /* 亮白色文本 */
    line-height: 1.5;
    letter-spacing: -0.015em;
}

/* 基础布局样式 */
.container {
    max-width: 1200px;
    padding: 0 24px;
}

/* 文本样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff; /* 纯白色标题 */
    text-shadow: 0 0 10px rgba(0, 230, 255, 0.2); /* 轻微的青色发光效果 */
}

/* 强调色 - 科技蓝 */
.apple-blue {
    color: #0062ff; /* 明亮的科技蓝 */
}

/* 粒子背景 */
#particles-js {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: -1;
    opacity: 0.4; /* 增加不透明度，让粒子更明显 */
}

/* 磨砂玻璃卡片样式 - 科技暗黑风格 */
.glass-card {
    background: rgba(7, 23, 48, 0.7); /* 半透明深蓝色背景 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 99, 255, 0.2); /* 蓝色边框 */
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.1); /* 青色阴影 */
    overflow: hidden;
    padding: 28px; /* 增加内边距 */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    height: auto; /* 自适应高度 */
    min-height: 100%; /* 确保卡片至少占满容器高度 */
    display: flex;
    flex-direction: column;
    position: relative;
    color: #e6f1ff; /* 亮白色文本 */
}

/* 卡片边缘霓虹发光效果 */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(
        120deg,
        rgba(0, 99, 255, 0.5),  /* 科技蓝 */
        rgba(0, 229, 255, 0.5), /* 亮青色 */
        rgba(0, 99, 255, 0.2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); /* 边缘发光效果 */
}

/* 卡片悬停效果 */
.glass-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.15); /* 增强边缘发光 */
    border-color: rgba(0, 229, 255, 0.4); /* 亮青色边框 */
}

/* 卡片内容 */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 课程标签 */
.course-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(0, 122, 255, 0.2);
    border-radius: 20px;
    color: #00e5ff; /* 亮青色标签文本 */
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.course-tag:hover {
    background-color: rgba(0, 122, 255, 0.3);
    color: #ffffff; /* 高亮文本 */
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); /* 发光效果 */
}

/* 课程描述 */
.course-description {
    overflow: visible;
    text-overflow: unset;
    display: block;
    margin-bottom: 16px;
    line-height: 1.6;
    color: #b8d0ff; /* 浅蓝色文本，提高可读性 */
}

/* Apple风格边框 - 适配暗色模式 */
.apple-border {
    border: 1px solid rgba(0, 99, 255, 0.3); /* 蓝色边框 */
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(7, 23, 48, 0.7); /* 半透明深蓝色背景 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.apple-border:hover {
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.15); /* 青蓝色阴影 */
    border-color: rgba(0, 229, 255, 0.4); /* 亮青色边框 */
}

/* QR码样式 */
.qr-placeholder {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(0, 99, 255, 0.3); /* 蓝色边框 */
    background-color: rgba(255, 255, 255, 0.9); /* 保持白底以确保QR码可见 */
}

/* 动画效果 */
.animated-fade {
    transition: opacity 0.5s ease;
}

.animated-fade:hover {
    opacity: 0.85;
}

/* 渐入动画 */
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 添加动画延迟 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* 自定义滚动条 - 暗黑模式 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(5, 16, 31, 0.8); /* 深色背景 */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 99, 255, 0.5); /* 科技蓝滚动条 */
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e5ff; /* 亮青色悬停效果 */
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8); /* 发光效果 */
}

/* 针对移动设备的增强响应式调整 */
@media (max-width: 768px) {
    /* 改进响应式布局的样式 */
    .flex-col-mobile {
        flex-direction: column;
    }
    
    .text-center-mobile {
        text-align: center;
    }
    
    .mb-4-mobile {
        margin-bottom: 1rem;
    }
    
    .glass-card {
        padding: 22px; /* 调整移动端的内边距 */
    }
    
    .course-card {
        min-height: auto;
    }
}

/* 针对小屏幕设备的响应式调整 */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .text-base-mobile {
        font-size: 0.9rem;
    }
    
    .glass-card {
        padding: 18px;
    }
}

/* 暗黑模式的额外样式 */
.text-apple-dark {
    color: #e6f1ff !important; /* 亮白色文本替代暗色文本 */
}

.text-gray-600 {
    color: #b8d0ff !important; /* 浅蓝色文本替代灰色文本 */
}

.bg-white {
    background-color: rgba(7, 23, 48, 0.7) !important; /* 半透明深蓝色背景替代白色背景 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bg-apple-white {
    background-color: rgba(5, 16, 31, 0.8) !important; /* 深蓝黑色背景替代浅色背景 */
}

/* 增加发光效果的额外样式 */
.tech-glow {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3); /* 文字发光效果 */
}

.tech-border-glow {
    box-shadow: 0 0 15px rgba(0, 99, 255, 0.2); /* 边框发光效果 */
    border: 1px solid rgba(0, 99, 255, 0.3); /* 蓝色边框 */
}

/* 标题横线颜色修改 */
.h-px {
    background-color: #0062ff !important; /* 科技蓝横线 */
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4); /* 发光效果 */
}

/* ================== 教师/学生展示区轮播 ================== */
.carousel-container,
#project-carousel {
    background: rgba(7, 23, 48, 0.85);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0,229,255,0.10);
    position: relative;
    overflow: hidden;
}
.carousel-container .w-full,
#project-carousel .w-full {
    background: linear-gradient(120deg, rgba(0,99,255,0.10), rgba(0,229,255,0.08));
}
.carousel-container img,
#project-carousel img {
    box-shadow: 0 2px 16px rgba(0,229,255,0.10);
    border-radius: 1.25rem;
    background: #0a1a2f;
}
.carousel-container button,
#project-carousel button {
    outline: none;
    border: none;
    box-shadow: 0 2px 8px rgba(0,229,255,0.10);
}
.carousel-indicators span {
    display: inline-block;
    margin: 0 3px;
    border: 2px solid rgba(0,229,255,0.25);
    transition: background 0.3s, box-shadow 0.3s;
}
.carousel-indicators .bg-tech-cyan {
    box-shadow: 0 0 8px #00e5ff, 0 0 2px #00e5ff;
    border-color: #00e5ff;
}
.carousel-indicators .bg-apple-gray {
    border-color: rgba(0,99,255,0.25);
}
/* ================== 轮播结束 ================== */