* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0 3%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0.6rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.4s ease;
    position: relative;

}

.navbar.scrolled .nav-link {
    color: #333;
    text-shadow: none;
}

.nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.navbar.scrolled .nav-link:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
}

.login-btn {
    background: transparent;
    color: #fff !important;
    padding: 0.7rem 1.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000 !important;
    border-color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
}

.navbar.scrolled .login-btn {
    background: #000;
    color: #fff !important;
    border-color: #000;
    text-shadow: none;
}

.navbar.scrolled .login-btn:hover {
    background: transparent;
    color: #000 !important;
    border-color: #000;
}


.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: transparent;
    color: #fff !important;
    padding: 0.7rem 1.5rem !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-weight: 400;
    min-width: 120px;
    justify-content: center;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000 !important;
    border-color: rgba(255, 255, 255, 0.9);
    text-shadow: none;
}

.navbar.scrolled .user-btn {
    background: #000;
    color: #fff !important;
    border-color: #000;
    text-shadow: none;
}

.navbar.scrolled .user-btn:hover {
    background: transparent;
    color: #000 !important;
    border-color: #000;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    font-family: 'Microsoft YaHei', 'Arial', sans-serif;
}

.user-name {
    font-size: 0.9rem;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.user-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.user-dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.logout-item:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}


.footer-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #333;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(102,126,234,0.02)"/><circle cx="80" cy="40" r="1" fill="rgba(118,75,162,0.02)"/><circle cx="40" cy="70" r="1" fill="rgba(102,126,234,0.01)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}


.footer-about {
    padding-right: 2rem;
}

.footer-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.social-link:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}


.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.contact-icon {
    color: #667eea;
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.contact-text {
    color: #666;
    font-size: 0.9rem;
    white-space: nowrap;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
}


.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    margin-bottom: 0.8rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1rem;
}

.footer-link::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #667eea;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #333;
    padding-left: 1.2rem;
}

.footer-link:hover::before {
    color: #764ba2;
}


.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 2rem 0;
    text-align: center;
}

.copyright-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.copyright-text {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.legal-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.icp-info,
.police-info {
    color: #999;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-info:hover,
.police-info:hover {
    color: #667eea;
}

.police-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}


@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
    }

    .footer-section {
        padding: 3rem 0 0;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 2rem;
    }

    .footer-about {
        padding-right: 0;
    }

    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }

    .footer-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-item {
        padding: 0.4rem 0;
    }

    .contact-text {
        font-size: 0.85rem;
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
    }

    .footer-bottom {
        padding: 1.5rem 0;
    }

    .copyright-info {
        flex-direction: column;
        gap: 1rem;
    }

    .legal-info {
        flex-direction: column;
        gap: 0.8rem;
    }
}



.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}


.avatar-img[src=""],
.avatar-img:not([src]) {
    display: none;
}