/* 基础样式放在最前面 */
body {
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: #ffffff;
    background-color: #000000;
    background-image: linear-gradient(to bottom right, #000000, #1a1a1a);
}

.navbar {
    background-color: rgba(13, 27, 42, 0.8) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.navbar-brand:hover {
    text-decoration: none !important;
}

.logo-cloud {
    font-size: 1.8rem;
    color: white;
    opacity: 0.9;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-subtitle {
    font-size: 0.8rem;
    color: #adb5bd;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

.btn-tech {
    width: 150px;
    height: 150px;
    border-radius: 75px;
    font-size: 24px;
    color: white;
    background: linear-gradient(145deg, #1e3a8a, #1e40af);
    border: none;
    margin: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-tech:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #1e40af, #1e3a8a);
    color: #fff;
}

.resource-icon {
    font-size: 64px;
    color: white;
    transition: all 0.3s ease;
}

.resource-icon:hover {
    transform: scale(1.1);
    color: #3b82f6;
}

.social-icon {
    margin: 0 10px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.section {
    padding: 60px 0;
    margin-bottom: 30px;
    background-color: rgba(13, 27, 42, 0.8);
    border-radius: 15px;
    color: white;
}

.container {
    padding-top: 40px;
    padding-bottom: 40px;
}

h2 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    margin-bottom: 30px;
}

.btn-primary {
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 200%;
    animation: rainbow 5s ease infinite;
    color: #000000;
    font-weight: bold;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.btn-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

.qrcode-image {
    max-width: 200px;
    margin: auto;
}

.modal-content {
    background-color: rgba(26, 26, 26, 0.9) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        align-items: center;
    }
    
    .section {
        margin: 30px 0;
        padding: 20px;
    }
    
    .btn-tech {
        font-size: 1rem;
        padding: 15px;
    }
}

.tech-section {
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.15);
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, 
        rgba(0, 123, 255, 0.2), 
        rgba(0, 123, 255, 0), 
        rgba(0, 123, 255, 0.2)
    );
    background-size: 400% 400%;
    animation: borderGlow 5s ease infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 为了让内容更加清晰可见 */
.tech-section h2 {
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* 悬停效果 */
.tech-section:hover {
    transform: translateY(-2px);
    transition: transform 0.4s ease;
    box-shadow: 0 6px 20px 0 rgba(31, 38, 135, 0.25);
}

.logo-cloud {
    font-size: 2rem;
    color: white;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.logo-cloud {
    font-size: 2.5rem;
    color: white;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.2;
}

.navbar-subtitle {
    font-size: 0.8rem;
    color: #adb5bd;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

#chatMessages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-bottom: 15px;
}

.ai-message, .user-message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
}

.ai-message {
    background: rgba(59, 130, 246, 0.2);
    margin-right: auto;
}

.user-message {
    background: rgba(255, 255, 255, 0.1);
    margin-left: auto;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* 页脚样式 */
.footer-icons {
    font-size: 1.5rem;
}

.footer-icons i {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-icons i:hover {
    transform: translateY(-3px);
    opacity: 1;
    color: #3b82f6;
}

.footer-bottom {
    margin-top: 1rem;
}

.footer-bottom small {
    display: block;
    margin-top: 0.5rem;
}

#footer h5 {
    color: #3b82f6;
    font-weight: 600;
}

#footer {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 区域标题样式 */
.section h2 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(120deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(255, 0, 255, 0.3);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        #00ffff,
        #ff00ff,
        transparent
    );
}

/* 添加动画效果 */
@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 0.5),
            0 0 20px rgba(255, 0, 255, 0.3);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 0.7),
            0 0 25px rgba(255, 0, 255, 0.5);
    }
}

.section h2 {
    animation: titleGlow 3s ease-in-out infinite;
}

/* 导航栏 logo ���字样式 */
.navbar-brand .logo-text {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(120deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(255, 0, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
    margin-bottom: 0;  /* 移除底部间距 */
    padding-bottom: 0;  /* 移除底部内边距 */
}

/* 确保不显示下划线 */
.navbar-brand {
    text-decoration: none !important;
}

.navbar-brand:hover {
    text-decoration: none !important;
}

/* 二进制动画样式 */
.binary-animation {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 30px;
    font-family: 'Courier New', monospace;
    font-size: 20px;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* 左侧三列 */
.binary-left {
    left: 10px;
}

.binary-center-left {
    left: 50px;
}

.binary-right-left {
    left: 90px;
}

/* 右侧三列 */
.binary-right {
    right: 90px;
}

.binary-center-right {
    right: 50px;
}

.binary-right-right {
    right: 10px;
}

.binary-animation::before {
    content: '1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0\A 1\A 0';
    white-space: pre;
    position: absolute;
    top: 0;
    background: linear-gradient(120deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(255, 0, 255, 0.3);
    animation: binary 4s linear infinite;
    opacity: 0.7;
}

/* 左侧动画延迟 */
.binary-left::before {
    left: 0;
}

.binary-center-left::before {
    left: 0;
    animation-delay: -1.3s;
}

.binary-right-left::before {
    left: 0;
    animation-delay: -2.6s;
}

/* 右侧动画延迟 */
.binary-right::before {
    right: 0;
    animation-delay: -0.7s;
}

.binary-center-right::before {
    right: 0;
    animation-delay: -2s;
}

.binary-right-right::before {
    right: 0;
    animation-delay: -3.3s;
}

@keyframes binary {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0%);
    }
}

/* 导航栏 logo 样式 */
.logo-cloud {
    font-size: 3.5rem;  /* 增大图标尺寸 */
    background: linear-gradient(120deg, #00ffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cloudFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 15px rgba(0, 255, 255, 0.4),
        0 0 25px rgba(0, 255, 255, 0.3);
    margin-right: 1rem;  /* 增加右侧间距 */
}

/* 悬停效果 */
.logo-cloud:hover {
    background: linear-gradient(120deg, #00ffff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.15);  /* 增大悬停时的缩放比例 */
    text-shadow: 
        0 0 15px rgba(0, 255, 255, 0.8),
        0 0 25px rgba(0, 255, 255, 0.6),
        0 0 35px rgba(255, 0, 255, 0.4);
    animation: cloudFloatHover 1.5s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes cloudFloat {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.08);  /* 增加移动距离和缩放 */
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* 悬停时的动画 */
@keyframes cloudFloatHover {
    0% {
        transform: translateY(0) scale(1.15);
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 0.8),
            0 0 25px rgba(0, 255, 255, 0.6);
    }
    50% {
        transform: translateY(-15px) scale(1.2);  /* 增加移动距离和缩放 */
        text-shadow: 
            0 0 20px rgba(0, 255, 255, 0.9),
            0 0 30px rgba(0, 255, 255, 0.7),
            0 0 40px rgba(255, 0, 255, 0.5);
    }
    100% {
        transform: translateY(0) scale(1.15);
        text-shadow: 
            0 0 15px rgba(0, 255, 255, 0.8),
            0 0 25px rgba(0, 255, 255, 0.6);
    }
}

/* 轮播图样式 */
.carousel {
    margin-top: 60px;  /* 继续减小上边距 */
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    /* 调整导航栏 */
    .logo-cloud {
        font-size: 2.5rem;  /* 减小logo大小 */
    }
    
    /* 调整二进制动画 */
    .binary-animation {
        width: 20px;  /* 减小宽度 */
        font-size: 16px;  /* 减小字体 */
    }
    
    /* 调整左侧列间距 */
    .binary-left {
        left: 5px;
    }
    
    .binary-center-left {
        left: 30px;
    }
    
    .binary-right-left {
        left: 55px;
    }
    
    /* 调整右侧列间距 */
    .binary-right {
        right: 55px;
    }
    
    .binary-center-right {
        right: 30px;
    }
    
    .binary-right-right {
        right: 5px;
    }

    /* 调整区域标题 */
    .section h2 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    /* 调整轮播图 */
    .carousel {
        margin-top: 50px;
    }

    .carousel-item img {
        height: 300px;
    }

    /* 调整按钮大小 */
    .btn-primary {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* 调整页脚图标 */
    .footer-icons {
        font-size: 1.2rem;
    }
}

/* 更小屏幕的适配 */
@media screen and (max-width: 480px) {
    /* 调整logo */
    .logo-cloud {
        font-size: 2rem;
    }
    
    /* ���整二进制动画 */
    .binary-animation {
        width: 15px;
        font-size: 14px;
    }
    
    /* 调整左侧列间距 */
    .binary-center-left {
        left: 25px;
    }
    
    .binary-right-left {
        left: 45px;
    }
    
    /* 调整右侧列间距 */
    .binary-right {
        right: 45px;
    }
    
    .binary-center-right {
        right: 25px;
    }

    /* 调整区域间距 */
    .section {
        padding: 30px 15px;
        margin-bottom: 20px;
    }

    /* 调整轮播图 */
    .carousel-item img {
        height: 250px;
    }

    /* 调整模态框 */
    .modal-dialog {
        margin: 10px;
    }

    .qrcode-image {
        max-width: 150px;
    }
}

/* 添加滚动偏移量，确保导航跳转时内容居中显示 */
html {
    scroll-padding-top: 80px; /* 这个值可以根据需要调整 */
}

/* 确保每个区域有足够的上下边距 */
.section {
    padding: 60px 0;
    margin: 40px 0;  /* 增加区域间距 */
}

/* 调整轮播图的位置 */
#mainCarousel {
    padding-top: 80px;  /* 增加顶部内边距 */
    margin-bottom: 40px;
}