/* ====================
   EvalShare 组件样式
==================== */

/* --------------------
   页眉样式
-------------------- */
.site-header {
    position: relative;
    background: var(--es-white);
    border-bottom: 1px solid var(--es-gray-200);
    z-index: 1000;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--es-space-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--es-space-md);
}

/* Logo */
.site-branding a {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 40px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--es-secondary);
}

/* 主导航 */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--es-space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--es-space-xs);
    padding: var(--es-space-sm) 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--es-gray-700);
    transition: color var(--es-transition-fast);
}

.nav-menu > li > a:hover {
    color: var(--es-primary);
}

.nav-menu > li.has-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 4px;
}

/* 下拉菜单 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--es-white);
    border-radius: var(--es-radius-lg);
    box-shadow: var(--es-shadow-lg);
    padding: var(--es-space-sm) 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--es-transition-normal);
}

.nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: var(--es-space-sm) var(--es-space-lg);
    font-size: 14px;
    color: var(--es-gray-700);
    transition: all var(--es-transition-fast);
}

.sub-menu li a:hover {
    background: var(--es-gray-50);
    color: var(--es-primary);
}

/* 菜单徽章 */
.menu-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--es-primary);
    color: var(--es-white);
    border-radius: var(--es-radius-sm);
    margin-left: var(--es-space-xs);
}

/* ====================
   产品下拉菜单 (Mega Menu)
==================== */
.nav-menu > li.mega-menu {
    position: static;
}

.nav-menu > li.mega-menu > .sub-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 680px;
    padding: 24px;
    border-radius: 20px;
}

.nav-menu > li.mega-menu:hover > .sub-menu {
    transform: translateX(-50%) translateY(0);
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.product-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    background: var(--es-gray-50);
    transition: all 0.2s;
    text-decoration: none;
}

.product-card:hover {
    background: var(--es-white);
    border-color: var(--es-gray-200);
    box-shadow: var(--es-shadow-md);
    transform: translateY(-2px);
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.product-icon svg {
    width: 24px;
    height: 24px;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--es-secondary);
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info p {
    font-size: 13px;
    color: var(--es-gray-500);
    margin: 0;
    line-height: 1.5;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--es-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 20px;
}

/* 产品菜单底部 */
.products-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--es-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.products-footer-text {
    font-size: 13px;
    color: var(--es-gray-500);
}

.products-footer-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--es-primary);
    text-decoration: none;
}

.products-footer-link:hover {
    text-decoration: underline;
}

/* 头部工具栏 */
.header-tools {
    display: flex;
    align-items: center;
    gap: var(--es-space-md);
}

/* ====================
   工具菜单样式
==================== */
.tools-menu {
    position: relative;
}

.tools-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--es-primary) 0%, var(--es-primary-dark) 100%);
    color: var(--es-white);
    border: none;
    border-radius: var(--es-radius-lg);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--es-transition-fast);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.tools-menu-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.tools-menu-toggle svg {
    width: 18px;
    height: 18px;
}

/* 工具下拉菜单 */
.tools-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 420px;
    background: var(--es-white);
    border-radius: var(--es-radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: var(--es-space-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--es-transition-normal);
    z-index: 1001;
}

/* 下拉箭头 */
.tools-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 40px;
    width: 16px;
    height: 16px;
    background: var(--es-white);
    transform: rotate(45deg);
    border-radius: 2px;
}

.tools-menu:hover .tools-dropdown,
.tools-menu.active .tools-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--es-space-md);
}

/* 工具卡片 */
.tool-card {
    display: flex;
    align-items: flex-start;
    gap: var(--es-space-md);
    padding: var(--es-space-md);
    background: var(--es-gray-50);
    border-radius: var(--es-radius-lg);
    border: 1px solid transparent;
    transition: all var(--es-transition-fast);
    text-decoration: none;
}

.tool-card:hover {
    background: var(--es-white);
    border-color: var(--es-gray-200);
    box-shadow: var(--es-shadow-md);
    transform: translateY(-2px);
}

.tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--es-radius-md);
    flex-shrink: 0;
}

.tool-icon svg {
    width: 24px;
    height: 24px;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--es-gray-900);
    margin: 0 0 4px 0;
}

.tool-info p {
    font-size: 12px;
    color: var(--es-gray-500);
    margin: 0;
    line-height: 1.4;
}

/* 工具菜单底部 */
.tools-footer {
    margin-top: var(--es-space-md);
    padding-top: var(--es-space-md);
    border-top: 1px solid var(--es-gray-200);
    text-align: center;
}

.tools-footer a {
    font-size: 13px;
    color: var(--es-primary);
    font-weight: 500;
}

.tools-footer a:hover {
    text-decoration: underline;
}

/* 移动端产品菜单适配 */
@media (max-width: 1024px) {
    .nav-menu > li.mega-menu > .sub-menu {
        position: fixed;
        left: var(--es-space-md);
        right: var(--es-space-md);
        transform: translateY(10px);
        width: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .nav-menu > li.mega-menu:hover > .sub-menu {
        transform: translateY(0);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-card {
        padding: 16px;
    }
    
    .product-icon {
        width: 40px;
        height: 40px;
    }
    
    .product-info h4 {
        font-size: 14px;
    }
    
    .product-info p {
        font-size: 12px;
    }
}

/* 移动端工具菜单适配 */
@media (max-width: 768px) {
    .tools-menu-toggle span {
        display: none;
    }
    
    .tools-menu-toggle {
        padding: 8px;
    }
    
    .tools-dropdown {
        position: fixed;
        top: 72px;
        left: var(--es-space-md);
        right: var(--es-space-md);
        width: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    
    .tools-dropdown::before {
        display: none;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.search-toggle,
.user-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--es-radius-full);
    color: var(--es-gray-600);
    transition: all var(--es-transition-fast);
}

.search-toggle:hover,
.user-menu-toggle:hover {
    background: var(--es-gray-100);
    color: var(--es-primary);
}

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

.user-menu-toggle {
    width: auto;
    padding: 4px 12px 4px 4px;
    gap: var(--es-space-sm);
}

.user-menu-toggle img {
    width: 32px;
    height: 32px;
    border-radius: var(--es-radius-full);
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--es-gray-700);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--es-white);
    border-radius: var(--es-radius-lg);
    box-shadow: var(--es-shadow-lg);
    padding: var(--es-space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--es-transition-normal);
    z-index: 1000;
}

/* 悬停显示（桌面端） */
.user-menu:hover .user-dropdown,
/* 点击展开（移动端和点击时） */
.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 用户菜单切换按钮 */
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--es-gray-100);
    border: none;
    border-radius: var(--es-radius);
    cursor: pointer;
    transition: all var(--es-transition-fast);
}

.user-menu-toggle:hover {
    background: var(--es-gray-200);
}

.user-menu.active .user-menu-toggle {
    background: var(--es-primary);
    color: var(--es-white);
}

.user-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--es-space-lg);
    font-size: 14px;
    color: var(--es-gray-700);
    text-decoration: none;
    transition: all var(--es-transition-fast);
}

.user-nav-menu li a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.user-nav-menu li a:hover {
    background: var(--es-gray-50);
    color: var(--es-primary);
}

.user-nav-menu li a:hover svg {
    opacity: 1;
    color: var(--es-primary);
}

.user-nav-menu li.divider {
    height: 1px;
    background: var(--es-gray-200);
    margin: 8px var(--es-space-lg);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--es-space-lg);
    margin-top: var(--es-space-sm);
    border-top: 1px solid var(--es-gray-200);
    font-size: 14px;
    color: var(--es-error);
    text-decoration: none;
    transition: all var(--es-transition-fast);
}

.logout-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

.logout-link:hover {
    background: var(--es-gray-50);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    padding: 0;
}

.menu-icon-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--es-gray-700);
    transition: all var(--es-transition-fast);
}

/* 搜索弹窗 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--es-transition-normal);
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.search-modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 var(--es-space-lg);
    background: var(--es-white);
    border-radius: var(--es-radius-xl);
    padding: var(--es-space-xl);
    box-shadow: var(--es-shadow-xl);
    transform: translateY(-20px);
    transition: transform var(--es-transition-normal);
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-close {
    position: absolute;
    top: var(--es-space-md);
    right: var(--es-space-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--es-gray-500);
    border-radius: var(--es-radius-full);
    transition: all var(--es-transition-fast);
}

.search-modal-close:hover {
    background: var(--es-gray-100);
    color: var(--es-gray-700);
}

.search-form {
    display: flex;
    gap: var(--es-space-sm);
}

.search-field {
    flex: 1;
    padding: var(--es-space-md);
    font-size: 16px;
    border: 2px solid var(--es-gray-200);
    border-radius: var(--es-radius-lg);
    transition: border-color var(--es-transition-fast);
}

.search-field:focus {
    outline: none;
    border-color: var(--es-primary);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--es-primary);
    color: var(--es-white);
    border-radius: var(--es-radius-lg);
    transition: background var(--es-transition-fast);
}

.search-submit:hover {
    background: var(--es-primary-dark);
}

/* 透明导航 */
.header-transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
}

.header-transparent .nav-menu > li > a,
.header-transparent .site-title,
.header-transparent .search-toggle,
.header-transparent .user-name {
    color: var(--es-white);
}

.header-transparent .menu-icon-bar {
    background: var(--es-white);
}

/* 固定导航 */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* --------------------
   页脚样式
-------------------- */
.site-footer {
    background: var(--es-secondary);
    color: var(--es-gray-300);
}

.footer-main {
    padding: var(--es-space-4xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--es-space-4xl);
    align-items: start;
}

/* 品牌区域 */
.footer-brand {
    text-align: left;
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--es-space-lg);
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: var(--es-space-lg);
    color: var(--es-gray-400);
}

/* 社交媒体 */
.footer-social {
    display: flex;
    gap: var(--es-space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--es-radius-md);
    transition: all var(--es-transition-fast);
}

.social-link:hover {
    background: var(--es-primary);
    transform: translateY(-2px);
}

/* 链接栏目 - 横版4列 */
.footer-columns-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--es-space-xl);
}

.footer-column {
    min-width: 0;
}

.footer-column-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--es-white);
    margin-bottom: var(--es-space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--es-space-xs);
}

.footer-links a {
    font-size: 14px;
    color: var(--es-gray-400);
    transition: all var(--es-transition-fast);
    display: inline-block;
    padding: 3px 0;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--es-white);
}

/* 底部版权 */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--es-space-lg) 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 13px;
    color: var(--es-gray-500);
}

.footer-copyright p {
    margin: 0;
}

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

.footer-legal-menu {
    display: flex;
    gap: var(--es-space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-menu a {
    font-size: 13px;
    color: var(--es-gray-500);
    transition: color var(--es-transition-fast);
}

.footer-legal-menu a:hover {
    color: var(--es-white);
}

/* 浅色页脚 */
.footer-light {
    background: var(--es-gray-100);
    color: var(--es-gray-700);
}

.footer-light .footer-logo img {
    filter: none;
}

.footer-light .footer-column-title {
    color: var(--es-gray-900);
}

.footer-light .footer-description {
    color: var(--es-gray-600);
}

.footer-light .footer-links a {
    color: var(--es-gray-600);
}

.footer-light .footer-links a:hover {
    color: var(--es-primary);
}

.footer-light .footer-bottom {
    border-top-color: var(--es-gray-300);
}

.footer-light .footer-copyright,
.footer-light .footer-legal-menu a {
    color: var(--es-gray-500);
}

/* 品牌色页脚 */
.footer-color {
    background: var(--es-primary);
    color: rgba(255,255,255,0.9);
}

.footer-color .footer-column-title {
    color: var(--es-white);
}

.footer-color .footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-color .footer-links a:hover {
    color: var(--es-white);
}

.footer-color .footer-bottom {
    border-top-color: rgba(255,255,255,0.2);
}

.footer-color .social-link {
    background: rgba(255,255,255,0.2);
}

/* --------------------
   回到顶部按钮
-------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--es-white);
    color: var(--es-gray-700);
    border-radius: var(--es-radius-full);
    box-shadow: var(--es-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--es-transition-normal);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--es-primary);
    color: var(--es-white);
    transform: translateY(-4px);
}

/* --------------------
   移动端底部导航栏（默认隐藏）
-------------------- */
.mobile-bottom-nav {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition: left var(--es-transition-normal), right var(--es-transition-normal), bottom var(--es-transition-normal), min-height var(--es-transition-normal), padding var(--es-transition-normal), border-radius var(--es-transition-normal), box-shadow var(--es-transition-normal), transform var(--es-transition-normal), opacity var(--es-transition-normal);
}

.mobile-bottom-nav-item {
    text-align: center;
    position: relative;
    min-width: 0;
    --mobile-nav-accent: var(--es-primary);
    --mobile-nav-accent-strong: var(--es-primary-dark);
    --mobile-nav-accent-shadow: rgba(255, 107, 53, 0.28);
    --mobile-nav-accent-glow: rgba(255, 107, 53, 0.22);
}

.mobile-bottom-nav-item.nav-home {
    --mobile-nav-accent: #ff6b35;
    --mobile-nav-accent-strong: #e55a2b;
    --mobile-nav-accent-shadow: rgba(255, 107, 53, 0.28);
    --mobile-nav-accent-glow: rgba(255, 107, 53, 0.22);
}

.mobile-bottom-nav-item.nav-resume {
    --mobile-nav-accent: #2563eb;
    --mobile-nav-accent-strong: #1d4ed8;
    --mobile-nav-accent-shadow: rgba(37, 99, 235, 0.24);
    --mobile-nav-accent-glow: rgba(37, 99, 235, 0.2);
}

.mobile-bottom-nav-item.nav-interview {
    --mobile-nav-accent: #0f766e;
    --mobile-nav-accent-strong: #0d9488;
    --mobile-nav-accent-shadow: rgba(15, 118, 110, 0.24);
    --mobile-nav-accent-glow: rgba(15, 118, 110, 0.2);
}

.mobile-bottom-nav-item.nav-account {
    --mobile-nav-accent: #7c3aed;
    --mobile-nav-accent-strong: #6d28d9;
    --mobile-nav-accent-shadow: rgba(124, 58, 237, 0.24);
    --mobile-nav-accent-glow: rgba(124, 58, 237, 0.2);
}

.mobile-bottom-nav-item.nav-auth {
    --mobile-nav-accent: #475569;
    --mobile-nav-accent-strong: #334155;
    --mobile-nav-accent-shadow: rgba(71, 85, 105, 0.22);
    --mobile-nav-accent-glow: rgba(71, 85, 105, 0.18);
}

.mobile-bottom-nav-item > * {
    position: relative;
    z-index: 2;
}

.mobile-bottom-nav-item svg {
    display: block;
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    flex: 0 0 22px;
    margin: 0 auto;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 16px;
    background: transparent;
    transition: transform var(--es-transition-fast), background var(--es-transition-fast), box-shadow var(--es-transition-fast), color var(--es-transition-fast);
}

.mobile-bottom-nav-item span {
    display: block;
    line-height: 1.1;
    font-weight: 500;
    max-height: 14px;
    overflow: hidden;
    opacity: 0.82;
    transition: color var(--es-transition-fast), opacity var(--es-transition-fast), transform var(--es-transition-fast), max-height var(--es-transition-fast);
}

.mobile-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 4px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--mobile-nav-accent-glow) 0%, rgba(255, 255, 255, 0) 72%);
    filter: blur(11px);
    opacity: 0.95;
    pointer-events: none;
    z-index: 1;
    animation: mobile-nav-glow-in 0.45s ease both;
}

.mobile-bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mobile-nav-accent), var(--mobile-nav-accent-strong));
    transform: translateX(-50%);
    animation: mobile-nav-indicator-in 0.42s ease both;
}

.mobile-bottom-nav-item.active svg {
    color: var(--es-white);
    background: linear-gradient(135deg, var(--mobile-nav-accent), var(--mobile-nav-accent-strong));
    box-shadow: 0 10px 20px var(--mobile-nav-accent-shadow);
    transform: translateY(-2px);
    animation: mobile-nav-active-icon-in 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-bottom-nav-item.active span {
    color: var(--es-secondary);
    opacity: 1;
    font-weight: 700;
    animation: mobile-nav-active-label-in 0.35s ease both;
}

.mobile-bottom-nav.is-condensed {
    left: 18px;
    right: 18px;
    bottom: 8px;
    min-height: 56px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0));
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(26, 26, 46, 0.13);
}

.mobile-bottom-nav.is-condensed .mobile-bottom-nav-item {
    gap: 1px;
}

.mobile-bottom-nav.is-condensed .mobile-bottom-nav-item svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    padding: 7px;
}

.mobile-bottom-nav.is-condensed .mobile-bottom-nav-item span {
    max-height: 0;
    opacity: 0;
    transform: translateY(5px);
}

.mobile-bottom-nav.is-condensed .mobile-bottom-nav-item.active::before {
    top: 2px;
    width: 50px;
    height: 50px;
}

.mobile-bottom-nav.is-condensed .mobile-bottom-nav-item.active::after {
    width: 20px;
}

.mobile-bottom-nav-item:hover svg {
    transform: translateY(-1px);
}

@keyframes mobile-nav-active-icon-in {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.88);
    }

    42% {
        opacity: 1;
        transform: translateY(-3px) scale(1.04);
    }

    58% {
        transform: translateY(-3px) rotate(-3deg) scale(1.02);
    }

    74% {
        transform: translateY(-3px) rotate(2deg) scale(1.01);
    }

    100% {
        opacity: 1;
        transform: translateY(-2px) scale(1);
    }
}

@keyframes mobile-nav-active-label-in {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobile-nav-indicator-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleX(0.2);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes mobile-nav-glow-in {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.72);
    }

    100% {
        opacity: 0.95;
        transform: translateX(-50%) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-bottom-nav,
    .mobile-bottom-nav-item svg,
    .mobile-bottom-nav-item span,
    .mobile-bottom-nav-item.active::after,
    .mobile-bottom-nav-item.active::before,
    .mobile-bottom-nav-item.active svg,
    .mobile-bottom-nav-item.active span {
        transition: none;
        animation: none;
    }
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(16px) !important;
    }
}

/* --------------------
   移动端菜单
-------------------- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--es-transition-normal);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--es-white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform var(--es-transition-normal);
}

.mobile-menu-panel.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--es-space-lg);
    border-bottom: 1px solid var(--es-gray-200);
}

.mobile-menu-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--es-gray-500);
    border-radius: var(--es-radius-full);
}

.mobile-nav {
    padding: var(--es-space-md);
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    border-bottom: 1px solid var(--es-gray-100);
}

.mobile-menu li a {
    display: block;
    padding: var(--es-space-md);
    font-size: 16px;
    color: var(--es-gray-700);
}

.mobile-menu .sub-menu {
    display: none;
    padding-left: var(--es-space-lg);
}

.mobile-menu .sub-menu.active {
    display: block;
}

/* --------------------
   响应式
-------------------- */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--es-space-2xl);
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-columns-wrapper {
        gap: var(--es-space-lg);
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    
    .site-logo {
        height: 32px;
    }
    
    .header-container {
        padding: 0 var(--es-space-md);
    }
    
    .header-tools {
        gap: var(--es-space-sm);
    }
    
    .header-tools .btn,
    .header-tools .user-name {
        display: none;
    }
    
    .search-toggle,
    .user-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .user-menu-toggle img {
        width: 28px;
        height: 28px;
    }
    
    /* 移动端搜索弹窗优化 */
    .search-modal {
        padding-top: 80px;
    }
    
    .search-modal-content {
        margin: 0 var(--es-space-md);
        padding: var(--es-space-lg);
    }
    
    .search-field {
        font-size: 16px;
        padding: var(--es-space-sm) var(--es-space-md);
    }
    
    /* 移动端菜单面板优化 */
    .mobile-menu-panel {
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-menu-header {
        padding: var(--es-space-md);
        height: 60px;
    }
    
    .mobile-nav {
        padding: var(--es-space-sm);
    }
    
    .mobile-menu li a {
        padding: var(--es-space-md);
        font-size: 15px;
    }
    
    /* 页脚优化 */
    .footer-main {
        padding: var(--es-space-2xl) 0;
    }
    
    .footer-columns-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--es-space-lg);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column-title {
        font-size: 12px;
        margin-bottom: var(--es-space-sm);
    }
    
    .footer-links li {
        margin-bottom: 2px;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 2px 0;
    }
    
    .footer-bottom {
        padding: var(--es-space-md) 0;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        gap: var(--es-space-sm);
        text-align: center;
    }
    
    .footer-copyright {
        font-size: 12px;
    }
    
    .footer-legal-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--es-space-md);
    }
    
    .footer-legal-menu a {
        font-size: 12px;
    }
    
    /* 回到顶部按钮调整位置 */
    .back-to-top {
        bottom: calc(108px + env(safe-area-inset-bottom, 0));
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    /* 底部固定导航栏 */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        min-height: 68px;
        height: auto;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0));
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(224, 224, 224, 0.95);
        border-radius: 24px;
        box-shadow: 0 14px 34px rgba(26, 26, 46, 0.16);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 1000;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    .mobile-bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: var(--es-gray-500);
        text-decoration: none;
        transition: all var(--es-transition-fast);
        padding: 4px 0;
    }
    
    .mobile-bottom-nav-item.active,
    .mobile-bottom-nav-item:hover {
        color: var(--mobile-nav-accent);
    }
    
    .mobile-bottom-nav-item svg {
        width: 22px;
        height: 22px;
    }
    
    .mobile-bottom-nav-item span {
        font-size: 11px;
    }
    
    /* 页面底部增加padding，避免被底部导航遮挡 */
    .site-footer {
        padding-bottom: calc(var(--es-space-lg) + 84px + env(safe-area-inset-bottom, 0));
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 56px;
    }
    
    .site-logo {
        height: 28px;
    }
    
    .footer-columns-wrapper {
        grid-template-columns: 1fr;
        gap: var(--es-space-md);
    }
    
    .footer-column {
        text-align: left;
        padding: var(--es-space-sm) 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .footer-column:last-child {
        border-bottom: none;
    }
    
    .footer-column-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: var(--es-space-sm);
        cursor: pointer;
    }
    
    .footer-column-title::after {
        content: '+';
        font-size: 18px;
        font-weight: 300;
    }
    
    .footer-column.expanded .footer-column-title::after {
        content: '-';
    }
    
    .footer-links {
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--es-transition-normal);
    }
    
    .footer-column.expanded .footer-links {
        max-height: 200px;
    }
    
    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 8px;
        min-height: 64px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0));
    }
    
    .mobile-bottom-nav-item svg {
        width: 20px;
        height: 20px;
        max-width: 20px;
        max-height: 20px;
        padding: 7px;
    }
    
    .mobile-bottom-nav-item span {
        font-size: 10px;
    }

    .mobile-bottom-nav.is-condensed {
        left: 12px;
        right: 12px;
        min-height: 52px;
    }
    
    .site-footer {
        padding-bottom: calc(var(--es-space-md) + 78px + env(safe-area-inset-bottom, 0));
    }

    .back-to-top {
        bottom: calc(100px + env(safe-area-inset-bottom, 0));
    }
}

/* ====================
   页眉预设样式
==================== */

/* 经典样式 (白色背景) - 默认 */
.header-default {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-default .nav-menu > li > a {
    color: #374151;
}

.header-default .nav-menu > li > a:hover {
    color: var(--es-primary);
}

/* 现代样式 (深色背景) */
.header-modern {
    background: #1a1a2e;
    border-bottom: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-modern .site-branding .site-title {
    color: #ffffff;
}

.header-modern .nav-menu > li > a {
    color: rgba(255,255,255,0.9);
}

.header-modern .nav-menu > li > a:hover {
    color: #ffffff;
}

.header-modern .search-toggle {
    color: rgba(255,255,255,0.9);
}

.header-modern .search-toggle:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.1);
}

.header-modern .user-menu-toggle {
    color: rgba(255,255,255,0.9);
}

.header-modern .user-menu-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.header-modern .btn-ghost {
    color: #ffffff;
    border-color: rgba(255,255,255,0.3);
}

.header-modern .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* 极简样式 (透明背景) */
.header-minimal {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-minimal.scrolled,
.header-minimal:hover {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-minimal .nav-menu > li > a {
    color: #374151;
}

.header-minimal.scrolled .nav-menu > li > a,
.header-minimal:hover .nav-menu > li > a {
    color: #374151;
}

/* 固定页眉 */
.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.header-sticky + .site-content,
.header-sticky ~ .site-content {
    padding-top: 72px;
}

/* 全宽页眉 */
.header-full-width .header-container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* ====================
   页眉响应式
==================== */
@media (max-width: 1024px) {
    .header-minimal {
        position: relative;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .header-minimal.scrolled,
    .header-minimal:hover {
        background: #ffffff;
        backdrop-filter: none;
    }
}
