:root {
    --brand: #5a6cff;
    --brand-dark: #4657e4;
    --brand-soft: #eef1ff;
    --blue: #1484d3;
    --ink: #1f2a44;
    --text: #47536b;
    --muted: #778198;
    --line: #e8ebf3;
    --surface: #ffffff;
    --surface-soft: #f7f9fd;
    --shadow: 0 18px 50px rgba(38, 54, 105, 0.10);
    --content: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background: var(--surface);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(232, 235, 243, 0.9);
    backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
    box-shadow: 0 8px 24px rgba(31, 42, 68, 0.08);
}

.nav-shell {
    width: min(calc(100% - 40px), var(--content));
    min-height: 98px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 0;
}

.brand-name {
    margin: 0;
    color: var(--blue);
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 35px;
}

.nav-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    color: #424c62;
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-current {
    color: var(--brand);
    background: transparent;
}

.nav-download {
    margin-left: 0;
    min-height: 38px;
    padding: 0 20px;
    color: #fff;
    background: var(--brand);
    border-radius: 6px;
    box-shadow: none;
}

.nav-download:hover,
.nav-download:focus-visible {
    color: #fff;
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.menu-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    width: 20px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-icon {
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.home-main {
    overflow: hidden;
}

.hero-section {
    background: #fff;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
}

.main-image {
    width: 100%;
    height: auto;
}

.platform-buttons {
    position: absolute;
    top: 14%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    transform: translateX(-50%);
}

.platform-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-item--offset {
    margin-top: 20px;
}

.platform-btn {
    width: 130px;
    height: 130px;
    display: block;
    border-radius: 50%;
    outline-offset: 5px;
    transition: transform 0.22s ease, filter 0.22s ease;
}

.platform-btn img {
    width: 100%;
    height: 100%;
}

.platform-btn:hover,
.platform-btn:focus-visible {
    transform: translateY(-6px);
    filter: drop-shadow(0 12px 16px rgba(19, 58, 122, 0.22));
}

.download-popup {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    z-index: 20;
    width: 190px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transform: translate(-50%, 8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.download-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 8px solid transparent;
    border-top-color: #fff;
    transform: translateX(-50%);
}

.platform-item--mac:hover .download-popup,
.platform-item--mac:focus-within .download-popup {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

.download-link {
    display: block;
    padding: 10px 12px;
    color: var(--ink);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.download-link:hover,
.download-link:focus-visible {
    color: var(--brand);
    background: var(--brand-soft);
}

.news-section {
    padding: 70px 20px 50px;
    background: #fff;
}

.news-card {
    width: min(100%, 800px);
    margin: 0 auto;
    padding: 50px 40px;
    background: #f8f9fa;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
}

.news-title {
    text-align: center;
}

.news-title {
    margin: 0 0 35px;
    color: var(--brand);
    font-size: 26px;
    line-height: 1.35;
}

.news-desc {
    max-width: none;
    margin: 8px 0 18px;
    padding-left: 2px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.news-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
}

.news-link {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    font-weight: 400;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-link:hover,
.news-link:focus-visible,
.news-more a:hover,
.news-more a:focus-visible {
    color: var(--brand);
}

.news-time {
    flex: 0 0 auto;
    color: var(--muted);
    padding-left: 20px;
    font-size: 15px;
}

.news-more {
    margin-top: 24px;
    text-align: right;
}

.news-more a {
    color: var(--brand);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.site-footer {
    width: 100%;
    color: rgba(255, 255, 255, 0.88);
    background-color: #1484d3;
    background-image: url("/public/index/images/foot.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.footer-shell {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer-links a,
.footer-info a {
    color: inherit;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-info a:hover,
.footer-info a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer-info {
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.footer-info p {
    margin: 3px 0;
}

/* Legal pages */
.legal-page {
    background: #f5f6f8;
}

.legal-main {
    width: min(calc(100% - 40px), 1000px);
    margin: 40px auto 60px;
}

.legal-card {
    padding: 40px 50px;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(31, 42, 68, 0.06);
}

.legal-heading {
    padding-bottom: 0;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 0;
}

.legal-heading h1 {
    margin: 0 0 24px;
    color: var(--brand);
    font-size: 28px;
    line-height: 1.35;
}

.legal-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-indent: 0;
}

.legal-card h2 {
    margin: 25px 0 15px;
    padding: 0;
    color: var(--ink);
    border-bottom: 0;
    font-size: 20px;
    line-height: 1.45;
}

.legal-card h3 {
    margin: 26px 0 10px;
    color: #303b55;
    font-size: 17px;
    line-height: 1.55;
}

.legal-card p {
    margin: 12px 0;
    font-size: 15px;
    line-height: 2;
    text-indent: 2em;
}

.legal-card ol,
.legal-card ul {
    margin: 14px 0 14px 1.4em;
    padding-left: 1.2em;
}

.legal-card li {
    margin: 8px 0;
    padding-left: 4px;
    font-size: 15px;
    line-height: 1.9;
}

.legal-card a {
    color: var(--brand);
}

.tip {
    margin: 26px 0 0;
    padding: 18px 20px;
    color: #35405d;
    background: var(--brand-soft);
    border-left: 4px solid var(--brand);
    border-radius: 10px;
}

.tip p {
    margin: 0;
    text-indent: 0;
}

.bold {
    font-weight: 700;
}

/* Blog list and article */
.blog-page {
    background: #f5f6f8;
}

.blog-main {
    min-height: calc(100vh - 260px);
    padding: 40px 20px 60px;
}

.blog-main .container {
    width: min(100%, 1000px);
    margin: 0 auto;
}

.blog-wrap {
    width: 100%;
}

.blog-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
}

.blog-sidebar {
    position: sticky;
    top: 104px;
    padding: 0;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.blog-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-sidebar a {
    display: block;
    padding: 16px 18px;
    color: var(--brand);
    background: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.blog-panel {
    min-width: 0;
    padding: 30px;
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

.blog-list-heading {
    margin: 0 0 30px;
    color: var(--ink);
    font-size: 28px;
    text-align: center;
}

.blog-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.blog-list-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 0;
    border-radius: 8px;
}

.blog-list-item:first-child {
    padding-top: 20px;
}

.blog-list-item:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.blog-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef2fa;
    border-radius: 8px;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-summary h2,
.blog-summary h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.55;
}

.blog-summary h2 a,
.blog-summary h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-summary h2 a:hover,
.blog-summary h2 a:focus-visible,
.blog-summary h3 a:hover,
.blog-summary h3 a:focus-visible {
    color: var(--brand);
}

.blog-summary p {
    margin: 12px 0 18px;
    color: var(--text);
    line-height: 1.8;
}

.blog-summary p a {
    margin-left: 4px;
    color: var(--brand);
    font-weight: 650;
    text-decoration: none;
}

.blog-date,
.post-time {
    color: var(--muted);
    font-size: 14px;
}

.blog-date {
    margin-top: auto;
    text-align: right;
}

.article-title {
    margin: 0;
    color: var(--ink);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.45;
}

.post-time {
    margin-top: 12px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.article-content {
    margin-top: 28px;
    color: #36415a;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.article-content h2,
.article-content h3 {
    margin: 1.6em 0 0.7em;
    color: var(--ink);
    line-height: 1.5;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote {
    margin: 1em 0;
}

.article-content img,
.article-content video,
.article-content iframe,
.article-content table {
    max-width: 100%;
}

.article-content img {
    height: auto;
    margin-inline: auto;
    border-radius: 12px;
}

.article-content table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.article-content a {
    color: var(--brand);
}

.article-nav {
    margin-top: 36px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.article-nav p {
    margin: 8px 0;
}

.article-nav a,
.blog-detail-back {
    color: var(--brand);
    text-decoration: none;
}

.blog-detail-back {
    display: inline-flex;
    margin-top: 24px;
    font-weight: 700;
}

.pages {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pages a,
.pages span {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    text-decoration: none;
}

.pages .current,
.pages a:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

@media (max-width: 900px) {
    .footer-shell {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 72px;
    }

    .nav-shell {
        width: min(calc(100% - 28px), var(--content));
        min-height: 68px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 18px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        display: grid;
        gap: 6px;
        padding: 12px;
        visibility: hidden;
        opacity: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 0 0 16px 16px;
        box-shadow: var(--shadow);
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .nav-menu.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-link {
        justify-content: flex-start;
        width: 100%;
        min-height: 42px;
        padding: 0 15px;
        border-radius: 10px;
    }

    .nav-link:hover,
    .nav-link:focus-visible,
    .nav-link.is-current {
        background: var(--brand-soft);
    }

    .nav-download {
        margin-left: 0;
        justify-content: center;
    }

    .platform-buttons {
        top: 14%;
        gap: 8px;
    }

    .platform-btn {
        width: clamp(56px, 18vw, 76px);
        height: clamp(56px, 18vw, 76px);
    }

    .platform-item--offset {
        margin-top: 10px;
    }

    .download-popup {
        display: none;
    }

    .news-section {
        padding: 54px 16px;
    }

    .news-card {
        padding: 34px 22px;
        border-radius: 18px;
    }

    .news-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .news-link {
        width: 100%;
        white-space: normal;
    }

    .footer-links {
        gap: 10px 18px;
        flex-wrap: wrap;
    }

    .legal-main {
        width: min(calc(100% - 24px), 1000px);
        margin: 24px auto 48px;
    }

    .legal-card {
        padding: 30px 22px;
        border-radius: 16px;
    }

    .legal-card p {
        text-indent: 0;
        line-height: 1.9;
    }

    .blog-main {
        padding: 28px 12px 52px;
    }

    .blog-panel {
        padding: 24px 18px;
        border-radius: 16px;
    }

    .blog-list-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-thumb {
        aspect-ratio: 16 / 9;
    }

    .blog-date {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .platform-buttons {
        top: 13.7%;
        gap: 4px;
    }

    .platform-btn {
        width: 58px;
        height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
