/* Apple风格头部导航栏 */

/* 确保移动端菜单在桌面端隐藏 */
@media (min-width: 769px) {
    #mobileMenu {
        display: none !important;
        visibility: hidden !important;
    }
    
    .offcanvas-backdrop {
        display: none !important;
    }
    
    .mobile-toggle {
        display: none !important;
    }
}

/* 确保页面内容正确显示 */
body {
    padding-top: 50px !important;
}

@media (max-width: 768px) {
    body {
        padding-top: 50px !important;
    }
}

/* Apple风格头部 - 固定黑夜模式 */
.apple-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.apple-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 20px;
    position: relative;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* 导航菜单 - 左对齐 */
.header-nav {
    position: static;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex: 1;
    height: 50px;
    margin-left: 40px;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    height: 50px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    border: none !important;
    margin-bottom: 0 !important;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 16px;
    color: #a1a1a6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    border-radius: 0;
    transition: color 0.2s ease;
    position: relative;
    white-space: nowrap;
    text-align: left;
    height: 50px;
    line-height: normal;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.nav-link:hover {
    color: #d1d1d6;
    background: none;
    border: none !important;
    border-bottom: none !important;
}

.nav-link.active {
    color: #ffffff;
    background: none;
    border: none !important;
    border-bottom: none !important;
}

.nav-link:focus {
    color: #a1a1a6;
    border: none !important;
    outline: none !important;
}

/* 右侧操作区域 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 50px;
}

/* ========================================
   搜索功能 - 弹出式卡片
   ======================================== */

/* 搜索按钮 */
.search-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #f5f5f7;
    font-size: 16px;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* 搜索弹窗 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-modal.active {
    display: flex;
}

/* 遮罩层 */
.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

/* 搜索卡片 */
.search-modal-card {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: scaleIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 搜索输入框区域 - 简洁精致 */
.search-input-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
}

.search-input-box input {
    flex: 1;
    min-width: 0;
    border: none;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 15px;
    outline: none;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input-box input:focus {
    background: #e8e8ed;
}

.search-input-box input::placeholder {
    color: #8e8e93;
}

.close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f7;
    border: none;
    color: #6e6e73;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: #e8e8ed;
    color: #1d1d1f;
    transform: scale(1.05);
}

/* 推荐内容区域 - 优化排版，防止横向滚动 */
.search-content {
    padding: 0 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-content: start;
    box-sizing: border-box;
    width: 100%;
}

.search-content::-webkit-scrollbar {
    width: 6px;
}

.search-content::-webkit-scrollbar-track {
    background: transparent;
}

.search-content::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 3px;
}

.content-section {
    display: flex;
    flex-direction: column;
    background: #fafafa;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.content-section:last-child {
    grid-column: 1 / -1;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #6e6e73;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.rec-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: #1d1d1f;
    font-size: 13px;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
    min-width: 0;
}

.rec-link:hover {
    background: #ffffff;
    border-color: #007aff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
}

.rec-link i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #007aff;
    font-size: 14px;
    flex-shrink: 0;
}

.rec-link img {
    flex-shrink: 0;
}

.rec-link .rec-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #1d1d1f;
}

.rec-link .rec-meta {
    font-size: 11px;
    color: #8e8e93;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 精选展览 - 图片卡片样式（一行三列） */
.content-section:last-child .section-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.content-section:last-child .rec-link {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    gap: 0;
    overflow: hidden;
    min-width: 0;
}

.rec-photo-cover {
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.rec-photo-cover i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.8);
}

.rec-photo-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rec-photo-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    box-sizing: border-box;
}

.content-section:last-child .rec-link .rec-name {
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.content-section:last-child .rec-link .rec-meta {
    font-size: 11px;
    color: #8e8e93;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .search-btn {
        display: none;
    }
    
    .search-modal-card {
        max-width: 95%;
        border-radius: 16px;
    }
    
    .search-input-box {
        padding: 16px;
    }
    
    .search-input-box input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .search-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px 20px;
    }
    
    .content-section {
        padding: 12px;
    }
    
    .content-section:last-child {
        grid-column: 1;
    }
    
    .content-section:last-child .section-list {
        grid-template-columns: 1fr;
    }
    
    .rec-photo-cover {
        height: 140px;
    }
}

@media (max-width: 480px) {
    .search-modal {
        padding: 10px;
    }
    
    .search-input-box {
        padding: 14px;
        gap: 8px;
    }
    
    .search-content {
        padding: 0 14px 16px;
        gap: 14px;
    }
    
    .content-section {
        padding: 10px;
    }
    
    .rec-link {
        padding: 8px;
        gap: 8px;
        font-size: 12px;
    }
}

/* 快捷操作按钮 */
.action-btn {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #f5f5f7;
    font-size: 16px;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.action-btn .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff3b30;
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
    animation: pulse 2s infinite;
}

/* 有消息时小铃铛变黄色 */
.action-btn.has-message {
    color: #ffd60a;
}

.action-btn.has-message i {
    color: #ffd60a;
}

/* 徽章脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 快捷操作下拉菜单 - 点击触发 */
.action-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    width: 150px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 6px 0;
    margin-top: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0.9);
    transform-origin: top right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1002;
    pointer-events: none;
}

.action-btn.active .action-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
    pointer-events: auto;
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #f5f5f7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.action-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.action-dropdown-item i {
    width: 18px;
    text-align: center;
    color: #a1a1a6;
    font-size: 14px;
    flex-shrink: 0;
}

.action-dropdown-item:hover i {
    color: #f5f5f7;
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-trigger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.user-trigger:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 用户下拉菜单 - 点击触发 */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    width: 160px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    padding: 6px 0;
    margin-top: 6px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: scaleY(0.9);
    transform-origin: top right;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1002;
    pointer-events: none;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
    pointer-events: auto;
}

.user-info {
    padding: 12px 16px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 6px;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.user-email {
    font-size: 11px;
    color: #8e8e93;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #f5f5f7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.15s ease;
    position: relative;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: #a1a1a6;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-item:hover i {
    color: #f5f5f7;
}

.dropdown-item .badge {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.divider {
    height: 0.5px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
    list-style: none;
}

.dropdown-item.logout {
    color: #ff3b30;
    margin-top: 2px;
}

.dropdown-item.logout:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.dropdown-item.logout i {
    color: #ff3b30;
}

/* 认证链接 */
.auth-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.auth-link {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 980px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.auth-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

.auth-link.primary {
    background: #0071e3;
    color: white;
}

.auth-link.primary:hover {
    background: #0077ed;
    color: white;
}

/* 移动端菜单切换按钮 */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    gap: 4px;
    transition: all 0.2s ease;
}

.mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-toggle span {
    width: 16px;
    height: 1.5px;
    background: #f5f5f7;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 1px;
}

.mobile-toggle.active {
    background: rgba(255, 255, 255, 0.15);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   移动端菜单 - 全新设计（简洁优雅高级）
   参考：Apple iOS、Notion Mobile
   ======================================== */

/* 移动端菜单容器 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.show {
    display: flex;
    opacity: 1;
}

/* 遮罩层 */
.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

/* 菜单主容器 */
.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu.show .mobile-menu-container {
    transform: translateX(0);
}

/* 菜单头部 */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.mobile-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.mobile-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* 菜单主体 */
.mobile-menu-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-body::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-body::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* 用户卡片 */
.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-user-card .user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.mobile-user-card .user-info {
    flex: 1;
    min-width: 0;
}

.mobile-user-card .user-name {
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-user-card .user-email {
    font-size: 13px;
    color: #8e8e93;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分组标题 */
.mobile-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    color: #8e8e93;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding: 0 4px;
}

/* 导航链接 */
.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    color: #f5f5f7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-link:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 500;
}

.mobile-nav-link i {
    color: #007aff;
    font-size: 14px;
}

/* 快捷操作按钮组 */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: #f5f5f7;
    transition: all 0.2s ease;
    position: relative;
}

.quick-action-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.12);
}

.quick-action-btn i {
    font-size: 28px;
    color: #007aff;
    margin-bottom: 8px;
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 500;
    color: #f5f5f7;
}

.quick-action-btn .badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 菜单列表项 */
.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    color: #f5f5f7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.menu-list-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
}

.menu-list-item i:not(.arrow) {
    width: 22px;
    text-align: center;
    color: #8e8e93;
    font-size: 16px;
    flex-shrink: 0;
}

.menu-list-item span {
    flex: 1;
}

.menu-list-item .arrow {
    color: #6e6e73;
    font-size: 12px;
    opacity: 0.6;
}

/* 退出登录按钮 */
.mobile-logout {
    margin-top: 16px;
    padding-top: 20px;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 12px;
    color: #ff3b30;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.logout-btn:active {
    transform: scale(0.98);
    background: rgba(255, 59, 48, 0.25);
}

.logout-btn i {
    font-size: 16px;
}

/* 游客认证区域 */
.mobile-auth-section {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.mobile-auth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.mobile-auth-btn.primary {
    background: #007aff;
    color: white;
}

.mobile-auth-btn.primary:active {
    background: #0051a8;
    transform: scale(0.98);
}

.mobile-auth-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-auth-btn.secondary:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.98);
}

/* 响应式设计 - 小屏幕优化 */
@media (max-width: 1200px) {
    .nav-link {
        padding: 0 10px;
        font-size: 11px;
    }
    
    .action-dropdown,
    .user-dropdown {
        min-width: 160px;
    }
}

@media (max-width: 1024px) {
    .nav-link {
        padding: 0 8px;
        font-size: 11px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .user-trigger {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex !important;
    }
    
    .auth-links {
        display: none;
    }
    
    .user-menu {
        display: none;
    }
    
    .action-btn {
        display: none;
    }
    
    .search-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }
    
    .logo-img {
        height: 22px;
    }
    
    .mobile-menu-container {
        width: 90%;
        max-width: 100%;
    }
}

@media (max-width: 375px) {
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .mobile-user-card .user-avatar {
        width: 48px;
        height: 48px;
    }
}

/* 动画关键帧 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
