.top-bar {
    background-color: #e31836;
    color: #fff;
    padding: 10px 0;
}

.top-bar .wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.top-bar .wrapper a {
    font-size: 13px;
    cursor: pointer;
}

.top-bar a:hover {
    text-decoration: underline;
}

header {
    background-color: #414042;
    color: #fff;
}

.header-content {
    padding: 10px 0;
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo {
    height: 45px;
    margin-right: 15px;
    align-items: center;
    display: flex;
    gap: 14px;
}

.site-title {
    font-size: 14px;
    font-weight: bold;
    font-family: Arial, Verdana, Georgia, Helvetica, "Microsoft YaHei", "宋体", "黑体", sans-serif, "Source Han Sans Normal", "PingFangSC-Regular";
    color: #fff;
    line-height: 1.2;
    letter-spacing: 4px;
    margin-left: 24px;
    margin-top: 4px;
}

nav {
    max-width: 960px;
    margin: 0 auto;
    height: 48px;
}

nav ul {
    display: flex;
    height: 100%;
}

nav li {
    height: 100%;
    background-color: #58595b;
    position: relative;
}

nav li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
}

nav a {
    display: block;
    padding: 0 20px;
    height: 48px;
    line-height: 48px;
    color: #fff;
    font-size: 14px;
}

nav a:hover, nav a.active {
    color: #555;
    background-color: #e5e5e5;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    height: auto;
    z-index: 1000;
    float: left;
    min-width: 160px;
    width: max-content;
    padding: 5px 0;
    margin: 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.2);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    background-clip: padding-box;
    display: none;
    border-radius: 6px;
}
.has-dropdown a{
    display: flex;
    align-items: center;
    justify-content: center;
}
.has-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.dropdown-menu::before {
    position: absolute;
    top: -6px;
    left: 9px;
    display: inline-block;
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    content: '';
    z-index: -1;
}

.dropdown-menu::after {
    position: absolute;
    top: -5px;
    left: 10px;
    display: inline-block;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    border-left: 6px solid transparent;
    content: '';
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.has-dropdown:hover > a {
    background-color: #e5e5e5;
    color: #555;
}

.dropdown-menu li {
    background-color: #fff;
    height: auto;
}

.dropdown-menu a {
    color: #333;
    padding: 4px 20px;
    height: auto;
    line-height: 20px;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #e31836;
    color: #fff;
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    vertical-align: top;
    border-top: 4px solid #777;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

footer {
    background-color: #414042;
    border-top: 6px solid #e31836;
    padding: 40px 0;
    color: #fff;
    text-align: center;
    margin-top: 20px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logos {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logos img {
    height: 45px;
}

.footer-title {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-left: 24px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    gap: 15px;
    text-align: left;
    margin-right: 80px;
    color: #858484;
    font-size: 18px;
    font-weight: bold;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
}

.social-icons-footer img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.copyright {
    font-size: 14px;
    color: #fff;
    margin-top: 32px;
}

