header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    padding: 0 20px;
    transition: all 0.3s ease;
}

header .logo {
    float: left;
    font-size: 24px;
    font-weight: bold;
    color: #00d4ff;
    line-height: 60px;
    cursor: pointer;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
}

header .logo:hover {
    color: #00ffcc;
    text-shadow: 0 0 30px rgba(0, 255, 204, 0.7);
}

header .menu-toggle {
    display: none;
    float: right;
    width: 30px;
    height: 30px;
    margin-top: 15px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

header .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #00d4ff;
    transition: all 0.3s ease;
}

header nav {
    float: right;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    display: inline-block;
    margin-left: 25px;
}

header nav ul li a {
    display: block;
    line-height: 60px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    color: #00d4ff;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ffcc);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

/* 子菜单 - PC端 hover */
header nav ul li.has-submenu {
    position: relative;
}

header nav ul li.has-submenu > a .arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

header nav ul li.has-submenu .submenu {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 160px;
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    list-style: none;
    margin: 0;
    z-index: 1001;
}

header nav ul li.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    top: 55px;
}

header nav ul li.has-submenu:hover > a .arrow {
    transform: rotate(180deg);
}

header nav ul li.has-submenu .submenu li {
    display: block;
    margin: 0;
}

header nav ul li.has-submenu .submenu li a {
    line-height: 42px;
    padding: 0 24px;
    font-size: 14px;
    white-space: nowrap;
}

header nav ul li.has-submenu .submenu li a::after {
    display: none;
}

header nav ul li.has-submenu .submenu li a:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

footer {
    background: linear-gradient(180deg, rgba(10, 10, 26, 0.95) 0%, #0a0a1a 100%);
    padding: 40px 20px 30px;
    text-align: center;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

footer .friendship-links {
    margin-bottom: 25px;
}

footer .friendship-links .links-title {
    color: #a0a0c0;
    font-size: 14px;
    margin-bottom: 15px;
}

footer .friendship-links .links-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

footer .friendship-links .links-list a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

footer .friendship-links .links-list a:hover {
    color: #00ffcc;
}

footer p {
    color: #606080;
    font-size: 13px;
    margin: 8px 0;
}

footer .icp {
    margin-top: 15px;
}

footer .icp a {
    color: #505070;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

footer .icp a:hover {
    color: #00d4ff;
}

@media (max-width: 768px) {
    header .menu-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 212, 255, 0.1);
        overflow-y: auto;
    }

    header nav.active {
        right: 0;
    }

    header nav ul li {
        display: block;
        margin: 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.05);
    }

    header nav ul li a {
        line-height: 55px;
        padding: 0 30px;
        font-size: 16px;
    }

    header nav ul li a::after {
        display: none;
    }

    header nav ul li a:hover,
    header nav ul li a.active {
        background: rgba(0, 212, 255, 0.1);
    }

    /* 移动端子菜单 - 点击展开 */
    header nav ul li.has-submenu .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.3);
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        display: block;
    }

    header nav ul li.has-submenu.submenu-open .submenu {
        max-height: 200px;
    }

    header nav ul li.has-submenu .submenu li a {
        line-height: 45px;
        padding: 0 30px 0 50px;
        font-size: 15px;
        color: #a0a0c0;
    }

    header nav ul li.has-submenu .submenu li a:hover,
    header nav ul li.has-submenu .submenu li a.active {
        background: rgba(0, 212, 255, 0.08);
        color: #00d4ff;
    }

    header nav ul li.has-submenu.submenu-open > a .arrow {
        transform: rotate(180deg);
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 15px;
    }
    
    header .logo {
        font-size: 20px;
    }
    
    header nav {
        width: 100%;
        right: -100%;
    }
    
    footer {
        padding: 30px 15px 20px;
    }
    
    footer .friendship-links .links-list {
        gap: 20px;
    }
}

.wechat-sidebar {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: row;
    align-items: center;
    pointer-events: none;
    width: auto;
    height: auto;
}

.wechat-toggle {
    pointer-events: auto;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #07c160, #06ad56);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wechat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.6);
}

.wechat-panel {
    pointer-events: auto;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-right: -320px;
    transition: margin-right 0.3s ease;
    flex-shrink: 0;
    visibility: hidden;
}

.wechat-panel.active {
    margin-right: 0;
    visibility: visible;
}

.wechat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wechat-header span {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.wechat-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wechat-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.wechat-content {
    text-align: center;
}

.wechat-qrcode {
    margin-bottom: 15px;
}

.wechat-qrcode img {
    width: 180px;
    height: 180px;
    border-radius: 8px;
    border: 2px solid rgba(7, 193, 96, 0.2);
}

.wechat-contact {
    background: rgba(7, 193, 96, 0.05);
    border-radius: 8px;
    padding: 15px;
}

.wechat-contact p {
    margin: 8px 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    .wechat-sidebar {
        position: fixed;
        right: 15px;
        bottom: 100px;
        top: auto;
        transform: none;
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .wechat-toggle {
        width: 55px;
        height: 55px;
        font-size: 26px;
        box-shadow: 0 4px 20px rgba(7, 193, 96, 0.5);
    }
    
    .wechat-panel {
        position: fixed;
        right: 15px;
        bottom: 75px;
        width: 260px;
        margin-right: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .wechat-panel.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .wechat-qrcode img {
        width: 160px;
        height: 160px;
    }
}
