/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: 'Roboto', Arial, sans-serif; /* 备用字体 */
    color: #fff;
    background: #0d1b2a; /* 主背景色 */
    overflow-x: hidden;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1; /* 确保背景在最底层 */
}

/* 导航栏 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #0d1b2a; /* 修改为与body背景色相同 */
    position: fixed;
    width: 100%;
    z-index: 10;
}

/* Add Language selection */
.lang-switcher {
    display: inline-flex; /* Or block, depending on layout */
    align-items: center;
    margin-left: 10px; /* Adjust as needed */
}
.lang-switcher button {
    background-color: transparent; /* Or match your nav style */
    color: #fff; /* Or match your nav link color */
    border: 1px solid #fff; /* Example border */
    padding: 5px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.5em; /* Adjust as needed */
    line-height: 0.6;
}
.nav-links .lang-switcher button { /* More specific if in navbar */
    font-size: 10; /* Match navbar link font size */
    padding: 0.5em 0.7em; /* Match other nav links padding if any */
}
.lang-switcher button.active {
    background-color: #0088ff; /* Highlight active language */
    color: white;
    font-weight: bold;
}
.lang-switcher button:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.2); /* Hover effect */
}

.logo {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif; /* 增加备用字体 */
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #00d4ff, #cc00ff); /* 渐变色 */
    -webkit-background-clip: text; /* 文字填充渐变 */
    background-clip: text;
    color: transparent; /* 透明文字，显示渐变 */
    text-shadow:
        0 0 5px rgba(0, 212, 255, 0.8),
        0 0 10px rgba(0, 212, 255, 0.6),
        0 0 15px rgba(204, 0, 255, 0.4); /* 多层发光阴影 */
    -webkit-text-stroke: 0.5px rgba(255, 255, 255, 0.2); /* 细微描边 */
    animation: pulse 2s infinite ease-in-out; /* 脉冲动画 */
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        text-shadow:
            0 0 5px rgba(0, 212, 255, 0.8),
            0 0 10px rgba(0, 212, 255, 0.6),
            0 0 15px rgba(204, 0, 255, 0.4);
    }
    50% {
        text-shadow:
            0 0 8px rgba(0, 212, 255, 1),
            0 0 15px rgba(0, 212, 255, 0.8),
            0 0 20px rgba(204, 0, 255, 0.6);
    }
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    white-space: nowrap; /* 防止文本换行 */
}

.nav-links a:hover,
.nav-links a.active {
    color: #00d4ff;
}

/* 首页英雄区 */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-size: 60px;
    margin-bottom: 20px;
    background: linear-gradient(
        90deg,
        #007CF0, /* Bright Blue */
        #00DFD8, /* Bright Cyan */
        #007CF0  /* Bright Blue - repeat first color for smooth loop */
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientWave 6s linear infinite;
    -webkit-animation: gradientWave 6s linear infinite;
}

/* 颜色波动画 */
@keyframes gradientWave {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero p {
    font-size: 20px;
    max-width: 600px;
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 20px; /* 按钮间距 */
    justify-content: center;
    align-items: center;
}

.cta-button {
    padding: 15px 30px;
    background: #00d4ff;
    color: #0d1b2a;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
    // flex-grow: 1;
    // flex-shrink: 1;
    // flex-basis: 0;
}

.cta-button:hover {
    background: #00aaff;
}

/* 版块概览（横向布局） */
.sections {
    padding: 100px 50px;
    display: flex;
    justify-content: center; /* 水平居中 */
    gap: 90px; /* 卡片间距 */
    flex-wrap: wrap; /* 允许换行 */
}

.section-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    width: 300px; /* 固定宽度，横向排列 */
    text-align: center;
    transition: transform 0.3s;
}

.section-card:hover {
    transform: translateY(-10px);
}

.section-card h2 {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    margin-bottom: 15px;
}

.section-card p {
    margin-bottom: 20px;
}

.card-button {
    padding: 10px 20px;
    background: #00d4ff;
    color: #0d1b2a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.card-button:hover {
    background: #00aaff;
}

/* 登录页面 */
.login {
  text-align: center;
  padding: 120px 20px 50px; /* 顶部增加到 120px，避开导航栏 */
  min-height: 100vh; /* 确保内容撑满屏幕 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  margin-bottom: 20px;
}

.login-form {
  max-width: 400px;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
}

.login-form input,
.login-form button {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
}

.login-form button {
  background: #00bcd4;
  color: #fff;
  cursor: pointer;
}

.login-form button:hover {
  background: #0097a7;
}

.login-form label {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
  cursor: pointer;
  white-space: nowrap; /* 强制文本在一行 */
  font-size: 14px; /* 缩小字体，减少宽度 */
}

.cf-turnstile {
  margin: 10px 0;
}

/* 内容页面 */
.content {
    padding: 150px 50px 100px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left; /* 左对齐 */
}

.content h1 {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-size: 40px;
    margin-bottom: 20px;
}

.content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.content-details {
    margin-top: 40px;
    text-align: left; /* 左对齐 */
}

.content-details h3 {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: #00d4ff; /* 非链接标题使用霓虹蓝 */
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.8);
}

.content-details h3 a {
    color: #00d4ff; /* 链接字体为霓虹蓝 */
    text-decoration: none; /* 移除下划线 */
    transition: text-shadow 0.3s; /* 悬停时增强发光 */
}

.content-details h3 a:hover {
    text-shadow: 0 0 8px rgba(0, 212, 255, 1), 0 0 15px rgba(0, 212, 255, 0.8); /* 悬停发光 */
}

/* 迭代路径页面阶段列表 */
.iteration-stages {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    padding: 0;
}

.iteration-stages .detail-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    font-family: 'Roboto', Arial, sans-serif;
    text-align: left; /* 左对齐 */
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-in-out forwards;
    opacity: 0; /* 初始透明，配合动画 */
}

.iteration-stages .detail-card h4 {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-size: 20px;
    color: #00d4ff;
    margin-bottom: 10px;
}

.iteration-stages .detail-card p {
    font-size: 16px;
    color: #fff;
}

/* 逐个淡入动画 */
.iteration-stages .detail-card:nth-child(1) { animation-delay: 0.1s; }
.iteration-stages .detail-card:nth-child(2) { animation-delay: 0.2s; }
.iteration-stages .detail-card:nth-child(3) { animation-delay: 0.3s; }
.iteration-stages .detail-card:nth-child(4) { animation-delay: 0.4s; }
.iteration-stages .detail-card:nth-child(5) { animation-delay: 0.5s; }
.iteration-stages .detail-card:nth-child(6) { animation-delay: 0.6s; }
.iteration-stages .detail-card:nth-child(7) { animation-delay: 0.7s; }
.iteration-stages .detail-card:nth-child(8) { animation-delay: 0.8s; }

.iteration-stages .detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* 内容页面卡片（AI学习页面） */
.content-details ul:not(.iteration-stages) {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 固定2列，每行2个 */
    gap: 20px;
    list-style: none;
    padding: 0;
}

.content-details .detail-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-align: center; /* AI学习页面卡片居中 */
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeIn 0.5s ease-in-out forwards;
    opacity: 0; /* 初始透明，配合动画 */
}

.content-details .detail-card a {
    color: #fff;
    text-decoration: none; /* 移除下划线 */
    display: block; /* 确保链接填满卡片 */
    width: 100%;
    height: 100%;
    transition: color 0.3s;
}

.content-details .detail-card a:hover {
    color: #00d4ff; /* 悬停时文字变霓虹蓝 */
}

/* 逐个淡入动画 */
.content-details .detail-card:nth-child(1) { animation-delay: 0.1s; }
.content-details .detail-card:nth-child(2) { animation-delay: 0.2s; }
.content-details .detail-card:nth-child(3) { animation-delay: 0.3s; }
.content-details .detail-card:nth-child(4) { animation-delay: 0.4s; }

.content-details .detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 页脚 */
footer {
    text-align: left; /* 左对齐 */
    padding: 20px 50px;
    background: #0d1b2a; /* 修改为与body背景色相同 */
}

/* 案例按钮（ai-learning-caselist.html） */
.case-button {
    padding: 10px 20px;
    background: #00d4ff; /* 霓虹蓝背景 */
    color: #fff; /* 白色文字 */
    border: none;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, text-shadow 0.3s;
    margin-top: 10px;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.8); /* 霓虹发光 */
}

.case-button:hover {
    background: #00aaff; /* 稍暗的霓虹蓝 */
    text-shadow: 0 0 8px rgba(0, 212, 255, 1); /* 增强发光 */
}

/* 微信公众号模态框 */
.modal {
    display: none; /* 默认隐藏 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000; /* 提高 z-index，确保在最上层 */
    justify-content: center;
    align-items: center;
    opacity: 1; /* 确保可见 */
}

.modal-content {
    background: rgba(255, 255, 255, 0.2); /* 增加背景不透明度 */
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(0, 212, 255, 0.3); /* 增强边框 */
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4); /* 增强阴影 */
    opacity: 1; /* 确保内容可见 */
}

.modal-content h4 {
    font-family: 'Orbitron', 'Helvetica Neue', sans-serif;
    font-size: 20px;
    color: #00d4ff;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.8); /* 增强标题可见性 */
}

.modal-content p {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.5); /* 轻微发光 */
}

.qrcode {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    display: block;
    background: #fff; /* 添加白色背景，防止图片透明 */
    padding: 5px; /* 内边距 */
}

.modal-button {
    padding: 10px 20px;
    background: #00d4ff; /* 霓虹蓝背景 */
    color: #fff; /* 白色文字 */
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s, text-shadow 0.3s;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.8); /* 霓虹发光 */
}

.modal-button:hover {
    background: #00aaff; /* 稍暗的霓虹蓝 */
    text-shadow: 0 0 8px rgba(0, 212, 255, 1); /* 增强发光 */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.8); /* 增强可见性 */
}

.close-button:hover {
    color: #00d4ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
    }
    .logo {
        font-size: 20px; /* 移动端稍减小 */
        margin-bottom: 10px;
    }

    .nav-links {
        margin-top: 10px;
        justify-content: center; /* 导航链接居中 */
    }
    .nav-links li {
        margin: 0 5px;
    }

    .nav-links a {
        font-size: 10px; /* 减小字体 */
        white-space: nowrap;
    }

    .hero {
        height: auto;
        padding: 20px 20px;
    }
    .hero-title {
        font-size: 40px; /* 移动端减小字体 */
    }
    .hero-title .letter {
        animation: colorWave 6s ease-in-out infinite;
    }
    .hero p {
        font-size: 16px;
    }
    .button-group {
        flex-direction: column;
        gap: 15px; /* 移动端垂直间距 */
    }
    .cta-button {
        padding: 12px 24px; /* 移动端减小内边距 */
        font-size: 14px;
    }
    .sections {
        padding: 50px 20px;
        gap: 30px; /* 移动端减小间距 */
    }
    .section-card {
        width: 100%; /* 移动端占满宽度 */
        max-width: 400px; /* 限制最大宽度 */
    }
    .login {
        padding-top: 160px; /* 移动端导航栏更高，增加顶部间距 */
    }
    .login h1 {
        font-size: 28px;
    }
    .login-form {
        max-width: 90%;
    }
    .content {
        padding: 20px 20px 50px;
    }
    .content h1 {
        font-size: 28px;
    }
    .content-details h3 {
        font-size: 20px;
    }
    .content-details ul:not(.iteration-stages) {
        grid-template-columns: 1fr; /* 移动端单列 */
    }
    .content-details .detail-card {
        font-size: 16px;
        padding: 15px;
    }
    .iteration-stages .detail-card h4 {
        font-size: 18px;
    }
    .iteration-stages .detail-card p {
        font-size: 14px;
    }
    .case-button {
        font-size: 14px;
        padding: 8px 16px;
    }
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .qrcode {
        width: 120px;
        height: 120px;
    }
    .modal-button {
        font-size: 14px;
        padding: 8px 16px;
    }
    footer {
        padding: 20px;
    }
}

