/* 全局样式 */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #0A1F44;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
}

header {
    background: rgba(10, 31, 68, 0.9);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
	height: 60px; /* 明确设置 header 高度 */
}

/* Header 容器 */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 15px;
  /* background-color: #f8f9fa; */ /* 背景色 */
  /* border-bottom: 1px solid #ddd; */ /* 底部边框 */
}

header .logo img {
	height: 30px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #00BFFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00FFFF;
}

/* 为 main 内容添加顶部内边距 */
main {
    padding-top: 30px; /* 比 header 高度大一些，留出间距 */
}

/* 程序控制部分 */
.control {
    padding: 50px 20px;
    text-align: center;
    background: #0A1F44;
}

.control h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.control h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #00FFFF;
}

.control h3 {
	margin-top: 75px;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.control .btn {
    background: #00BFFF;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.control_btn {
    background: #00BFFF;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.control_btn:hover {
    background: #00FFFF;
}

.robot_btn {
    background: #00BFFF;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.robot_btn:hover {
    background: #00FFFF;
}

.vision_btn {
    background: #00BFFF;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.vision_btn:hover {
    background: #00FFFF;
}

/* 按钮容器 */
.control .buttons {
    display: flex;
    flex-direction: column; /* 按钮垂直排列 */
    gap: 8px; /* 按钮之间的间距 */
}

.control .stop {
    background-color: red;
    color: white;
}

/* 控制容器（按钮和输出框） */
.control-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

/* 输出容器的样式 */
.output-container {
    width: 80%; /* 固定宽度 */
    height: 270px; /* 固定高度 */
	overflow-y: auto; /* 垂直滚动条 */
    border: 2px solid  #1A3F54; /* 边框 */
    padding: 10px; /* 内边距 */
    background: linear-gradient(135deg, #152849, #122131);
    font-family: monospace; /* 等宽字体，适合显示日志 */
	text-align: left; /* 确保内容左对齐 */
}

/* 输出内容的样式 */
#output {
    margin: 0; /* 移除默认外边距 */
    white-space: pre-wrap; /* 保留换行和空格 */
    word-wrap: break-word; /* 长单词换行 */
}

/* hero 部分的布局 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 20px; /* 添加内边距，避免内容紧贴边缘 */
}

.hero-content {
    z-index: 2;
    width: 100%; /* 确保内容宽度占满 */
    max-width: 1200px; /* 限制最大宽度 */
    padding: 20px; /* 添加内边距 */
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.hero .btn {
    background: #00BFFF;
    color: #FFFFFF;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero .btn:hover {
    background: #00FFFF;
}

/* hero 背景的样式 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0A1F44, #000000);
    z-index: 1;
}

/* 核心优势部分 */
.features {
    padding: 50px 20px;
    text-align: center;
    background: #0A1F44;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #00FFFF;
}

.feature-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-item {
    width: 30%;
    padding: 30px;
    border-radius: 15px;
    background: #1E1E1E;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 191, 255, 0.5);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.feature-item p {
    font-size: 1rem;
    color: #CCCCCC;
}

/* 高效性能卡片 */
.feature-item.performance {
    background: linear-gradient(135deg, #00BFFF, #00FFFF);
}

.feature-item.performance .icon,
.feature-item.performance h3,
.feature-item.performance p {
    color: #0A1F44;
}

/* 全球覆盖卡片 */
.feature-item.global {
    background: linear-gradient(135deg, #8A2BE2, #FF007F);
}

.feature-item.global .icon,
.feature-item.global h3,
.feature-item.global p {
    color: #FFFFFF;
}

/* 安全可靠卡片 */
.feature-item.security {
    background: linear-gradient(135deg, #00FF00, #7CFC00);
}

.feature-item.security .icon,
.feature-item.security h3,
.feature-item.security p {
    color: #0A1F44;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px;
}

.case {
    width: 32%;
    margin-bottom: 20px;
    /*background-color: #fff;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
}

.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
}

.video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.case .title {
    margin-top: 5px !important;  /* 强制覆盖其他样式 */
	font-size: 16px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay-content {
    width: 80%;
    max-width: 1200px;
    position: relative;
}

.enlarged-video {
    width: 100%;
    height: auto;
}

.close-btn {
    position: absolute;
    top: -30px;
    right: -30px;
    background-color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
}

/* 页签容器样式 */
.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
	margin-top: 0px; /* 增加与上方内容的间距 */
}

/* 页签导航容器 */
.tabs-nav {
    display: flex;
    background-color: rgba(16, 42, 87, 0.8); /* 深蓝透明背景 */
    border-bottom: 1px solid #1A3F54; /* 科技感分割线 */
    border-radius: 8px 8px 0 0; /* 圆角只在上部 */
    overflow: hidden; /* 隐藏内部元素溢出 */
    margin-bottom: 0px; /* 与内容间距 */
}

/* 页签按钮基础样式 */
.tab-btn {
    padding: 10px 15px;
    border: none;
    background-color: transparent;
    color: #7FDBFF; /* 科技蓝文字 */
    font-family: 'Orbitron', sans-serif; /* 科技字体 */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase; /* 大写字母更科技感 */
    letter-spacing: 1px; /* 字间距 */
}

/* 激活状态页签 */
.tab-btn.active {
    color: #00FFFF; /* 亮青色 */
    background: linear-gradient(
        to bottom, 
        rgba(0, 191, 255, 0.2), 
        rgba(0, 95, 127, 0.4)
    ); /* 渐变背景 */
}

/* 激活状态指示条 */
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: #00FFFF; /* 亮青色 */
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px #00FFFF; /* 发光效果 */
}

/* 悬停效果 */
.tab-btn:hover:not(.active) {
    color: #00BFFF;
    background-color: rgba(0, 127, 255, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tabs-nav {
        flex-direction: column; /* 小屏幕垂直排列 */
        border-radius: 8px;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    .tab-btn.active::after {
        width: 100%;
        left: 0;
        transform: none;
    }
}

/* 页签内容样式 */
.tab-content {
    display: none;
    padding: 0px;
}

.tab-content.active {
    display: block;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    padding-top: 56.25%; /* 16:9 宽高比 */
    overflow: hidden;
    background-color: #000;
    border-radius: 4px;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 视频模态框样式 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.overlay-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
}

.enlarged-video {
    width: 100%;
    max-height: 90vh;
}

.video-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
}

.video-close-btn:hover {
    color: #ccc;
}

/* 图片模态框样式 */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.enlarged-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain; /* 保持原始比例 */
    display: block;
	align: center;
}

.caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    max-width: 100%;
}

.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
}

.image-container {
	position: relative;
	padding-top: 56.25%; /* 16:9 宽高比 */
    /*width: 100%;
    height: 180px;*/
    overflow: hidden;
    border-radius: 4px;
    /*margin-bottom: 15px;*/
}

.image-container {
	position: relative;
	padding-top: 56.25%; /* 16:9 宽高比 */
    /*width: 100%;
    height: 180px;*/
    overflow: hidden;
    border-radius: 4px;
    background-color: #000;
    /*margin-bottom: 15px;*/
}
.feature-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;    /* 关键属性：填充整个容器并保持比例（可选contain/cover） */
}

.feature-image:hover {
    transform: scale(1.05);
}

/* 图片容器悬停效果 */
.image-container:hover {
    cursor: pointer;
    opacity: 0.9;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

footer {
    background: #0A1F44;
    padding: 20px 0;
    text-align: center;
}

footer .social-links a {
    color: #00BFFF;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: #00FFFF;
}