/* ===== APP风格布局样式 ===== */

/* APP风格顶部导航栏 */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.back-btn, .menu-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /* 手机端优化 */
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
    position: relative;
}

.back-btn:hover, .menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.header-title {
    flex: 1;
    text-align: center;
    color: white;
}

.header-title h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.header-title .subtitle {
    font-size: 12px;
    opacity: 0.8;
    display: block;
}

/* APP风格底部导航栏 */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 70px;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.app-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 0 4px;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(139, 0, 0, 0.2);
    min-height: 44px;
    min-width: 44px;
}

.app-bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(139, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.app-bottom-nav .nav-item.active {
    transform: scale(1.05);
}

.app-bottom-nav .nav-item.active::before {
    opacity: 1;
}

.app-bottom-nav .nav-item.active .nav-icon {
    color: #8B0000;
    transform: scale(1.1);
}

.app-bottom-nav .nav-item.active .nav-label {
    color: #8B0000;
    font-weight: 600;
}

.app-bottom-nav .nav-item:hover {
    transform: translateY(-2px);
}

.app-bottom-nav .nav-item:hover::before {
    opacity: 0.5;
}

.app-bottom-nav .nav-item:hover .nav-icon {
    color: #8B0000;
}

.app-bottom-nav .nav-item:hover .nav-label {
    color: #8B0000;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* APP风格主内容区域 */
.app-main {
    margin-top: 60px;
    margin-bottom: 70px;
    min-height: calc(100vh - 130px);
    background: #f5f5f5;
    padding: 0;
}

.app-section {
    display: none;
    min-height: calc(100vh - 130px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* APP风格页面头部 */
.app-page-header {
    background: white;
    padding: 20px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.app-page-header .page-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.app-page-header .page-title p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* APP风格标签栏 */
.app-tab-bar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

.tab-scroll {
    display: flex;
    overflow-x: auto;
    padding: 0 16px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

/* 手机端滑动优化 */
@media (max-width: 768px) {
    .tab-scroll {
        position: relative;
        /* 移除可能造成遮挡的渐变遮罩 */
    }
}

.app-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.app-tab.active {
    background: #8B0000 !important;
    color: #ffffff !important;
    border-color: #8B0000 !important;
    transform: scale(1.05);
}

.app-tab:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: #8B0000;
}

/* APP风格卡片列表 */
.app-card-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.card-avatar {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8B0000, #A52A2A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.card-info .founder {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.card-action {
    color: #ccc;
    font-size: 14px;
}

.card-content {
    padding: 16px;
}

.card-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

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

.card-details .highlight {
    background: rgba(139, 0, 0, 0.1);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
    border-left: 4px solid #8B0000;
}

.detail-section {
    margin-bottom: 16px;
}

.detail-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #8B0000;
    margin: 0 0 8px 0;
}

.detail-section p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.detail-section ul {
    margin: 0;
    padding-left: 16px;
}

.detail-section li {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .app-header {
        height: 56px;
        padding: 0 12px;
    }
    
    .header-title h1 {
        font-size: 16px;
    }
    
    .header-title .subtitle {
        font-size: 11px;
    }
    
    .app-bottom-nav {
        height: 64px;
    }
    
    /* 手机端导航标签字体优化 */
    .nav-label {
        font-size: 13px; /* 从11px增加到13px */
    }
    
    .app-main {
        margin-top: 56px;
        margin-bottom: 64px;
        min-height: calc(100vh - 120px);
    }
    
    .app-section {
        min-height: calc(100vh - 120px);
    }
    
    .app-page-header {
        padding: 16px 12px;
    }
    
    .app-page-header .page-title h2 {
        font-size: 20px;
    }
    
    .app-page-header .page-title p {
        font-size: 13px;
    }
    
    /* 手机端标签栏优化 */
    .app-tab-bar {
        padding: 8px 0;
    }
    
    .tab-scroll {
        padding: 0 16px;
        gap: 8px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .tab-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .app-tab {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 50px;
        text-align: center;
        border: 2px solid #8B0000;
        border-radius: 25px;
        background: white;
        color: #8B0000;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(139, 0, 0, 0.1);
        flex-shrink: 0;
    }
    
    .app-tab.active {
        background: #8B0000;
        color: white;
        border-color: #8B0000;
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(139, 0, 0, 0.3);
    }
    
    .app-tab:hover {
        background: rgba(139, 0, 0, 0.1);
        border-color: #8B0000;
        transform: translateY(-1px);
        box-shadow: 0 3px 6px rgba(139, 0, 0, 0.2);
    }
    
    .app-tab:active {
        transform: scale(0.95) !important;
        box-shadow: 0 1px 2px rgba(139, 0, 0, 0.2) !important;
        transition: transform 0.1s ease !important;
    }
    
    .app-card-list {
        padding: 12px;
        gap: 12px;
    }
    
    .card-header {
        padding: 12px;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .card-image {
        height: 160px;
        margin-bottom: 12px;
    }
    
    /* 手机端统一图片大小 */
    .school-img {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
    }
    
    .school-photo {
        height: 180px !important;
        object-fit: cover !important;
        object-position: center 25% !important;
    }
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999; /* 提高z-index确保在最顶层 */
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-top: 2px solid #8B0000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-height: 60px;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease; /* 减少过渡时间 */
    border-radius: 12px;
    margin: 0 4px;
    flex: 1;
    max-width: 100px;
    position: relative;
    overflow: hidden;
    /* 确保点击区域正确 */
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(139, 0, 0, 0.3); /* 增强点击反馈 */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* 按钮样式重置 */
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    /* 增加触摸区域 */
    min-height: 44px; /* iOS推荐的最小触摸区域 */
    min-width: 44px;
}

.bottom-nav .nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.bottom-nav .nav-item:hover::before {
    left: 100%;
}

.bottom-nav .nav-item i {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 4px;
    transition: color 0.15s ease, transform 0.1s ease; /* 减少过渡时间 */
}

.bottom-nav .nav-item span {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    transition: color 0.15s ease; /* 减少过渡时间 */
}

.bottom-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(165, 42, 42, 0.05) 100%);
    transform: translateY(-2px);
}

.bottom-nav .nav-item.active i {
    color: #8B0000;
    transform: scale(1.1);
}

.bottom-nav .nav-item.active span {
    color: #8B0000;
    font-weight: 600;
}

.bottom-nav .nav-item:hover {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.08) 0%, rgba(165, 42, 42, 0.03) 100%);
    transform: translateY(-1px);
}

.bottom-nav .nav-item:hover i {
    color: #8B0000;
    transform: scale(1.05);
}

.bottom-nav .nav-item:hover span {
    color: #8B0000;
}

/* 触摸反馈效果 */
.bottom-nav .nav-item:active {
    transform: scale(0.95) !important;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.15) 0%, rgba(165, 42, 42, 0.08) 100%) !important;
    transition: transform 0.05s ease !important;
}

.bottom-nav .nav-item:active i {
    color: #8B0000 !important;
    transform: scale(1.05) !important;
}

.bottom-nav .nav-item:active span {
    color: #8B0000 !important;
    font-weight: 600 !important;
}

/* 桌面端和移动端显示控制 */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: flex;
    }
    
    /* 移动端底部导航栏优化 */
    .bottom-nav {
        padding: 6px 0;
        min-height: 55px;
        border-top: 3px solid #8B0000;
    }
    
    .bottom-nav .nav-item {
        padding: 6px 8px;
        margin: 0 2px;
        border-radius: 10px;
    }
    
    .bottom-nav .nav-item i {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .bottom-nav .nav-item span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    /* 小屏幕底部导航栏进一步优化 */
    .bottom-nav {
        padding: 4px 0;
        min-height: 50px;
        border-top: 2px solid #8B0000;
    }
    
    .bottom-nav .nav-item {
        padding: 4px 6px;
        margin: 0 1px;
        border-radius: 8px;
    }
    
    .bottom-nav .nav-item i {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .bottom-nav .nav-item span {
        font-size: 0.65rem;
    }
}

/* ===== 与APP风格对齐的移动端大改 ===== */
@media (max-width: 768px) {
    body {
        background: #f5f5f5;
        color: #333;
        padding: 0;
        margin: 0;
    }

    /* 移动端隐藏侧边栏容器 */
    .sidebar-container { display: none; }

    /* 主内容与APP一致的卡片化视觉 */
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .section {
        background: var(--card-bg, #fff);
        border-radius: 16px;
        padding: 1rem;
        box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.1));
        border: 1px solid var(--border-color, #e9ecef);
        margin-bottom: 1rem;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
        border-bottom: 2px solid var(--border-color, #e9ecef);
    }
    .section-header h2 { color: var(--primary-color, #8B0000); font-size: 1.2rem; }

    /* 顶部流派标签条固定，便于切换 */
    .school-tabs {
        display: flex;
        gap: 6px; /* 减少间距 */
        overflow-x: auto;
        padding: 6px 4px 8px; /* 减少内边距 */
        margin: 0 -12px 8px; /* 减少下边距 */
        padding-left: 12px;
        padding-right: 12px;
        position: sticky;
        top: 60px; /* 避开顶部导航 */
        z-index: 1000;
        background: rgba(255,255,255,0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0,0,0,0.06);
        /* 隐藏滚动条 */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .school-tabs::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        white-space: nowrap;
        font-size: 0.85rem; /* 减小字体 */
        padding: 6px 12px; /* 减少内边距 */
        border-radius: 16px; /* 减小圆角 */
        background: var(--card-bg, #fff);
        border: 1px solid rgba(165, 201, 183, 0.5);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        /* 移动端优化 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(139, 0, 0, 0.2);
        transition: all 0.15s ease;
        min-width: 44px; /* 确保最小触摸区域 */
        text-align: center;
    }
    .tab-btn.active { 
        background: var(--secondary-color, #DAA520); 
        color: #fff; 
        border-color: var(--secondary-color, #DAA520); 
        transform: scale(1.02);
    }
    .tab-btn:active { 
        transform: scale(0.95); 
        background: rgba(139, 0, 0, 0.1);
    }

    /* 流派卡片信息流 */
    .schools-container { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .school-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--border-color, #e9ecef); box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.1)); background: #fff; }
    .school-header { padding: 14px 14px 0; }
    .school-header h3 { 
        color: #8B0000; 
        font-size: 1.15rem; 
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    .founder { font-size: 0.9rem; color: #6c757d; margin-top: 4px; }
    .school-content { display: flex; flex-direction: column; }
    .school-img { width: 100%; height: auto; min-height: 180px; }
    .school-photo { width: 100%; height: auto; display: block; object-fit: cover; }
    .school-details { padding: 12px 14px 14px; }
    .school-details h4 { font-size: 1rem; margin: 10px 0 6px; color: var(--primary-color, #8B0000); }
    .highlight { font-size: 0.98rem; color: #5A3E36; background: rgba(165,201,183,0.12); padding: 8px 10px; border-radius: 10px; }
    .representative-works li { margin-left: 1rem; margin-bottom: 6px; }

    /* 分支与非遗卡片对齐APP样式 */
    .branches-container { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .branch-card, .heritage-card { background: #fff; border: 1px solid var(--border-color, #e9ecef); border-radius: 12px; box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.1)); padding: 14px; }

    /* 新闻列表在移动端采用卡片化 */
    .news-container { display: block; }
    .news-list .news-item { display: flex; gap: 12px; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--border-color, #e9ecef); box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.1)); margin-bottom: 10px; }
    .news-date { min-width: 54px; text-align: center; background: linear-gradient(135deg, var(--primary-color, #8B0000), #A52A2A); color: #fff; border-radius: 10px; padding: 6px 4px; }
    .news-date .day { display: block; font-size: 1.1rem; font-weight: 700; }
    .news-date .month { display: block; font-size: 0.8rem; opacity: 0.85; }
    .news-content h3 { font-size: 1rem; color: var(--primary-color, #8B0000); margin-bottom: 6px; }
    .news-content p { font-size: 0.9rem; color: var(--text-color, #5A3E36); margin-bottom: 8px; }
    .news-link { color: var(--primary-color, #8B0000); font-weight: 600; }
}
/* 顶部导航栏最简样式：加粗顶部红色边框 */
.top-nav-bar.minimal {
    border-top: 6px solid #8B0000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.top-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    min-height: 60px;
}

.nav-title-section {
    flex: 1;
    text-align: center;
    margin: 0 20px;
}

.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #8B0000;
    margin: 0;
    font-family: "华文楷体", "KaiTi", "Microsoft YaHei", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 2px 0 0 0;
    font-weight: 500;
    opacity: 0.8;
}

.nav-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.nav-decoration i {
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.nav-decoration:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 16px rgba(139, 0, 0, 0.35);
}

.nav-decoration:hover i {
    transform: scale(1.1);
}

/* 导航栏动画效果 */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-nav-bar.minimal {
    animation: navSlideIn 0.6s ease-out;
}

/* 页面标题动画 */
@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    animation: titleFadeIn 0.8s ease-out 0.2s both;
}

.page-subtitle {
    animation: titleFadeIn 0.8s ease-out 0.4s both;
}

/* 装饰元素动画 */
@keyframes decorationRotate {
    from {
        transform: rotate(0deg) scale(0.8);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

.nav-decoration {
    animation: decorationRotate 0.8s ease-out 0.6s both;
}

/* 返回按钮动画 */
@keyframes backButtonSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.back-button {
    animation: backButtonSlide 0.6s ease-out 0.1s both;
}
/* 基础样式 */

/* 返回按钮样式 */
.back-button {
    position: fixed;
    top: 2px;
    left: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-top: 4px solid #8B0000;
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

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

.back-button:hover::before {
    left: 100%;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: rgba(139, 0, 0, 0.25);
}

.back-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2), 0 8px 24px rgba(139, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.back-button i {
    font-size: 16px;
    color: #8B0000;
    transition: all 0.3s ease;
}

.back-button span {
    font-size: 14px;
    font-weight: 600;
    color: #5A3E36;
    transition: all 0.3s ease;
}

.back-button:hover i {
    color: #A52A2A;
    transform: translateX(-2px);
}

.back-button:hover span {
    color: #8B0000;
}

/* 移动端返回按钮优化 */
@media (max-width: 768px) {
    .top-nav-content {
        padding: 6px 15px;
        min-height: 50px;
    }
    
    .nav-title-section {
        margin: 0 15px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .page-subtitle {
        font-size: 0.8rem;
    }
    
    .nav-decoration {
        width: 35px;
        height: 35px;
    }
    
    .nav-decoration i {
        font-size: 1rem;
    }
    
    .back-button {
        top: 2px;
        left: 15px;
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 10px;
        box-shadow: 0 6px 20px rgba(139, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    .back-button i {
        font-size: 15px;
    }
    
    .back-button span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .top-nav-content {
        padding: 4px 12px;
        min-height: 45px;
    }
    
    .nav-title-section {
        margin: 0 12px;
    }
    
    .page-title {
        font-size: 1.1rem;
    }
    
    .page-subtitle {
        font-size: 0.75rem;
    }
    
    .nav-decoration {
        width: 30px;
        height: 30px;
    }
    
    .nav-decoration i {
        font-size: 0.9rem;
    }
    
    .back-button {
        top: 0px;
        left: 12px;
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 8px;
        box-shadow: 0 4px 16px rgba(139, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.12);
    }
    
    .back-button i {
        font-size: 14px;
    }
    
    .back-button span {
        font-size: 12px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-light: #f8f6f2;
    --primary-color: #a5c9b7;
    --accent-color: #e8c7c3;
    --text-color: #5a5a5a;
    --text-dark: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --icon-color: #f8b6b6; /* 新增淡红色变量 */
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-family: "华文楷体", "KaiTi", "Microsoft YaHei", sans-serif;
    position: relative;
    color: #333;
}

/* 左侧目录样式 */
.sidebar-container {
    position: relative;
    height: 100vh;
}

.sidebar {
    width: 60px; /* 默认收起宽度 */
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border: 1px solid rgba(154, 59, 38, 0.12);
    border-right: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 0 12px 12px 0;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 80; /* 低于导航菜单的z-index */
    position: fixed;
    overflow: hidden;
    top: 95px; /* 从导航菜单下方开始 */
    height: calc(100% - 95px); /* 减去顶部空间后的高度 */
}

/* 鼠标悬停时展开 */
.sidebar-container:hover .sidebar {
    width: 260px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
    border-right-color: rgba(212, 175, 55, 0.38);
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header i {
    font-size: 24px;
    color: var(--icon-color); /* 改为淡红色 */
}

.sidebar-header h2 {
    color: var(--text-dark);
    font-size: 20px;
    display: none; /* 默认隐藏文字 */
}

/* 展开时显示文字 */
.sidebar-container:hover .sidebar-header h2 {
    display: block;
}

.sidebar-menu {
    list-style: none;
    margin: 20px 0;
    flex-grow: 1;
}

.menu-item {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background-color: rgba(165, 201, 183, 0.1);
}

.menu-item.active {
    background-color: rgba(165, 201, 183, 0.15);
    border-left-color: var(--primary-color);
}

.menu-item i {
    font-size: 18px;
    color: var(--icon-color); /* 改为淡红色 */
    width: 24px;
    text-align: center;
}

.menu-item span {
    color: var(--text-dark);
    font-weight: 500;
    display: none; /* 默认隐藏文字 */
}

/* 展开时显示文字 */
.sidebar-container:hover .menu-item span {
    display: block;
}

.sidebar-footer {
    padding: 20px;
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: none; /* 默认隐藏 */
}

/* 展开时显示底部文字 */
.sidebar-container:hover .sidebar-footer {
    display: block;
}

/* 主内容区域 */
.main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
    margin-left: 60px;
    transition: var(--transition);
    margin-top: 70px; /* 给顶部导航留出空间 */
    min-height: calc(100vh - 70px); /* 确保内容区域高度正确 */
}

/* 侧边栏展开时调整主内容区域 */
.sidebar-container:hover ~ .main-content {
    margin-left: 260px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 首页样式 */

/* 首页英雄区调整 */
.hero-banner {
    background: linear-gradient(135deg, rgba(165, 201, 183, 0.2) 0%, rgba(232, 199, 195, 0.2) 100%);
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px; /* 额外增加一点间距 */
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: #93b4a5;
    transform: translateY(-2px);
}

/* 修改首页特色板块样式，实现3个一行 */
.featured-section {
    margin-bottom: 50px;
}

.featured-section h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 固定3列布局 */
    gap: 25px;
    max-width: 1200px; /* 限制最大宽度，避免在超宽屏幕上拉伸过大 */
    margin: 0 auto; /* 居中显示 */
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%; /* 确保卡片高度一致 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--icon-color); /* 改为淡红色 */
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 中等屏幕显示2列 */
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* 小屏幕显示1列 */
    }


    .nav-menu {
        padding: 0.6rem 0;
        gap: 0.5rem;
    }

    .sidebar {
        position: fixed;
        top: 36px; /* 继续上移，进一步节省空间 */
        left: 50%;
        right: auto;
        width: 66.6667%; /* 导航栏宽度缩短为原来的三分之二 */
        transform: translateX(-50%);
        height: auto;
        padding: 4px 4px;
        border-radius: 0;
        z-index: 900; /* 低于返回按钮(1001)，高于内容 */
    }
    
    .main-content {
        margin-top: 88px; /* 进一步提升首屏内容可视区域 */
        margin-left: 0;
        padding: 0 15px 15px;
    }
    
    .sidebar-container:hover ~ .main-content {
        margin-left: 0;
    }
}

    @media (max-width: 992px) {
        .nav-menu {
            padding: 0.8rem 0;
        }
        .nav-item {
            padding: 0.6rem 1rem;
            font-size: 1rem;
        }
        .category-nav {
            left: 10px;
            top: 80px;
            padding: 10px;
        }
        .category-item {
            padding: 8px 15px;
            font-size: 0.9rem;
        }
    }


/* 流派传承样式 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px 20px;
}

.section-header h2 {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* —— 标题栏视觉强化 —— */
.section-header {
    position: relative;
}

/* 左侧竖向色条（在居中标题的左侧形成仪式感） */
.section-header h2 {
    position: relative;
    display: inline-block;
    padding-left: 18px;
}

/* 移除原有的细条与下划线，改用大面积装饰 */
.section-header h2::before { display: none; }
.section-header h2::after { display: none; }

/* 小标题（副标题）弱化与字距优化，提高可读性 */
.section-header p {
    color: var(--text-color);
    letter-spacing: 0.3px;
}

/* —— 分区主题：大改版 —— */
/* 流派传承：巨幅背景字 + 底纹 + 顶部装饰带 */
#schools .section-header {
    padding-top: 36px;
    padding-bottom: 28px;
    background:
        radial-gradient(120px 120px at 20% 35%, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.0) 70%),
        radial-gradient(160px 160px at 80% 65%, rgba(0,0,0,0.025) 0%, rgba(0,0,0,0.0) 70%),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.02), rgba(0,0,0,0.02) 2px, transparent 2px, transparent 6px);
    background-blend-mode: multiply;
    border-radius: 12px;
}

#schools .section-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    background: linear-gradient(90deg, #7fb9a4 0%, #e8c7c3 100%);
    border-radius: 6px;
}

#schools .section-header::after {
    content: '流派传承';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 6px;
    font-size: 72px;
    letter-spacing: 8px;
    color: rgba(127, 185, 164, 0.08);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

#schools .section-header h2 {
    font-size: 2.4rem;
    padding-left: 56px; /* 为徽章预留空间 */
    position: relative;
}

/* 流派传承徽章（戏剧面具） */
#schools .section-header h2::before {
    content: '🎭';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7fb9a4, #e8c7c3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    font-size: 22px;
}

#schools .section-header p {
    margin-top: 8px;
}

/* 新闻动态：金红装饰带 + 巨幅背景字 */
#news .section-header {
    padding-top: 36px;
    padding-bottom: 28px;
    background:
        radial-gradient(120px 120px at 25% 35%, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.0) 70%),
        radial-gradient(160px 160px at 75% 65%, rgba(0,0,0,0.025) 0%, rgba(0,0,0,0.0) 70%),
        repeating-linear-gradient(0deg, rgba(0,0,0,0.02), rgba(0,0,0,0.02) 2px, transparent 2px, transparent 6px);
    background-blend-mode: multiply;
    border-radius: 12px;
}

#news .section-header::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    background: linear-gradient(90deg, #d4af37 0%, #9a3b26 100%);
    border-radius: 6px;
}

#news .section-header::after {
    content: '新闻动态';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 6px;
    font-size: 72px;
    letter-spacing: 8px;
    color: rgba(212, 175, 55, 0.10);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

#news .section-header h2 {
    font-size: 2.4rem;
    padding-left: 56px; /* 为徽章预留空间 */
    position: relative;
}

/* 新闻动态徽章（铃铛/快讯） */
#news .section-header h2::before {
    content: '📰';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #9a3b26);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    font-size: 22px;
}

#news .section-header p {
    margin-top: 8px;
}

/* 响应式微调：小屏适配标题尺寸与间距 */
@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
        padding-left: 44px; /* 移动端徽章更小，预留空间缩小 */
    }
    
    /* 新闻动态标题在手机端进一步缩小 */
    #news .section-header h2 {
        font-size: 1.4rem; /* 从1.8rem缩小到1.4rem */
    }
    
    /* 新闻动态页面底部间距优化，防止订阅按键被遮挡 */
    #news .app-section {
        padding-bottom: 20px; /* 为订阅表单留出额外空间 */
    }
    
    .sidebar-card {
        margin-bottom: 30px; /* 增加卡片底部间距 */
    }
    
    .subscribe-form {
        margin-bottom: 20px; /* 订阅表单底部额外间距 */
    }
    
    .section-header p {
        font-size: 1rem;
    }
    #schools .section-header::after,
    #news .section-header::after {
        font-size: 42px;
        letter-spacing: 4px;
        top: 8px;
    }
    #schools .section-header::before,
    #news .section-header::before {
        height: 8px;
        border-radius: 4px;
    }
    #schools .section-header h2::before,
    #news .section-header h2::before {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* 流派标签样式 */
.school-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:hover {
    background: rgba(165, 201, 183, 0.1);
}

/* 流派卡片样式 */
.schools-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.school-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.school-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.school-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 20px 30px;
}

.school-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.founder {
    font-style: italic;
    opacity: 0.9;
}

.school-content {
    display: flex;
    flex-wrap: wrap;
}

.school-img {
    flex: 0 0 300px;
    height: 300px;
    background: linear-gradient(135deg, #a5c9b7 0%, #e8c7c3 100%);
    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 60px; /* 增加上边距 */
}

/* 让整卡可点击的视觉反馈 */
.school-card {
    cursor: pointer;
}
.school-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.school-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transform: translateY(-2px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.school-details {
    flex: 1;
    padding: 30px;
}

.highlight {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(165, 201, 183, 0.2);
}

.artistic-features, .representative-works, .inheritors {
    margin-bottom: 25px;
}

.school-details h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 折叠容器与按钮 */
.collapsible {
    overflow: hidden;
    max-height: 0; /* 默认折叠（移动端） */
    transition: max-height 0.35s ease;
}

.toggle-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.toggle-more {
    background: linear-gradient(135deg, var(--primary-color, #8B0000) 0%, #A52A2A 100%);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-more:active { transform: scale(0.98); }
.toggle-more i { font-size: 0.9rem; }

/* 展开状态：图标旋转 */
.school-card.expanded .toggle-more i {
    transform: rotate(180deg);
    transition: transform 0.25s ease;
}

/* 展开状态在桌面端常开 */
@media (min-width: 769px) {
    .school-card.expanded .collapsible {
        max-height: 1000px; /* 足够展示全部内容（JS 会实时撑满） */
    }
}

.representative-works ul, .inheritors p, .heritage-card ul {
    padding-left: 20px;
}

.representative-works li {
    margin-bottom: 10px;
}

.representative-works strong {
    color: var(--text-dark);
}

/* 分支流派样式 */
.branch-schools {
    margin-top: 20px;
}

.branches-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.branch-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.branch-card h3 {
    color: #8B0000;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    font-size: 18px;
    font-weight: 600;
}

.branch-card ul {
    padding-left: 20px;
    margin: 0;
}

.branch-card li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #333;
}

.branch-card strong {
    color: #8B0000;
    font-weight: 600;
}

/* 非遗传承样式 */
.heritage-development {
    margin-top: 40px;
}

.heritage-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.heritage-card p {
    margin-bottom: 15px;
}

.heritage-card h3 {
    color: var(--text-dark);
    margin: 20px 0 10px;
    font-size: 1.4rem;
}

/* APP风格行当特色面板 */
.features-panel.app-panel {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, calc(100% - 24px));
    max-height: 70vh;
    overflow: hidden;
    background: #f8f9fa;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 10000;
    padding: 0;
    backdrop-filter: saturate(140%) blur(8px);
    display: flex;
    flex-direction: column;
}

.features-panel[hidden] { display: none; }

/* APP风格面板头部 */
.app-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    border-radius: 16px 16px 0 0;
    color: white;
    position: relative;
    z-index: 1;
}

.app-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-panel-title i {
    font-size: 20px;
    color: rgba(255,255,255,0.9);
}

.app-panel-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.app-close-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.app-close-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.app-close-btn:active {
    transform: scale(0.95);
}

/* APP风格内容区域 */
.app-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.app-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #8B0000;
}

.app-section-title i {
    font-size: 16px;
    color: #8B0000;
}

.app-section-title span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* APP风格卡片列表 */
.app-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.app-feature-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(139, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.app-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 20px;
    color: white;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: #8B0000;
}

.card-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #8B0000;
}

.item-name {
    font-weight: 600;
    color: #8B0000;
    font-size: 14px;
}

.item-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* APP风格非遗传承卡片 */
.app-heritage-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid rgba(139, 0, 0, 0.1);
    margin-bottom: 20px;
}

.heritage-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.heritage-header i {
    font-size: 20px;
    color: #8B0000;
}

.heritage-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #8B0000;
}

.heritage-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.heritage-highlight {
    margin-bottom: 20px;
}

.heritage-highlight h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.heritage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.heritage-tag {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.heritage-examples h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.example-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #8B0000;
}

.example-item i {
    font-size: 14px;
    color: #8B0000;
    margin-top: 2px;
    flex-shrink: 0;
}

.example-item span {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .features-panel.app-panel {
        top: auto;
        bottom: 64px;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-height: none;
        height: calc(100vh - 64px);
        border-radius: 16px 16px 0 0;
        animation: sheetIn 220ms ease-out;
    }
    
    .app-panel-header {
        padding: 12px 16px;
        border-radius: 16px 16px 0 0;
    }
    
    .app-panel-title h2 {
        font-size: 16px;
    }
    
    .app-close-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .app-panel-content {
        padding: 16px;
    }
    
    .app-section-title {
        padding: 10px 12px;
        margin-bottom: 12px;
    }
    
    .app-section-title span {
        font-size: 14px;
    }
    
    .app-feature-card {
        padding: 16px;
        gap: 12px;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .card-icon i {
        font-size: 16px;
    }
    
    .card-content h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .card-item {
        padding: 10px;
    }
    
    .item-name {
        font-size: 13px;
    }
    
    .item-desc {
        font-size: 12px;
    }
    
    .app-heritage-card {
        padding: 16px;
    }
    
    .heritage-header h3 {
        font-size: 16px;
    }
    
    .heritage-content p {
        font-size: 13px;
    }
    
    .heritage-highlight h4,
    .heritage-examples h4 {
        font-size: 14px;
    }
    
    .heritage-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .example-item {
        padding: 10px;
    }
    
    .example-item i {
        font-size: 12px;
    }
    
    .example-item span {
        font-size: 12px;
    }
}

/* 顶部栏与关闭按钮 */
.features-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 8px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255,255,255,0.98);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.features-panel-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.features-close {
    appearance: none;
    border: none;
    background: rgba(0,0,0,0.06);
    width: 44px; /* 增加触摸区域 */
    height: 44px; /* 增加触摸区域 */
    border-radius: 8px;
    font-size: 18px; /* 增大字体 */
    line-height: 44px; /* 调整行高 */
    text-align: center;
    cursor: pointer;
    /* 移动端优化 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
    /* 确保可点击 */
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.features-close:hover {
    background: rgba(0,0,0,0.12);
    transform: scale(1.05);
}

.features-close:active { 
    transform: scale(0.95); 
    background: rgba(0,0,0,0.18);
}

/* 背景遮罩 */
.features-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.features-backdrop[hidden] { display: none; }

/* 打开/关闭动画 */
@keyframes sheetIn {
    from { 
        transform: translateY(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

@keyframes sheetOut {
    from { 
        transform: translateY(0); 
        opacity: 1; 
    }
    to { 
        transform: translateY(100%); 
        opacity: 0; 
    }
}

@media (hover: hover) {
    .top-quick-nav .top-link { padding: 10px 14px; }
}

/* 移动端点击区域与滚动优化 */
@media (max-width: 768px) {
    .top-quick-nav .top-link { padding: 12px 16px; }
    .features-panel { overscroll-behavior: contain; }
}

/* 顶栏按钮高亮（面板打开时） */
#navFeatures.is-active,
.top-quick-nav .top-link.is-active {
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
}

/* 面板目录（TOC） */
.features-toc {
    position: sticky;
    top: 8px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 12px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0.92));
}

.features-toc a {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-dark);
    background: rgba(0,0,0,0.04);
    border-radius: 999px;
    text-decoration: none;
}

.features-toc a.active {
    background: var(--primary-weak, #f0f6ff);
    color: var(--primary, #2b6cff);
}

/* 拖拽手柄区域（使用头部栏） */
#features-drag-handle {
    touch-action: pan-y; /* 允许垂直拖拽，但允许点击 */
    cursor: grab;
}

#features-drag-handle:active { cursor: grabbing; }

/* 确保关闭按钮不受拖拽影响 */
#features-close {
    touch-action: manipulation !important;
    pointer-events: auto !important;
}

/* 动效可访问性：遵循减少动态偏好 */
@media (prefers-reduced-motion: reduce) {
    .features-panel { animation: none !important; }
    * { transition-duration: 1ms !important; }
}

.heritage-card ul li {
    margin-bottom: 10px;
}

/* 剧目欣赏样式 */
.performance-container {
    display: flex;
    gap: 30px;
}

.video-player {
    flex: 2;
}

.main-video {
    background: linear-gradient(135deg, #a5c9b7 0%, #e8c7c3 100%);
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.video-placeholder {
    text-align: center;
    color: white;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--icon-color); /* 改为淡红色 */
}

.video-info h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.performance-list {
    flex: 1;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.performance-list h3 {
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.performance-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.performance-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.performance-item:hover {
    background: rgba(165, 201, 183, 0.1);
}

.performance-item.active {
    background: rgba(165, 201, 183, 0.2);
}


.item-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.item-thumb i {
    color: var(--icon-color); /* 改为淡红色 */
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    z-index: 2;
    transition: all 0.3s ease;
}

.item-info h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.item-info p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* 新闻动态样式 */
.news-container {
    display: flex;
    gap: 30px;
}

.news-list {
    flex: 2;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    min-width: 80px;
}

.news-date .day {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 0.9rem;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
}

.news-content h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.news-content p {
    margin-bottom: 15px;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    text-decoration: underline;
}

.news-sidebar {
    flex: 1;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.event-list {
    list-style: none;
}

.event-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.event-date {
    color: var(--primary-color);
    font-weight: 500;
}

.event-title {
    color: var(--text-color);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subscribe-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.subscribe-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-form button:hover {
    background: #93b4a5;
}

/* 订阅成功提示样式 */
.subscribe-success {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    margin-top: 15px;
    animation: slideInUp 0.3s ease-out;
}

.success-icon {
    flex-shrink: 0;
}

.success-icon i {
    font-size: 24px;
    color: #28a745;
}

.success-message h4 {
    margin: 0 0 5px 0;
    color: #155724;
    font-size: 16px;
    font-weight: 600;
}

.success-message p {
    margin: 0;
    color: #155724;
    font-size: 14px;
    line-height: 1.4;
}

/* 订阅成功动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 手机端订阅成功提示优化 */
@media (max-width: 768px) {
    .subscribe-success {
        padding: 16px;
        gap: 12px;
        margin-top: 12px;
    }
    
    .success-icon i {
        font-size: 20px;
    }
    
    .success-message h4 {
        font-size: 15px;
    }
    
    .success-message p {
        font-size: 13px;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .performance-container,
    .news-container {
        flex-direction: column;
    }
    
    .sidebar-container:hover .sidebar {
        width: 70px;
    }
    
    .sidebar-header h2,
    .menu-item span,
    .sidebar-footer {
        display: none !important;
    }
    
    .sidebar-header {
        justify-content: center;
        padding: 15px;
    }
    
    .menu-item {
        justify-content: center;
        padding: 15px;
    }
    
}

@media (max-width: 768px) {
    .sidebar-container {
        width: 100%;
        height: auto;
    }
    
    .sidebar {
        width: 100%;
        padding: 10px 0;
        position: relative;
        height: auto;
    }
    
    .sidebar-container:hover .sidebar {
        width: 100%;
    }
    
    .sidebar-menu {
        display: flex;
        justify-content: space-around;
        margin: 10px 0;
    }
    
    .menu-item {
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .menu-item i {
        font-size: 1.2rem;
    }
    
    .menu-item span {
        display: block !important;
    }
    
    .main-content {
        padding: 15px;
        margin-left: 0 !important;
    }
    
    .sidebar-container:hover ~ .main-content {
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .school-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 4px 4px 8px;
        position: sticky;
        top: 90px; /* 贴近主内容上沿 */
        z-index: 90;
        background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82));
        -webkit-backdrop-filter: saturate(140%) blur(10px);
        backdrop-filter: saturate(140%) blur(10px);
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    
    .tab-btn {
        white-space: nowrap;
        font-size: 0.92rem;
        padding: 8px 14px;
        border-radius: 18px;
        background: rgba(255,255,255,0.9);
        border-color: rgba(165, 201, 183, 0.5);
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .tab-btn.active { box-shadow: 0 4px 14px rgba(165,201,183,0.25); }
    .tab-btn:active { transform: scale(0.98); }
    
    /* School card mobile layout */
    .schools-container { gap: 20px; }
    .school-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.96);
        border: 1px solid rgba(0,0,0,0.06);
    }
    .school-header { padding: 16px 18px; }
    .school-header h3 { 
        font-size: 1.25rem; 
        color: #8B0000;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    .founder { font-size: 0.9rem; opacity: 0.85; }
    .school-content { flex-direction: column; }
    .school-img {
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 180px;
        border-radius: 0;
        margin-top: 0;
    }
    .school-photo { border-radius: 0; }
    .school-details { padding: 16px; }
    .highlight { font-size: 1rem; margin-bottom: 14px; }
    .school-details h4 { font-size: 1.05rem; }
    .representative-works li { font-size: 0.95rem; }
    
    /* Reduce vertical rhythm for dense mobile reading */
    .section-header { margin-bottom: 24px; padding: 0 12px 16px; }
    .section-header h2 { font-size: 1.6rem; }
    
    /* 新闻动态标题在手机端进一步缩小 */
    #news .section-header h2 { font-size: 1.2rem; }
    
    /* 新闻动态页面底部间距优化，防止订阅按键被遮挡 */
    #news .app-section {
        padding-bottom: 20px; /* 为订阅表单留出额外空间 */
    }
    
    .sidebar-card {
        margin-bottom: 30px; /* 增加卡片底部间距 */
    }
    
    .subscribe-form {
        margin-bottom: 20px; /* 订阅表单底部额外间距 */
    }
    
    .section-header p { font-size: 0.98rem; }
    
    /* Branch and heritage cards */
    .branches-container { grid-template-columns: 1fr; gap: 16px; }
    .branch-card { padding: 16px; border-radius: 10px; }
    .heritage-card { padding: 18px; border-radius: 10px; }
    
    /* Improve touch targets for links */
    .news-link { padding: 8px 0; display: inline-flex; align-items: center; }
}


@media (max-width: 768px) {
    /* 非缩放实现：通过收紧内边距等效减少视觉高度 */
    body > .sidebar-container > div {
        padding-top: 2px;
        padding-bottom: 2px;
    }
    body > .sidebar-container > div .menu-item {
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕进一步收紧 */
    body > .sidebar-container > div {
        padding-top: 1px;
        padding-bottom: 1px;
    }
    body > .sidebar-container > div .menu-item {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

@media (max-width: 360px) {
    /* 超小屏幕最紧凑布局 */
    body > .sidebar-container > div {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    body > .sidebar-container > div .menu-item {
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

.nav-menu {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 24px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: saturate(140%) blur(14px);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.nav-item {
    color: #3a2b27;
    text-decoration: none;
    font-size: 1.02rem;
    padding: 0.7rem 1.1rem;
    border-radius: 12px;
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(154, 59, 38, 0.22);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    margin: 0 0.25rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.nav-item i {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* 顶部导航图标颜色保持不变 */
}

.nav-item:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    color: #1f1715;
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(154, 59, 38, 0.18);
}

.nav-item.active {
    background: linear-gradient(180deg, rgba(212,175,55,0.22), rgba(212,175,55,0.08));
    color: #9a3b26;
    border-color: rgba(212,175,55,0.8);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(212, 175, 55, 0.22);
}

/* 移动端触摸时的:active伪类样式 */
.nav-item:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(154, 59, 38, 0.22);
}

/* 确保只有当前页面的导航项保持高亮状态 */
.nav-item:not(.active) {
    background: rgba(255,255,255,0.65);
    color: #4b3a36;
    border-color: rgba(154,59,38,0.15);
}

.nav-item:not(.active):hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    color: #1f1715;
    border-color: rgba(212, 175, 55, 0.6);
}

/* 游戏导航按钮样式 */
.game-nav-item {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border-radius: 8px;
    margin: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.game-nav-item::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;
}

.game-nav-item:hover::before {
    left: 100%;
}

.game-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.game-nav-item:active {
    transform: translateY(0);
}

/* 移动端游戏导航按钮 */
@media (max-width: 768px) {
    .game-nav-item {
        border-radius: 6px;
        margin: 1px;
    }
    
    .game-nav-item:hover {
        transform: translateY(-1px);
    }
}

.nav-item:hover i {
    color: #9a3b26;
    transform: translateY(-1px) scale(1.05);
}

/* 水袖动画效果 */
.nav-item::after {
    content: '';
    position: absolute;
    inset: auto 8px 8px 8px;
    height: 2px;
    background: linear-gradient(90deg, rgba(212,175,55,0), rgba(212,175,55,0.9), rgba(212,175,55,0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}

.nav-item:hover::after {
    transform: scaleX(1);
}


.school-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填满容器 */
}


/* 视频播放器样式 */
.main-video {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;



    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 (9/16 = 0.5625) */
    height: 0;
}

.main-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}






/* 视频信息样式 */
.video-info {
    margin-top: 15px;
}

.video-info h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.video-info p {
    color: var(--text-color);
    line-height: 1.6;
}



/* 添加半透明覆盖层，提高文字可读性 */
.item-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

/* 悬停效果 */
.performance-item:hover .item-thumb::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.performance-item:hover .item-thumb i {
    transform: scale(1.2);
    color: #fff;
}

/* 激活状态 */
.performance-item.active .item-thumb::before {
    background-color: rgba(165, 201, 183, 0.6);
}

.performance-item.active .item-thumb i {
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .item-thumb {
        width: 70px;
        height: 50px;
    }
    
    .item-thumb i {
        font-size: 18px;
    }
}

/* 追加移动端导航等宽与触控尺寸优化 */
@media (max-width: 768px) {
    /* 导航栏在移动端显示 */
    .nav-menu { left: 0; right: 0; transform: none; bottom: 0; border-radius: 12px 12px 0 0; max-width: 100%; padding: 10px 6px; }
    .nav-item { padding: 0.6rem 0.8rem; font-size: 0.95rem; margin: 0; flex: 1 1 auto; justify-content: center; border-radius: 10px; }
    .nav-item span { display: none; }
    .nav-item i { font-size: 1.25rem; }
    
    /* 隐藏手机端不需要的导航按钮 */
    .nav-item[href="roles.html"],
    .nav-item[href="costumes.html"],
    .nav-item[href="introduction.html"],
    .nav-item[href="history.html"],
    .nav-item[href="map.html"],
    .nav-item[href="data-analysis.html"] {
        display: none;
    }
}

@media (max-width: 480px) {
    /* 导航栏在小屏幕也显示 */
    .nav-item { padding: 0.6rem 0.4rem; border-radius: 8px; }
    .nav-item i { font-size: 1.3rem; }
    
    /* 确保小屏幕也隐藏这些导航按钮 */
    .nav-item[href="roles.html"],
    .nav-item[href="costumes.html"],
    .nav-item[href="introduction.html"],
    .nav-item[href="history.html"],
    .nav-item[href="map.html"],
    .nav-item[href="data-analysis.html"] {
        display: none;
    }
}

