 
:root {
    --primary-color: #0282ad;
    --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;
}

/* 通用工具类 */
.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, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}


.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: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

/* 作者列表样式 */
.type-header {
    margin-bottom: 20px;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.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);
    }
}

/* 容器显示/隐藏 */
.hidden {
    display: none !important;
}


.type-item {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
 
.type-item:hover {
    transform: none; /* 移除可能的上移或缩放 */
}

.type-avatar {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

.type-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.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,0.8) 0%, transparent 100%);
    z-index: 2;
}
 

.type-name-text {
    color: white;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    /* 多重阴影实现描边效果 */
    text-shadow: 
        0.5px 0.5px 0 rgba(0,0,0,0.7),
        -0.5px -0.5px 0 rgba(0,0,0,0.7),
        0.5px -0.5px 0 rgba(0,0,0,0.7),
        -0.5px 0.5px 0 rgba(0,0,0,0.7),
        0 0 3px rgba(255,255,255,0.3); /* 微光效果 */
    
    /* 平滑字体渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* 兼容性方案 */
    padding: 1px 2px; /* 为描边留出空间 */
    position: relative;
}

.type-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-800);
    margin-top: 0.5rem;
    text-align: center;
}

/* 作者详情样式 */
.type-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.type-detail-header {
    text-align: center;
    margin-bottom: 30px;
}

.type-detail-avatar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.type-detail-avatar {
    width: 180px;
    height: 180px;
    border-radius: 20%;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0px 0px 15px 3px rgba(0, 0, 0, 0.25);
 //   transition: transform 0.5s;
}

 
.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: 0.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-desc h3 {
    color: var(--primary-500);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.type-detail-desc h3 i {
    margin-right: 0.75rem;
}

.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-detail-stats i {
    color: var(--primary-500);
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.type-detail-stats span {
    color: var(--gray-700);
    font-weight: 600;
}

.type-detail-stats strong {
    color: var(--primary-500);
    margin: 0 0.25rem;
}

/* 作品列表样式 */
.type-detail-works {
    margin-top: 2rem;
}

.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;
}

.work-item {
    padding: 2vw;
    margin: 1vw;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.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 0.3s;
}

.work-item a:hover {
    color: var(--primary-500);
}

.no-works {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem 0;
    font-size: 1rem;
}

/* 返回按钮样式 */
.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.back-button i {
    margin-right: 0.5rem;
}

.back-button:hover {
    background-color: var(--gray-200);
    color: var(--gray-800);
 
}

/* 作品列表展开/收起动画 */
.works-container {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.back-button i {
    margin-right: 0.5rem;
}

.back-button:hover {
    background-color: #e5e7eb;
    color: #374151;
 
}



.type-detail-divider {
    width: 100px;
    height: 3px;
    background-color: #0282ad;
    margin: 0 auto 1.5rem;
    border-radius: 3px;
}

.type-detail-desc {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border: 1px solid #e5e7eb;
}

.type-detail-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.type-detail-stats i {
    color: #0282ad;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.type-detail-stats span {
    color: #374151;
    font-weight: 600;
}

.type-detail-stats strong {
    color: #016f97;
    margin: 0 0.25rem;
}

.dynasty-container {
    padding-bottom: 2rem;
}

.dynasty-group {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 100%; /* 确保父容器占满宽度 */
}

.dynasty-title {
    position: relative;
    padding-left: 1rem;
}

.dynasty-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.5rem;
    height: 2rem;
    background-color: var(--primary-color);
    border-radius: 0.25rem;
}
.type-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: color 0.2s ease;
}

.type-link:hover {
    color: var(--primary-color);
}

.type-text-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    min-height: 2.5rem; 
    max-width: 120px; /* 添加最大宽度限制，确保换行 */
    padding:  0.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: 0.5rem; /* 缩小间距使布局更紧凑 */
    justify-start;
}


 

.rotate-180 {
  transform: rotate(180deg);
}

/* 底纹图案默认样式 */
.dynasty-pattern {
    opacity: 0.7;
    filter: grayscale(30%);
    background-image: url('/images/dynasty-pattern.png');
}
 

/* 展开状态动画 */
.type-text-list {
    transition: all 0.3s ease;
    overflow: hidden;
}
 

/* 修复箭头布局 */
.dynasty-title {
  display: flex;
  align-items: center;
  position: relative;  z-index: 1; /* 确保文字在背景上方 */
  background-color: rgba(255,255,255,0.7); /* 半透明白色衬底 */
}

.dynasty-name {
  flex: 1;
  min-width: 0;
}
.dynasty-arrow {
  flex-shrink: 0;
  margin-left: auto;
}

 
 

/* 确保箭头旋转效果 */
.rotate-180 {
  transform: rotate(180deg);
}

/* 保持原有作者样式 */
.type-text-item {
  min-width: 80px;
}

.type-link {
  transition: all 0.2s ease;
}

