﻿/* 内容区域 */
        .container {
            display: flex;
            align-items: flex-start;
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
        }

        .sidebar-title {
            writing-mode: vertical-rl;
            text-orientation: mixed;
            font-size: 40px;
            color: #333;
            position: relative;
            margin-right: 30px;
            margin-top: 10px;
            flex-shrink: 0;
            z-index: 10;
            height: 500px;
            font-family: Source Han Serif CN;
        }

        .sidebar-title::before {
            content: "";
            position: absolute;
            top: 0;
            right: -9px;
            width: 3px;
            height: 94px;
            background-color: #b32424;
            z-index: 1;
        }

        .sidebar-title::after {
            content: "";
            position: absolute;
            top: 0;
            right: -10px;
            width: 3px;
            height: 430px;
            background: linear-gradient(90deg, rgba(235, 187, 132, 1), rgba(255, 255, 255, 0.3));
        }

        .sidebar-title .en {
            position: absolute;
            left: -10px;
            font-size: 32px;
            color: rgba(204, 180, 156, 0.44);
            font-weight: bold;
            letter-spacing: 3px;
        }

		.title-text {           
            letter-spacing: 4px;
            margin-top: -12px;
        }

        .content-right {
            flex: 1;
        }

        .tab-switch {
            display: flex;
            padding: 30px 0  0 75px;
        }

        .tab-btn {
            width: 138px;
            height: 40px;
            line-height: 40px;
            margin: 0 10px;
            color: #848180;
            font-size: 16px;
            text-align: center;
            cursor: pointer;
            background: url(../imgs/his.png) no-repeat;
            border: none;
        }

        .tab-btn.active {
            background: url(../imgs/his-on.png) no-repeat;
            color: #8A1E11;
            font-weight: 600;
        }

        /* 历史沿革 */
        .history {
            background: url('../imgs/ban.png') no-repeat right top;
            background-size: 716px 896px;
        }

        .history-section img {
            width: 100%;
            display: block;
        }

        /* 领导列表 */
        .leader-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        .leader-card {
            width: 263px;
            /* height: 280px; */
            display: flex;
            flex-direction: row;
            border: 1px solid #eee;
            overflow: hidden;
        }

        .card-left {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            flex: 1;
            padding: 15px 0;
        }

        .leader-card .photo {
            height: 206px;
            max-width: 230px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f5f5f5;
        }

        .leader-card .photo img {
            width: auto;
            height: 100%;
             max-width: 230px;
            object-fit: cover;
        }

        .leader-card .info {
            flex: 1;
            /* padding: 12px 15px; */
            height: 207px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-top: 40px;
        }

        .leader-card .name {
            font-size: 24px;
            font-weight: bold;
            color: #333;
            flex-shrink: 0;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            letter-spacing: 2px;
            padding-right: 10px;
            align-self: flex-start;
            font-family: Source Han Serif CN;
        }

        .leader-card .desc {
            flex: 1;
            font-size: 13px;
            color: #666;
            line-height: 1.8;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            letter-spacing: 1px;
            width: 177px;
        }


/* ========== 移动端适配 ========== */
        @media (max-width: 768px) {
            .top-bar {
                padding: 5px 10px;
                font-size: 11px;
            }

            .header-main {
                padding: 10px 15px;
            }

            .logo img {
                height: 36px;
                margin-right: 6px;
            }

            .logo-text {
                font-size: 16px;
            }

            .nav-bar a {
                padding: 10px 12px;
                font-size: 12px;
            }

            .banner {
                height: 120px;
            }

            .banner-title h1 {
                font-size: 20px;
            }

            .banner-title {
                left: 8%;
            }

            .banner-path {
                font-size: 11px;
            }

            .sub-nav a {
                padding: 10px 15px;
                font-size: 12px;
            }

            /* 左右布局 → 上下布局 */
            .container {
                flex-direction: column;
                max-width: 100%;
                margin: 20px auto 0;
                padding: 0;
            }

            /* 竖排标题 → 横排顶部标题 */
            .sidebar-title {
                writing-mode: horizontal-tb;
                text-orientation: mixed;
                font-size: 22px;
                margin: 0 0 25px 0;
                height: auto;
                width: 100%;
                text-align: center;
                border-bottom: 1px solid #eee;
            }

            .sidebar-title::before,          
            .sidebar-title::after {
                display: none;
            }

            .sidebar-title .en {
                position: static;
                display: block;
                font-size: 14px;
                margin-bottom: 4px;
                color: rgba(204, 180, 156, 0.7);
            }

            .content-right {
                width: 100%;
            }

            .tab-switch {
                justify-content: center;
                padding: 20px 0 0 0;
            }
        

            /* 历史沿革图片 */
            .history {
                background-size: 60% auto;
            }

            /* 领导列表：3列 → 2列 → 1列 */
            .leader-list {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .leader-card {
                width: 100%;
            }

            .leader-card .photo {
                height: 180px;
                max-width: 100%;
            }

            .leader-card .photo img {
                max-width: 100%;
            }

            .leader-card .info {
                height: auto;
                margin-top: 30px;
                gap: 6px;
            }

            .leader-card .name {
                font-size: 18px;
                letter-spacing: 2px;
                padding-right: 6px;
            }

            .leader-card .desc {
                width: auto;
            }

            .card-left {
                padding: 10px 0;
            }

            .pagination {
                flex-wrap: wrap;
                margin: 30px 0;
            }

            footer {
                padding: 20px 10px;
            }

            .footer-text {
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            .header-main {
                flex-direction: column;
                gap: 8px;
            }

            .logo img {
                height: 30px;
            }

            .logo-text {
                font-size: 14px;
            }

            .nav-bar {
                flex-wrap: wrap;
                justify-content: center;
            }

            .nav-bar a {
                padding: 8px 10px;
                font-size: 11px;
            }

            .banner {
                height: 100px;
            }

            .banner-title h1 {
                font-size: 16px;
            }

            .banner-title {
                left: 5%;
            }

            .sub-nav {
                flex-wrap: wrap;
            }

            .sub-nav a {
                padding: 8px 12px;
                font-size: 11px;
            }

            .sidebar-title {
                font-size: 18px;
                padding: 10px 12px;
            }

            .sidebar-title .en {
                font-size: 11px;
            }
         

            /* 领导列表：1列 */
            .leader-list {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .leader-card .info {
                margin-top: 20px;
                max-height: 120px;
            }
        }


 /* ========== 移动端适配 ========== */
        @media (max-width: 768px) {
            body {
                align-items: flex-start;
                padding: 0;
            }

            .container {
                flex-direction: column;
                max-width: 100%;
            }

            /* 左侧竖排标题 → 横排顶部标题 */
            .sidebar-title {
                writing-mode: horizontal-tb;
                text-orientation: mixed;
                font-size: 22px;
                margin-right: 0;
                margin-top: 0;
                padding: 12px 16px;
                height: auto;
                width: 100%;
                text-align: center;
                border-bottom: 1px solid #eee;
            }

            .sidebar-title::before {
                top: auto;
                bottom: 0;
                left: 16px;
                right: auto;
                width: 40px;
                height: 3px;
            }

            .sidebar-title::after {
                display: none;
            }

            .sidebar-title .en {
                position: static;
                display: block;
                font-size: 14px;
                margin-bottom: 4px;
                color: rgba(204, 180, 156, 0.7);
            }

            .carousel-wrapper {
                width: 100%;
            }

            .carousel-main {
                height: 0;
                padding-bottom: 56.25%; /* 16:9 */
                position: relative;
                border: none;
            }

            .carousel-main img {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .carousel-caption {
                bottom: 12px;
                left: 12px;
                font-size: 14px;
            }

            .carousel-btn {
                width: 36px;
                height: 36px;
                font-size: 20px;
            }

            .prev-btn {
                left: 8px;
            }

            .next-btn {
                right: 8px;
            }

            .thumbnail-list {
                width: 100%;
                margin-top: 8px;
                gap: 6px;
                padding: 0 8px;
            }

            .thumbnail-item {
                width: 110px;
                height: 62px;
            }
        }

        @media (max-width: 480px) {
            .sidebar-title {
                font-size: 18px;
                padding: 10px 12px;
            }

            .carousel-caption {
                bottom: 8px;
                left: 8px;
                font-size: 13px;
            }

            .carousel-btn {
                width: 30px;
                height: 30px;
                font-size: 16px;
            }

            .thumbnail-item {
                width: 90px;
                height: 52px;
            }

            .thumbnail-list {
                gap: 4px;
                padding: 0 4px;
            }
        }


/* ========== 移动端适配 ========== */
        @media (max-width: 768px) {
          
            .container {
                flex-direction: column;
                max-width: 100%;
            }

            .sidebar-title {
                writing-mode: horizontal-tb;
                text-orientation: mixed;
                font-size: 22px;
                margin-right: 0;
                margin-top: 0;
                padding: 12px 16px;
                height: auto;
                width: 100%;
                text-align: center;
                border-bottom: 1px solid #eee;
            }

            .title-text {
                font-family: "Source Han Serif CN", serif;
                font-weight: 600;
                font-size: 20px;
                color: #333333;
            }

            .sidebar-title::before {
                top: auto;
                bottom: 0;
                left: 16px;
                right: auto;
                width: 40px;
                height: 3px;
            }

            .sidebar-title::after {
                display: none;
            }

            .sidebar-title .en {
                position: static;
                display: block;
                font-size: 14px;
                margin-bottom: 4px;
                color: rgba(204, 180, 156, 0.7);
            }

            .leader-group li {
                width: 50%;
                margin-bottom: 30px;
            }

            .leader-group li:nth-child(2) {
                margin-right: 0;
            }

            .leader-group li:nth-child(9) {
                margin-right: 0;
            }

            .leader-group li:nth-child(10) {
                margin-right: 0;
            }

            .leader-group li:nth-child(11) {
                margin-right: 0;
            }

            .leader-group li a span {
                font-size: 12px;
                color: #333;
                white-space: nowrap;
            }
        }

        @media (max-width: 480px) {
            .sidebar-title {
                font-size: 18px;
                padding: 10px 12px;
            }
            
            .leader-group {
                margin-bottom: -30px;
            }

            .leader-group li {
                width: 50%;
                margin-bottom: 30px;
            }

            .leader-group li:nth-child(2) {
                margin-right: 0;
            }

            .leader-group li:nth-child(9) {
                margin-right: 0;
            }

            .leader-group li:nth-child(10) {
                margin-right: 0;
            }

            .leader-group li:nth-child(11) {
                margin-right: 0;
            }

            .leader-group li a span {
                font-size: 12px;
                color: #333;
                white-space: nowrap;
            }
            
             .leader-group li a img {
                 width: 120px;
                 height: 160px;
              }
            
        }
