/*
 * data_sim.css - 流量卡页面样式
 * 合并自data_sim/index.php和data_sim/detail.php的内联样式
 */

/* ========== 流量卡卡片样式 ========== */
.sim-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -6px rgba(0, 0, 0, 0.03);
    border: none;
}

.sim-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 12px 20px -5px rgba(0, 0, 0, 0.07);
}

.sim-card .card-header {
    background: linear-gradient(135deg, #4361ee, #3a50d9);
    color: white;
    padding: 0.9rem 1.2rem;
    font-weight: 600;
    border-bottom: none;
}

.sim-card .card-body {
    padding: 1.5rem;
}

/* ========== 产品项基本样式 ========== */
.product-item {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -6px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 12px 20px -5px rgba(0, 0, 0, 0.07);
}

.product-item.border-primary {
    box-shadow: 0 10px 30px -5px rgba(67, 97, 238, 0.15), 0 8px 15px -6px rgba(67, 97, 238, 0.1);
}

.product-item.border-primary:hover {
    box-shadow: 0 20px 40px -8px rgba(67, 97, 238, 0.2), 0 12px 20px -5px rgba(67, 97, 238, 0.15);
}

.product-item.border-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #3a50d9);
}

/* ========== 卡片公共样式 ========== */
.card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -6px rgba(0, 0, 0, 0.03);
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -6px rgba(0, 0, 0, 0.05);
}

/* ========== 厂商标识样式 ========== */
.vendor-badge {
    display: flex;
    align-items: center;
}

.vendor-logo-img {
    max-height: 28px;
    max-width: 90px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(20%);
}

.vendor-logo-img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.vendor-logo-large {
    max-height: 80px;
    max-width: 160px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.vendor-logo-large:hover {
    transform: scale(1.05);
}

/* ========== 规格网格样式 ========== */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.specs-item {
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    background-color: rgba(241, 245, 249, 0.5);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.specs-item:hover {
    background-color: rgba(241, 245, 249, 0.9);
    transform: translateY(-3px);
}

.specs-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.specs-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 1.05rem;
}

/* ========== 特色价格容器 ========== */
.featured-price-container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.5), rgba(241, 245, 249, 0.2));
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.featured-price-tag {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.price-period {
    font-size: 0.9rem;
    color: #64748b;
    margin-left: 0.35rem;
}

.featured-secondary-price {
    font-size: 0.925rem;
    color: #4b5563;
}

/* ========== 价格容器样式 ========== */
.price-container {
    padding: 1.4rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9), rgba(241, 245, 249, 0.6));
    border-radius: 0 0.75rem 0 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.price-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.03), rgba(67, 97, 238, 0.06));
    z-index: 0;
}

.price-container:hover {
    background: linear-gradient(135deg, rgba(241, 245, 249, 1), rgba(241, 245, 249, 0.8));
    transform: translateY(-3px);
}

.vps-price-tag {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(255, 58, 58, 0.3);
    background: linear-gradient(135deg, #ff3a3a, #ff5a3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 0.95rem;
    color: #64748b;
    margin-left: 0.35rem;
    font-weight: 500;
}

.price-secondary {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ========== 产品操作列样式 ========== */
.product-action-col {
    background-color: rgba(241, 245, 249, 0.2);
    border-left: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
}

.button-container {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    flex: 1;
    background: rgba(241, 245, 249, 0.4);
    border-radius: 0 0 0.75rem 0;
}

/* ========== 按钮样式 ========== */
.btn-action {
    width: 100%;
    padding: 0.7rem 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-action.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.btn-action.btn-outline-primary {
    border: 1px solid #4361ee;
    color: #4361ee;
    background: white;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(67, 97, 238, 0.25);
}

.btn-action.btn-primary:hover {
    background: linear-gradient(135deg, #3a50d9, #2e45c7);
}

.btn-action.btn-outline-primary:hover {
    background-color: rgba(67, 97, 238, 0.05);
    color: #3a50d9;
}

.btn-action i {
    margin-right: 6px;
    font-size: 0.9rem;
}

/* ========== 产品元信息样式 ========== */
.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.product-meta-item {
    font-size: 0.85rem;
    color: #64748b;
    background-color: rgba(241, 245, 249, 0.6);
    padding: 0.35rem 0.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.product-meta-item:hover {
    background-color: rgba(241, 245, 249, 0.9);
    color: #4361ee;
}

/* ========== 特色产品样式 ========== */
.featured-product {
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -6px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.featured-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.12), 0 12px 20px -5px rgba(0, 0, 0, 0.07);
}

.featured-product .card-header {
    background: linear-gradient(135deg, #4361ee, #3a50d9);
    border-bottom: none;
    padding: 1.1rem 1.25rem;
}

.featured-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.featured-specs-item {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: rgba(241, 245, 249, 0.5);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.featured-specs-item:hover {
    background-color: rgba(241, 245, 249, 0.9);
}

.featured-product .card-title {
    color: white !important;
    font-weight: 600;
}

.featured-product .vendor-link {
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
}

.featured-product .vendor-link:hover {
    color: white !important;
}

/* ========== 页面标题区域样式 ========== */
.py-5.bg-light {
    background: linear-gradient(135deg, #e0e7ff, #f1f5f9) !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    position: relative;
    overflow: hidden;
}

.py-5.bg-light::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.05));
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.py-5.bg-light::after {
    content: "";
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.08), rgba(67, 97, 238, 0.03));
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.highlight-shape {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(67, 97, 238, 0.15);
    z-index: -1;
    border-radius: 10px;
}

/* ========== 英雄图片样式 ========== */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-image {
    max-width: 85%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulse 6s ease-in-out infinite;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}

.floating-element-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.2), rgba(67, 97, 238, 0.1));
    top: 20%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

.floating-element-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(67, 97, 238, 0.05));
    bottom: 15%;
    right: 15%;
    animation: float 8s ease-in-out infinite 1s;
}

.floating-element-3 {
    width: 40px;
    height: 40px;
    background: linear-gradient(225deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.03));
    top: 50%;
    right: 5%;
    animation: float 10s ease-in-out infinite 0.5s;
}

/* ========== SIM卡特性样式 ========== */
.sim-features {
    margin-top: 1.5rem;
}

.sim-feature {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4361ee;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.05);
    transition: all 0.3s ease;
}

.sim-feature:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
    transform: translateY(-3px);
}

.sim-feature i {
    margin-right: 8px;
    color: #4361ee;
}

/* ========== 筛选区域样式 ========== */
.filter-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 8px 15px -6px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.filter-card:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -6px rgba(0, 0, 0, 0.05);
}

.filter-title {
    color: #4361ee;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.filter-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
    margin-left: 0.5rem;
}

.select-wrapper {
    position: relative;
}

.form-select {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

/* 筛选按钮样式优化 */
.filter-card .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-card .btn-light {
    background-color: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
}

.filter-card .btn-light:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
}

.filter-card .btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a50d9);
    border: none;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.2);
}

.filter-card .btn-primary:hover {
    background: linear-gradient(135deg, #3a50d9, #2e45c7);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* ========== 动画效果 ========== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 15px) rotate(2deg); }
    50% { transform: translate(5px, -10px) rotate(-1deg); }
    75% { transform: translate(-10px, 8px) rotate(1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* ========== 详情页特有样式 ========== */
/* 产品价格样式 */
.price-box {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.9), rgba(241, 245, 249, 0.6));
    border-radius: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.price-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(67, 97, 238, 0.03), rgba(67, 97, 238, 0.06));
    z-index: 0;
    border-radius: 1rem;
}

.price-box:hover {
    transform: translateY(-3px);
}

.main-price {
    position: relative;
    z-index: 1;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
    vertical-align: text-top;
}

.amount {
    font-size: 2.5rem !important;
    font-weight: 800;
    color: #ff3a3a !important;
    text-shadow: 0 2px 10px rgba(255, 58, 58, 0.3);
    background: linear-gradient(135deg, #ff3a3a, #ff5a3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 立即购买按钮样式 */
.buy-btn-container {
    position: relative;
    z-index: 2;
}

.purchase-btn {
    background: linear-gradient(135deg, #ff3a3a, #ff5a3a) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 58, 58, 0.3) !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
}

.purchase-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 58, 58, 0.4) !important;
}

/* 产品参数样式 */
.product-params-table {
    margin-bottom: 2rem;
}

.param-item {
    background-color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.7) !important;
}

.param-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: rgba(67, 97, 238, 0.3) !important;
}

.param-label {
    font-size: 0.85rem;
    color: #64748b;
}

.param-value {
    font-weight: 600;
    color: #0f172a;
}

/* 产品描述样式 */
.product-description,
.product-instructions,
.product-notes {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
}

.product-description img,
.product-instructions img,
.product-notes img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.product-notes {
    font-size: 0.9rem;
}

/* 厂商信息卡片 */
.vendor-info {
    background-color: #fff;
    border-radius: 0 0 1rem 1rem;
}

/* 相关产品样式 */
.related-product-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.25s ease;
}

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

.related-product-item:hover {
    background-color: rgba(241, 245, 249, 0.5);
}

/* 相关文章样式 */
.related-articles .related-article-item {
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: all 0.25s ease;
    display: block;
}

.related-articles .related-article-item:last-child {
    border-bottom: none;
}

.related-articles .related-article-item:hover {
    background-color: rgba(241, 245, 249, 0.5);
}

.related-articles .article-title {
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8rem;
}

/* 底部推荐产品样式 */
.product-tag-featured {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #4361ee, #3a50d9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(67, 97, 238, 0.3);
}

/* 详情页价格样式 */
.price-tag {
    font-size: 1.25rem;
    color: #4361ee;
    font-weight: 700;
}

/* 移动端适配 */
@media (max-width: 767.98px) {
    /* 移动端隐藏页脚 */
    footer.footer {
        display: none !important;
    }

    .amount {
        font-size: 2rem !important;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .specs-item {
        padding: 0.5rem;
    }

    .specs-label {
        font-size: 0.75rem;
    }

    .specs-value {
        font-size: 0.85rem;
    }

    .param-item {
        margin-bottom: 0.5rem;
    }

    /* 移动端价格标签优化 */
    .vps-price-tag {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 0.75rem;
    }

    /* 移动端按钮优化 */
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    /* 移动端产品卡片优化 */
    .product-item .card-body {
        padding: 1rem;
    }

    .product-meta {
        margin-top: 0.5rem;
    }

    .product-meta-item {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }

    /* 移动端特色产品网格优化 */
    .featured-specs-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .featured-specs-item {
        padding: 0.5rem;
    }
}