@charset "utf-8";
/* ========== 基础重置与全局样式 ========== */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

:root {
--sky-top: #0a0f1e;
--sky-mid: #1e3a5f;
--sky-bottom: #3b82f6;
--accent-gold: #f59e0b;
--accent-warm: #fb923c;
--card-bg: rgba(15, 23, 42, 0.85);
--card-border: rgba(245, 158, 11, 0.3);
--text-primary: #f1f5f9;
--text-secondary: #94a3b8;
--text-muted: #64748b;
--tag-type-bg: rgba(59, 130, 246, 0.2);
--tag-element-bg: rgba(168, 85, 247, 0.2);
--tag-status-alive: rgba(74, 222, 128, 0.2);
--tag-status-dead: rgba(248, 113, 113, 0.2);
--section-bg: rgba(15, 23, 42, 0.6);
--radius: 16px;
--radius-sm: 10px;
--shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
--transition: all 0.3s ease;
/* 新增：区域色彩编码 */
--accent-gold: #f59e0b;
--accent-blue: #60a5fa;
--accent-green: #4ade80;
--accent-purple: #c084fc;
--accent-rose: #fb7185;
--accent-cyan: #22d3ee;
--accent-orange: #fb923c;
}

html {
scroll-behavior: smooth;
}

body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-bottom) 100%);
color: var(--text-primary);
min-height: 100vh;
line-height: 1.6;
overflow-x: hidden;
/* 微妙的云鳞纹理背景 */
background-image:
    radial-gradient(ellipse 80px 40px at 10% 20%, rgba(255,255,255,0.015) 0%, transparent 70%),
    radial-gradient(ellipse 60px 30px at 30% 60%, rgba(255,255,255,0.01) 0%, transparent 70%),
    radial-gradient(ellipse 100px 50px at 70% 30%, rgba(255,255,255,0.012) 0%, transparent 70%),
    radial-gradient(ellipse 50px 25px at 85% 70%, rgba(255,255,255,0.01) 0%, transparent 70%),
    radial-gradient(ellipse 70px 35px at 50% 85%, rgba(255,255,255,0.008) 0%, transparent 70%);
background-attachment: fixed;
}

/* 随机背景图遮罩层 */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 30, 0.5);
    z-index: 0;
    pointer-events: none;
}

/* ========== 浮动云朵背景 ========== */
.clouds {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
overflow: hidden;
}

.cloud {
position: absolute;
background: rgba(255, 255, 255, 0.03);
border-radius: 50%;
filter: blur(40px);
}

.cloud:nth-child(1) {
width: 400px;
height: 150px;
top: 10%;
left: -5%;
animation: float-cloud 60s linear infinite;
}

.cloud:nth-child(2) {
width: 300px;
height: 120px;
top: 30%;
left: 20%;
animation: float-cloud 45s linear infinite reverse;
}

.cloud:nth-child(3) {
width: 500px;
height: 180px;
top: 50%;
left: 60%;
animation: float-cloud 55s linear infinite;
}

.cloud:nth-child(4) {
width: 350px;
height: 130px;
top: 70%;
left: 40%;
animation: float-cloud 50s linear infinite reverse;
}

/* 新增：装饰性云朵形状 */
.cloud-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
}

.cloud-shape::before,
.cloud-shape::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
}

.cloud-shape::before {
    width: 120px;
    height: 50px;
    top: 20px;
    left: 0;
}

.cloud-shape::after {
    width: 70px;
    height: 70px;
    top: -10px;
    left: 25px;
}

.cloud-shape-extra::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    top: -5px;
    left: 65px;
    background: rgba(255, 255, 255, 1);
    border-radius: 50%;
}

@keyframes float-cloud {
0% { transform: translateX(-100%); }
100% { transform: translateX(100vw); }
}

/* 新增：缓慢飘浮的装饰云朵 */
@keyframes float-cloud-gentle {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -10px); }
    50% { transform: translate(30px, 5px); }
    75% { transform: translate(10px, 15px); }
}

/* ========== 星星背景 ========== */
.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}

.star {
position: absolute;
width: 2px;
height: 2px;
background: #fff;
border-radius: 50%;
animation: twinkle 3s ease-in-out infinite;
}

/* 新增：十字星形状 */
.star-cross {
    position: absolute;
    width: 4px;
    height: 4px;
    background: transparent;
    pointer-events: none;
    animation: twinkle-cross 4s ease-in-out infinite;
}

.star-cross::before,
.star-cross::after {
    content: '';
    position: absolute;
    background: rgba(245, 158, 11, 0.6);
    border-radius: 2px;
}

.star-cross::before {
    width: 2px;
    height: 10px;
    top: -3px;
    left: 1px;
}

.star-cross::after {
    width: 10px;
    height: 2px;
    top: 1px;
    left: -3px;
}

@keyframes twinkle {
0%, 100% { opacity: 0.2; }
50% { opacity: 1; }
}

@keyframes twinkle-cross {
    0%, 100% { opacity: 0.1; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.2) rotate(45deg); }
}

/* ========== 导航栏 - 增强玻璃拟态 ========== */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: rgba(10, 15, 30, 0.65);
backdrop-filter: blur(24px) saturate(180%);
-webkit-backdrop-filter: blur(24px) saturate(180%);
border-bottom: 1px solid rgba(245, 158, 11, 0.15);
padding: 0 24px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}

.navbar.scrolled {
background: rgba(10, 15, 30, 0.85);
backdrop-filter: blur(30px) saturate(200%);
-webkit-backdrop-filter: blur(30px) saturate(200%);
box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(245, 158, 11, 0.1) inset;
border-bottom-color: rgba(245, 158, 11, 0.25);
}

.nav-inner {
max-width: 1400px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}

.nav-logo {
font-size: 1.4rem;
font-weight: 700;
color: var(--accent-gold);
text-decoration: none;
white-space: nowrap;
text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
transition: all 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.nav-links {
display: flex;
gap: 4px;
flex-wrap: wrap;
justify-content: flex-end;
}

.nav-link {
color: var(--text-secondary);
text-decoration: none;
padding: 6px 14px;
border-radius: 8px;
font-size: 0.9rem;
transition: all 0.3s ease;
white-space: nowrap;
position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
color: var(--accent-gold);
background: rgba(245, 158, 11, 0.08);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
color: var(--accent-gold);
background: rgba(245, 158, 11, 0.12);
font-weight: 600;
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-toggle {
display: none;
background: none;
border: none;
color: var(--text-primary);
font-size: 1.5rem;
cursor: pointer;
}

/* ========== 主内容容器 ========== */
.main-content {
position: relative;
z-index: 1;
max-width: 1400px;
margin: 0 auto;
padding: 0 24px;
}

/* ========== 英雄区域 - 增强版 ========== */
.hero {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 120px 24px 80px;
position: relative;
overflow: hidden;
}

/* Hero 戏剧性渐变背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 30%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 60%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Hero 底部装饰光晕 */
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-title {
font-size: clamp(3rem, 8vw, 6rem);
font-weight: 900;
background: linear-gradient(135deg, #fbbf24, var(--accent-gold), var(--accent-warm), #fbbf24);
background-size: 200% 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 16px;
letter-spacing: 0.1em;
animation: gradient-shift 6s ease-in-out infinite;
text-shadow: none;
filter: drop-shadow(0 0 30px rgba(245, 158, 11, 0.2));
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
font-size: clamp(1.1rem, 3vw, 1.6rem);
color: var(--text-secondary);
margin-bottom: 12px;
font-weight: 300;
letter-spacing: 0.15em;
}

.hero-desc {
font-size: 1rem;
color: var(--text-muted);
max-width: 600px;
margin-bottom: 40px;
}

.hero-stats {
display: flex;
gap: 40px;
flex-wrap: wrap;
justify-content: center;
margin-bottom: 40px;
}

.hero-stat {
text-align: center;
padding: 12px 16px;
border-radius: var(--radius-sm);
transition: all 0.3s ease;
}

.hero-stat:hover {
    background: rgba(245, 158, 11, 0.05);
    transform: translateY(-2px);
}

.hero-stat-num {
font-size: 2.5rem;
font-weight: 800;
color: var(--accent-gold);
display: block;
text-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.hero-stat-label {
font-size: 0.85rem;
color: var(--text-muted);
}

.hero-cta {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 14px 36px;
background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
color: var(--sky-top);
text-decoration: none;
border-radius: 50px;
font-weight: 700;
font-size: 1.1rem;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
position: relative;
overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta:hover::before {
    left: 100%;
}

.hero-cta:hover {
transform: translateY(-3px);
box-shadow: 0 8px 40px rgba(245, 158, 11, 0.5);
}

/* 新增：Hero 浮动粒子容器 */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* 新增：浮动粒子 */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float linear infinite;
}

.hero-particle.star-shape {
    border-radius: 0;
    background: transparent !important;
}

.hero-particle.star-shape::before,
.hero-particle.star-shape::after {
    content: '';
    position: absolute;
    background: var(--accent-gold);
    border-radius: 1px;
}

.hero-particle.star-shape::before {
    width: 1px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.hero-particle.star-shape::after {
    width: 100%;
    height: 1px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* 新增：Hero 装饰性兽爪印 */
.hero-beast-decor {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
    z-index: 0;
}

.hero-beast-decor.left-top {
    top: 15%;
    left: 5%;
    transform: rotate(-15deg);
}

.hero-beast-decor.right-bottom {
    bottom: 15%;
    right: 5%;
    transform: rotate(165deg);
}

/* CSS爪印形状 */
.beast-paw {
    position: relative;
    width: 60px;
    height: 70px;
}

.beast-paw .paw-pad {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 35px;
    background: currentColor;
    border-radius: 50% 50% 45% 45%;
}

.beast-paw .toe {
    position: absolute;
    width: 14px;
    height: 16px;
    background: currentColor;
    border-radius: 50%;
}

.beast-paw .toe:nth-child(2) { top: 2px; left: 2px; }
.beast-paw .toe:nth-child(3) { top: -4px; left: 16px; }
.beast-paw .toe:nth-child(4) { top: -4px; left: 30px; }
.beast-paw .toe:nth-child(5) { top: 2px; left: 44px; }

/* ========== 爪印装饰 ========== */
.paw-prints {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
pointer-events: none;
overflow: hidden;
}

.paw {
position: absolute;
font-size: 1.2rem;
color: rgba(245, 158, 11, 0.08);
animation: float-paw 20s ease-in-out infinite;
}

@keyframes float-paw {
0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
50% { transform: translateY(-30px) rotate(15deg); opacity: 0.8; }
}

/* ========== 主题分隔线 ========== */
.section-divider {
width: 60px;
height: 3px;
background: linear-gradient(90deg, var(--accent-gold), var(--accent-warm));
margin: 16px auto 0;
border-radius: 2px;
position: relative;
}

/* 新增：装饰性分隔线 */
.beast-divider {
    width: 100%;
    height: 40px;
    position: relative;
    margin: 20px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beast-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.1) 15%,
        rgba(245, 158, 11, 0.3) 50%,
        rgba(245, 158, 11, 0.1) 85%,
        transparent 100%
    );
}

.beast-divider-icon {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky-top);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

/* 波浪分隔线 */
.wave-divider {
    width: 100%;
    height: 30px;
    position: relative;
    margin: 10px 0;
    overflow: hidden;
}

.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* 云纹分隔线 */
.cloud-divider {
    width: 100%;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0.3;
}

.cloud-divider-dot {
    width: 4px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.cloud-divider-dot:nth-child(2) {
    width: 6px;
    height: 6px;
    opacity: 0.7;
}

.cloud-divider-dot:nth-child(3) {
    width: 8px;
    height: 8px;
    opacity: 1;
}

.cloud-divider-dot:nth-child(4) {
    width: 6px;
    height: 6px;
    opacity: 0.7;
}

.cloud-divider-dot:nth-child(5) {
    width: 4px;
    height: 4px;
}

/* ========== 区域通用样式 ========== */
.section {
padding: 80px 0;
position: relative;
}

/* 新增：区域色彩编码 */
.section[data-accent="gold"] {
    --section-accent: #f59e0b;
}

.section[data-accent="blue"] {
    --section-accent: #60a5fa;
}

.section[data-accent="green"] {
    --section-accent: #4ade80;
}

.section[data-accent="purple"] {
    --section-accent: #c084fc;
}

.section[data-accent="rose"] {
    --section-accent: #fb7185;
}

.section[data-accent="cyan"] {
    --section-accent: #22d3ee;
}

.section-header {
text-align: center;
margin-bottom: 48px;
}

.section-title {
font-size: clamp(1.8rem, 4vw, 2.5rem);
font-weight: 800;
color: var(--accent-gold);
margin-bottom: 12px;
position: relative;
display: inline-block;
}

/* 标题装饰 */
.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3));
}

.section-title::before {
    right: calc(100% + 16px);
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.3));
}

.section-title::after {
    left: calc(100% + 16px);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.3), transparent);
}

.section-subtitle {
font-size: 1rem;
color: var(--text-muted);
}

/* ========== 搜索和筛选栏 ========== */
.filter-bar {
display: flex;
gap: 12px;
margin-bottom: 32px;
flex-wrap: wrap;
align-items: center;
}

.search-box {
flex: 1;
min-width: 200px;
padding: 12px 20px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 0.95rem;
outline: none;
transition: var(--transition);
}

.search-box:focus {
border-color: var(--accent-gold);
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1), 0 0 20px rgba(245, 158, 11, 0.05);
}

.search-box::placeholder {
color: var(--text-muted);
}

.filter-btn {
padding: 10px 20px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius-sm);
color: var(--text-secondary);
font-size: 0.9rem;
cursor: pointer;
transition: all 0.3s ease;
white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
background: rgba(245, 158, 11, 0.15);
border-color: var(--accent-gold);
color: var(--accent-gold);
box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.sort-select {
padding: 10px 16px;
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius-sm);
color: var(--text-primary);
font-size: 0.9rem;
outline: none;
cursor: pointer;
transition: var(--transition);
}

.sort-select:focus {
    border-color: var(--accent-gold);
}

.sort-select option {
background: var(--sky-top);
color: var(--text-primary);
}

/* ========== 角色卡片网格 - 增强悬停效果 ========== */
.character-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
gap: 24px;
}

.character-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
overflow: hidden;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
backdrop-filter: blur(10px);
position: relative;
}

/* 新增：卡片顶部装饰光条 */
.character-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.character-card:hover {
transform: translateY(-6px) scale(1.01);
box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(245, 158, 11, 0.08);
border-color: rgba(245, 158, 11, 0.5);
}

.character-card:hover::before {
    opacity: 1;
}

.card-image-wrapper {
width: 100%;
height: 220px;
overflow: hidden;
position: relative;
background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
}

/* 新增：图片悬停光晕 */
.card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.character-card:hover .card-image-wrapper::after {
    opacity: 1;
}

.card-image {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 0;
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.character-card:hover .card-image {
transform: scale(1.08);
}

.card-image-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
}

.card-image-placeholder span {
font-size: 4rem;
font-weight: 800;
color: rgba(245, 158, 11, 0.4);
}

.card-info {
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
}

.card-name {
font-size: 1.3rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 10px;
transition: color 0.3s ease;
}

.character-card:hover .card-name {
    color: var(--accent-gold);
}

.card-tags {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 14px;
}

.tag {
padding: 3px 10px;
border-radius: 20px;
font-size: 0.78rem;
font-weight: 500;
transition: all 0.3s ease;
}

.tag-type {
background: var(--tag-type-bg);
color: #60a5fa;
}

.tag-element {
background: var(--tag-element-bg);
color: #c084fc;
}

.tag-status {
background: var(--tag-status-alive);
}

.card-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
margin-bottom: 14px;
padding: 10px;
background: rgba(0, 0, 0, 0.2);
border-radius: var(--radius-sm);
}

.stat {
text-align: center;
}

.stat-label {
display: block;
font-size: 0.7rem;
color: var(--text-muted);
margin-bottom: 2px;
}

.stat-value {
display: block;
font-size: 0.82rem;
color: var(--accent-gold);
font-weight: 600;
}

.card-desc {
font-size: 0.88rem;
color: var(--text-secondary);
line-height: 1.6;
margin-bottom: 12px;
flex: 1;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

.card-location {
font-size: 0.82rem;
color: var(--text-muted);
padding-top: 10px;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.location-icon {
color: var(--accent-gold);
margin-right: 4px;
}

/* ========== 篇章剧情 - 增强悬停效果 ========== */
.arc-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 24px;
}

.arc-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 28px;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}

/* 新增：篇章卡片装饰角标 */
.arc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-warm));
    transition: height 0.4s ease;
    border-radius: 0 0 4px 0;
}

.arc-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.arc-card:hover {
transform: translateY(-6px) scale(1.01);
box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(245, 158, 11, 0.08);
border-color: rgba(245, 158, 11, 0.5);
}

.arc-card:hover::before {
    height: 100%;
}

.arc-card:hover::after {
    opacity: 1;
}

.arc-card-title {
font-size: 1.4rem;
font-weight: 700;
color: var(--accent-gold);
margin-bottom: 8px;
transition: all 0.3s ease;
}

.arc-card:hover .arc-card-title {
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.arc-card-range {
font-size: 0.9rem;
color: var(--accent-warm);
margin-bottom: 16px;
font-weight: 500;
}

.arc-card-desc {
font-size: 0.92rem;
color: var(--text-secondary);
line-height: 1.8;
}

/* ========== 话数列表 ========== */
.episode-filter-bar {
display: flex;
gap: 12px;
margin-bottom: 24px;
flex-wrap: wrap;
}

.episode-arc {
margin-bottom: 32px;
}

.arc-title {
font-size: 1.3rem;
font-weight: 700;
color: var(--accent-gold);
margin-bottom: 16px;
padding-bottom: 8px;
border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.episode-list-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 8px;
}

.episode-entry {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
background: rgba(15, 23, 42, 0.5);
border-radius: var(--radius-sm);
border: 1px solid rgba(255, 255, 255, 0.03);
transition: all 0.3s ease;
}

.episode-entry:hover {
background: rgba(245, 158, 11, 0.08);
border-color: rgba(245, 158, 11, 0.2);
transform: translateX(4px);
}

.ep-entry-num {
font-size: 0.85rem;
font-weight: 700;
color: var(--accent-gold);
min-width: 40px;
font-variant-numeric: tabular-nums;
}

.ep-entry-title {
font-size: 0.9rem;
color: var(--text-secondary);
}

.episode-note {
margin-top: 32px;
padding: 20px;
background: rgba(245, 158, 11, 0.05);
border: 1px solid rgba(245, 158, 11, 0.15);
border-radius: var(--radius-sm);
}

.episode-note p {
font-size: 0.9rem;
color: var(--text-secondary);
margin-bottom: 8px;
}

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

.episode-note a {
color: var(--accent-gold);
text-decoration: none;
}

.episode-note a:hover {
text-decoration: underline;
}

/* ========== 动画信息 ========== */
.anime-season {
margin-bottom: 40px;
}

.season-title {
font-size: 1.3rem;
font-weight: 700;
color: var(--accent-gold);
margin-bottom: 6px;
}

.season-period {
font-size: 0.9rem;
color: var(--text-muted);
font-weight: 400;
}

.episode-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 10px;
margin-top: 16px;
}

.episode-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: var(--card-bg);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: var(--radius-sm);
transition: all 0.3s ease;
}

.episode-item:hover {
border-color: var(--card-border);
background: rgba(15, 23, 42, 0.95);
transform: translateX(4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ep-num {
font-size: 0.85rem;
font-weight: 700;
color: var(--accent-gold);
min-width: 50px;
white-space: nowrap;
}

.ep-title {
flex: 1;
font-size: 0.9rem;
color: var(--text-primary);
}

.ep-date {
font-size: 0.8rem;
color: var(--text-muted);
white-space: nowrap;
}

/* ========== 世界观 ========== */
.world-content {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 40px;
backdrop-filter: blur(10px);
}

.world-content h3 {
font-size: 1.3rem;
color: var(--accent-gold);
margin-bottom: 16px;
margin-top: 28px;
}

.world-content h3:first-child {
margin-top: 0;
}

.world-content p {
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 12px;
}

.world-content ul {
padding-left: 20px;
margin-bottom: 16px;
}

.world-content li {
font-size: 0.92rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 4px;
}

/* ========== 精彩图集 - 增强悬停效果 ========== */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 16px;
}

.gallery-item {
aspect-ratio: 4/3;
border-radius: var(--radius);
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
cursor: pointer;
position: relative;
}

.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
transform: translateY(-6px) scale(1.02);
box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(245, 158, 11, 0.1);
border-color: rgba(245, 158, 11, 0.4);
}

.gallery-item:hover img {
transform: scale(1.1);
}

.gallery-item .gallery-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 12px;
background: linear-gradient(transparent, rgba(0,0,0,0.8));
color: var(--text-primary);
font-size: 0.85rem;
transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    padding-bottom: 16px;
}

/* ========== 关于 ========== */
.about-content {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: var(--radius);
padding: 40px;
backdrop-filter: blur(10px);
}

.about-content h3 {
font-size: 1.2rem;
color: var(--accent-gold);
margin-bottom: 12px;
margin-top: 24px;
}

.about-content h3:first-child {
margin-top: 0;
}

.about-content p {
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 12px;
}

.about-content a {
color: var(--accent-gold);
text-decoration: none;
}

.about-content a:hover {
text-decoration: underline;
}

/* ========== 模态框 ========== */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 2000;
align-items: center;
justify-content: center;
padding: 24px;
backdrop-filter: blur(4px);
}

.modal-overlay.active {
display: flex;
}

.modal {
background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(10, 15, 30, 0.98));
border: 1px solid var(--card-border);
border-radius: var(--radius);
max-width: 600px;
width: 100%;
max-height: 80vh;
overflow-y: auto;
padding: 32px;
position: relative;
box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(245, 158, 11, 0.05);
}

.modal-close {
position: absolute;
top: 16px;
right: 16px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
width: 36px;
height: 36px;
border-radius: 50%;
color: var(--text-muted);
font-size: 1.2rem;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}

.modal-close:hover {
color: var(--text-primary);
background: rgba(245, 158, 11, 0.15);
border-color: rgba(245, 158, 11, 0.3);
}

.modal h2 {
font-size: 1.5rem;
color: var(--accent-gold);
margin-bottom: 16px;
}

.modal p {
font-size: 0.95rem;
color: var(--text-secondary);
line-height: 1.8;
margin-bottom: 12px;
}

/* ========== 页脚 - 增强版 ========== */
.footer {
text-align: center;
padding: 60px 24px 40px;
border-top: none;
margin-top: 0;
position: relative;
overflow: hidden;
background: linear-gradient(180deg,
    transparent 0%,
    rgba(10, 15, 30, 0.6) 20%,
    rgba(10, 15, 30, 0.9) 100%
);
}

/* 页脚顶部装饰波浪 */
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(245, 158, 11, 0.2) 20%,
        rgba(245, 158, 11, 0.5) 50%,
        rgba(245, 158, 11, 0.2) 80%,
        transparent 100%
    );
}

/* 页脚底部光晕 */
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.footer-brand-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    padding: 4px 0;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-copyright a {
    color: var(--accent-gold);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* 页脚装饰爪印 */
.footer-paw-trail {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    opacity: 0.1;
}

.footer-paw-icon {
    font-size: 0.9rem;
    color: var(--accent-gold);
    transform: rotate(-20deg);
}

.footer-paw-icon:nth-child(even) {
    transform: rotate(20deg);
}

/* ========== 滚动动画 - 增强版 ========== */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
opacity: 1;
transform: translateY(0);
}

/* 新增：从左滑入 */
.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 新增：从右滑入 */
.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 新增：缩放进入 */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* 新增：交错动画延迟 */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ========== 返回顶部 - 增强版 ========== */
.back-to-top {
position: fixed;
bottom: 30px;
right: 30px;
width: 48px;
height: 48px;
background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
color: var(--sky-top);
border: none;
border-radius: 50%;
font-size: 1.2rem;
cursor: pointer;
z-index: 999;
opacity: 0;
transform: translateY(20px);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

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

.back-to-top:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* ========== 无结果提示 ========== */
.no-results {
text-align: center;
padding: 60px 24px;
color: var(--text-muted);
display: none;
}

.no-results.show {
display: block;
}

.no-results-icon {
font-size: 3rem;
margin-bottom: 16px;
opacity: 0.5;
}

/* ========== 响应式设计 - 增强 ========== */
@media (max-width: 1024px) {
    .section-title::before,
    .section-title::after {
        display: none;
    }
}

@media (max-width: 768px) {
.nav-links {
display: none;
position: absolute;
top: 64px;
left: 0;
right: 0;
background: rgba(10, 15, 30, 0.95);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
flex-direction: column;
padding: 16px;
border-bottom: 1px solid rgba(245, 158, 11, 0.2);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-links.open {
display: flex;
}

.nav-toggle {
display: block;
}

.character-grid {
grid-template-columns: 1fr;
}

.hero-stats {
gap: 24px;
}

.filter-bar {
flex-direction: column;
}

.search-box {
width: 100%;
}

.card-stats {
grid-template-columns: repeat(3, 1fr);
}

.episode-grid {
grid-template-columns: 1fr;
}

.episode-list-grid {
grid-template-columns: 1fr;
}

.world-content, .about-content {
padding: 24px;
}

.gallery-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* 移动端hero粒子减少 */
.hero-particle {
    display: none;
}

.hero-particle:nth-child(-n+8) {
    display: block;
}

/* 移动端footer调整 */
.footer-links {
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.footer {
    padding: 40px 20px 30px;
}

/* 移动端卡片悬停效果简化 */
.character-card:hover,
.arc-card:hover,
.gallery-item:hover {
    transform: none;
    box-shadow: var(--shadow);
}

.species-grid {
    grid-template-columns: 1fr;
}
}

@media (max-width: 480px) {
.hero-title {
font-size: 2.5rem;
letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.hero-stats {
flex-direction: column;
gap: 16px;
}

.section {
padding: 48px 0;
}

.hero-stat-num {
    font-size: 2rem;
}

/* 更紧凑的间距 */
.main-content {
    padding: 0 16px;
}

.character-card,
.arc-card {
    border-radius: 12px;
}

.card-image-wrapper {
    height: 180px;
}

.nav-logo {
    font-size: 1.2rem;
}
}

/* ========== EOTrans 折叠章节 ========== */
.report-chapter, .cp-chapter { margin-bottom: 16px; }
.chapter-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.3s ease; }
.chapter-header:hover { border-color: var(--accent-gold); background: rgba(245, 158, 11, 0.08); box-shadow: 0 0 15px rgba(245, 158, 11, 0.05); }
.chapter-number { font-size: 0.85rem; font-weight: 700; color: var(--accent-warm); min-width: 32px; }
.chapter-title { flex: 1; font-size: 1.05rem; color: var(--text-primary); font-weight: 600; }
.chapter-toggle { color: var(--text-muted); transition: transform 0.3s ease; font-size: 0.8rem; }
.chapter-toggle.collapsed { transform: rotate(-90deg); }
.chapter-body { overflow: hidden; transition: max-height 0.4s ease; max-height: none; }
.chapter-body.collapsed { max-height: 0 !important; }
.report-preface, .cp-preface { margin-bottom: 24px; }
.report-preface p, .cp-preface p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.report-preface table, .cp-preface table { margin: 12px 0; }
.table-wrap { overflow-x: auto; margin: 12px 0; border-radius: var(--radius-sm); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.table-wrap th, .table-wrap td { padding: 10px 14px; border: 1px solid rgba(255,255,255,0.08); text-align: left; }
.table-wrap th { background: rgba(245, 158, 11, 0.1); color: var(--accent-gold); font-weight: 600; }
.table-wrap td { color: var(--text-secondary); }
.table-wrap tr:nth-child(even) td { background: rgba(0,0,0,0.15); }
.table-wrap tr.odd td { background: rgba(0,0,0,0.1); }
.table-wrap tr.even td { background: rgba(0,0,0,0.2); }
.tag-上古篇 { background: rgba(239, 68, 68, 0.2); color: #fca5a5; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; }
.tag-中古篇 { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; }
.tag-近古篇 { background: rgba(59, 130, 246, 0.2); color: #93c5fd; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; }
.tag-现代篇 { background: rgba(74, 222, 128, 0.2); color: #86efac; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; }
.tag-困兽岛 { background: rgba(251, 146, 60, 0.2); color: #fdba74; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; }
.tag-心锁事件 { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; }
.tag-日常 { background: rgba(34, 211, 238, 0.2); color: #a5f3fc; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; }
.stars-1 { color: #fbbf24; }
.stars-2 { color: #fbbf24; }
.stars-3 { color: #fbbf24; }
.stars-4 { color: #fbbf24; }
.stars-5 { color: #fbbf24; }
.styled-blockquote { border-left: 3px solid var(--accent-gold); padding: 12px 20px; margin: 12px 0; background: rgba(245, 158, 11, 0.05); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.chapter-body p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 8px; }
.chapter-body ul { padding-left: 20px; margin-bottom: 8px; }
.chapter-body li { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 4px; }
.chapter-body strong { color: var(--text-primary); }

/* ========== 物种图鉴 - 增强悬停效果 ========== */
.species-category {
    margin-bottom: 48px;
}

.species-category:last-child {
    margin-bottom: 0;
}

.species-category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.species-category-icon {
    font-size: 1.4rem;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.species-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.species-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.species-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.5);
}

.species-card:hover::before {
    opacity: 1;
}

.species-card-danger {
    border-color: rgba(248, 113, 113, 0.3);
}

.species-card-danger::before {
    background: linear-gradient(90deg, transparent, #f87171, transparent);
}

.species-card-danger:hover {
    border-color: rgba(248, 113, 113, 0.6);
    box-shadow: 0 8px 32px rgba(248, 113, 113, 0.15), 0 0 25px rgba(248, 113, 113, 0.08);
}

.species-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 0;
    gap: 12px;
}

.species-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.species-tag {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.species-card-body {
    padding: 14px 20px 20px;
}

.species-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.species-representatives {
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    border-left: 3px solid rgba(245, 158, 11, 0.4);
}

.species-representatives strong {
    color: var(--accent-warm);
}

/* ========== 留言板 ========== */
.message-board { margin-bottom: 32px; }
.board-title { font-size: 1.2rem; color: var(--accent-gold); margin-bottom: 16px; }
.message-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.message-form input, .message-form textarea { padding: 12px 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.95rem; outline: none; font-family: inherit; transition: var(--transition); }
.message-form input:focus, .message-form textarea:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1); }
.message-form textarea { min-height: 100px; resize: vertical; }
.btn { padding: 10px 24px; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; cursor: pointer; transition: all 0.3s ease; }
.btn-primary { background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm)); color: var(--sky-top); font-weight: 600; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); }
.btn-danger { padding: 6px 14px; background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: var(--radius-sm); font-size: 0.8rem; cursor: pointer; transition: var(--transition); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.4); }
.message-list { display: flex; flex-direction: column; gap: 12px; }
.message-item { padding: 16px; background: rgba(0,0,0,0.2); border-radius: var(--radius-sm); border-left: 3px solid var(--accent-gold); transition: all 0.3s ease; }
.message-item:hover { background: rgba(0,0,0,0.3); border-left-color: var(--accent-warm); }
.message-item .msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.message-item .msg-name { font-size: 0.85rem; color: var(--accent-gold); font-weight: 600; }
.message-item .msg-time { font-size: 0.78rem; color: var(--text-muted); }
.message-item .msg-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.link-list { list-style: none; padding: 0; }
.link-list li { margin-bottom: 8px; }
.link-list a { color: var(--accent-gold); text-decoration: none; font-size: 0.95rem; transition: all 0.3s ease; }
.link-list a:hover { text-decoration: underline; }

/* ========== 新增：全局滚动条美化 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 15, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

/* ========== 新增：选中文字样式 ========== */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: var(--text-primary);
}

/* ========== 新增：页面加载动画 ========== */
@keyframes page-load {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: page-load 0.6s ease-out;
}

/* ========== 新增：焦点可见状态（无障碍） ========== */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* ========== 新增：平滑图片加载 ========== */
img {
    transition: opacity 0.3s ease;
}

/* ================================================================
   增强装饰元素 - 有兽焉粉丝站视觉优化
   ================================================================ */

/* ========== 1. 角色卡片图片区域 - 渐变边框与发光效果 ========== */
.card-image-wrapper {
    position: relative;
    border: 2px solid transparent;
    border-image: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.4),
        rgba(59, 130, 246, 0.3),
        rgba(168, 85, 247, 0.4),
        rgba(245, 158, 11, 0.3)
    ) 1;
    border-radius: 0;
    /* 用伪元素实现圆角渐变边框 */
    border: none;
    padding: 0;
}

/* 渐变边框容器（用outline模拟） */
.character-card .card-image-wrapper {
    outline: 2px solid transparent;
    outline-offset: -2px;
    background-clip: padding-box;
}

/* hover时发光效果 */
.character-card:hover .card-image-wrapper {
    box-shadow:
        0 0 15px rgba(245, 158, 11, 0.25),
        0 0 30px rgba(59, 130, 246, 0.15),
        inset 0 0 15px rgba(245, 158, 11, 0.08);
}

/* 图片区域渐变边框（使用伪元素实现圆角渐变） */
.character-card .card-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.3),
        rgba(59, 130, 246, 0.2),
        rgba(168, 85, 247, 0.3),
        rgba(245, 158, 11, 0.2)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.character-card:hover .card-image-wrapper::before {
    opacity: 1;
    background: linear-gradient(
        135deg,
        rgba(245, 158, 11, 0.6),
        rgba(59, 130, 246, 0.4),
        rgba(168, 85, 247, 0.5),
        rgba(245, 158, 11, 0.4)
    );
}

/* ========== 2. 章节卡片 - 书卷纹理背景效果 ========== */
.arc-card {
    background:
        /* 书卷纹理 - 水平细线 */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 28px,
            rgba(245, 158, 11, 0.02) 28px,
            rgba(245, 158, 11, 0.02) 29px
        ),
        /* 纸张质感 */
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.88) 0%,
            rgba(20, 28, 50, 0.85) 50%,
            rgba(15, 23, 42, 0.88) 100%
        );
    border: 1px solid rgba(245, 158, 11, 0.2);
    position: relative;
}

/* 书卷左侧装饰条 */
.arc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(
        180deg,
        var(--accent-gold),
        var(--accent-warm),
        var(--accent-gold)
    );
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 8px rgba(245, 158, 11, 0.2);
}

.arc-card:hover::before {
    height: 100%;
}

/* 书卷右侧卷轴装饰 */
.arc-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background:
        /* 右侧卷轴阴影 */
        linear-gradient(
            90deg,
            transparent 90%,
            rgba(245, 158, 11, 0.03) 95%,
            rgba(245, 158, 11, 0.06) 100%
        ),
        /* 顶部卷轴阴影 */
        linear-gradient(
            180deg,
            rgba(245, 158, 11, 0.04) 0%,
            transparent 8%
        );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.arc-card:hover::after {
    opacity: 1;
}

/* 篇章卡片标题装饰 */
.arc-card-title {
    position: relative;
    padding-left: 12px;
}

.arc-card-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--accent-gold), var(--accent-warm));
    border-radius: 2px;
}

/* ========== 3. 同人作品卡片 - 彩色渐变边框 ========== */
.fanwork-card {
    position: relative;
    border: none;
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.9),
            rgba(20, 28, 50, 0.85)
        );
    z-index: 1;
}

/* 渐变边框效果 */
.fanwork-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(236, 72, 153, 0.4),
        rgba(168, 85, 247, 0.4),
        rgba(59, 130, 246, 0.4),
        rgba(74, 222, 128, 0.3),
        rgba(245, 158, 11, 0.4)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.fanwork-card:hover::before {
    opacity: 1;
    background: linear-gradient(
        135deg,
        rgba(236, 72, 153, 0.7),
        rgba(168, 85, 247, 0.7),
        rgba(59, 130, 246, 0.6),
        rgba(74, 222, 128, 0.5),
        rgba(245, 158, 11, 0.7)
    );
}

/* 同人卡片hover增强 */
.fanwork-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(168, 85, 247, 0.1),
        0 0 40px rgba(236, 72, 153, 0.05);
    border-color: transparent;
}

/* 同人卡片顶部彩虹光条 */
.fanwork-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(236, 72, 153, 0.6),
        rgba(168, 85, 247, 0.6),
        rgba(59, 130, 246, 0.6),
        rgba(74, 222, 128, 0.5),
        rgba(245, 158, 11, 0.6)
    );
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.fanwork-card:hover::after {
    opacity: 1;
}

/* 同人游戏详情卡片也添加渐变边框 */
.game-detail {
    position: relative;
    border: none;
    z-index: 1;
}

.game-detail::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(236, 72, 153, 0.4),
        rgba(245, 158, 11, 0.4),
        rgba(236, 72, 153, 0.3)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.game-detail:hover::before {
    opacity: 1;
}

/* ========== 4. 全局装饰 - CSS小云朵和小星星 ========== */
/* body上添加更多背景装饰元素 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* 散布的小星星装饰 */
    background-image:
        radial-gradient(1px 1px at 5% 15%, rgba(245, 158, 11, 0.4) 50%, transparent 100%),
        radial-gradient(1px 1px at 15% 45%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 25% 75%, rgba(245, 158, 11, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 35% 25%, rgba(255, 255, 255, 0.25) 50%, transparent 100%),
        radial-gradient(1px 1px at 45% 55%, rgba(168, 85, 247, 0.3) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 55% 85%, rgba(245, 158, 11, 0.35) 50%, transparent 100%),
        radial-gradient(1px 1px at 65% 10%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 75% 40%, rgba(59, 130, 246, 0.3) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 85% 65%, rgba(245, 158, 11, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 95% 30%, rgba(255, 255, 255, 0.25) 50%, transparent 100%),
        radial-gradient(1px 1px at 10% 90%, rgba(168, 85, 247, 0.2) 50%, transparent 100%),
        radial-gradient(1px 1px at 20% 5%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 40% 35%, rgba(245, 158, 11, 0.25) 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 50%, rgba(255, 255, 255, 0.3) 50%, transparent 100%),
        radial-gradient(1px 1px at 80% 80%, rgba(59, 130, 246, 0.25) 50%, transparent 100%),
        radial-gradient(1px 1px at 90% 5%, rgba(245, 158, 11, 0.3) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 3% 60%, rgba(255, 255, 255, 0.2) 50%, transparent 100%),
        radial-gradient(1px 1px at 50% 20%, rgba(168, 85, 247, 0.25) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 95%, rgba(245, 158, 11, 0.2) 50%, transparent 100%),
        radial-gradient(1px 1px at 30% 50%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    animation: stars-twinkle-bg 8s ease-in-out infinite alternate;
}

@keyframes stars-twinkle-bg {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* body::after - 浮动小云朵装饰 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    /* 柔和的云朵形状 */
    background-image:
        radial-gradient(ellipse 120px 40px at 8% 18%, rgba(255, 255, 255, 0.018) 0%, transparent 70%),
        radial-gradient(ellipse 80px 30px at 22% 42%, rgba(255, 255, 255, 0.015) 0%, transparent 70%),
        radial-gradient(ellipse 150px 50px at 45% 12%, rgba(255, 255, 255, 0.02) 0%, transparent 70%),
        radial-gradient(ellipse 100px 35px at 68% 38%, rgba(255, 255, 255, 0.016) 0%, transparent 70%),
        radial-gradient(ellipse 130px 45px at 88% 22%, rgba(255, 255, 255, 0.018) 0%, transparent 70%),
        radial-gradient(ellipse 90px 30px at 15% 72%, rgba(255, 255, 255, 0.014) 0%, transparent 70%),
        radial-gradient(ellipse 110px 38px at 52% 65%, rgba(255, 255, 255, 0.016) 0%, transparent 70%),
        radial-gradient(ellipse 140px 48px at 78% 78%, rgba(255, 255, 255, 0.015) 0%, transparent 70%),
        radial-gradient(ellipse 70px 25px at 35% 88%, rgba(255, 255, 255, 0.012) 0%, transparent 70%),
        radial-gradient(ellipse 100px 35px at 92% 55%, rgba(255, 255, 255, 0.014) 0%, transparent 70%);
    animation: clouds-drift 60s ease-in-out infinite alternate;
}

@keyframes clouds-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(30px); }
}

/* ========== 5. 页面加载淡入效果 ========== */
/* 覆盖之前的page-load，增强为更优雅的淡入 */
.main-content {
    animation: page-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes page-fade-in {
    0% {
        opacity: 0;
        transform: translateY(15px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* 导航栏也添加淡入 */
.navbar {
    animation: navbar-fade-in 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes navbar-fade-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚淡入 */
.footer {
    animation: footer-fade-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes footer-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* ========== 6. 角色类型标签样式优化 ========== */
/* 神兽标签 - 金色 */
.tag-type[data-tag="神兽"],
.tag-type:has(+ .tag-element) {
    /* fallback for browsers without :has */
}

/* 使用更精确的选择器覆盖现有标签 */
.tag {
    position: relative;
    letter-spacing: 0.03em;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tag:hover {
    transform: translateY(-1px);
    filter: brightness(1.15);
}

/* 神兽标签 - 金色系 */
.tag-shenshou,
.tag-type {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 146, 60, 0.15)) !important;
    color: #fbbf24 !important;
    border-color: rgba(245, 158, 11, 0.25);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

/* 凶兽标签 - 红色系 */
.tag-xiongshou {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(248, 113, 113, 0.15)) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.25);
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

/* 远古神兽标签 - 紫色系 */
.tag-yuansheng {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.15)) !important;
    color: #d8b4fe !important;
    border-color: rgba(168, 85, 247, 0.25);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.2);
}

/* 人类标签 - 绿色系 */
.tag-renlei {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(134, 239, 172, 0.15)) !important;
    color: #86efac !important;
    border-color: rgba(74, 222, 128, 0.25);
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.2);
}

/* 精怪标签 - 青色系 */
.tag-jingguai {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(165, 243, 252, 0.15)) !important;
    color: #a5f3fc !important;
    border-color: rgba(34, 211, 238, 0.25);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

/* 灵兽标签 - 蓝色系 */
.tag-lingshou {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(147, 197, 253, 0.15)) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.25);
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

/* 妖标签 - 玫红色系 */
.tag-yao {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(249, 168, 212, 0.15)) !important;
    color: #f9a8d4 !important;
    border-color: rgba(236, 72, 153, 0.25);
    text-shadow: 0 0 8px rgba(236, 72, 153, 0.2);
}

/* 基于data-filter按钮的颜色增强 */
.filter-btn[data-filter="神兽"] {
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.filter-btn[data-filter="神兽"]:hover,
.filter-btn[data-filter="神兽"].active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.filter-btn[data-filter="凶兽"] {
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.filter-btn[data-filter="凶兽"]:hover,
.filter-btn[data-filter="凶兽"].active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.filter-btn[data-filter="远古神兽"] {
    border-color: rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
}

.filter-btn[data-filter="远古神兽"]:hover,
.filter-btn[data-filter="远古神兽"].active {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.5);
    color: #d8b4fe;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.15);
}

.filter-btn[data-filter="人类"] {
    border-color: rgba(74, 222, 128, 0.3);
    color: #86efac;
}

.filter-btn[data-filter="人类"]:hover,
.filter-btn[data-filter="人类"].active {
    background: rgba(74, 222, 128, 0.15);
    border-color: rgba(74, 222, 128, 0.5);
    color: #86efac;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.15);
}

/* ========== 额外：卡片状态标签颜色优化 ========== */
.tag-status {
    border: 1px solid transparent;
}

/* 在世状态 - 绿色 */
.tag-status[style*="4ade80"],
.tag-status.alive {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(134, 239, 172, 0.12)) !important;
    border-color: rgba(74, 222, 128, 0.25);
}

/* 死亡状态 - 红色 */
.tag-status[style*="f87171"],
.tag-status.dead {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), rgba(252, 165, 165, 0.12)) !important;
    border-color: rgba(248, 113, 113, 0.25);
}

/* 元素标签增强 */
.tag-element {
    border: 1px solid rgba(168, 85, 247, 0.2);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.12)) !important;
    color: #d8b4fe !important;
}

/* ========== 额外：响应式适配新增样式 ========== */
@media (max-width: 768px) {
    /* 移动端简化body装饰 */
    body::before,
    body::after {
        display: none;
    }

    /* 移动端简化卡片渐变边框 */
    .character-card .card-image-wrapper::before {
        display: none;
    }

    .fanwork-card::before {
        display: none;
    }

    .fanwork-card {
        border: 1px solid var(--card-border);
    }

    .fanwork-card:hover {
        border-color: var(--accent-gold);
    }

    .game-detail::before {
        display: none;
    }

    .game-detail {
        border: 1px solid var(--card-border);
    }

    /* 移动端简化页面加载动画 */
    .main-content {
        animation: page-fade-in-mobile 0.4s ease forwards;
    }

    @keyframes page-fade-in-mobile {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }
}
