:root {
    --bg: #20314d;
    --bg-deep: #152238;
    --panel: rgba(255, 255, 255, 0.08);
    --panel-strong: rgba(255, 255, 255, 0.14);
    --line: rgba(255, 255, 255, 0.12);
    --text: #eef4ff;
    --muted: rgba(238, 244, 255, 0.72);
    --accent: #17a5ff;
    --accent-alt: #79d268;
    --shadow: 0 24px 60px rgba(6, 17, 34, 0.34);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(23, 165, 255, 0.16), transparent 28%),
        radial-gradient(circle at left center, rgba(121, 210, 104, 0.12), transparent 32%),
        linear-gradient(180deg, #243753 0%, #1d2e49 46%, #162437 100%);
    color: var(--text);
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background: rgba(22, 35, 55, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
    gap: 24px;
}

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

.brand__logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand__sub {
    font-size: 12px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.48);
    text-transform: uppercase;
}

.brand__text strong {
    font-size: 20px;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav__link {
    padding: 12px 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: 0.24s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(14, 23, 39, 0.92) 5%, rgba(14, 23, 39, 0.54) 48%, rgba(14, 23, 39, 0.88) 100%),
        radial-gradient(circle at 70% 30%, rgba(23, 165, 255, 0.22), transparent 20%);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(260px, 380px);
    gap: 48px;
    padding: 100px 0 72px;
    align-items: center;
    min-height: 720px;
}

.hero__content {
    max-width: 760px;
}

.hero__content--loading {
    opacity: 0;
}

.hero-card--loading {
    opacity: 0;
}

.hero--inner .hero__inner {
    min-height: 520px;
    padding-top: 72px;
    padding-bottom: 48px;
}

.hero__eyebrow,
.section-heading__eyebrow {
    margin: 0 0 14px;
    color: #84d769;
    letter-spacing: 0.22em;
    font-size: 12px;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 60px);
    line-height: 1.06;
}

.hero__desc {
    max-width: 720px;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    max-width: 620px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    min-width: 150px;
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 0.24s ease;
    line-height: 1;
    white-space: nowrap;
    font-size: 14px;
}

.btn--primary {
    background: linear-gradient(120deg, #0b7bff 0%, #12a5ff 100%);
    box-shadow: 0 14px 30px rgba(8, 88, 181, 0.35);
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.04);
}

.btn.is-disabled {
    opacity: 0.56;
    pointer-events: none;
}

.btn--block {
    width: 100%;
}

.hero-mini-entry {
    position: relative;
    display: inline-flex;
}

.btn--mini {
    cursor: pointer;
}

.hero-mini-entry .btn {
    width: 150px;
    min-width: 150px;
}

.hero-mini-entry__panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 8;
    min-width: 210px;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(11, 22, 38, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    display: none !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.hero-mini-entry:hover .hero-mini-entry__panel,
.hero-mini-entry:focus-within .hero-mini-entry__panel {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hero-mini-entry__qrcode {
    width: 182px;
    height: 182px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-mini-entry__qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-mini-entry__text {
    margin: 12px 0 0;
    color: rgba(238, 244, 255, 0.72);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.hero-mini-entry__qrcode--empty {
    display: none;
}

.hero-card,
.side-card,
.content-panel,
.service-card,
.news-card,
.library-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-card {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.hero-card__label {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.62);
}

.hero-card h3 {
    margin: 0;
    font-size: 30px;
}

.hero-card p {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.hero-card__list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.hero-card__list li {
    position: relative;
    padding-left: 18px;
    margin-top: 12px;
}

.hero-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent-alt), var(--accent));
}

.section {
    padding: 88px 0;
}

.section--cards {
    padding-top: 36px;
}

.section--download {
    padding-top: 48px;
}

.section--dark {
    background: linear-gradient(180deg, rgba(9, 18, 31, 0.16), rgba(9, 18, 31, 0.28));
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: 40px;
}

.section-heading p {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

.section-heading__link {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--muted);
}

.service-grid,
.news-grid,
.library-grid,
.download-grid {
    display: grid;
    gap: 22px;
}

.service-grid {
    grid-template-columns: 1fr;
}

.news-grid,
.library-grid,
.download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 26px;
    min-height: 300px;
}

.download-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #9cd9ff;
    font-size: 12px;
}

.download-card h3 {
    margin: 18px 0 12px;
    font-size: 28px;
}

.download-card p {
    color: var(--muted);
    line-height: 1.8;
}

.download-card__qrcode {
    margin-top: 24px;
    width: 180px;
    height: 180px;
    padding: 12px;
    border-radius: 20px;
    background: #fff;
}

.download-card__qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.download-card__placeholder {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.52);
}

.service-card,
.news-card,
.library-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.service-carousel {
    position: relative;
    width: 100%;
}

.service-grid .service-carousel {
    margin-top: 6px;
}

.service-carousel__viewport {
    overflow: hidden;
    border-radius: 28px;
    border: 0;
    box-shadow: none;
    width: 100%;
}

.service-carousel__track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
}

.service-carousel__slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 7;
    padding: 0;
    border-radius: 28px;
    background: #10233b;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-carousel__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
}

.service-carousel__nav--prev {
    left: 22px;
}

.service-carousel__nav--next {
    right: 22px;
}

.service-carousel__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.service-carousel__dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.service-carousel__dot.is-active {
    width: 28px;
    background: #9de46f;
}

.service-page {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
}

.service-page__sidebar {
    position: sticky;
    top: 108px;
    align-self: start;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.service-page__sidebar h3 {
    margin: 0 0 10px;
    font-size: 26px;
}

.service-page__categories {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.service-page__category {
    text-align: left;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.service-page__category.is-active {
    background: rgba(23, 165, 255, 0.16);
    border-color: rgba(23, 165, 255, 0.32);
}

.service-page__main {
    min-width: 0;
}

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

.content-panel--service {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.content-panel--detail-page {
    padding: 0;
}

.service-image-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.service-image-card__thumb {
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.04);
}

.service-image-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image-card__body {
    padding: 20px;
}

.service-preview {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.service-preview__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 26, 0.82);
    backdrop-filter: blur(12px);
}

.service-preview__panel {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 32px));
    height: min(82vh, 760px);
    margin: 6vh auto 0;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 28, 44, 0.98), rgba(10, 18, 29, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.service-preview__stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-preview__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.06));
}

.service-preview__caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(9, 17, 29, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-preview__caption h3 {
    margin: 10px 0 0;
    font-size: 24px;
}

.service-preview__caption p {
    margin: 10px 0 0;
    color: var(--muted);
}

.service-preview__tag {
    color: #9de46f;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.service-preview__close,
.service-preview__nav {
    position: absolute;
    z-index: 2;
    border: 0;
    color: #fff;
}

.service-preview__close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 26px;
}

.service-preview__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 30px;
}

.service-preview__nav--prev {
    left: 16px;
}

.service-preview__nav--next {
    right: 16px;
}

body.is-preview-open {
    overflow: hidden;
}

.service-card {
    min-height: 280px;
    padding: 28px;
}

.service-card__tag,
.news-card__tag,
.library-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #b8f493;
    font-size: 12px;
}

.service-card h3,
.news-card h3,
.library-card h3 {
    margin: 18px 0 0;
    font-size: 28px;
    line-height: 1.3;
}

.service-card p,
.news-card p,
.library-card p,
.content-panel p,
.side-card p {
    color: var(--muted);
    line-height: 1.8;
}

.card-link {
    display: inline-flex;
    margin-top: 18px;
    color: #9de46f;
}

.news-card,
.library-card {
    padding: 26px;
    min-height: 260px;
}

.card-meta {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.split-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.side-card {
    position: sticky;
    top: 108px;
    padding: 28px;
    border-radius: var(--radius-lg);
}

.side-card__body {
    display: none;
    margin-top: 18px;
    gap: 10px;
}

.news-category-list {
    display: grid;
    gap: 10px;
}

.news-category-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    text-align: left;
}

.news-category-item.is-active {
    border-color: rgba(157, 228, 111, 0.35);
    background: rgba(157, 228, 111, 0.14);
    color: #f3ffe5;
}

.content-panel {
    padding: 34px;
    border-radius: var(--radius-xl);
    min-height: 360px;
}

.news-page__list {
    display: grid;
    gap: 18px;
}

.news-page-item {
    min-height: 0;
}

.news-page-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 13px;
}

.content-list {
    display: grid;
    gap: 18px;
}

.content-item {
    padding: 22px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-item h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.content-item h2 {
    margin: 0 0 14px;
    font-size: 32px;
}

.content-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.inline-link {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(23, 165, 255, 0.14);
    color: #9cd9ff;
}

.content-rich {
    margin-top: 18px;
    color: var(--text);
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.content-rich img {
    border-radius: 18px;
    max-width: 100%;
    height: auto;
}

.content-rich * {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.content-rich p,
.content-rich div,
.content-rich span,
.content-rich a,
.content-rich li,
.content-rich td,
.content-rich th {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.content-rich table {
    width: 100% !important;
    table-layout: fixed;
}

.content-rich pre,
.content-rich code {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
}

.detail-meta {
    color: rgba(255, 255, 255, 0.56);
}

.content-item--detail {
    background: rgba(255, 255, 255, 0.05);
}

.library-detail-page {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.library-detail-page__hero {
    padding: 42px 42px 28px;
    background:
        linear-gradient(135deg, rgba(18, 33, 56, 0.94), rgba(20, 49, 85, 0.82)),
        radial-gradient(circle at right top, rgba(23, 165, 255, 0.18), transparent 28%);
}

.library-detail-page__hero h1 {
    margin: 0;
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.2;
}

.library-detail-page__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: rgba(238, 244, 255, 0.68);
}

.library-detail-page__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.library-detail-page__summary {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.9;
}

.library-detail-page__body {
    padding: 34px 42px 42px;
}

.status-empty {
    padding: 46px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.52);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

.site-footer {
    padding: 34px 0 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(7, 14, 24, 0.54);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__brand {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
}

.site-footer__text,
.site-footer__meta {
    color: rgba(255, 255, 255, 0.58);
}

.site-footer__icp {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
}

@media (max-width: 960px) {
    .hero__inner,
    .split-layout,
    .service-grid,
    .news-grid,
    .library-grid,
    .site-footer__inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .service-page,
    .service-page__grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 84px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 20px;
        background: rgba(16, 29, 46, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-nav.is-open {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero__inner {
        min-height: auto;
        padding-top: 72px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .content-panel,
    .hero-card,
    .service-card,
    .news-card,
    .library-card,
    .side-card {
        padding: 22px;
    }
}
