:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --secondary-color: #2c3e50;
    --background-color: #f5f6fa;
    --surface-color: #ffffff;
    --surface-muted: #f8fafc;
    --text-color: #2c3e50;
    --muted-color: #667085;
    --border-color: #e4e7ec;
    --focus-color: #0f8b8d;
    --header-height: 4rem;
    --container-width: 90rem;
    --page-gutter: clamp(1rem, 3vw, 2rem);
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.9375rem;
    --shadow-sm: 0 0.125rem 0.625rem rgba(15, 23, 42, 0.08);
    --shadow-md: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.12);
    --duration-fast: 160ms;
    --duration-normal: 280ms;
}

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

html {
    min-width: 20rem;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    overflow-x: clip;
}

body {
    min-width: 20rem;
    min-height: 100vh;
    margin: 0;
    color: var(--text-color);
    background: var(--background-color);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

html.nav-open,
body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
}

img,
picture,
video,
canvas,
svg,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

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

button {
    color: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
figure,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.35;
    overflow-wrap: anywhere;
}

a {
    color: var(--primary-color);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color var(--duration-fast) ease, background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, transform var(--duration-fast) ease;
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 0.1875rem solid var(--focus-color);
    outline-offset: 0.1875rem;
}

a:active {
    color: #992d22;
}

a[aria-disabled="true"],
a.is-disabled,
a:not([href]) {
    color: #98a2b3;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.72;
}

button:disabled,
button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.62;
}

.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;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.75rem;
    z-index: 1200;
    padding: 0.625rem 0.875rem;
    color: #ffffff;
    background: var(--secondary-color);
    border-radius: var(--radius-sm);
    transform: translateY(-160%);
}

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

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    color: var(--primary-color);
    background: var(--surface-color);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader p {
    margin: 0.875rem 0 0;
}

.circular {
    width: 3rem;
    height: 3rem;
    animation: loader-rotate 1.8s linear infinite;
}

.path {
    stroke: currentColor;
    stroke-dasharray: 89 200;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    animation: loader-dash 1.4s ease-in-out infinite;
}

@keyframes loader-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-dash {
    0% {
        stroke-dasharray: 1 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 89 200;
        stroke-dashoffset: -2.1875rem;
    }
    100% {
        stroke-dasharray: 89 200;
        stroke-dashoffset: -7.75rem;
    }
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.1);
    transform: none;
    transition: transform var(--duration-normal) ease, box-shadow var(--duration-fast) ease;
}

.site-header.nav-hidden {
    transform: translateY(-100%);
}

body.nav-open .site-header {
    transform: none;
}

.site-nav,
.nav-container {
    height: 100%;
}

.site-nav {
    width: 100%;
}

.nav-container {
    width: min(100%, var(--container-width));
    margin-inline: auto;
    padding-inline: var(--page-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo-text {
    display: block;
    min-width: 0;
    max-width: min(42vw, 28rem);
    color: #263746;
    font-size: clamp(1.05rem, 1.8vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo-text:hover {
    color: var(--primary-color);
}

.logo-text:active {
    color: var(--primary-dark);
}

.nav-panel {
    min-width: 0;
    margin-left: auto;
}

.nav-menu {
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-menu li {
    min-width: 0;
}

.nav-menu li + li {
    border-left: 1px solid var(--border-color);
}

.nav-menu a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.625rem clamp(0.75rem, 1.6vw, 1.35rem);
    color: #344054;
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    right: 1rem;
    bottom: 0.25rem;
    left: 1rem;
    height: 0.125rem;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--duration-fast) ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active,
.nav-menu a[aria-current="page"] {
    color: var(--primary-color);
    background: #fff7f5;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.active::after,
.nav-menu a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-menu a:active {
    color: var(--primary-dark);
    background: #fdecea;
}

.nav-menu a[aria-disabled="true"],
.nav-menu a:not([href]) {
    color: #98a2b3;
    background: transparent;
}

.menu-toggle {
    position: relative;
    z-index: 1102;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: #edf2f7;
}

.menu-toggle:active {
    background: #e2e8f0;
}

.menu-toggle span {
    position: absolute;
    width: 1.5rem;
    height: 0.125rem;
    border-radius: 999px;
    background: var(--secondary-color);
    transition: transform var(--duration-normal) ease, opacity var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-0.4375rem);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(0.4375rem);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(19, 31, 43, 0.58);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

main {
    flex: 1 0 auto;
    width: 100%;
    margin-top: var(--header-height);
    padding-block: clamp(1rem, 2.5vw, 2rem) clamp(2.5rem, 6vw, 5rem);
}

main > section,
.breadcrumb,
.article-detail {
    width: min(calc(100% - (2 * var(--page-gutter))), var(--container-width));
    margin-inline: auto;
}

main > section {
    margin-bottom: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1.5rem, 4vw, 4rem) var(--page-gutter);
}

main > section:last-child {
    margin-bottom: 0;
}

main > section > h1,
main > section > h2 {
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    text-align: center;
}

.cta-button,
.download-button,
.buy-button,
.more-button,
.read-more,
.category {
    text-decoration: none;
}

.cta-button,
.download-button,
.buy-button,
.more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
}

.cta-button,
.download-button,
.buy-button {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 0.35rem 1rem rgba(231, 76, 60, 0.22);
}

.cta-button:hover,
.download-button:hover,
.buy-button:hover {
    color: #ffffff;
    background: var(--primary-dark);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.6rem 1.25rem rgba(231, 76, 60, 0.28);
}

.cta-button:active,
.download-button:active,
.buy-button:active {
    color: #ffffff;
    background: #a93226;
    transform: translateY(0);
    box-shadow: 0 0.2rem 0.5rem rgba(231, 76, 60, 0.2);
}

.cta-button[aria-disabled="true"],
.download-button[aria-disabled="true"],
.buy-button[aria-disabled="true"] {
    color: #f2f4f7;
    background: #98a2b3;
    box-shadow: none;
}

#slider {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.slider-container {
    position: relative;
    width: 100%;
    height: clamp(18rem, 34vw, 34rem);
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
}

.slide[hidden] {
    display: none;
}

.slide.fade:not([hidden]) {
    animation: slide-fade 0.55s ease;
}

@keyframes slide-fade {
    from {
        opacity: 0.45;
    }
    to {
        opacity: 1;
    }
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 28, 43, 0.68), rgba(16, 28, 43, 0.12));
    pointer-events: none;
}

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

.slide-text {
    position: absolute;
    z-index: 2;
    left: clamp(1.25rem, 5vw, 4rem);
    bottom: clamp(3.5rem, 8vw, 5.5rem);
    width: min(44rem, calc(100% - 2.5rem));
    color: #ffffff;
    text-align: left;
    text-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.45);
}

.slide-text h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.slide-text p {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.prev,
.next {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 3rem;
    height: 3rem;
    padding: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.prev {
    left: 1rem;
}

.next {
    right: 1rem;
}

.prev:hover,
.next:hover {
    background: rgba(15, 23, 42, 0.78);
    border-color: rgba(255, 255, 255, 0.8);
}

.prev:active,
.next:active {
    transform: translateY(-50%) scale(0.94);
}

.dots {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 1.25rem;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 0.625rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transition: width var(--duration-fast) ease, border-radius var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.dot:hover,
.dot.active,
.dot[aria-current="true"] {
    width: 1.75rem;
    background: #ffffff;
    border-radius: 999px;
}

#hero {
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, #a38ee1 0%, #a530d6 50%, #c0392b 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

#hero h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.65rem, 3.6vw, 2.5rem);
}

#hero > p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.video-container {
    width: min(100%, 62.5rem);
    margin: 1.75rem auto;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    border-radius: var(--radius-md);
    box-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.18);
}

#promo-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.feature-grid,
.download-steps,
.membership-cards {
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.feature-grid,
.download-steps {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}

.feature-item,
.step,
.card,
.news-item,
.article-item,
.article-detail,
.breadcrumb {
    background: var(--surface-color);
    border: 1px solid rgba(228, 231, 236, 0.86);
    box-shadow: var(--shadow-sm);
}

.feature-item,
.step {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius-md);
}

.step {
    text-align: center;
}

.feature-item h3,
.step h3 {
    margin-bottom: 0.75rem;
}

.feature-item p,
.step p {
    margin-bottom: 0;
}

html.js .feature-item,
html.js .step {
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js .feature-item.visible,
html.js .step.visible {
    opacity: 1;
    transform: translateY(0);
}

.membership-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
    margin-block: 2rem 2.5rem;
}

.card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease, border-color var(--duration-fast) ease;
}

.card:hover {
    transform: translateY(-0.35rem);
    box-shadow: var(--shadow-md);
}

.card.popular {
    border-color: var(--primary-color);
}

.popular-tag {
    position: absolute;
    top: 1rem;
    right: -2.5rem;
    z-index: 1;
    width: 9rem;
    padding: 0.35rem 0.5rem;
    color: #ffffff;
    background: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    transform: rotate(45deg);
}

.card-header,
.card-footer {
    padding: 1.5rem;
    text-align: center;
    background: var(--surface-muted);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
}

.card-footer {
    border-top: 1px solid var(--border-color);
}

.card-header h3 {
    margin-bottom: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

.price {
    color: var(--primary-color);
}

.price .amount {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
}

.price .period {
    color: var(--muted-color);
}

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

.features li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.5rem;
    color: var(--muted-color);
}

.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.download-steps {
    margin-block: 2rem;
}

#download > .download-button {
    display: flex;
    width: fit-content;
    margin-inline: auto;
}

#news {
    border-radius: var(--radius-md);
    background: var(--surface-color);
}

.news-list,
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item,
.article-item {
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: var(--radius-md);
    display: flex;
    gap: clamp(1rem, 2.5vw, 2rem);
    transition: transform var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.news-item:hover,
.article-item:hover {
    transform: translateY(-0.2rem);
    box-shadow: var(--shadow-md);
}

.news-thumb,
.article-thumb {
    position: relative;
    flex: 0 0 clamp(10rem, 24vw, 18.75rem);
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #e9edf2;
}

.news-thumb {
    aspect-ratio: 15 / 11;
}

.article-thumb {
    aspect-ratio: 6 / 5;
}

.news-thumb img,
.article-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.news-item:hover .news-thumb img,
.article-item:hover .article-thumb img {
    transform: scale(1.035);
}

.news-content,
.article-item > .article-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title,
.article-title a {
    color: var(--text-color);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.news-title:hover,
.article-title a:hover {
    color: var(--primary-color);
}

.news-title:active,
.article-title a:active {
    color: var(--primary-dark);
}

.news-summary,
.article-item .article-summary {
    margin: 0.65rem 0 1rem;
    color: var(--muted-color);
    overflow-wrap: anywhere;
}

.news-date,
.article-item .article-meta {
    margin-top: auto;
    color: var(--muted-color);
    font-size: 0.875rem;
}

.article-title {
    margin: 0;
}

.article-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.read-more {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(0.15rem);
}

.read-more:active {
    color: #992d22;
    transform: translateX(0);
}

.article-category {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    max-width: calc(100% - 1.5rem);
    padding: 0.25rem 0.75rem;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-more {
    margin-top: 1.5rem;
    text-align: center;
}

.more-button {
    color: var(--primary-color);
    background: #ffffff;
    border-color: var(--primary-color);
}

.more-button:hover {
    color: #ffffff;
    background: var(--primary-color);
    transform: translateY(-0.125rem);
}

.more-button:active {
    color: #ffffff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(0);
}

#friend-links {
    text-align: center;
    background: var(--surface-color);
    border: 1px solid rgba(228, 231, 236, 0.72);
    border-radius: var(--radius-lg);
}

#friend-links > .friend-links-title {
    margin: 0 0 1rem;
    color: var(--text-color);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

#friend-links .links-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 12rem));
    justify-content: center;
    gap: 0.75rem;
}

#friend-links .links-grid a {
    width: 100%;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    color: var(--text-color);
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#friend-links .links-grid a:hover,
#friend-links .links-grid a:focus-visible {
    color: var(--primary-color);
    background: #fff7f5;
    border-color: rgba(231, 76, 60, 0.28);
}

#friend-links .links-grid a:active {
    color: var(--primary-dark);
    background: #fdecea;
}

.breadcrumb {
    min-height: 3.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem var(--page-gutter);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
}

.breadcrumb ul {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    overflow: visible;
}

.breadcrumb li {
    flex: 0 1 auto;
    min-width: 0;
    color: var(--muted-color);
    font-size: 0.9375rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.breadcrumb .current {
    max-width: 100%;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb a:active {
    color: #992d22;
}

.breadcrumb .separator {
    color: #98a2b3;
}

#articles {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    padding-inline: 0;
}

#main-content.list-page-container {
    width: min(calc(100% - (2 * var(--page-gutter))), var(--container-width));
    margin-inline: auto;
}

#main-content.list-page-container > .breadcrumb,
#main-content.list-page-container > #articles {
    width: 100%;
    max-width: none;
    margin-inline: 0;
}

#main-content > .breadcrumb,
#main-content > #articles {
    max-width: var(--container-width);
    margin-inline: auto;
}

#main-content > #articles .article-list,
#main-content > #articles .pagination {
    width: 100%;
    margin-inline: 0;
}

#articles > h1,
#articles > .article-header {
    padding-inline: var(--page-gutter);
}

#articles > h1 {
    margin-bottom: 1.25rem;
}

#articles .article-header {
    margin-bottom: 1.5rem;
}

.article-zflys {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.9rem;
}

.category:hover,
.category:focus-visible,
.category.active,
.category[aria-current="page"] {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-0.1rem);
}

.category:active {
    color: #ffffff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(0);
}

.pagination,
ul.pagination,
ul.page,
.pagination > ul,
.pagination > .page {
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pagination > ul,
.pagination > .page {
    margin: 0;
}

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

.pagination > a,
.pagination > span,
ul.pagination > li > a,
ul.pagination > li > span,
ul.page > li > a,
ul.page > li > span,
.pagination > ul > li > a,
.pagination > ul > li > span,
.pagination > .page > li > a,
.pagination > .page > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.4rem 0.75rem;
    color: #475467;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
}

.pagination > a:hover,
ul.pagination > li > a:hover,
ul.page > li > a:hover,
.pagination > ul > li > a:hover,
.pagination > .page > li > a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: #fff7f5;
    transform: translateY(-0.08rem);
}

.pagination > a:active,
ul.pagination > li > a:active,
ul.page > li > a:active,
.pagination > ul > li > a:active,
.pagination > .page > li > a:active {
    color: #ffffff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(0);
}

.pagination > .active,
.pagination > .current,
.pagination > [aria-current="page"],
ul.pagination > li.active > a,
ul.pagination > li.active > span,
ul.pagination > li.current > a,
ul.pagination > li.current > span,
ul.page > li.active > a,
ul.page > li.active > span,
ul.page > li.current > a,
ul.page > li.current > span,
.pagination a.active,
.pagination span.active,
.pagination a.current,
.pagination span.current,
.pagination a[aria-current="page"],
.pagination span[aria-current="page"] {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

.pagination > .disabled,
.pagination > [aria-disabled="true"],
.pagination > a:not([href]),
ul.pagination > li.disabled > a,
ul.pagination > li.disabled > span,
ul.page > li.disabled > a,
ul.page > li.disabled > span,
.pagination a[aria-disabled="true"],
.pagination span[aria-disabled="true"] {
    color: #98a2b3;
    background: #f2f4f7;
    border-color: #eaecf0;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

.article-detail {
    min-width: 0;
    padding: clamp(1.25rem, 3.5vw, 2.5rem);
    border-radius: var(--radius-md);
}

.article-detail > .article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-detail > .article-header .article-info {
    min-width: 0;
}

.article-detail > .article-header h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    overflow-wrap: anywhere;
}

.article-detail > .article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.article-detail .article-content {
    min-width: 0;
    color: var(--text-color);
    font-size: clamp(1rem, 1.2vw, 1.0625rem);
    line-height: 1.85;
    overflow-wrap: break-word;
}

.article-detail .article-content > :first-child {
    margin-top: 0;
}

.article-detail .article-content > :last-child {
    margin-bottom: 0;
}

.article-detail .article-summary {
    margin: 0 0 1.75rem;
    padding: 1rem 1.25rem;
    color: #475467;
    background: #fff8f6;
    border-left: 0.25rem solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-detail .article-content p {
    margin: 0 0 1.25em;
}

.article-detail .article-content h1,
.article-detail .article-content h2,
.article-detail .article-content h3,
.article-detail .article-content h4,
.article-detail .article-content h5,
.article-detail .article-content h6 {
    margin: 1.8em 0 0.7em;
    color: var(--text-color);
    font-weight: 700;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.article-detail .article-content h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.2rem);
}

.article-detail .article-content h2 {
    font-size: clamp(1.5rem, 3vw, 1.8rem);
}

.article-detail .article-content h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.55rem);
}

.article-detail .article-content h4 {
    font-size: 1.25rem;
}

.article-detail .article-content h5 {
    font-size: 1.125rem;
}

.article-detail .article-content h6 {
    color: #475467;
    font-size: 1rem;
}

.article-detail .article-content strong {
    font-weight: 700;
}

.article-detail .article-content em {
    font-style: italic;
}

.article-detail .article-content mark {
    padding: 0.08em 0.28em;
    color: inherit;
    background: #fff1a8;
    border-radius: 0.2em;
}

.article-detail .article-content ul,
.article-detail .article-content ol {
    margin: 0 0 1.25em 1.4em;
    padding-left: 0.9em;
}

.article-detail .article-content ul {
    list-style: disc outside;
}

.article-detail .article-content ol {
    list-style: decimal outside;
}

.article-detail .article-content li {
    margin: 0.42em 0;
    padding-left: 0.15em;
}

.article-detail .article-content li > ul,
.article-detail .article-content li > ol {
    margin-top: 0.45em;
    margin-bottom: 0.45em;
}

.article-detail .article-content a {
    color: var(--primary-color);
    overflow-wrap: anywhere;
}

.article-detail .article-content a:hover {
    color: var(--primary-dark);
}

.article-detail .article-content a:active {
    color: #992d22;
}

.article-detail .article-content a[aria-disabled="true"],
.article-detail .article-content a:not([href]) {
    color: #98a2b3;
    text-decoration: none;
}

.article-detail .article-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 1.75rem auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.article-detail .article-content figure {
    max-width: 100%;
    margin: 2rem 0;
}

.article-detail .article-content figure img {
    margin: 0 auto;
}

.article-detail .article-content figcaption {
    margin-top: 0.65rem;
    color: var(--muted-color);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
}

.article-detail .article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 1.75rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-collapse: collapse;
    border-spacing: 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.article-detail .article-content caption {
    padding: 0 0 0.75rem;
    color: var(--text-color);
    font-weight: 600;
    text-align: left;
    white-space: normal;
}

.article-detail .article-content thead {
    background: var(--surface-muted);
}

.article-detail .article-content tbody {
    background: #ffffff;
}

.article-detail .article-content tr:nth-child(even) {
    background: #fbfcfd;
}

.article-detail .article-content th,
.article-detail .article-content td {
    min-width: 7.5rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.article-detail .article-content th {
    font-weight: 700;
}

.article-detail .article-content blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    color: #475467;
    background: var(--surface-muted);
    border-left: 0.25rem solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-detail .article-content blockquote > :last-child {
    margin-bottom: 0;
}

.article-detail .article-content cite {
    color: var(--muted-color);
    font-size: 0.875rem;
    font-style: normal;
}

.article-detail .article-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
}

.article-detail .article-content code,
.article-detail .article-content pre,
.article-detail .article-content kbd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.article-detail .article-content code {
    padding: 0.12em 0.35em;
    color: #344054;
    background: #f2f4f7;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.9em;
    overflow-wrap: anywhere;
}

.article-detail .article-content pre {
    max-width: 100%;
    margin: 1.75rem 0;
    padding: 1rem 1.125rem;
    overflow: auto;
    color: #e2e8f0;
    background: #0f172a;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.65;
    tab-size: 4;
}

.article-detail .article-content pre code {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    white-space: pre;
    overflow-wrap: normal;
}

.article-detail .article-content kbd {
    display: inline-block;
    padding: 0.1em 0.4em;
    color: #ffffff;
    background: #344054;
    border: 1px solid #1d2939;
    border-radius: 0.25rem;
    box-shadow: inset 0 -0.1rem 0 rgba(0, 0, 0, 0.35);
    font-size: 0.85em;
}

.article-detail .article-content details {
    margin: 1.5rem 0;
    padding: 0.85rem 1rem;
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.article-detail .article-content summary {
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
}

.article-detail .article-content details[open] summary {
    margin-bottom: 0.75rem;
}

.article-detail .article-content abbr[title] {
    text-decoration: underline dotted;
    text-underline-offset: 0.18em;
    cursor: help;
}

.article-detail .article-content time {
    color: inherit;
    font-variant-numeric: tabular-nums;
}

.article-detail .article-content iframe,
.article-detail .article-content video,
.article-detail .article-content audio {
    display: block;
    max-width: 100%;
    margin: 1.75rem auto;
}

.article-detail .article-content hr {
    height: 0;
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

.article-detail .article-content sub,
.article-detail .article-content sup {
    position: relative;
    font-size: 0.75em;
    line-height: 0;
    vertical-align: baseline;
}

.article-detail .article-content sup {
    top: -0.5em;
}

.article-detail .article-content sub {
    bottom: -0.25em;
}

.article-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.9rem;
    color: var(--primary-color);
    background: #fff7f5;
    border: 1px solid rgba(231, 76, 60, 0.2);
    border-radius: 999px;
    font-size: 0.875rem;
}

.article-navigation {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.article-navigation > span {
    min-width: 0;
    min-height: 3.25rem;
    padding: 0.875rem 1rem;
    color: #98a2b3;
    background: var(--surface-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    overflow-wrap: anywhere;
}

.article-navigation > span > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(3.25rem - 1.75rem);
    margin: -0.875rem -1rem;
    padding: 0.875rem 1rem;
    color: var(--text-color);
    background: #ffffff;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.article-navigation > span > a:hover {
    color: var(--primary-color);
    background: #fff7f5;
}

.article-navigation > span > a:active {
    color: #ffffff;
    background: var(--primary-dark);
}

.site-footer {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #a38ee1 0%, #a530d6 50%, #2c3e50 100%);
}

.footer-inner {
    width: min(100%, var(--container-width));
    margin-inline: auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) var(--page-gutter);
    text-align: center;
}

.site-footer p {
    margin: 0.75rem 0;
}

.site-footer nav {
    margin: 1.25rem 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.75rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.site-footer a:active {
    color: #ffe7e2;
}

.site-footer a[aria-disabled="true"],
.site-footer a:not([href]) {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
}

.copyright {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.9rem;
}

@media (max-width: 64rem) {
    .menu-toggle {
        display: inline-flex;
    }

    .menu-toggle.active {
        position: fixed;
        top: 0.625rem;
        right: 0.75rem;
        z-index: 1103;
        width: 2.5rem;
        height: 2.5rem;
        border-color: #e4e7ec;
        border-radius: 0.5rem;
        background: #ffffff;
        box-shadow: 0 0.125rem 0.5rem rgba(15, 23, 42, 0.08);
    }

    .menu-toggle.active:hover,
    .menu-toggle.active:focus-visible {
        background: #f5f7fa;
        border-color: #d0d5dd;
    }

    .menu-toggle.active:active {
        background: #eaecf0;
    }

    .menu-toggle.active span {
        background: #344054;
    }

    .nav-panel {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1100;
        width: min(82vw, 22rem);
        max-width: calc(100vw - 3rem);
        margin: 0;
        color: var(--text-color);
        background: #ffffff;
        border-left: 1px solid #e4e7ec;
        box-shadow: -0.5rem 0 1.5rem rgba(15, 23, 42, 0.16);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transform: translateX(102%);
        visibility: hidden;
        transition: transform var(--duration-normal) ease, visibility var(--duration-normal) ease;
    }

    .nav-panel.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-menu {
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 3.75rem 1rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .nav-menu li,
    .nav-menu li + li {
        flex: 1 1 0;
        width: 100%;
        min-height: 3.25rem;
        margin: 0;
        display: flex;
        border-left: 0;
        border-bottom: 1px solid #eaecf0;
    }

    .nav-menu li:last-child {
        border-bottom: 0;
    }

    .nav-menu a {
        flex: 1 1 auto;
        width: 100%;
        min-height: 3.25rem;
        padding: 0.75rem 1rem;
        color: #344054;
        font-size: 1rem;
        line-height: 1.35;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover,
    .nav-menu a:focus-visible,
    .nav-menu a.active,
    .nav-menu a[aria-current="page"] {
        color: var(--primary-color);
        background: #fff7f5;
    }

    .nav-menu a:active {
        color: var(--primary-dark);
        background: #fdecea;
    }

    .nav-menu a[aria-disabled="true"],
    .nav-menu a:not([href]) {
        color: #98a2b3;
        background: transparent;
    }

    .logo-text {
        max-width: calc(100vw - 7rem);
    }

    .news-thumb,
    .article-thumb {
        flex-basis: 14rem;
    }
}

@media (max-width: 48rem) {
    :root {
        --header-height: 3.75rem;
    }

    main {
        padding-block-start: 1rem;
    }

    main > section,
    .breadcrumb,
    .article-detail {
        width: min(calc(100% - 2rem), var(--container-width));
    }

    main > section {
        padding-inline: 1rem;
    }

    .slider-container {
        height: clamp(18rem, 72vw, 24rem);
    }

    .slide-text {
        left: 1.25rem;
        bottom: 3.75rem;
        width: calc(100% - 2.5rem);
    }

    .slide-text h2 {
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .slide-text p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .prev,
    .next {
        width: 2.5rem;
        height: 2.5rem;
    }

    .prev {
        left: 0.625rem;
    }

    .next {
        right: 0.625rem;
    }

    .news-item,
    .article-item {
        flex-direction: column;
    }

    .news-thumb,
    .article-thumb {
        flex: none;
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .article-footer {
        align-items: flex-end;
    }

    .article-zflys {
        justify-content: flex-start;
    }

    .category {
        flex: 1 1 auto;
    }

    .article-navigation {
        grid-template-columns: 1fr;
    }

    .breadcrumb {
        min-height: 3.25rem;
        padding-inline: 1rem;
    }

    .article-detail .article-content table {
        margin-right: -0.25rem;
        margin-left: -0.25rem;
        width: calc(100% + 0.5rem);
    }

    .site-footer nav {
        gap: 0.65rem 1.2rem;
    }
}

@media (max-width: 30rem) {
    :root {
        --page-gutter: 0.875rem;
    }

    #main-content.list-page-container {
        width: calc(100% - 1.25rem);
    }

    main > section,
    .breadcrumb,
    .article-detail {
        width: calc(100% - 1.25rem);
    }

    main > section,
    .article-detail {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .slider-container {
        height: 18rem;
    }

    .slide-text {
        left: 1rem;
        width: calc(100% - 2rem);
    }

    .prev,
    .next {
        top: 44%;
    }

    #hero br {
        display: none;
    }

    .cta-button,
    .download-button,
    .more-button {
        width: 100%;
    }

    .article-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .read-more {
        align-self: flex-end;
    }

    .pagination,
    ul.pagination,
    ul.page,
    .pagination > ul,
    .pagination > .page {
        gap: 0.35rem;
    }

    .pagination > a,
    .pagination > span,
    ul.pagination > li > a,
    ul.pagination > li > span,
    ul.page > li > a,
    ul.page > li > span,
    .pagination > ul > li > a,
    .pagination > ul > li > span,
    .pagination > .page > li > a,
    .pagination > .page > li > span {
        min-width: 2.1rem;
        min-height: 2.1rem;
        padding-inline: 0.55rem;
        font-size: 0.84rem;
    }

    .article-detail .article-summary {
        padding: 0.875rem 1rem;
    }

    .article-detail .article-content pre {
        margin-right: -0.35rem;
        margin-left: -0.35rem;
        border-radius: var(--radius-sm);
    }
}

@media (max-width: 40rem) {
    #friend-links > .friend-links-title {
        margin-bottom: 0.75rem;
        font-size: 1.15rem;
    }
}

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

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

    html.js .feature-item,
    html.js .step {
        opacity: 1;
        transform: none;
    }
}
