/* 基础设置 */
:root {
    --primary-color: #c6af83;
    --background-color: #1a1a1a;
    --background-color-dark: #000000;
    --text-color: #ffffff;
    --text-color-dark: #1d1d1f;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #8b7355;
    --border-color: rgba(198, 175, 131, 0.3);
    --border-color-light-grey: #d1d1d1;
    --spacing-unit: clamp(1rem, 8vw, 8rem);
    --font-display: 'DM Serif Display', serif;
    /* --font-display-jp: '游ゴシック', YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, "Noto Sans JP", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; */
    --font-body: 'Cormorant Garamond', serif;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--background-color-dark);
    color: var(--text-color);
    /* font-family: 'Cormorant Garamond', serif; */
    font-family: 游ゴシック, YuGothic, "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, "Noto Sans JP", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

.decoration-line {
    display: block;
    height: 8px;
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    background-image: url('../image/decorate1.svg');
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
}

/* 新的加载页面样式 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-screen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/bg_pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
}

.loading-content {
    text-align: center;
    z-index: 2001;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 加载时的philoi标题样式 */
.loading-title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(3rem, 24vw, 20rem);
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-color);
    text-stroke: 2px var(--text-color);
}

.loading-letter {
    display: inline-block;
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.8s ease;
    will-change: transform, opacity;
}

.loading-letter.visible {
    opacity: 1;
}

/* 加载完成后淡出 */
.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s 0.8s;
}

/* 主标题字母样式，支持滚动动画 */
.title-letter {
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity;
}

@keyframes float {

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

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

/* 页面过渡 */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 1000;
    transition: opacity 0.8s ease;
}

.page-transition.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* 导航栏 */

.header-container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 9999;
    /* background-color: rgba(0, 0, 0, 0.5); */
    /* border-radius: 60px; */
    /* backdrop-filter: blur(10px); */
    /* border: 1px solid rgba(198, 175, 131, 0.25); */
}

.nav-container {
    width: 100%;
    height: 64px;
    /* padding: .5rem 1rem; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 100%;
}

.nav-links {
    height: 100%;
    display: flex;
    gap: 4rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover {
        color: var(--primary-color);
    }
}

@media (max-width: 996px) {
    .header-container {
        top: 32px;
    }

    .nav-container {
        height: 56px;
    }

    .logo-img {
        height: 80%;
    }

}

/* 语言选择器 */
.gglobe {
    width: 50px !important;
    height: 50px !important;
}

.current-lang {
    cursor: pointer;
    padding: 0.5rem 0;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: none;
    min-width: 120px;
}

@media (hover: hover) and (pointer: fine) {
    .language-selector:hover .lang-dropdown {
        display: block;
    }
}

.lang-btn {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .lang-btn:hover {
        background-color: rgba(198, 175, 131, 0.1);
    }
}

/* 首屏布局 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    padding: 8rem 0;
    will-change: transform;
}

/* 最底层：花纹背景 */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/bg_pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 0;
}

/* 顶层：黑色半透明遮罩 */
.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .1);
    z-index: 2;
    pointer-events: none;
}

/* 中间层：主背景图 */
.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.philoi.me/wp-content/uploads/2025/05/philoi-hero-bg-1.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

@media screen and (max-width: 996px) {
    .hero-section::after {
        background-image: url('https://www.philoi.me/wp-content/uploads/2025/05/philoi-hero-bg-3.png');
    }
}

/* 背景图片 */
.hero-background-image {
    width: 100%;
    height: 100%;
}

/* 背景装饰效果 */
.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%); */
    opacity: 0.7;
    pointer-events: none;
    z-index: 10;
}

/* 主标题区域 */
.hero-main {
    position: relative;
    max-width: 1400px;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    opacity: 0;
    animation: fadeInHeroMain 1.5s ease-out forwards;
    z-index: 3;
}

.main-subtitle {
    position: absolute;
    top: 10%;
    right: 0;
    transform: translate(0, -10%);
    z-index: 6;
    padding: 1rem 3rem;
    /* border: 2px solid #ffffff94; */
    background-color: #9ea5c7e0;
    backdrop-filter: blur(8px);
    /* background-color: var(--primary-color); */
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-dim);
    line-height: 1;
    overflow: hidden;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);

}

.main-subtitle-content {
    position: relative;
    display: flex;
    gap: .5rem;
    flex-direction: column;
    /* 添加切角效果 */
}

/* 添加边框装饰 - 外层 */
/* .main-subtitle::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px; 
    bottom: 5px;
    border: 1px solid #ffffff94;
    pointer-events: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
} */

/* 添加边框装饰 - 内层 */
/* .main-subtitle::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid #727caf;
    pointer-events: none;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
} */

.main-subtitle span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    animation: textReveal 1.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-100%);
    position: relative;
    z-index: 1;
    color: #1e285a;
    font-weight: 500;
}

.main-subtitle span:nth-child(1) {
    animation-delay: 1s;
}

.main-subtitle span:nth-child(2) {
    animation-delay: 1.5s;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

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

.main-title {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(3rem, 24vw, 20rem);
    font-weight: 400;
    color: transparent;
    color: var(--white);
    -webkit-text-stroke: 2px var(--text-color);
    text-stroke: 2px var(--text-color);
    display: flex;
    justify-content: space-between;
}

@keyframes fadeInHeroMain {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInMainTitle {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInElement {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }

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

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

/* 滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }

    50% {
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        transform: scaleY(0);
        opacity: 0;
    }
}

/* 装饰性元素 */
.magical-ornament {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.2;
    pointer-events: none;
}

.magical-ornament.top-left {
    top: 40px;
    left: 40px;
    transform: rotate(-45deg);
}

.magical-ornament.bottom-right {
    bottom: 40px;
    right: 40px;
    transform: rotate(135deg);
}

/* 通用部分样式 */
.section-container {
    width: 80%;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    color: var(--primary-color);
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 400;
    margin: 0 auto;
    margin-bottom: 4rem;
    letter-spacing: 0.05em;
    position: relative;
    display: flex;
    padding: 0 3rem;
    width: fit-content;
    /* opacity: 0; */
    /* transform: translateY(30px); */
    /* transition: opacity 0.8s ease, transform 0.8s ease; */
}

/* .section-title.visible {
    opacity: 1;
    transform: translateY(0);
} */

/* 装饰元素：标题周围的符号 */
.section-title::before,
.section-title::after {
    content: "✧✧";
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    top: 50%;
}

.section-title::before {
    left: -10px;
    transform: translateY(-50%);
}

.section-title::after {
    right: -10px;
    transform: translateY(-50%);
}

@media (max-width: 996px) {
    .section-container {
        width: 85%;
        padding: 4rem 0;
    }

    .section-title {
        margin-bottom: 3rem;
    }

    .hero-main {
        width: 85%;
    }

    .main-title,
    .loading-title {
        -webkit-text-stroke: 1px var(--text-color);
        text-stroke: 1px var(--text-color);
    }

    .main-subtitle {
        position: absolute;
        top: calc(100% - 10px);
        bottom: 10px;
        right: 0;
        transform: translate(0, 0);
        padding: .75rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        text-align: center;
        height: fit-content;
        /* 添加切角效果 */
        clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    }

    .main-subtitle-content {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .home.main-container {
        margin-top: 100vh;
    }

    /* 移动端下边框装饰调整 */
    /* .main-subtitle::before {
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
        clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    }
    
    .main-subtitle::after {
        top: 6px;
        left: 6px;
        right: 6px;
        bottom: 6px;
        clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    } */
}

/* 关于区域 */
.profile-section {
    z-index: 20;
    position: relative;
    height: 100dvh;
    background-color: #ffffff;
    transition: background-color 0.6s ease;
}

.profile-section.transparent {
    background-color: transparent;
}

.profile-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    gap: 3rem;
    position: relative;
    padding: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.catch-phrase {
    max-width: 40%;
}

.catch-phrase .catch-phrase-text {
    display: flex;
    flex-direction: column;
    font-family: 'Italianno', cursive;
    font-size: clamp(3.5rem, 2vw, 3.5rem);
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.catch-phrase .catch-phrase-text-2 {
    font-size: clamp(1.15rem, 2vw, 1.15rem);
}

.catch-phrase-sp {
    display: none;
}

.profile-text {
    display: flex;
    flex-direction: column;
    font-size: clamp(1.15rem, 2vw, 1.15rem);
    color: var(--text-color-dark);
    max-width: 32%;
    gap: 1.5rem;
    transition: 0.6s ease;
}

.profile-text.visible {
    color: #ffffff;
}

.profile-text p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: calc(var(--delay, 0) * 0.2s);
}

.profile-text p:nth-child(1) {
    --delay: 1;
}

.profile-text p:nth-child(2) {
    --delay: 2;
}

.profile-text p:nth-child(3) {
    --delay: 3;
}

.profile-text p:nth-child(4) {
    --delay: 4;
}

.profile-text.visible p,
.profile-text.visible .custom-content {
    opacity: 1;
    transform: translateY(0);
}

/* 自定义内容样式 */
.profile-text .custom-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: 0.2s;
}

.profile-text .custom-content p {
    margin-bottom: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.profile-text .custom-content h1,
.profile-text .custom-content h2,
.profile-text .custom-content h3,
.profile-text .custom-content h4,
.profile-text .custom-content h5,
.profile-text .custom-content h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.profile-text .custom-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .profile-text .custom-content a:hover {
        border-color: transparent;
    }
}

/* 角色容器 */
.character-container {
    position: absolute;
    height: 100%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.character-image {
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));
    animation: characterFloat 6s ease-in-out infinite;
}

@keyframes characterFloat {

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

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

@media (max-width: 996px) {
    .profile-section {
        height: auto;
    }

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

    .character-container {
        position: relative;
        top: 0;
        left: 0;
        transform: translate(0, 0);
        width: 100%;
        height: auto;
    }

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

    .profile-text {
        justify-content: flex-end;
        max-width: 100%;
        font-size: 0.875rem;
        gap: 1rem;
    }
}

.profile-image-container {
    width: 80%;
    height: auto;
    position: relative;
    border: 4px double var(--primary-color);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile 边框样式 */
.profile-bg {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    text-align: left;
    /* 只在四个角显示边框 */
    border: none;
}

/* 创建四个角的边框 */
.profile-bg::before,
.profile-bg::after,
.profile-bg>span::before,
.profile-bg>span::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: var(--primary-color);
    border-style: solid;
}

/* 左上角 */
.profile-bg::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

/* 右上角 */
.profile-bg::after {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

/* 左下角 */
.profile-bg>span::before {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

/* 右下角 */
.profile-bg>span::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* 作品展示 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-item {
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 1rem;
}

@media (hover: hover) and (pointer: fine) {
    .work-image-container:hover {
        border-color: var(--primary-color);
    }
}

.work-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.work-image-container {
    width: 100%;
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid rgba(198, 175, 131, 0.15);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .work-item:hover img {
        transform: scale(1.05);
    }
}

/* 悬停时显示作品描述 */
.work-description-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    color: var(--text-color);
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: auto;
    text-align: center;
    border: 1px solid var(--primary-color);
    transform: translateY(10px);
}

@media (hover: hover) and (pointer: fine) {
    .work-image-link:hover .work-description-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-description-text {
    width: 100%;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    color: var(--text-secondary);
}

@media (max-width: 996px) {
    .work-description-overlay {
        padding: 1rem;
    }

    .work-description-text {
        font-size: 0.85rem;
        -webkit-line-clamp: 5;
    }
}

.work-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-title {
    color: var(--primary-color);
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.work-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.work-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background-color: rgba(198, 175, 131, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    border-radius: 20px;
}

.work-urls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.work-url-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .work-url-button:hover {
        background-color: var(--primary-color);
        color: var(--background-color);
    }
}

/* 响应式设计 */
@media (max-width: 996px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .work-title {
        font-size: 1rem;
    }

    .work-category {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .work-url-button {
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
    }
}

/* 新闻区域 */
.news-grid {
    display: grid;
}

.news-item {
    padding: 1.5rem 0;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(198, 175, 131, 0.6);
    transition: all 0.3s ease;
}

.news-item:last-of-type {
    border-bottom: none;
}

.news-item .news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .news-item:hover {
        background-color: rgba(198, 175, 131, 0.1);
        border-color: var(--primary-color);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 996px) {
    .news-title {
        font-size: 1rem;
    }

    .news-excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
}

/* 新闻详情页 */
.news-detail-section {
    padding: 2rem 0;
}

.news-detail-header {
    margin-bottom: 2rem;
    position: relative;
}

.back-link {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .back-link:hover {
        color: var(--primary-color);
    }
}

.news-detail-header .news-date {
    margin-bottom: 0.5rem;
}

.news-detail-header .news-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.news-thumbnail {
    width: 100%;
    margin-bottom: 2rem;
    border: 1px solid rgba(198, 175, 131, 0.2);
    overflow: hidden;
}

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

.news-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

.news-content p {
    margin-bottom: 1.5rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.news-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: border-color 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .news-content a:hover {
        border-color: transparent;
    }
}

.other-news {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(198, 175, 131, 0.2);
}

.other-news .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* 新闻归档页 */
.news-archive-section {
    padding: 2rem 0;
}

.news-archive-grid {
    display: grid;
    gap: 2rem;
}

.news-archive-item {
    display: block;
    transition: transform 0.3s ease;
    border: 1px solid rgba(198, 175, 131, 0.05);
    background-color: rgba(198, 175, 131, 0.05);
    overflow: hidden;
}

.news-archive-item .news-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .news-archive-item:hover {
        transform: translateY(-5px);
        border-color: var(--primary-color);
    }
}

.news-archive-item .news-thumbnail {
    width: 30%;
    margin-bottom: 0;
    border: none;
    border-right: 1px solid rgba(198, 175, 131, 0.2);
}

.news-archive-item .news-content {
    width: 70%;
    padding: 1.5rem;
    font-size: 1rem;
}

.news-archive-item .news-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-archive-item .news-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页导航 */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.3rem;
    border: 1px solid rgba(198, 175, 131, 0.3);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

@media (hover: hover) and (pointer: fine) {
    .pagination .page-numbers:not(.dots):hover {
        background-color: rgba(198, 175, 131, 0.2);
        color: var(--primary-color);
        border-color: var(--primary-color);
    }
}

@media (max-width: 996px) {
    .news-archive-item .news-link {
        flex-direction: column;
    }

    .news-archive-item .news-thumbnail {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(198, 175, 131, 0.2);
    }

    .news-archive-item .news-content {
        width: 100%;
        padding: 1rem;
    }

    .news-archive-item .news-title {
        font-size: 1rem;
    }
}

/* 联系表单 */
.contact-form {
    max-width: 600px;
    padding: 1.5rem;
    padding-bottom: 0;
    margin: 0 auto;
    border: 1px solid rgba(198, 175, 131, 0.5);
    border: 1px solid var(--primary-color);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    border-bottom: 1px solid var(--text-secondary);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.contact-form button {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1rem 3rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .contact-form button:hover {
        background-color: var(--primary-color);
        color: var(--background-color);
    }
}

/* 页脚 */
footer {
    position: relative;
    z-index: 10;
    background-color: rgba(0, 0, 0, 1);
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.philoi.me/wp-content/uploads/2025/05/philoi-hero-bg-1.png');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.2;
    z-index: -1;
}

.footer-content {
    max-width: 1400px;
    padding: 8rem 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    position: relative;
}

.footer-logo {
    height: 3rem;
}

/* 页脚社交媒体链接样式 */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 1.5rem 0;
    width: 100%;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a svg path {
    fill: var(--text-secondary);
}

@media (hover: hover) and (pointer: fine) {
    .social-links a:hover {
        color: var(--primary-color);
        transform: scale(1.2);
    }
}

@media (hover: hover) and (pointer: fine) {
    .social-links a:hover svg path {
        fill: var(--primary-color);
    }
}

/* 响应式调整 */
@media (max-width: 996px) {
    .social-links {
        gap: 2rem;
    }

    .social-links a {
        width: 25%;
        text-align: center;

    }
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 6rem;
}

/* 移动菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 16px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span:first-child {
    top: 0;
}

.menu-toggle span:last-child {
    bottom: 0;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    display: none;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    /* 添加书籍纹路的背景 */
    background-image:
        linear-gradient(to right, rgba(198, 175, 131, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(198, 175, 131, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    box-shadow: inset 0 0 40px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/bg_pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    z-index: -1;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    display: block;
    transition: opacity 0.3s ease, visibility 0s;
}

.menu-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.menu-content a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    letter-spacing: 0.1em;
    font-family: var(--font-display);
}

@media (hover: hover) and (pointer: fine) {
    .menu-content a:hover {
        color: var(--primary-color);
    }
}

/* 移动菜单中的社交链接 */
.mobile-social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    justify-items: center;
}

.mobile-social-links a {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0 1rem;
}

.mobile-social-links a svg path {
    fill: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 996px) {
    .nav-links {
        display: none;
    }

    .profile-content {
        flex-direction: column;
    }

    .catch-phrase {
        display: none;
    }

    .catch-phrase-sp {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 1rem 0;
    }

    .catch-phrase-sp .catch-phrase-text {
        display: flex;
        flex-direction: column;
        font-family: 'Italianno', cursive;
        font-size: 2rem;
        font-weight: 400;
        color: var(--primary-color);
        line-height: 1;
        margin-bottom: 1rem;
    }
    
    .catch-phrase-sp .catch-phrase-text-2 {
        font-size: .875rem;
    }

    .profile-image img {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .back-home-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* 动画效果 */
.parallax {
    transition: transform 0.1s ease-out;
}

.visible {
    animation: fadeIn 0.8s ease forwards;
}

/* 内容区块样式 */
.parallax-section {
    position: relative;
}

.main-container {
    position: relative;
    z-index: 10;
    background-color: rgba(0, 0, 0, 1);
}

.home.main-container {
    margin-top: 100vh;
    min-height: 100vh;
}

.main-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../image/bg_pattern.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
}


/* 角色信息样式 */
.character-info {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(198, 175, 131, 0.1);
    border: 1px solid rgba(198, 175, 131, 0.2);
}

.character-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.character-name {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.character-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.character-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.detail-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* 响应式调整 */
@media (max-width: 996px) {
    .character-details {
        grid-template-columns: 1fr;
    }

    .work-info {
        transform: translateY(0);
        position: relative;
        background: rgba(10, 10, 10, 0.9);
    }

    .work-details {
        opacity: 1;
    }
}

/* 天体轨道背景 */
.celestial-orbits {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(198, 175, 131, 0.2);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.orbit-1 {
    width: 120vh;
    height: 50vh;
    top: 50%;
    left: 50%;
    margin-left: -60vh;
    margin-top: -25vh;
    animation: orbit-rotate-1 60s linear infinite;
    transform: rotate3d(1, 0.3, 0.2, 60deg);
    border: 4px solid rgba(198, 175, 131, 0.2);
}

.orbit-2 {
    width: 140vh;
    height: 60vh;
    top: 50%;
    left: 50%;
    margin-left: -70vh;
    margin-top: -30vh;
    animation: orbit-rotate-2 90s linear infinite;
    transform: rotate3d(0.2, 1, 0.3, 45deg);
    border: 2px solid rgba(198, 175, 131, 0.2);
}

.orbit-3 {
    width: 100vh;
    height: 45vh;
    top: 50%;
    left: 50%;
    margin-left: -50vh;
    margin-top: -22.5vh;
    animation: orbit-rotate-3 75s linear infinite;
    transform: rotate3d(0.5, 0.2, 1, 30deg);
}

.planet {
    position: absolute;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(198, 175, 131, 0.8);
}

.planet-1 {
    width: 8px;
    height: 8px;
    top: 50%;
    left: 50%;
    margin-left: 40vh;
    margin-top: -5vh;
    animation: rotate-around-orbit 20s linear infinite;
}

.planet-2 {
    width: 10px;
    height: 10px;
    top: 50%;
    left: 50%;
    margin-left: -50vh;
    margin-top: 10vh;
    animation: rotate-around-orbit 30s linear infinite reverse;
}

.planet-3 {
    width: 6px;
    height: 6px;
    top: 50%;
    left: 50%;
    margin-left: 15vh;
    margin-top: -20vh;
    animation: rotate-around-orbit 15s linear infinite;
}

.star {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: star-twinkle 4s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.star-1 {
    width: 2px;
    height: 2px;
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.star-2 {
    width: 3px;
    height: 3px;
    top: 40%;
    left: 80%;
    animation-delay: 1s;
}

.star-3 {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 40%;
    animation-delay: 2s;
}

.star-4 {
    width: 1px;
    height: 1px;
    top: 20%;
    left: 60%;
    animation-delay: 1.5s;
}

.star-5 {
    width: 2px;
    height: 2px;
    top: 80%;
    left: 20%;
    animation-delay: 0.5s;
}

.star-6 {
    width: 2px;
    height: 2px;
    top: 15%;
    left: 45%;
    animation-delay: 2.2s;
}

.star-7 {
    width: 3px;
    height: 3px;
    top: 60%;
    left: 75%;
    animation-delay: 1.3s;
}

.star-8 {
    width: 1px;
    height: 1px;
    top: 35%;
    left: 10%;
    animation-delay: 0.8s;
}

.star-9 {
    width: 2px;
    height: 2px;
    top: 75%;
    left: 55%;
    animation-delay: 2.7s;
}

.star-10 {
    width: 3px;
    height: 3px;
    top: 30%;
    left: 85%;
    animation-delay: 1.9s;
}

.star-11 {
    width: 1px;
    height: 1px;
    top: 10%;
    left: 25%;
    animation-delay: 2.9s;
}

.star-12 {
    width: 2px;
    height: 2px;
    top: 85%;
    left: 35%;
    animation-delay: 0.2s;
}

@keyframes orbit-rotate-1 {
    0% {
        transform: rotate3d(1, 0.3, 0.2, 60deg) rotateZ(0deg);
    }

    100% {
        transform: rotate3d(1, 0.3, 0.2, 60deg) rotateZ(360deg);
    }
}

@keyframes orbit-rotate-2 {
    0% {
        transform: rotate3d(0.2, 1, 0.3, 45deg) rotateZ(0deg);
    }

    100% {
        transform: rotate3d(0.2, 1, 0.3, 45deg) rotateZ(-360deg);
    }
}

@keyframes orbit-rotate-3 {
    0% {
        transform: rotate3d(0.5, 0.2, 1, 30deg) rotateZ(0deg);
    }

    100% {
        transform: rotate3d(0.5, 0.2, 1, 30deg) rotateZ(360deg);
    }
}

@keyframes rotate-around-orbit {
    0% {
        transform: rotate(0deg) translateX(45vh) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translateX(45vh) rotate(-360deg);
    }
}

@keyframes star-twinkle {

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

    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    }
}

/* 符文元素 */
.rune {
    position: absolute;
    color: var(--primary-color);
    font-size: 1.5rem;
    opacity: 0;
    text-shadow: 0 0 5px rgba(198, 175, 131, 0.5);
    animation: rune-fade 15s ease-in-out infinite;
}

.rune-1 {
    top: 30%;
    left: 25%;
    animation-delay: 1s;
}

.rune-2 {
    top: 50%;
    left: 70%;
    animation-delay: 4s;
}

.rune-3 {
    top: 20%;
    left: 60%;
    animation-delay: 7s;
}

.rune-4 {
    top: 65%;
    left: 30%;
    animation-delay: 10s;
}

.rune-5 {
    top: 45%;
    left: 45%;
    animation-delay: 13s;
    font-size: 2rem;
}

.rune-6 {
    top: 15%;
    left: 75%;
    animation-delay: 16s;
    font-size: 2rem;
}

@keyframes rune-fade {

    0%,
    90%,
    100% {
        opacity: 0;
        text-shadow: 0 0 5px rgba(198, 175, 131, 0);
    }

    5%,
    20% {
        opacity: 0.8;
        text-shadow: 0 0 15px rgba(198, 175, 131, 0.8);
    }

    25%,
    85% {
        opacity: 0.2;
        text-shadow: 0 0 10px rgba(198, 175, 131, 0.3);
    }
}

/* 中央光环 */
.central-aura {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35vw;
    height: 35vw;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(198, 175, 131, 0.2) 0%,
            rgba(198, 175, 131, 0.1) 30%,
            rgba(198, 175, 131, 0.05) 60%,
            transparent 80%);
    box-shadow: 0 0 100px rgba(198, 175, 131, 0.3);
    opacity: 0.7;
    animation: aura-glow 8s ease-in-out infinite;
}

@keyframes aura-glow {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 80px rgba(198, 175, 131, 0.3);
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 0 120px rgba(198, 175, 131, 0.5);
    }
}

@media (max-width: 996px) {
    .central-aura {
        display: none;
    }
}

/* 查看更多按钮 */
.view-more-container {
    text-align: center;
    margin-top: 2rem;
}

.view-more-button,
.philoi-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {

    .view-more-button:hover,
    .philoi-button:hover {
        background-color: var(--primary-color);
        color: var(--background-color);
    }
}

/* 回到顶部按钮 */
.back-to-top {
    position: absolute;
    top: -32px;
    right: 0;
    width: 64px;
    height: 64px;
    min-width: 64px;
    aspect-ratio: 1 / 1;
    background-color: var(--primary-color);
    color: var(--background-color-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
    .back-to-top:hover {
        background-color: #d9c297;
        /* 亮一点的主色调 */
        transform: translateY(-3px);
    }
}

@media (max-width: 996px) {
    .footer-content {
        width: 85%;
        padding: 4rem 0;
    }

    .back-to-top {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 1rem;
        top: -28px;
    }

    .view-more-button,
    .philoi-button {
        width: 100%;
    }
}

/* 返回首页按钮 */
.back-home-btn {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .back-home-btn:hover {
        background-color: var(--primary-color);
        color: var(--background-color-dark);
    }
}

.back-home-btn span {
    display: inline-block;
}

/* 音乐播放器样式 */
.philoi-music-player {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    height: 64px;
    width: 64%;
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 40px;
    /* overflow: hidden; */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    /* display: flex; */
    /* flex-direction: column; */
    border: 1px solid rgba(198, 175, 131, 0.25);
    padding: 0 8px;
    backdrop-filter: blur(10px);
}

.philoi-music-player-main-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.philoi-music-player-header {
    display: flex;
    align-items: center;
    width: auto;
    flex: 0 0 auto;
    max-width: 40%;
}

.philoi-music-player-cover {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    background-color: #333;
    position: relative;
}

.philoi-music-player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philoi-music-player-info {
    flex: 1;
    overflow: hidden;
}

.philoi-music-player-title {
    color: var(--text-color);
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.philoi-music-player-artist {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.philoi-music-player-controls {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    padding: 8px 0;
}

.philoi-music-player-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 24px;
}

.philoi-music-player-progress {
    flex: 1;
    height: 4px;
    background-color: rgba(100, 100, 100, 0.3);
    position: relative;
    cursor: pointer;
    border-radius: 2px;
    margin: 0 10px;
    max-width: 160px;
}

.philoi-music-player-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.philoi-music-player-time {
    color: var(--text-secondary);
    font-size: 12px;
    width: 45px;
    text-align: center;
}

.philoi-music-player-buttons {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.philoi-music-player-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s ease;
    margin: 0 6px;
}

@media (hover: hover) and (pointer: fine) {
    .philoi-music-player-button:hover {
        color: var(--primary-color);
    }
}

.philoi-music-player-button.large {
    font-size: 20px;
}

.philoi-music-player-list-button {
    border: none;
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    width: 32px;
    height: 32px;
    font-size: 16px;
    transition: color 0.2s ease;
    border-radius: 6px;
    margin-left: 8px;
    margin-right: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .philoi-music-player-list-button:hover {
        color: var(--primary-color);
    }
}

@media (max-width: 996px) {
    .philoi-music-player {
        height: 56px;
        left: 2rem;
        transform: translateX(0);
        width: calc(100% - 4rem - 56px - 16px);
        width: calc(100% - 4rem);
    }

    .philoi-music-player-header {
        max-width: 58%;
    }

    .philoi-music-player-cover {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .philoi-music-player-time,
    .next-button,
    .prev-button,
    .philoi-music-player-progress-container {
        display: none;
    }
}

/* 侧面弹出的播放列表容器 */
.philoi-music-player-playlist-container {
    position: fixed;
    top: 0;
    right: -100%;
    min-width: 320px;
    width: 30%;
    height: 100%;
    background-color: rgba(1, 1, 1, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10006;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(198, 175, 131, 0.25);
    overflow-y: auto;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.philoi-music-player-playlist-container.visible {
    right: 0;
}

/* 播放列表标题 */
.philoi-music-player-playlist-header {
    padding: 0 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 100, 100, 0.2);
    margin-bottom: 15px;
}

.philoi-music-player-playlist-title {
    color: var(--text-color);
    font-size: 18px;
    margin: 0;
}

.philoi-music-player-playlist-close {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 18px;
    transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .philoi-music-player-playlist-close:hover {
        color: var(--primary-color);
    }
}

.philoi-music-player-playlist {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    list-style: none;
    position: relative;
    bottom: 0;
}

.philoi-music-player-playlist::-webkit-scrollbar {
    width: 6px;
}

.philoi-music-player-playlist::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.philoi-music-player-playlist::-webkit-scrollbar-thumb {
    background: rgba(100, 100, 100, 0.3);
    border-radius: 3px;
}

.philoi-music-player-playlist-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(100, 100, 100, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .philoi-music-player-playlist-item:hover {
        background-color: rgba(100, 100, 100, 0.2);
    }
}

.philoi-music-player-playlist-item.active {
    background-color: rgba(198, 175, 131, 0.2);
}

.philoi-music-player-playlist-item-cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 12px;
    position: relative;
}

.philoi-music-player-playlist-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-item-play-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .philoi-music-player-playlist-item:hover .playlist-item-play-button {
        opacity: 1;
        background-color: rgba(198, 175, 131, 0.4);
    }
}

.playlist-item-play-button i {
    font-size: 18px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.philoi-music-player-playlist-item.active .playlist-item-play-button {
    background-color: rgba(198, 175, 131, 0.6);
    opacity: 1;
}

.philoi-music-player-playlist-item-info {
    flex: 1;
    overflow: hidden;
}

.philoi-music-player-playlist-item-title {
    color: var(--text-color);
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.philoi-music-player-playlist-item-artist {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.philoi-music-player-playlist-item-duration {
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 8px;
}

/* 播放列表背景阴影 */
.playlist-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10005;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.playlist-backdrop.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}

/* 插件 */
.gtranslate_wrapper {
    display: flex;
    align-items: center;
}

.gtranslate_wrapper .gt_languages a {
    color: var(--text-color-dark);
}

.gtranslate_wrapper a.glink img {
    margin-right: 4px;
}

.philoi-form-item input {
    color: var(--white) !important;
}

.forminator-button {
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 0.8rem 2rem !important;
    font-size: 1rem !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 400 !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
}

.philoi-form-item label {
    font-size: 12px;
    margin-bottom: 8px;
}

.philoi-form-item .forminator-input {
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #ffffff90;
    background-color: transparent;
    font-size: 14px;
}

.philoi-form-item .forminator-input:focus-visible {
    border: none;
    box-shadow: none;
    outline: none;
    border-bottom: 1px solid var(--primary-color);
}

.philoi-form-item textarea {
    padding: 8px;
    font-size: 14px;
}

.philoi-form-item .forminator-required {
    color: #E04562 !important;
}

.philoi-form-item.forminator-field-textarea .forminator-field {
    position: relative;
}

.philoi-form-item.forminator-field-textarea label {
    position: absolute;
    top: 0;
}

.philoi-form-item.forminator-field-textarea .forminator-field.forminator-has_error label {
    top: 26px;
}

.philoi-form-item .forminator-description {
    font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .forminator-button:hover {
        background-color: var(--primary-color) !important;
        color: var(--text-color-dark) !important;
    }
}

@media (max-width: 996px) {
    .forminator-button {
        width: 100% !important;
    }
}

/* 作品详情页 */
.work-detail-section {
    padding: 2rem 0;
}

.work-detail-header {
    margin-bottom: 2rem;
    position: relative;
}

.work-detail-header .work-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.work-detail-header .work-categories {
    margin-bottom: 2rem;
}

.work-detail-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.work-detail-content .left {
    width: 50%;
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 128px;
}

.work-detail-image {
    margin-bottom: 1.5rem;
}

.work-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.work-detail-info {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.work-detail-description {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 1.1rem;
}

.work-detail-description p {
    margin-bottom: 1rem;
}

.work-detail-links h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.work-detail-links .work-urls {
    margin-top: 0;
}

.other-works {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(198, 175, 131, 0.2);
}

.other-works .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.other-works .works-grid {
    gap: 1.5rem;
}

@media (max-width: 996px) {
    .work-detail-content {
        flex-direction: column;
    }

    .work-detail-content .left {
        width: 100%;
        position: relative;
        top: 0;
    }

    .work-detail-image,
    .work-detail-info {
        width: 100%;
    }

    .work-detail-description {
        font-size: 1rem;
    }

    .work-detail-links h3 {
        font-size: 1.1rem;
    }
}

/* 音乐选择弹窗 */
.music-choice-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.music-choice-modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s;
}

.music-choice-content {
    padding: 32px;
    background-color: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--primary-color);
    border-radius: 1rem;
    text-align: center;
}

.music-choice-content h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.15rem;
}

.music-choice-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.music-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    aspect-ratio: 1 / 1;
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid #333;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

@media (hover: hover) and (pointer: fine) {
    .music-choice-btn:hover {
        border-color: var(--primary-color);
    }
}

.music-choice-btn.active {
    background-color: rgba(30, 30, 30, 1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(198, 175, 131, 0.3);
}

.music-choice-icon {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

.music-choice-btn[data-choice="off"] .music-choice-icon {
    color: var(--primary-color);
}

.music-choice-icon-visual {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.music-choice-btn[data-choice="off"] .music-choice-icon-visual {
    color: var(--primary-color);
}

.music-choice-remember {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.music-choice-remember label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.music-choice-remember input {
    margin-right: 8px;
}