/* 38.html 内容页面样式 */

/* Banner主题图 */
.banner-section {
    position: relative;
    width: 100%;
    margin-top: 0;
    background-color: #ea0001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0 80px 0;
}

.banner-container {
    max-width: 1200px;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

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

/* 图片展示区 */
.gallery-section {
    margin-bottom: 50px;
    position: relative;
}

.gallery-wrapper {
    position: relative;
}

.gallery-container {
    overflow: hidden;
    border-radius: 12px;
}

.gallery-track {
    display: flex;
    padding: 20px 0;
    transition: transform 0.5s ease;
}

.gallery-track .gallery-item {
    flex: 0 0 calc(33.333% - 13.333px);
    width: calc(33.333% - 13.333px);
    margin-right: 20px;
}

.gallery-track .gallery-item:nth-child(3n) {
    margin-right: 0;
}

.gallery-track .gallery-item:nth-child(3n+1) {
    margin-left: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
    min-width: 0;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 9 / 6;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .image-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    color: #000;
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
}

/* 导航按钮 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c31432 0%, #d2232a 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0.4;
}

.gallery-wrapper:hover .gallery-nav {
    opacity: 1;
}

.gallery-nav:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.gallery-nav:active {
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.gallery-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    opacity: 0.2;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

/* 指示器 */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    padding: 10px;
}

.gallery-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.gallery-indicator:hover {
    background-color: #c31432;
    transform: scale(1.2);
}

.gallery-indicator.active {
    background-color: #c31432;
    width: 30px;
    border-radius: 6px;
}

/* 内容区 */
.content-section {
    margin-bottom: 50px;
}

/* 图集模块 */
.album-section {
    margin-bottom: 50px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.album-category {
    margin-bottom: 50px;
}

.album-category:last-child {
    margin-bottom: 0;
}

.album-category-title {
    font-size: 1.8rem;
    color: #c31432;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c31432;
    font-weight: 600;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.album-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.album-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.album-item img {
    width: 100%;
    aspect-ratio: 9 / 6;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.album-item:hover img {
    transform: scale(1.05);
}

.album-item .image-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    color: #000;
    text-align: center;
    line-height: 1.5;
    font-weight: 500;
}

.content-block {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #c31432;
}

.content-block:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.content-title {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.8;
}

/* 领导寄语区 */
.message-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    color: #c31432;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #c31432;
    font-weight: 700;
}

.message-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.message-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
    text-align: justify;
}

.message-text p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.message-image {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(195, 20, 50, 0.2);
    border: 3px solid #c31432;
}

.message-image img {
    width: 100%;
    aspect-ratio: 9 / 6;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.message-image:hover img {
    transform: scale(1.05);
}

/* 历届活动导航 */
.history-nav {
    background: linear-gradient(135deg, #c31432 0%, #d2232a 100%);
    padding: 30px;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.history-nav .nav-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.history-nav a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.history-nav a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    margin: 0;
}

.footer p {
    font-size: 14px;
    opacity: 0.9;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 平板 */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .banner-section {
        margin-top: 60px;
        padding: 30px 15px 30px 15px;
    }

    .banner-container {
        padding: 0;
        max-width: 100%;
    }

    .main-content {
        padding: 15px;
    }

    .gallery-track {
        padding: 20px 0;
    }

    .gallery-track .gallery-item {
        flex: 0 0 calc(50% - 7.5px);
        width: calc(50% - 7.5px);
        margin-right: 15px;
    }

    .gallery-track .gallery-item:nth-child(3n) {
        margin-right: 15px;
    }

    .gallery-track .gallery-item:nth-child(2n) {
        margin-right: 0;
    }

    .gallery-item img {
        aspect-ratio: 9 / 6;
    }

    .gallery-nav {
        width: 45px;
        height: 45px;
    }

    .gallery-prev {
        left: 15px;
    }

    .gallery-next {
        right: 15px;
    }

    .gallery-nav:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .gallery-nav svg {
        width: 20px;
        height: 20px;
    }

    .content-block {
        padding: 20px;
    }

    .content-title {
        font-size: 1.2rem;
    }

    .album-section {
        padding: 25px 20px;
    }

    .album-category-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .message-section {
        padding: 25px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .message-container {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .message-image {
        order: -1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 4px;
    }

    .message-text {
        order: 1;
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* 响应式设计 - 手机 */
@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }

    .banner-section {
        margin-top: 50px;
        padding: 40px 10px 40px 10px;
    }

    .banner-container {
        padding: 0;
        max-width: 100%;
    }

    .main-content {
        padding: 10px;
    }

    .gallery-track {
        padding: 20px 0;
    }

    .gallery-track .gallery-item {
        flex: 0 0 100%;
        width: 100%;
        margin-right: 0;
    }

    .gallery-track .gallery-item:nth-child(3n),
    .gallery-track .gallery-item:nth-child(2n) {
        margin-right: 0;
    }

    .gallery-item {
        border-radius: 4px;
    }

    .gallery-item img {
        aspect-ratio: 9 / 6;
    }
    
    .gallery-item .image-description {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        opacity: 0.5;
    }

    .gallery-wrapper:hover .gallery-nav {
        opacity: 1;
    }

    .gallery-nav:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }

    .content-block {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .content-title {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .album-section {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .album-category {
        margin-bottom: 30px;
    }

    .album-category-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .album-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .album-item {
        border-radius: 4px;
    }

    .album-item .image-description {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .message-section {
        padding: 20px 15px;
        margin-bottom: 30px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .message-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .message-image {
        order: -1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border: 2px solid #c31432;
        border-radius: 4px;
    }

    .message-text {
        order: 1;
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .message-text p {
        margin-bottom: 15px;
    }
}

/* 超小屏幕优化 */
@media screen and (max-width: 360px) {
    .banner-section {
        padding: 40px 10px 40px 10px;
    }

    .banner-container {
        padding: 0;
        max-width: 100%;
    }

    .gallery-item {
        border-radius: 4px;
    }

    .gallery-item img {
        aspect-ratio: 9 / 6;
    }
    
    .gallery-item .image-description {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        opacity: 0.5;
    }

    .gallery-wrapper:hover .gallery-nav {
        opacity: 1;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .content-title {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .message-content {
        font-size: 0.9rem;
    }
}

/* 模态框导航按钮响应式 */
@media screen and (max-width: 768px) {
    .modal-nav-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 50px !important;
    }
    
    .modal-nav-btn.modal-prev {
        left: 10px !important;
        right: auto !important;
    }
    
    .modal-nav-btn.modal-next {
        right: 10px !important;
        left: auto !important;
    }
}

@media screen and (max-width: 480px) {
    .modal-nav-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 40px !important;
        opacity: 0.5 !important;
    }
    
    .modal-nav-btn.modal-prev {
        left: 5px !important;
        right: auto !important;
    }
    
    .modal-nav-btn.modal-next {
        right: 5px !important;
        left: auto !important;
    }
    
    /* 移动端可以隐藏按钮，使用滑动 */
    /* .modal-nav-btn {
        display: none !important;
    } */
}

/* 打印样式 */
@media print {
    body {
        background: #fff;
    }

    .main-content {
        max-width: 100%;
    }

    .gallery-item,
    .content-block,
    .message-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

