/* 导航栏样式 */
.main-nav {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 0;
    transition: var(--transition);
}

/* 滚动时导航栏样式 */
.main-nav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}


.logo img {
    width: 50px;
    height: 50px;
}


.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* 菜单开关激活状态 */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 999;
    background-color: var(--primary-color);

}

.nav-menu li {
    text-align: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    padding: 10px 0;
    display: inline-block;
}


@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        /* justify-content: none; */
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        flex-direction: column;
        padding: 40px 0;
        transition: 0.4s;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        margin: 0 0 15px;
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 10px;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin-top: 10px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}






/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 130px;
    background-color: white;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    padding: 10px 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu li {
    display: block;
    margin: 0;
    position: relative;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
    display: block;
    width: 100%;
    font-size: 0.95rem;
}

.dropdown-menu li a {
    padding: 12px 20px;
    color: #333;
    display: block;
    transition: all 0.3s;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover,
.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #FF6B00;
    border-left: 3px solid #FF6B00;
}

.dropdown>a:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover>a:after {
    transform: rotate(180deg);
}

/* 页脚样式 */
footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.6fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-info p {
    color: #999;
    margin-bottom: 25px;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 30px;
    justify-content: flex-start;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.qr-code p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.footer-nav {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.footer-links h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #FF6B00;
}

.footer-contact h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    color: #FF6B00;
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item div {
    flex: 1;
}

.contact-item p {
    color: #999;
    margin: 0 0 5px;
    font-size: 0.9rem;
}

.contact-item strong {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-contact {
        grid-column: auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-nav {
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-info {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}