/*
Theme Name: engnew.com v1.0 million traffic seo
Theme URI: http://engnew.com/
Author: duskouyun
Author URI: http://engnew.com/
Description: Your theme description.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: engnew.com
*/

header {
/* 内边距，保持不变 */
    display: flex; /* 启用 Flexbox 布局，让子元素在同一行排列 */
    justify-content: space-between; /* 让两边的内容（web-title 和 nav）分别推到两端 */
    align-items: center; /* 垂直居中对齐所有子元素 */
    flex-wrap: wrap; /* 如果屏幕太小，允许内容换行 */
    padding: 35px; 
}

#web-title {
    display: flex; /* 让 h1 和 h2 在这个容器内垂直堆叠 */
    flex-direction: column; /* 垂直堆叠 */
    align-items: flex-start; /* 让 h1 和 h2 在容器左侧对齐 */
}

#web-title h1 {
    margin: 0; /* 移除 h1 默认外边距 */
    font-size: 5rem;
    font-weight: bold;
    color: transparent;
    background-image: url('assets/images/红紫渐变.png'); /* 确保图片路径正确 */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#web-title h2 {
    margin: 0; /* 移除 h2 默认外边距 */
    font-size: 2.8rem; /* 调整字号 */
    color: #666; /* 调整颜色 */
}

nav {
    font-size: 25px; /* 导航文本的字号，保持不变 */
    /* 这里不再需要 float 或 margin-right，由 Flexbox 处理 */
}

nav a {
    color: #007bff; /* 链接颜色 */
    padding: 0; /* 移除内边距 */
    border: none; /* 移除边框 */
    border-radius: 0; /* 移除圆角 */
    background-color: transparent; /* 确保没有背景色 */
    transition: color 0.3s ease; /* 保持颜色过渡动画 */
}

nav a:hover {
    color: #0056b3; /* 鼠标悬停时颜色变深 */
    text-decoration: underline; /* 鼠标悬停时可以加上下划线 */
    background-color: transparent; /* 确保鼠标悬停也没有背景色 */
}
