:root {
  --ink: #172448;
  --muted: #7183a9;
  --soft: #f1f4ff;
  --blue: #0878f7;
  --cyan: #32d7ef;
  --nav-height: 70px;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #fff; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(8,120,247,.28); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-shell { width: min(100%, 580px); min-height: 100vh; margin: 0 auto; padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 16px); background: #fff; }
.topbar { position: relative; display: grid; grid-template-columns: 46px 1fr 46px; align-items: center; height: 58px; padding: 6px 16px; background: rgba(255,255,255,.96); z-index: 4; }
.topbar h1 { margin: 0; text-align: center; font-size: 19px; line-height: 1; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 44px; height: 44px; padding: 3px; border-radius: 50%; background: linear-gradient(145deg,#59dcff,#085cf4 55%,#142250); box-shadow: inset 0 0 0 2px #fff, 0 2px 7px rgba(15,63,143,.22); }
.brand-mark span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-size: 23px; background: radial-gradient(circle at 35% 30%,#79f6ca,#19a1bc 54%,#152b66 55%); }

.page { display: none; padding: 0 16px 12px; }
.page.is-active { display: block; animation: page-in .18s ease-out; }
@keyframes page-in { from { opacity: .35; transform: translateY(4px); } }

.carousel { position: relative; overflow: hidden; width: 100%; aspect-ratio: 2.4 / 1; border-radius: 0; background: #f3f5fa; }
.carousel-track { height: 100%; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .42s ease; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.carousel-dots { position: absolute; left: 50%; bottom: 10px; display: flex; gap: 8px; transform: translateX(-50%); }
.dot { width: 18px; height: 6px; padding: 0; border: 0; border-radius: 9px; background: rgba(255,255,255,.7); box-shadow: 0 1px 3px rgba(0,0,0,.12); cursor: pointer; }
.dot.is-active { width: 28px; background: #4d7dff; }

.notice { display: flex; align-items: center; gap: 8px; height: 40px; margin: 12px 0 10px; padding: 0 11px; overflow: hidden; border-radius: 22px; background: #f0f2fb; color: #7b8cac; }
.notice-icon { flex: 0 0 auto; filter: saturate(.8); }
.notice-window { min-width: 0; overflow: hidden; }
.notice p { width: max-content; margin: 0; font-size: 14px; white-space: nowrap; animation: marquee 15s linear infinite; }
@keyframes marquee { from { transform: translateX(28%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .notice p { animation: none; } .slide { transition: none; } }

.intro-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 12px; }
.intro-card p { margin: 0 0 4px; font-size: 16px; color: #17203e; }
.intro-card strong { font-size: 22px; letter-spacing: .03em; }
.intro-support { display: flex; align-items: center; gap: 9px; max-width: 58%; padding: 0; border: 0; text-align: left; background: none; cursor: pointer; }
.intro-support > span:last-child { font-size: 14px; line-height: 1.35; }
.intro-support small { color: var(--muted); }
.support-avatar { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg,#475ca3,#20295d); box-shadow: 0 3px 8px rgba(29,42,101,.24); }
.support-avatar::after { content: "+"; position: absolute; right: -5px; bottom: -4px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-size: 12px; background: #16a9ff; border: 2px solid #fff; }

.section-heading { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 10px; }
.section-heading h2 { margin: 0; line-height: 0; }
.section-heading h2 img { display: block; width: 183px; max-width: 100%; height: auto; }
.section-heading button { padding: 7px 12px; border: 0; border-radius: 18px; color: #8090b1; background: #f1f3fb; cursor: pointer; }

.platform-grid { display: grid; gap: 6px; }
.platform-grid--home { grid-template-columns: repeat(3,minmax(0,1fr)); }
.platform-grid--all { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0 4px; }
.platform-card { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: space-between; min-height: 156px; padding: 13px 10px 12px; overflow: hidden; border-radius: 9px; background: linear-gradient(145deg,#f7f9ff,#eaf0ff); box-shadow: 0 1px 0 rgba(52,92,171,.04); }
.platform-grid--all .platform-card { min-height: 194px; padding: 20px 16px 16px; }
.recommend-ribbon { position: absolute; right: 0; top: 0; width: 43px; height: 43px; object-fit: contain; }
.platform-head { display: flex; align-items: center; min-width: 0; gap: 7px; padding-right: 6px; }
.platform-logo { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 1px 3px rgba(30,53,98,.12); }
.platform-name { min-width: 0; font-weight: 800; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.platform-description { display: -webkit-box; min-height: 38px; margin: 8px 0; overflow: hidden; color: #677ca4; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.platform-link { align-self: center; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.platform-link img { display: block; width: 92px; max-width: 100%; height: auto; }

.simple-page { position: relative; min-height: calc(100vh - var(--nav-height) - 58px); padding-top: 3px; }
.page-heading { margin: 0 0 22px; text-align: center; font-size: 19px; }
.back-button { position: absolute; left: 10px; top: -7px; width: 38px; height: 38px; padding: 0; border: 0; font-size: 36px; font-weight: 300; line-height: 30px; background: none; cursor: pointer; }
.contact-list, .publish-contact { padding: 14px; border-radius: 13px; background: #f1f2f8; }
.contact-row { display: grid; grid-template-columns: 58px 1fr 22px; align-items: center; width: 100%; min-height: 68px; padding: 8px 4px; border: 0; text-align: left; background: transparent; }
button.contact-row { cursor: pointer; }
.telegram-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; font-size: 25px; background: #2ba5d7; }
.contact-row strong, .contact-row small { display: block; }
.contact-row strong { margin-bottom: 5px; font-size: 16px; }
.contact-row small { color: #5e6883; font-size: 13px; overflow-wrap: anywhere; }
.verified { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; font-size: 11px; background: #20bde9; }
.category-pill { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 8px 12px; border-radius: 18px; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(100deg,#2bd2ed,#3572fc); }

.tool-list { overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 5px 22px rgba(45,66,120,.08); }
.tool-row { display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; width: 100%; min-height: 78px; padding: 12px 14px; border: 0; border-bottom: 1px solid #edf0f7; text-align: left; background: #fff; cursor: pointer; }
.tool-row:last-child { border-bottom: 0; }
.tool-row strong, .tool-row small { display: block; }
.tool-row strong { margin-bottom: 4px; }
.tool-row small { color: var(--muted); font-size: 12px; }
.tool-row b { font-size: 24px; color: #b0bad0; }
.tool-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #fff; font-size: 23px; }
.tool-icon--orange { background: #ff720d; } .tool-icon--violet { background: #7486ee; } .tool-icon--blue { background: #55b8f7; }
.publish-card { margin: 16px 6px 42px; padding: 35px 20px; border-radius: 10px; text-align: center; background: #fff; box-shadow: 0 5px 18px rgba(32,50,93,.1); }
.publish-card strong { font-size: 16px; }
.publish-card p { margin: 25px 0 8px; font-size: 24px; font-weight: 800; color: #46516c; }
.publish-card small { color: #7d8daa; }

.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5,1fr); width: min(100%,580px); height: calc(var(--nav-height) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); transform: translateX(-50%); background: linear-gradient(180deg,rgba(244,247,255,.97),#fff); box-shadow: 0 -5px 18px rgba(36,75,140,.05); }
.bottom-nav button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; min-width: 0; padding: 7px 2px 5px; border: 0; color: #7d8dad; background: transparent; cursor: pointer; }
.bottom-nav img { display: block; width: 28px; height: 28px; object-fit: contain; }
.bottom-nav em { font-size: 13px; font-style: normal; }
.bottom-nav button.is-active { color: #38466c; font-weight: 800; }

.floating-service { position: fixed; right: max(14px,calc((100vw - 580px)/2 + 14px)); bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 14px); z-index: 35; display: flex; align-items: center; gap: 5px; padding: 9px 12px; border: 0; border-radius: 24px; color: #fff; background: linear-gradient(120deg,#20d5df,#0879f6); box-shadow: 0 7px 20px rgba(8,103,216,.28); cursor: pointer; }
.floating-service span { font-size: 20px; }.floating-service em { font-size: 13px; font-style: normal; font-weight: 700; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(18,29,60,.46); }
.modal-backdrop[hidden], .chat-panel[hidden] { display: none; }
.info-modal { position: relative; width: min(100%,360px); padding: 28px 24px 22px; border-radius: 18px; text-align: center; background: #fff; box-shadow: 0 22px 60px rgba(4,20,66,.25); }
.info-modal h2 { margin: 9px 0; font-size: 20px; }.info-modal p { margin: 0 0 20px; color: #6b7896; font-size: 14px; line-height: 1.65; }
.modal-symbol { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 15px; color: #fff; font-size: 30px; background: linear-gradient(145deg,#59e1f0,#1f70fa); }
.modal-close { position: absolute; right: 11px; top: 8px; width: 36px; height: 36px; padding: 0; border: 0; font-size: 26px; background: none; cursor: pointer; }
.primary-button { min-width: 120px; padding: 10px 18px; border: 0; border-radius: 22px; color: #fff; background: linear-gradient(100deg,#35d7e6,#1875f4); cursor: pointer; }

.chat-panel { position: fixed; right: max(12px,calc((100vw - 580px)/2 + 12px)); bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px); z-index: 90; display: grid; grid-template-rows: auto 1fr auto; width: min(380px,calc(100vw - 24px)); height: min(560px,calc(100vh - var(--nav-height) - 34px)); overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 22px 70px rgba(7,31,84,.3); }
.chat-panel header { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; color: #fff; background: linear-gradient(115deg,#142b62,#087bf8); }
.chat-panel header > div { display: grid; grid-template-columns: 10px 1fr; align-items: center; column-gap: 7px; }
.chat-panel header strong { font-size: 16px; }.chat-panel header small { grid-column: 2; opacity: .8; font-size: 11px; }
.chat-panel header button { width: 34px; height: 34px; padding: 0; border: 0; color: #fff; font-size: 25px; background: transparent; cursor: pointer; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #51efbd; box-shadow: 0 0 0 3px rgba(81,239,189,.18); }
.chat-messages { display: flex; flex-direction: column; gap: 10px; padding: 16px; overflow-y: auto; background: #f4f7fc; }
.message { max-width: 83%; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.message--service { align-self: flex-start; border-bottom-left-radius: 4px; color: #38486b; background: #fff; box-shadow: 0 3px 12px rgba(34,56,101,.07); }
.message--user { align-self: flex-end; border-bottom-right-radius: 4px; color: #fff; background: linear-gradient(135deg,#2cd2df,#1679f4); }
.message img { display: block; max-width: 210px; max-height: 220px; border-radius: 10px; object-fit: contain; }
.chat-form { display: grid; grid-template-columns: 38px 1fr auto; gap: 7px; align-items: center; padding: 10px; border-top: 1px solid #e9edf5; background: #fff; }
.chat-form input[type=text] { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid #dce3ef; border-radius: 20px; color: #263657; background: #f8faff; }
.chat-form button { height: 38px; padding: 0 14px; border: 0; border-radius: 19px; color: #fff; background: #147cf5; cursor: pointer; }
.image-button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #5072a8; background: #edf2fb; cursor: pointer; }
.image-button input { display: none; }

@media (min-width: 720px) {
  body { background: #f5f7fc; }
  .site-shell { box-shadow: 0 0 40px rgba(35,58,105,.09); }
  .topbar { height: 62px; }
  .platform-grid--home { gap: 8px; }
  .platform-card { min-height: 166px; }
}

@media (max-width: 359px) {
  .page { padding-left: 10px; padding-right: 10px; }
  .platform-card { padding-left: 7px; padding-right: 7px; }
  .platform-logo { width: 30px; height: 30px; }
  .platform-name { font-size: 12px; }
  .platform-link { padding-left: 9px; padding-right: 9px; font-size: 12px; }
  .intro-support { max-width: 62%; }
}
