* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #0f0f0f;
    color: #ffffff;
    font-family: "UKIJ Tor", "Microsoft Uighur", -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 100px;
    line-height: 1.5;
}

::-webkit-scrollbar {
    display: none;
}

.container {
    padding: 15px;
    max-width: 500px;
    margin: 0 auto;
}

/* ========== 顶部标题区域 ========== */
.header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.header h1 {
    color: #ffc107;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.header p {
    font-size: 12px;
    color: #cccccc;
    margin-bottom: 5px;
    padding: 0 10px;
}

/* ========== 卡片通用样式 ========== */
.card {
    background-color: #1c1c1c;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.card.active-card {
    border-color: #444;
    background-color: #222;
}

.card-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.card-tag {
    width: 60%;
    text-align: center;
    padding: 10px 0;
    border-radius: 30px;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tag-vip { background-color: #ff9800; color: #000; }
.tag-svip { background-color: #f44336; color: #ffeb3b; }

/* ========== 横向滑动套餐区域 ========== */
.plans-wrapper {
    position: relative;
}

.plans-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.plan-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 12px 5px;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 95px;
    flex: 0 0 32%; 
    scroll-snap-align: start;
}

.plan-item.active {
    border-color: #ffc107;
    background-color: #332e20;
}

.plan-title { font-size: 13px; color: #e0e0e0; margin-bottom: 6px; font-weight: 500; }
.plan-price { font-size: 14px; font-weight: bold; color: #ffffff; direction: ltr; }
.plan-item.active .plan-price { color: #ffc107; }
.plan-sub { font-size: 10px; color: #888; margin-top: 4px; }

/* ========== 底部权益区域 ========== */
.rights-section { margin-top: 30px; }
.rights-header {
    display: flex; align-items: center; justify-content: flex-start;
    margin-bottom: 15px; font-size: 16px; font-weight: bold; color: #fff;
}
.rights-header::after {
    content: ''; display: block; width: 4px; height: 16px;
    background-color: #ffc107; margin-left: 10px; order: -1;
}
.rights-list { background-color: #1c1c1c; border-radius: 16px; padding: 5px 15px; }
.rights-item {
    display: flex; align-items: center; padding: 15px 0;
    border-bottom: 1px solid #2a2a2a; flex-direction: row-reverse; justify-content: flex-end;
}
.rights-item:last-child { border-bottom: none; }
.check-icon {
    width: 18px; height: 18px; background-color: #ffc107;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; margin-left: 10px; position: relative;
}
.check-icon::before { content: "✔"; color: #4caf50; font-size: 14px; font-weight: bold; }
.rights-text { font-size: 18px; color: #fff; text-align: right; flex: 1; }

/* ========== 底部固定栏 ========== */
.footer-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: #0f0f0f; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #222; z-index: 100;
}
.total-price-box { display: flex; flex-direction: column; justify-content: center; }
.total-label { font-size: 12px; color: #aaa; margin-bottom: 2px; }
.total-price { font-size: 24px; color: #ffc107; font-weight: bold; direction: ltr; }
.buy-btn {
    background: linear-gradient(90deg, #ff9800, #ffc107);
    color: #000; font-weight: bold; border: none; border-radius: 30px;
    padding: 12px 30px; font-size: 16px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: transform 0.1s; font-family: "UKIJ Tor", sans-serif;
}
.askartix{
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.buy-btn:active { transform: scale(0.98); }

/* ========== 二维码弹屏 ========== */
.qr-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}
.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.28s ease, visibility 0s linear 0s;
}
.qr-modal-content {
    position: relative;
    width: 78vw;
    max-width: 360px;
    transform: scale(0.88);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}
.qr-modal-overlay.active .qr-modal-content {
    transform: scale(1);
}
.qr-modal-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 80vh;
    max-height: 80dvh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-touch-callout: default;
    pointer-events: auto;
}
.qr-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 2;
    padding: 0;
    -webkit-appearance: none;
    transition: transform 0.15s ease;
}
.qr-modal-close:active {
    transform: scale(0.9);
    background: #f5f5f5;
}
@media (max-width: 375px) {
    .qr-modal-close {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}