/* 全局样式 */
* {
    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;
    background: transparent;
}

/* 科技感背景装饰 */
.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 fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 顶部导航栏样式 */
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); }
}

.subtitle-up {
    display: none; 
}

/* 购物车容器 */
.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-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(0, 210, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
    z-index: -1;
}

/* 购物车模态框 */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;

    width: 100%;

    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

.cart-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(30px) saturate(200%);
    border-radius: 25px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 210, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow: hidden;
    animation: cartSlideIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes cartSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateX(15deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateX(0deg);
    }
}

.cart-modal.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.cart-modal-header {
    padding: 25px 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(0, 210, 255, 0.05));
    position: relative;
    overflow: hidden;
}

.cart-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.cart-modal-header h2 {
    color: #e6e6ff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #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);
    position: relative;
    z-index: 1;
}

.cart-modal-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

.cart-modal-close {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #e6e6ff;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.cart-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 68, 68, 0.8);
    border-color: rgba(255, 68, 68, 0.6);
    transform: scale(1.2) rotate(90deg);
    box-shadow: 
        0 8px 20px rgba(255, 68, 68, 0.4),
        0 0 15px rgba(255, 68, 68, 0.5);
}

.cart-items {
    padding: 25px 30px;
    max-height: 450px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.02);
}

.cart-items::-webkit-scrollbar {
    width: 8px;
}

.cart-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d2ff, #7a3fff);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7a3fff, #ff00cc);
}

.cart-footer {
    padding: 25px 30px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05), 
        rgba(0, 210, 255, 0.02));
}

.cart-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00d2ff;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #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);
    letter-spacing: 1px;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    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-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);
}

/* 主要内容区域 */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 6rem 2rem 2rem 2rem; /* 增加顶部padding避免被header遮挡 */
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

/* 卡片样式 */
.card {
    width: 100%;
    max-width: 800px;
    min-height: 650px;
    height: auto;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
    filter: drop-shadow(0 20px 40px rgba(0, 210, 255, 0.15));
}

.card:active {
    cursor: grabbing;
}

/* 卡片正反面通用样式 */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
}

.card-face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 210, 255, 0.1) 0%, 
        rgba(122, 63, 255, 0.05) 50%, 
        rgba(255, 0, 204, 0.1) 100%);
    border-radius: 25px;
    z-index: -1;
    opacity: 0.7;
}

.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* 标题样式 */
.front h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #00d2ff, #7a3fff, #ff00cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
    position: relative;
    letter-spacing: 2px;
}

.front h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

/* 联系信息样式 */
.contact-info {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    padding: 0 1rem;
}

.contact-category {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.contact-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 210, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.contact-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 210, 255, 0.05) 0%, 
        rgba(122, 63, 255, 0.03) 50%, 
        rgba(255, 0, 204, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-category:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 210, 255, 0.25),
        0 0 30px rgba(0, 210, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-category:hover::before {
    left: 100%;
}

.contact-category:hover::after {
    opacity: 1;
}

.contact-category h2 {
    color: #00d2ff;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
    text-align: center;
    position: relative;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #00d2ff, #7a3fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-category h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00d2ff, #7a3fff, #ff00cc);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* 链接样式 */
.contact-info a {
    color: #e6e6ff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: block;
    margin-bottom: 0.8rem;
    padding: 15px 25px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(150%);
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.contact-info a::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 ease;
}

.contact-info a:hover {
    color: #ffffff;
    background: rgba(0, 210, 255, 0.2);
    border-color: rgba(0, 210, 255, 0.6);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 15px 30px rgba(0, 210, 255, 0.3),
        0 0 25px rgba(0, 210, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.8);
}

.contact-info a:hover::before {
    left: 100%;
}

/* 高亮链接样式 */
.highlight-link {
    background: linear-gradient(135deg, #00d2ff, #7a3fff, #ff00cc) !important;
    color: white !important;
    padding: 18px 30px !important;
    border-radius: 20px !important;
    font-weight: 800 !important;
    box-shadow: 
        0 8px 25px rgba(0, 210, 255, 0.4),
        0 0 20px rgba(0, 210, 255, 0.3) !important;
    margin-top: 15px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
}

.highlight-link:hover {
    transform: translateY(-8px) scale(1.08) !important;
    box-shadow: 
        0 20px 40px rgba(0, 210, 255, 0.6),
        0 0 40px rgba(0, 210, 255, 0.5) !important;
    background: linear-gradient(135deg, #ff00cc, #7a3fff, #00d2ff) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* 社交图标样式 */
.social-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 18px;
    margin-top: 25px;
    padding: 0 15px;
    justify-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    backdrop-filter: blur(15px) saturate(180%);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 0 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 210, 255, 0.4), 
        rgba(122, 63, 255, 0.3),
        transparent);
    transition: left 0.6s ease;
}

.social-icons a:hover::before {
    left: 100%;
}

.social-icons a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 210, 255, 0.1) 0%, 
        rgba(122, 63, 255, 0.05) 50%, 
        rgba(255, 0, 204, 0.1) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-icons a:hover {
    transform: translateY(-8px) scale(1.15) rotate(5deg) !important;
    background: rgba(0, 210, 255, 0.25) !important;
    border-color: #00d2ff !important;
    box-shadow: 
        0 15px 35px rgba(0, 210, 255, 0.5),
        0 0 30px rgba(0, 210, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.social-icons a:hover::after {
    opacity: 1;
}

.social-icons img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    filter: brightness(0.9) saturate(1.1);
}

.social-icons img:hover {
    filter: brightness(1.4) saturate(1.3) drop-shadow(0 0 20px rgba(0, 210, 255, 0.8));
    transform: scale(1.2) rotate(-5deg);
}

/* 微信弹窗样式 */
.wechat-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    padding: 40px;
    border-radius: 25px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 210, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    z-index: 1000;
    animation: popupSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 90vw;
    max-height: 90vh;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotateY(0deg);
    }
}

.wechat-popup img {
    max-width: 100%;
    border-radius: 20px;
    border: 3px solid rgba(0, 210, 255, 0.5);
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.3),
        0 0 25px rgba(0, 210, 255, 0.4);
    transition: all 0.3s ease;
}

.wechat-popup img:hover {
    transform: scale(1.02);
    border-color: rgba(0, 210, 255, 0.8);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 35px rgba(0, 210, 255, 0.6);
}

.wechat-popup .close {
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #e6e6ff;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.wechat-popup .close:hover {
    color: #ffffff;
    background: rgba(255, 68, 68, 0.8);
    border-color: rgba(255, 68, 68, 0.6);
    transform: scale(1.15) rotate(90deg);
    box-shadow: 
        0 8px 20px rgba(255, 68, 68, 0.4),
        0 0 15px rgba(255, 68, 68, 0.5);
}

/* 遮罩层样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
    animation: overlayFadeIn 0.4s ease-in-out;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

/* 购物车通用样式 */
.cart {
    position: relative;
    cursor: pointer;
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.cart i {
    font-size: 28px;
    color: #333;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

.cart-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 1002;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    border-radius: 15px 15px 0 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.close-cart:hover {
    color: #333;
}

.cart-items {
    max-height: 350px;
    overflow-y: auto;
    padding: 15px 20px;
}

.cart-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cart-item-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.cart-item-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-item-price span {
    color: #ff4444;
    font-weight: bold;
}

.cart-item-price button {
    padding: 4px 8px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}



/* 购物车底部 */
.cart-footer {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 1002;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    border-radius: 0 0 15px 15px;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: right;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #1e90ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background: #0066cc;
}

.empty-cart {
    text-align: center;
    padding: 30px 20px;
    color: #999;
}

/* 顶部导航栏的 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;
    background: linear-gradient(45deg, #00d2ff, #0080ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
}

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;
}

/* 平板端适配 (769px - 1023px) */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    .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-top: 20px;
    }
    
    .menu-btn {
        display: flex;  /* 显示菜单按钮 */
    }
    
    /* 平板端显示顶部栏logo */
    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);
        transition: all 0.3s ease;
        background: rgba(255, 255, 255, 0.05);
        pointer-events: auto;
    }
    
    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;
    }
    
    .container {
        max-width: 85%;
        margin: 0 auto;  /* 居中显示 */
        padding: 20px;
        margin-top: 100px;  /* 预留顶部栏位置 */
    }
    
    /* 平板端card优化 - 更像桌面端体验 */
    .card {
        max-width: 700px;
        min-height: 580px;
        margin: 20px auto;
        transform: scale(0.95);
        transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .card:hover {
        transform: scale(0.98) translateY(-5px);
        filter: drop-shadow(0 25px 50px rgba(0, 210, 255, 0.2));
    }
    
    .card-face {
        padding: 2.5rem;
        border-radius: 20px;
    }
    
    .front h1 {
        font-size: 2.2rem;
        margin-bottom: 30px;
        letter-spacing: 1.5px;
    }
    
    .contact-info {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-top: 1.5rem;
    }
    
    .contact-category {
        padding: 1.8rem;
        border-radius: 18px;
        transition: all 0.3s ease;
    }
    
    .contact-category:hover {
        transform: translateY(-5px) scale(1.01);
        box-shadow: 
            0 15px 30px rgba(0, 210, 255, 0.2),
            0 0 25px rgba(0, 210, 255, 0.25);
    }
    
    .contact-category h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .contact-info a {
        font-size: 0.95rem;
        padding: 10px 16px;
        margin: 4px;
        display: inline-block;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .contact-info a:hover {
        background: rgba(0, 210, 255, 0.15);
        border-color: rgba(0, 210, 255, 0.4);
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 210, 255, 0.2);
    }
    
    .social-icons {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 15px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .social-icons a:hover {
        background: rgba(0, 210, 255, 0.2);
        border-color: rgba(0, 210, 255, 0.5);
        transform: translateY(-3px) scale(1.1);
        box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    }
    
    .contact-form {
        padding: 25px;
        margin: 20px 0;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(0, 210, 255, 0.4);
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 16px;
        width: 100%;
        border-radius: 12px;
        background: linear-gradient(135deg, #00d2ff, #7a3fff);
        border: none;
        transition: all 0.3s ease;
    }
    
    .submit-btn:hover {
        background: linear-gradient(135deg, #00b8e6, #6b35e6);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    }
    
    .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;  /* 隐藏菜单按钮 */
    }
    
    /* 电脑端隐藏顶部栏logo */
    header .logo {
        display: none;
    }
}

/* 移动端样式 */
@media screen and (max-width: 1023px) {

    
    .sidebar.active {
        left: 0;
    }
    
    .logo-image {
        max-width: 150px;  /* 移动端稍微缩小logo */
    }
    
    main {
        margin-left: 0;
    }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 100px 15px 20px;
    }
    
    .card {
        width: 90%;
        max-width: 350px;
        height: auto;
        min-height: 500px;
        margin: 0 auto;
    }

    .front h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .contact-category {
        padding: 15px;
        margin-bottom: 15px;
    }

    .contact-category h2 {
        font-size: 1rem;
    }

    .contact-info {
        gap: 12px;
    }

    .contact-info a {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .social-icons {
        gap: 8px;
        flex-wrap: wrap;
    }

    .social-icons a {
        flex: 1 1 30%;
        margin: 2px;
        min-width: 80px;
    }

    .social-icons img {
        width: 24px;
        height: 24px;
    }

    .wechat-popup {
        width: 90%;
        max-width: 400px;
        padding: 20px;
        margin: 0 auto;
    }

    .cart-modal {
        position: fixed;
        top: 80px;
        right: 10px;
        left: 10px;
        width: auto;
        min-width: auto;
        max-width: none;
    }
    
    .cart-modal-content {
        width: 100%;
        max-height: 70vh;
    }
    
    .cart-items {
        max-height: 40vh;
    }
    
    .checkout-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
    
    header {
        padding: 1rem 15px;
    }
    
    .logo h2 {
        font-size: 1rem;
    }
    
    .cart {
        padding: 8px;
    }
    
    .cart i {
        font-size: 1.2rem;
    }
    
    .cart-modal {
        width: calc(100% - 40px);
        right: 20px;
        top: 70px;
        max-width: 350px;
    }
    
    .cart i {
        font-size: 24px;
    }
    
    .cart-count {
        font-size: 12px;
        min-width: 18px;
        height: 18px;
    }
    
    .sidebar {
        width: 280px;
        left: -280px;
    }
        .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;
    }
        .subtitle-up {
        display: block;
        font-size: 0.9rem;
        color: #b0b0ff;
        letter-spacing: 2px;
        font-weight: 300;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 90px 10px 20px;
    }
        .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;
    }
        .subtitle-up {
        display: block;
        font-size: 0.9rem;
        color: #b0b0ff;
        letter-spacing: 2px;
        font-weight: 300;
    }

    .card {
        width: 95%;
        max-width: 300px;
        height: auto;
        min-height: 450px;
    }

    .card-face {
        padding: 15px;
    }

    .front h1 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .contact-category {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .contact-category h2 {
        font-size: 0.9rem;
    }

    .contact-info {
        gap: 10px;
    }
    
    .contact-info a {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .social-icons {
        gap: 6px;
    }
    
    .social-icons a {
        flex: 1 1 45%;
        min-width: 70px;
    }
    
    .social-icons img {
        width: 20px;
        height: 20px;
    }

    header {
        padding: 0.8rem 10px;
    }

    .logo h2 {
        font-size: 0.9rem;
    }

    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .cart-modal {
        top: 70px;
        right: 5px;
        left: 5px;
    }
    
    .cart-modal-content {
        max-height: 75vh;
    }
    
    .cart-items {
        max-height: 45vh;
    }
    
    .wechat-popup {
        width: 95%;
        padding: 15px;
    }
    
    .wechat-popup img {
        max-width: 200px;
    }
}

/* 添加用户状态样式 */
.user-status {
    padding: 15px;
    color: white;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

/* 修改登出链接样式 */
.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;
}