/* 页眉样式 */
.custom-header {
    padding: 25px 40px 15px 40px; /* 增加外边距 */
    border-style: none;
    border-width: 0px;
    font-family: 'Questrial', sans-serif;
    font-size: 16px;
    background-color: white; /* 外层改为白色 */
}

.custom-header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.custom-header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    background-color: rgb(248, 250, 252); /* 修改为RGB(248,250,252) */
    border-radius: 100px;
    padding: 15px 30px; /* 内边距 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); /* 轻微阴影 */
}

/* Logo样式 */
.custom-header-logo {
    flex-basis: 15%;
    display: flex;
    align-items: center;
    margin-right: 40px; /* 增加与Home菜单项的距离 */
}

.site-title {
    margin: 0;
    font-size: 17.8977px; /* 特定大小 */
    font-style: normal;
    font-weight: 600; /* 稍微加粗 */
    color: rgb(28, 59, 112); /* 修改为RGB(28,59,112) */
    letter-spacing: 0.5px; /* 字间距 */
    text-transform: uppercase; /* 大写 */
    font-family: 'Questrial', sans-serif;
}

/* 导航样式 */
.custom-header-nav {
    flex-basis: 60%;
}

.custom-navigation-menu {
    display: flex;
    align-items: center;
    gap: 25px; /* 增加菜单项间距 */
}

.custom-navigation-menu a {
    color: rgb(28, 59, 112); /* 修改为RGB(28,59,112) */
    font-weight: 500; /* 非粗体 */
    font-size: 16px; /* 字体大小 */
    font-family: 'Questrial', sans-serif;
    text-decoration: none;
    padding: 8px 10px; /* 调整水平间距 */
    display: inline-block;
    transition: all 0.2s;
}

.custom-navigation-menu a:hover {
    opacity: 0.8;
}

/* 下拉菜单样式 */
.custom-odm-menu,
.custom-products-menu,
.custom-about-menu,
.custom-resources-menu {
    display: flex;
    position: relative;
}

.odm-trigger,
.products-trigger,
.about-trigger,
.resources-trigger {
    color: rgb(28, 59, 112); /* 修改为RGB(28,59,112) */
    font-weight: 500; /* 非粗体 */
    font-size: 16px; /* 字体大小 */
    font-family: 'Questrial', sans-serif;
    text-decoration: none;
    padding: 8px 10px; /* 调整水平间距 */
    display: inline-block;
    transition: all 0.2s;
    white-space: nowrap; /* 防止文字换行 */
}

/* 箭头样式 */
.dropdown-arrow {
    display: inline-block;
    margin-left: 2px;
    vertical-align: middle;
}

.odm-trigger:hover,
.products-trigger:hover,
.about-trigger:hover,
.resources-trigger:hover {
    opacity: 0.8;
}

.odm-dropdown,
.products-dropdown,
.about-dropdown,
.resources-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 5px 0;
    margin-top: 5px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-item {
    display: block;
    color: rgb(28, 59, 112); /* 修改为RGB(28,59,112) */
    padding: 12px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Questrial', sans-serif;
    transition: all 0.2s;
    letter-spacing: 0.2px;
    width: 100%; /* 确保占满宽度 */
}

.dropdown-item:not(:last-child) {
    /* 去掉菜单项之间的边框分隔 */
    margin-bottom: 2px;
}

.dropdown-item:hover {
    background-color: rgba(28, 59, 112, 0.04);
    color: rgb(28, 59, 112); /* 修改为RGB(28,59,112) */
    transition: all 0.2s ease;
}

/* 空列 */
.custom-header-empty {
    flex-grow: 0;
}

/* 按钮列样式 */
.custom-header-buttons {
    flex-basis: 25%;
}

.custom-header-buttons-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.alibaba-container {
    width: 400px;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 15px;
}

.alibaba-logo {
    height: 30px;
}

.book-button {
    margin-left: 15px;
}

.button-link {
    display: inline-block;
    background-color: #3B82F6; /* 蓝色按钮 */
    color: white;
    text-decoration: none;
    padding: 12px 24px; /* 增加内边距 */
    border-radius: 50px; /* 圆形按钮 */
    font-weight: 500;
    font-size: 16px; /* 增大字体 */
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

.button-link:hover {
    background-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

/* 主内容区域样式 */
main {
    margin-top: 90px; /* 将表头和下面容器的间距改为90px */
}

/* 响应式设计 - 页眉 */
@media (max-width: 768px) {
    .custom-header-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-header-logo {
        flex-basis: 100%;
        text-align: center;
        order: 1;
    }
    
    .custom-header-nav {
        flex-basis: 100%;
        order: 2;
    }
    
    .custom-header-buttons {
        flex-basis: 100%;
        order: 3;
    }
    
    .custom-navigation-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .custom-navigation-menu a {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .custom-header-buttons-container {
        justify-content: center;
    }
    
    .alibaba-container {
        width: auto;
        margin: 0;
    }
    
    .alibaba-logo {
        width: 100px;
        height: auto;
    }
    
    .button-link {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* 页脚整体样式 */
.footer {
    background-color: rgb(18, 39, 72); /* 修改为深蓝色RGB(18,39,72) */
    color: #ffffff;
    font-family: 'Questrial', sans-serif;
    font-size: 17.8038px;
    padding: 0;
    margin: 0;
}

.footer-container {
    width: 85%;
    margin: 0 auto;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 35px 0;
}

/* 页脚列样式 */
.footer-box {
    padding: 0 20px 50px 20px;
    text-align: left;
}

.footer-col01 {
    flex: 1;
}

.footer-col02 {
    flex: 1;
}

.footer-col03 {
    flex: 1;
    padding-right: 0;
}

.footer-col04 {
    flex: 1;
}

/* 标题样式 */
.footer-heading {
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    font-family: 'Questrial', sans-serif;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: left;
}

/* 段落样式 */
.company-description {
    font-size: 17.8038px;
    line-height: 1.6;
    color: #ffffff;
    text-align: left;
    font-family: 'Questrial', sans-serif;
}

.contact-info {
    font-size: 17.8038px;
    font-style: normal;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: left;
    font-family: 'Questrial', sans-serif;
}

/* 链接样式 */
.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
}

/* 社交媒体链接 */
.social-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 50px 0;
    gap: 20px;
    text-align: left;
    justify-content: flex-start;
}

.social-links li {
    margin-right: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: transparent;
    position: relative;
}

.social-icon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.facebook::before {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/facebook.svg');
    filter: invert(100%);
}

.twitter::before {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/twitter.svg');
    filter: invert(100%);
}

.instagram::before {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/instagram.svg');
    filter: invert(100%);
}

.linkedin::before {
    background-image: url('https://cdn.jsdelivr.net/npm/simple-icons@v5/icons/linkedin.svg');
    filter: invert(100%);
}

/* 导航菜单 */
.footer-nav-columns {
    display: flex;
}

.footer-nav-column {
    flex: 1;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-navigation li {
    margin-bottom: 10px;
}

.footer-navigation a {
    font-size: 17.8038px;
    font-weight: 400;
    font-style: normal;
    font-family: 'Questrial', sans-serif;
    text-align: left;
}

/* 响应式设计 - 页脚 */
@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
    }
    
    .footer-box {
        flex-basis: 100%;
        padding-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .custom-header {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .custom-header-inner {
        border-radius: 20px;
        padding: 10px 15px;
    }
    
    .custom-navigation-menu {
        gap: 6px;
    }
    
    .custom-navigation-menu a {
        font-size: 13px;
        padding: 5px 8px;
    }
    
    .alibaba-logo {
        width: 80px;
    }
    
    .button-link {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .footer-container {
        width: 95%;
    }
    
    .footer-nav-columns {
        flex-direction: column;
    }
    
    .footer-nav-column {
        margin-bottom: 20px;
    }
}
