:root {
    --background-color: #ffffff;
    --foreground-color: #000;
    --link-color: #121212;
    --foreground-secondary-color: #666;

    --nav-current-background-color: #0f0f0f;
    --nav-current-foreground-color: #fff;
    --nav-item-background-color: #f2f2f2;
    --nav-item-foreground-color: #0f0f0f;
    --nav-item-hover-background-color: #e5e5e5;

    --icon-secondary-filter: invert(43%) sepia(22%) saturate(10%)
        hue-rotate(58deg) brightness(87%) contrast(93%);
    --icon-social-filter: invert(28%) sepia(47%) saturate(2131%)
        hue-rotate(197deg) brightness(95%) contrast(78%);
    --border-color: #e2e2e2;
    --chevron-color: #333;
    --site-title-font-size: 2.5em;
    --h1-font-size: 2em;
    --item-gap: 30px;
    --inner-gap: 20px;
    --title-line-height: 1.2;
    --content-max-width: 100%;
    --breadcrumb-background-color: rgba(255, 255, 255, 0.8);
    --breadcrumb-border-color: rgba(255, 255, 255, 0.7);
    --monospace: "Lucida Console", Consolas, "Courier", monospace;
    --code-background-color: #f8f8f8;
    --kbd-color: #444444;
    --kbd-text-shadow: #fff;
    --kbd-border-color: #bbb;
    --kbd-background-color: #f7f7f7;
    --kbd-background-image: linear-gradient(
        top,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0)
    );
    --kbd-background-repeat: repeat-x;
    --kbd-box-shadow:
        0px 1px 0 #bbbbbb, 0 2px 1px #999999, 0 2px 0 #bbbbbb,
        inset 0 1px 1px #ffffff, inset 0 -1px 2px #cccccc;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1c1c1e;
        --foreground-color: #fff;
        --link-color: #6699ff;
        --foreground-secondary-color: #adadaf;

        --nav-current-background-color: #0f0f0f;
        --nav-current-foreground-color: #f1f1f1;
        --nav-item-background-color: #272727;
        --nav-item-foreground-color: #f1f1f1;
        --nav-item-hover-background-color: #3f3f3f;

        --icon-secondary-filter: invert(87%) sepia(6%) saturate(58%)
            hue-rotate(202deg) brightness(80%) contrast(87%);
        --icon-social-filter: invert(64%) sepia(85%) saturate(4030%)
            hue-rotate(203deg) brightness(108%) contrast(102%);
        --border-color: #2b2b2d;
        --chevron-color: #eee;
        --breadcrumb-background-color: rgba(32, 32, 34, 0.8);
        --breadcrumb-border-color: rgba(32, 32, 34, 0.7);
        --code-background-color: #2b2b2d;
        --kbd-color: #eeeeee;
        --kbd-text-shadow: #000000;
        --kbd-border-color: #000;
        --kbd-background-color: #4d4c4c;
        --kbd-background-image: linear-gradient(
            rgba(0, 0, 0, 0.5),
            rgba(0, 0, 0, 0) 80%,
            rgba(0, 0, 0, 0)
        );
        --kbd-background-repeat: no-repeat;
        --kbd-box-shadow:
            0px 1px 0 #000000, 0 2px 1px rgba(90, 90, 90, 0.5),
            inset 0 1px 1px #aaaaaa, inset 0 -1px 2px #272727;
    }
}

html {
    padding: 0;
    margin: 0;
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--background-color);
    padding: 0;
    margin: 0;
    font-family:
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        Segoe UI,
        Roboto,
        Helvetica Neue,
        Arial,
        Noto Sans,
        sans-serif,
        Apple Color Emoji,
        Segoe UI Emoji,
        Segoe UI Symbol,
        Noto Color Emoji;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 首页特殊样式 - 全屏视频背景 */
body.homepage {
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden;
}

body.homepage .wrapper {
    position: relative;
    z-index: 1;
}

body.homepage .main {
    padding: 0;
}

/* 确保 body.homepage 的黑色背景不影响文章列表页面 */
body.homepage #works-page {
    background-color: var(--background-color) !important;
    color: var(--foreground-color) !important;
}

body.homepage #works-page .layout-container {
    background-color: var(--background-color) !important;
}

body.homepage #works-page .content-area {
    background-color: var(--background-color) !important;
    color: var(--foreground-color) !important;
}

body.homepage #works-page .sidebar {
    background-color: var(--background-color) !important;
    color: var(--foreground-color) !important;
}

a:link,
a:visited,
a:active {
    color: var(--link-color);
    text-decoration: none;
    line-break: anywhere;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

code {
    white-space: pre;
    white-space: pre-wrap;
    word-break: break-all;
    word-wrap: break-word;
    text-align: left;
}

code {
    background-color: var(--code-background-color);
    padding: 0 2px 0 2px;
    border-radius: 3px;
}

code,
pre,
samp,
tt {
    font-family: var(--monospace);
}

pre {
    border: 1px solid var(--border-color);
    background-color: var(--code-background-color);
    border-radius: 3px;
    padding: 10px;
    font-size: 0.9em;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.02);
}

pre {
    display: block;
    break-inside: avoid;
    text-align: left;
}

h1 {
    font-family: "Noto Sans SC", sans-serif;
    color: var(--foreground-color);
    font-size: var(--h1-font-size);
    margin: 0 0 20px 0;
    line-height: var(--title-line-height);
}

/* Article Detail Page - 3 Column Layout */
.article-layout-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* 第一栏：左侧边栏（固定，但内容可独立滚动） */
.article-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 270px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 60px;
    box-sizing: border-box;
    background-color: var(--background-color);
}

/* 第二栏：文章主内容（固定，但内容可独立滚动） */
.article-main-content {
    position: fixed;
    left: 270px;
    top: 0;
    width: 460px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 48px 12px 60px 0;
    box-sizing: border-box;
    background-color: var(--background-color);
}

.article-main-content .article-content {
    max-width: 100%;
    font-family: "Nunito Sans", sans-serif;
    animation: contentFadeIn 1s ease-out;
}

/* 第三栏：右侧栏（主要滚动区域） */
.article-right-sidebar {
    position: fixed;
    left: 770px; /* 270px (左侧栏) + 500px (中间栏) */
    top: 0;
    right: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 48px 60px 60px 0;
    box-sizing: border-box;
    background-color: var(--background-color);
    animation: contentFadeIn 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.right-sidebar-content {
    max-width: 100%;
    padding: 0;
    margin: 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* 第三栏内容字体 */
.article-right-sidebar {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* 第三栏图片自适应 */
.article-right-sidebar img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 20px 0;
    box-sizing: border-box;
}

.article-right-sidebar .content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 20px 0;
}

/* 第三栏内容样式 - 确保内容不会撑出去 */
.article-right-sidebar * {
    max-width: 100%;
    box-sizing: border-box;
}

.article-right-sidebar p,
.article-right-sidebar h1,
.article-right-sidebar h2,
.article-right-sidebar h3,
.article-right-sidebar h4,
.article-right-sidebar h5,
.article-right-sidebar h6,
.article-right-sidebar ul,
.article-right-sidebar ol,
.article-right-sidebar div {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 第三栏文字样式 - 统一设置 */
.article-right-sidebar td,
.article-right-sidebar th {
    font-size: 14px;
    font-weight: 500;
}

/* 右侧栏标签样式 */
.article-right-sidebar .tags-container {
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    color: var(--foreground-secondary-color);
}

.article-right-sidebar .tags-container > span {
    font-weight: 500;
}

.article-right-sidebar .tags {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.article-right-sidebar .tag-item {
    display: block;
    padding: 0.5em 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-right-sidebar .tag-item:hover {
    text-decoration: none;
    border-bottom-color: var(--link-color);
    box-shadow: none;
}

/* Article Detail Page Styles */
.article-content {
    max-width: 100%;
}

.article-title {
    font-family: "Noto Sans SC", sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--foreground-color);
    margin: 0 0 24px 0;
}

.article-meta {
    display: none;
}

.article-date {
    display: none;
}

/* 标题上方的标签样式 */
.article-tags-above-title {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 24px;
}

.article-tag-above {
    font-size: 12px;
    color: var(--foreground-color);
    padding: 4px 12px;
    background-color: var(--background-color);
    border: 2px solid var(--foreground-color);
    border-radius: 20px;
    display: inline-block;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    cursor: default;
}

/* 保留原有的 article-tag 样式用于其他地方 */
.article-tags-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.article-tag {
    font-size: 12px;
    color: var(--foreground-secondary-color);
    padding: 2px 8px;
    background-color: var(--code-background-color);
    border-radius: 3px;
    display: inline-block;
    line-height: 1.4;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tag:hover {
    text-decoration: none;
    background-color: var(--border-color);
    color: var(--foreground-color);
}

/* 返回按钮样式 */
.article-return {
    margin-top: 32px;
}

/* 桌面端返回按钮 */
.article-return-desktop {
    margin-top: 32px;
    display: block;
}

/* 移动端隐藏桌面端返回按钮 */
@media screen and (max-width: 809px) {
    .article-return-desktop {
        display: none;
    }
}

/* 桌面端底部容器样式 - 隐藏 */
.article-bottom {
    display: none;
}

.return-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.return-link:hover {
    opacity: 0.7;
}

.return-icon {
    width: 24px;
    height: 24px;
    display: block;
}

h2 {
    font-family: "Nunito Sans", sans-serif;
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.5em;
}

.chevron {
    font-size: 1.1em;
    color: var(--chevron-color);
    font-family: "Lucida Grande";
    font-weight: 500;
}

.content img {
    display: block;
    margin: 20px auto 20px auto;
    max-width: 100%;
    height: auto;
}

hr {
    border: none;
    height: 2px;
    color: var(--border-color);
    background-color: var(--border-color);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.date {
    font-size: 0.8em;
    color: var(--foreground-secondary-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: var(--breadcrumb-background-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--breadcrumb-border-color);
    box-sizing: border-box;
    z-index: 99;
}

/* Hide breadcrumb in article detail pages with layout-container */
.layout-container ~ .breadcrumb,
.layout-container .breadcrumb {
    display: none !important;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: calc(
        700px - env(safe-area-inset-left) - env(safe-area-inset-left)
    );
    margin-left: auto;
    margin-right: auto;
}

.chevron {
    display: inline-block;
    margin: 0 8px;
    color: var(--chevron-color);
    font-family: "Lucida Grande";
    font-weight: 500;
}

.breadcrumb-inner > a {
    line-break: auto;
}

.breadcrumb-avatar {
    margin-right: 8px;
    display: flex;
}

.breadcrumb-avatar-image {
    width: 16px;
    height: 16px;
    border-radius: 16px;
    vertical-align: bottom;
    display: block;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.1));
}

.main {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--foreground-color);
}

/* Layout Container - 左右布局 */
.layout-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar - 左侧固定 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 270px;
    height: 100vh;
    overflow-y: auto;
    padding: 40px 60px;
    box-sizing: border-box;
    background-color: var(--background-color);
}

.sidebar-inner {
    max-width: 270px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-content {
    flex: 0 0 auto;
}

.sidebar-footer {
    flex: 0 0 auto;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--foreground-secondary-color);
    text-align: left;
    padding-top: 60px;
    line-height: 1.6;
}

.sidebar-footer .footer-inner {
    line-height: 1.6;
}

.content-footer {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--foreground-secondary-color);
    text-align: center;
    padding: 40px 0;
    margin-top: 40px;
    line-height: 1.6;
    display: none;
}

.content-footer .footer-inner {
    line-height: 1.6;
}

/* Content Area - 右侧可滚动 */
.content-area {
    margin-left: 270px;
    flex: 1;
    padding: 48px 60px 60px 0;
    box-sizing: border-box;
    min-height: 100vh;
    animation: contentFadeIn 1s ease-out;
}

.article-main-content .article-title {
    font-size: 32px;
}

.article-main-content .article-meta {
    margin-bottom: 24px;
}

.content {
    margin: 0;
    line-height: 1.75rem;
    font-size: 0.9em;
    color: var(--foreground-color);
    font-family: "Nunito Sans", sans-serif;
}

/* Article content area specific styles */
.content-area .content {
    max-width: 100%;
    font-family: "Nunito Sans", sans-serif;
}

.content-area .content > *:first-child {
    margin-top: 0;
}

.content-area .content > *:last-child {
    margin-bottom: 0;
}

/* 文章主内容和第三栏内容字体 */
.article-main-content .content {
    font-family: "Nunito Sans", sans-serif;
}

.article-right-sidebar .content,
.article-right-sidebar p,
.article-right-sidebar div,
.article-right-sidebar span,
.article-right-sidebar li {
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* START: table */

.content table {
    table-layout: auto;
    width: 100%;
    padding: 0;
    border-collapse: collapse;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 4px 8px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.02);
}

.content table tr {
    border-top: 1px solid var(--border-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
}

.content table tr:nth-child(2n) {
    background-color: var(--code-background-color);
}

.content table tr th {
    font-weight: bold;
    border: 1px solid var(--border-color);
    margin: 0;
    padding: 6px 12px;
    background-color: var(--code-background-color);
}

.content table tr td {
    border: 1px solid var(--border-color);
    margin: 0;
    padding: 6px 12px;
}

.content table tr th :first-child,
.content table tr td :first-child {
    margin-top: 0;
}

.content table tr th :last-child,
.content table tr td :last-child {
    margin-bottom: 0;
}

/* END: table */

/* 列表样式 - 间距更小，与段落区别 */
.content ul,
.content ol {
    margin: 0 0 1em 0;
    list-style-position: outside;
}

.content li {
    margin-bottom: 0.25em; /* 列表项之间间距更小 */
    line-height: 1.75rem;
}

.content li:last-child {
    margin-bottom: 0;
}

/* 段落样式 - 间距更大，与列表区别 */
.content p {
    margin: 0 0 1.5em 0; /* 段落间距更大 */
    line-height: 1.75rem;
    font-weight: 500;
}

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

/* 第三栏列表和段落样式 */
.article-right-sidebar ul,
.article-right-sidebar ol {
    margin: 0 0 1em 0;
    padding-left: 1.5em;
    list-style-position: outside;
}

.article-right-sidebar li {
    margin-bottom: 0.25em; /* 列表项之间间距更小 */
    line-height: 1.75rem;
    font-size: 14px;
    font-weight: 500;
}

.article-right-sidebar li:last-child {
    margin-bottom: 0;
}

.article-right-sidebar p {
    margin: 0 0 1.5em 0; /* 段落间距更大 */
    line-height: 1.75rem;
    font-size: 14px;
    font-weight: 500;
}

.article-right-sidebar p:last-child {
    margin-bottom: 0;
}

.site-logo {
    margin-bottom: 16px;
}

.logo-image {
    height: 42px;
    width: auto;
    display: block;
    transition: filter 0.3s ease;
}

/* 深色模式下自动反色logo */
@media (prefers-color-scheme: dark) {
    .logo-image {
        filter: invert(1);
    }
}

.site-description {
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--foreground-color);
    margin-bottom: 40px;
}

.site-description p:first-child {
    margin-top: 0px;
}

.site-description p:last-child {
    margin-bottom: 0px;
}

.site-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--inner-gap);
    font-size: 1em;
    line-height: var(--title-line-height);
    color: var(--foreground-color);
}

.site-title {
    font-size: var(--site-title-font-size);
    line-height: var(--title-line-height);
    font-weight: 600;
    color: var(--foreground-color);
}

.site-about {
    font-size: 1.2em;
    line-height: var(--title-line-height);
    color: var(--foreground-color);
}

.site-about p:first-child {
    margin-top: 0px;
}

.site-about p:last-child {
    margin-bottom: 0px;
}

/* Works Grid Layout */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 100%;
    margin: 0 0 60px 0;
    animation: contentFadeIn 1s ease-out;
}

.work-card {
    position: relative;
    overflow: hidden;
}

.work-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.work-card-link:hover {
    text-decoration: none;
}

.work-card-link:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-link:hover .work-card-title {
    opacity: 0.7;
}

.work-card-image {
    width: 100%;
    aspect-ratio: 1.5625 / 1;
    overflow: hidden;
    background-color: var(--code-background-color);
    margin-bottom: 12px;
    position: relative;
    display: block;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.work-card-image-placeholder {
    background: linear-gradient(135deg, var(--code-background-color) 0%, var(--border-color) 100%);
}

.work-card-content {
    padding: 0;
}

.work-card-title {
    font-family: "Noto Sans SC", sans-serif;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--foreground-color);
    margin-bottom: 8px;
    transition: opacity 0.2s ease;
}

.work-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.work-card-tag {
    font-size: 0.75em;
    color: var(--foreground-secondary-color);
    border-radius: 3px;
    display: inline-block;
    line-height: 1.4;
}

/* Legacy styles for other pages */
.items {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: var(--item-gap);
    align-items: top;
}

.item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-hero-image {
}

.item-hero-image img {
    max-height: 60px;
    border-radius: 2px;
    aspect-ratio: 3/2;
    object-fit: cover;
    image-rendering: optimizeQuality;
    border: 0px;
}

.item-title {
    font-size: 1.25em;
    font-weight: 500;
    line-height: var(--title-line-height);
    text-align: left;
}

.item-title > a {
    line-break: strict !important;
}

.item-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.item-date {
    font-size: 0.8em;
    color: var(--foreground-secondary-color);
    text-align: left;
    display: inline-block;
}

.item-video-icon,
.item-audio-icon {
    width: 1em;
    height: 1em;
    filter: var(--icon-secondary-filter);
}

.social-icon {
    width: 1em;
    height: 1em;
    vertical-align: bottom;
    filter: var(--icon-social-filter);
}

kbd {
    font-size: 12px;
    color: var(--kbd-color);
    font-family: "Lucida Grande", Lucida, Verdana, sans-serif;
    font-weight: normal;
    font-style: normal;
    text-align: center;
    line-height: 1em;
    text-shadow: 0 1px 0 var(--kbd-text-shadow);
    display: inline;
    padding: 0.3em 0.55em;
    border-radius: 6px;
    background-clip: padding-box;
    border: 1px solid var(--kbd-border-color);
    background-color: var(--kbd-background-color);
    background-image: var(--kbd-background-image);
    background-repeat: var(--kbd-background-repeat);
    box-shadow: var(--kbd-box-shadow);
}

.video-container {
    width: 100%;
    padding-top: 56.25%;
    height: 0px;
    position: relative;
    border-radius: 2px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

.video {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 2px;
    z-index: 1;
}

.audio-container {
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--content-max-width);
}

.audio {
    width: 100%;
}

.top {
    margin-bottom: 16px;
}

img.avatar {
    width: 72px;
    height: 72px;
    border-radius: 72px;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.1));
    padding: 10px;
}

.pages-container {
    display: flex;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pages-info {
    flex: 1;
    text-align: center;
    vertical-align: middle;
    color: var(--foreground-secondary-color);
    font-weight: 500;
    font-size: 12px;
}

.nav-container {
    margin-bottom: 0;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    align-items: flex-start;
}

.nav-current:link,
.nav-current:visited {
    font-family: "Noto Sans SC", sans-serif;
    color: var(--foreground-color);
    font-size: 17px;
    line-height: 1.6;
    display: block;
    transition: opacity 0.2s;
    font-weight: 700;
}

.nav-current:hover {
    text-decoration: none;
    opacity: 0.7;
}

.nav-item:link,
.nav-item:visited {
    font-family: "Noto Sans SC", sans-serif;
    color: var(--foreground-color);
    font-size: 17px;
    line-height: 1.6;
    display: block;
    transition: opacity 0.2s;
    font-weight: 700;
}

.nav-item:hover {
    text-decoration: none;
    opacity: 0.7;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
.date,
ul,
ol,
pre,
hr {
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
}

ul {
    padding-inline-start: 1em;
}

ol {
    padding-inline-start: 1.25em;
}

.site-about p {
    max-width: 100%;
    margin-left: 0px;
    margin-right: 0px;
}

/* START: To Do Items */

ul:has(input[type="checkbox"]) {
    padding-inline-start: 0px;
}

li input[type="checkbox"] {
    display: none;
}

li:has(input[type="checkbox"]) {
    list-style-type: none;
    margin-left: 0px;
    pointer-events: none;
}

li:has(input[type="checkbox"]:not(:checked):disabled)::before {
    background-image: url("./circle.svg");
    background-repeat: no-repeat;
    content: "";
    display: inline-block;
    vertical-align: text-top;
    width: 1.25em;
    height: 1em;
    background-size: 1em 1em;
    filter: var(--icon-social-filter);
    pointer-events: all;
}

li:has(input[type="checkbox"]:checked:disabled)::before {
    background-image: url("./checkmark.circle.fill.svg");
    background-repeat: no-repeat;
    content: "";
    display: inline-block;
    vertical-align: text-top;
    width: 1.25em;
    height: 1em;
    background-size: 1em 1em;
    pointer-events: all;
}

/* END: To Do Items */

figure {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

figure > img:first-child {
    margin: 40px 0px 20px 0px;
}

figcaption {
    font-size: 0.8em;
    color: var(--foreground-secondary-color);
    text-align: center;
}

blockquote {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 40px;
    margin-inline-end: 40px;
}

blockquote {
    font-style: italic;
    border-left: 5px solid;
    margin-left: 2em;
    padding-left: 1em;
    border-color: var(--border-color);
    color: var(--foreground-secondary-color);
}

/* START: tag */

.tag-container {
    margin: 0px auto 40px auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.tag-caption {
    font-size: 0.8em;
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.tag-title {
    font-size: 2em;
    font-weight: 500;
}

.tag-count {
    font-size: 0.8em;
    color: var(--foreground-secondary-color);
}

.tags-container {
    font-size: 0.8em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    color: var(--foreground-secondary-color);
    align-items: center;
}

.tags {
    flex: 1;
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
}

.tag-cloud {
    column-count: 3;
    column-rule: 1px solid var(--border-color);
    column-gap: 20px;
    line-height: 2;
}

.tag-cloud-item {
    display: block;
    font-size: 1em;
}

.tag-cloud-item-count {
    display: inline-block;
    background-color: var(--border-color);
    font-size: 0.75em;
    color: var(--background-color);
    padding: 1px 4px 1px 4px;
    border-radius: 20px;
    line-height: 1;
    vertical-align: middle;
    margin-left: 0.5em;
}

.tag-item {
    display: inline-block;
    padding: 0.2em 0.5em 0.2em 0.5em;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.tag-item:hover {
    text-decoration: none;
    border-color: var(--link-color);
    box-shadow: 0px 1px 2px var(--border-color);
}

/* END: tag */

/* START: archive */

.archive-container {
    margin: 0px auto 40px auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.archive-title {
    font-size: 2em;
    font-weight: 500;
}

.archive-count {
    font-size: 0.8em;
    color: var(--foreground-secondary-color);
}

.archive-list {
    column-count: 3;
    column-rule: 1px solid var(--border-color);
    column-gap: 20px;
    line-height: 1.2;
}

.archive-list-item {
    display: block;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 10px;
}

.archive-list-header {
    display: block;
    break-after: avoid;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 10px;
    margin-top: 20px;
    color: var(--foreground-secondary-color);
}

.archive-list-header:first-child {
    margin-top: 0px;
}

.archive-list-item a {
    line-break: initial;
}

/* END: archive */


/* Legacy footer for other pages */
footer {
    font-size: 0.85em;
    color: var(--foreground-secondary-color);
    width: 100%;
    text-align: center;
    margin-top: 80px;
}

.footer-inner {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 中等屏幕（810px - 1199px）- 优化首页布局 */
@media screen and (min-width: 810px) and (max-width: 1199px) {
    .sidebar {
        width: 240px;
        padding: 40px 40px;
    }

    .sidebar-inner {
        max-width: 200px;
    }

    .content-area {
        margin-left: 240px;
        padding: 40px 40px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* 移动端（809px 以下）- 首页单栏布局 */
@media screen and (max-width: 809px) {
    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 20px 20px 20px;
        border-right: none;
    }

    .sidebar-inner {
        max-width: 100%;
        min-height: auto;
    }

    .content-area {
        margin-left: 0;
        padding: 30px 20px;
    }
}

/* 中等屏幕（810px - 1199px）- 优化布局 */
@media screen and (min-width: 810px) and (max-width: 1199px) {
    .article-sidebar {
        width: 240px;
        padding: 40px 40px;
    }

    .article-main-content {
        left: 240px;
        width: 400px;
        padding: 48px 24px 60px 24px;
    }

    .article-right-sidebar {
        left: 640px; /* 240px + 400px */
    }
}

/* 移动端（809px 以下）- 单栏布局 */
@media screen and (max-width: 809px) {
    .article-layout-container {
        flex-direction: column;
        display: flex;
        min-height: 100vh;
    }

    .article-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 40px 20px 20px 20px;
    }

    .article-main-content {
        position: relative;
        left: 0;
        width: 100%;
        height: auto;
        padding: 4px 30px 20px;
        border-right: none;
        order: 2;
    }

    .article-main-content .article-content {
        padding-bottom: 0;
    }

    .article-right-sidebar {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        padding: 0 20px 30px 20px;
        order: 3;
    }

    /* 移动端底部内容在最后 */
    .article-bottom {
        order: 4;
        padding: 40px 20px 40px 20px;
        margin-top: 0;
    }

    /* 移动端文章详情页标题和标签居中 */
    .article-main-content .article-tags-above-title {
        justify-content: center;
    }

    .article-main-content .article-title {
        text-align: center;
    }

    .article-main-content .article-content > .content > p:first-child {
        text-align: center;
    }

    /* 移动端返回按钮和页脚 */
    .article-return {
        text-align: center;
        margin-bottom: 24px;
    }

    .content-footer {
        display: block;
        padding-bottom: 0;
    }

    /* 移动端布局容器 */
    .article-layout-container {
        display: flex;
        flex-direction: column;
    }

    /* 移动端第三栏底部间距调整 */
    .article-right-sidebar {
        padding-bottom: 0;
    }

    /* 移动端 h2 标题居中 */
    h2 {
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --item-gap: 15px;
        --inner-gap: 10px;
        --site-title-font-size: 2em;
        --h1-font-size: 1.75em;
    }

    .layout-container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 20px;
        border-right: none;
    }

    .sidebar-inner {
        max-width: 100%;
        min-height: auto;
    }

    .sidebar-footer {
        display: none;
    }

    .content-footer {
        display: block;
    }

    .site-logo {
        text-align: center;
    }

    .logo-image {
        height: 36px;
        margin: 0 auto;
    }

    .site-description {
        display: none;
    }

    .nav-container {
        text-align: center;
    }

    .nav {
        flex-direction: row;
        gap: 30px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .content-area {
        margin-left: 0;
        padding: 30px 20px;
    }

    .article-tags-above-title {
        justify-content: center;
    }

    .article-title {
        font-size: 24px;
        margin-bottom: 24px;
        text-align: center;
    }

    .article-main-content .article-content > .content > p:first-child {
        text-align: center;
    }

    /* 移动端 h2 标题居中 */
    h2 {
        text-align: center;
    }

    /* 移动端底部容器 */
    .article-bottom {
        display: block;
        margin-top: 0;
        padding: 40px 20px;
    }

    /* 移动端返回按钮和页脚固定在底部 */
    .article-return {
        text-align: center;
        margin-bottom: 24px;
    }

    .content-footer {
        display: block;
        padding-bottom: 0;
    }

    .article-meta {
        margin-bottom: 20px;
        gap: 12px;
    }

    .breadcrumb-inner {
        padding: 0px 20px 0px 20px;
    }

    .tag-cloud,
    .archive-list {
        column-count: 2;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media screen and (max-width: 420px) {
    .archive-list {
        column-count: 1;
    }

    .content table {
        table-layout: fixed;
    }

    .content table td {
        line-break: anywhere;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav {
        gap: 20px;
    }

    .nav-current:link,
    .nav-current:visited,
    .nav-item:link,
    .nav-item:visited {
        font-size: 14px;
    }

    .logo-image {
        height: 42px;
    }

    .content-area {
        padding: 20px 15px;
    }

    .article-title {
        font-size: 20px;
    }
}

/* ========================================
   首页样式（视频背景 + 导航栏）
   ======================================== */

/* 首页视频背景 */
.homepage-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.homepage-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.homepage-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* 首页导航栏 */
.homepage-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 60px 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    box-sizing: border-box;
}

.homepage-logo {
    display: block;
}

.homepage-logo a {
    text-decoration: none;
}

.homepage-logo img {
    width: 150px;
    height: 42px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
    display: block;
}

.homepage-logo img:hover {
    opacity: 0.8;
}

.homepage-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    flex-wrap: wrap;
    white-space: nowrap;
}

.homepage-nav-menu li {
    margin: 0;
    padding: 0;
}

.homepage-nav-menu li a {
    font-family: "Nunito Sans", sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 8px 0;
    white-space: nowrap;
    display: block;
}

.homepage-nav-menu li a:hover,
.homepage-nav-menu li a.homepage-nav-active {
    color: #ffffff;
    opacity: 0.8;
}

/* 首页主内容区 */
.homepage-main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}


.homepage-content-wrapper {
    text-align: center;
    padding: 20px;
}

/* 首页标题部分 */
.homepage-title-section {
    animation: homepageFadeIn 1.5s ease-out;
}

.homepage-main-title {
    font-size: 96px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 40px 0;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.7);
    animation: homepageFadeIn 1.2s ease-out;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
    font-family: "Noto Sans SC", sans-serif;
    color: #ffffff;
}

.homepage-subtitle {
    font-size: 20px;
    font-weight: 300;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
    animation: homepageFadeIn 1.2s ease-out;
    animation-delay: 0.7s;
    animation-fill-mode: both;
    opacity: 0;
    margin: 0;
    font-family: "Noto Sans SC", sans-serif;
}

/* 首页页脚 */
.homepage-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    text-align: center;
    background: transparent;
    z-index: 1000;
    box-sizing: border-box;
}

.homepage-footer p {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    padding: 0;
    text-align: center;
    width: 100%;
}

/* 首页动画效果 */
@keyframes homepageFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用内容淡入动画 */
@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页响应式设计 */
@media screen and (max-width: 1440px) {
    .homepage-navbar {
        padding: 35px 60px;
    }

    .homepage-main-title {
        font-size: 72px;
    }

    .homepage-subtitle {
        font-size: 18px;
    }
}

@media screen and (max-width: 1024px) {
    .homepage-navbar {
        padding: 30px 40px;
    }

    .homepage-main-title {
        font-size: 56px;
        margin-bottom: 30px;
    }

    .homepage-subtitle {
        font-size: 16px;
    }

    .homepage-nav-menu {
        gap: 35px;
    }

    .homepage-nav-menu li a {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    body.homepage {
        overflow: hidden;
        height: 100vh;
    }

    body.homepage .wrapper {
        height: 100vh;
        overflow: hidden;
    }

    body.homepage .main {
        height: 100vh;
        overflow: hidden;
    }

    /* 精彩活动页面需要正常滚动，覆盖首页的 overflow: hidden */
    /* 使用 JavaScript 在页面加载时动态添加类名来标识精彩活动页面 */
    body.homepage.works-page-active,
    body.homepage.works-page-active .wrapper,
    body.homepage.works-page-active .main {
        overflow: visible !important;
        height: auto !important;
    }

    body.homepage #works-page {
        overflow: visible !important;
    }

    .homepage-navbar {
        padding: 20px 25px;
        flex-direction: column;
        gap: 12px;
    }

    .homepage-logo img {
        height: 36px;
    }

    .homepage-nav-menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .homepage-nav-menu li a {
        font-size: 13px;
    }

    .homepage-main-content {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding-top: 120px;
        padding-bottom: 80px;
        box-sizing: border-box;
    }

    .homepage-content-wrapper {
        padding: 0 20px;
    }

    .homepage-main-title {
        font-size: 48px;
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .homepage-subtitle {
        font-size: 16px;
    }

    .homepage-footer {
        padding: 20px;
        text-align: center;
    }

    .homepage-footer p {
        font-size: 11px;
        text-align: center;
        margin: 0 auto;
    }
}

@media screen and (max-width: 480px) {
    .homepage-navbar {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .homepage-logo img {
        height: 42px;
    }

    .homepage-nav-menu {
        gap: 20px;
    }

    .homepage-nav-menu li a {
        font-size: 14px;
    }

    .homepage-main-content {
        padding-top: 100px;
        padding-bottom: 70px;
    }

    .homepage-main-title {
        font-size: 64px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .homepage-subtitle {
        font-size: 20px;
    }

    .homepage-footer {
        padding: 16px 20px;
        text-align: center;
    }

    .homepage-footer p {
        font-size: 12px;
        text-align: center;
        margin: 0 auto;
    }
}

/* Product detail pages */
body.product-page {
    --foreground-color: #ffffff;
    --foreground-secondary: rgba(255, 255, 255, 0.75);
    --accent-red: #ee4444;
    --max-width: 1200px;
    --navbar-height: 110px;

    min-height: 100vh;
    font-family: "Noto Sans SC", "Nunito Sans", sans-serif;
    color: var(--foreground-color);
    background-color: #070707;
    margin: 0;
    padding: 0;
}

body.product-page,
body.product-page *,
body.product-page *::before,
body.product-page *::after {
    box-sizing: border-box;
}

body.product-page a {
    color: inherit;
    text-decoration: none;
}

body.product-page img {
    max-width: 100%;
    display: block;
}

.product-hero {
    --hero-bg: url("./product-hero-1.jpg");
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.product-hero__background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.product-hero__background {
    background-image: var(--hero-bg);
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    z-index: 0;
}

.product-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px 0 0 0;
}

.hero-content {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.hero-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 520px;
}

.hero-title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: "Nunito Sans", sans-serif;
    font-weight: 900;
    font-size: 90px;
    line-height: 1.12;
    letter-spacing: 0.02em;
    text-align: center;
}

.hero-title__line {
    display: block;
}

.hero-subtitle {
    margin: 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.5;
}

.hero-note {
    margin: 0;
    max-width: 400px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.hero-footnote {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.85);
}

.hero-text-slim {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.92);
}

.hero-footnote__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.hero-content--left {
    align-items: flex-start;
    text-align: left;
}

.hero-body--left {
    align-items: flex-start;
}

.hero-title--left {
    align-items: flex-start;
    text-align: left;
}

.hero-note--muted {
    font-size: 18px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.65);
    max-width: 380px;
}

.hero-footnote--taobao {
    color: rgba(0, 0, 0, 0.6);
}

.hero-cta--taobao {
    background-color: #ef4136;
}

/* Notebook variant (product 3) */
body.product-page--notebook .homepage-logo img {
    filter: none !important;
}

body.product-page--notebook .homepage-nav-menu li a {
    color: #111111 !important;
    opacity: 0.9;
}

body.product-page--notebook .homepage-nav-menu li a:hover,
body.product-page--notebook .homepage-nav-menu li a.homepage-nav-active {
    color: #000000 !important;
    opacity: 1;
}

body.product-page--notebook .hero-title {
    color: #000000;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    background-color: rgba(238, 68, 68, 0.92);
    backdrop-filter: blur(4px);
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta--disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(238, 68, 68, 0.3);
}

.hero-cta__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
}

.hero-cta__icon img {
    height: 18px;
    width: auto;
}

.hero-cta__divider {
    width: 1px;
    height: 16px;
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-cta__label {
    font-family: "Noto Sans SC", sans-serif;
    font-weight: 500;
}

.hero-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--max-width);
    padding: 0 60px;
    z-index: 3;
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-hero > .hero-pagination {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: min(var(--max-width), calc(100% - 120px));
    padding: 0;
}

.hero-pagination__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 11px 20px 10px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    opacity: 0.5;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.hero-pagination__control:hover {
    opacity: 1;
}

.hero-pagination__control--disabled {
    cursor: default;
    pointer-events: none;
}

.hero-pagination__control--solid {
    background-color: #ffffff;
    color: #000000;
    opacity: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

body.product-page .hero-pagination__control--solid {
    color: #000000;
}

.hero-pagination__control--solid:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.hero-pagination__counter {
    color: rgba(255, 255, 255, 0.6);
}

.hero-pagination__current {
    color: #ffffff;
}

.product-placeholder {
    display: none;
}

@media (max-width: 1199px) {
    .product-hero {
        padding: var(--navbar-height) 40px 30px;
    }

    .product-hero__container {
        max-width: 810px;
        min-height: calc(100vh - var(--navbar-height));
        gap: 40px;
        padding: 30px 0 50px;
    }

    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }
}

@media (max-width: 809px) {
    body.product-page {
        background-color: #000000;
    }

    .product-hero {
        padding: calc(var(--navbar-height) * 0.6) 20px 28px;
    }

    .product-hero__container {
        width: 100%;
        max-width: 420px;
        min-height: calc(100vh - var(--navbar-height));
        gap: 28px;
        padding: 0;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
        gap: 22px;
        text-align: center;
        align-items: center;
    }

    .hero-content.hero-content--left {
        text-align: left;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 76px;
        align-items: center;
    }

    .hero-title.hero-title--left {
        align-items: flex-start;
        text-align: left;
    }

    .hero-note {
        max-width: 280px;
    }

    .product-hero > .hero-pagination {
        position: absolute;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        width: min(var(--max-width), calc(100% - 48px));
        padding: 0;
    }

    .hero-pagination {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
}
