/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 动态背景画布 */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* 确保在所有内容之后 */
    pointer-events: none; /* 不影响页面交互 */
}

/* 亮色主题样式 */
body:not(.dark-theme) {
    background-color: #f5f5f5;
    color: #333;
}

/* 亮色主题下的动态背景 */
body:not(.dark-theme) #background-canvas {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0); /* 强制透明 */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: flex-start; /* 强制居左 */
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-left: auto; /* 将菜单区域推到右侧 */
}

/* 菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #476cfe;
    cursor: pointer;
    margin-right: 30px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    margin-right: 10px;
}

.logo-text {
    display: inline-block;
}

/* 页尾LOGO样式 */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

.footer-logo-img {
    height: 30px;
}

/* 暗色主题下的页尾样式 */
body.dark-theme .footer {
    background-color: #111;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center; /* 垂直居中 */
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 4px;
    display: block;
}

.nav-links a:hover {
    color: #476cfe;
}

/* 响应式导航栏 */
@media (max-width: 768px) {
    .navbar-container {
        padding: 15px 3%;
    }
    
    .menu-toggle {
        display: flex;
        margin-left: auto; /* 强制居右 */
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        width: 250px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px 0 rgba(0, 0, 0, 0.1);
        border-radius: 10px 0 0 10px;
        backdrop-filter: blur(10px);
        padding: 20px 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .logo {
        margin-right: 0;
    }
    
    /* 菜单按钮动画 */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* 亮色模式下，导航栏菜单项鼠标经过时显示从中间向两边展开的蓝色长条动画效果 */
.nav-links li::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #476cfe;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li:hover::after {
    width: 100%;
}

/* 暗色主题下的响应式导航栏 */
@media (max-width: 768px) {
    body.dark-theme .nav-links {
        background-color: rgba(30, 30, 30, 0.95);
    }
}

/* 主横幅区域 */
.hero {
    height: 640px; /* 强制设置高度为640px */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 轮播视频容器 */
.video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 强制保持视频原始纵横比，不允许拉伸 */
    object-fit: cover; /* 保持纵横比并填满容器 */
    object-position: center; /* 视频内容居中 */
    opacity: 0;
    transition: opacity 1s ease;
}

.video-background.active {
    opacity: 1;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 强制保持视频原始纵横比，不允许拉伸 */
    object-fit: cover; /* 保持纵横比并填满容器 */
    object-position: center; /* 视频内容居中 */
    z-index: -1;
}

/* 长条状轮播指示器与进度条样式 */
.carousel-indicator-progress {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    z-index: 10;
}

.indicators-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.indicator-bar {
    width: 60px; /* 缩短每个轮播指示器长度为60px */
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator-bar.active {
    background-color: rgba(255, 255, 255, 0.5);
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: #007bff; /* 默认亮色模式下的进度条颜色 */
    transition: width 0.1s linear;
}

/* 暗色主题下的轮播元素样式 */
body.dark-theme .indicator-bar {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .indicator-bar.active {
    background-color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .indicator-progress {
    background-color: #007bff; /* 暗色模式下保持蓝色 */
}

/* 暗色主题样式 */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* 暗色主题下的动态背景 */
body.dark-theme #background-canvas {
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* 亮色模式下不使用遮罩层 */
}

.hero-content {
    text-align: left;
    color: black;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    position: relative; /* 确保内容在视频上方 */
    left: -350px; /* 强制左移350px */
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 30px;
}

/* 手机访问时居中 */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        left: 0; /* 在手机上重置位置 */
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: #000; /* 轮播副标题在亮色模式下显示为黑色 */
}

/* 暗色主题下的样式 */
body.dark-theme .hero p {
    color: #007bff; /* 轮播副标题在暗色模式下显示为蓝色 */
}

/* 暗色主题下的其他元素 */
body.dark-theme .section-title h2 {
    color: #e0e0e0;
}

body.dark-theme .section-title p {
    color: #aaa;
}

body.dark-theme .service-card {
    background: #2d2d2d;
}

body.dark-theme .section {
    background-color: #1a1a1a;
}

body.dark-theme .service-card p {
    color: #ccc;
}

body.dark-theme .plans-section {
    background-color: #222;
}

body.dark-theme .tech-support {
    background-color: #222;
}

body.dark-theme .plan-card {
    background: #2d2d2d;
}

body.dark-theme .plan-specs div {
    color: #ccc;
}

body.dark-theme .tech-support {
    background-color: #222;
}

body.dark-theme .tech-logo span {
    color: #e0e0e0;
}

body.dark-theme .tech-logo small {
    color: #aaa;
}

body.dark-theme .global-nodes {
    background-color: #222;
}

body.dark-theme .node-item {
    background: #2d2d2d;
}

body.dark-theme .node-item h4 {
    color: #476cfe;
}

body.dark-theme .node-item p {
    color: #ccc;
}

body.dark-theme .metric-value {
    color: #476cfe;
}

body.dark-theme .metric-label {
    color: #aaa;
}

body.dark-theme .faq-item {
    background: #2d2d2d;
}

body.dark-theme .faq-question {
    color: #476cfe;
}

body.dark-theme .faq-answer {
    color: #ccc;
}

body.dark-theme .footer {
    background-color: #111;
}

body.dark-theme .footer-column ul li a {
    color: #aaa;
}

body.dark-theme .footer-column ul li a:hover {
    color: #fff;
}

body.dark-theme .copyright {
    color: #777;
    border-top: 1px solid #444;
}

body.dark-theme .overlay {
    background-color: rgba(0, 0, 0, 0.6); /* 暗色模式下使用黑色半透明遮罩 */
}

body.dark-theme .navbar {
    background-color: rgba(30, 30, 30, 0); /* 强制透明 */
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .nav-links a {
    color: rgba(255, 255, 255, 0.247);
}

body.dark-theme .nav-links a:hover {
    color: #ccc;
}

/* 暗色模式下，导航栏菜单项鼠标经过时显示从中间向两边展开的白色长条动画效果 */
body.dark-theme .nav-links li::after {
    background-color: white;
}

body.dark-theme .menu-toggle span {
    background-color: white;
}

body.dark-theme .service-icon {
    color: #476cfe;
}

body.dark-theme .nav-links a:hover {
    color: #ccc;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    color: white;
    text-decoration: none;
    border-radius: 4px; /* 直角轻微弧度 */
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强玻璃效果 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.cta-button:hover {
    background-color: rgba(71, 108, 254, 0.7); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* 白色模式下取消按钮的鼠标经过颜色变化效果 */
body:not(.dark-theme) .cta-button:hover {
    background-color: rgba(71, 108, 254, 0.5); /* 保持悬停时颜色一致 */
    transform: none; /* 取消移动效果 */
}

/* 一元公益按钮特殊样式 */
.charity-button {
    background-color: rgba(255, 255, 255, 0.5); /* 白色半透明背景 */
    color: #0056b3; /* 蓝色文字 */
    border: 1px solid rgba(71, 108, 254, 0.3); /* 蓝色边框 */
}

/* 暗色主题下的一元公益按钮 */
body.dark-theme .charity-button {
    background-color: white; /* 强制白色背景 */
    color: #0056b3; /* 蓝色文字 */
    border: 1px solid rgba(71, 108, 254, 0.3); /* 蓝色边框 */
}

.charity-button:hover {
    background-color: rgba(255, 255, 255, 0.7); /* 悬停时增加不透明度 */
    color: #2a4fd1; /* 悬停时加深蓝色 */
    border: 1px solid rgba(71, 108, 254, 0.5); /* 悬停时加深边框 */
}

body:not(.dark-theme) .charity-button:hover {
    background-color: rgba(255, 255, 255, 0.5); /* 保持悬停时颜色一致 */
    color: #0056b3; /* 保持文字颜色一致 */
    transform: none; /* 取消移动效果 */
}

/* 控制台按钮特殊样式 */
.console-button {
    background-color: rgba(71, 108, 254, 0.8); /* 蓝色半透明背景 */
    color: white;
    border: 1px solid rgba(71, 108, 254, 0.5);
    border-radius: 4px; /* 直角轻微弧度 */
    padding: 8px 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    margin-left: 20px; /* 与其他菜单项保持距离 */
}

.console-button:hover {
    background-color: rgba(71, 108, 254, 1); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 暗色主题下的控制台按钮 */
body.dark-theme .console-button {
    background-color: rgba(71, 108, 254, 0.8); /* 蓝色半透明背景 */
    color: white;
    border: 1px solid rgba(71, 108, 254, 0.5);
}

body.dark-theme .console-button:hover {
    background-color: rgba(71, 108, 254, 1); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* 取消控制台按钮的下划线效果 */
.nav-links li.no-underline::after {
    display: none;
}

.nav-links li.no-underline:hover::after {
    display: none;
}

body.dark-theme .nav-links li.no-underline::after {
    display: none;
}

body.dark-theme .nav-links li.no-underline:hover::after {
    display: none;
}

/* 产品服务区域 */
.section {
    padding: 80px 5%;
    background-color: white; /* 调整背景色为白色 */
}

/* 内容容器，用于收窄页面中间部分的宽度 */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #476cfe;
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: #666;
}

/* 暗色主题下的标题 */
body.dark-theme .section-title h2 {
    color: #e0e0e0;
}

body.dark-theme .section-title p {
    color: #aaa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    font-size: 36px;
    margin-bottom: 15px;
    color: #476cfe;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    flex-grow: 1;
}

.service-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    flex-grow: 1;
}

.service-card .plan-button {
    margin-top: auto;
}

/* 服务器套餐区域 */
.plans-section {
    background-color: #f0f8ff;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab {
    padding: 10px 20px;
    background-color: rgba(224, 224, 224, 0.5); /* 50%透明度 */
    margin: 5px;
    border-radius: 4px; /* 直角轻微弧度 */
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强玻璃效果 */
}

.tab.active {
    background-color: rgba(71, 108, 254, 0.7); /* 活动状态增加不透明度 */
    color: white;
}

.tab:hover {
    background-color: rgba(224, 224, 224, 0.7); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 选项卡内容组 */
.plan-group {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.plan-group.active {
    display: grid;
}

.plan-card {
    background: white;
    border-radius: 10px;
    padding: 25px 20px; /* 调整内边距 */
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-height: 350px; /* 调整最小高度 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.plan-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #476cfe;
}

.plan-specs {
    text-align: left;
    margin-bottom: 20px;
    flex-grow: 1; /* 使规格区域占据可用空间 */
}

.plan-specs div {
    margin-bottom: 8px; /* 调整行间距 */
    font-size: 14px;
    line-height: 1.4; /* 调整行高 */
}

.plan-price {
    font-size: 24px;
    font-weight: bold;
    color: #476cfe;
    margin-bottom: 15px;
    margin-top: 5px; /* 调整上边距 */
}

.plan-old-price {
    text-decoration: line-through;
    color: #999;
    margin-bottom: 15px;
}

/* 产品卡片按钮 */
.plan-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    color: white;
    text-decoration: none;
    border-radius: 4px; /* 直角轻微弧度 */
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强玻璃效果 */
}

.plan-button:hover {
    background-color: rgba(71, 108, 254, 0.7); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.sold-out {
    background-color: #ccc !important;
}

.sold-out:hover {
    background-color: #ccc !important;
}

/* 技术支持区域 */
.tech-support {
    text-align: center;
}

.tech-logos {
    display: flex;
    overflow-x: auto;
    gap: 100px; /* 强制增加间距 */
    margin-top: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    scrollbar-width: none; /* 隐藏滚动条 Firefox */
    -ms-overflow-style: none; /* 隐藏滚动条 IE/Edge */
}

/* 隐藏滚动条 Webkit */
.tech-logos::-webkit-scrollbar {
    display: none;
}

.tech-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0; /* 防止图标被压缩 */
    width: 150px; /* 增加模块宽度 */
    background: white;
    border-radius: 10px;
    padding: 35px 25px; /* 强制增加内边距 */
    margin: 0 10px; /* 增加外边距 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.tech-logo:hover {
    transform: translateY(-5px);
}

.tech-logo img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

/* 暗色主题下的技术支持图标 */
body.dark-theme .tech-logo {
    background: #2d2d2d;
}

body.dark-theme .tech-logo span {
    color: #e0e0e0;
}

body.dark-theme .tech-logo small {
    color: #aaa;
}

/* 增加暗色主题下的阴影效果 */
body.dark-theme .tech-logo {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 技术支持区域自动滚动动画 */
@keyframes scrollTechLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.tech-logos-container {
    display: flex;
    width: max-content;
    animation: scrollTechLogos 30s linear infinite; /* 减慢速度 */
}

/* 全球节点区域 */
.global-nodes {
    background-color: #f0f8ff;
    text-align: center;
}

.map-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    margin: 40px 0;
}

.map-container {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.map-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.node-info-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

/* 地图标点 */
.map-marker {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background-color: #2a4fd1; /* 加深颜色 */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(42, 79, 209, 0.7); /* 加深阴影颜色 */
    animation: pulse 2s infinite;
    position: relative;
    transition: background-color 0.3s, transform 0.3s; /* 添加过渡效果 */
}

.map-marker:hover .marker-dot {
    background-color: #ff0000; /* 鼠标经过变红色 */
    transform: scale(1.2); /* 稍微放大 */
}

.marker-label {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(42, 79, 209, 0.95); /* 加深背景颜色 */
    color: white;
    padding: 6px 10px; /* 增加内边距 */
    border-radius: 4px;
    font-size: 14px; /* 增大字体 */
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    font-weight: bold; /* 加粗字体 */
}

.map-marker:hover .marker-label {
    opacity: 1;
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 79, 209, 0.8); /* 加深阴影颜色 */
    }
    70% {
        box-shadow: 0 0 0 15px rgba(42, 79, 209, 0); /* 增大脉冲范围 */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 79, 209, 0);
    }
}

/* 标点位置 */
.marker-1 {
    top: 45%;
    left: 70%;
}

.marker-2 {
    top: 35%;
    left: 50%;
}

.marker-3 {
    top: 35%;
    left: 15%;
}

.marker-4 {
    top: 65%;
    left: 80%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .map-content-wrapper {
        flex-direction: column;
    }
    
    .node-info-wrapper {
        order: -1;
        margin-bottom: 30px;
    }
}

.node-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.node-item {
    margin: 0;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.node-item h4 {
    margin-bottom: 10px;
    color: #476cfe;
}

.metrics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.metric-item {
    margin: 15px;
    text-align: center;
}

.metric-value {
    font-size: 36px;
    font-weight: bold;
    color: #476cfe;
}

.metric-label {
    font-size: 16px;
    color: #666;
}

/* 优惠活动区域 */
.promo-section {
    background: linear-gradient(135deg, #476cfe, #2a4fd1);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

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

.promo-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.promo-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* 优惠活动按钮 */
.promo-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: rgba(255, 255, 255, 0.5); /* 50%透明度 */
    color: #476cfe;
    text-decoration: none;
    border-radius: 4px; /* 直角轻微弧度 */
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强玻璃效果 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}

.promo-button:hover {
    background-color: rgba(255, 255, 255, 0.7); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* FAQ区域 */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    font-size: 18px;
    font-weight: bold;
    padding: 20px;
    margin: 0;
    color: #476cfe;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    padding: 0 20px 20px 20px;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 暗色主题下的FAQ样式 */
body.dark-theme .faq-item {
    background: #2d2d2d;
}

body.dark-theme .faq-question {
    color: #476cfe;
}

body.dark-theme .faq-answer {
    color: #ccc;
}

/* 页脚区域 */
.footer {
    background-color: #333;
    color: white;
    padding: 50px 5% 20px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #555;
}

.footer-logo {
    flex: 0 0 auto;
    margin-right: 30px;
}

.footer-logo-img {
    height: 40px;
}

.footer-description {
    flex: 1;
    min-width: 300px;
}

.footer-description p {
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

.copyright {
    flex: 1;
    min-width: 300px;
}

.copyright p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-nav a:hover {
    color: white;
}

/* 暗色主题下的页尾样式 */
body.dark-theme .footer {
    background-color: #111;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 4px; /* 直角轻微弧度 */
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强玻璃效果 */
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 4px; /* 直角轻微弧度 */
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强玻璃效果 */
}

/* 选项卡按钮 */
.tab {
    padding: 10px 20px;
    background-color: rgba(224, 224, 224, 0.5); /* 50%透明度 */
    margin: 5px;
    border-radius: 4px; /* 直角轻微弧度 */
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.2); /* 边框增强玻璃效果 */
}

.tab.active {
    background-color: rgba(71, 108, 254, 0.7); /* 活动状态增加不透明度 */
    color: white;
}

.tab:hover {
    background-color: rgba(224, 224, 224, 0.7); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
}

/* 暗色主题下的按钮样式 */
body.dark-theme .cta-button {
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .cta-button:hover {
    background-color: rgba(71, 108, 254, 0.7); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

body.dark-theme .plan-button {
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .plan-button:hover {
    background-color: rgba(71, 108, 254, 0.7); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-theme .promo-button {
    background-color: rgba(255, 255, 255, 0.3); /* 暗色主题下降低透明度 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #476cfe;
}

body.dark-theme .promo-button:hover {
    background-color: rgba(255, 255, 255, 0.5); /* 悬停时增加不透明度 */
    transform: translateY(-2px); /* 轻微上移效果 */
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

body.dark-theme .theme-toggle {
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .back-to-top {
    background-color: rgba(71, 108, 254, 0.5); /* 50%透明度 */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 暗色主题下的按钮悬停效果 */
body.dark-theme .theme-toggle:hover,
body.dark-theme .back-to-top:hover {
    background-color: rgba(71, 108, 254, 0.7); /* 悬停时增加不透明度 */
}

body.dark-theme .tab {
    background-color: rgba(64, 64, 64, 0.5); /* 50%透明度 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-theme .tab.active {
    background-color: rgba(71, 108, 254, 0.7); /* 活动状态增加不透明度 */
}

/* 波浪效果容器 */
/*
.wave-container {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 150px;
    background: url('../images/wave.svg') repeat-x;
    animation: wave-animation 8s linear infinite;
}

.wave:nth-child(1) {
    opacity: 1;
    animation-duration: 8s;
    animation-direction: normal;
    background-position: 0 0;
}

.wave:nth-child(2) {
    opacity: 0.7;
    animation-duration: 10s;
    animation-direction: reverse;
    background-position: 0 20px;
}

.wave:nth-child(3) {
    opacity: 0.4;
    animation-duration: 12s;
    animation-direction: normal;
    background-position: 0 40px;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.wave {
    background-size: 1200px 150px;
}

.wave:nth-child(1) {
    animation-direction: normal;
}

.wave:nth-child(2) {
    animation-direction: reverse;
}

.wave:nth-child(3) {
    animation-direction: normal;
}

.wave {
    filter: contrast(1.2);
}

body.dark-theme .wave {
    filter: brightness(0.8) contrast(1.5);
}
*/

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        margin-top: 10px;
    }

    .nav-links li {
        margin: 0 10px;
    }

    .hero {
        height: 640px; /* 强制设置高度为640px，保持一致 */
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 50px 5%;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .node-info,
    .metrics {
        flex-direction: column;
        align-items: center;
    }

    .node-item,
    .metric-item {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
}

/* 针对不同屏幕尺寸的优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        height: 640px; /* 强制设置高度为640px */
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 1025px) {
    .hero {
        height: 640px; /* 强制设置高度为640px */
    }
}

/* 确保在所有设备上视频都保持纵横比 */
@media screen and (orientation: landscape) {
    .hero {
        height: 640px; /* 强制设置高度为640px */
    }
}

@media screen and (orientation: portrait) {
    .hero {
        height: 640px; /* 强制设置高度为640px */
    }
}

/* 超大屏幕优化 */
@media (min-width: 1800px) {
    .hero {
        height: 640px; /* 强制设置高度为640px */
    }
}

/* 额外的视频优化，确保在所有情况下都保持纵横比 */
/* 为不同设备提供更精确的视频控制 */
@media screen and (max-aspect-ratio: 16/9) {
    .hero {
        height: 640px; /* 强制设置高度为640px */
    }
}

@media screen and (min-aspect-ratio: 16/9) {
    .hero {
        height: 640px; /* 强制设置高度为640px */
    }
}

/* 响应式页脚 */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .footer-description {
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-links {
        flex-direction: column;
    }
    
    .footer-column {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

/* 1. 设置父元素（列表项）的相对定位 */
/* 这是关键：它让子元素 (qrcode-popup) 可以相对于它定位 */
.hover-qrcode-li {
    position: relative; 
    list-style: none; /* 如果你的导航栏有小圆点，通常会移除 */
    /* 保持和其他 li 的显示方式一致，通常是 inline-block 或 float */
    display: inline-block; 
    margin: 0 15px; /* 列表项之间的间距 */
}


/* 2. 二维码弹窗的样式 (关键：默认隐藏) */
.qrcode-popup {
    /* 绝对定位，脱离文档流，方便放置 */
    position: absolute;
    
    /* 调整图片框相对于链接的位置：放在链接的下方居中 */
    top: 100%; /* 放在列表项底部 */
    left: 50%;
    transform: translateX(-50%); /* 往左移动自身宽度的一半，实现居中 */
    
    /* 默认隐藏 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 确保鼠标不会因为移到隐藏的框上而触发事件 */
    
    /* 动画效果 (可选) */
    transition: opacity 0.3s ease;
    
    /* 间距和背景美化 (可选) */
    margin-top: 10px;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px;
    border-radius: 4px;
    z-index: 99; /* 确保它在导航栏其他元素之上 */
}

/* 3. 鼠标悬停在列表项上时，显示图片弹窗 */
.hover-qrcode-li:hover .qrcode-popup {
    opacity: 1; /* 完全显示 */
    visibility: visible; /* 变得可见 */
    pointer-events: auto; /* 恢复鼠标事件，允许点击或右键操作图片 */
}

/* 4. 图片大小控制 */
.qrcode-img {
    width: 200px;
    height: 281px;
    display: block; 
}
