/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 系统字体设置 */
body {
    font-family: Noto Sans SC Light, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #45465D;
    /* background-color: #F6F4EF; */
}

/* 容器样式 */
.container {
    max-width: 1440px;
    margin: 0 auto;
}

/* 导航栏样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem 0.5rem 2.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 使用滚动时间线 */
    animation: navbarScroll 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-timeline: scroll(root block);
    animation-range: 0px 150px;
}

/* 导航栏滚动动画 */
@keyframes navbarScroll {
    from {
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        box-shadow: none;
    }
    to {
        background-color: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 0.5rem 0.8rem 0.5rem 1.2rem;
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-decoration: none; 
    color: #45465D; 
    font-family: Georgia, 'Times New Roman', sans-serif;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.nav-link,
.connect-btn,
.more-btn {
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav ul li:last-child {
    margin-left: -1.7rem;
}

.nav a {
    text-decoration: none;
    color: #45465D;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.nav a.active::after,
body[data-path="/"] .nav-link[data-path="/"],
body[data-path="/articles"] .nav-link[data-path="/articles"],
body[data-path="/works"] .nav-link[data-path="/works"],
body[data-path="/about"] .nav-link[data-path="/about"],
body[data-path="/contact"] .nav-link[data-path="/contact"] {
    position: relative;
}

body[data-path="/"] .nav-link[data-path="/"]::after,
body[data-path="/articles"] .nav-link[data-path="/articles"]::after,
body[data-path="/works"] .nav-link[data-path="/works"]::after,
body[data-path="/about"] .nav-link[data-path="/about"]::after,
body[data-path="/contact"] .nav-link[data-path="/contact"]::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #45465D;
}

.divider-line {
    width: 100%;
    height: 1.8px;
    background-color: #E3E3E7;
    margin-top: 70px;
}

/* CONTENT AS DESIGN 标题样式 */
.content-as-design {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.content-left-area ,.content-right-area {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.content-right-area {
    align-items: flex-end;
}

.content-title-line ,.content-as {
    font-size: clamp(1.5rem, 12vw, 9rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.9;
    font-family: sans-serif;
}

.content-left {
    text-align: left;
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
    width: fit-content;
    min-width: 100%;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0s;
}

.content-text, .connect-text, .as-text, .to-text, .design-text, .create-text {
    display: block;
    position: relative;
    z-index: 1;
}

.content-text,
.connect-text {
    white-space: nowrap;
    overflow: visible;
}

.content-text {
    animation: contentTextSwitch 12s ease-in-out infinite;
}

.connect-text {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    animation: connectTextSwitch 12s ease-in-out infinite;
}

.content-left::after, .content-right::before, .content-right::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -1.5rem;    
}

.content-left::after {
    width: calc(100% - 1rem);
    height: 1.5px;
    background: #DEDDE2;
    left: 0;
}

.content-bottom-left {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    width: 100%;
    justify-content: space-between;
}

.content-subtitle {
    font-size: 0.6rem;
    color: #000;
    letter-spacing: 0.05em;
    margin: 0;
    text-align: left;
    line-height: 1.4;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 0.2s;
}

.content-as {
    text-align: right;
    margin-right: 1rem;
    color: #DEDDE2;
    position: relative;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 0.1s;
}

.as-text {
    animation: asTextSwitch 12s ease-in-out infinite;
}

.to-text {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    animation: toTextSwitch 12s ease-in-out infinite;
}

.content-right {
    text-align: right;
    position: relative;
    width: 100%;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 0.3s;
}

.design-text {
    animation: designTextSwitch 12s ease-in-out infinite;
}

.create-text {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    clip-path: inset(100% 0 0 0);
    animation: createTextSwitch 12s ease-in-out infinite;
}

.content-right::before {
    width: calc(100% - 1.5rem);
    height: 1px;
    background: #DEDDE2;
    right: 0;
    z-index: 0;
}

.content-right::after {
    width: 0;
    height: 1px;
    background: #000;
    right: calc(100% - 1.5rem);
    animation: progressBar 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes progressBar {
    0% {
        width: 0;
        right: calc(100% - 1.5rem);
    }
    75% {
        width: calc(100% - 1.5rem);
        right: 0;
    }
    100% {
        width: calc(100% - 1.5rem);
        right: 0;
    }
}

@keyframes designTextSwitch {
    0% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    45% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    50% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    95% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes createTextSwitch {
    0% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    45% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    50% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    95% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    100% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes contentTextSwitch {
    0% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    45% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    50% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    95% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes connectTextSwitch {
    0% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    45% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    50% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    95% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    100% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes asTextSwitch {
    0% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    45% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    50% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    95% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

@keyframes toTextSwitch {
    0% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    45% {
        opacity: 0;
        clip-path: inset(100% 0 0 0);
    }
    50% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    95% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
    100% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
}

/* 主内容区域 */
.main {
    min-height: 80vh;
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: block;
}

/* 梯形色块背景 */
.trapezoid-bg {
    position: fixed;
    top: 0;
    right: 2.5%;
    width: 50%;
    height: 100vh;
    background-color: #fbf7f4;
    transform: skewX(-15deg);
    transform-origin: top right;
    z-index: -1;
}

/* 英雄区域 */
.hero {
    display: flex;
    flex-direction: row;
    margin-top: clamp(2rem, 5vw, 4rem);
    min-height: clamp(50vh, 60vh, 70vh);
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-left {
    flex: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: clamp(250px, 40vh, 350px);
}

.hero-right {
    flex: 1;
    min-width: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: clamp(0rem, 3vw, 2rem);
    margin-left: clamp(0rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: clamp(250px, 40vh, 350px);
}

.title-main {
    display: block;
    font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 500;
    line-height: 0.9;
    margin-bottom: 0;
    letter-spacing: -0.12em;
    position: relative;
    font-family: 'Times New Roman', sans-serif;
}

.title-main:nth-child(1) {
    margin-left: 5%;
}

.title-main:nth-child(2) {
    margin-left: 15%;
    font-style: italic;
}

.title-main:nth-child(3) {
    margin-left: 5%;
}

/* 背景重复文字效果 */
.title-main::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

/* 字母动画 */
.letter {
    display: inline-block;
    position: relative;
    animation: fallAndWave 1s ease-out forwards;
    opacity: 0;
}

.letter.light {
    color: #CCC8C3;
}

/* 为每个字母设置不同的动画延迟 */
.title-main:nth-child(1) .letter:nth-child(1) { animation-delay: 0.1s; }
.title-main:nth-child(1) .letter:nth-child(2) { animation-delay: 0.2s; }
.title-main:nth-child(1) .letter:nth-child(3) { animation-delay: 0.3s; }
.title-main:nth-child(1) .letter:nth-child(4) { animation-delay: 0.4s; }
.title-main:nth-child(1) .letter:nth-child(5) { animation-delay: 0.5s; }
.title-main:nth-child(1) .letter:nth-child(6) { animation-delay: 0.6s; }
.title-main:nth-child(1) .letter:nth-child(7) { animation-delay: 0.7s; }
.title-main:nth-child(1) .letter:nth-child(8) { animation-delay: 0.8s; }
.title-main:nth-child(1) .letter:nth-child(9) { animation-delay: 0.9s; }

.title-main:nth-child(2) .letter:nth-child(1) { animation-delay: 1.0s; }
.title-main:nth-child(2) .letter:nth-child(2) { animation-delay: 1.1s; }
.title-main:nth-child(2) .letter:nth-child(3) { animation-delay: 1.2s; }

.title-main:nth-child(3) .letter:nth-child(1) { animation-delay: 1.3s; }
.title-main:nth-child(3) .letter:nth-child(2) { animation-delay: 1.4s; }
.title-main:nth-child(3) .letter:nth-child(3) { animation-delay: 1.5s; }
.title-main:nth-child(3) .letter:nth-child(4) { animation-delay: 1.6s; }
.title-main:nth-child(3) .letter:nth-child(5) { animation-delay: 1.7s; }
.title-main:nth-child(3) .letter:nth-child(6) { animation-delay: 1.8s; }

/* 下坠和波浪动画 */
@keyframes fallAndWave {
    0% {
        opacity: 0;
        transform: translateY(-100vh);
    }
    70% {
        opacity: 1;
        transform: translateY(20px);
    }
    80% {
        transform: translateY(-10px);
    }
    90% {
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 按钮基础样式 */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 1.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 40px;
    white-space: nowrap;
    vertical-align: middle;
}

.btn-base::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 0;
}

.btn-base:hover::before {
    transform: translateY(0);
}

.btn-base .c-btn__inner {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    justify-content: center;
}

.btn-base:hover .c-btn__inner {
    flex-direction: row-reverse;
}

.btn-base .c-btn__txt,
.btn-base .c-btn__icon {
    transition: color 0.3s ease, border-color 0.3s ease, margin 0.3s ease;
}

.btn-base .c-btn__txt {
    margin-right: 0.3rem;
}

.btn-base:hover .c-btn__txt {
    margin-right: 0;
    margin-left: 0.3rem;
}

.btn-base .c-btn__icon {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 6px;
    font-weight: bold;
    flex-shrink: 0;
}

/* connect按钮样式 */
.connect-btn {
    background-color: #45465D;
    min-width: 120px;
    width: 120px;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    color: #F8F7F8;
}

.connect-btn::before {
    background-color: #5F717F;
}

.connect-btn .c-btn__inner {
    color: #F8F7F8;
}

.connect-btn:hover .c-btn__inner {
    color: #F8F7F8;
}

.connect-btn .c-btn__icon {
    border: 1px solid #F8F7F8;
}

.connect-btn:hover .c-btn__icon {
    border: 1px solid #F8F7F8;
}

/* 针对导航栏中的connect-btn，增加特异性以覆盖.nav a的样式 */
.nav .connect-btn {
    font-size: 0.8rem;
}

/* 更多按钮样式 */
.more-btn {
    background-color: transparent;
    padding: 0.3rem 1.3rem;
    border: 1px solid #45465D;
    cursor: pointer;
}

.more-btn::before {
    background-color: #5F717F;
}

.more-btn:hover {
    border-color: transparent;
}

.more-btn .c-btn__inner {
    color: #45465D;
    font-size: 1.2rem;
    font-weight: 900;
}

.more-btn:hover .c-btn__inner {
    color: #F8F7F8;
}

.more-btn .c-btn__txt {
    margin-right: 0;
}

.more-btn:hover .c-btn__txt {
    margin-right: 0;
    margin-left: 0;
}

.more-btn .c-btn__icon {
    border: 1px solid #000000;
}

.more-btn:hover .c-btn__icon {
    border: 1px solid #F8F7F8;
}

/* 页面跳转按钮样式 */
.page-turns-btn {
    background-color: #F0F0F0;
    border: 1px solid #DDDCE1;
}

.page-turns-btn::before {
    background-color: #45465D;
}

.page-turns-btn .c-btn__inner {
    color: #45465D;
}

.page-turns-btn:hover .c-btn__inner {
    color: #F8F7F8;
}

.page-turns-btn .c-btn__icon {
    background-color: #45465D;
    color: #FFFFFF;
}

.page-turns-btn:hover .c-btn__icon {
    background-color: #FFFFFF;
    color: #45465D;
}

.quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

/* 弹出页面控制 */
.popup-toggle {
    display: none;
}

/* 当弹出页面显示时，隐藏原来页面的滚动条 */
body:has(.popup-toggle:checked) {
    overflow: hidden;
}

/* 弹出页面样式 */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    z-index: 2000;
    overflow: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.popup-link {
    color: #45465D;
    text-decoration: none;
}

/* 滚动容器 */
.popup-scroll-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 2001;
}

/* 当复选框被选中时显示弹出页面 */
.popup-toggle:checked + .popup {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s 0s;
}

.popup-toggle:checked + .popup .popup-right {
    transform: translateX(0);
}

/* 弹出页面背景 */
.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(71, 70, 70, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1999;
}

.popup-right {
    position: absolute;
    right: 0;
    width: clamp(25%, 300px + 25vw, 90%);
    min-height: 100vh;
    background-color: #ffffff;
    z-index: 2002;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.popup-connect-btn {
    margin: 10px auto 0;
    width: 100%;
}

.popup-logo {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', sans-serif;
}

.popup-social {
    display: flex;
    gap: 5px;
}

.popup-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #45465D;
}

.popup-close {
    color: #ffffff;
    background: #5F717F;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2006;
    border-radius: 50%;
}

.popup-content {
    margin-top: 15px;
}

.popup-content h1::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.5px;
    background-color: #CCCCCC;
}

.popup-content h3,
.service-section h3 {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #F8F7F8;
    padding: 10px 15px;
    position: relative;
    font-weight: 400;
}

.popup-content h3::after,
.service-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 1px;
    background-color: #e0e0e0;
}

.popup-content h1 {
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.popup-content h1:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.5px;
    background-color: #CCCCCC;
}

.service-section {
    margin-top: 30px;
    margin-bottom: 15px;
}

.popup-copyright {
    margin-top: 40px;
    font-size: 0.7rem;
    text-align: left;
}

.service-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-section ul {
    background-color: #F8F7F8;
    border-radius: 6px;
    overflow: hidden;
}

.service-section ul li:last-child h3::after {
    display: none;
}

.intro {
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.8;
}

.intro p {
    margin-bottom: 0.5rem;
}

.explore-btn {
    display: inline-block;
    text-decoration: none;
    color: #45465D;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    max-width: fit-content;
}

.explore-btn::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 1px;
    background-color: #45465D;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.explore-btn::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: #45465D;
    transition: all 0.3s ease;
}

.explore-btn:hover::after {
    width: 100%;
    left: 0;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    animation: fadeIn 1s ease-out 0s both;
}

.hero-right {
    animation: fadeIn 1s ease-out 0.3s both;
}

.scroll-hint {
    animation: fadeIn 1s ease-out 0.6s both;
}

.hero-subtitle {
    animation: fadeIn 1s ease-out 0.8s both;
    font-size: clamp(1.5rem, 6vw, 6rem);
}

/* 链接动画 */
.explore-btn {
    transition: all 0.3s ease;
}

/* 页面切换动画 */
.page-content {
    animation: fadeIn 0.5s ease-out;
}

/* Home section styles */
.page-content[data-path="/about"] {
    padding: 0 clamp(0rem, 5vw, 3rem);
}

.home {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(50px, 10vw, 70px) 0 0;
}

.home-content {
    max-width: 800px;
    width: 100%;
}

.home-img {
    order: -1;
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.home-content h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: 0s;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: clamp(1rem, 3vw, 2rem);
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: .1s;
}

.home-content h3 span {
    color: #b7b2a9;
}

/* Typewriter effect */
.typewriter {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #b7b2a9;
    animation: typing 4s steps(32, end) infinite, blink-caret 0.75s step-end infinite;
    min-width: 0;
    width: 0;
    vertical-align: baseline;
    line-height: 1;
    margin: 0;
    padding: 0;
    transform: translateY(2px);
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 1024px) {
    .trapezoid-bg {
        width: 60%;
        transform: skewX(-10deg);
    }

    .title-main:nth-child(1), .title-main:nth-child(3) {
        margin-left: 2rem;
    }

    .title-main:nth-child(2) {
        margin-left: 6rem;
    }

}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .main {
        padding-top: 5rem;
    }

    .trapezoid-bg {
        width: 70%;
        transform: skewX(-5deg);
    }

    .nav ul {
        gap: 1rem;
    }

    .nav ul li:last-child {
        margin-left: -0.6rem;
    }

    .divider-line {
        margin-top: 0px;
    }

    .content-subtitle {
        display: none;
    }

    .content-left::after,
    .content-right::before,
    .content-right::after {
        bottom: -0.6rem;
    }

    .content-as {
        margin-left: 0.5rem;
    }

    /* 英雄区改为上下布局 */
    .hero {
        flex-direction: column;
        align-items: center;
    }

    .hero-left {
        flex: none;
        width: 100%;
        height: auto;
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
        display: flex;
        justify-content: center;
    }

    .hero-right {
        flex: none;
        width: 100%;
        height: auto;
        border-left: none;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

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

    .title-main:nth-child(1),  .title-main:nth-child(2), .title-main:nth-child(3) {
        margin-left: 0;
    }

}

@media (min-width: 768px) {
    .home {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .home-img {
        order: 1;
        width: auto;
        margin-bottom: 0;
        justify-content: flex-end;
    }

    .typewriter {
        display: inline-block;
        font-size: inherit;
        border-right: 3px solid #b7b2a9;
    }
}
@media (max-width: 520px) {
    /* 隐藏导航栏中的首页、文章、作品、关于链接 */
    .nav-link {
        display: none;
    }

    .connect-btn,
    .more-btn {
        display: flex;
    }
}
@keyframes typing {
    0% { width: 0 }
    70% { width: 32ch }
    85% { width: 32ch }
    100% { width: 0 }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #b7b2a9 }
}

.home-content h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .2s;
}

.home-content p {
    font-size: clamp(0.8rem, 2vw, 1rem);
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: .3s;
}

.home-img img {
    max-width: clamp(200px, 50vw, 450px);
    border-radius: 50%;
    margin-right: clamp(0rem, -5vw, -20px);
    box-shadow: 0 0 20px #b7b2a9;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: .6s, 1.5s;
}

.social-media {
    margin: 30px 0;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #b7b2a9;
    border-radius: 50%;
    color: #b7b2a9;
    font-size: 20px;
    text-decoration: none;
    margin: 0 15px 0 0;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(0.05s * var(--i));
}

.social-media a:hover {
    background: #b7b2a9;
    color: #1f242d;
    box-shadow: 0 0 20px #b7b2a9;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: #b7b2a9;
    text-decoration: none;
    border-radius: 40px;
    box-shadow: 0 0 10px #b7b2a9;
    font-size: 16px;
    color: #1f242d;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.5s ease;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: .8s;
}

.btn:hover {
    box-shadow: 0 0 20px #b7b2a9;
}

.btn:active {
    background: none;
    color: #b7b2a9;
    border: 2px solid #b7b2a9;
}

/* Additional animations */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100% {
        transform: translateY(0);
    }
}

.content-tabs {
    position: relative;
    margin-bottom: 2rem;
}

.content-tabs input {
    display: none;
}

.tab-label {
    display: inline-block;
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 900;
    font-family: sans-serif;
    margin-bottom: 0;
    cursor: pointer;
    transition: color 0.3s ease;
    color: #CCC8C3;
    margin-right: 2rem;
}

.content-tabs input:checked + .tab-label {
    position: relative;
    color: #45465D;
}

.content-tabs input:checked + .tab-label::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #45465D;
}

.content-tabs .tab-label:hover {
    color: #45465D;
}

.tab-content {
    display: none;
}

.content-tabs input#works-tab-projects:checked ~ #projects-content,
.content-tabs input#works-tab-photos:checked ~ #photos-content,
.content-tabs input#articles-tab-notes:checked ~ #notes-content,
.content-tabs input#articles-tab-institute:checked ~ #institute-content {
    display: block;
}

/* 联系页面样式 */
.contact-page {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-content[data-path="/articles"],
.page-content[data-path="/works"] {
    margin-top: 4rem;
}

.contact-content {
    text-align: center;
    max-width: 100%;
    padding: 0 1rem;
    width: 100%;
    overflow-x: hidden;
}

.contact-content h2 {
    font-size: clamp(6rem, 14vw, 12rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: #e4e3e2;
    position: relative;
    letter-spacing: 0.005em;
    transform: translateX(-260px);
    display: inline-block;
    max-width: none;
    overflow: visible;
    font-family: Georgia, 'Times New Roman', sans-serif;
}

.contact-content .contact-description {
    font-size: clamp(1rem, 3vw, 2rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: clamp(-7rem, -10vw, -12rem);
    position: relative;
    z-index: 1;
}

.contact-email {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 500;
    margin-bottom: 4rem;
    margin-top: -2rem;
    letter-spacing: -0.02em;
    font-family: 'Times New Roman', sans-serif;
    display: inline-block;
    word-wrap: break-word;
    max-width: 100%;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #8C8783;
    transition: color 0.3s ease;
    gap: 0.5rem;
    min-height: 50px;
}

.contact-icon-link:hover {
    color: #45465D;
}

.contact-icon-link svg {
    flex-shrink: 0;
}

.contact-icon-link span {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: auto;
}

/* Notes 和 INSTITUTE 标签页图标样式 */
#notes-content .contact-icons,
#institute-content .contact-icons {
    margin-top: 8rem;
    gap: 4rem 14rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* View More 样式 */
#notes-content > div:last-child,
#institute-content > div:last-child,
#projects-content > div:last-child {
    position: relative;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* PROJECTS 标题样式 */
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Times New Roman', sans-serif;
}

/* View More 链接悬停效果 */
.view-more-btn {
    position: relative;
    padding: 10px 30px;
    font-size: 1rem;
    font-family: 'Times New Roman', sans-serif;
    text-decoration: none;
    color: #45465D;
    box-shadow: inset 0 8px 4px rgba(0,0,0,0.05),
    0 20px 6px rgba(0,0,0,0.05),
    0 15px 12px rgba(0,0,0,0.05),
    inset 0 -8px 12px rgba(255,255,255,0.9);
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 10px 5px rgba(0,0,0,0.05),
    0 30px 8px rgba(0,0,0,0.08),
    0 25px 15px rgba(0,0,0,0.08),
    inset 0 -10px 15px rgba(255,255,255,0.9);
}

#notes-content > div:last-child::before,
#institute-content > div:last-child::before,
#projects-content > div:last-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #CCC8C3;
}

#notes-content .contact-icon-link,
#institute-content .contact-icon-link {
    min-height: 90px;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#notes-content .contact-icon-link svg,
#institute-content .contact-icon-link svg {
    flex-shrink: 0;
}

#notes-content .contact-icon-link span,
#institute-content .contact-icon-link span {
    font-size: 1.6rem;
    text-align: center;
    margin: 0;
    padding: 0;
    margin-top: auto;
}

/* 响应式设计 - 联系页面  */
@media (max-width: 1024px) {
    .contact-content h2 {
        transform: translateX(-180px) translateY(60px);
    }

    .contact-content .contact-description {
        margin-top: -3rem;
    }

    .contact-email {
        font-size: clamp(2rem, 8vw, 4rem);
        margin-top: -1rem;
    }

    .contact-icons {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .contact-content {
        padding: 0 1.5rem;
    }

    .contact-content h2 {
        transform: translateX(-100px) translateY(-20px);
    }

    .contact-email {
        font-size: clamp(1.2rem, 4vw, 2rem);
        margin-bottom: 3rem;
    }

    .contact-icons {
        gap: 2rem;
    }

    /* Notes 和 INSTITUTE 标签页图标移动端样式 */
    #notes-content .contact-icons,
    #institute-content .contact-icons {
        gap: 7rem;
    }

    .contact-page .contact-icon-link svg {
        width: 20px;
        height: 20px;
    }

    .contact-page .contact-icon-link[href*="github.com"] svg,
    .contact-page .contact-icon-link[href*="bilibili.com"] svg {
        width: 18px;
        height: 18px;
    }

    .contact-page .contact-icon-link span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 0 1rem;
    }

    .contact-icons {
        gap: 1.5rem;
    }

    .contact-page .contact-icon-link svg {
        width: 18px;
        height: 18px;
    }

    .contact-page .contact-icon-link[href*="github.com"] svg,
    .contact-page .contact-icon-link[href*="bilibili.com"] svg {
        width: 16px;
        height: 16px;
    }

    .contact-page .contact-icon-link span {
        font-size: 0.7rem;
    }
}

/* 滚动动效区域 - Traditional Culture Enthusiast */
.portfolio-section {
    color: #fff;
    padding: 60px 0;
    position: relative;
}

.portfolio-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 2px;
}

.portfolio-items {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.portfolio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.portfolio-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #999;
    letter-spacing: 1px;
}

.portfolio-arrow {
    font-size: 1.5rem;
    color: #999;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-arrow {
    transform: translateX(10px);
    color: #fff;
}

.portfolio-item:hover .portfolio-text {
    color: #fff;
}

.portfolio {
    padding: 80px 0 160px 0;
    text-align: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.portfolio-title {
    margin-bottom: 30px;
}

.hollow-text {
    color: transparent;
    -webkit-text-stroke: 1px #45465D;
}

.portfolio-part1,
.portfolio-part2 {
    display: inline-block;
    vertical-align: top;
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* 减小移动端的portfolio字体大小和边距 */
@media (max-width: 480px) {
    .portfolio {
        padding: 80px 0;
    }

    .portfolio-title {
        margin-bottom: 20px;
    }

    .portfolio-part1,
    .portfolio-part2 {
        font-size: 2.5rem;
    }
}

.portfolio-items {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.portfolio-item {
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 2px;
    width: 100%;
}

.portfolio-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.portfolio-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #CCC8C3;
    transition: all 0.3s ease;
    width: 100%;
}

.portfolio-item-text {
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #CCC8C3;
    font-family: 'Times New Roman', sans-serif;
    transition: color 0.3s ease;
}

.portfolio-item-arrow {
    opacity: 0.5;
    transition: all 0.3s ease;
    color: #CCC8C3;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.portfolio-item a:hover .portfolio-item-text {
    color: #45465D;
}

.portfolio-item a:hover .portfolio-item-arrow {
    opacity: 1;
    transform: translateX(-20px);
}

.portfolio-item-arrow svg {
    width: 24px;
    height: 24px;
}

.tradition-enthusiast {
    height: clamp(30vh, 40vh, 50vh);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 5rem;
    margin-bottom: clamp(2rem, 8vw, 10rem);
}

.enthusiast-text {
    font-size: clamp(3vw, 4vw, 5vw);
    letter-spacing: clamp(4px, 1vw, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.enthusiast-char {
    display: inline-block;
    opacity: 0;
    transition: all 0.8s ease;
}

/* 页脚样式 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 0;
    background-color: transparent;
    z-index: 1000;
}

.footer-content {
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.footer-links {
    display: flex;
    gap: clamp(1rem, 1.2vw, 1.2rem);
}

.footer-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-link svg {
    opacity: 0.7;
}

.footer-link:hover {
    color: #45465D;
}

.footer-link:hover svg {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-variant-numeric: lining-nums;
}

/* 玻璃态卡片样式 */
#projects-content .glass-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

#projects-content .glass {
    position: relative;
    width: 200px;
    height: 240px;
    background: linear-gradient(rgba(160,160,160,0.8),rgba(140,140,140,0.6));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 25px rgba(0,0,0,0.25);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s;
    border-radius: 10px;
    margin: 0 -45px;
    transform: rotate(calc(var(--r) * 1deg));
}

#projects-content .glass-container:hover .glass {
    transform: rotate(0deg);
    margin: 0 20px;
}

#projects-content .glass::before {
    content: attr(data-text);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

#projects-content .glass i {
    font-size: 4em;
    color: #fff;
}

/* 响应式设计 - 玻璃态卡片 */
@media (max-width: 1024px) {
    #projects-content .glass {
        width: 160px;
        height: 200px;
        margin: 0 -30px;
    }
    
    #projects-content .glass i {
        font-size: 3em;
    }
    
    #projects-content .glass-container:hover .glass {
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    #projects-content .glass {
        width: 140px;
        height: 180px;
        margin: 0 -25px;
    }
    
    #projects-content .glass i {
        font-size: 2.5em;
    }
    
    #projects-content .glass-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    #projects-content .glass-container:hover .glass {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    #projects-content .glass {
        width: 120px;
        height: 160px;
        margin: 0 0 15px 0;
        transform: rotate(0deg);
    }
    
    #projects-content .glass i {
        font-size: 2em;
    }
    
    #projects-content .glass-container {
        flex-direction: column;
        align-items: center;
    }
    
    #projects-content .glass-container:hover .glass {
        margin: 0 0 15px 0;
    }
}

/* Don't Quit 动画样式 */
.dont-wait-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.dont-wait {
    margin: 0;
    padding: 0;
    font-size: clamp(2rem, 10vw, 8rem);
    transition: 0.5s;
    font-family: 'Times New Roman', sans-serif;
}

.dont-wait span {
    position: relative;
    text-transform: uppercase;
    display: block;
    transition: 0.5s;
}

.dont-wait span:nth-child(1)::before {
    content: "";
    position: absolute;
    top: calc(50% - 15px);
    right: 0;
    width: 50%;
    height: 30px;
    background: #fa0c00;
    transform-origin: right;
    transform: scale(0);
    transition: 0.5s;
    z-index: 1;
}

.dont-wait:hover span:nth-child(1)::before {
    transform: scaleX(1);
}

.dont-wait span:nth-child(2)::before {
    content: "";
    position: absolute;
    top: calc(50% - 15px);
    left: 0;
    width: 50%;
    height: 30px;
    background: #fa0c00;
    transform-origin: left;
    transform: scale(0);
    transition: 0.5s;
    z-index: 1;
}

.dont-wait:hover span:nth-child(2)::before {
    transform: scaleX(1);
}

.dont-wait span hide {
    transition: 0.5s;
    transition-delay: 1s;
}

.dont-wait:hover span hide {
    transition-delay: 1s;
    opacity: 0;
}

.dont-wait:hover span:nth-child(1) hide {
    padding-right: 30px;
}

.dont-wait:hover span:nth-child(2) hide {
    padding-right: 30px;
}

/* 浮动目录工具栏样式 */
.floating-toc {
            position: fixed;
            left: 0;
            bottom: 3rem;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding-left: 3rem;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

/* 只在 PROJECTS 标签页显示 */
.page-content[data-path="/works"]:has(#works-tab-projects:checked) .floating-toc {
    opacity: 1;
    visibility: visible;
}

.floating-toc-btn {
            background: transparent;
            border: none;
            border-radius: 0;
            padding: 8px 0;
            margin-bottom: -4px;
            cursor: pointer;
            transition: color 0.3s ease;
            box-shadow: none;
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
            position: relative;
            display: inline;
        }

.floating-toc-btn::before {
            content: '⌵';
            position: absolute;
            left: -10px;
            bottom: 11px;
            font-size: 6px;
            transition: color 0.3s ease;
        }

/* 自定义下划线位置和颜色 */
.floating-toc-btn::after {
            content: '';
            position: absolute;
            left: 0;
            width: 0;
            height: 0.5px;
            bottom: 8px;
            background-color: #000;
            transition: width 0.3s ease;
        }

.floating-toc-btn:hover::after {
            width: 100%;
        }

.floating-toc-btn:hover {
            transform: none;
        }

.floating-toc-btn.active {
            font-weight: 600;
        }

.floating-toc-btn.active::after {
            width: 100%;
        }

/* 少阳手记样式 */
.feature {
    padding: clamp(100px, 20vh, 160px) 0 clamp(40px, 10vh, 80px) 0;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

.feature__intro {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature__intro-content {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.feature__intro-title-link {
    color: inherit;
}

.feature__intro-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    font-family: 'Times New Roman', sans-serif;
    line-height: 1;
}

.feature__intro-text {
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    color: #2A2D2A;
    max-width: 600px;
}

.u-txt-green {
    color: #3EAD87;
}

.feature__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.feature__item {
    width: 100%;
    position: sticky;
    top: 4.5rem;
    z-index: 900;
    background-color: #fff;
    padding-top: 4rem 0 0;
}

.feature__item-meta-en {
    font-size: 0.9rem;
    color: #666;
    text-align: left;
    border-top: 1px solid #000;
    padding-top: 0.8rem;
}

.feature__item-content {
    position: relative;
    z-index: 2;
}

.feature__item-main {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature__item-number {
    font-size: clamp(8rem, 25vw, 18rem);
    font-weight: 100;
    line-height: 1;
    font-family: sans-serif;
    width: 50%;
    text-align: left;
}

.feature__item-info {
    flex: 1;
    padding-top: clamp(1rem, 3vw, 2rem);
}

.feature__item-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1.3;
}

.feature__item-image {
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 8px;
    max-width: 500px;
}

.feature__item-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature__item:hover .feature__item-image img {
    transform: scale(1.05);
}

.feature__item-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

/* 少阳手记区域 */
@media (max-width: 768px) {
    .feature__item-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature__item-number {
        width: 100%;
        text-align: center;
    }

    .feature__item-info {
        width: 100%;
        text-align: center;
    }

    .feature__item-image {
        margin: 1rem auto;
    }
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #45465D;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    outline: none;
    opacity: 0;
    visibility: hidden;
    animation: showBackToTop 0.5s ease forwards;
    animation-timeline: scroll(root block);
    animation-range: 150px 200px;
}

@keyframes showBackToTop {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.back-to-top:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
}

.back-to-top::before {
    content: '↑';
    font-size: 1.2rem;
    font-weight: bold;
}

.back-to-top:focus {
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 为每个页面内容添加滚动边距，确保回到顶部时显示正确位置 */
.page-content {
    scroll-margin-top: 2rem;
}

/* PHOTOS轮播图样式 */
.carousel {
    width: 100%;
    overflow-x: auto;
    margin: 7em auto 3em;
    display: flex;
    gap: 1em;
    scroll-behavior: smooth;
    anchor-name: --carousel;
    scroll-snap-type: x mandatory;
    scroll-marker-group: after;
}

.carousel::scroll-marker-group {
    display: flex;
    justify-content: center;
    gap: .5em;
}

.card::scroll-marker {
    content: '';
    height: 1em;
    width: 1em;
    background-color: var(--primary-color, #CCC8C3);
    border-radius: 50%;
}

.card::scroll-marker:target-current {
    background-color: var(--brand-color, #000);
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel::scroll-button(right), .carousel::scroll-button(left) {
    content: '→';
    border: none;
    background-color: var(--brand-color, #000);
    font-size: 3rem;
    color: white;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    padding-bottom: .1em;
    cursor: pointer;
    position: fixed;
    position-anchor: --carousel;
    position-area: right center;
    translate: -50%;
}

.carousel::scroll-button(left) {
    content: '←';
    position-area: left center;
    translate: 50%;
}

.carousel::scroll-button(right):disable, .carousel::scroll-button(left):disable {
    opacity: 0.5;
    cursor: auto;
}

.card {
    scroll-snap-align: start;
    flex: 0 0 20em;
    aspect-ratio: 5 / 3;
    background-color: var(--primary-color, #CCC8C3);
    padding: 1em;
    border-radius: .5em;
    text-align: center;
    align-content: center;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #000;
}

@media(max-width: 500px) {
    .card {
        flex: 0 0 100%;
    }
}

/* 动画关键帧 */
@keyframes slideRight {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(100px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
