:root {
    --brand: #ff2442;
    --brand-deep: #e31a36;
    --brand-soft: #ffe8ec;
    --bg: #f6f7fb;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-sub: #666666;
    --text-light: #999999;
    --border: #eeeeee;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.06);
    --shadow-strong: 0 14px 40px rgba(0,0,0,0.12);
    --success: #10b981;
    --danger: #ef4444;
    --weixin: #07c160;
    --alipay: #1677ff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system,BlinkMacSystemFont,system-ui,PingFang SC,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;
    background: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.page {
    min-height: 100vh;
    max-width: 640px;
    margin: 0 auto;
    background: linear-gradient(180deg,#ffffff 0%,#fff5f6 40%,#f6f7fb 100%);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg,#ffffff 0%,#fff5f6 50%,#ffe8ec 100%);
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    border-radius: 0 0 16px 16px;
}
.top-nav-inner {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}
.top-nav-left,
.top-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.top-nav-link {
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .08s ease, box-shadow .12s ease;
    white-space: nowrap;
}
.top-nav-link:hover {
    background: rgba(255,36,66,0.08);
    color: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.top-nav-link:active {
    transform: translateY(0);
    box-shadow: none;
}
.top-nav-link.active {
    background: linear-gradient(135deg,#ff2442,#ff6b8b);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255,36,66,0.35);
}

.header {
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
.logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(255,36,66,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.header-title {
    font-size: 27px;
    font-weight: 700;
}
.header-sub {
    font-size: 17px;
    color: var(--text-sub);
}

.hero {
    margin: 0 16px 12px;
    padding: 12px 14px;
    border-radius: 20px;
    background: radial-gradient(circle at 0 0,#ffdfe6 0,#ffeef2 26%,#ffffff 60%,#fff5f6 100%);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.hero-left {
    max-width: 62%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    font-size: 11px;
    color: var(--brand-deep);
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(255,36,66,0.28);
}
.hero-title {
    margin-top: 6px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}
.hero-desc {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.5;
}
.hero-tags {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hero-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: var(--text-sub);
}
.hero-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-phone {
    width: 98px;
    height: 158px;
    border-radius: 26px;
    padding: 10px 8px;
    background: linear-gradient(150deg,#ffffff 0%,#ffe6ec 40%,#ffc7d5 100%);
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
    position: relative;
    overflow: hidden;
}
.hero-phone-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #fff;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hero-phone-header {
    width: 46px;
    height: 8px;
    border-radius: 8px;
    background: #f5f5f5;
    margin: 0 auto 4px;
}
.hero-phone-card {
    border-radius: 12px;
    padding: 6px;
    background: linear-gradient(135deg,#ff2442,#ff5878);
    color: #fff;
    font-size: 10px;
}
.hero-phone-card-title {
    font-weight: 600;
    margin-bottom: 2px;
}
.hero-phone-card-sub {
    opacity: 0.92;
}
.hero-phone-footer-line {
    width: 70%;
    height: 6px;
    border-radius: 6px;
    background: #f3f4f6;
    margin-top: 8px;
}

.main {
    padding: 4px 16px 80px;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 14px 14px 16px;
    margin-bottom: 12px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.card-header-main {
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-header-icon {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(135deg,#ff2442,#ff7c96);
}
.card-header-icon.account {
    background: linear-gradient(135deg,#ff6b8b,#ff2442);
}
.card-header-icon.pkg {
    background: linear-gradient(135deg,#ff9f7b,#ff2442);
}
.card-header-icon.pay {
    background: linear-gradient(135deg,#7cc6ff,#1677ff);
}
.card-title {
    font-size: 15px;
    font-weight: 600;
}
.card-sub {
    font-size: 11px;
    color: var(--text-sub);
}
.badge-soft {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.account-input-wrap {
    margin-top: 6px;
    position: relative;
}
.account-input {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid #f1f1f1;
    padding: 0 12px 0 38px;
    background: #fafafa;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .12s ease;
}
.account-input:focus {
    outline: none;
    border-color: rgba(255,36,66,0.55);
    box-shadow: 0 0 0 1px rgba(255,36,66,0.16);
    background: #ffffff;
    transform: translateY(-1px);
}
.account-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(2px);
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: linear-gradient(135deg,#ff2442,#ff6b88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
}
.tips {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-light);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 8px;
}
@media (min-width: 480px) {
    .packages-grid {
        grid-template-columns: repeat(3,1fr);
    }
}
.pkg-item {
    position: relative;
    border-radius: 14px;
    padding: 10px 9px 9px;
    background: #fafafa;
    border: 1px solid #f1f1f1;
    cursor: pointer;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.pkg-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    background: #ffffff;
}
.pkg-item.selected {
    border-color: rgba(255,36,66,0.9);
    background: radial-gradient(circle at 0 0,#ffe5ec 0,#fff7f9 40%,#ffffff 100%);
    box-shadow: 0 10px 28px rgba(255,36,66,0.25);
}
.pkg-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.pkg-amount-symbol {
    font-size: 12px;
    color: var(--text-sub);
}
.pkg-amount-num {
    font-size: 18px;
    font-weight: 700;
}
.pkg-extra {
    margin-top: 4px;
    font-size: 11px;
    color: var(--brand-deep);
}
.pkg-bottom {
    margin-top: 4px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.pkg-bottom-price {
    font-size: 11px;
    color: var(--brand-deep);
}
.pkg-tag-top {
    position: absolute;
    right: -36px;
    top: 8px;
    transform: rotate(40deg);
    background: linear-gradient(135deg,#ff2442,#ff7c96);
    color: #fff;
    font-size: 10px;
    padding: 2px 30px;
}

.coupon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.coupon-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fff7e6;
    color: #b45309;
}
.coupon-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-sub);
    cursor: pointer;
}
.coupon-switch-dot {
    width: 26px;
    height: 16px;
    border-radius: 999px;
    background: #e5e7eb;
    position: relative;
    transition: background .16s ease;
}
.coupon-switch-knob {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 2px;
    left: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    transition: transform .16s ease;
}
.coupon-switch.active .coupon-switch-dot {
    background: rgba(255,36,66,0.9);
}
.coupon-switch.active .coupon-switch-knob {
    transform: translateX(10px);
}

.coupon-list {
    margin-top: 8px;
}
.coupon-scroller {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}
.coupon-scroller::-webkit-scrollbar {
    display: none;
}
.coupon-card {
    min-width: 120px;
    max-width: 140px;
    border-radius: 14px;
    background: linear-gradient(135deg,#fff7ef,#ffe3c7);
    padding: 8px 10px;
    position: relative;
}
.coupon-card::before,
.coupon-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    transform: translateY(-50%);
}
.coupon-card::before {
    left: -5px;
}
.coupon-card::after {
    right: -5px;
}
.coupon-card-main {
    font-size: 16px;
    font-weight: 700;
    color: #b45309;
}
.coupon-card-line {
    margin-top: 2px;
    font-size: 11px;
    color: #92400e;
}
.coupon-card-tag {
    margin-top: 4px;
    font-size: 10px;
    color: #b45309;
}
.coupon-slider-wrap {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-light);
}
.coupon-range {
    flex: 1;
}
.coupon-footnote {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-light);
}

.pay-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.pay-item {
    flex: 1;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #f2f2f2;
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .12s ease;
}
.pay-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    background: #ffffff;
}
.pay-item.selected {
    border-color: rgba(255,36,66,0.88);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(255,36,66,0.16);
}
.pay-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.pay-icon-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}
.pay-text-main {
    font-size: 13px;
}
.pay-text-sub {
    font-size: 11px;
    color: var(--text-light);
}
.pay-radio {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #d4d4d4;
    position: relative;
    margin-left: auto;
}
.pay-item.selected .pay-radio {
    border-color: var(--brand-deep);
}
.pay-item.selected .pay-radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--brand-deep);
}

.summary {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #f9fafb;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-left span {
    display: block;
}
.summary-label {
    color: var(--text-sub);
}
.summary-amount {
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-deep);
}
.summary-right {
    text-align: right;
    font-size: 11px;
    color: var(--text-light);
}

.submit-wrap {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 -16px;
    padding: 8px 16px 10px;
    background: linear-gradient(180deg,rgba(246,247,251,0) 0%,#f6f7fb 40%,#f6f7fb 100%);
}
.submit-btn {
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg,#ff2442,#ff6a86);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(255,36,66,0.4);
    transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
}
.submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 40px rgba(255,36,66,0.5);
}
.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 26px rgba(255,36,66,0.36);
}
.submit-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}
.submit-btn-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    border-top-color: transparent;
    animation: spin 0.7s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.notice-bar {
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}
.notice-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.section {
    margin-top: 10px;
}
.section-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.section-icon {
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(135deg,#ff6b8b,#ff2442);
}
.section-icon.info {
    background: linear-gradient(135deg,#ff9f7b,#ff2442);
}
.section-title {
    font-size: 14px;
    font-weight: 600;
}
.section-tag {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f3f4ff;
    color: #4b5563;
}

.info-wrapper {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    padding: 10px 12px 12px;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 4px;
}
@media (min-width: 520px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}
.info-card {
    border-radius: 12px;
    background: #fafafa;
    padding: 8px 10px;
}
.info-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.info-card.collapsible .info-card-header {
    cursor: pointer;
}
.info-icon {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg,#ff6b8b,#ff2442);
}
.info-icon.tips {
    background: linear-gradient(135deg,#22c55e,#14b8a6);
}
.info-icon.desc {
    background: linear-gradient(135deg,#f97316,#facc15);
}
.info-icon.faq {
    background: linear-gradient(135deg,#38bdf8,#6366f1);
}
.info-card-title {
    font-size: 13px;
    font-weight: 600;
}
.info-toggle-icon {
    margin-left: auto;
    font-size: 14px;
    color: var(--text-light);
}
.info-card.collapsible .section-content {
    display: none;
}
.info-card.collapsible.open .section-content {
    display: block;
}
.info-card.collapsible.open .info-toggle-icon {
    transform: rotate(90deg);
}

.section-content {
    font-size: 12px;
    color: var(--text-sub);
    line-height: 1.7;
}
.section-content p + p {
    margin-top: 6px;
}

.faq-list {
    margin-top: 2px;
}
.faq-item {
    margin-top: 5px;
    border-radius: 8px;
    padding: 6px 8px;
    background: #f4f4f5;
    cursor: pointer;
}
.faq-q {
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-toggle-icon {
    font-size: 14px;
    color: var(--text-light);
    margin-left: 6px;
}
.faq-a {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 4px;
    display: none;
}
.faq-item.open .faq-a {
    display: block;
}
.faq-item.open .faq-toggle-icon {
    transform: rotate(90deg);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 80px;
    transform: translateX(-50%) translateY(20px);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(33,33,33,0.92);
    color: #ffffff;
    font-size: 12px;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 20;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.order-popup-mask {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 30;
}
.order-popup-mask.show {
    opacity: 1;
    pointer-events: auto;
}
.order-popup {
    width: 86%;
    max-width: 360px;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px 14px 12px;
    box-shadow: var(--shadow-strong);
}
.order-popup-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.order-popup-text {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
}
.order-popup-highlight {
    color: var(--brand-deep);
    font-weight: 600;
}
.order-popup-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.btn-light {
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: #f3f4f6;
    font-size: 12px;
    cursor: pointer;
}
.btn-primary {
    padding: 6px 14px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg,#ff2442,#ff6a86);
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
}

.err-text {
    margin-top: 4px;
    font-size: 11px;
    color: var(--danger);
}

.footer {
    padding: 10px 16px 16px;
    font-size: 11px;
    color: var(--text-light);
    text-align: center;
}
.footer-line {
    margin-bottom: 4px;
}
