/* 调整body的样式，减少顶部内边距 */
body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* 调整header的样式，大幅减少顶部内边距 */
header {
    padding-top: 0 !important;  /* 完全移除顶部内边距 */
    padding-bottom: 20px !important; /* 减少底部内边距 */
    /* 删除分隔线 */
}

/* 调整container的样式，减少顶部内边距 */
header .container {
    padding-top: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* 优化顶部栏的样式 */
.header-top-bar {
    width: 100% !important;
    padding: 8px 0 !important;
    margin-bottom: 12px !important;
    /* 删除分隔线 */
    display: flex !important;
    justify-content: space-between !important; /* 确保左右对齐 */
    align-items: center !important;
}

/* 网站名称样式优化 */
.website-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    position: static !important; /* 移除绝对定位 */
    left: auto !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease !important;
}

.website-name:hover {
    opacity: 0.8 !important;
}

/* 语言选择器容器样式优化 */
.language-selector-container {
    margin-top: 0 !important;
    margin-left: auto !important; /* 推到最右侧 */
}

/* 标题区样式优化 - 更新为渐变色，增大加粗 */
header h2 {
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    font-size: 42px !important; /* 增大字体 */
    font-weight: 600 !important; /* 加粗字体 */
    text-align: center !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    transition: opacity 0.2s ease !important;
}

/* 副标题样式优化 - 确保一行显示 */
header .subtitle {
    font-size: 22px !important;
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
    text-align: center !important;
    max-width: none !important; /* 移除最大宽度限制 */
    margin: 0 auto !important;
    line-height: 1.3 !important;
    white-space: nowrap !important; /* 确保一行显示 */
    overflow: hidden !important; /* 防止溢出 */
    text-overflow: ellipsis !important; /* 如果文本太长，用省略号表示 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 移动端样式调整 */
    header {
        padding-top: 0 !important;
    }
    
    .header-top-bar {
        padding: 5px 0 !important;
    }
    
    .website-name {
        font-size: 16px !important;
    }
    
    header h2 {
        font-size: 36px !important; /* 移动端稍微减小 */
    }
    
    header .subtitle {
        font-size: 18px !important;
        white-space: normal !important; /* 移动端允许换行 */
        max-width: 100% !important; /* 移动端限制宽度为容器宽度 */
    }
} 