:root {
  --blue: #1269f5;
  --blue-dark: #082b78;
  --blue-soft: #eaf3ff;
  --text: #101828;
  --muted: #667085;
  --line: #e8eef7;
  --surface: #ffffff;
  --page: #f5f8fc;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #eaf1fa;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: radial-gradient(circle at 50% 0, #f9fcff 0, #e6eef8 60%, #dfe8f4 100%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.app-shell { position: relative; width: 100%; max-width: 500px; min-height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--page); box-shadow: 0 0 50px rgba(36, 65, 105, .13); }
.status-bar { position: fixed; z-index: 20; top: 0; width: 100%; max-width: 500px; height: calc(28px + env(safe-area-inset-top)); padding: calc(7px + env(safe-area-inset-top)) 22px 0; display: flex; align-items: flex-start; justify-content: space-between; font-size: 12px; font-weight: 800; background: rgba(247, 251, 255, .88); backdrop-filter: blur(18px); }
.status-icons { height: 14px; display: flex; align-items: center; gap: 5px; }
.signal { width: 14px; height: 10px; background: linear-gradient(to top, #172036 0 100%); clip-path: polygon(0 100%, 0 72%, 16% 72%, 16% 48%, 39% 48%, 39% 24%, 63% 24%, 63% 0, 79% 0, 79% 100%); }
.wifi { width: 13px; height: 9px; border: 2px solid #172036; border-bottom: 0; border-left-color: transparent; border-right-color: transparent; border-radius: 50% 50% 0 0; }
.battery { width: 19px; height: 9px; border: 1.5px solid #172036; border-radius: 2px; box-shadow: inset 0 0 0 1.5px #f7fbff; background: #172036; }
main { min-height: 100dvh; }
.page { display: none; min-height: 100dvh; padding: calc(42px + env(safe-area-inset-top)) 16px calc(94px + env(safe-area-inset-bottom)); animation: page-in .25s ease-out; }
.page.active { display: block; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }

.home-header { display: flex; align-items: center; justify-content: space-between; padding: 5px 2px 18px; }
.eyebrow { margin: 0 0 3px; color: var(--blue); letter-spacing: .19em; font-size: 9px; font-weight: 800; }
.home-header h1 { margin: 0; color: #08275e; font-size: 28px; letter-spacing: -.04em; }
.subtitle { margin: 4px 0 0; color: #59677d; font-size: 12px; }
.mini-program-pill { width: 83px; height: 36px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(10, 36, 74, .09); border-radius: 22px; background: rgba(255,255,255,.78); box-shadow: 0 4px 14px rgba(32, 63, 104, .06); }
.mini-program-pill img { width: 20px; height: 20px; }
.mini-program-pill span { height: 18px; width: 1px; background: #d9e1ed; }
.mini-program-pill.compact { position: absolute; right: 0; width: 79px; height: 34px; }

.search-box { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; margin-bottom: 15px; border: 1px solid #e2e9f2; border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 6px 20px rgba(31, 61, 101, .04); }
.search-box img { width: 19px; height: 19px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: #98a2b3; }
.search-box button { display: none; border: 0; background: transparent; font-size: 22px; color: #98a2b3; cursor: pointer; }
.search-box:focus-within { border-color: #b6d2ff; box-shadow: 0 0 0 3px rgba(18,105,245,.08); }

.hero-card { position: relative; height: 190px; padding: 24px 22px; overflow: hidden; border-radius: 24px; color: white; background: linear-gradient(135deg, #0957d8 0%, #1269f5 52%, #0c3da0 100%); box-shadow: 0 18px 35px rgba(13, 92, 222, .22); }
.hero-card::before { content: ""; position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(115deg, transparent 0 28px, rgba(255,255,255,.08) 29px, transparent 30px 58px); }
.hero-copy { position: relative; z-index: 2; }
.hero-tag { display: inline-block; padding: 5px 9px; border: 1px solid rgba(255,255,255,.22); border-radius: 7px; background: rgba(255,255,255,.12); font-size: 10px; }
.hero-copy h2 { margin: 12px 0 8px; font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.hero-copy p { margin: 0; color: #cfe2ff; font-size: 12px; }
.hero-art { position: absolute; z-index: 1; width: 155px; height: 155px; right: -5px; bottom: -10px; }
.hero-plane { position: absolute; z-index: 2; right: 27px; top: 12px; width: 90px; height: 90px; transform: rotate(-6deg); filter: drop-shadow(0 15px 15px rgba(0,25,100,.28)); }
.hero-plane img { width: 100%; height: 100%; }
.hero-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.hero-orb-one { right: -35px; top: -40px; width: 180px; height: 180px; }
.hero-orb-two { right: 21px; bottom: -100px; width: 180px; height: 180px; background: rgba(91,167,255,.18); }
.bar { position: absolute; bottom: 20px; width: 14px; border-radius: 4px 4px 0 0; background: linear-gradient(#8dc7ff, rgba(85,148,255,.15)); transform: skewY(-8deg); }
.bar-one { right: 83px; height: 35px; }.bar-two { right: 60px; height: 50px; }.bar-three { right: 37px; height: 68px; }

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin: 25px 2px 11px; }
.section-heading span { display: block; color: #78a7ef; font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.section-heading h2 { margin: 3px 0 0; font-size: 18px; }
.section-heading button { border: 0; background: transparent; color: var(--blue); font-size: 12px; cursor: pointer; }
.section-heading button b { font-size: 19px; vertical-align: -1px; }

.home-product-list, .detail-product-list, .nav-product-list { display: grid; gap: 10px; }
.product-card { width: 100%; min-height: 75px; display: flex; align-items: center; gap: 13px; padding: 11px 13px; text-align: left; border: 1px solid #e8edf5; border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: 0 7px 18px rgba(30, 56, 91, .06); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:active { transform: scale(.985); box-shadow: 0 3px 10px rgba(30, 56, 91, .06); }
.product-icon { width: 52px; height: 52px; flex: 0 0 auto; }
.product-content { min-width: 0; flex: 1; }
.product-name { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; font-size: 16px; font-weight: 750; }
.product-badge { padding: 2px 6px; border-radius: 5px; font-size: 9px; font-weight: 700; color: #e95b0c; background: #fff0e7; }
.product-summary { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #667085; font-size: 12px; }
.chevron { width: 18px; height: 18px; opacity: .75; }
.empty-search { padding: 34px 0; text-align: center; color: #98a2b3; font-size: 13px; }

.native-header { position: relative; min-height: 44px; display: flex; align-items: center; justify-content: center; margin: 0 0 12px; }
.native-header h1 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.native-header.simple { justify-content: center; margin-bottom: 20px; }
.back-button { position: absolute; left: -7px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.back-button img { width: 22px; height: 22px; }
.page-intro { position: relative; overflow: hidden; padding: 22px; margin: 9px 0 13px; border-radius: 21px; color: white; background: linear-gradient(135deg, #123f9d, #146ff6); }
.page-intro::after { content: ""; position: absolute; width: 130px; height: 130px; right: -48px; bottom: -67px; border-radius: 50%; border: 24px solid rgba(255,255,255,.09); }
.page-intro span { position: relative; z-index: 1; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.14); font-size: 10px; }
.page-intro h2 { position: relative; z-index: 1; max-width: 315px; margin: 13px 0 8px; font-size: 19px; line-height: 1.4; }
.page-intro p { position: relative; z-index: 1; margin: 0; color: #d7e7ff; font-size: 11px; line-height: 1.65; }
.detail-card { min-height: 126px; align-items: flex-start; padding: 16px 14px; cursor: default; }
.detail-card .product-icon { width: 56px; height: 56px; }
.detail-card .product-summary { display: -webkit-box; margin: 8px 0 0; overflow: hidden; white-space: normal; line-height: 1.65; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.detail-card .product-url { display: block; overflow: hidden; margin-top: 2px; color: var(--blue); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.card-action { align-self: center; flex: 0 0 auto; padding: 8px 12px; border: 0; border-radius: 10px; color: white; background: var(--blue); box-shadow: 0 6px 14px rgba(18,105,245,.22); font-size: 11px; font-weight: 700; cursor: pointer; }

.security-note { display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-bottom: 12px; border: 1px solid #d9e9ff; border-radius: 16px; background: #edf5ff; }
.security-note > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; }
.security-note b { display: block; margin-bottom: 2px; color: #174884; font-size: 13px; }
.security-note p { margin: 0; color: #6e89aa; font-size: 10px; }
.nav-card { min-height: 105px; padding: 15px 13px; }
.nav-card .product-icon { width: 62px; height: 62px; }
.nav-card .product-summary { margin-top: 7px; }
.nav-card .product-url { display: block; overflow: hidden; color: var(--blue); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.nav-card .unavailable { color: #e86a22; }
.capability-card { margin-top: 14px; padding: 18px 12px; border: 1px solid #e7edf6; border-radius: 19px; background: white; }
.cap-title { display: flex; align-items: center; gap: 10px; justify-content: center; color: var(--blue); }
.cap-title i { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, #a8c8fa); }
.cap-title i:last-child { transform: rotate(180deg); }
.cap-title h2 { margin: 0; font-size: 15px; }
.capability-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 15px; }
.capability-tags span { min-width: 65px; padding: 6px 12px; text-align: center; border: 1px solid #bad3fb; border-radius: 16px; color: #1762d5; background: #f7faff; font-size: 11px; }

.brand-card { padding: 30px 20px 26px; text-align: center; border-radius: 24px; color: white; background: radial-gradient(circle at 50% 0, #3990ff 0, #1269f5 48%, #1047ad 100%); box-shadow: 0 18px 35px rgba(18,105,245,.2); }
.brand-logo { width: 78px; height: 78px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 25px; background: white; box-shadow: 0 10px 25px rgba(0,29,87,.2); }
.brand-logo img { width: 67px; height: 67px; }
.brand-card h2 { margin: 0; font-size: 23px; }.brand-card p { margin: 7px 0 13px; color: #dceaff; font-size: 12px; }.brand-card > span { padding: 5px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 13px; background: rgba(255,255,255,.12); font-size: 10px; }
.profile-group { margin-top: 15px; overflow: hidden; border: 1px solid #e8edf5; border-radius: 18px; background: white; box-shadow: 0 7px 18px rgba(30,56,91,.05); }
.profile-group button { width: 100%; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; text-align: left; border: 0; border-bottom: 1px solid #edf1f6; background: white; cursor: pointer; }
.profile-group button:last-child { border-bottom: 0; }
.profile-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: white; font-weight: 800; }.profile-icon.blue { background: #2d83f7; }.profile-icon.green { background: #20b98d; }.profile-icon.purple { background: #765ae9; }
.profile-group div { min-width: 0; flex: 1; }.profile-group b { display: block; font-size: 14px; }.profile-group small { display: block; margin-top: 4px; color: #98a2b3; font-size: 10px; }.profile-group em { color: #a7b1c0; font-size: 23px; font-style: normal; }
.version { margin-top: 28px; text-align: center; color: #a1aaba; font-size: 10px; }

.tab-bar { position: fixed; z-index: 20; bottom: 0; width: 100%; max-width: 500px; height: calc(68px + env(safe-area-inset-bottom)); padding: 7px 18px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(215,224,235,.85); background: rgba(255,255,255,.93); backdrop-filter: blur(20px); }
.tab-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #68758a; cursor: pointer; }
.tab-icon { width: 26px; height: 26px; position: relative; display: block; }.tab-icon img { position: absolute; inset: 0; width: 26px; height: 26px; }.tab-icon .on { display: none; }.tab-bar button.active .on { display: block; }.tab-bar button.active .off { display: none; }.tab-icon .user-icon { display: block; }.tab-bar button.active .user-icon { filter: invert(34%) sepia(96%) saturate(2944%) hue-rotate(210deg) brightness(98%); }
.tab-bar b { font-size: 10px; font-weight: 600; }.tab-bar button.active { color: var(--blue); }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 50; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(8,19,39,.46); backdrop-filter: blur(3px); }
.modal-sheet { position: relative; z-index: 1; width: min(500px, 100%); padding: 28px 24px calc(26px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: white; animation: sheet-in .25s ease-out; }
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet-handle { position: absolute; top: 9px; left: 50%; width: 39px; height: 4px; margin-left: -19px; border-radius: 4px; background: #d7dce4; }
.modal-close { position: absolute; right: 17px; top: 21px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #667085; background: #f2f4f7; font-size: 21px; cursor: pointer; }
.modal-sheet > img { width: 65px; height: 65px; margin-bottom: 8px; }
.modal-sheet > span { display: block; width: max-content; padding: 4px 8px; border-radius: 6px; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 700; }
.modal-sheet h2 { margin: 9px 0 7px; font-size: 22px; }.modal-sheet > p { margin: 0; color: #667085; font-size: 13px; line-height: 1.7; }
.modal-features { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 20px; }.modal-features span { padding: 6px 10px; border-radius: 14px; color: #31537e; background: #f1f6fc; font-size: 11px; }
.modal-sheet > a { display: block; padding: 13px; text-align: center; text-decoration: none; border-radius: 13px; color: white; background: var(--blue); box-shadow: 0 8px 18px rgba(18,105,245,.23); font-size: 13px; font-weight: 700; }
.modal-sheet > a.disabled { color: #8b95a5; background: #eef1f5; box-shadow: none; pointer-events: none; }

@media (min-width: 640px) {
  .app-shell { min-height: 920px; margin: 24px auto; border: 7px solid #19202b; border-radius: 38px; box-shadow: 0 26px 70px rgba(35,55,83,.22); }
  .status-bar, .tab-bar { max-width: 486px; }
  .status-bar { top: 31px; border-radius: 31px 31px 0 0; }
  .tab-bar { bottom: 31px; border-radius: 0 0 31px 31px; }
  .page { min-height: 906px; }
}

@media (max-width: 360px) {
  .page { padding-left: 12px; padding-right: 12px; }
  .hero-card { padding-left: 17px; }.hero-copy h2 { font-size: 21px; }.hero-art { right: -26px; }
  .product-card { gap: 9px; padding-left: 10px; padding-right: 10px; }.product-icon { width: 47px; height: 47px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
