.header {
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-header {
    padding: 15px 0;
}

.top-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-area a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

.logo-area h1 {
    font-size: 24px;
    color: #333;
    margin: 0;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-area span {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-item:hover {
    color: #8e44ad;
}

.nav-item:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #8e44ad;
}

.user-area .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}

.user-area .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-header {
    background: #000;
    padding: 10px 0;
}

.bottom-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.home-btn {
    background: #8e44ad;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.search-area {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 5px 15px;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-area input {
    border: none;
    outline: none;
    width: 100%;
    padding: 5px;
    font-size: 14px;
}

.search-area button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.search-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('/MDassets/img/nav/search.png') no-repeat center;
    background-size: contain;
}

.post-btn {
    background: #8e44ad;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.side-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.side-button {
    width: 40px;
    height: 40px;
    background: #8e44ad;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.side-button:hover {
    background: #6c3483;
}

.side-button i {
    font-size: 20px;
}

/* 圖標樣式 */
.notification-icon::before { content: "🔔"; }
.participate-icon::before { content: "👥"; }
.mail-icon::before { content: "✉️"; }
.message-icon::before { content: "💬"; }

.main-black-bar {
    width: 100%;
    background: #111;
    min-height: 48px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.main-black-bar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 48px;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 48px;
    margin-top: -10px;
    left: 20px;
    background: #222;
    padding: 8px 0;
    border-radius: 4px;
    z-index: 100;
    min-width: 120px;
    pointer-events: auto;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block !important;
}

.server-label {
    display: inline-block;
    padding: 2px 16px;
    margin-right: 32px;
    border-radius: 16px;
    font-size: 30px;
    line-height: 40px;
    font-weight: bold;
    color: #fff;
    background: #8e44ad;
    letter-spacing: 2px;
    user-select: none;
}
.server-label.dog {
    background: #66CCCC;
}
.server-label.cat {
    background: #FF99CC;
}

.user-page-container {
    display: flex;
    align-items: flex-start;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
} html { scrollbar-gutter: stable; }
