/* 继承全局样式 */
@import url('/static/css/index.css');

/* 关于页面主要内容样式 */
.about-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
    padding-bottom: calc(2rem + 200px);
    /* 为页脚预留空间 */
    animation: fadeIn 0.8s ease-out;
}

/* 页面标题区域 */
.about-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-hero h1 {
    font-size: 3rem;
    color: #1890ff;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 特色卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1890ff;
}

.feature-card h3 {
    color: #1890ff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* 团队成员区域 */
.team-section {
    margin: 4rem 0;
    text-align: center;
}

.team-section h2 {
    color: #1890ff;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid #1890ff;
    padding: 4px;
    background: white;
}

.team-member h3 {
    color: #1890ff;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.team-member .role {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.team-member .description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 联系我们区域 */
.contact-section {
    margin: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    padding: 3rem;
    border-radius: 16px;
}

.contact-section h2 {
    color: #1890ff;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.contact-item .icon {
    font-size: 2.5rem;
    color: #1890ff;
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: #1890ff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-item p a {
    color: inherit;
    text-decoration: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1890ff;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #40a9ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
.footer {
    background: #001529;
    color: white;
    padding: 2rem 1rem 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.footer.visible {
    transform: translateY(0);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: #1890ff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #1890ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 学院选择下拉框样式 */
.college-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.college-select:hover {
    border-color: #1890ff;
    background-color: rgba(0, 0, 0, 0.3);
}

.college-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.college-select option {
    background-color: #001529;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .about-container {
        padding: 1rem;
        padding-bottom: calc(1rem + 200px);
        /* 为页脚预留空间 */
        margin-top: 60px;
    }

    .about-hero {
        padding: 2rem 1rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1rem;
    }

    .feature-card,
    .team-member,
    .contact-item {
        padding: 1.5rem;
    }

    .team-member img {
        width: 120px;
        height: 120px;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: 10px;
    font-size: 0.9em;
}

.footer-bottom a:hover {
    color: #333; /* 悬停时颜色变深 */
    text-decoration: underline;
}