[v-cloak] {
    display: none !important;
}

/* 限时活动页面样式（上下结构版） */

/* 页面整体布局 - hero覆盖导航栏 */
#promotion-page {
    position: relative;
    z-index: 1;
    margin-top: -10rem;

}
.header-container{
    background-color: transparent !important;
}

header .user-nav a{
   /* color: #fff !important; */
}
/* 导航栏透明效果 */
#promotion-page header {
    background: transparent !important;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

#promotion-page header .header-container,
#promotion-page header .header-small-container {
    background: transparent !important;
}

#promotion-page header a {
    color: #fff !important;
}

#promotion-page header a:hover {
    color: #FE5B54 !important;
}

#promotion-page header .menu-item.hot {
    color: #FE5B54 !important;
}

.promotion-container {
    padding: 40px 0;
    min-height: 600px;
    position: relative;
    z-index: 10;
    margin-top: -23rem;
}

/* Hero Banner图 - 全宽背景，覆盖导航栏 */
.promotion-hero {
    aspect-ratio: 1920 / 950;
    background-size: 100% 100%;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.promotion-hero .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
}

.promotion-hero .hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.promotion-hero .hero-content p {
    font-size: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* 无活动提示 */
.no-promotion {
    text-align: center;
    padding: 120px 0;
    color: #999;
    font-size: 16px;
}

/* 主区域 */
.promotion-main-section {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* 活动商品区域 */
.activity-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #FE5B54;
}

/* 活动卡片列表 */
.promotion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.promotion-card {
    width: calc(25% - 19px);
    background: #f5f7fa;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
}

.promotion-card:hover {
    border-color: #FE5B54;
    background: #fff5f5;
}

.promotion-card.active {
    border-color: #FE5B54;
    background: #feebeb;
}

.promotion-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 0 12px 0;
    background-color: transparent;
    border-bottom: 1px solid #e8e8e8;
}

.promotion-card .card-header .title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.card-header .tag {
    padding: 4px 10px;
    background: #f0f0f0;
    color: #999;
    font-size: 12px;
    border-radius: 4px;
}

.card-header .tag.hot {
    background: #fff2e8;
    color: #fa8c16;
}

.card-body .config-info {
    margin-bottom: 15px;
}

.card-body .config-info .desc {
    color: #666;
    font-size: 14px;
}

.card-body .config-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 20px;
}

.card-body .config-detail .config-item {
    font-size: 14px;
    color: #333;
    width: 40%;
}

.card-body .config-detail .config-item b {
    color: #FE5B54;
    font-weight: bold;
    margin-left: 8px;
}

.card-body .price-info {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.card-body .price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body .price-label {
    font-size: 14px;
    color: #666;
}

.card-body .price-label.shock {
    color: #ff4d4f;
    font-weight: bold;
}

.card-body .price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.card-body .price-unit {
    font-size: 28px;
    color: #ff4d4f;
    font-weight: bold;
}

.card-body .price-desc {
    font-size: 14px;
    color: #999;
}

.card-body .endtime-info {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #e8e8e8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-body .endtime-label {
    font-size: 12px;
    color: #999;
}

.card-body .endtime-value {
    font-size: 12px;
    color: #ff4d4f;
    font-weight: bold;
}

.card-body .config-info .desc {
    color: #666;
    font-size: 14px;
}

.card-footer {
    text-align: center;
    margin-top: 20px;
}

/* 配置选择和支付区域 */
.config-pay-section {
    border-top: 1px solid #e8e8e8;
    padding-top: 35px;
}

.section-sub-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 25px 0 20px;
}

/* 配置行 */
.config-row {
    display: flex;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px dashed #e8e8e8;
}

.config-row:last-of-type {
    border-bottom: none;
}

.config-label {
    width: 100px;
    font-size: 14px;
    color: #333;
}

.config-value {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-tip {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.range-tip {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 操作系统选择样式 */
.image-select-row {
    align-items: flex-start;
    padding-top: 25px;
}

.image-select-row .config-value {
    flex-wrap: wrap;
}

/* 镜像版本选择样式 - 固定布局 */
.version-select-row .config-value {
    min-height: 32px;
}

.version-select {
    width: 200px;
    display: inline-block;
}

.version-select .el-input__inner {
    height: 32px;
}

/* 镜像版本卡片样式 */
.version-card-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.version-card-item {
    display: flex;
    flex-direction: column;
    padding: 10px 18px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f7fa;
    min-width: 120px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.version-card-item:hover {
    border-color: #FE5B54;
    background: #fff5f5;
}

.version-card-item.active {
    border-color: #FE5B54;
    background: #feebeb;
}

.version-card-item .version-name {
    font-size: 15px;
    color: #333;
    margin-bottom: 0;
}

.version-card-item.active .version-name {
    color: #FE5B54;
}

.version-card-item .version-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
}

/* Element UI tooltip 样式优化 */
.el-tooltip__popper.is-light {
    max-width: 400px;
    font-size: 13px;
    line-height: 1.6;
    padding: 12px 15px;
    border: 1px solid #e8e8e8;
}

.image-type-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.image-type-item {
    display: flex;
    align-items: center;
    padding: 16px 28px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    background: #f5f7fa;
    min-width: 120px;
    box-sizing: border-box;
}

.image-type-item:hover {
    border-color: #FE5B54;
}

.image-type-item.active {
    border-color: #FE5B54;
    background: #feebeb;
}

.type-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    margin-right: 12px;
}

/* 系统类型图标 - 使用图片 */
.type-icon.centos {
    background-image: url('../images/newPromotion/Centos.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.type-icon.windows {
    background-image: url('../images/newPromotion/Windows.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.type-icon.ubuntu {
    background-image: url('../images/newPromotion/ubuntu.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.type-icon.debian {
    background: linear-gradient(135deg, #d70a53 0%, #a80030 100%);
}

.type-icon.other {
    background: linear-gradient(135deg, #666 0%, #999 100%);
}

.type-name {
    font-size: 16px;
    color: #333;
}

.image-type-item.active .type-name {
    color: #FE5B54;
}

/* 镜像类型单选样式 */
.image-type-radio-list {
    display: flex;
    gap: 20px;
}

.image-type-radio-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f7fa;
    transition: all 0.2s;
}

.image-type-radio-item:hover {
    border-color: #FE5B54;
}

.image-type-radio-item.active {
    border-color: #FE5B54;
    background: #feebeb;
}

.image-type-radio-item .radio-label {
    font-size: 15px;
    color: #333;
}

.image-type-radio-item.active .radio-label {
    color: #FE5B54;
}

/* 应用镜像图标样式 */
.app-icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.app-icon.panel1 {
    background-image: url('../images/newPromotion/1panel.png');
}

.app-icon.bt {
    background-image: url('../images/newPromotion/bt.png');
}

.app-icon.nodejs {
    background-image: url('../images/newPromotion/nodejs.png');
}

.app-icon.tomcat {
    background-image: url('../images/newPromotion/tomcat.png');
}

.app-icon.lnmp {
    background-image: url('../images/newPromotion/lnmp.png');
}

.app-icon.lamp {
    background-image: url('../images/newPromotion/lamp.png');
}

.app-icon.docker {
    background-image: url('../images/newPromotion/docker.png');
}

.app-icon.wordpress {
    background-image: url('../images/newPromotion/wordpress.png');
}

.app-icon.wordpress-bt {
    background-image: url('../images/newPromotion/wordpress-bt.png');
}

.app-icon.openclaw {
    background-image: url('../images/newPromotion/openclaw.png');
}

.app-icon.other {
    background-image: url('../images/newPromotion/app.png');
}

/* 应用镜像卡片样式 */
.app-image-list {
    gap: 15px;
}

.app-image-item {
    min-width: 100px;
    padding: 12px 16px;
    flex-direction: column;
    display: inline-flex;
    align-items: center;
}

.app-image-item .version-name {
    font-size: 13px;
}

.no-app-images {
    color: #999;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* 价格明细 */
.price-detail-section {
    background: #fff5f5;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
}

.detail-row .label {
    color: #666;
}

.detail-row .value {
    color: #333;
}

.detail-row.total-row {
    border-top: 1px dashed #e8e8e8;
    margin-top: 20px;
    padding-top: 25px;
}

.detail-row.total-row .label {
    font-size: 16px;
    font-weight: bold;
}

.detail-row.total-row .value.price {
    font-size: 28px;
    color: #ff4d4f;
    font-weight: bold;
}

/* 支付方式选择 */
.pay-method-section {
    margin-top: 25px;
}

.pay-method-list {
    display: flex;
    gap: 25px;
}

.pay-method-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}

.pay-method-item i {
    font-size: 24px;
    margin-right: 12px;
    color: #FE5B54;
}

.pay-method-item .pay-icon {
    height: 35px;
    object-fit: contain;
}

.pay-method-item:hover {
    border-color: #FE5B54;
}

.pay-method-item.active {
    border-color: #FE5B54;
    background: #feebeb;
}

.pay-method-item.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.pay-method-item.disabled:hover {
    border-color: #e8e8e8;
}

.pay-method-item .balance {
    font-size: 14px;
    color: #999;
    margin-left: 10px;
}

.pay-method-item img{
    height: 40px;
}
.pay-tip {
    margin-top: 12px;
    font-size: 13px;
}

/* 免责声明 */
.declare-section {
    background: #fff3f3;
    border: 1px solid #ffccc7;
    border-radius: 10px;
    padding: 20px 25px;
    margin-top: 30px;
}

.declare-title {
    font-size: 16px;
    font-weight: bold;
    color: #ff4d4f;
    margin-bottom: 12px;
}

.declare-content {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.declare-content a {
    color: #FE5B54;
}

/* 服务条款勾选 */
.terms-check-section {
    padding: 25px 0;
    text-align: center;
}

.terms-check-section a {
    color: #FE5B54;
}

/* 提交按钮 */
.submit-section {
    text-align: center;
    padding: 40px 0 20px;
}

.submit-section .el-button {
    width: 320px;
    height: 58px;
    font-size: 18px;
    background-color: #FE5B54;
    border-color: #FE5B54;
}

.submit-section .el-button:hover,
.submit-section .el-button:focus {
    background-color: #ff7068;
    border-color: #ff7068;
}

.submit-section .el-button.is-disabled,
.submit-section .el-button.is-disabled:hover {
    background-color: #fab8b5;
    border-color: #fab8b5;
}

/* 结算页面样式（保留备用） */
.checkout-container {
    padding: 30px 0;
}

.checkout-header {
    text-align: center;
    padding: 20px 0;
}

.checkout-header h2 {
    font-size: 24px;
    color: #333;
}

.checkout-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.checkout-section .section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
}

.info-row {
    display: flex;
    padding: 10px 0;
}

.info-row .label {
    width: 100px;
    color: #666;
}

.info-row .value {
    color: #333;
}

.info-row .value.highlight {
    color: #ff4d4f;
    font-weight: bold;
}

.checkout-submit {
    text-align: center;
    padding: 30px;
}

.checkout-submit .el-button {
    width: 240px;
    height: 50px;
    font-size: 18px;
}

/* ==================== 响应式适配 ==================== */

/* 大屏幕 (>1200px) - 保持默认4列布局 */

/* 中等屏幕 (992px-1200px) - 3列布局 */
@media screen and (max-width: 1200px) {
    .promotion-card {
        width: calc(33.33% - 17px);
    }

    .promotion-hero {
        aspect-ratio: 1200 / 500;
    }

    .promotion-container {
        margin-top: -12rem;
    }
}

/* 平板屏幕 (768px-992px) - 2列布局 */
@media screen and (max-width: 992px) {
    .promotion-card {
        width: calc(50% - 13px);
    }

    .promotion-hero {
        aspect-ratio: 992 / 350;
    }

    .promotion-container {
        margin-top: -8rem;
        padding: 30px 0;
    }

    .promotion-main-section {
        padding: 25px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .promotion-list {
        gap: 20px;
    }

    .promotion-card {
        padding: 20px;
    }

    .promotion-card .card-header .title {
        font-size: 16px;
    }

    .card-body .price-unit {
        font-size: 24px;
    }

    .image-type-item {
        padding: 12px 20px;
        min-width: 100px;
    }

    .type-icon {
        width: 30px;
        height: 30px;
    }

    .type-name {
        font-size: 14px;
    }

    .config-row {
        padding: 15px 0;
    }

    .config-label {
        width: 80px;
        font-size: 13px;
    }

    .submit-section .el-button {
        width: 280px;
        height: 50px;
        font-size: 16px;
    }
}

/* 移动端 (<768px) - 1列布局 */
@media screen and (max-width: 768px) {
    #promotion-page {
        margin-top: -6rem;
    }

    .promotion-hero {
        aspect-ratio: 768 / 300;
    }

    .promotion-container {
        margin-top: -6rem;
        padding: 20px 0;
    }

    .promotion-main-section {
        padding: 20px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .promotion-list {
        gap: 15px;
    }

    .promotion-card {
        width: 100%;
        padding: 15px;
    }

    .promotion-card .card-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .promotion-card .card-header .title {
        font-size: 15px;
    }

    .card-body .config-detail {
        gap: 12px;
        margin-bottom: 15px;
    }

    .card-body .config-detail .config-item {
        font-size: 13px;
    }

    .card-body .price-info {
        gap: 6px;
    }

    .card-body .price-label {
        font-size: 13px;
    }

    .card-body .price-original {
        font-size: 13px;
    }

    .card-body .price-unit {
        font-size: 22px;
    }

    .card-body .price-desc {
        font-size: 13px;
    }

    /* 配置选择区域 */
    .config-pay-section {
        padding-top: 25px;
    }

    .config-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .config-label {
        width: 100%;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .config-value {
        width: 100%;
        flex-wrap: wrap;
    }

    .image-select-row {
        padding-top: 15px;
    }

    .image-type-list {
        gap: 10px;
    }

    .image-type-item {
        padding: 10px 15px;
        min-width: 80px;
    }

    .type-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .type-name {
        font-size: 13px;
    }

    .version-select {
        width: 100%;
        max-width: 280px;
    }

    /* 价格明细 */
    .price-detail-section {
        padding: 20px;
        margin: 20px 0;
    }

    .detail-row {
        padding: 8px 0;
        font-size: 13px;
    }

    .detail-row.total-row {
        margin-top: 15px;
        padding-top: 15px;
    }

    .detail-row.total-row .label {
        font-size: 14px;
    }

    .detail-row.total-row .value.price {
        font-size: 22px;
    }

    /* 支付方式 */
    .pay-method-section {
        margin-top: 20px;
    }

    .pay-method-list {
        flex-direction: column;
        gap: 10px;
    }

    .pay-method-item {
        padding: 12px 20px;
        font-size: 14px;
    }

    .pay-method-item .pay-icon {
        height: 28px;
    }

    .pay-method-item img {
        height: 32px;
    }

    .pay-method-item .balance {
        font-size: 12px;
    }

    /* 免责声明 */
    .declare-section {
        padding: 15px 18px;
        margin-top: 20px;
    }

    .declare-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .declare-content {
        font-size: 12px;
        line-height: 1.6;
    }

    /* 服务条款 */
    .terms-check-section {
        padding: 20px 0;
    }

    /* 提交按钮 */
    .submit-section {
        padding: 30px 0 15px;
    }

    .submit-section .el-button {
        width: 100%;
        max-width: 280px;
        height: 46px;
        font-size: 15px;
    }
}

/* 小屏手机 (<480px) */
@media screen and (max-width: 480px) {
    .promotion-hero {
        aspect-ratio: 480 / 200;
    }

    .promotion-container {
        margin-top: -4rem;
        padding: 15px 0;
    }

    .promotion-main-section {
        padding: 15px;
        border-radius: 10px;
    }

    .section-title {
        font-size: 14px;
    }

    .promotion-card {
        padding: 12px;
    }

    .promotion-card .card-header .title {
        font-size: 14px;
    }

    .card-body .config-detail .config-item {
        font-size: 12px;
    }

    .card-body .price-unit {
        font-size: 20px;
    }

    .image-type-item {
        padding: 8px 12px;
        min-width: 70px;
    }

    .type-icon {
        width: 20px;
        height: 20px;
    }

    .type-name {
        font-size: 12px;
    }

    .submit-section .el-button {
        max-width: 240px;
        height: 42px;
        font-size: 14px;
    }
}