/* 首页的CSS */
/* 全局样式 */
:root {
    --primary-color: #FF8A65;
    --secondary-color: #FF625B;
    --text-color: #333;
    --light-text: #666;
    --background: #f8f9fa;
    --card-bg: #fff;
    --border-radius: 12px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MiSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 主内容区域 */
main {
    position: relative;
    z-index: 500;
    /* 取消首屏顶部预留空间 */
    padding-top: 0;
    transition: padding-top 0.2s ease;
}

.navbar.scrolled + main {
    padding-top: 0;
}

/* 首屏区域 */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #00000000; /* 背景色，实际使用时替换为图片或视频 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
}

.hero-text {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    max-width: 800px;
    padding: 0 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 2s ease-in-out infinite;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    fill: white;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* 通用部分样式 */
.section {
    padding: 80px 0;
}

.container {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.8rem;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

.view-all {
    display: inline-block;
    margin-top: 2rem;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.view-all:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

/* 团队简介部分 */
.about-section {
    background-color: var(--card-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 50vh;
    max-height: 450px; 
    background-color: #e0e0e000; /* 占位背景色 */
    object-fit: cover; /* 保持比例，覆盖整个区域 */
    width: 100%; /* 宽度自适应容器 */
}

/* 团队成员部分 */
.team-section {
    background-color: var(--background);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.team-card:active {
    transform: translateY(-4px);
}

.team-avatar {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: #e0e0e0; /* 占位背景色 */
}

.team-info {
    padding: 20px;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.team-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.team-card:hover .team-name::after {
    width: 100%;
}

.team-role {
    color: var(--light-text);
    margin-bottom: 12px;
}

.team-bio {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.team-card:hover .team-bio {
    max-height: 100px;
}

/* 项目展示部分 */
.projects-section {
    background-color: var(--background);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.project-card:active {
    transform: translateY(-4px);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0e0; /* 占位背景色 */
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.project-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.project-card:hover .project-title::after {
    width: 100%;
}

.project-desc {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.project-card:hover .project-desc {
    max-height: 100px;
}

/* 联系我们部分 */
.contact-section {
    background-color: var(--card-bg);
}

.contact-container {
    display: flex;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-info {
    flex: 1;
    padding: 50px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.contact-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.contact-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 2rem;
}

.contact-methods {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #ff89652f;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.contact-method-link {
    display: block; /* 使a标签作为块级元素 */
    text-decoration: none; /* 移除下划线 */
    color: inherit; /* 继承文字颜色 */
    cursor: pointer; /* 鼠标指针变为手型 */
    transition: all 0.3s ease;
}

/* 悬停状态效果，与项目卡片保持一致 */
.contact-method-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* 激活状态（点击时）效果 */
.contact-method-link:active {
    transform: translateY(-4px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.contact-details h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-method:hover .contact-details h3::after {
    width: 100%;
}

.contact-details p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* 底部区域 */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    main {
padding-top: 0;
    }
    .navbar.scrolled + main {
padding-top: 0;
    }
    
    .hero-text {
font-size: 2.5rem;
    }
    
    .about-content {
flex-direction: column;
    }
    
    .about-image {
width: 100%;
    }
    
    .contact-container {
flex-direction: column;
    }
    
    .contact-info, .contact-methods {
padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
height: 56px;
padding: 0 16px;
    }
    .navbar.scrolled {
top: 8px;
left: 8px;
width: calc(100% - 16px);
height: 50px;
border-radius: 8px;
    }
    main {
padding-top: 0;
    }
    .navbar.scrolled + main {
padding-top: 0;
    }
    
    .section {
padding: 60px 0;
    }
    
    .section-title {
font-size: 2rem;
    }
    
    .hero-text {
font-size: 2rem;
    }
    
    .team-grid, .projects-grid {
grid-template-columns: 1fr;
    }
    
    .contact-info, .contact-methods {
padding: 30px 20px;
    }
    
    .contact-title {
font-size: 1.75rem;
    }
    
    .footer-content {
grid-template-columns: 1fr;
text-align: center;
    }
    
    .footer-column h3::after {
left: 50%;
transform: translateX(-50%);
    }
}