/* Custom styles for WUYI Auto Control Valve website */
/* Tailwind CSS is the primary styling framework. Add overrides or specific component styles here if needed. */

body {
    font-family: 'sans-serif'; /* Ensuring a common sans-serif font stack is used via Tailwind defaults */
}

/* Products下拉菜单优化 */
/* 进一步缩小菜单宽度，支持文字换行和左对齐 */

/* 一级下拉菜单优化 */
nav ul li ul {
    width: 200px !important; /* 调整一级菜单宽度 */
}

nav ul li ul li a {
    font-size: 12px !important; /* 一级菜单文字大小 */
    padding: 10px 12px !important; /* 增加上下间距 */
    white-space: normal !important; /* 允许文字换行 */
    line-height: 1.4 !important; /* 调整行高 */
    word-wrap: break-word !important; /* 允许单词断行 */
    text-align: left !important; /* 强制左对齐 */
    justify-content: flex-start !important; /* flex布局左对齐 */
    hyphens: none !important; /* 禁用连字符 */
}

/* 二级下拉菜单优化 */
nav ul li ul li ul {
    width: 170px !important; /* 稍微增加二级菜单宽度，避免技术术语被分开 */
}

nav ul li ul li ul li a {
    font-size: 11px !important; /* 二级菜单文字大小 */
    padding: 8px 10px !important; /* 增加上下间距 */
    white-space: normal !important; /* 允许文字换行 */
    line-height: 1.3 !important; /* 调整行高 */
    word-break: keep-all !important; /* 保持单词完整，防止技术术语被分开 */
    text-align: left !important; /* 强制左对齐 */
    hyphens: none !important; /* 禁用连字符 */
    overflow-wrap: break-word !important; /* 在必要时允许整个单词换行 */
}

/* 下拉菜单箭头图标优化 */
nav ul li ul li a svg {
    width: 10px !important;
    height: 10px !important;
    flex-shrink: 0 !important; /* 防止箭头被压缩 */
    margin-left: auto !important; /* 箭头推到右边 */
}

/* Example of a custom style if needed:
.hero-section {
    min-height: calc(100vh - 80px); /* Adjust 80px based on actual header height if fixed header overlay issue occurs 
}
*/
