.hero {
    height: 100vh;
    background: url('./images/BG38.jpg') center/cover no-repeat;
    display: flex;
    align-items: end;
    justify-content: start;
    position: relative;
    color: black;
    text-align: center;
    padding-bottom: 120px;
    padding-left: 120px;
}

.hero-text {
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero button {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: black;
    border: 1px solid black;
    border-radius: 40px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hero button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.head-font {
    text-align: left;
    margin: 0 auto;
    max-width: 1000px;
    margin-bottom: 3rem;
}
.head-font h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.highlight-text {
    max-width: 1000px;
    line-height: 1.8;
    margin: 0 auto;
}

.project-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 4rem 2rem;
    background: #f9f9f9;
}

.project-card {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s;
}
/* 专门针对 proj7 图片布局的优化 */
/* #proj7 .detail-images {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#proj7 .detail-images img {
    width: 45%;
    height: auto;
    object-fit: cover;
}
.project-card:hover img {
    filter: grayscale(0%);
} */

.project-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #004080, #0066cc);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 0.7;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.3);
}
.project-card.active {
    box-shadow: 0 0 15px 4px rgba(0, 102, 255, 0.6);
    transform: scale(1.05);
}
.project-title {
    text-align: center;
    margin-top: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: black;
}

.overlay button {
    padding: 0.4rem 1rem;
    background: #fff;
    color: #0077ff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
}

.project-detail,
.project-detail-dg {
    padding: 4rem 2rem;
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.back-btn {
    background: none;
    border: none;
    font-size: 1rem;
    color: #0077cc;
    margin-bottom: 2rem;
    cursor: pointer;
}

.detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.detail-images {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-images img {
    width: 80%;
    height: 50%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.detail-text {
    flex: 1 1 55%;
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    border-left: 4px solid #0077cc;
    animation: fadeIn 0.4s ease;
    border-radius: 12px;
    padding: 1rem 2rem;
}

.detail-text h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #004080;
    white-space: nowrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.get-in-touch-section {
    margin-top: 4rem;
    text-align: center;
    margin-bottom: 10px;
}

#get-in-touch,
.scrollToContact {
    display: inline-block;
    background: linear-gradient(135deg, #004080, #0066cc);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    user-select: none;
}

#get-in-touch:hover,
.scrollToContact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#get-in-touch .arrow,
.scrollToContact .arrow {
    display: inline-block;
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
}

#get-in-touch:hover .arrow,
.scrollToContact:hover .arrow {
    transform: translateX(5px);
}