﻿/* Extracted from common/header_common.htm. Page and content styles. */

.profile-section {
            display: flex;
            gap: 25px;
            margin-bottom: 35px;
            flex-wrap: wrap;
        }
        
        .banner-slider,.mobile-slider {
            position: relative;
            overflow: hidden;
        }

        .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .swiper-button-prev,
        .swiper-button-next {
            color: white;
            background: rgba(0, 0, 0, 0.3);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transition: background 0.3s;
        }

        .swiper-button-prev:hover,
        .swiper-button-next:hover {
            background: rgba(0, 0, 0, 0.6);
        }

        .swiper-button-prev::after,
        .swiper-button-next::after {
            font-size: 18px;
            font-weight: bold;
        }

        .banner-slider {
            flex: 1;
            min-width: 300px;
            border-radius: 15px;
            height: 300px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            min-height: 200px;
        }

        .mobile-slider {
            width: 100%;
            border-radius: 15px;
            height: 200px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            margin-bottom: 25px;
            display: none;
        }

        .slides-container {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transition: transform 0.6s ease;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .slide {
            transform: translateX(100%);
        }
        
        .slide.active {
            transform: translateX(0);
            z-index: 2;
        }
        
        .slide.prev {
            transform: translateX(-100%);
            z-index: 1;
        }
        
        .slide.next {
            transform: translateX(100%);
            z-index: 1;
        }

        .slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            min-width: 100%;
        }

        .slider-nav {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            display: flex;
            justify-content: center;
            gap: 10px;
            z-index: 10;
        }

        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s;
        }

        .nav-dot.active {
            background: white;
            transform: scale(1.2);
        }

        .slider-controls {
            position: absolute;
            top: 50%;
            width: 100%;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            padding: 0 15px;
            z-index: 10;
        }

        .slider-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 18px;
            opacity: 0;
        }

        .slider-btn:hover {
            background: rgba(255, 255, 255, 0.5);
            transform: scale(1.1);
        }

		
        .banner-slider:hover .slider-btn,
        .mobile-slider:hover .slider-btn {
            opacity: 1;
        }

        .banner::before, .banner::after {
            display: none;
        }

        .profile-info {
            flex: 1;
            min-width: 300px;
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            display: flex;
            flex-direction: column;
        }

        .profile-info h2 {
            font-size: 22px;
            color: var(--dark-color);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .profile-info h2 i {
            color: var(--primary-color);
            font-size: 22px;
        }

        .profile-text {
            font-size: 16px;
            line-height: 1.7;
            color: #555;
            margin-bottom: 25px;
            flex: 1;
        }
        
        .swiper-pagination-bullet {
            background-color: white !important;
            opacity: 0.7;
        }

        .swiper-pagination-bullet-active {
            background-color: white !important;
            opacity: 1;
        }

        .latest-news {
            flex: 1;
        }

        .news-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .news-item {
            padding: 12px 0;
            border-bottom: 1px dashed #eee;
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
        }

        .news-item:last-child {
            border-bottom: none;
        }

        .news-item:hover {
            padding-left: 5px;
        }

        .news-item i {
            color: var(--primary-color);
            font-size: 14px;
            margin-right: 10px;
            min-width: 20px;
        }

        .news-item a {
            color: #555;
            font-size: 16px;
            transition: color 0.3s ease;
            display: block;
            width: 100%;
        }

        .news-item a:hover{
            color: var(--primary-color);
        }

        .signature-container {
            margin-top: 10px;
            position: relative;
        }

        .signature-title {
            font-size: 20px;
            font-weight:bolder;
            color: var(--dark-color);
            margin-bottom: 0px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .signature-title i {
            color: var(--primary-color);
            font-size: 16px;
        }

        .quotes-container {
            width: 100%;
            position: relative;
            overflow: hidden;
            height: 70px;
            display: flex;
            align-items: center;
        }

        .quote-item {
            position: absolute;
            width: 100%;
            display: flex;
            align-items: center;
            font-style: italic;
            color: var(--primary-color);
            font-weight: 600;
            opacity: 0;
            transform: translateY(20px);
            font-size: 16px;
            line-height: 1.5;
            padding: 12px 0;
            transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            min-height: 50px;
            top: 0;
            left: 0;
            height: 100%;
            justify-content: flex-start;
        }

        .quote-item.active {
            opacity: 1;
            transform: translateY(0);
            z-index: 2;
        }
        
        .section-title {
            font-size: 24px;
            color: var(--dark-color);
            margin: 40px 0 25px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #CCC;
            margin-left: 15px;
        }




 /* 图片网格容器 */

/* 让所有包裹卡片的容器都变成 flex 容器，并设置间隙 */
.courses-grid,
.courses-grid .area,
.courses-grid .dxb_bc {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;          /* 卡片之间的间距 */
}

.more-card {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-card:hover {
    border-color: var(--primary-color);
    background: #fff;
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.more-content {
    padding: 30px 20px;
    width: 100%;
}

.more-icon {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.more-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-links a {
    background: #e9ecef;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
        .gallery-item {
            width: 300px;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 8px 20px rgba(0,0,0,0.05);
        }

        .gallery-item:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.12);
        }

        .image-link {
            display: block;
            overflow: hidden;
            line-height: 0;
        }

        .gallery-item img {
            width: 100%;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            display: block;
            transition: transform 0.4s;
        }

        .image-link:hover img {
            transform: scale(1.02);
        }

        /* 卡片底部区域：作者和分类并排 */
        .gallery-info {
            padding: 12px 12px 14px;
            background: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
            gap: 12px;
        }

        .author-section, .category-section {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            line-height: 1.4;
            background: #f8f9fa;
            padding: 4px 10px;
            border-radius: 30px;
            transition: background 0.2s;
        }


        .author-section a, .category-section a {
            color: #2c3e50;
            font-weight: 500;
            transition: color 0.2s;
            text-decoration: none;
            font-size: 13px;
            white-space: nowrap;
        }

        .category-section a {
            font-weight: normal;
            color: #5d6d7e;
        }

        .author-section:hover, .category-section:hover {
            background: #f0f2f5;
        }

        .author-section a:hover, .category-section a:hover {
            color: var(--primary-color);
            text-decoration: underline;
        }

        /* 移动端适配：并排且适当缩小间距 */
        @media (max-width: 768px) {
            .courses-grid,
            .courses-grid .area,
            .courses-grid .dxb_bc {
                gap: 15px;
            }

            .courses-grid .gallery-item,
            .courses-grid .more-card {
                width: calc(50% - 7.5px);
            }

            .more-content {
                padding: 20px 15px;
            }

            .more-icon {
                font-size: 32px;
            }

            .more-title {
                font-size: 16px;
                margin-bottom: 15px;
            }

            .category-links a {
                padding: 4px 12px;
                font-size: 12px;
            }

            .gallery-info {
                padding: 10px 8px 12px;
                gap: 8px;
                flex-wrap: wrap;
                justify-content: flex-start;
            }
            .author-section, .category-section {
                font-size: 11px;
                padding: 3px 8px;
                gap: 4px;
            }
            .author-section a, .category-section a {
                font-size: 11px;
                white-space: nowrap;
            }
        }

        .simple-sites-container {
            margin-bottom: 40px;
        }

        .sites-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }

        .site-item {
            background: white;
            border-radius: 12px;
            padding: 18px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            transition: all 0.3s ease;
            border: 1px solid #f1f1f1;
        }

        .site-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0,0,0,0.08);
            border-color: #e0e0e0;
        }

        .site-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: white;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .sites-grid > a:nth-child(1) .site-icon { background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); }
        .sites-grid > a:nth-child(2) .site-icon { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); }
        .sites-grid > a:nth-child(3) .site-icon { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }
        .sites-grid > a:nth-child(4) .site-icon { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }
        .sites-grid > a:nth-child(5) .site-icon { background: linear-gradient(135deg, #d4fc79 0%, #96e6a1 100%); }
        .sites-grid > a:nth-child(6) .site-icon { background: linear-gradient(135deg, #a6c0fe 0%, #f68084 100%); }

        .site-info {
            flex: 1;
            min-width: 0;
        }

        .site-name {
            font-size: 16px;
            color: var(--dark-color);
            margin-bottom: 5px;
            font-weight: 600;
            line-height: 1.3;
        }

        .site-desc {
            color: #666;
            font-size: 14px;
            line-height: 1.4;
            margin: 0;
        }

        .site-link {
            color: var(--gray-color);
            font-size: 16px;
            transition: all 0.3s;
            flex-shrink: 0;
        }

        .site-link:hover {
            color: var(--primary-color);
            transform: scale(1.1);
        }

        @media (min-width: 1100px) {
            .banner-slider {
                display: block;
            }
            
            .quote-item {
                font-size: 18px;
                line-height: 1.4;
                padding: 8px 0;
            }
            
            .profile-info {
                height: 300px;
            }
        }

        @media (max-width: 1100px) {
            .profile-section {
                flex-direction: column;
            }
            
            .banner-slider, .profile-info {
                min-width: 100%;
            }
            
            .banner-slider {
                display: none;
            }
            
            .mobile-slider {
                display: block;
            }
            
            .quotes-container {
                height: auto;
                min-height: 80px;
                align-items: flex-start;
            }
            
            .quote-item {
                font-size: 18px;
                line-height: 1.5;
                padding: 10px 0;
                min-height: 70px;
                align-items: flex-start;
            }
            
            .mobile-slider .slider-btn {
                opacity: 1;
            }
        }

        @media (max-width: 900px) {
            .quote-item {
                font-size: 16px;
                line-height: 1.6;
                padding: 8px 0;
                min-height: 80px;
            }
            
            .quotes-container {
                min-height: 80px;
            }
        }

		@media (max-width: 600px) {
			.section-title {
				font-size: 18px;
				margin: 10px 0 15px 0;
			}
            .mobile-slider {
                height: 200px;
                border-radius: 12px;
            }
            
            .slider-controls {
                padding: 0 12px;
            }
            
            .slider-btn {
                width: 35px;
                height: 35px;
            }
            
            .quote-item {
                min-height: 85px;
            }
            
            .quotes-container {
                min-height: 85px;
            }
            
            .signature-title {
                font-size: 17px;
            }
        }

        @media (max-width: 480px) {
            .gallery-info {
                gap: 6px;
            }

            .author-section, .category-section {
                font-size: 10px;
                padding: 2px 6px;
            }

            .author-section a, .category-section a {
                font-size: 10px;
            }

            .profile-info {
                padding: 20px;
            }
            
            .profile-text {
                font-size: 15px;
            }
            
            .signature-title {
                font-size: 16px;
            }
            

            .mobile-slider {
                height: 120px;
                margin-bottom: 20px;
            }
            
            .slider-controls {
                padding: 0 10px;
            }
            
            .slider-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
            
            .slider-nav {
                bottom: 12px;
                gap: 8px;
            }
            
            .nav-dot {
                width: 10px;
                height: 10px;
            }
            
            .quote-item {
                line-height: 1.7;
                padding: 6px 0;
                min-height: 90px;
            }
            
            .quotes-container {
                min-height: 90px;
            }
        }
