html, body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.Xstatic-BUY-full-screen-container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    flex: 1;
}

.Xstatic-BUY-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.Xstatic-BUY-page-header h1 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.Xstatic-BUY-header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
}

.Xstatic-BUY-search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #333;
    width: 250px;
    height: 36px;
}

.Xstatic-BUY-search-input:focus {
    outline: none;
    border-color: #2F44DB;
}

.Xstatic-BUY-search-button {
    padding: 8px 16px;
    background-color: #2F44DB;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    height: 36px;
}

.Xstatic-BUY-search-button:hover {
    background-color: #1f34c9;
}

/* 产品筛选样式 */
.Xstatic-BUY-product-filters {
    margin-bottom: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.Xstatic-BUY-filter-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.Xstatic-BUY-filter-group:last-child {
    margin-bottom: 0;
}

.Xstatic-BUY-filter-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    color: #333;
    margin-right: 10px;
    margin-bottom: 8px;
    white-space: nowrap;
    font-size: 14px;
    min-width: 70px;
}

.Xstatic-BUY-filter-group label i {
    color: #2F44DB;
}

/* 筛选标签样式 */
.Xstatic-BUY-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.Xstatic-BUY-filter-tag {
    padding: 8px 16px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.Xstatic-BUY-filter-tag:hover {
    background-color: #e8e8e8;
    border-color: #2F44DB;
    color: #2F44DB;
}

.Xstatic-BUY-filter-tag.Xstatic-BUY-active {
    background-color: #2F44DB;
    color: #fff;
    border-color: #2F44DB;
}

.Xstatic-BUY-filter-tag.Xstatic-BUY-active:hover {
    background-color: #1f34c9;
    color: #fff;
}

/* 主内容区 */
.Xstatic-BUY-main-content-wrapper {
    flex: 1;
    padding: 0;
    margin: 0;
    height: 100%;
    overflow-y: auto;
}

.Xstatic-BUY-main-content {
    padding: 25px;
    max-width: 100%;
    margin: 0;
}

/* 产品列表 */
.Xstatic-BUY-product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* 产品卡片 */
.Xstatic-BUY-product-card {
    width: calc(33.333% - 14px);
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    outline: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.Xstatic-BUY-product-card:hover {
    box-shadow: 0 4px 16px rgba(47, 68, 219, 0.12);
    border-color: #2F44DB;
    transform: translateY(-2px);
}

.Xstatic-BUY-product-card:focus,
.Xstatic-BUY-product-card:focus-within {
    border: 1px solid #2F44DB;
    box-shadow: 0 0 0 2px rgba(47, 68, 219, 0.2);
}

/* 卡片头部 */
.Xstatic-BUY-card-header {
    padding: 20px 20px 12px;
}

.Xstatic-BUY-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #2F44DB;
    margin: 0 0 8px;
    line-height: 1.4;
}

.Xstatic-BUY-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 配置网格 */
.Xstatic-BUY-card-config {
    padding: 0 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    flex: 1;
}

.Xstatic-BUY-config-row {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
}

.Xstatic-BUY-config-row:last-child {
    margin-bottom: 0;
}

.Xstatic-BUY-config-cell {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
}

.Xstatic-BUY-config-cell i {
    font-size: 18px;
    color: #2F44DB;
    margin-top: 2px;
    flex-shrink: 0;
}

.Xstatic-BUY-config-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.Xstatic-BUY-config-label {
    font-size: 12px;
    color: #999;
}

.Xstatic-BUY-config-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* 卡片底部 */
.Xstatic-BUY-card-footer {
    padding: 16px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.Xstatic-BUY-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.Xstatic-BUY-price {
    font-size: 20px;
    color: #F53F3F;
    font-weight: bold;
}

.Xstatic-BUY-price-cycle {
    font-size: 14px;
    color: #F53F3F;
    font-weight: normal;
}

.Xstatic-BUY-price-daily {
    font-size: 12px;
    color: #999;
}

.Xstatic-BUY-buy-btn {
    padding: 8px 20px !important;
    background-color: #165DFF !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    height: auto !important;
    line-height: 1.5 !important;
}

.Xstatic-BUY-buy-btn:hover {
    background-color: #0E4BD8 !important;
    box-shadow: 0 2px 8px rgba(22, 93, 255, 0.3);
}

.Xstatic-BUY-buy-btn:active {
    background-color: #0A3BB8 !important;
}

.Xstatic-BUY-buy-btn:disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
}

.Xstatic-BUY-buy-btn:disabled:hover {
    background-color: #ccc !important;
    box-shadow: none;
}

/* 活动标签 */
.Xstatic-BUY-activity {
    margin-top: 10px;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    padding: 0 20px;
}

.Xstatic-BUY-activity-template {
    font-size: 12px;
    color: #fff;
    background-color: #ff6b6b;
    padding: 2px 8px;
    border-radius: 10px;
}

.Xstatic-BUY-active-name {
    font-size: 12px;
    color: #fa8c16;
    background-color: #fff7e6;
    padding: 2px 8px;
    border-radius: 10px;
}

.Xstatic-BUY-tag-item {
    font-size: 12px;
    color: #fff;
    background-color: #52c41a;
    padding: 2px 8px;
    border-radius: 10px;
}

.Xstatic-BUY-firewall-box {
    font-size: 12px;
    color: #fa8c16;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.Xstatic-BUY-firewall-icon {
    width: 14px;
    height: 14px;
}

/* 底部禁止提示 */
.Xstatic-BUY-forbid-tip {
    margin-top: 35px;
    padding: 12px 15px;
    background-color: #fff3f3;
    border: 1px solid #ffe3e3;
    font-size: 12px;
    color: #dc3545;
    border-left: 3px solid #dc3545;
    transition: all 0.5s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 无商品 */
.Xstatic-BUY-no-goods {
    padding: 60px 0;
}

/* 响应式 */
@media (max-width: 1200px) {
    .Xstatic-BUY-product-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .Xstatic-BUY-product-card {
        width: 100%;
    }
    .Xstatic-BUY-page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .Xstatic-BUY-header-search {
        width: 100%;
    }
    .Xstatic-BUY-search-input {
        width: calc(100% - 80px);
        min-width: auto;
    }
    .Xstatic-BUY-search-button {
        width: 70px;
        padding: 8px 0;
        font-size: 13px;
    }
    .Xstatic-BUY-filter-group {
        flex-direction: column;
    }
    .Xstatic-BUY-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .Xstatic-BUY-config-row {
        flex-wrap: wrap;
    }
    .Xstatic-BUY-config-cell {
        width: 50%;
        flex: none;
    }
}
