/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #e6e6ff;
    overflow-x: hidden;
    position: relative;
    /* 确保背景完全加载，避免闪白 */
    background-color: #0f0c29;
}

/* 背景粒子效果 */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* 科技感背景装饰 */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 210, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 210, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

/* 磨砂玻璃效果 */
.glass-panel {
      margin-left: auto;
  margin-right: auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    transition: all 0.3s ease;
}

.glass-panel::before {
    display: none; 
}

.glass-panel:hover::before {
    opacity: 1;
}

/* 霓虹文字效果 */
.neon-text {
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    animation: neonGlow 2s ease-in-out infinite alternate;
}

.neon-text-up {
    display: none; 
}

/* 霓虹按钮效果 */
.neon-btn {
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.neon-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.neon-btn:hover::before {
    left: 100%;
}

.neon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

/* 玻璃按钮效果 */
.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e6e6ff;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

/* 动画效果 */
@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes neonGlow {
    from { filter: brightness(1) drop-shadow(0 0 5px rgba(0, 210, 255, 0.5)); }
    to { filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 210, 255, 0.8)); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* 搜索功能样式 */
.search-section {
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.search-section.collapsed {
    padding: 15px 30px;
    max-height: 80px;
}

.search-section.collapsed .sort-controls {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    max-height: 0;
    margin-top: 0;
}

.search-section.expanded {
    max-height: 300px;
}

.search-section.expanded .sort-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 200px;
    margin-top: 10px;
}

/* 无商品显示样式 */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin: 20px 0;
}

.no-products::before {
    content: '🔍';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #00d2ff;
    z-index: 2;
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 60px 15px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 210, 255, 0.3);
    border-radius: 25px;
    color: #e6e6ff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clear-btn-icon {
    position: absolute;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ff6b6b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.clear-btn-icon:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ffffff;
    transform: scale(1.1);
}

.search-input::placeholder {
    color: rgba(230, 230, 255, 0.6);
}

.search-input:focus {
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 15px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 210, 255, 0.2);
    color: #ffffff;
}

.suggestion-item.active {
    background: rgba(0, 210, 255, 0.3);
    color: #ffffff;
}

.suggestion-icon {
    color: #00d2ff;
    font-size: 0.9rem;
}

.sort-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.sort-label {
    color: #b0b0ff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.sort-slider {
    position: relative;
    width: 320px;
}

.sort-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transform: translateY(-50%);
}

.sort-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 33.33%;
}

.sort-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sort-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
}

.sort-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sort-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sort-option.active .sort-dot {
    background: #00d2ff;
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    transform: scale(1.2);
}

.sort-text {
    font-size: 0.8rem;
    color: #b0b0ff;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-option.active .sort-text {
    color: #ffffff;
    font-weight: 600;
}

/* 促销横幅样式 */
.promotion-banner {
    padding: 30px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.promotion-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(122, 63, 255, 0.1));
    z-index: -1;
}

.promotion-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-hearts i {
    position: absolute;
    color: rgba(255, 105, 180, 0.6);
    font-size: 20px;
    animation: floatHeart 4s ease-in-out infinite;
}

.floating-hearts i:nth-child(1) {
    top: 20%;
    left: 80%;
    animation-delay: 0s;
}

.floating-hearts i:nth-child(2) {
    top: 60%;
    left: 10%;
    animation-delay: 1.5s;
}

.floating-hearts i:nth-child(3) {
    top: 80%;
    left: 70%;
    animation-delay: 3s;
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.2); opacity: 1; }
}

.promotion-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}

.promotion-banner h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.promotion-banner p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #c0c0ff;
    line-height: 1.6;
}

.promotion-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.1rem;
}

.promotion-btn i {
    transition: transform 0.3s ease;
}

.promotion-btn:hover i {
    transform: translateX(5px);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

/* 代运专享优惠码区域 */
.shipping-coupon {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.shipping-coupon h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.coupon-code {
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
    margin: 8px 0;
    letter-spacing: 2px;
    color: #ffeb3b;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.coupon-desc {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.coupon-btn {
    background: linear-gradient(to right, #4CAF50, #8BC34A);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(75, 195, 75, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.coupon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 195, 75, 0.6);
}

.coupon-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(75, 195, 75, 0.4);
}

/* 顶部导航栏样式 */
header {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.menu-btn {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

/* Logo容器样式 */
.logo-container {
    position: relative;
    display: inline-block;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3), transparent 70%);
    border-radius: 50%;
    animation: logoGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.sidebar.active {
    left: 0;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.1), rgba(122, 63, 255, 0.1));
    z-index: -1;
}

/* 侧边栏标题区域 */
.sidebar-title {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

/* Logo样式 */
.sidebar-title .logo-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

.sidebar-title .logo-image:hover {
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8));
    transform: scale(1.05);
}

/* 侧边栏标题文字样式 */
.sidebar-title h2 {
    margin-bottom: 8px;
    font-size: 1.6rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.9rem;
    color: #b0b0ff;
    letter-spacing: 2px;
    font-weight: 300;
}

.subtitle-up {
        display: none; 
}

.sidebar-links {
    padding: 30px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    color: #e6e6ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 5px 15px;
    border-radius: 12px;
}

.nav-link i {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
    color: #00d2ff;
}

.nav-link span {
    font-weight: 500;
    font-size: 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00d2ff, #7a3fff);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    color: #ffffff;
}

.nav-link:hover::before {
    transform: scaleY(1);
}

.nav-link:hover i {
    color: #7a3fff;
    transform: scale(1.2);
}

/* 主要内容区域样式 */
main {
    margin-top: 80px;
    padding: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: calc(100vh - 80px);
}

/* 确保促销横幅在主内容区域内有合适的边距 */
.promotion-banner {
    margin-top: 10px;
    margin-bottom: 30px;
    width: 100%;
}

.slogan {
    text-align: center;
    padding: 50px 30px;
    margin: 30px 0;
    position: relative;
}

.slogan h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.slogan-subtitle {
    font-size: 1rem;
    color: #b0b0ff;
    letter-spacing: 3px;
    font-weight: 300;
    margin-bottom: 20px;
}

/* 轮播消息提示样式 - 融入slogan风格 */
.carousel-tips {
    margin: 20px auto 15px;
    max-width: 600px;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* 轮播消息悬停效果 - 简化版 */
.carousel-tips:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
}

.tip-container {
    position: relative;
    height: 48px;
    overflow: hidden;
    z-index: 2;
}

.tip-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 12px;
    box-sizing: border-box;
    filter: blur(2px);
}

.tip-item.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.tip-icon {
    font-size: 14px;
    color: #00d2ff;
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
    animation: tipIconGlow 3s ease-in-out infinite alternate;
}

.tip-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.5;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 4px 0;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.indicator.active {
    background: #00d2ff;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(0, 210, 255, 0.6);
    transform: scale(1.1);
}

@keyframes tipIconGlow {
    0% {
        text-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
        transform: scale(1.05);
    }
}

/* 轮播消息响应式样式 - 简化版 */
@media (max-width: 768px) {
    .carousel-tips {
        margin: 15px auto 10px;
        max-width: 95%;
        padding: 18px 20px;
        border-radius: 18px;
    }
    
    .tip-container {
        height: 42px;
    }
    
    .tip-item {
        gap: 8px;
        padding: 0 12px;
    }
    
    .tip-icon {
        font-size: 14px;
    }
    
    .tip-text {
        font-size: 13px;
        line-height: 1.4;
        letter-spacing: 0.3px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

        .tip-text-1 {
        font-size: 11px;
        line-height: 1.2;
        letter-spacing: 0.1px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .carousel-indicators {
        gap: 6px;
        margin-top: 8px;
    }
    
    .indicator {
        width: 5px;
        height: 5px;
    }
    
    .indicator.active {
        transform: scale(1.2);
    }
    
    .indicator:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .carousel-tips {
        margin: 12px auto 8px;
        padding: 16px 18px;
        border-radius: 16px;
        backdrop-filter: blur(10px) saturate(160%);
    }
    
    .tip-container {
        height: 38px;
    }
    
    .tip-item {
        gap: 8px;
        padding: 0 12px;
        align-items: flex-start;
        padding-top: 4px;
    }
    
    .tip-text {
        font-size: 12px;
        line-height: 1.4;
        letter-spacing: 0.2px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-wrap: break-word;
        hyphens: auto;
    }

        .tip-text-1 {
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: 0.2px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .tip-icon {
        font-size: 13px;
        margin-top: 2px;
    }
    
    .carousel-indicators {
        gap: 5px;
        margin-top: 7px;
    }
    
    .indicator {
        width: 4px;
        height: 4px;
    }
    
    .indicator.active {
        transform: scale(1.3);
        box-shadow: 
            0 0 8px rgba(0, 210, 255, 0.5),
            0 0 15px rgba(122, 63, 255, 0.25);
    }
    
    .indicator:hover {
        transform: scale(1.1);
    }
    
    @keyframes tipIconGlow {
        0% {
            filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.3)) 
                    drop-shadow(0 0 8px rgba(122, 63, 255, 0.15));
            transform: scale(1);
        }
        100% {
            filter: drop-shadow(0 0 12px rgba(0, 210, 255, 0.6)) 
                    drop-shadow(0 0 18px rgba(122, 63, 255, 0.4));
            transform: scale(1.05);
        }
    }
}

/* 超小屏幕优化 (≤425px) */
@media (max-width: 425px) {
    .carousel-tips {
        margin: 10px auto 6px;
        max-width: 98%;
        padding: 14px 16px;
        border-radius: 14px;
    }
    
    .tip-container {
        height: 44px;
    }
    
    .tip-item {
        gap: 6px;
        padding: 0 8px;
        align-items: flex-start;
        padding-top: 2px;
    }
    
    .tip-text {
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: 0.1px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-wrap: break-word;
        hyphens: auto;
        max-width: calc(100% - 20px);
    }

        .tip-text-1 {
        font-size: 9px;
        line-height: 1.2;
        letter-spacing: 0.1px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        word-wrap: break-word;
        hyphens: auto;
        max-width: calc(100% - 20px);
    }
    
    .tip-icon {
        font-size: 12px;
        margin-top: 3px;
        flex-shrink: 0;
    }
    
    .carousel-indicators {
        gap: 4px;
        margin-top: 6px;
    }
    
    .indicator {
        width: 3px;
        height: 3px;
    }
    
    .indicator.active {
        transform: scale(1.4);
    }
}

/* 交互式科技线条 */
.tech-line-interactive {
    position: relative;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-line-base {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    margin: 0 auto;
    border-radius: 1px;
    position: relative;
    transition: all 0.4s ease;
}

.tech-line-base::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #7a3fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(122, 63, 255, 0.8);
    transition: all 0.3s ease;
}

/* 粒子效果容器 */
.tech-line-particles {
    position: absolute;
    top: -50px;
    left: -60px;
    right: -60px;
    bottom: -30px;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

/* 搜索粒子动画 - 多种商品图标 */
.search-particle {
    position: absolute;
    width: 24px;
    height: 24px;
    background: transparent;
    animation: searchParticleFloat 5s ease-in-out infinite;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

/* 放大镜图标 */
.search-particle-magnifier::before {
    content: '🔍';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconSpin 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
}

/* 购物车图标 */
.search-particle-cart::before {
    content: '🛒';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconBounce 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.6));
}

/* 爱心图标 */
.search-particle-heart::before {
    content: '💖';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 20, 147, 0.6));
}

/* 星星图标 */
.search-particle-star::before {
    content: '⭐';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconTwinkle 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* 礼物图标 */
.search-particle-gift::before {
    content: '🎁';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconShake 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(50, 205, 50, 0.6));
}

/* 钻石图标 */
.search-particle-diamond::before {
    content: '💎';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconSparkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(138, 43, 226, 0.6));
}

/* 皇冠图标 */
.search-particle-crown::before {
    content: '👑';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconFloat 4.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* 购物袋图标 */
.search-particle-bag::before {
    content: '🛍️';
    position: absolute;
    top: -2px;
    left: -2px;
    font-size: 18px;
    opacity: 0.9;
    animation: searchIconSwing 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 69, 0, 0.6));
}

@keyframes searchParticleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.3);
        filter: blur(0px);
    }
    15% {
        opacity: 1;
        transform: translateY(-10px) translateX(4px) scale(1);
        filter: blur(0px);
    }
    30% {
        opacity: 1;
        transform: translateY(-15px) translateX(-3px) scale(1.1);
        filter: blur(0px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-25px) translateX(6px) scale(1);
        filter: blur(1px);
    }
    85% {
        opacity: 0.3;
        transform: translateY(-35px) translateX(-4px) scale(0.8);
        filter: blur(2px);
    }
    100% {
        opacity: 0;
        transform: translateY(-45px) translateX(10px) scale(0.2);
        filter: blur(3px);
    }
}

/* 放大镜旋转动画 */
@keyframes searchIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 购物车弹跳动画 */
@keyframes searchIconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.1); }
    50% { transform: translateY(-6px) scale(1.2); }
    75% { transform: translateY(-3px) scale(1.1); }
}

/* 爱心脉冲动画 */
@keyframes searchIconPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* 星星闪烁动画 */
@keyframes searchIconTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    25% { transform: scale(1.2) rotate(90deg); opacity: 1; }
    50% { transform: scale(0.8) rotate(180deg); opacity: 0.7; }
    75% { transform: scale(1.1) rotate(270deg); opacity: 1; }
}

/* 礼物摇摆动画 */
@keyframes searchIconShake {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-2px) rotate(-5deg); }
    50% { transform: translateX(2px) rotate(5deg); }
    75% { transform: translateX(-1px) rotate(-3deg); }
}

/* 钻石闪耀动画 */
@keyframes searchIconSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); filter: brightness(1); }
    33% { transform: scale(1.2) rotate(120deg); filter: brightness(1.5); }
    66% { transform: scale(0.9) rotate(240deg); filter: brightness(1.2); }
}

/* 皇冠浮动动画 */
@keyframes searchIconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.1); }
}

/* 购物袋摆动动画 */
@keyframes searchIconSwing {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    25% { transform: rotate(10deg) translateX(1px); }
    50% { transform: rotate(0deg) translateX(0); }
    75% { transform: rotate(-10deg) translateX(-1px); }
}

/* 嵌入式搜索功能区 */
.search-section-embedded {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 20px;
    padding: 0 25px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-section-embedded.expanded {
    max-height: 300px;
    opacity: 1;
    padding: 25px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(0, 210, 255, 0.2);
}

/* 悬停效果 */
.tech-line-interactive:hover .tech-line-base {
    width: 120px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.tech-line-interactive:hover .tech-line-base::after {
    width: 12px;
    height: 12px;
    box-shadow: 0 0 20px rgba(122, 63, 255, 1);
}

/* 展开状态样式 */
.tech-line-interactive.expanded .tech-line-base {
    width: 200px;
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

.tech-line-interactive.expanded .tech-line-base::after {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #00d2ff, #ff00cc);
    box-shadow: 0 0 25px rgba(255, 0, 204, 0.8);
}

/* 商品展示区域样式 */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 35px;
    padding: 30px 20px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* 商品卡片样式 */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 210, 255, 0.2);
}

.product-card:hover::before {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(122, 63, 255, 0.1));
}

/* 商品链接样式 */
.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* 商品图片容器 */
.product-link img {
    width: 100%;
    aspect-ratio: 1/1; /* 所有设备都保持1:1比例 */
    object-fit: cover; /* 确保图片填充整个容器 */
    border-radius: 20px 20px 0 0;
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover .product-link img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.2);
}

/* 商品信息容器 */
.product-info {
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* 商品标题 */
.product-link h3 {
    margin: 15px;
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

/* 商品价格 */
.product-link .price {
    margin: 0 15px 15px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    /* 搜索功能移动端适配 */
    .search-section {
        margin-left: 0;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .search-container {
        gap: 15px;
    }
    
    .search-input {
        padding: 12px 12px 12px 40px;
        font-size: 0.95rem;
    }
    
    .search-icon {
        left: 12px;
        font-size: 1rem;
    }
    
    .search-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .sort-btn, .clear-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: auto;
        width: 100%;
    }
    
    .search-suggestions {
        border-radius: 10px;
        max-height: 200px;
    }
    
    .suggestion-item {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .subtitle-up {
        display: block;
        font-size: 0.9rem;
        color: #b0b0ff;
        letter-spacing: 2px;
        font-weight: 300;
    }
    .neon-text-up {
        display: block; 
        background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
        animation: neonGlow 2s ease-in-out infinite alternate;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    /* 手机端商品图片样式已在全局设置 */
    
    /* 手机端侧边栏完全隐藏 */
    .sidebar {
        left: -300px;
        background: transparent;
        backdrop-filter: none;
        visibility: hidden;
        opacity: 0;
    }
    
    .sidebar::before {
        background: transparent;
        opacity: 0;
        visibility: hidden;
    }
    
    /* 只有在激活状态下才显示侧边栏样式 */
    .sidebar.active {
        left: 0;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        visibility: visible;
        opacity: 1;
    }
    
    .sidebar.active::before {
        background: linear-gradient(180deg, rgba(0, 210, 255, 0.1), rgba(122, 63, 255, 0.1));
        opacity: 1;
        visibility: visible;
    }
    
    /* 手机端侧边栏展开前向左偏移30px */
    main {
        transform: translateX(-0px);
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .sidebar.active ~ main {
        transform: translateX(0);
    }

    .product-link h3 {
        font-size: 14px;
        margin: 6px;
    }

    .product-link .price {
        font-size: 12px;
        margin: 0 6px 6px;
    }
    
    .product-info {
        padding: 8px;
    }
    
    /* 平板设备促销横幅响应式 */
    .promotion-banner {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .promotion-content {
        margin-bottom: 12px;
    }
    
    .promotion-banner h3 {
        font-size: 1.5rem;
    }
    
    .promotion-banner p {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .promotion-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* 平板设备代运优惠码响应式 */
    .shipping-coupon {
        margin-top: 12px;
        padding: 12px;
    }
    
    .shipping-coupon h4 {
        font-size: 1.1rem;
    }
    
    .coupon-code {
        font-size: 1.3rem;
        padding: 4px 12px;
    }
    
    .coupon-desc {
        font-size: 0.85rem;
    }
    
    .coupon-btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }
}

/* 平板设备 */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
        padding: 20px;
    }
}

/* 更小屏幕的设备 */
@media screen and (max-width: 480px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
        padding: 10px;
    }
    
    /* 手机端标题优化 - 防止换行 */
    .slogan h2 {
        font-size: 1.8rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 1.2;
    }
    
    .slogan {
        padding: 30px 15px;
    }
    
    /* 手机端排序滑块优化 */
    .sort-slider {
        width: 280px;
    }
    
    .sort-option {
        padding: 8px 4px;
        min-width: 60px;
    }
    
    .sort-text {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50px;
        text-align: center;
    }
    
    .sort-dot {
        width: 14px;
        height: 14px;
    }
    
    .sort-options {
        padding: 0 5px;
    }
    
        .subtitle-up {
        display: block;
        font-size: 0.9rem;
        color: #b0b0ff;
        letter-spacing: 2px;
        font-weight: 300;
    }
    
        .neon-text-up {
        display: block; 
        background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
        animation: neonGlow 2s ease-in-out infinite alternate;
    }

    .product-card {
        border-radius: 10px;
    }
    
    .product-link img {
        border-radius: 10px 10px 0 0;
    }
    
    .product-info {
        padding: 6px;
    }
    
    .product-link h3 {
        font-size: 12px;
        margin: 4px;
        line-height: 1.2;
    }
    
    .product-link .price {
        font-size: 11px;
        margin: 0 4px 4px;
    }
    
    /* 手机设备促销横幅响应式 */
    .promotion-banner {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .promotion-content {
        padding: 5px;
        margin-bottom: 10px;
    }
    
    .promotion-banner h3 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .promotion-banner p {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .promotion-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 25px;
    }
    
    .promotion-btn i {
        margin-left: 5px;
    }
    
    /* 手机设备代运优惠码响应式 */
    .shipping-coupon {
        margin-top: 10px;
        padding: 10px;
    }
    
    .shipping-coupon h4 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .coupon-code {
        font-size: 1.2rem;
        padding: 3px 10px;
        margin: 5px 0;
    }
    
    .coupon-desc {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .coupon-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* 超小屏幕设备优化 (320px-400px) */
@media screen and (max-width: 400px) {
    /* 标题进一步优化 */
    .slogan h2 {
        font-size: 1.5rem !important;
    }
    
    .slogan {
        padding: 25px 10px;
    }
    
    /* 排序滑块进一步优化 */
    .sort-slider {
        width: 260px;
    }
    
    .sort-option {
        padding: 6px 2px;
        min-width: 55px;
    }
    
    .sort-text {
        font-size: 0.65rem;
        max-width: 45px;
    }
    
    .sort-dot {
        width: 12px;
        height: 12px;
    }
    
    .sort-label {
        font-size: 0.8rem;
    }
    
    /* 超小屏幕商品网格优化 */
    .products {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
        padding: 8px;
    }
}


.add-to-cart-btn {
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #187bcd;
}

/* 平板端适配 (769px - 1023px) */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .sidebar {
        left: -280px;  /* 平板端默认隐藏侧边栏 */
        width: 280px;
    }
        .subtitle-up {
        display: block;
        font-size: 0.9rem;
        color: #b0b0ff;
        letter-spacing: 2px;
        font-weight: 300;
    }
    .neon-text-up {
        display: block; 
        background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
        animation: neonGlow 2s ease-in-out infinite alternate;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    main {
        margin-left: 0;
        margin-top: 80px;
        padding: 20px;
    }
    
    .menu-btn {
        display: flex;  /* 显示菜单按钮 */
    }
    
    /* 平板端显示顶部栏logo */
    header {
        display: flex;
        padding: 1rem 2rem;
    }
    
    header .logo {
        display: flex;
        visibility: visible;
        opacity: 1;
    }
    
    header .logo h2 {
        font-size: 1.5rem;
        font-weight: 700;
    }
    
    header .logo .subtitle {
        font-size: 0.7rem;
        color: #b0b0ff;
        letter-spacing: 1px;
        font-weight: 300;
        margin-top: 2px;
    }
    
    header .logo-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        object-fit: contain;
        filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
        transition: all 0.3s ease;
    }
    
    .logo-image {
        max-width: 180px;
    }
}

/* 修改侧边栏样式，添加媒体查询 */
@media screen and (min-width: 1024px) {
    .sidebar {
        left: 0;  /* 电脑端默认显示 */
        width: 250px;  /* 统一宽度为250px */
    }
    
    .logo-image {
        max-width: 200px;  /* 大屏幕下的最大宽度 */
    }
    
    main {
        margin-left: 250px;  /* 为侧边栏留出空间 */
        width: calc(100% - 250px);
        max-width: none;
    }
    
    .menu-btn {
        display: none;  /* 隐藏菜单按钮 */
    }
    
    .products {
        max-width: 100%;
    }
    
    /* 电脑端隐藏顶部栏logo */
    header .logo {
        display: none;
    }
}

/* 移动端样式 */
@media screen and (max-width: 1023px) {
    .sidebar {
        left: -280px;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .logo-image {
        max-width: 150px;  /* 移动端稍微缩小logo */
    }
    
    main {
        margin-left: 0;
    }
}

/* 顶部导航栏的 logo 样式 */
header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

header .logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

header .logo .subtitle {
    font-size: 0.7rem;
    color: #b0b0ff;
    letter-spacing: 1px;
    font-weight: 300;
    margin-top: 2px;
}

/* 添加商标样式 */
.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 15px;
}

.logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* 登录页面的商标样式 */
.login-header .logo-image {
    margin: 0 auto 1rem;
    width: 60px;
    height: 60px;
}

.login-header .logo-image span {
    font-size: 30px;
}

/* 添加用户状态样式 */
.user-status {
    padding: 15px;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

/* 退出登录按钮样式 */
.sidebar-links a.logout {
    color: #ff4444;
}

.sidebar-links a.logout:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

/* 修改登出链接样式 */
.logout-link {
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    width: 100% !important;
    color: #ff4444 !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
    text-align: center !important;
}

.logout-link:hover {
    background-color: rgba(255, 0, 0, 0.2) !important;
}

/* 侧边栏的 logo 样式 */
.sidebar-title .logo-image {
    margin: 0 auto;
    margin-bottom: 10px;
}

/* 添加或修改购物车相关样式 */
.cart-container {
    position: relative;
    z-index: 1000;
    margin-left: auto;
}

.cart {
    position: relative;
    cursor: pointer;
    margin-right: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cart i {
    font-size: 24px;
    color: #e6e6ff;
    transition: all 0.3s ease;
}

.cart:hover {
    transform: scale(1.1);
    background: rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
}

.cart:hover i {
    color: #00d2ff;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(255, 68, 68, 0.5);
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-modal {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 380px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(122, 63, 255, 0.2));
    backdrop-filter: blur(15px);
    border-radius: 25px 25px 0 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-header button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e6e6ff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cart-header button:hover {
    background: rgba(255, 68, 68, 0.3);
    color: #ff4444;
    transform: scale(1.1);
}

.cart-items {
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    max-height: 450px;
    overflow-y: auto;
}

.cart-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    flex: 1;
    margin-left: 20px;
}

.cart-item-name {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-price {
    color: #00d2ff;
    font-weight: 700;
    font-size: 1.2rem;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(0, 210, 255, 0.3);
    transition: all 0.3s ease;
}

.cart-item:hover img {
    border-color: rgba(0, 210, 255, 0.6);
    transform: scale(1.05);
}

.remove-item {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
    margin-left: 15px;
}

.remove-item:hover {
    background: linear-gradient(45deg, #cc3333, #ff4444);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.5);
}

.cart-footer {
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 0 0 25px 25px;
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total span:last-child {
    background: linear-gradient(90deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #00d2ff, #7a3fff);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

.checkout-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkout-btn:disabled::before {
    display: none;
}

.empty-cart {
    text-align: center;
    padding: 60px 30px;
    color: #b0b0ff;
}

.empty-cart i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: rgba(0, 210, 255, 0.5);
    animation: float 3s ease-in-out infinite;
}

.empty-cart p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}
