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

body {
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: #333;
}

header {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 技术支持栏 */
.header-top {
    background: rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-support {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
}

.support-text, .support-phone {
    opacity: 0.95;
}

.support-phone a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s ease;
}

.support-phone a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.header-content {
    padding: 40px 20px;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
}

.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 筛选按钮区域 */
.filter-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    color: #ff8c00;
    border: 2px solid #ff8c00;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.filter-btn:hover {
    background: #fff8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    color: white;
    border-color: #ff6600;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.teacher-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff8c00 0%, #ff6600 100%);
}

/* 教师类型标签 */
.teacher-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.teacher-type-badge.fulltime {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.teacher-type-badge.parttime {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.teacher-photo {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.teacher-card:hover .teacher-photo img {
    transform: scale(1.05);
}

/* 图片点击提示 */
.teacher-photo::after {
    content: '🔍 点击放大';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.teacher-card:hover .teacher-photo::after {
    opacity: 1;
}

.teacher-info {
    padding: 25px;
}

.teacher-name {
    font-size: 1.8em;
    color: #ff8c00;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.info-item {
    margin-bottom: 15px;
}

.info-item h4 {
    color: #ff6600;
    font-size: 1.1em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.info-item h4 .icon {
    color: #ff8c00;
    margin-right: 8px;
    font-size: 0.8em;
}

.info-item ul {
    list-style: none;
    padding-left: 15px;
}

.info-item li {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    position: relative;
    padding-left: 15px;
}

.info-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff8c00;
}

.view-details {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.view-details:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.4);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    color: #ff6600;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #ff6600;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    padding: 40px;
}

.modal-left {
    flex: 0 0 350px;
    margin-right: 40px;
}

.teacher-photo-large {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 5px solid #ff8c00;
}

.teacher-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.teacher-photo-large img:hover {
    transform: scale(1.02);
}

.teacher-photo-large::after {
    content: '🔍 点击查看大图';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.teacher-photo-large:hover::after {
    opacity: 1;
}

.modal-right {
    flex: 1;
    min-width: 300px;
}

.teacher-name-modal {
    font-size: 2.5em;
    color: #ff8c00;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.teacher-type-modal {
    text-align: center;
    margin-bottom: 30px;
}

.teacher-type-modal .badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.teacher-type-modal .badge.fulltime {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.teacher-type-modal .badge.parttime {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.info-section {
    margin-bottom: 25px;
}

.info-section h3 {
    color: #ff6600;
    font-size: 1.3em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.info-section h3 .icon {
    color: #ff8c00;
    margin-right: 10px;
    font-size: 0.7em;
}

.info-content {
    background: #fff8f0;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #ff8c00;
}

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

.info-content li {
    color: #555;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.info-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff8c00;
    font-weight: bold;
}

.info-content p {
    color: #555;
    line-height: 1.8;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

.footer-support {
    font-size: 0.9em;
    opacity: 0.8;
}

/* 图片放大查看器 */
.image-viewer {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 120px;
}

.image-viewer-content img {
    max-width: 95%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.image-close:hover {
    background: rgba(255, 102, 0, 0.8);
    transform: rotate(90deg);
}

.image-actions {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-download-btn {
    background: linear-gradient(135deg, #ff8c00 0%, #ff6600 100%);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1em;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

.image-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.6);
}

.download-icon {
    font-size: 1.3em;
}

.image-tip {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    text-align: center;
    margin: 0;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tech-support {
        flex-direction: column;
        text-align: center;
        font-size: 0.85em;
    }

    .header-content h1 {
        font-size: 1.8em;
    }

    .filter-section {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .image-viewer-content {
        padding: 100px 10px 140px;
    }

    .image-viewer-content img {
        max-width: 98%;
        max-height: 70%;
    }

    .image-close {
        top: 15px;
        right: 15px;
        font-size: 35px;
        width: 45px;
        height: 45px;
    }

    .image-download-btn {
        padding: 12px 25px;
        font-size: 1em;
    }

    .image-tip {
        font-size: 0.85em;
    }

    .teacher-photo::after {
        font-size: 0.7em;
        padding: 4px 10px;
    }

    .teachers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        flex-direction: column;
        padding: 30px 20px;
    }

    .modal-left {
        flex: 1;
        margin-right: 0;
        margin-bottom: 30px;
    }

    .teacher-photo-large {
        height: 350px;
    }

    .teacher-name-modal {
        font-size: 2em;
    }
}

/* 加载动画 */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.teacher-card {
    animation: cardFadeIn 0.5s ease forwards;
}

.teacher-card:nth-child(1) { animation-delay: 0.1s; }
.teacher-card:nth-child(2) { animation-delay: 0.2s; }
.teacher-card:nth-child(3) { animation-delay: 0.3s; }
.teacher-card:nth-child(4) { animation-delay: 0.4s; }
.teacher-card:nth-child(5) { animation-delay: 0.5s; }
.teacher-card:nth-child(6) { animation-delay: 0.6s; }
.teacher-card:nth-child(7) { animation-delay: 0.7s; }
.teacher-card:nth-child(8) { animation-delay: 0.8s; }

