.header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.header .container {
    display: flex;
    align-items: center;
    height: 60px;
    justify-content: space-between;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
    flex-shrink: 0;
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #43a8f5, #1a73e8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
    white-space: nowrap;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}
.main-nav a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 700;
    color: #555;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.main-nav a:hover {
    color: #1a73e8;
    background: #f0f7ff;
}
.main-nav .nav-icon {
    font-size: 16px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-right a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #666;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.header-right a:hover {
    color: #1a73e8;
    background: #f0f7ff;
}
.header-right .highlight-orange {
    color: #ff8c00;
    font-weight: 500;
}
.header-right .highlight-green {
    color: #52c41a;
    font-weight: 500;
}
.header-right .nav-icon {
    font-size: 15px;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
}
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}
.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-menu {
    position: relative;
}
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 140px;
    background: #fff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 6px;
    display: none;
    z-index: 1200;
}
.dropdown-menu.open {
    display: block;
}
.dropdown-item {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}
.dropdown-item:hover {
    background: #f5f7fa;
}
@media (max-width: 1024px) {
    .header .container { height: 56px; }
    .logo-text { font-size: 18px; }
    .main-nav a { padding: 6px 8px; font-size: 13px; }
    .header-right a { padding: 6px 6px; font-size: 12px; }
}
@media (max-width: 768px) {
    .header .container { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
    .header-left { width: 100%; justify-content: space-between; }
    .main-nav { gap: 2px; }
    .main-nav a { font-size: 12px; padding: 4px 6px; }
    .header-right { width: 100%; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid #f0f0f0; padding-top: 8px; }
}
@media (max-width: 576px) {
    .header .container { padding: 8px 12px; }
    .logo-area { margin-right: 8px; }
    .logo-icon { width: 30px; height: 30px; font-size: 14px; }
    .logo-text { font-size: 16px; }
    .main-nav { gap: 0; }
    .main-nav a { font-size: 11px; padding: 3px 4px; gap: 2px; }
    .main-nav .nav-icon { font-size: 13px; }
    .header-right a { font-size: 11px; padding: 4px 4px; }
}
