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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}


.navbar .container {
    max-width: none;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    line-height: 50px;
}

.nav-links a:hover {
    color: #0066cc;
}

/* .hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero video {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
} */

/* 修改hero部分 */
.hero {
    padding: 0;
    height: 100vh;
    min-height: 600px;
    background: black;
    position: relative;
    margin-top: 50px; /* 补偿导航栏高度 default: 60px */
}

.hero .container {
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero h1 {
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    position: relative;
    z-index: 1;
    color: rgba(255,255,255,0.9);
}

/* 调整导航栏高度 */
.navbar {
    height: 50px; /* default : 60px */
    padding: 0;
}

/* 其他原有样式保持不变... */

.features {
    padding: 5rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.tech-details {
    padding: 5rem 0;
    background: #f8f9fa;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-grid-8 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tech-item img {
    width: 100%;
    height: 250px;
    /* height: 100%; */
    object-fit: cover;
}

.tech-item video {
    width: 100%;
    /* height: 250px; */
    height: 100%;
    object-fit: cover;
}

.tech-item h3 {
    padding: 1.5rem;
}

.tech-item p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
}

.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }

    .pointcloud-section .container {
        padding: 0;
    }
}


/* 轮播容器 */
.video-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.video-carousel-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    gap: 30px; /* 使用gap替代padding来设置间距 */
    padding: 0; /* 移除原有的padding */
}

.carousel-item {
    flex: 0 0 70%;
    width: 70%; /* 添加明确的宽度 */
    min-width: 70%;
    position: relative;
    transform: scale(0.8);
    opacity: 0.5;
    transition: all 0.5s ease;
    background: transparent;
}

.carousel-item.active {
    transform: scale(1);
    opacity: 1;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-video {
    display: block;
    width: auto;
    height: auto;
    object-fit: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-item h3 {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.carousel-item p {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .carousel-item {
        height: 60vh;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

/* 播放按钮覆盖层 */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,102,204,0.9);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.play-overlay:hover {
    background: #0052a3;
    transform: translate(-50%, -50%) scale(1.05);
}

/* 移动端适配调整 */
@media (max-width: 768px) {
    .hero {
        margin-top: 50px;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    .hero p {
        font-size: 1rem;
        padding: 0 20px;
    }
}






.pointcloud-section {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* width: 80%; */
    background: #1a1a1a;
    /* padding: 50px 30px; */
}

.sequence-selector {
    height: auto; /* 改为自适应高度 */
    min-height: 150px;
    background: #1a1a1a; /* 深色背景，避免白屏 */
    padding: 15px;
    overflow-x: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: #00a8ff #1a1a1a;
}

.sequence-selector::-webkit-scrollbar {
    height: 6px;
}

.sequence-selector::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.sequence-selector::-webkit-scrollbar-thumb {
    background-color: #00a8ff;
    border-radius: 3px;
}

#sequenceThumbnails {
    display: flex;
    gap: 15px;
    padding: 5px;
}

/* 视频缩略图样式 */
.sequence-thumbnail {
    position: relative;
    width: 400px; /* 固定宽度 */
    height: 240px; /* 固定高度 */
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #1a1a1a; /* 深色背景，避免白屏 */
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0; /* 防止缩略图被压缩 */
    margin: 0 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sequence-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.sequence-thumbnail.active {
    border-color: #00a8ff;
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.5);
}

.thumb-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
    transition: opacity 0.5s ease;
}

.thumb-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

.thumb-loader span {
    color: white;
    font-size: 12px;
    text-align: center;
}

.thumb-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.thumb-error {
    color: white;
    background-color: rgba(220, 53, 69, 0.8);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.sequence-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    z-index: 3;
    position: relative;
}

.pointcloud-viewport {
    flex: 1;
    position: relative;
}

/* 时间轴标签样式优化 */
#timeLabel {
    color: white;
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* 时间轴控制样式优化 */
.timeline-control {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timeline {
    width: 100%;
    height: 6px;
    background: #444;
    outline: none;
    opacity: 0.9;
    transition: all 0.2s;
    -webkit-appearance: none;
    border-radius: 3px;
}

#timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00a8ff;
    border-radius: 50%;
    cursor: pointer;
}

#timeline::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00a8ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
    transition: all 0.2s ease;
    border: none;
}

#timeline::-moz-range-thumb:hover {
    background: #0088cc;
    transform: scale(1.1);
}

/* 下采样注释样式 - 单行显示 */
.downsample-note {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    white-space: nowrap; /* 确保单行显示 */
    overflow: hidden;
    text-overflow: ellipsis; /* 如果文本过长，显示省略号 */
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-left: 3px solid #00a8ff;
    max-width: 90%; /* 防止在小屏幕上溢出 */
}

/* 在较小屏幕上调整字体大小 */
@media (max-width: 768px) {
    .downsample-note {
        font-size: 10px;
        padding: 6px 10px;
    }
}

/* 美化整体点云查看器 */
#viewport {
    flex: 1;
    min-height: 500px;
    background: #1a1a1a;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 美化导航区域 */
.nav-area {
    position: absolute;
    top: 0;
    height: 100%;
    width: 15%; /* 左右各占25%的宽度 */
    display: flex;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.nav-area.prev {
    left: 0;
    justify-content: flex-start;
    padding-left: 30px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
}

.nav-area.next {
    right: 0;
    justify-content: flex-end;
    padding-right: 30px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
}

.nav-area:hover {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.05)) !important;
}

.nav-area.next:hover {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.05)) !important;
}

.nav-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nav-area:hover .nav-arrow {
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 1;
    transform: scale(1.1);
}

/* 统一各部分布局 */
.section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* 时间轴加载状态标记 */
.timeline-loading-marker {
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
    z-index: 101;
}

.timeline-loading-marker.loading {
    background-color: #ffcc00;
}

.timeline-loading-marker.loaded {
    background-color: #00cc66;
}

/* 视频加载进度条 */
.video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 4;
}

.progress-fill {
    height: 100%;
    width: 0;
    background-color: #00a8ff;
    transition: width 0.3s ease;
}

.zoom-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

/* 加载指示器 */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误消息 */
.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 导航区域样式 */
.navigation-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

/* 添加到style.css文件中 */
.pointcloud-wrapper {
    margin-top: 2rem;  /* 与tech-grid相同的上边距 */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 调整点云查看器容器的内边距 */
#viewport {
    margin-top: 0;
    border-radius: 0;
}

/* 确保reconstruction部分与其他部分有相同的内边距 */
#reconstruction.tech-details {
    padding: 5rem 0;
}

/* 视频展示区域 - 全宽设计 */
.video-showcase {
    width: 100%;
    padding: 2rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.planning-grid {
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.video-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .planning-grid {
        grid-template-columns: 1fr;
    }
}

/* 视频轮播样式 - 更新版 */
.video-carousel-section {
    width: 100%;
    padding: 2rem 0;
    background: #f8f9fa;
    margin-bottom: 2rem;
    overflow: hidden;
}

.video-carousel-container {
    position: relative;
    width: fit-content;
    margin: 0 auto;
    padding: 20px;
}

.carousel-video-container {
    width: auto;
    height: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 添加占位容器样式 */
.carousel-placeholder {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #000; /* 黑色背景 */
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-video {
    display: block;
    width: auto;
    height: auto;
    object-fit: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* 导航控制区域 */
.carousel-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(240, 240, 240, 0.8);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav-button:hover {
    background: rgba(0, 102, 204, 0.8);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-button.prev {
    left: -50px;
}

.carousel-nav-button.next {
    right: -50px;
}

.carousel-indicators {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

.indicator-dot.active {
    background: #0066cc;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-nav-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* 团队展示样式调整 */
.team-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: nowrap; /* 确保不会换行 */
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .team-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .team-member-card {
        margin-bottom: 20px;
    }
}

.team-member-card {
    width: 240px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.team-member-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.member-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.member-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #0066cc;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.member-link:hover {
    background: #0066cc;
    color: white;
}

.member-link i {
    font-size: 0.9rem;
}

/* 响应式调整 */
@media (max-width: 1680px) {
    .team-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .team-member-card {
        width: 200px;
    }
    
    .team-member-card img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .team-row {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member-card {
        width: 80%;
        max-width: 240px;
    }
}

/* Styles for the "More Research" Dropdown */
.nav-links .dropdown {
    position: relative; /* Establishes a positioning context for the dropdown content */
    display: inline-block; /* Allows it to sit nicely with other nav items */
    /* The parent .nav-links has align-items: center, which will help vertically align this. */
}

.nav-links .dropbtn {
    background-color: transparent; /* Matches link background (navbar has its own bg) */
    color: #333; /* Matches .nav-links a color */
    padding: 0; /* Existing links don't show explicit padding; rely on font & line-height. Adjust if needed. */
    font-size: inherit; /* Inherits font size from parent, like <a> tags do */
    font-family: inherit; /* Inherits font family, like <a> tags do */
    border: none;
    cursor: pointer;
    text-decoration: none; /* Matches .nav-links a text-decoration */
    transition: color 0.3s ease; /* Matches .nav-links a transition */
    line-height: normal; /* Ensure consistent line-height with <a> tags */
    /* line-height: 50px; */
}

.nav-links .dropbtn:hover {
    color: #0066cc; /* Matches .nav-links a:hover color */
}

.nav-links .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute; /* Positioned relative to the .dropdown container */
    top: 100%; /* Positions it right below the button. You might need to adjust this slightly (e.g., top: calc(100% + 5px);) if it feels too close. */
    left: 50%; /* Start from the middle of the button */
    transform: translateX(-50%); /* Center the dropdown under the button */
    background-color: #f9f9f9; /* A light background for the dropdown */
    min-width: 180px; /* Adjust as needed, or use 'auto'
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); /* Adds a subtle shadow */
    z-index: 1001; /* Ensures it appears above other content (navbar is 1000) */
    border-radius: 4px; /* Optional: rounded corners for the dropdown box */
    padding: 5px 0; /* Optional: padding top/bottom inside the dropdown box */
    /* margin-top: 8px; Adds a small gap between the button and the dropdown menu */
}

.nav-links .dropdown-content a {
    color: black; /* Link color inside the dropdown */
    padding: 0px 0px; /* Padding for each link within the dropdown */
    text-decoration: none; /* Removes underline from links */
    display: block; /* Makes the entire area of the link clickable */
    text-align: center; /* Aligns text to the left, or use 'center' */
    white-space: nowrap; /* Prevents link text from wrapping */
    font-size: 1.0rem; /* Slightly smaller font for dropdown items, adjust as you like */
    /* transition: background-color 0.2s ease, color 0.2s ease; remove if not needed */
}

.nav-links .dropdown-content a:hover {
    background-color: #ddd; /* Background color on hover for dropdown links */
    color: #333; /* Text color on hover for dropdown links */
}

/* Show the dropdown menu when hovering over the .dropdown container */
.nav-links .dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: Keep the button highlighted or change style when dropdown is open and hovered */
.nav-links .dropdown:hover .dropbtn {
    /* color: #0066cc; */ /* This is already handled by general .dropbtn:hover */
    /* You could add other styles here if you want the button to look different
        ONLY when the dropdown is open AND the mouse is over the button area */
}