@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap');

:root {
    --main-color: #2a1a35;
    --accent-color: #6a1b9a;
    --text-color: #e0d8eb;
    --gothic-font: 'UnifrakturMaguntia', cursive;

    --transition-height: 15vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-color);
    background: #0a0a12;
    overflow-x: hidden;
}

/* 星空背景 */
.star-field {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1; /* 确保在内容层下方 */
}

/* 移动端减少普通星数量，只显示流星 */
@media (max-width: 480px) {
    @keyframes shooting-star-mobile {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(100vh); }
    }
}

/* Banner样式 */
.banner {
    position: relative;
    padding: 0 8%;
    height: 85vh;
    min-height: 680px;
    overflow: hidden;
    background: none !important;
    z-index: 2; /* 高于星空背景 */
}

/* 动态光带 */
.banner::before {
    top: -5%; /* 减少溢出 */
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: none !important;
    mask: linear-gradient(to bottom,
    transparent 10%,  /* 扩大透明区域 */
    #000 25%,
    #000 75%,
    transparent 90%
    );
    mix-blend-mode: soft-light; /* 更柔和的混合模式 */
}

/* 两侧遮罩 */
.banner::after {
    background: none !important;
    backdrop-filter: blur(2px); /* 添加边缘柔化 */
}

@media (max-width: 768px) {
    .banner {
        background:none !important;
    }

    .banner::before {
        top: -3%;
        left: -3%;
        right: -3%;
        background: none !important;
        mask: linear-gradient(to bottom,
        transparent 15%,
        #000 30%,
        #000 70%,
        transparent 85%
        );
    }

    .banner::after {
        background: none;
    }
}

@keyframes border-glow {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5%;
    height: 100%;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

/* 文字内容区域 */
.text-content {
    position: relative;
    z-index: 3;
    padding-right: 15%;
}

.title-wrapper {
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid var(--accent-color);
}

.gothic-title {
    font-family: var(--gothic-font);
    font-size: 4.8rem;
    line-height: 1.1;
    color: var(--text-color);
    text-shadow:
            2px 2px 0 #1a1220,
            0 0 30px rgba(106,27,154,0.6);
    margin-bottom: 1.2rem;
}

/* 哥特式装饰图案CSS实现 */
.title-deco {
    display: inline-block;
    width: 40px;
    height: 50px;
    position: relative;
    vertical-align: middle;
    margin: 0 15px;
    opacity: 0.7;
}

.title-deco::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        /* 主十字架 */
            linear-gradient(to bottom,
            transparent 45%,
            var(--accent-color) 45% 55%,
            transparent 55%),
                /* 横向装饰 */
            linear-gradient(to right,
            transparent 30%,
            var(--accent-color) 30% 70%,
            transparent 70%),
                /* 外边框 */
            linear-gradient(to bottom,
            var(--accent-color) 0%,
            transparent 10% 90%,
            var(--accent-color) 100%),
                /* 尖刺装饰 */
            repeating-linear-gradient(45deg,
            transparent 0 5px,
            var(--accent-color) 5px 7px);
    transform: rotate(45deg);
}

.title-deco::after{
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background:
            radial-gradient(circle at center,
            transparent 60%,
            var(--accent-color) 60% 65%,
            transparent 65%),
            repeating-conic-gradient(
                    from 0deg,
                    var(--accent-color) 0deg 10deg,
                    transparent 10deg 20deg);
    mix-blend-mode: overlay;
}

/* 动画效果 */
@keyframes gothic-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.title-deco:hover::before {
    animation: gothic-glow 1.5s ease-in-out infinite;
}

.subtitle {
    font-family: '宋体', serif;
    font-size: 1.8rem;
    color: #9e8ca9;
    letter-spacing: 3px;
    margin-left: 1rem;
}

/* 图片剪影容器 */
.silhouette-box {
    position: relative;
    overflow: visible; /* 允许光效溢出 */
    width: 100%;
    height: 100%;
    min-height: 320px; /* 保持最小高度 */
    margin-left: 5%; /* 与左侧内容保持间距 */
    object-fit: contain;
    object-position: center bottom; /* 确保关键部位显示 */
}

/* 新增渐变遮罩 */
.silhouette-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: none !important; /* 禁用渐变遮罩层 */
    z-index: 1;
    mix-blend-mode: multiply;
}

/* 增加内容投影提升层次 */
.banner-grid {
    position: relative;
    z-index: 2;
}

/* 添加内部光晕 */
.banner-grid::after {
    content: '';
    position: absolute;
    inset: -20px;
    /*box-shadow: 0 0 60px rgba(106,27,154,0.3);*/
    pointer-events: none;
    z-index: -1;
}

.cat-image {
    position: absolute;
    width: 85%; /* 控制图片宽度 */
    height: 100%;
    object-fit: contain;
    transform: translateX(15%);
    filter:
            drop-shadow(-15px 0 20px rgba(42,26,53,0.7))
            contrast(1.05)
}

.image-glow {
    position: absolute;
    width: 100%;
    height: 110%;
    background: none !important; /* 移除光效渐变 */
    top: -5%;
    left: 0;
    right: 0;
    transform: translateX(15%); /* 配合图片偏移 */
    pointer-events: none;
}

/* 响应式优化 */
@media (max-width: 1440px) {
    .gothic-title {
        font-size: 4rem;
    }
}

@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }

    .text-content {
        padding-right: 0;
        text-align: center;
    }

    .title-wrapper {
        padding-left: 0;
        border-left: none;
    }

    .silhouette-box {
        width: 70%;
        margin: 0 auto;
        padding-bottom: 100%;
    }

    .image-glow {
        width: 120%;
        height: 120%;
        transform: translateX(5%);
        background: radial-gradient(
                ellipse at 60% 45%,
                rgba(106,27,154,0.25) 0%,
                transparent 70%
        );
    }

    .cat-image {
        width: 95%;
        transform: translateX(5%);
        filter:
                drop-shadow(-10px 0 15px rgba(42,26,53,0.5))
                contrast(1.02);
    }
}

/* 移动端优化 */
@media (max-width: 768px) {
    .banner {
        box-shadow: inset 0 0 40px rgba(106,27,154,0.15);
    }

    .banner::before {
        background-size: 40px 40px;
        opacity: 0.2;
        left: -5%;
        right: -5%;
        mask: linear-gradient(to bottom,
        transparent 5%,
        #000 20%,
        #000 80%,
        transparent 95%);
    }

    .banner::after {
        background: none !important;
    }

    .gothic-title {
        font-size: 3.2rem;
    }

    .silhouette-box {
        width: 85%;
        padding-bottom: 120%;
    }
}

/* 鼠标悬停效果 */
.cat-image {
    transition: transform 0.4s ease;
}

.silhouette-box:hover .cat-image {
    transform:
            translateX(10%)
            perspective(1000px)
            rotateY(-8deg);
}

.silhouette-box:hover .image-glow {
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}


/* card内容区域 */
.content-section {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent !important;
}

.cat-card {
    position: relative;
    background: linear-gradient(45deg, #2a1a35dd, #3a2345dd);
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gothic-title {
        font-size: 3rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--accent-color); }
    to { text-shadow: 0 0 30px var(--accent-color); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.mystic-border {
    position: relative;
    padding: 2.5rem !important;
    border: 3px solid var(--accent-color) !important;
}

/* 猫耳装饰 */
.cat-ears {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
}

.cat-ears::before,
.cat-ears::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 40px;
    background: var(--main-color);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.cat-ears::before { left: 0; }
.cat-ears::after { right: 0; }

.gothic-icon {
    font-family: var(--gothic-font);
    margin: 0 0.5rem;
}

/* 哥特网格布局 */
.gothic-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 右侧图片区域扩大 */
    gap: 5%;
    margin: 2rem 0;
}

/* 角色详情卡片 */
.profile-image {
    width: 100%;
    height: 100%; /* 改为充满容器高度 */
    object-fit: cover; /* 改为cover保持比例填满 */
    object-position: top center; /* 确保头部显示 */
    filter: drop-shadow(0 0 15px rgba(106,27,154,0.5));
}

.attribute-list {
    display: grid;
    gap: 1.5rem;
}

.status-bars {
    padding: 1rem 0;
}

.status-item {
    margin: 1rem 0;
    position: relative;
}

.status-bar {
    height: 4px;
    background: linear-gradient(90deg,
    var(--accent-color) 0%,
    #8a1b5a 100%);
    margin-top: 0.5rem;
    position: relative;
}

.status-bar::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 10px;
    height: 10px;
    background: var(--text-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.gothic-ornament {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background:
            repeating-linear-gradient(45deg,
            transparent 0 5px,
            var(--accent-color) 5px 10px);
    opacity: 0.3;
    transform: rotate(30deg);
}
/* 桌面端优化 */
@media (min-width: 1025px) {
    .silhouette-box {
        width: 90%;
        margin-left: auto; /* 右对齐 */
        padding-bottom: 0;
        height: 600px; /* 固定高度 */
    }

    .profile-image {
        object-position: 70% top; /* 重点显示角色上半身 */
    }
}

/* 移动端保持原有响应式 */
@media (max-width: 1024px) {
    .silhouette-box {
        width: 85%;
        height: auto;
        padding-bottom: 140%; /* 保持原有比例 */
        margin: 0 auto;
    }

    .profile-image {
        object-fit: contain; /* 移动端恢复contain */
    }
}

@media (max-width: 768px) {
    .profile-image {
        height: 240px;
    }

    .status-bar {
        height: 3px;
    }
}

/* 属性项样式 */
.attribute-item {
    position: relative;
    padding: 1.5rem;
    border: 1px solid #3a2345;
}

.magic-icon {
    width: 40px;
    height: 40px;
    background:
            radial-gradient(var(--accent-color) 30%,
            transparent 30%),
            repeating-linear-gradient(45deg,
            transparent 0 10px,
            var(--accent-color) 10px 20px);
}

/* 魔法阵动画 */
.magic-circle {
    transform-origin: 50% 50%; /* 居中旋转 */
    position: absolute;
    overflow: hidden; /* 防止魔法阵溢出 */
    clip-path: inset(0 0 0 0); /* 强制裁剪 */
    width: 120px;
    height: 120px;
    right: -30px;
    bottom: -30px;
    background:
            radial-gradient(circle,
            transparent 60%,
            var(--accent-color) 60% 65%,
            transparent 65%),
            repeating-conic-gradient(
                    from 0deg,
                    var(--accent-color) 0deg 10deg,
                    transparent 10deg 20deg);
    opacity: 0.3;
    animation: rotate 20s linear infinite;
    z-index: 0;
    /* 添加隔离属性 */
    isolation: isolate;
}

/* 语录样式 */
.quote-box {
    position: relative;
    padding: 2rem;
    background: #1a1220;
    border-left: 4px solid var(--accent-color);
}

.quote-mark {
    position: absolute;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    top: -10px;
    left: 10px;
}

.moon-phase {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%,
    #fff 10%,
    transparent 20%,
    #6a1b9a 60%
    );
    opacity: 0.5;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* 时间轴样式 */
/* 时间轴容器 */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

/* 时间轴线 */
.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* 单个时间轴项 */
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 2rem;
    transition: transform 0.3s ease;
}

.timeline-item.hovered {
    transform: translateX(15px);
}

.timeline-item.hovered .timeline-marker {
    transform: scale(1.2);
}

/* 时间轴标记点 */
.timeline-marker {
    position: absolute;
    left: -6px;
    top: 4px;
    width: 20px;
    height: 20px;
    background: var(--main-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(106,27,154,0.5);
}

.timeline-detail {
    display: block;
    font-size: 0.9em;
    color: #9e8ca9;
    margin-top: 0.5rem;
    font-style: italic;
}

.timeline-tag {
    position: absolute;
    right: -10px;
    top: -10px;
    background: var(--accent-color);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-size: 0.8em;
    font-family:
            'Courier New', /* 等宽字体增加辨识度 */
            'UnifrakturMaguntia',
            monospace;
    font-weight: 600;
    transform: rotate(5deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.timeline-item:nth-child(even) .timeline-tag {
    background: #8a1b5a;
    transform: rotate(-5deg);
}


/* 时间轴内容区域 */
.timeline-content {
    position: relative;
    overflow: visible; /* 显示溢出标签 */
    background: rgba(42,26,53,0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #3a2345;
    backdrop-filter: blur(5px);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #3a2345;
}

/* 日期样式 */
.timeline-date {
    font-family: var(--gothic-font);
    color: var(--accent-color);
    font-size: 1.2rem;
    font-feature-settings: "kern" 1; /* 启用字距调整 */
    margin-bottom: 0.5rem;
}

/* 内容文本 */
.timeline-text {
    line-height: 1.6;
    color: #e0d8eb;
    font-family:
            'Arial', /* 优先英文字体 */
            'UnifrakturMaguntia', /* 保持中文哥特字体 */
            sans-serif;
    font-size: 0.95em; /* 略微放大 */
    letter-spacing: 0.5px; /* 增加字母间距 */
}

/* 响应式优化 */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 1rem;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        width: 16px;
        height: 16px;
        left: -4px;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-text {
        font-size: 0.85em;
        line-height: 1.5; /* 增加行高 */
    }

    .timeline-tag {
        right: -5px;
        font-size: 0.7em;
        font-family:
                'Arial',
                'UnifrakturMaguntia',
                sans-serif;
    }

    .timeline-detail {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .gothic-title {
        font-size: 2.4rem;
        word-break: keep-all;
    }
    .subtitle {
        font-size: 1.4rem;
    }
}

/* 新增样式 */
/* 新增按钮容器样式 */
.timeline-button-container {
    position: relative;
    margin-top: 2rem;
    z-index: 2;
}

.timeline-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    margin-bottom: 1rem; /* 增加底部间距 */
}

.timeline-track {
    position: relative;
    padding-left: 2rem;
}
.timeline-track::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(
            to bottom,
            transparent 10%,
            currentColor 30%,
            currentColor 70%,
            transparent 90%
    );
    opacity: 0.3;
}
.timeline-track::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    height: 100%;
    width: 3px;
    border-radius: 2px;
}

.true-line::before { background: var(--accent-color); }
.if-line::before { background: #8a1b5a; }

.timeline-label {
    font-family: var(--gothic-font);
    position: sticky;
    top: 20px;
    background: rgba(42,26,53,0.9);
    padding: 0.5rem 1rem;
    border: 2px solid;
    z-index: 2;
    margin-bottom: 1rem;
}

.true-line .timeline-label { border-color: var(--accent-color); }
.if-line .timeline-label { border-color: #8a1b5a; }



/* 响应式适配 */
@media (max-width: 768px) {
    .timeline-dual {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .timeline-track {
        padding-left: 1.5rem;
    }

    .timeline-button-container {
        margin-top: 1.5rem;
    }
}

/* 在卡片底部交互按钮 */
.occult-button {
    position: relative;
    padding: 1rem 2rem;
    background: #3a2345;
    border: 2px solid #6a1b9a;
    cursor: pointer;
    transition: all 0.3s;

    margin: 0 auto; /* 居中显示 */
    width: max-content;
    text-align: center;
    z-index: 1;
}

.blood-drop {
    width: 8px;
    height: 8px;
    background: #8a1b5a;
    position: absolute;
    bottom: -4px;
    left: 50%;
    opacity: 0;
    transition: all 0.5s;
    color: var(--text-color);
}

.occult-button:hover .blood-drop {
    animation: blood-drip 1.5s ease-out;
}

@keyframes blood-drip {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(50px); }
}