.open-dialog-btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
}
dialog {
    padding: 10px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    width: 100%;
    max-width: 1200px;
    height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
.dialog-fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}
.header-title {
    margin: 60px 0;
    font-size: 48px;
    font-weight: 600;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}
@media (max-width: 992px) {
    .header-title {
        font-size: 40px;
    }
}
@media (max-width: 768px) {
    .header-title {
        font-size: 36px;
    }
   }
@media (max-width: 576px) {
    .header-title {
        font-size: 32px;
    }
   }
@media (max-width: 480px) {
    .header-title {
        font-size: 28px;
    }
}
.header-title:hover {
    color: #007BFF !important;
}

#close-dialog-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: #e74c3c;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#close-dialog-btn:hover {
    background-color: #c0392b;
}

.ai-container {
    /* display: flex; */
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 创建两列等宽区域 */
    grid-template-rows: repeat(2, 1fr);    /* 创建两行等高区域 */
    /* gap: 5px; */
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}
/* 媒体查询，当屏幕宽度小于 768px 时（手机尺寸） */
@media (max-width: 768px) {
   .ai-container {
        flex-direction: column;
    }
}
.ai-module {
    color: #333;
    text-decoration: none !important;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;

    position: relative;
}
#english-module {
    background: linear-gradient(45deg, #000000 0%, #333333 100%);
    color: #fff !important;
}

#chinese-module {
    background: linear-gradient(45deg, #f2f2f2 0%, #cccccc 100%);
    color: #333;
}
.ai-module:hover {
    transform: scale(1.05);
    
}
/* 第一个模块 - 右下角圆角 */
.ai-module:nth-child(1):hover {
    border-radius: 0 0 15px 0;
    z-index: 999;
}
/* 第二个模块 - 左下角圆角 */
.ai-module:nth-child(2):hover {
    border-radius: 0 0 0 15px;
    z-index: 999;
}
/* 第三个模块 - 右上角圆角 */
.ai-module:nth-child(3):hover {
    border-radius: 0 15px 0 0;
    z-index: 999;
}
/* 第四个模块 - 左上角圆角 */
.ai-module:nth-child(4):hover {
    border-radius: 15px 0 0 0;
    z-index: 999;
}

.ai-module-title {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 10px;
    color: inherit;
}
.ai-module p {
    font-size: 18px;
    opacity: 0.8;
    margin: 0;
}
.ai-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ai-module:hover::before {
    opacity: 1;
}