* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

*:focus {
    outline: none;
}

:root {
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --accent: #ff6b6b;
    --dark: #0f172a;
    --darker: #0a0f1d;
    --light: #f8fafc;
    --gray: #94a3b8;
    --transition: all 0.4s ease;
    --bs-box-shadow-1: 0 4px 30px 0 rgb(232 232 237 / 50%);
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

button {
    padding: 0;
    background-color: transparent;
    background-image: none;
    border: none;
}

.text-overflow-ellipsis-1 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-overflow-ellipsis-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 80;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.85);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background-color: rgba(10, 15, 29, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.open-menu {
    display: none;
    color: white;
    font-size: 20px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.6);
}

/* 菜单 */
.menu-container {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 90;
    background: #ffffff;
    color: #1f1f1f;
    height: 100vh;
    width: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
}

.open {
    width: 100vw;
}

.menu-header {
    display: flex;
    align-items: center;
    height: 73px;
    width: 100%;
    justify-content: space-between;
    padding: 0 8%;
}

.menu-logo {
    width: 87px;
    height: 33px;
}

.ri {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 170px;
}

.ri .phoneBox {
    align-items: center;
    border: 1px solid #333;
    border-radius: 4px;
    display: flex;
    height: 29px;
    justify-content: space-between;
    padding: 0 8px;
    width: 126px;
}

.ri .phoneBox .RiPhone {
    height: 13px;
    width: 13px;
}

.ri .phoneBox span {
    color: #333;
    font-size: 13px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.ri .close {
    height: 25px;
    width: 25px;
}

.nav {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    width: 100%;
    margin-top: 30px;
    padding-left: 16px;
}

.nav li {
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    margin: 8px 0;
    padding-bottom: 3px;
    position: relative;
}

.nav-link {
    position: relative;
    color: #1f1f1f;
    font-weight: 400;
    font-size: 16px;
}

.nav-link-active::after {
    background-color: #eb6661;
    bottom: -4px;
    content: "";
    display: block;
    height: 4px;
    left: 0;
    margin-left: -10%;
    position: absolute;
    width: 120%;
}

/* 页脚 */
.footer {
    background-color: var(--darker);
    padding: 5rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.social-icon:hover .bs-social-link-box {
    display: block;
    animation: fadeInUp 0.3s ease-out forwards;
}

.bs-social-link-box {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: .5rem;
    box-sizing: border-box;
    border-radius: .5rem;
    display: none;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.bs-social-link-box::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.bs-social-link-box-img {
    width: 8rem;
    height: 8rem;
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-size: 0.9rem;
}

.copyright-text {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}

@media (max-width: 992px) {
    .copyright {
        justify-content: center;
    }

    .copyright-text {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .navbar .btn {
        display: none;
    }

    .open-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }
}