/*
/*
 * index.css - 首页特有样式
 * 包含仅用于index.html页面的样式定义
 */

/* 欢迎区域部分样式 */
.greetSection {
    width: 100%;
    min-height: 80vh;
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--default-color);
}

.greetSection img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* 欢迎区域背景覆盖层 */
.greetSection:before {
    content: "";
    background: color-mix(in srgb, var(--background-color), transparent 60%);
    position: absolute;
    inset: 0;
    z-index: 2;
}

.greetSection .container {
    position: relative;
    z-index: 3;
}

.greetSection h2 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
}

.greetSection p {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    margin: 10px 0 0 0;
    font-size: 24px;
}



/* 响应式调整 */
@media (max-width: 768px) {
    .greetSection h2 {
        font-size: 32px;
    }

    .greetSection p {
        font-size: 18px;
    }
}


/* 简介部分样式 */
.intro .content h3 {
    font-size: 2rem;
    font-weight: 700;
}

.intro .content ul {
    list-style: none;
    padding: 0;
}

.intro .content ul li {
    padding-bottom: 10px;
}

.intro .content ul i {
    font-size: 1.25rem;
    margin-right: 4px;
    color: var(--accent-color);
}

.intro .content p:last-child {
    margin-bottom: 0;
}


/* 版本部分盒子样式 */
.versionSection .box {
    color: var(--contrast-color);
    background: var(--accent-color);
    padding: 10px 10px 0 10px;
    height: 100%;
}

.versionSection .box h3 {
    color: var(--contrast-color);
    font-weight: 700;
    font-size: 34px;
    margin-bottom: 30px;
}


/* 版本项盒子样式 */
.versionSection .item-box {
    background-color: var(--surface-color);
    text-align: center;
    padding: 20px 30px 0px 30px;
    width: 100%;
    height: 100%;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.versionSection .item-box i {
    color: var(--accent-color);
    font-size: 32px;
    margin-bottom: 30px;
    background: color-mix(in srgb, var(--accent-color), transparent 95%);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    transition: 0.3s;
}

.versionSection .item-box h4 {
    font-weight: bold;
    margin: 0 0 20px 0;
}


/* 版本容器布局 */
.versionContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;

}

.versionContainer>div {
    flex: 1;
    min-width: 200px;

}


/* 系统预览样式 */
.previewSection .course-item {
    background-color: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    border-radius: 5px;
}


/* 留言板样式 */
#leaveMessageSection {
    padding: 10px 0;
}

#leaveMessageSection .section-title {
    margin-bottom: 40px;
}

#messageForm {
    padding: 0px;
    border-radius: 8px;
    position: relative;
    padding-bottom: 10px;
}

#messageForm .form-group {
    margin-bottom: 20px;
}

#messageForm .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

#messageForm .form-control:focus {
    border-color: rgba(0, 170, 255, 1);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

#messageForm textarea.form-control {
    min-height: 150px;
    resize: none;
}



#messageForm .generalBtn {
    width: 120px;
    margin: 0 auto !important;
}


#messageForm .loadingContainer {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    color: white;
    font-size: 18px;
    pointer-events: auto !important;
}

#messageForm .loadingContainer .loading{
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 20px;
    color: white;
    pointer-events: auto !important;
    user-select: none;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

#messageForm .loadingContainer .loading span {
    display: inline-block;
    animation: bounce 1.5s infinite;
    margin-right: 5px;
}

#messageForm .loadingContainer .loading span:last-child {
    margin-right: 0;
}


/* 文字跳动动画 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


/* 为每个span设置不同的动画延迟 */
#messageForm .loadingContainer .loading span:nth-child(1) { animation-delay: 0s; }
#messageForm .loadingContainer .loading span:nth-child(2) { animation-delay: 0.1s; }
#messageForm .loadingContainer .loading span:nth-child(3) { animation-delay: 0.2s; }
#messageForm .loadingContainer .loading span:nth-child(4) { animation-delay: 0.3s; }
#messageForm .loadingContainer .loading span:nth-child(5) { animation-delay: 0.4s; }
#messageForm .loadingContainer .loading span:nth-child(6) { animation-delay: 0.5s; }
#messageForm .loadingContainer .loading span:nth-child(7) { animation-delay: 0.6s; }

