/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    height: 100%;
}



body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, PingFang SC, Hiragino Sans GB, Microsoft YaHei, sans-serif;
    color: #111;
    background: #fff
}

a {
    text-decoration: none;
    color: inherit
}

ul {
    list-style: none
}
img {
    display: block;
    width: 100%;
}
/* 通用容器 */
.container {
    width: 100%;
    max-width: 12rem;
    margin: 0 auto;
    padding: 0 .24rem
}

/* 头部 */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
    box-shadow: 0 .02rem .08rem rgba(0, 0, 0, .05)
}

.site-header-menu {
    display: none;
    width: .3rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: .68rem
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700
}

.logo-mark {
    display: inline-block;
    color: #fff;
    border-radius: .08rem;
    width: .8rem;
}

.logo-text {
    font-size: .2rem;
    color: #222
}

.logo-text span {
    display: block;
}

.nav {
    /*display: bolo;*/
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-link {
    color: #666;
    font-size: .15rem
}

.nav-link + .nav-link {
    margin-left: .2rem;
}

.nav.h5 {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 10;
    background-color: white;
    height: 100vh;
    padding: .3rem;
}

.nav.h5 a {
    display: block;
}



.nav-link:hover,
.nav-link.active {
    color: #ff865a
}

/* 购买页面主体 */
.buy-main {
    padding: .4rem 0;
    background: #f7f9fc;
    min-height: calc(100vh - 1.36rem);
}

.buy-container {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.buy-content {
    background: #fff;
    border-radius: .16rem;
    padding: .2rem;
    box-shadow: 0 .06rem .24rem rgba(0, 0, 0, .06);
}

.buy-header {
    text-align: center;
    margin-bottom: .4rem;
}

.buy-title {
    font-size: .36rem;
    color: #222;
    margin-bottom: .12rem;
    font-weight: 700;
}

.buy-subtitle {
    font-size: .24rem;
    color: #666;
}

/* ID输入区域 */
.id-section {
    margin-bottom: .4rem;
}

.input-group {
    margin-bottom: .32rem;
}

.input-label {
    margin-bottom: .16rem;
}

.label-text {
    display: block;
    font-size: .26rem;
    color: #333;
    margin-bottom: .08rem;
}

.label-tip {
    font-size: .22rem;
    color: #999;
}

.input-wrapper {
    display: flex;
    gap: .16rem;
    align-items: center;
}

.form-input {
    flex: 1;
    width: 100%;
    height: .72rem;
    border: .02rem solid #e7ecf3;
    border-radius: .12rem;
    padding: 0 .24rem;
    font-size: .26rem;
    background: #f4f6fa;
}

.form-input:focus {
    outline: none;
    border-color: #ff865a;
    background: #fff;
}

.btn-confirm {
    height: .72rem;
    padding: 0 .32rem;
    background: #ff865a;
    color: #fff;
    border: none;
    border-radius: .12rem;
    font-size: .26rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-confirm:hover {
    background: #ff7a59;
}

.error-message {
    color: #ff4757;
    font-size: .22rem;
    margin-top: .08rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* 套餐选择 */
.package-section {
    margin-bottom: .4rem;
}

.section-title {
    font-size: .32rem;
    color: #222;
    margin-bottom: .24rem;
    font-weight: 600;
}

.package-grid {
    display: flex;
    /* grid-template-columns: repeat(2, 1fr); */
    gap: .16rem;
    overflow:visible;
}

.package-card {
    border: .02rem solid #e7ecf3;
    border-radius: .12rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}


.package-card:hover {
    border-color: #ff865a;
    box-shadow: 0 .04rem .16rem rgba(255, 134, 90, 0.2);
}

.package-card.selected {
    border-color: #ff865a;
    box-shadow: 0 .04rem .16rem rgba(255, 134, 90, 0.3);
    background-color: rgba(255, 134, 90, 0.08);
    ;
}

.package-banner {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    color: #fff;
    text-align: center;
    padding: .12rem;
    font-size: .22rem;
    font-weight: 600;

}

.package-content {
    padding: .24rem;
    text-align: center;
}

.package-price {
    font-size: .28rem;
    color: #222;
    font-weight: 700;
    margin-bottom: .08rem;
}

.package-original {
    font-size: .22rem;
    color: #999;
    text-decoration: line-through;
}

/* 支付方式 */
.payment-section {
    margin-bottom: .4rem;
    border: 1px solid #E6E6E6;
    padding: .1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: .16rem;
    margin-bottom: .24rem;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: .1rem;
    border: .02rem solid #e7ecf3;
    border-radius: .12rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method:hover {
    border-color: #ff865a;
}

.payment-method.selected {
    border-color: #ff865a;
    background: rgba(255, 134, 90, 0.05);
}

.payment-icon {
    width: .48rem;
    height: .48rem;
    border-radius: .08rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .24rem;
    font-weight: 700;
    color: #fff;
    margin-right: .16rem;
}

.payment-icon.alipay {
}

.payment-icon.wechat {
}

.payment-icon.usdt {
}

.payment-text {
    font-size: .26rem;
    color: #333;
    flex: 1;
}

.payment-check {
    position: absolute;
    top: .12rem;
    right: .12rem;
    width: .24rem;
    height: .24rem;
    background: #ff865a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .16rem;
    font-weight: 700;
}

.payment-method:not(.selected) .payment-check {
    display: none;
}

.payment-summary {
    background: linear-gradient(90deg, #FCDC8B 0%, #FCF18B 100%);
    border-radius: .12rem;
    padding: .1rem;
    text-align: center;
    cursor: pointer;
}

.summary-text {
    font-size: .26rem;
    color: #333;
    font-weight: 600;
}

/* 注意事项 */
.notes-section {
    padding-top: .24rem;
    border-top: .02rem solid #f0f0f0;
}

.note-text {
    font-size: .22rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: .12rem;
}
.arrival-time {
    font-size: .15rem;
}
/* VIP权益侧边栏 */
.vip-benefits {
    background: #fff;
    border-radius: .16rem;
    padding: .4rem;
    box-shadow: 0 .06rem .24rem rgba(0, 0, 0, .06);
    height: fit-content;
}

.benefits-title {
    font-size: .32rem;
    color: #222;
    margin-bottom: .24rem;
    font-weight: 600;
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: .16rem;
    border-radius: .08rem;
    background: #f8fafc;
}

.benefit-icon {
    width: .4rem;
    height: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .24rem;
    margin-right: .16rem;
}

.benefit-text {
    font-size: .24rem;
    color: #333;
}

/* 底部 */
.site-footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: .8rem 0;
    margin-top: 1rem
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    align-items: flex-start
}

.footer-brand {
    display: flex;
    align-items: center
}

.footer-brand .logo-mark {
    background: white;
    color: #fff;
    border-radius: .08rem;
    margin-right: .12rem
}

.footer-brand .logo-text {
    font-size: .28rem;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .28rem
}

.footer-link {
    font-size: .24rem;
    color: #cbd5e1
}
.dialog-box {
    /*width: 80vw;*/
    /*height: 80vh;*/
    /*position: fixed;*/
}
.ftR ul {
    display: flex;
    flex-wrap: wrap;
}

.ftR ul li {
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: .15rem;
}


/* PC 端：宽度大于 1024px 使用 px 与弹性布局（媒体查询） */
@media (min-width: 1025px) {
    .container {
        max-width: 1200px;
        padding: 0 24px
    }
    .arrival-time {
        font-size: 14px;
    }
    .nav-link+.nav-link {
        margin-left: 70px;
    }

    .payment-section {
        padding: 20px;
        margin-top: 20px;
    }

    .nav-link {
        color: #3D3D3D;
        font-size: 18px;
    }

    .footer-brand .logo-text {
        font-size: 36px;
        color: #fff;
        margin-left: 10px;
        line-height: 1;
    }

    .footer-brand .logo-text span {
        display: flex;
    }

    .footer-brand .logo-text .tip {
        font-size: 18px;
        line-height: 1;
        color: #AAABB1;
        margin-top: 5px;
    }

    .nav {
        display: flex
    }

    .header-inner {
        height: 64px
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-mark {
        width: 60px;
    }

    .site-header-menu {
        display: none;
    }

    /* 购买页面PC布局 */
    .buy-main {
        padding: 40px 0;
    }

    .buy-container {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }

    .buy-content {
        flex: 1;
        padding: 40px;
        border-radius: 12px;
    }

    .buy-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .buy-subtitle {
        font-size: 18px;
    }

    .input-group {
        margin-bottom: 24px;
    }

    .label-text {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .label-tip {
        font-size: 14px;
    }

    .form-input {
        height: 44px;
        border-radius: 8px;
        padding: 0 16px;
        font-size: 16px;
    }

    .btn-confirm {
        height: 44px;
        padding: 0 24px;
        border-radius: 8px;
        font-size: 16px;
    }

    .error-message {
        font-size: 14px;
        margin-top: 8px;
    }

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

    .package-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .package-banner {
        padding: 5px;
        font-size: 10px;
        position: absolute;
        left: 0;
        top: -20%;
        border-radius:  10px 10px 10px 0;
    }

    .package-content {
        padding: 20px;
    }

    .package-price {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .package-original {
        font-size: 14px;
    }

    .payment-methods {
        flex-direction: row;
        gap: 16px;
        margin-bottom: 20px;
    }

    .payment-method {
        flex: 1;
        padding: 20px;
        border-radius: 8px;
    }

    .payment-icon {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        font-size: 18px;
        margin-right: 12px;
    }

    .payment-text {
        font-size: 16px;
    }

    .payment-check {
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .payment-summary {
        border-radius: 8px;
        padding: 20px;
    }

    .summary-text {
        font-size: 18px;
    }

    .note-text {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .vip-benefits {
        width: 300px;
        padding: 30px;
        border-radius: 12px;
    }

    .benefits-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-item {
        padding: 12px;
        border-radius: 6px;
    }

    .benefit-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
        margin-right: 12px;
    }

    .benefit-text {
        font-size: 16px;
    }

    .site-footer {
        padding: 56px 0
    }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between
    }

    .footer-link {
        font-size: 14px
    }

    .footer-links-box {
        width: 50%;
    }

    .ftR ul {
        display: flex;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .ftR ul li span {
        font-size: 14px;
    }

    .ftR ul li {
        margin-right: 15px;
        margin-bottom: 10px;
    }
}

@media (max-width: 1025px) {
    .buy-main .container {
        padding:0 .1rem;
    }
    .buy-main {
        padding-top: .1rem;
    }

    .buy-title {
        font-size: .3rem;
    }

    .buy-subtitle {
        font-size: .15rem;
    }

    .label-text {
        font-size: .15rem;
    }
    .package-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .package-banner {
        display: flex !important;
        align-items: center;
        justify-content:  center;
        height: 45px;
        padding: 0;
        font-size: 10px;
    }
    .arrival-time {
        font-size: .15rem;
    }

    .form-input {
        height: .4rem;
        font-size: .15rem;
    }
    .package-card {
        overflow: hidden;
    }
    .package-banner {
        position: inherit;
        font-size: .15rem;
    }

    .section-title {
        font-size: .2rem;
    }

    .package-price {
        font-size: .2rem;
    }

    .package-original {
        font-size: .15rem;
    }

    .payment-method.selected {
        font-size: .14rem;
    }

    .payment-text {
        font-size: .15rem;
    }

    .summary-text {
        font-size: .15rem;
    }

    .payment-icon {
        font-size: .2rem;
        width: .3rem;
        height: .3rem;
    }

    .note-text {
        font-size: .15rem;
    }
}
