:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #10b981;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f1f5f9;
    --card-bg: rgba(15, 23, 42, 0.7);
    --glow: 0 0 15px rgba(59, 130, 246, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--darker), #1e293b);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 30%);
    z-index: -2;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background-color: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 10s ease-in-out infinite;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    background: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.logo-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 24px;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--primary-light);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 优化CTA按钮样式 */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 36px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow);
    min-width: 180px;
    max-width: 250px;
    margin: 0 auto;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.cta-button::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    transition: all 0.5s ease;
}

.cta-button:hover::after {
    transform: rotate(30deg) translate(20%, 20%);
}

/* 内容预览区 */
.content-preview {
    padding: 60px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.7), rgba(15, 23, 42, 0.8));
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.preview-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.preview-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto 50px;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    /* PC端显式两行区域：第一行大图跨两列，第二行左右并排 */
    grid-template-areas:
        "large large"
        "mobile code";
}

.preview-item {
    position: relative;
    transition: all 0.3s ease;
}

.preview-item.large {
    grid-column: span 2;
    grid-row: span 1;
    grid-area: large;
}

/* 移动端和代码展示图片在一行显示 */
.preview-item.mobile-preview,
.preview-item.code-preview {
    grid-column: span 1;
    grid-row: span 1;
}

.preview-item.mobile-preview {
    grid-area: mobile;
}

.preview-item.code-preview {
    grid-area: code;
}

.preview-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 宽高比 */
}

.preview-item.large .preview-image-container {
    padding-bottom: 45%;
    /* 更宽的宽高比 */
}

/* PC端移动端和代码展示图片优化 */
.mobile-preview .preview-image-container,
.code-preview .preview-image-container {
    padding-bottom: 50%;
    /* PC端使用更紧凑的高度比例 */
}

.preview-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 修改为覆盖模式，完全消除顶部空白 */
.mobile-preview .preview-image,
.code-preview .preview-image {
    /* PC端与代码预览：使用contain保证完整展示手机长图 */
    object-fit: contain;
    object-position: center center;
    /* 居中显示，避免裁剪，保留上下留白 */
    background-color: rgba(15, 23, 42, 0.5);
}

/* 控制移动端和代码展示图片的最大尺寸 */
/* 删除max-width限制，保证能并排显示 */
.mobile-preview .preview-image-container,
.code-preview .preview-image-container {
    width: 100%;
    padding-bottom: 120%;
    /* PC端提高纵向比例，更贴近手机竖屏 */
}

/* 响应式：移动端优化 - 保持mobile-preview和code-preview在一行 */
@media (max-width: 768px) {
    .preview-grid {
        grid-template-columns: 1fr 1fr;
        /* 移动端保持两列布局用于mobile和code预览 */
        grid-template-areas:
            "large large"
            "mobile code";
        gap: 20px;
    }

    .preview-item.large {
        grid-area: large;
        grid-column: span 2;
    }

    .preview-item.mobile-preview {
        grid-area: mobile;
    }

    .preview-item.code-preview {
        grid-area: code;
    }

    .mobile-preview .preview-image-container,
    .code-preview .preview-image-container {
        padding-bottom: 140%;
        /* 移动端适中比例 */
    }
}

/* 还原默认布局 */

.preview-item.mobile-preview .preview-caption,
.preview-item.code-preview .preview-caption {
    text-align: center;
    margin-top: 12px;
    font-size: 1rem;
}

/* 附件式卡片布局样式已移除 */

.preview-item:hover .preview-image {
    transform: scale(1.03);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.preview-tag {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.preview-caption {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
}

.preview-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    gap: 20px;
}

.preview-nav-btn {
    background: rgba(15, 23, 42, 0.8);
    color: var(--primary-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-nav-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 768px) {

    /* 大图片项保持跨两列 */
    .preview-item.large {
        grid-column: span 2;
    }

    .preview-item.large .preview-image-container {
        padding-bottom: 56.25%;
        /* 恢复标准宽高比 */
    }

    /* 移动端和代码展示图片并排显示，各占一列 */
    .mobile-preview .preview-image-container,
    .code-preview .preview-image-container {
        padding-bottom: 140%;
        /* 移动端适中比例，与上面保持一致 */
    }

    .preview-title {
        font-size: 2rem;
    }

    .preview-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* 移动端触摸优化 */
    .preview-item {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .preview-image {
        touch-action: pan-x pan-y;
    }

    /* 移动端导航优化 */
    .preview-nav-btn {
        width: 50px;
        height: 50px;
        min-width: 50px;
        min-height: 50px;
    }

    .preview-dot {
        width: 12px;
        height: 12px;
        min-width: 12px;
        min-height: 12px;
    }
}

/* 中等屏幕优化 */
@media (min-width: 769px) and (max-width: 1200px) {
    .preview-grid {
        gap: 25px;
    }

    .mobile-preview .preview-image-container,
    .code-preview .preview-image-container {
        padding-bottom: 100%;
        /* 中等屏幕提高纵向比例，完整显示竖图 */
    }
}

/* 大屏幕优化 */
@media (min-width: 1201px) {
    .preview-grid {
        gap: 35px;
    }

    .mobile-preview .preview-image-container,
    .code-preview .preview-image-container {
        padding-bottom: 85%;
        /* 大屏幕提高纵向比例，保持并排观感且避免裁剪 */
    }
}

@media (max-width: 480px) {

    /* 在更小的屏幕上，移动端和代码预览图片仍保持并排显示 */
    .mobile-preview .preview-image-container,
    .code-preview .preview-image-container {
        padding-bottom: 150%;
        /* 小屏幕稍微增加高度比例 */
    }

    /* 小屏幕触摸优化 */
    .preview-nav-btn {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }

    .preview-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
    }

    /* 调整间距 */
    .preview-grid {
        gap: 15px;
    }
}

/* Stats Section */
.stats {
    padding: 30px 0 50px;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px 20px;
    min-width: 180px;
    flex: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 3rem;
    font-weight: 600;
    background: linear-gradient(to right, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #cbd5e1;
}

/* Knowledge Map */
.knowledge-map {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px auto;
    max-width: 1150px;
}

.tech-tag {
    background: rgba(15, 23, 42, 0.5);
    color: var(--primary-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* Tech Sections */
.tech-section {
    padding: 100px 0;
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-header {
    text-align: center;
    margin-bottom: 60px;
}

.tech-header h2 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.tech-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    border-radius: 2px;
}

.tech-header p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 20px auto 0;
    line-height: 1.6;
}

.tech-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
}

.tech-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-card h3 i {
    font-size: 1.8rem;
    color: var(--accent);
}

.tech-list {
    list-style: none;
    padding-left: 10px;
}

.tech-list li {
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
}

.tech-list li:last-child {
    border-bottom: none;
}

.tech-list li i {
    color: var(--accent);
    margin-right: 15px;
    margin-top: 5px;
    font-size: 1.1rem;
}

.tech-list li div {
    flex: 1;
}

.tech-list li h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tech-list li p {
    color: #cbd5e1;
    line-height: 1.6;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: rgba(15, 23, 42, 0.5);
    color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* QR Section */
/* 移除未使用的 QR 区块样式 */

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* 重复的 @keyframes float 已移除（顶部脚本已注入） */

/* 添加bounce动画 */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .tech-content {
        grid-template-columns: 1fr;
    }

    .header-content {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .header-content .logo {
        justify-content: center;
        margin-left: 0 !important;
    }

    .header-content nav {
        order: 2;
    }

    .header-content div:last-child {
        order: 3;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-direction: column !important;
        width: 100% !important;
        margin-left: 0 !important;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 15px !important;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
        padding: 12px 24px !important;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .stats-container {
        gap: 15px;
    }

    .stat-card {
        min-width: 140px;
        padding: 15px;
        flex: 0 0 calc(50% - 15px);
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .tech-header h2 {
        font-size: 2rem;
    }

    .tech-card {
        padding: 25px;
    }

    .tech-list li {
        padding: 12px 0;
    }

    .tech-list li h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex: 0 0 100%;
        min-width: 200px;
    }
}

/* 添加导航按钮悬停效果 */
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* 重复的 @keyframes pulse 已移除（上方已有同名定义） */

/* 滚动动画效果相关样式 */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 不同区域使用稍微错开的动画延迟，创造更自然的效果 */
.fade-delay-1 {
    transition-delay: 0.1s;
}

.fade-delay-2 {
    transition-delay: 0.2s;
}

.fade-delay-3 {
    transition-delay: 0.3s;
}

.fade-delay-4 {
    transition-delay: 0.4s;
}

.fade-delay-5 {
    transition-delay: 0.5s;
}

/* Animations */

/* 知识树样式 */
.tree-container {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.tree {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
    min-width: 90%;
}

.tree ul {
    list-style-type: none;
    padding-left: 22px;
    /* 减少缩进，让树更紧凑 */
    margin: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.tree li {
    position: relative;
    padding: 3px 0 0 22px;
    /* 减少顶部内边距，让树更紧凑 */
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    text-align: left;
}

/* 一级目录项特殊样式，更加紧凑 */
.tree>li {
    padding-top: 1px;
    padding-bottom: 1px;
    margin-bottom: 3px;
}

.tree li:nth-child(1) {
    animation-delay: 0.05s;
}

.tree li:nth-child(2) {
    animation-delay: 0.1s;
}

.tree li:nth-child(3) {
    animation-delay: 0.15s;
}

.tree li:nth-child(4) {
    animation-delay: 0.2s;
}

.tree li:nth-child(5) {
    animation-delay: 0.25s;
}

.tree li:nth-child(n+6) {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 连接线样式优化 */
.tree li::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 0;
    width: 18px;
    height: 0;
    border-top: 1.5px solid rgba(59, 130, 246, 0.4);
    /* 加粗连接线 */
}

.tree li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 14px;
    border-left: 1.5px solid rgba(59, 130, 246, 0.4);
    /* 加粗连接线 */
}

.tree li:last-child::after {
    height: 15px;
}

.tree li>span {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: rgba(15, 23, 42, 0.6);
    margin-bottom: 3px;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.25s ease;
    color: #f8fafc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tree li>span:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateX(3px);
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
}

/* 文件夹样式 - 不显示图标 */
.folder {
    color: var(--primary-light);
    font-weight: 500;
    position: relative;
    padding-left: 2px;
    /* 添加一点左侧内边距补偿移除图标后的空间 */
}

/* 折叠/展开指示器 */
.folder::after {
    content: " [+]";
    font-size: 0.8rem;
    margin-left: 6px;
    color: rgba(59, 130, 246, 0.7);
    font-weight: normal;
}

.folder.open::after {
    content: " [-]";
    color: #3b82f6;
}

/* 文件样式 - 不显示图标 */
.file {
    color: #f1f5f9;
    padding-left: 2px;
    /* 添加一点左侧内边距补偿移除图标后的空间 */
    opacity: 0.9;
}

/* 根节点特殊样式 */
.tree>li>span {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
    font-weight: 600;
    padding: 4px 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
    margin-bottom: 2px;
}

/* 第一级子节点样式 */
.tree>li>ul>li>span {
    background-color: rgba(15, 23, 42, 0.75);
    border-color: rgba(59, 130, 246, 0.25);
}

/* 文件夹展开/折叠动画效果 */
.tree ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* 默认所有子目录都是折叠状态 */
.tree ul ul {
    max-height: 0;
}

/* 使用JavaScript控制展开/折叠效果，不依赖:has选择器 */

/* 为节点提供更好的视觉反馈 */
.tree li>span:active {
    transform: translateX(1px) scale(0.98);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 自定义滚动条 */
.knowledge-tree-section div::-webkit-scrollbar {
    width: 6px;
}

.knowledge-tree-section div::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
}

.knowledge-tree-section div::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

.knowledge-tree-section div::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tree li>span {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .tree ul {
        padding-left: 15px;
    }

    .knowledge-tree-section div {
        padding: 20px 15px;
    }

    /* 更新时间显示在移动端的样式调整 */
    .hero .update-time {
        max-width: 220px !important;
        padding: 6px 16px !important;
        font-size: 12px !important;
    }

    .hero .update-time i {
        font-size: 12px !important;
    }
}

/* 更新时间显示样式 */
.update-time {
    transition: all 0.3s ease;
}

.update-time:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* 添加到现有样式的后面 */

/* 优化区块标题 */
/* 移除未使用的 section-title 与 section-subtitle */

.tech-section {
    padding: 100px 0;
    position: relative;
}

.tech-header {
    text-align: center;
    margin-bottom: 60px;
}

/* 移除未使用的 tech-grid */

.fade-in-section:nth-child(2n) {
    transition-delay: 0.1s;
}

.fade-in-section:nth-child(3n) {
    transition-delay: 0.2s;
}

.fade-in-section:nth-child(4n) {
    transition-delay: 0.3s;
}

/* 增强动画效果 */
.fade-in-section {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(30px);
    opacity: 0;
}

.fade-in-section.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* 悬停动画效果 */
.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-tag:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* 平滑滚动优化 */
html {
    scroll-behavior: smooth;
}

/* 动画性能优化 */
.fade-in-section,
.tech-card,
.tech-tag,
.preview-item {
    will-change: transform, opacity;
}

/* 移除未使用的 hero-eyebrow / accent-text / section-divider */

/* 用户反馈区样式 */
.feedback-gallery {
    margin-top: 40px;
    position: relative;
}

.feedback-main {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.feedback-display {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    background: rgba(2, 6, 23, 0.5);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-display img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.feedback-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary-light);
    z-index: 2;
}

.feedback-nav:hover {
    background: rgba(37, 99, 235, 0.3);
    transform: scale(1.1);
}

/* 移除未使用的 feedback-zoom 控件样式 */

.feedback-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.feedback-thumb {
    width: 80px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.feedback-thumb.active {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.feedback-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片查看器模态框 */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.feedback-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.feedback-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.feedback-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
    z-index: 1001;
}

@media (max-width: 768px) {
    .feedback-display {
        height: 300px;
    }

    .feedback-nav {
        width: 40px;
        height: 40px;
    }

    .feedback-thumb {
        width: 60px;
        height: 40px;
    }
}

/* 显式设置左右切换按钮内图标样式，保证在深色背景下清晰可见 */
.feedback-nav i {
    color: #fff !important;
    font-size: 20px;
    line-height: 1;
}

/* 缩略图区域（水平滚动、单行不换行） */
.feedback-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.feedback-thumbnails-container {
    display: flex;
    gap: 10px;
    transition: transform 0.5s ease;
    flex-wrap: nowrap;
}

/* 缩略图左右导航小按钮 */
.feedback-thumb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    z-index: 5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.feedback-thumb-prev {
    left: 0;
}

.feedback-thumb-next {
    right: 0;
}

/* 缩略图卡片 */
.feedback-thumb {
    width: 100px;
    height: 60px;
    min-width: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    opacity: 0.7;
}

.feedback-thumb.active {
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.feedback-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.feedback-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 响应式：确保不同屏幕下仍为单行横向 */
@media (max-width: 992px) {
    .feedback-display {
        height: 400px;
    }

    .feedback-thumb {
        width: 90px;
        height: 54px;
        min-width: 90px;
    }
}

@media (max-width: 768px) {
    .feedback-display {
        height: 350px;
    }

    .feedback-nav {
        width: 40px;
        height: 40px;
    }

    .feedback-thumb {
        width: 80px;
        height: 48px;
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .feedback-display {
        height: 300px;
    }

    .feedback-thumb {
        width: 60px;
        height: 36px;
        min-width: 60px;
    }
}