* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: 14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
    color: #242424;
    background-image: url('../images/bg.jpg');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: #FFF;
    line-height: 1.5;
    /* background: linear-gradient(135deg, #87CEEB 0%, #FFF 24%, #FFF 100%); */
}

/* 公共样式 */
button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 0;
    transition: all 0.3s ease;
    line-height: 1;
}
.button_hover {
    transition: all 0.3s ease;
}
.button_hover:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* index样式 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
}

/* 头部样式 */
.logo-container {
    padding-left: 20px;
}

.logo-container .logo {
    width: 140px;
}

/* 主要内容区域 */
main {
    padding: 0 20px;
}

/* 英雄区域 */
.hero-section {
    display: flex;
    column-gap: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    margin-top: 60px;
    /* border-bottom: 1px solid #eee; */
    position: relative;
}

.hero-text {
    width: fit-content;
}

.hero-text .title {
    font-size: 60px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.hero-text .subtitle {
    font-size: 20px;
    color: #2a2a2a;
    margin-top: 28px;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    column-gap: 24px;
}

.download_btn {
    padding: 16px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 20px;
    color: #FFF;
}

.download_btn .btn-icon {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.professional {
    background-color: #1A63DE;
}

.education {
    background-color: #FF7420;
}

.version-info {
    font-size: 14px;
    color: #A1A1A1;
    margin-top: 30px;
}

.hero-image {
    flex: 1;
}

.preview-image {
    width: 100%;
    border-radius: 5px;
}

/* 更新日志部分 */
.changelog-section {
    padding: 80px 0;
}

.changelog-title {
    font-size: 50px;
    margin-bottom: 32px;
    text-align: center;
}

/* 版本切换按钮 */
.version-tab-container {
    margin-bottom: 36px;
    display: flex;
    justify-content: center;
    column-gap: 24px;
}

.version-tab-container .version-tab {
    width: 110px;
    height: 36px;
    background-color: #fbfbfb;
    border-radius: 20px;
    border: 1px solid #B2B2B2;
    font-size: 14px;
    color: #B2B2B2;
    &:hover {
        border: 1px solid #000;
        color: #000;
    }
}

.version-tab-container .version-tab-active {
    border: 1px solid #000;
    color: #000;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: #fbfbfb;
    border-radius: 8px;
    border: 1px dashed #ddd;
    margin-bottom: 20px;
    text-align: center;
}

.empty-state-icon {
    width: 100%;
    max-width: 300px;
    margin-bottom: 24px;
}

.empty-state-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.empty-state-text {
    font-size: 14px;
    color: #999;
    max-width: 400px;
}

/* 更新日志列表项样式 */
.changelog-item {
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fbfbfb;
    overflow: hidden;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 18px;
    color: #272727;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.changelog-header:hover {
    background-color: #f5f9ff;
    /* box-shadow: 0 2px 8px rgba(44, 128, 255, .3); */
    transform: translateY(-2px);
}

.version-tag {
    display: flex;
    align-items: center;
}

.update-date {
    color: #999;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    position: relative;
    background-image: url('../images/down.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.changelog-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.changelog-content {
    display: flex;
    justify-content: space-between;
    column-gap: 24px;
    margin: 0 30px;
    padding: 20px 0 20px 28px;
    border-top: 1px solid #eee;
    /* transition: opacity 2s ease-in-out; */
}

.hidden {
    display: none;
}

.log-section {
    flex: 1;
}

.log-section .update-content-title {
    font-size: 18px;
    color: #2c80ff;
    margin-bottom: 14px;
    font-weight: 500;
}

.log-section .update-content-text {
    line-height: 2;
    color: #2B2B2B;
    font-size: 14px;
    white-space: pre-wrap;
}

.download-buttons-small {
    width: fit-content;
    height: fit-content;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-small {
    min-width: 110px;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    color: #000;
    background-color: #fbfbfb;
    border: 1px solid #000;
}

/* 响应式设计 */

/* 平板设备 */
@media screen and (max-width: 1280px) {
    .container {
        padding: 16px;
    }

    .hero-section {
        margin-top: 40px;
        padding: 20px 0;
        column-gap: 30px;
    }
    
    .hero-text .title {
        font-size: 60px;
    }

    .hero-text .subtitle {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .download_btn {
        padding: 14px 20px;
        font-size: 18px;
    }

    .changelog-title {
        font-size: 40px;
        margin-bottom: 24px;
    }
}

@media screen and (max-width: 1024px) {
    .hero-text .title {
        font-size: 44px;
    }
    
    .hero-text .subtitle {
        font-size: 16px;
    }
}

/* 手机设备 */
@media screen and (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    main {
        padding: 0 10px;
    }
    
    .hero-section {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-text {
        width: 100%;
        text-align: center;
    }
    
    .hero-text .title {
        font-size: 36px;
    }
    
    .hero-text .subtitle {
        font-size: 16px;
        margin-top: 16px;
        margin-bottom: 24px;
    }
    
    .download-buttons {
        flex-direction: column;
        row-gap: 16px;
        align-items: center;
    }
    
    .download_btn {
        width: 80%;
        font-size: 16px;
    }
    
    .version-info {
        margin-top: 20px;
        font-size: 12px;
    }
    
    .changelog-section {
        padding: 40px 0;
    }
    
    .changelog-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .version-tab-container {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .version-tab-container .version-tab {
        width: 90px;
        height: 32px;
        font-size: 12px;
    }
    
    .changelog-header {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .update-date {
        font-size: 14px;
    }
    
    .changelog-content {
        flex-direction: column;
        margin: 0 15px;
        padding: 15px 0 15px 15px;
    }
    
    .download-buttons-small {
        width: 100%;
        margin-top: 12px;
        justify-content: flex-end;
    }
}

/* 小型手机设备 */
@media screen and (max-width: 480px) {
    .hero-text .title {
        font-size: 28px;
    }
    
    .hero-text .subtitle {
        font-size: 14px;
    }
    
    .download_btn {
        width: 100%;
    }
    
    .changelog-title {
        font-size: 28px;
    }
}
