/* ========================================
   高端头部和底部样式 - Luxe Theme
   使用 luxe- 前缀避免冲突
   ======================================== */

/* ========================================
   头部样式
   ======================================== */

.luxe-header-wrapper {
    position: relative;
}

/* 主导航栏 */
.luxe-main-header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.luxe-main-header.luxe-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.luxe-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.luxe-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

/* Logo区域 */
.luxe-brand {
    flex-shrink: 0;
}

.luxe-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.luxe-logo-link:hover {
    transform: translateY(-2px);
}

.luxe-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.luxe-logo-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.luxe-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

.luxe-site-name {
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航菜单 */
.luxe-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.luxe-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.luxe-nav-menu > li {
    position: relative;
}

.luxe-nav-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.luxe-nav-menu > li > a:hover,
.luxe-nav-menu > li.current-menu-item > a {
    color: var(--beauty-primary);
    background: rgba(255,107,157,0.08);
}

/* 下拉菜单 */
.luxe-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    margin: 5px 0 0 0;
}

.luxe-nav-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.luxe-nav-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.luxe-nav-menu .sub-menu li a:hover {
    color: var(--beauty-primary);
    background: rgba(255,107,157,0.05);
    padding-left: 25px;
}

/* 头部操作按钮区域 */
.luxe-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* 用户按钮 */
.luxe-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255,107,157,0.08);
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.luxe-user-btn:hover {
    background: rgba(255,107,157,0.15);
    transform: translateY(-2px);
}

.luxe-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--beauty-primary);
}

.luxe-user-name {
    font-size: 14px;
    font-weight: 500;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 登录/注册按钮 */
.luxe-login-btn,
.luxe-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: rgba(255,107,157,0.1);
    color: var(--beauty-primary);
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.luxe-login-btn:hover,
.luxe-logout-btn:hover {
    background: var(--beauty-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,157,0.3);
}

.luxe-register-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--beauty-primary);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.luxe-register-btn:hover {
    background: var(--beauty-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,157,0.4);
}

.luxe-search-toggle,
.luxe-mobile-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,107,157,0.1);
    color: var(--beauty-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.luxe-search-toggle:hover {
    background: var(--beauty-primary);
    color: #fff;
    transform: translateY(-2px);
}

.luxe-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.luxe-mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--beauty-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.luxe-mobile-toggle:hover {
    background: var(--beauty-primary);
}

.luxe-mobile-toggle:hover span {
    background: #fff;
}

/* 搜索弹出层 */
.luxe-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.luxe-search-overlay.luxe-active {
    opacity: 1;
    visibility: visible;
}

.luxe-search-container {
    max-width: 700px;
    width: 90%;
    position: relative;
}

.luxe-search-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.luxe-search-close:hover {
    background: #fff;
    color: #333;
    transform: rotate(90deg);
}

.luxe-search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.luxe-search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: #fff;
    color: #333;
    outline: none;
}

.luxe-search-submit {
    width: 60px;
    height: 60px;
    border: none;
    background: var(--beauty-primary);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.luxe-search-submit:hover {
    background: var(--beauty-accent);
    transform: scale(1.1);
}

.luxe-search-suggestions {
    text-align: center;
}

.luxe-search-hint {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-bottom: 15px;
}

.luxe-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.luxe-search-tag {
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.luxe-search-tag:hover {
    background: var(--beauty-primary);
    border-color: var(--beauty-primary);
    transform: translateY(-2px);
}

/* 移动端菜单 */
.luxe-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.luxe-mobile-menu.luxe-active {
    right: 0;
}

.luxe-mobile-menu-content {
    height: 100%;
    overflow-y: auto;
}

.luxe-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, var(--beauty-primary) 0%, var(--beauty-accent) 100%);
}

.luxe-mobile-menu-title {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.luxe-mobile-menu-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.luxe-mobile-menu-close:hover {
    background: #fff;
    color: var(--beauty-primary);
}

.luxe-mobile-nav {
    padding: 20px 0;
}

.luxe-mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.luxe-mobile-nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.luxe-mobile-nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.luxe-mobile-nav-menu li a:hover,
.luxe-mobile-nav-menu li.current-menu-item a {
    color: var(--beauty-primary);
    background: rgba(255,107,157,0.05);
    padding-left: 30px;
}

/* ========================================
   底部样式 - 美妆主题配色
   ======================================== */

.luxe-footer-wrapper {
    background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%);
    color: #666;
    margin-top: 60px;
    position: relative;
    border-top: 3px solid var(--beauty-primary);
}

.luxe-footer-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--beauty-primary), transparent);
}

.luxe-footer-main {
    padding: 60px 0 40px;
}

.luxe-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.luxe-footer-col {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.luxe-footer-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.luxe-footer-title i {
    color: var(--beauty-primary);
    font-size: 24px;
}

.luxe-footer-desc {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
}

.luxe-social-links {
    display: flex;
    gap: 12px;
}

.luxe-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--beauty-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(255,107,157,0.15);
}

.luxe-social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.3);
}

.luxe-social-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.luxe-social-twitter:hover {
    background: #1da1f2;
    color: #fff;
}

.luxe-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
}

.luxe-social-youtube:hover {
    background: #ff0000;
    color: #fff;
}

.luxe-footer-heading {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 12px;
}

.luxe-footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--beauty-primary);
    border-radius: 2px;
}

.luxe-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.luxe-footer-menu li {
    margin-bottom: 12px;
}

.luxe-footer-menu li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.luxe-footer-menu li a:hover {
    color: var(--beauty-primary);
    padding-left: 5px;
}

.luxe-footer-menu li a i {
    font-size: 12px;
    transition: all 0.3s ease;
}

.luxe-footer-menu li a:hover i {
    transform: translateX(3px);
}

.luxe-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.luxe-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.luxe-contact-list li i {
    color: var(--beauty-primary);
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
}

.luxe-contact-list li a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.luxe-contact-list li a:hover {
    color: var(--beauty-primary);
}

/* 底部版权 */
.luxe-footer-bottom {
    background: rgba(255,107,157,0.05);
    border-top: 1px solid rgba(255,107,157,0.15);
    padding: 25px 0;
}

.luxe-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.luxe-copyright p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

.luxe-copyright a {
    color: var(--beauty-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.luxe-copyright a:hover {
    color: var(--beauty-accent);
}

.luxe-footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.luxe-footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.luxe-footer-links a:hover {
    color: var(--beauty-primary);
}

.luxe-separator {
    color: rgba(255,107,157,0.3);
}

/* 返回顶部按钮 */
.luxe-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 5px;
    width: 50px;
    height: 50px;
    background: var(--beauty-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,107,157,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 18px;
}

.luxe-back-to-top.luxe-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.luxe-back-to-top:hover {
    background: var(--beauty-accent);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255,107,157,0.5);
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 1200px) {
    .luxe-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .luxe-navigation {
        display: none;
    }
    
    .luxe-mobile-toggle {
        display: flex;
    }
    
    .luxe-user-name {
        display: none;
    }
    
    .luxe-login-btn span,
    .luxe-register-btn span {
        display: none;
    }
    
    .luxe-login-btn,
    .luxe-register-btn,
    .luxe-logout-btn {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
    
    .luxe-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .luxe-container {
        padding: 0 15px;
    }
    
    .luxe-header-content {
        padding: 12px 0;
        gap: 15px;
    }
    
    .luxe-logo-img {
        height: 40px;
    }
    
    .luxe-logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .luxe-site-name {
        font-size: 20px;
    }
    
    .luxe-search-toggle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .luxe-footer-main {
        padding: 40px 0 30px;
    }
    
    .luxe-footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .luxe-back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .luxe-search-container {
        width: 95%;
    }
    
    .luxe-search-input {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .luxe-search-submit {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .luxe-mobile-menu {
        width: 280px;
    }
    
    .luxe-footer-title {
        font-size: 18px;
    }
    
    .luxe-footer-heading {
        font-size: 16px;
    }
    
    .luxe-header-actions {
        gap: 8px;
    }
}
