* {
    box-sizing: border-box;
}

:root {
    --ink: #f5f3ed;
    --ink-soft: rgba(245, 243, 237, 0.78);
    --ink-muted: rgba(245, 243, 237, 0.58);
    --panel: rgba(21, 28, 28, 0.78);
    --panel-strong: rgba(17, 23, 24, 0.88);
    --line: rgba(245, 243, 237, 0.14);
    --lake: #4f9ead;
    --lake-deep: #2f7888;
    --moss: #83a66f;
    --moss-deep: #5f854f;
    --iris: #8f86b9;
    --iris-deep: #6d6599;
    --sky: #75b7c9;
    --sky-deep: #4b91a7;
    --clay: #d58d65;
    --stone: #69706d;
    --danger: #b35a52;
    --danger-deep: #95453f;

    --page-pad: clamp(1.375rem, 3vw, 3.75rem);
    --header-h: clamp(5.125rem, 7.5vw, 8.625rem);
    --header-h-compact: clamp(4rem, 4.45vw, 5.125rem);
    --header-pad-x: clamp(1.25rem, 3.7vw, 4.25rem);
    --section-pad-y: clamp(3.5rem, 7vh, 6rem);
    --button-w: clamp(8rem, 8.5vw, 9.75rem);
    --button-h: clamp(2.75rem, 2.95vw, 3.375rem);
    --button-pad-x: clamp(0.9rem, 1.3vw, 1.5rem);
    --button-radius: clamp(0.375rem, 0.45vw, 0.5rem);
    --panel-radius: clamp(0.375rem, 0.45vw, 0.5rem);
    --shadow-panel: 0 3vh 7vh rgba(0, 0, 0, 0.24);
    --shadow-button: 0 1.1vh 2.6vh rgba(0, 0, 0, 0.16);
    --card-w: min(64.5vw, 74rem);
    --card-pad: clamp(2.2rem, 4vw, 4.5rem);
    --card-min-h: auto;
    --content-gap: clamp(2.25rem, 4.4vw, 5rem);
    --image-w: min(23.5vw, 26.875rem);
    --stack-image-w: min(83.5%, 22.5rem);
}

html {
    font-size: min(16px, 0.833333vw);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family:
        "HarmonyOS Sans SC",
        "MiSans",
        "OPPO Sans",
        "PingFang SC",
        "Noto Sans CJK SC",
        "Source Han Sans SC",
        "Inter",
        "Segoe UI Variable",
        "Segoe UI",
        Arial,
        sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    background: #101415;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(rgba(10, 15, 15, 0.25), rgba(10, 15, 15, 0.25)),
        url("../pic/bg.jpg") center center / cover no-repeat;
}

.page-mask {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 30%, rgba(131, 166, 111, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(12, 18, 18, 0.6), rgba(14, 18, 18, 0.9));
    pointer-events: none;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--header-pad-x);
    background: rgba(17, 24, 24, 0.78);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    transition: height 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.site-header.compact {
    height: var(--header-h-compact);
    background: rgba(14, 19, 20, 0.9);
    border-color: rgba(245, 243, 237, 0.1);
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.875rem;
    font-weight: 650;
    letter-spacing: 0;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.1vw, 1.25rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--button-w);
    height: var(--button-h);
    padding: 0 var(--button-pad-x);
    border-radius: var(--button-radius);
    color: #fff;
    text-decoration: none;
    font-size: 1.375rem;
    font-weight: 650;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-button);
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 1.5vh 3.4vh rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 0.75vh 2vh rgba(0, 0, 0, 0.16);
}

.btn-blue {
    background: var(--lake-deep);
}

.btn-blue:hover {
    background: var(--lake);
}

.btn-green {
    background: var(--moss-deep);
}

.btn-green:hover {
    background: var(--moss);
}

.btn-purple {
    background: var(--iris-deep);
}

.btn-purple:hover {
    background: var(--iris);
}

.btn-cyan {
    background: var(--sky-deep);
}

.btn-cyan:hover {
    background: var(--sky);
}

.btn-muted {
    color: rgba(255, 255, 255, 0.74);
    background: var(--stone);
    cursor: wait;
}

.btn-muted:hover {
    transform: none;
    background: var(--stone);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-button);
}

.btn-danger {
    background: var(--danger-deep);
}

.btn-danger:hover {
    background: var(--danger);
}

.section {
    position: relative;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-h);
    text-align: center;
}

.hero-band {
    width: calc(100% + (var(--page-pad) * 2));
    margin-left: calc(var(--page-pad) * -1);
    margin-right: calc(var(--page-pad) * -1);
    min-height: clamp(6.25rem, 6.95vw, 8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1vh var(--page-pad);
    background: rgba(14, 20, 20, 0.52);
    border-top: 1px solid rgba(245, 243, 237, 0.08);
    border-bottom: 1px solid rgba(245, 243, 237, 0.08);
}

.hero h1 {
    margin: 0;
    color: rgba(245, 243, 237, 0.42);
    font-size: 5.125rem;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-subtitle {
    margin: clamp(1.25rem, 2.6vh, 1.5rem) 0 clamp(4.5rem, 14.8vh, 8.5rem);
    font-size: 1.9375rem;
    font-weight: 500;
    letter-spacing: 0;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 1.1vw, 1.25rem);
}

.hero-demo-action {
    position: relative;
}

.hero-btn {
    min-width: clamp(9rem, 9.8vw, 11.25rem);
    height: var(--button-h);
    font-size: 1.4375rem;
}

.demo-dialog {
    position: absolute;
    left: 50%;
    bottom: calc(100% + clamp(0.8rem, 2vh, 1.125rem));
    z-index: 12;
    width: min(18.5vw, calc(100vw - (var(--page-pad) * 2)));
    min-width: min(21.25rem, calc(100vw - (var(--page-pad) * 2)));
    padding: clamp(1rem, 1.1vw, 1.25rem);
    border: 1px solid rgba(245, 243, 237, 0.16);
    border-radius: var(--panel-radius);
    background: rgba(16, 22, 23, 0.94);
    box-shadow: 0 2.4vh 6vh rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    transform: translateX(-50%) translateY(0);
}

.demo-dialog[hidden] {
    display: none;
}

.demo-dialog::after {
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    width: 0.875rem;
    height: 0.875rem;
    border-right: 1px solid rgba(245, 243, 237, 0.16);
    border-bottom: 1px solid rgba(245, 243, 237, 0.16);
    background: rgba(16, 22, 23, 0.94);
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.demo-dialog p {
    margin: 0 0 clamp(0.75rem, 1.75vh, 1rem);
    color: var(--ink-soft);
    font-size: 1.125rem;
    line-height: 1.55;
}

.demo-state-btn {
    width: 100%;
    min-width: 0;
    height: clamp(2.6rem, 5.2vh, 3rem);
    font-size: 1.1875rem;
}

.demo-state-btn[hidden] {
    display: none;
}

.hero-meta {
    margin: clamp(0.9rem, 2vh, 1.125rem) 0 0;
    font-size: 1.375rem;
    color: var(--ink-soft);
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: var(--section-pad-y);
    padding-bottom: clamp(3.25rem, 8.5vh, 4.875rem);
    text-align: center;
}

.intro h2 {
    margin: 0 0 clamp(2.25rem, 6.7vh, 3.875rem);
    color: var(--ink);
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0;
}

.intro p {
    width: min(51.5vw, 59rem);
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.75rem;
    line-height: 1.78;
    text-align: left;
    letter-spacing: 0;
}

.feature-card {
    width: var(--card-w);
    min-height: var(--card-min-h);
    margin: 7.4vh auto;
    padding: calc(var(--card-pad) * 0.82) var(--card-pad);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--panel-radius);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.feature-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--image-w));
    align-items: center;
    column-gap: var(--content-gap);
}

.feature-layout > * {
    min-width: 0;
}

.feature-text {
    width: 100%;
    padding: 0;
}

.feature-text h2,
.more h2,
.footer-cta h2,
.license-header h2 {
    margin: 0 0 clamp(2.25rem, 6vh, 3.4375rem);
    color: var(--sky);
    font-size: 2.375rem;
    font-weight: 700;
    letter-spacing: 0;
}

.feature-text p {
    max-width: none;
    margin: 0 0 clamp(1.75rem, 4.8vh, 2.75rem);
    color: var(--ink-soft);
    font-size: 1.6875rem;
    line-height: 1.63;
    letter-spacing: 0;
}

.feature-text p:last-child {
    margin-bottom: 0;
}

.feature-image-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.feature-image-wrap img {
    display: block;
    max-width: 100%;
    max-height: min(47vh, 26.875rem);
    object-fit: contain;
    opacity: 0.92;
}

.stack-images {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: clamp(1rem, 3vh, 1.75rem);
    width: 100%;
}

.stack-images img {
    display: block;
    width: var(--stack-image-w);
    height: auto;
    object-fit: contain;
    opacity: 0.92;
}

.arrow {
    position: absolute;
    top: 50%;
    right: 0;
    width: var(--stack-image-w);
    height: 1.25rem;
    transform: translateY(-50%);
}

.arrow::before {
    display: block;
    width: 1.75rem;
    height: 100%;
    margin: 0 auto;
    background: var(--sky);
    mask: url("data:image/svg+xml,%3Csvg width='28' height='20' viewBox='0 0 28 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 3V16M7 10L14 17L21 10' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    content: "";
    opacity: 0.9;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='28' height='20' viewBox='0 0 28 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 3V16M7 10L14 17L21 10' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 58vh;
    padding-top: clamp(3rem, 7.6vh, 4.375rem);
    padding-bottom: clamp(3rem, 7.6vh, 4.375rem);
}

.more h2 {
    margin-bottom: clamp(2.75rem, 7.2vh, 4.125rem);
    color: var(--ink);
}

.more p {
    width: min(46.3vw, 53rem);
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.6875rem;
    line-height: 1.8;
    letter-spacing: 0;
}

.footer-cta {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: clamp(3rem, 7vh, 4rem);
    padding-bottom: clamp(3rem, 7vh, 4rem);
    text-align: center;
}

.footer-cta h2 {
    color: var(--ink);
    margin-bottom: clamp(1.2rem, 2.7vh, 1.5625rem);
}

.footer-cta p {
    margin: 0 0 clamp(2rem, 4.8vh, 2.75rem);
    color: var(--ink-soft);
    font-size: 1.5rem;
}

.license-section {
    min-height: auto;
    padding-top: clamp(1.5rem, 3vh, 1.75rem);
    padding-bottom: clamp(3.25rem, 8.5vh, 4.875rem);
}

.license-header {
    width: min(56.6vw, 65rem);
    margin: 0 auto clamp(1.6rem, 3.7vh, 2.125rem);
    text-align: center;
}

.license-header h2 {
    margin-bottom: clamp(1.25rem, 2.6vh, 1.5rem);
    color: var(--ink);
}

.license-header p,
.license-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.375rem;
    line-height: 1.7;
}

.license-table-wrap {
    width: min(64.3vw, 73.75rem);
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--panel-radius);
    background: var(--panel);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(12px);
}

.license-table {
    width: 100%;
    min-width: min(100%, 56.25rem);
    border-collapse: collapse;
    color: var(--ink-soft);
    font-size: 1.1875rem;
}

.license-table th,
.license-table td {
    padding: clamp(0.9rem, 1.95vh, 1.125rem) clamp(1rem, 1.1vw, 1.25rem);
    border-right: 1px solid rgba(245, 243, 237, 0.1);
    border-bottom: 1px solid rgba(245, 243, 237, 0.1);
    text-align: center;
    vertical-align: middle;
}

.license-table th:last-child,
.license-table td:last-child {
    border-right: 0;
}

.license-table tr:last-child th,
.license-table tr:last-child td {
    border-bottom: 0;
}

.license-table thead th {
    color: var(--ink);
    font-weight: 700;
    background: rgba(117, 183, 201, 0.08);
}

.license-table thead th:first-child,
.license-table tbody th {
    text-align: left;
}

.license-table thead span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--sky);
    font-size: 1.625rem;
}

.license-table tbody th {
    width: 28%;
    color: var(--ink);
    font-weight: 600;
}

.license-table .yes,
.license-table .no {
    line-height: 1;
}

.license-icon {
    position: relative;
    display: inline-block;
    width: 1.375rem;
    height: 1.375rem;
    vertical-align: middle;
}

.icon-check::before {
    position: absolute;
    left: 18%;
    top: 5%;
    width: 41%;
    height: 73%;
    border-right: 0.1875rem solid var(--moss);
    border-bottom: 0.1875rem solid var(--moss);
    content: "";
    transform: rotate(45deg);
    transform-origin: center;
}

.icon-close::before,
.icon-close::after {
    position: absolute;
    left: 45%;
    top: 5%;
    width: 0.1875rem;
    height: 91%;
    border-radius: 999px;
    background: var(--danger);
    content: "";
}

.icon-close::before {
    transform: rotate(45deg);
}

.icon-close::after {
    transform: rotate(-45deg);
}

.license-note {
    width: min(56.6vw, 65rem);
    margin: clamp(1rem, 2.4vh, 1.375rem) auto 0;
    color: var(--ink-muted);
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(4vh);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
