html, body {
  overflow-x: hidden; /* 隐藏水平滚动 */
  touch-action: pan-y; /* 只允许上下滑，禁用左右手势 */
  overflow: overlay;
}

header {
    background-color: rgba(40, 40, 40, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

header h1 {
    margin: 0;
    font-size: 22px;
    color: white;
    letter-spacing: 1px;
}

header h1 a {
    color: white;
    transition: color 0.2s ease;
}

header h1 a:hover {
    color: #b3b3b3;
}

header a {
    color: white;
    text-decoration: none;
}

header a:hover {
    color: #b3b3b3;
}

header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 5px;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

header img:hover {
    transform: scale(1.08);
    border-color: rgba(0, 123, 255, 0.7);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}

.user-info > span {
    font-size: 14px;
    margin-left: 8px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: #3a3a3a;
    min-width: 170px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    z-index: 101;
    top: 52px;
    right: 0;
    padding: 6px;
    overflow: hidden;
}

.dropdown-menu a {
    color: #e0e0e0;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 123, 255, 0.18);
    color: #4aa3ff;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 18px;
    }
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #6d6d6d;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
