:root {
    --blue: #1d9bf0;
    --blue-deep: #1456df;
    --blue-dark: #06286d;
    --sky: #42c4ff;
    --text: #111827;
    --muted: #7b8794;
    --card: #ffffff;
    --line: rgba(29, 155, 240, .22);
    --shadow: 0 12px 30px rgba(18, 75, 143, .13);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html, body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: #eaf7ff;
}

body {
    max-width: 520px;
    margin: 0 auto;
    background:
        radial-gradient(circle at 20% 8%, rgba(66, 196, 255, .9), transparent 28%),
        linear-gradient(180deg, #061f60 0%, #0f72ce 28%, #dff6ff 70%, #ffffff 100%);
}

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

button {
    font: inherit;
}

.mobile-shell {
    position: relative;
    min-height: 100vh;
    padding-bottom: calc(92px + var(--safe-bottom));
    overflow: hidden;
}

.page {
    padding: 18px 16px 24px;
}

.top-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 92px;
    padding: 18px;
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 26px rgba(0, 35, 86, .12);
    margin: -18px -16px 18px;
}

.top-card.slim {
    margin-bottom: 30px;
}

.brand-block {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    background: #eef8ff;
    box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .16);
}

.brand-block h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .2px;
}

.brand-block p {
    margin: 6px 0 0;
    font-size: 16px;
    color: #1463d5;
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-btn {
    border: 0;
    min-width: 88px;
    height: 48px;
    border-radius: 999px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, #43b8ff 0%, #2257df 100%);
    box-shadow: 0 10px 20px rgba(24, 93, 215, .32);
}

.share-btn::before {
    content: "↗";
    margin-right: 6px;
    font-weight: 900;
}

.hero-slider {
    position: relative;
    height: 196px;
    margin-bottom: 18px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .3);
    box-shadow: var(--shadow);
}

.carousel,
.slide {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity .35s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dots {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    transition: width .25s ease, background .25s ease;
}

.dot.active {
    width: 18px;
    background: #fff;
}

.banner-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0a53d8, #45c1ff);
}

.banner-empty strong {
    font-size: 28px;
    font-weight: 900;
}

.banner-empty span {
    margin-top: 10px;
    opacity: .9;
}

.notice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 58px;
    padding: 0 16px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(90deg, #47bdff 0%, #2455e4 100%);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notice-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(255, 255, 255, .18);
}

.notice-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 800;
}

.notice-text span {
    display: inline-block;
    min-width: 100%;
    animation: marquee 14s linear infinite;
}

@keyframes marquee {
    0%, 12% { transform: translateX(0); }
    100% { transform: translateX(-55%); }
}

.section-block {
    margin-top: 22px;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin: 0 2px 12px;
}

.section-title span {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    letter-spacing: .2px;
}

.section-title em,
.section-title a {
    font-size: 13px;
    font-style: normal;
    color: rgba(255,255,255,.86);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.platform-card,
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
}

.platform-card {
    min-height: 184px;
    padding: 16px 12px 12px;
    border-radius: 18px;
}

.platform-card img {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(20, 86, 223, .12);
}

.platform-card strong,
.tool-card strong {
    max-width: 100%;
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.platform-card p,
.tool-card p {
    width: 100%;
    min-height: 36px;
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.platform-card span,
.tool-card span {
    width: 100%;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    background: linear-gradient(135deg, #45c2ff 0%, #1b8ef5 46%, #1456df 100%);
}

.tools-section {
    padding-top: 2px;
}

.tool-head {
    margin-bottom: 16px;
    padding: 14px 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #49c5ff, #1595ef);
    box-shadow: inset 0 0 0 4px rgba(255,255,255,.88), var(--shadow);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tool-card {
    min-height: 206px;
    padding: 20px 12px 14px;
    border-radius: 18px;
}

.tool-card img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4fbff;
    box-shadow: 0 8px 18px rgba(16, 93, 185, .12);
}

.dynamic-list {
    display: grid;
    gap: 12px;
}

.dynamic-list.full {
    gap: 14px;
}

.dynamic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 84px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.dynamic-item img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    flex: 0 0 auto;
}

.dynamic-item div {
    min-width: 0;
    flex: 1;
}

.dynamic-item strong {
    display: block;
    font-size: 16px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dynamic-item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dynamic-item .arrow {
    color: var(--blue);
    font-size: 28px;
    font-weight: 300;
}

.service-intro {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(239, 248, 255, .96);
    box-shadow: var(--shadow);
}

.intro-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-size: 28px;
    flex: 0 0 auto;
}

.service-intro h2 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 900;
}

.service-intro p {
    margin: 0;
    color: #5d6b7a;
    font-size: 15px;
    line-height: 1.7;
}

.contact-list {
    display: grid;
    gap: 16px;
}

.contact-card {
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(37, 122, 229, .14);
    box-shadow: var(--shadow);
}

.contact-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.contact-head img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid #1d67dc;
}

.contact-head h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
}

.contact-head p {
    margin: 6px 0 0;
    color: #ef405c;
    font-size: 15px;
}

.account-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 14px;
    background: #f9fcff;
    border: 1px solid rgba(15, 85, 184, .08);
}

.account-copy span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
}

.account-copy button {
    border: 0;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2f7df7, #1a45cf);
    font-size: 15px;
    font-weight: 900;
    flex: 0 0 auto;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-actions a {
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 900;
}

.contact-actions .primary {
    color: #fff;
    background: linear-gradient(135deg, #43b8ff, #1456df);
}

.contact-actions .ghost {
    color: var(--blue);
    background: #fff;
    border: 2px solid rgba(29, 155, 240, .72);
}

.empty-card {
    grid-column: 1 / -1;
    padding: 24px 16px;
    border-radius: 18px;
    text-align: center;
    color: #6b7280;
    background: rgba(255,255,255,.95);
    border: 1px dashed rgba(29,155,240,.35);
}

.empty-card.wide {
    min-height: 120px;
    display: grid;
    place-items: center;
}

.bottom-navigation {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: min(520px, 100%);
    transform: translateX(-50%);
    z-index: 20;
    height: calc(78px + var(--safe-bottom));
    padding: 10px 18px calc(10px + var(--safe-bottom));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(41, 140, 229, .18);
    box-shadow: 0 -10px 28px rgba(8, 52, 126, .14);
    backdrop-filter: blur(14px);
}

.nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #748091;
    font-weight: 800;
    border-radius: 18px;
    transition: all .2s ease;
}

.nav-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
}

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

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, #4fc8ff, #1a94f3);
    box-shadow: 0 10px 24px rgba(29, 155, 240, .32);
}

.nav-item.active .nav-icon {
    transform: translateY(-1px);
}

@media (max-width: 380px) {
    .page { padding-left: 12px; padding-right: 12px; }
    .top-card { margin-left: -12px; margin-right: -12px; }
    .platform-grid, .tool-grid { gap: 10px; }
    .platform-card { padding-left: 10px; padding-right: 10px; }
    .tool-card { padding-left: 10px; padding-right: 10px; }
}
