/* ========== 强烈推荐卡片样式 ========== */
.featured-card {
    border: 2px solid #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
    background: rgba(30, 20, 30, 0.8);
}
.featured-card:hover {
    border-color: #ff6666;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}
.featured-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(95deg, #ef4444, #f97316);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.featured-tag i {
    font-size: 0.8rem;
}

/* 销量标签 */
.sales {
    background: rgba(0,0,0,0.4);
}
.sales i {
    color: #facc15;
}

/* 视频容器 - 适配本地视频 */
.video-container video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0f1f;
    color: #eef5ff;
    overflow-x: hidden;
    position: relative;
}

/* 动态背景光晕 */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -2;
    pointer-events: none;
    animation: floatOrb 20s infinite alternate;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #6a11cb, #2575fc);
    top: -20vh;
    left: -20vw;
}

.orb-2 {
    width: 70vh;
    height: 70vh;
    background: radial-gradient(circle, #ff4d6d, #f9a8d4);
    bottom: -10vh;
    right: -10vw;
    animation-duration: 25s;
}

.orb-3 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #00c6fb, #005bea);
    top: 40%;
    left: 60%;
    animation-duration: 18s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1);}
    100% { transform: translate(5%, 8%) scale(1.1);}
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* 顶部广告条 */
.top-banner {
    background: linear-gradient(95deg, #ff4d4d, #f9a8d4);
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    animation: bannerGlow 1.5s infinite alternate;
}
@keyframes bannerGlow {
    from { text-shadow: 0 0 2px rgba(255,255,255,0.5); }
    to { text-shadow: 0 0 8px rgba(255,255,255,0.8); }
}
.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.banner-content i {
    font-size: 1.2rem;
}
@media (max-width: 640px) {
    .top-banner { font-size: 0.8rem; padding: 8px 12px; }
}

/* 头部区域 */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 12px rgba(168,237,234,0.6));
    animation: pulseIcon 2s ease infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.08); opacity: 1; text-shadow: 0 0 15px #a8edea; }
    100% { transform: scale(1); opacity: 0.9; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(120deg, #fff, #a0c0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: inline-block;
    padding-top: 0.8rem;
}

/* 商品卡片网格 */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-card {
    background: rgba(20, 30, 45, 0.65);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.4);
}

.product-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(100,150,255,0.6);
    box-shadow: 0 35px 50px -15px rgba(0,0,0,0.5);
    background: rgba(30, 45, 65, 0.75);
}

.card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* 图片区域：统一 1200x800 比例 (3:2) */
.product-image {
    flex: 1.2;
    min-width: 240px;
    position: relative;
    overflow: hidden;
    background: #0f1422;
    aspect-ratio: 1200 / 800; /* 固定比例 3:2 */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 缩放填充，保持比例裁剪 */
    transition: transform 0.6s ease;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(transparent, rgba(0,0,0,0.3));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .image-overlay {
    opacity: 1;
}

.product-info {
    flex: 2;
    padding: 2rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 价格与标题行 */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.product-title {
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #b8d0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0;
}
.product-price {
    text-align: right;
    white-space: nowrap;
}
.price-old {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #94a3b8;
    margin-right: 8px;
}
.price-new {
    font-size: 1.6rem;
    font-weight: 700;
    color: #facc15;
}
.price-unit {
    font-size: 0.9rem;
    font-weight: normal;
    color: #cbd5e1;
    margin-left: 4px;
}
.discount-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 版本信息标签 */
.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 40px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge i { font-size: 0.7rem; }
.status-normal i { color: #10b981; }
.status-paused i { color: #ef4444; }

.product-desc {
    line-height: 1.6;
    margin-bottom: 1.8rem;
    color: #cfdfed;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(95deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 8px 18px rgba(79,70,229,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px #4f46e5;
    background: linear-gradient(95deg, #6366f1, #8b5cf6);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(165, 180, 252, 0.7);
    color: #cbd5ff;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: #a5b4fc;
    color: white;
    transform: translateY(-2px);
}

/* 模态框通用 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.glass-modal {
    background: rgba(25, 35, 55, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.video-modal {
    max-width: 900px;
    width: 90%;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-content {
    position: relative;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 32px;
    cursor: pointer;
    color: #bbb;
    transition: 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: white;
    transform: rotate(90deg);
}

.qr-icon {
    font-size: 3rem;
    color: #34d399;
    margin-bottom: 1rem;
}

.qr-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 1.2rem;
    display: inline-block;
    margin: 1rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

#modalQrImg {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.qr-tip {
    font-size: 0.9rem;
    color: #cbd5e1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin-bottom: 1rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    margin-top: 1rem;
    display: inline-block;
}

/* 更新日志模态框 - 左右结构 */
.changelog-modal {
    max-width: 900px;
    width: 90%;
    padding: 1.5rem;
}
.changelog-layout {
    display: flex;
    gap: 1.5rem;
    min-height: 400px;
}
.changelog-sidebar {
    flex: 1;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 1rem;
    overflow-y: auto;
    max-height: 450px;
}
.version-item {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: 0.2s;
    background: rgba(255,255,255,0.05);
}
.version-item.active {
    background: linear-gradient(95deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}
.version-item .version-num {
    font-weight: 700;
    font-size: 1rem;
}
.version-item .version-date {
    font-size: 0.7rem;
    opacity: 0.7;
}
.changelog-detail {
    flex: 2;
    padding-left: 0.5rem;
    overflow-y: auto;
    max-height: 450px;
}
.changelog-detail h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.changelog-detail ul {
    list-style: none;
    padding-left: 0;
}
.changelog-detail li {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
    position: relative;
}
.changelog-detail li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #a5b4fc;
}

.footer {
    text-align: center;
    margin-top: 5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

.empty-state {
    text-align: center;
    padding: 4rem;
    background: rgba(0,0,0,0.3);
    border-radius: 2rem;
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .container { padding: 1rem; }
    .hero h1 { font-size: 2.2rem; }
    .product-title { font-size: 1.5rem; }
    .product-header { flex-direction: column; align-items: flex-start; }
    .product-price { margin-top: 0.5rem; text-align: left; }
    .card-inner { flex-direction: column; }
    .product-image { min-height: 200px; } /* 移动端适当减小最小高度 */
    .btn { padding: 0.7rem 1.5rem; }
    .changelog-layout { flex-direction: column; }
    .changelog-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1rem; }
}