/* 基础样式 */
.product-showcase {
    margin-top: 30px;
    padding: 60px 0;
}

.product-section {
    padding: 80px 0;
    position: relative;
}

.bg-gray {
    background: #f9fafb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.reverse {
    direction: rtl;
}

/* 产品截图样式 */
.product-screenshot {
    width: 560px;
    height: 400px;
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.screenshot-frame {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    z-index: 1;
}

.product-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zoom-effect:hover {
    transform: scale(1.03);
}

/* 产品信息样式 */
.product-info {
    direction: ltr;
}

.product-title {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5em;
}

.product-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5em;
}

/* 产品元信息 */
.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: #777;
}

.product-meta i {
    margin-right: 5px;
}

/* 功能列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.feature-list li {
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.feature-list i {
    color: #2e7dff;
    margin-right: 10px;
}

/* 下载区域 */
.download-area {
    margin-top: 40px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background: linear-gradient(135deg, #2e7dff 0%, #1a4dff 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 255, 0.3);
}

.download-btn i {
    font-size: 1.2rem;
    margin-right: 12px;
}

.version {
    font-size: 0.9rem;
    margin-left: 15px;
    opacity: 0.9;
}

.add-to-cart-btn {
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background: linear-gradient(135deg, #bd6806 0%, #d75d03 100%);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 255, 0.3);
}

.add-to-cart-btn i {
    font-size: 1.2rem;
    margin-right: 12px;
}


.other-platforms {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.other-platforms a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.other-platforms a:hover {
    color: #2e7dff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reverse {
        direction: ltr;
    }

    .product-screenshot {
        margin-bottom: 30px;
    }
}

/* 缩略图样式 */
.thumbnail-item {
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid transparent;
    pointer-events: auto;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(46, 125, 255, 0.2);
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-item.active {
    border-color: #2e7dff;
    transform: translateY(-5px);
}

/* 主图样式 */
.main-image {
    width: 100%;
    height: 500px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    will-change: transform;
}

/* 缩略图导航 */
.thumbnail-nav {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    padding: 10px 0;
    justify-content: center;
}

/* 新增图片预览容器样式 */
.screenshot-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 悬停时放大效果 */
[data-zoomable]:not(.zooming) {
    transform: scale(1);
    cursor: zoom-in;
}




/* ===== 支付弹窗核心样式 ===== */
/* 支付弹窗核心样式 */
/* 优化后的弹窗样式 */


/* 加入购物车弹窗样式 */
.cart-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    justify-content: center;
    align-items: center;
    display: flex;
}

.cart-popup-content {
    position: relative;
    width: min(90%, 420px);
    margin: 15vh auto;
    padding: 2rem;
    background: #fff;
    border-radius: 1rem;
    opacity: 1; /* 强制显示 */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cart-popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* 更明显的阴影效果 */
    width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease; /* 添加滑入动画 */
}
.cart-popup-content.active {
    opacity: 1;
    transform: translateY(0);
}
.cart-popup h3 {
    margin-top: 0;
    font-size: 28px;
    color: #333; /* 深灰色标题文字 */
    margin-bottom: 20px;
}

.product-meta-in-popup span {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #666; /* 浅灰色文字 */
}
@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 账号价格区域优化 */
.product-meta-in-popup {
    display: flex;
    flex-direction: column;
    align-items: center;     /* 子元素整体居中 */
    margin: 1.5rem 0;
}

/* 统一账号信息字体样式 */
.account-info {
    display: flex;
    align-items: baseline;
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.account-info span {
    margin-left: 10px;
    color: #0a53be;
    font-weight: bold;

}

.price-section {
    display: flex;
    justify-content: center;  /* 主轴居中 */
    align-items: baseline;    /* 基线对齐 */
    gap: 0.5rem;             /* 元素间距 */
    width: 100%;             /* 容器宽度 */
    margin: 0 auto;          /* 自动居中 */
    padding: 0.8rem 0;       /* 垂直留白 */
}

.dollar {
    font-size: 1.2em;        /* 相对单位适配 */
    color: #e67e22;
}

.price {
    font-size: 1.8rem;       /* 强调主价格 */
    font-weight: 700;
    line-height: 1;          /* 消除行高干扰 */
}

.unit {
    font-size: 0.9em;       /* 次级文字尺寸 */
    color: #666;
    align-self: center;      /* 垂直居中 */
}

/* 二维码居中方案 */
.qr-code-area {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.qr-code-area img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* 安全标识 */
.ssl-badge {
    margin: 1rem auto 0;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #27ae60;
    color: white;
    border-radius: 1.25rem;
    font-size: 0.9rem;
}
/* 添加调试样式 */
.close-cart-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #9ca3af;
    transition: color 0.2s ease; /* 添加颜色过渡效果 */
}

.close-cart-popup:hover {
    color: #333;
}
/* 响应式适配 */
@media (max-width: 480px) {
    .cart-popup-content {
        margin: 10vh auto;
        padding: 1.5rem;
    }

    .qr-code-area img {
        width: 180px;
        height: 180px;
    }

    .price-section {
        flex-wrap: wrap;       /* 小屏幕换行 */
        justify-content: center;
        gap: 0.3rem;
    }

    .price {
        font-size: 1.5rem;
    }
}


.erweima-pic {
    cursor: pointer;
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    width: 50px; /* 设置宽度 */
    height: 50px; /* 设置高度 */
    border-radius: 50%; /* 圆角 */
    background-color: #f0f0f0; /* 可设置背景色，方便查看效果 */
}

#avatar-text {
    text-align: center; /* 文字居中 */
}

.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* 确保在其他元素之上 */
}

.loading-popup-content {
    background-color: white;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.loading-popup-content i {
    font-size: 24px;
    margin-bottom: 10px;
}

.loading-popup-content p {
    margin: 0;
    font-size: 16px;
    color: #333;
}