/* 合并自：chazuo.php.css, genre.css, author.css, collection.css, type.css, ancient.css, tingdan3.css */

/* ========================================
 * chazuo.php.css 样式（从内联 CSS 提取）
 * ======================================== */
:root {
    --primary-color: #0282ad;
    --secondary-color: #04a9e1;
    --bg-color: #f1f2f4 important!; 
    --card-bg: #ffffff;
    --text-color: #222;
    --light-text: #666666;
    --accent-color: #f39c12;
    --border-color: #e0e0e0;
    /* 以下变量来自其他页面样式 */
    --primary-light: #04a9e1;
    --primary-500: #0282ad;
    --primary-600: #016f97;
    --primary-700: #015c7e;
    --primary-200: #7dd3fc;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll;
}

body::-webkit-scrollbar {
    width: 0px;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 补充：确保所有可能滚动的容器都隐藏滚动条 */
/* 1. 页面主内容区域 */
.slider-wrapper, .slider-page {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.slider-wrapper::-webkit-scrollbar,
.slider-page::-webkit-scrollbar {
    display: none; /* Chrome、Safari、Edge */
    width: 0;
    height: 0;
}

/* 2. 强制所有元素的滚动条隐藏（优先级更高） */
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
* {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* 分类标签导航 */
.category-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 58px;
    background-color: white;
    z-index: 90;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    padding: 8px 6px;
    margin: 0 3px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
}

.category-item.active {
    color: var(--primary-color);
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.category-more {
    flex: 0 0 auto;
    padding: 8px 16px;
    margin-left: 8px;
    font-size: 0.95rem;
    color: var(--light-text);
    cursor: pointer;
}

/* 内容滑动区域 */
.content-slider {
    position: relative;
    height: calc(100vh - 116px);
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 给播放按钮添加点击反馈 */
.play-button:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.content-slider::-webkit-scrollbar {
    width: 0px;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.slider-page {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.page-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-color);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 推荐页面样式 */
/* 优化：图片懒加载样式 - 修复闪烁问题和布局偏移 */
.lazy-image {
    opacity: 0;
    background: #f0f0f0;
    min-height: 100px; /* 确保有占位高度 */
}
.lazy-image.loading {
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}
.lazy-image.loaded {
    opacity: 1;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.recommend-section {
    margin-bottom: 24px;
}

.slideshow-container {
    height: 100%;
}
/* 调整幻灯片内容比例，使其在150px高度下协调 */
.slideshow-wrapper .caption {
    padding: 4px; /* 减少内边距 */
}
.slideshow-wrapper .caption h3 {
/*      font-size: 0.95em; 稍微减小字体 */
    margin: 0 0 1px 0; /* 减少间距 */
}
.slideshow-wrapper .caption p {
    font-size: 0.95em;  /* 稍微减小字体 */
    -webkit-line-clamp: 1; /* 只显示一行 */
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 8px;
    color: var(--primary-color);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

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

@media (min-width: 577px) and (max-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .work-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 993px) {
    .work-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1201px) {
    .work-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1600px) {
    .work-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* 推荐页面的作品项样式（专用样式，避免与其他页面冲突） */
.work-item-recommend {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-color);
    padding: 5px;
    margin: 3px;
    /* 优化：固定高度，减少布局偏移 */
    height: 180px;
    /* 优化：使用content-visibility提升性能 */
    content-visibility: auto;
}

.work-item-recommend:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 宽屏状态下设置最大宽度 */
@media (min-width: 769px) {
    .work-item-recommend {
        max-width: 180px;
    }
}

/* 推荐页面作品项内部样式（限制作用域，避免与其他页面冲突） */
.work-item-recommend .work-image {
    position: relative;
    width: 100%;
    height: 100px; /* 缩短为100px */
    background: #f0f0f0;
    overflow: hidden;
    /* 优化：防止布局偏移 */
    flex-shrink: 0;
}

.work-item-recommend .work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    /* 优化：防止图片加载时改变尺寸 */
    display: block;
}

.work-item-recommend:hover .work-image img {
    transform: scale(1.05);
}

.work-item-recommend .work-content {
    padding: 10px;
    flex-grow: 1;
}

.work-item-recommend .work-title {
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.work-item-recommend .work-desc {
    font-size: 0.85rem;
    color: var(--light-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.work-item-recommend .work-meta {
    font-size: 0.75rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

.work-item-recommend .work-meta i {
    margin-right: 4px;
}

.load-more {
    display: none; /* 优化：初始隐藏，避免布局偏移 */
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    color: var(--primary-color);
    cursor: pointer;
    border-top: 1px solid var(--border-color);
    /* 优化：固定高度，避免显示时布局偏移 */
    min-height: 44px;
}
.load-more.show {
    display: flex;
}

.load-more i {
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 模态框样式 */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-black {
    background-color: #000;
}

.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.hidden {
    display: none;
}

.bg-white {
    background-color: #fff;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.w-full {
    width: 100%;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-h-\[90vh\] {
    max-height: 90vh;
}

.overflow-auto {
    overflow: auto;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-500 {
    color: #6b7280;
}

.hover\:text-gray-700:hover {
    color: #374151;
}

.p-4 {
    padding: 1rem;
}

/* Discover 页面样式 */
.discover-page {
    position: relative;
    height: calc(100vh - 58px); /* 减去顶部导航高度 */
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 63px; /* 为底部导航留出空间 */
    background-color: var(--bg-color);
    display: none; /* 默认隐藏 */
}

.discover-page.show {
    display: block;
}

.discover-page .main-container {
    max-width: 1200px;
    margin: 0 auto;
}

.discover-page .placeholder-content {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
}

.discover-page .icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px;
}

.discover-page .icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.discover-page .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    background-color: white;
    transition: transform 0.2s ease;
    transform: translateY(-10px);
}

.discover-page .icon-item:hover .icon-wrapper {
    transform: scale(1.05);
}

.discover-page .icon-wrapper.load-animation {
    animation: initialPulse 0.8s ease forwards;
}

@keyframes initialPulse {
    0% { transform: translateY(-10px) scale(1); }
    30% { transform: translateY(0) scale(1); }
    70% { transform: translateY(0) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.discover-page .icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

.discover-page .icon-text {
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 当显示 discover 时，隐藏 chazuo 的标签页 */
body.show-discover .category-nav,
body.show-discover .content-slider {
    display: none !important;
}

/* Profile 页面样式 */
.profile-page {
    display: none;
    width: 100%;
    min-height: 100vh;
    background-color: #f7f8fb;
}

.profile-page.show {
    display: block;
}

body.show-profile .category-nav,
body.show-profile .content-slider {
    display: none !important;
}

/* 当显示 search 时，隐藏 chazuo 的标签页 */
body.show-search .category-nav,
body.show-search .content-slider {
    display: none !important;
}

/* ========================================
 * 其他页面样式（genre/author/collection/type/ancient/tingdan）
 * ======================================== */

/* 2) 通用工具类（去重后保留一份） */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.transition-all { transition: all .3s cubic-bezier(.4,0,.2,1); }
.hover-bg-primary-50:hover { background-color: var(--gray-50); }
.hover-border-primary-200:hover { border-color: var(--primary-200); }
.text-primary-500 { color: var(--primary-500); }
.text-primary-600 { color: var(--primary-600); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.p-2 { padding: 1vw; }
.p-6 { padding: 0 10px 15px 10px; }
.p-8 { padding: 2rem; }
.hidden { display: none !important; }
.flex-row { display: flex; align-items: center; }
.flex-grow { flex-grow: 1; }
.rotate-180 { transform: rotate(180deg); }

/* 3) 共用组件样式（各页面公用） */
.works-header {
	color: var(--gray-800);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--gray-200);
	display: flex; align-items: center; justify-content: center;
}
.works-header i { color: var(--primary-500); margin-right: 0.75rem; }
.works-list { list-style: none; }
/* 其他页面的作品列表项样式（列表样式，用于 genre/author/collection/type/ancient/tingdan 等页面） */
.work-item { padding: 2vw; margin: 1vw; border-bottom: 1px solid var(--gray-200); transition: all .3s; }
.work-item:last-child { border-bottom: none; }
.work-item:hover { background-color: var(--gray-50); }
.work-item a { color: var(--gray-800); text-decoration: none; font-weight: 500; font-size: 1rem; display: block; transition: color .3s; }
.work-item a:hover { color: var(--primary-500); }
/* 古籍详情页二级分类容器 - 减少 padding，避免容器过高 */
#ancient-categories-list-container .work-item { padding: 0.5rem 0.75rem; margin: 0.5rem 0; }
#ancient-categories-list-container .ancient-link { padding: 0.375rem 0.75rem; }

/* 推荐页面的作品卡片样式（卡片样式，专用，避免与其他页面冲突） */
.work-item-recommend {
	background-color: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--text-color, #222);
	padding: 5px;
	margin: 3px;
	/* 优化：固定高度，减少布局偏移 */
	height: 180px;
	/* 优化：使用content-visibility提升性能 */
	content-visibility: auto;
}
.work-item-recommend:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 宽屏状态下设置最大宽度 */
@media (min-width: 769px) {
	.work-item-recommend {
		max-width: 180px;
	}
}
/* 推荐页面作品项内部样式（限制作用域，避免与其他页面冲突） */
.work-item-recommend .work-image {
	position: relative;
	width: 100%;
	height: 100px; /* 缩短为100px */
	background: #f0f0f0;
	overflow: hidden;
	/* 优化：防止布局偏移 */
	flex-shrink: 0;
}
.work-item-recommend .work-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease, opacity 0.3s ease;
	/* 优化：防止图片加载时改变尺寸 */
	display: block;
}
.work-item-recommend:hover .work-image img {
	transform: scale(1.05);
}
.work-item-recommend .work-content {
	padding: 10px;
	flex-grow: 1;
}
.work-item-recommend .work-title {
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.work-item-recommend .work-desc {
	font-size: 0.85rem;
	color: var(--light-text, #666666);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.work-item-recommend .work-meta {
	font-size: 0.75rem;
	color: var(--light-text, #666666);
	display: flex;
	align-items: center;
}
.work-item-recommend .work-meta i {
	margin-right: 4px;
}
.no-works { text-align: center; color: var(--gray-500); padding: 2rem 0; font-size: 1rem; }
.back-button { display: inline-flex; align-items: center; padding: .75rem 1.5rem; background-color: #f3f4f6; color: #4b5563; border-radius: .5rem; transition: all .3s; font-weight: 500; }
.back-button i { margin-right: .5rem; }
.back-button:hover { background-color: #e5e7eb; color: #374151; }
.works-container { overflow: hidden; transition: max-height .3s ease-out; max-height: 0; }
.play-btn { background: rgba(0,0,0,.7); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .3s; margin-left: .75rem; }
.play-btn:hover { background: rgba(0,0,0,.9); }

/* 共用“朝代/分组”样式（genre/author/collection/type/ancient 使用） */
.dynasty-container { padding-bottom: 2rem; }
.dynasty-group { background-color: #fff; border-radius: .75rem; padding: 1rem; margin: 1rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); width: 100%; }
.dynasty-title { display: flex; align-items: center; position: relative; z-index: 1; background-color: rgba(255,255,255,0.7); padding-left: 1rem; }
.dynasty-title::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: .5rem; height: 2rem; background-color: var(--primary-color); border-radius: .25rem; }
.dynasty-name { flex: 1; min-width: 0; }
.dynasty-arrow { flex-shrink: 0; margin-left: auto; }
.dynasty-pattern { opacity: .7; filter: grayscale(30%); background-image: url('/images/dynasty-pattern.png'); }

/* 4) 各页面网格与卡片（命名空间隔离，避免冲突） */
/* Genre */
.genre-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
@media (min-width:640px){ .genre-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width:768px){ .genre-grid { grid-template-columns: repeat(6,1fr); } }
@media (min-width:1024px){ .genre-grid { grid-template-columns: repeat(8,1fr); } }
.genre-item { cursor: pointer; transition: all .3s; border-radius: .5rem; overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.genre-item:hover { transform: none; }
.genre-avatar { aspect-ratio: 1/1; overflow: hidden; position: relative; max-width: 200px; }
.genre-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.genre-name { font-weight: 500; font-size: .95rem; color: var(--gray-800); margin-top: .5rem; text-align: center; }
.genre-detail { max-width: 800px; margin: 0 auto; padding: 0; }
.genre-detail-avatar-container { display: flex; justify-content: center; margin: 10px; }
.genre-detail-avatar { width: 180px; height: 180px; border-radius: 20%; overflow: hidden; border: 6px solid #fff; box-shadow: 0 0 15px 3px rgba(0,0,0,.25); }
.genre-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.genre-detail-name { color: var(--primary-color); font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.genre-detail-divider { width: 100px; height: 3px; background-color: var(--primary-500); margin: 0 auto 1.5rem; border-radius: 3px; }
.genre-detail-desc { background-color: var(--gray-50); padding: 1.5rem; border-radius: 1rem; line-height: 1.6; margin-bottom: 2rem; border: 1px solid var(--gray-200); }
.genre-detail-stats { display:flex; justify-content:center; align-items:center; margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--gray-200); }
.genre-text-item { display:flex; justify-content:center; align-items:center; border:1px solid var(--gray-200); border-radius:.375rem; transition:all .2s ease; min-height:2.5rem; max-width:120px; padding:.5rem; }
.genre-text-item:hover { border-color: var(--primary-200); transform: none; box-shadow: none; }
.genre-text-list { width: 100%; display:flex; flex-wrap:wrap; gap:.5rem; }
.genre-link { display:block; width:100%; height:100%; text-decoration:none; transition: color .2s ease; }
.genre-link:hover { color: var(--primary-color); }

/* Author */
.author-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
@media (min-width:640px){ .author-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width:768px){ .author-grid { grid-template-columns: repeat(6,1fr); } }
@media (min-width:1024px){ .author-grid { grid-template-columns: repeat(8,1fr); } }
.author-item { cursor:pointer; transition:all .3s; border-radius:.5rem; overflow:hidden; box-shadow:0 2px 4px rgba(0,0,0,.1); }
.author-item:hover { transform:none; }
.author-avatar { aspect-ratio:1/1; overflow:hidden; position:relative; max-width:200px; }
.author-avatar img { width:100%; height:100%; object-fit:cover; transition:transform .5s; position:relative; z-index:1; }
.author-name-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top, rgba(65,65,65,.8) 0%, transparent 100%); z-index:2; }
.author-name-text { color:#fff; font-size:14px; text-align:center; font-weight:600; text-shadow:.5px .5px 0 rgba(0,0,0,.7), -.5px -.5px 0 rgba(0,0,0,.7), .5px -.5px 0 rgba(0,0,0,.7), -.5px .5px 0 rgba(0,0,0,.7), 0 0 3px rgba(255,255,255,.3); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding:1px 2px; position:relative; }
.author-name { font-weight:500; font-size:.95rem; color:var(--gray-800); margin-top:.5rem; text-align:center; }
.author-detail { max-width: 800px; margin: 0 auto; padding: 0; }
.author-detail-avatar-container { display:flex; justify-content:center; margin:10px; }
.author-detail-avatar { width:180px; height:180px; border-radius:20%; overflow:hidden; border:6px solid #fff; box-shadow:0 0 15px 3px rgba(0,0,0,.25); }
.author-detail-avatar img { width:100%; height:100%; object-fit:cover; }
.author-detail-name { color:var(--primary-color); font-size:1.75rem; font-weight:700; margin-bottom:.5rem; }
.author-detail-divider { width:100px; height:3px; background-color:var(--primary-500); margin:0 auto 1.5rem; border-radius:3px; }
.author-detail-desc { background-color:var(--gray-50); padding:1.5rem; border-radius:1rem; line-height:1.6; margin-bottom:2rem; border:1px solid var(--gray-200); }
.author-detail-stats { display:flex; justify-content:center; align-items:center; margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--gray-200); }
.author-text-item { display:flex; justify-content:center; align-items:center; border:1px solid var(--gray-200); border-radius:.375rem; transition:all .2s ease; min-height:2.5rem; max-width:120px; padding:.5rem; }
.author-text-item:hover { border-color:var(--primary-200); transform:none; box-shadow:none; }
.author-text-list { width:100%; display:flex; flex-wrap:wrap; gap:.5rem; }
.author-link { display:block; width:100%; height:100%; text-decoration:none; transition: color .2s ease; }
.author-link:hover { color: var(--primary-color); }

/* Collection */
.collection-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:.75rem; }
@media (min-width:640px){ .collection-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width:768px){ .collection-grid { grid-template-columns: repeat(6,1fr); } }
@media (min-width:1024px){ .collection-grid { grid-template-columns: repeat(8,1fr); } }
.collection-item { cursor:pointer; transition:all .3s; border-radius:.5rem; overflow:hidden; box-shadow:0 2px 4px rgba(0,0,0,.1); }
.collection-item:hover { transform:none; }
.collection-avatar { aspect-ratio:1/1; overflow:hidden; position:relative; max-width:200px; }
.collection-avatar img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.collection-name { font-weight:500; font-size:.95rem; color:var(--gray-800); margin-top:.5rem; text-align:center; }
.collection-detail { max-width:800px; margin:0 auto; padding:0; }
.collection-detail-avatar-container { display:flex; justify-content:center; margin:10px; }
.collection-detail-avatar { width:180px; height:180px; border-radius:20%; overflow:hidden; border:6px solid #fff; box-shadow:0 0 15px 3px rgba(0,0,0,.25); }
.collection-detail-avatar img { width:100%; height:100%; object-fit:cover; }
.collection-detail-name { color:var(--primary-color); font-size:1.75rem; font-weight:700; margin-bottom:.5rem; }
.collection-detail-divider { width:100px; height:3px; background-color:var(--primary-500); margin:0 auto 1.5rem; border-radius:3px; }
.collection-detail-desc { background-color:var(--gray-50); padding:1.5rem; border-radius:1rem; line-height:1.6; margin-bottom:2rem; border:1px solid var(--gray-200); }
.collection-detail-stats { display:flex; justify-content:center; align-items:center; margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--gray-200); }
.collection-text-item { display:flex; justify-content:center; align-items:center; border:1px solid var(--gray-200); border-radius:.375rem; transition:all .2s ease; min-height:2.5rem; max-width:120px; padding:.5rem; }
.collection-text-item:hover { border-color:var(--primary-200); transform:none; box-shadow:none; }
.collection-text-list { width:100%; display:flex; flex-wrap:wrap; gap:.5rem; }
.collection-link { display:block; width:100%; height:100%; text-decoration:none; transition: color .2s ease; }
.collection-link:hover { color: var(--primary-color); }

/* Type */
.type-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:.75rem; }
@media (min-width:640px){ .type-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width:768px){ .type-grid { grid-template-columns: repeat(6,1fr); } }
@media (min-width:1024px){ .type-grid { grid-template-columns: repeat(8,1fr); } }
.type-item { cursor:pointer; transition:all .3s; border-radius:.5rem; overflow:hidden; box-shadow:0 2px 4px rgba(0,0,0,.1); }
.type-item:hover { transform:none; }
.type-avatar { aspect-ratio:1/1; overflow:hidden; position:relative; max-width:200px; }
.type-avatar img { width:100%; height:100%; object-fit:cover; transition:transform .5s; position:relative; z-index:1; }
.type-name-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top, rgba(65,65,65,.8) 0%, transparent 100%); z-index:2; }
.type-name-text { color:#fff; font-size:14px; text-align:center; font-weight:600; text-shadow:.5px .5px 0 rgba(0,0,0,.7), -.5px -.5px 0 rgba(0,0,0,.7), .5px -.5px 0 rgba(0,0,0,.7), -.5px .5px 0 rgba(0,0,0,.7), 0 0 3px rgba(255,255,255,.3); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding:1px 2px; position:relative; }
.type-name { font-weight:500; font-size:.95rem; color:var(--gray-800); margin-top:.5rem; text-align:center; }
.type-detail { max-width: 800px; margin: 0 auto; padding: 0; }
.type-detail-avatar-container { display:flex; justify-content:center; margin:10px; }
.type-detail-avatar { width:180px; height:180px; border-radius:20%; overflow:hidden; border:6px solid #fff; box-shadow:0 0 15px 3px rgba(0,0,0,.25); }
.type-detail-avatar img { width:100%; height:100%; object-fit:cover; }
.type-detail-name { color:var(--primary-color); font-size:1.75rem; font-weight:700; margin-bottom:.5rem; }
.type-detail-divider { width:100px; height:3px; background-color:var(--primary-500); margin:0 auto 1.5rem; border-radius:3px; }
.type-detail-desc { background-color:var(--gray-50); padding:1.5rem; border-radius:1rem; line-height:1.6; margin-bottom:2rem; border:1px solid var(--gray-200); }
.type-detail-stats { display:flex; justify-content:center; align-items:center; margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--gray-200); }
.type-text-item { display:flex; justify-content:center; align-items:center; border:1px solid var(--gray-200); border-radius:.375rem; transition:all .2s ease; min-height:2.5rem; max-width:120px; padding:.5rem; }
.type-text-item:hover { border-color:var(--primary-200); transform:none; box-shadow:none; }
.type-text-list { width:100%; display:flex; flex-wrap:wrap; gap:.5rem; }
.type-link { display:block; width:100%; height:100%; text-decoration:none; transition: color .2s ease; }
.type-link:hover { color: var(--primary-color); }

/* Ancient */
.ancient-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:.75rem; }
@media (min-width:640px){ .ancient-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width:768px){ .ancient-grid { grid-template-columns: repeat(6,1fr); } }
@media (min-width:1024px){ .ancient-grid { grid-template-columns: repeat(8,1fr); } }
.ancient-item { cursor:pointer; transition:all .3s; border-radius:.5rem; overflow:hidden; box-shadow:0 2px 4px rgba(0,0,0,.1); }
.ancient-item:hover { transform:none; }
.ancient-avatar { aspect-ratio:1/1; overflow:hidden; position:relative; }
.ancient-avatar img { width:100%; height:100%; object-fit:cover; transition:transform .5s; position:relative; z-index:1; }
.ancient-name-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top, rgba(65,65,65,.8) 0%, transparent 100%); z-index:2; }
.ancient-name-text { color:#fff; font-size:14px; text-align:center; font-weight:600; text-shadow:.5px .5px 0 rgba(0,0,0,.7), -.5px -.5px 0 rgba(0,0,0,.7), .5px -.5px 0 rgba(0,0,0,.7), -.5px .5px 0 rgba(0,0,0,.7), 0 0 3px rgba(255,255,255,.3); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding:1px 2px; position:relative; }
.ancient-name { font-weight:500; font-size:.95rem; color:var(--gray-800); margin-top:.5rem; text-align:center; }
.ancient-detail { max-width: 800px; margin: 0 auto; padding: 0; }
.ancient-detail-avatar-container { display:flex; justify-content:center; margin:10px; }
.ancient-detail-avatar { width:180px; height:180px; border-radius:20%; overflow:hidden; border:6px solid #fff; box-shadow:0 0 15px 3px rgba(0,0,0,.25); }
.ancient-detail-avatar img { width:100%; height:100%; object-fit:cover; }
.ancient-detail-name { color:var(--primary-color); font-size:1.75rem; font-weight:700; margin-bottom:.5rem; }
.ancient-detail-divider { width:100px; height:3px; background-color:var(--primary-500); margin:0 auto 1.5rem; border-radius:3px; }
.ancient-detail-desc { background-color:var(--gray-50); padding:1.5rem; border-radius:1rem; line-height:1.6; margin-bottom:2rem; border:1px solid var(--gray-200); }
.ancient-detail-stats { display:flex; justify-content:center; align-items:center; margin-top:1.5rem; padding-top:1rem; border-top:1px solid var(--gray-200); }
.ancient-text-item { display:flex; justify-content:center; align-items:center; border:1px solid var(--gray-200); border-radius:.375rem; transition:all .2s ease; min-height:2.5rem; max-width:120px; padding:.5rem; }
.ancient-text-item:hover { border-color:var(--primary-200); transform:none; box-shadow:none; }
.ancient-text-list { width:100%; display:flex; flex-wrap:wrap; gap:.5rem; }
.ancient-link { display:block; text-decoration:none; transition: color .2s ease; }
.ancient-link:hover { color: var(--primary-color); }

/* Tingdan（听单） */
.tingdan-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:.75rem; }
@media (min-width:640px){ .tingdan-grid { grid-template-columns: repeat(5,1fr); } }
@media (min-width:768px){ .tingdan-grid { grid-template-columns: repeat(6,1fr); } }
@media (min-width:1024px){ .tingdan-grid { grid-template-columns: repeat(8,1fr); } }
.tingdan-item { cursor:pointer; transition:all .3s; border-radius:.5rem; overflow:hidden; box-shadow:0 2px 4px rgba(0,0,0,.1); }
.tingdan-item:hover { transform:none; }
.tingdan-avatar { aspect-ratio:1/1; overflow:hidden; position:relative; }
.tingdan-avatar img { width:100%; height:100%; object-fit:cover; transition:transform .5s; position:relative; z-index:1; }
.tingdan-name-overlay { position:absolute; bottom:0; left:0; right:0; background:linear-gradient(to top, rgba(65,65,65,.8) 0%, transparent 100%); z-index:2; }
.tingdan-name-text { color:#fff; font-size:14px; text-align:center; font-weight:600; text-shadow:.5px .5px 0 rgba(0,0,0,.7), -.5px -.5px 0 rgba(0,0,0,.7), .5px -.5px 0 rgba(0,0,0,.7), -.5px .5px 0 rgba(0,0,0,.7), 0 0 3px rgba(255,255,255,.3); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; padding:1px 2px; position:relative; }
.tingdan-name { font-weight:500; font-size:.95rem; color:var(--gray-800); margin-top:.5rem; text-align:center; }
.tingdan-detail { max-width: 800px; margin: 0 auto; padding: 0; }
.tingdan-detail-header { text-align: center; }
.tingdan-detail-avatar-container { display:flex; justify-content:center; margin-bottom:1.5rem; }
.tingdan-detail-avatar-container { display:flex; justify-content:center; margin:10px; }
.tingdan-detail-avatar { width:180px; height:180px; border-radius:20%; overflow:hidden; border:6px solid #fff; box-shadow:0 0 15px 3px rgba(0,0,0,.25); }
.tingdan-detail-avatar img { width:100%; height:100%; object-fit:cover; }
.tingdan-detail-name { color:var(--primary-color); font-size:1.75rem; font-weight:700; margin-bottom:.5rem; }
.tingdan-detail-divider { width:100px; height:3px; background-color:var(--primary-500); margin:0 auto .1rem; border-radius:3px; }
.tingdan-detail-desc { background-color:var(--gray-50); padding:1.5rem; border-radius:1rem; line-height:1.6; margin-bottom:2rem; border:1px solid var(--gray-200); }
.tingdan-detail-desc h3 { color:var(--primary-500); font-size:1.25rem; margin-bottom:1rem; display:flex; align-items:center; justify-content:center; }
.tingdan-detail-desc h3 i { margin-right:.75rem; }
.tingdan-detail-stats { display:flex; justify-content:center; align-items:center; margin-top:.2rem; }
.tingdan-detail-stats i { color:var(--primary-500); margin-right:.5rem; font-size:1.25rem; }
.tingdan-detail-stats span { color:var(--gray-700); font-weight:600; }
.tingdan-detail-stats strong { color:var(--primary-500); margin:0 .25rem; }
.tingdan-detail-works { margin-top:1rem; margin-bottom:4rem; }
.tingdan-link { display:block; width:100%; height:100%; text-decoration:none; transition: color .2s ease; }
.tingdan-link:hover { color: var(--primary-color); }
.play-all-container { text-align:center; margin: 1rem 0; }
.play-all-btn { background-color: var(--primary-500); color:#fff; border:none; border-radius:3px; padding:.5rem 1rem; font-size:1rem; cursor:pointer; display:inline-flex; align-items:center; gap:.5rem; transition: background-color .3s; margin-top:1rem; margin-right:.5rem; }
.play-all-btn:hover { background-color: var(--primary-600); }
.favorite-btn { background-color:#fff; color:var(--gray-700); border:1px solid var(--gray-300); border-radius:3px; padding:.5rem 1rem; font-size:1rem; cursor:pointer; display:inline-flex; align-items:center; gap:.5rem; transition:all .3s; margin-top:1rem; }
.favorite-btn:hover { border-color: var(--primary-500); color: var(--primary-500); }
.text-red-500 { color:#ef4444; }


