/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 通用链接样式 */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:hover {
    color: #00a854;
}

/* 顶部菜单 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.header-right span {
    margin-left: 5px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid transparent;
}

.header-right span:hover {
    color: #333;
    background-color: #f0f0f0;
    border-color: #e0e0e0;
}

.header-right span.active {
    color: #333;
    background-color: #e8f5e8;
    border-color: #c8e6c9;
}

.menu-icon {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.submenu-icon {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    stroke-width: 2;
    display: inline-block;
}

.module-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
}

/* 下拉菜单样式 */
.header-right .dropdown {
    position: relative;
    display: inline-block;
}

.header-right .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 160px;
    z-index: 1000;
    margin-top: 5px;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.header-right .dropdown:hover .dropdown-menu,
.header-right .dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
}

.header-right .dropdown-menu span,
.header-right .dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    margin: 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-right .dropdown-menu span:hover,
.header-right .dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: #333;
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 搜索框 */
.search-box {
    margin-bottom: 30px;
    text-align: center;
}

.search-title {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.search-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.search-box input {
    width: 80%;
    padding: 12px 20px;
    border: 2px solid #00a854;
    border-radius: 4px;
    font-size: 18px;
    outline: none;
    margin-bottom: 15px;
}

.search-box input:focus {
    box-shadow: 0 0 0 2px rgba(0, 168, 84, 0.2);
}

.hot-search {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.hot-label {
    font-weight: bold;
    margin-right: 10px;
}

.hot-keyword {
    margin: 0 8px;
    color: #00a854;
    cursor: pointer;
}

.hot-keyword:hover {
    text-decoration: underline;
}

/* 菜单导航 */
.menu-nav {
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.menu-nav span {
    margin-right: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.menu-nav span:hover {
    color: #00a854;
}

/* 模块列表 */
.module-list {
    margin: 0 auto;
    max-width: 1200px;
    padding: 20px;
}

.module-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.module-row .module {
    width: 50%;
}

/* 模块样式 */
.module {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* 特色内容模块 */
.featured-content {
    margin: 0 auto;
    max-width: 1120px; /* 1200px - 20px * 2 内边距 */
}

.featured-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.featured-image {
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.featured-text {
    flex: 1;
    min-width: 0;
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.featured-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.module-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-date {
    margin-left: auto;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}
/* 锡剧百科三列布局 */
.encyclopedia-content {
    display: flex;
    gap: 20px;
}
.encyclopedia-column {
    width: 33.333%;
}
.column-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

.module-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-icon svg {
    vertical-align: middle;
    display: inline-block;
}

/* 模块项 */
.module-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 演员列表样式 */
.actor-list {
    width: 100%;
    box-sizing: border-box;
}

.actor-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.actor-item {
    flex: 0 0 calc(12.5% - 5px); /* 8 items per row with spacing */
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}

.actor-item:hover {
    transform: translateY(-5px);
}

.actor-photo {
    width: 100%;
    max-width: 80px;
    aspect-ratio: 3/4;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid #f0f0f0;
    transition: border-color 0.2s ease;
}

.actor-item:hover .actor-photo {
    border-color: #00a854;
}

.actor-name {
    font-size: 14px;
    color: #333;
    display: block;
}

.actor-item a {
    text-decoration: none;
    color: inherit;
}

.module-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.module-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.item-name a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.item-name:hover,
.item-name a:hover {
    color: #00a854;
}

.item-number {
    font-size: 12px;
    color: #999;
    background-color: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.item-date {
    font-size: 12px;
    color: #999;
}

/* 底部版权 */
.footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 0px 0;
    margin-top: 20px;
}

/* 底部扩展区域 */
.footer-extension {
    background-color: #f8f8f8;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}

.footer-columns {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 0 20px;
}

.footer-column {
    text-align: center;
    width: 200px;
}

.column-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.column-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.column-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.footer-reserve {
    /* 备用空间样式与其他列一致 */
    text-align: center;
    width: 200px;
}

/* 事件详情页面样式 */
.event-details {
    padding: 20px 0;
}

.event-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.event-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    width: 120px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.info-value {
    flex: 1;
    color: #333;
    line-height: 1.6;
}

.event-image {
    text-align: center;
    margin-bottom: 25px;
}

.event-pic {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-description {
    line-height: 1.8;
    color: #333;
    margin-bottom: 25px;
    text-align: justify;
}

.event-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.event-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    font-weight: 600;
}

.event-qrcode {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.event-qrcode p {
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
}

.event-additional {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

/* 演员信息页面样式 */
/* 标签页样式 */
.tabHead {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 5px;
    cursor: pointer;
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.tabHead:hover {
    background-color: #e9e9e9;
    color: #333;
}

.tabHeadActive {
    background-color: #fff;
    color: #00a854;
    border-bottom: 2px solid #00a854;
    position: relative;
    z-index: 1;
}

.tabHeadLine {
    height: 1px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
}

.tabsheet {
    background-color: #fff;
    padding: 20px;
    border-radius: 0 5px 5px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stab {
    line-height: 1.8;
}

/* 人物基本信息 */
.yanyuanPic {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.yanyuanPic img {
    max-width: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 人物信息列表 */
.yanyuan_type {
    margin: 8px 0;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    min-height: 50px;
    transition: all 0.3s ease;
}

.yanyuan_type:last-child {
    border-bottom: none;
}

.yanyuan_type:hover {
    background-color: #fafafa;
    padding-left: 10px;
    border-radius: 8px;
}

/* 人物关系样式 */
.relation-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.relation-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00a854;
}

.diagram-container {
    margin-bottom: 20px;
}

.diagram-controls {
    margin-top: 15px;
    margin-bottom: 15px;
}

.diagram-btn {
    background-color: #00a854;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-right: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.diagram-btn:hover {
    background-color: #008c47;
}

.diagram-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
}

.info-list {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 0 0 0;
}

.info-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.info-list li:before {
    content: "•";
    color: #00a854;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.color-blue {
    color: #33ccff;
    font-weight: bold;
}

.color-pink {
    color: #F48FB1;
    font-weight: bold;
}

.color-gray {
    color: #DDDDDD;
    font-weight: bold;
}

.color-green {
    color: #00ff00;
    font-weight: bold;
}

/* 同学和同事列表样式 */
.yanyuan_type {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00a854;
    display: block;
}

.yanyuan {
    list-style-type: none;
    padding: 8;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.yanyuan li {
    text-align: center;
    transition: transform 0.3s ease;
}

.yanyuan li:hover {
    transform: translateY(-5px);
}

.yanyuan li a {
    display: block;
    text-decoration: none;
    color: #333;
}

.yanyuan li img {
    width: 90px !important;
    height: 120px !important;
    border-radius: 6px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    object-fit: cover;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.yanyuan li img:hover {
    box-shadow: 0 4px 12px rgba(0,168,84,0.3) !important;
    border-color: #00a854 !important;
}

.yanyuan_type a {
    display: inline-block;
    margin: 2px 6px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.yanyuan_type a:hover {
    transform: scale(1.1);
}

.yanyuan_type a:hover img {
    border-color: #00a854 !important;
    box-shadow: 0 4px 12px rgba(0,168,84,0.3) !important;
}

/* 相关条目样式 */
#dsnb li {
    list-style-type: none;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

#dsnb li:before {
    content: "•";
    color: #00a854;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 人物列表样式 */
.yanyuan {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.yanyuan li {
    width: 80px;
    text-align: center;
}

.yanyuan li a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.yanyuan li a:hover {
    color: #00a854;
    transform: translateY(-5px);
}

.yanyuan li img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.yanyuan li a:hover img {
    border-color: #00a854;
    box-shadow: 0 4px 12px rgba(0,168,84,0.3);
}

/* 传承谱系样式 */
.sample-wrapper {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

#myDiagramDiv {
    margin-bottom: 15px;
}

.sample-wrapper button {
    padding: 8px 15px;
    margin-right: 10px;
    background-color: #00a854;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sample-wrapper button:hover {
    background-color: #008f46;
}

.sample-wrapper p {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
}

/* 讨论区样式 */
#dsnb {
    margin-top: 20px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .tabHead {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .yanyuan_type {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
    }
    
    .yanyuan_type a {
        margin: 4px 8px 4px 0;
    }
    
    .yanyuan_type a img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .yanyuan {
        gap: 15px;
    }
    
    .yanyuan li {
        width: 70px;
    }
    
    .yanyuan li img {
        width: 50px;
        height: 50px;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 14px;
    color: #999;
}

.footer-left span {
    margin-right: 15px;
}

.footer-counter {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 剧目详情页面样式 */
.play-title {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e84c3d;
}

.play-icon {
    margin-right: 10px;
    color: #e84c3d;
}

.play-image {
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.actor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.actor-item {
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.actor-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.actor-role {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.timeline-container {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

.reference-list {
    list-style: none;
    margin-top: 15px;
    padding: 0;
}

.reference-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.reference-list li:last-child {
    border-bottom: none;
}

.reference-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.reference-list a:hover {
    color: #e84c3d;
}

.dsnb ul {
  list-style: none;
  padding: 0;
}

.dsnb li {
  padding: 6px 8px;
  margin-bottom: 3px;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.dsnb li:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

