/* ===== 公共基础样式 ===== */

/* 玻璃卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    background: rgba(255, 255, 255, 0.65);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}
nav.glass-card:hover,
table.glass-card:hover,
section .glass-card:hover,
div.glass-card:hover {
    transform: none;
}

/* 背景渐变 */
.mesh-gradient-bg {
    background-color: #f8fafc;
    background-image:
        radial-gradient(at 0% 0%, rgba(176, 38, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 240, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(176, 38, 255, 0.05) 0px, transparent 80%);
}

/* 文字渐变 */
.text-gradient {
    background: linear-gradient(135deg, #b026ff 0%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 主按钮 */
.btn-primary {
    background: linear-gradient(135deg, #b026ff 0%, #7c3aed 100%);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    box-shadow: 0 10px 20px -5px rgba(176, 38, 255, 0.5);
    filter: brightness(1.1);
}

/* 下拉菜单动画 */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 导航链接下划线动画 */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #b026ff, #00f0ff);
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* 页脚链接 hover 效果 */
.footer-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-link::after {
    content: '→';
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: #c084fc;
}
.footer-link:hover {
    color: #c084fc;
    padding-left: 4px;
}
.footer-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* ===== 首页 Banner 轮播 ===== */
.banner-section {
    padding-top: 72px;
    overflow: hidden;
}
.banner-track {
    position: relative;
    width: 100%;
    height: calc(100vh - 72px);
    min-height: 600px;
    max-height: 820px;
}
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: flex;
    align-items: center;
}
.banner-slide.active {
    opacity: 1;
    z-index: 2;
}
.banner-slide img { display: none; }
.banner-slide::after, .banner-slide::before { display: none; }
.banner-content {
    position: relative;
    width: 100%;
    z-index: 3;
}

/* 右侧装饰卡 */
.hero-deco-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 20px 60px rgba(88,28,135,0.08), 0 4px 16px rgba(0,0,0,0.04);
    border-radius: 24px;
    padding: 32px;
}
.hero-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148,163,184,0.15);
}
.hero-stat:last-child { border-bottom: none; }
.hero-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148,163,184,0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.banner-dot.active {
    width: 28px;
    border-radius: 4px;
    background: #b026ff;
}

/* 轮播箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148,163,184,0.25);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.banner-arrow:hover {
    background: #b026ff;
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(176,38,255,0.3);
}
.banner-arrow-prev { left: 24px; }
.banner-arrow-next { right: 24px; }

/* 轮播文字动画 */
.banner-slide.active .banner-title {
    animation: slideUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}
.banner-slide.active .banner-desc {
    animation: slideUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.18s both;
}
.banner-slide.active .banner-btns {
    animation: slideUp 0.55s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}
.banner-slide.active .banner-deco {
    animation: slideUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.15s both;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 国旗图标 */
.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* ===== 产品页价格卡片 ===== */
.price-card-active {
    border: 2px solid #b026ff;
    background: rgba(255, 255, 255, 0.8);
}
.badge-sale {
    background: linear-gradient(90deg, #ff4d4d 0%, #f72b2b 100%);
}
