/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(0,255,255,0.05) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(0,255,255,0.05) 50%, transparent 52%);
    background-size: 30px 30px;
    z-index: -1;
    will-change: transform;
    animation: backgroundShift 30s linear infinite;
}

/* 导航栏基础样式 */
.navbar {
    background: rgba(15, 32, 39, 0.95);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 74px;
}

/* 导航栏容器 */
.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo容器样式 */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 5px 0;
}

/* Logo图片样式 */
.navbar-brand .logo {
    height: 44px;
    width: auto;
    border-radius: 6px !important;
    object-fit: cover;
}

.software-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}

/* 导航链接容器 */
.navbar-nav {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* 导航链接 */
.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00ffff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 轮播图容器 */
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 74px 20px 0;
}

.carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    gap: 20px;
    padding: 0 20px;
    transition: transform 0.5s ease-in-out;
}

.carousel-inner img {
    flex: 0 0 calc(33.333% - 14px);
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0.6;
    transition: opacity 0.5s ease, transform 0.3s ease;
    transform: scale(0.9);
}

.carousel-inner img.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-inner img.active + img {
    opacity: 0.8;
    transform: scale(0.95);
}

/* 轮播控制按钮 */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel:hover .carousel-prev,
.carousel:hover .carousel-next {
    opacity: 1;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 指示点样式 */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s;
}

.dot.active {
    background: white;
}

/* 主内容区域样式 */
.main-content {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    color: #fff;
}

.card-title {
    color: #00ffff;
}

/* 动画效果 */
@keyframes backgroundShift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 30px 30px;
    }
}

/* 按钮样式 */
.custom-btn {
    padding: 10px 30px;
    background: linear-gradient(45deg, #00ffff, #00bfff);
    color: #0f2027;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.custom-btn:hover {
    transform: translateY(-2px);
}

/* 标题样式 */
h2 {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    letter-spacing: 2px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 32, 39, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 4px;
}

/* 功能滑动区样式 */
.features-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.features-track {
    display: flex;
    gap: 20px;
    cursor: grab;
    transition: transform 0.3s ease-out;
    user-select: none;
    touch-action: pan-y;
}

.feature-card {
    min-width: calc(33.333% - 14px);
    flex: 0 0 auto;
}

.feature-card .card {
    height: 100%;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* 导航点样式 */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #00ffff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background: #00ffff;
}

/* 响应式调整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .feature-card {
        min-width: calc(50% - 20px);
    }
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .carousel-container {
        max-width: 900px;
    }
    
    .carousel-inner {
        aspect-ratio: 3/2;  /* 调整宽高比 */
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
    
    .logo {
        height: 40px;
    }

    .navbar .container {
        padding: 0 15px;
    }

    .navbar-nav {
        gap: 1rem;
    }

    .carousel-container {
        max-width: 600px;
        padding: 60px 10px 0;
    }

    .carousel {
        border-radius: 0;
    }

    .carousel-inner {
        gap: 10px;
        padding: 0 10px;
    }

    .carousel-inner img {
        flex: 0 0 calc(33.333% - 7px);  /* 调整间距 */
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        max-width: 100%;
        padding: 50px 5px 0;
    }
    
    .carousel-inner {
        gap: 5px;
        padding: 0 5px;
        aspect-ratio: 4/3;  /* 移动端调整宽高比 */
    }
    
    .carousel-inner img {
        flex: 0 0 calc(33.333% - 4px);
    }
}

/* 功能区样式 */
.features-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #0f2027, #203a43);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .features-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* 介绍区域样式 */
.intro-section {
    padding: 100px 0 40px;  /* 顶部留出导航栏的空间 */
    background: rgba(255, 255, 255, 0.05);
}

.intro-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
    color: #fff;
}

.intro-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.intro-text p:first-child {
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ffff;
}

.intro-action {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;  /* logo 和按钮之间的间距 */
}

.intro-logo {
    width: 120px;  /* logo 宽度从 100px 增加到 120px */
    height: 120px;  /* logo 高度从 100px 增加到 120px */
    border-radius: 20px;
    object-fit: cover;
}

.intro-action .download-btn {
    padding: 8px 20px;    /* 减小内边距 */
    font-size: 0.95rem;   /* 稍微减小字体 */
    min-width: 100px;     /* 减小最小宽度 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    
    .intro-text p {
        font-size: 1rem;
    }
    
    .intro-text p:first-child {
        font-size: 1.3rem;
    }

    .intro-action .download-btn {
        padding: 7px 18px;
        font-size: 0.9rem;
        min-width: 90px;
    }
}

/* 增强平滑滚动效果 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;  /* 为固定导航栏预留空间 */
}

/* 添加滚动动画类 */
.smooth-scroll {
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

/* 关于区域样式 */
.about-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #fff;
    font-size: 1.1rem;
}

/* 确保导航栏固定在顶部时不会遮挡内容 */
section {
    scroll-margin-top: 80px; /* 导航栏的高度加上一些额外空间 */
}

/* 确保固定导航栏不会遮挡内容 */
#about, #features, #contact {
    scroll-margin-top: 80px;  /* 导航栏的高度 */
}

.system-info {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #fff;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    width: 30px;
    margin-right: 15px;
    color: #00ffff;
    font-size: 1.2rem;
}

.info-item span {
    font-size: 1.1rem;
    line-height: 1.5;
}

.info-icon {
    width: 32px;  /* 增加图标尺寸从 24px 到 32px */
    height: 32px;  /* 增加图标尺寸从 24px 到 32px */
    margin-right: 15px;
    /* 移除 filter 属性，保持图标原色 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .system-info {
        padding: 15px;
    }
    
    .info-item {
        margin-bottom: 12px;
    }
    
    .info-item i {
        width: 25px;
        margin-right: 10px;
        font-size: 1rem;
    }
    
    .info-item span {
        font-size: 1rem;
    }

    .info-icon {
        width: 28px;  /* 移动端稍微小一点 */
        height: 28px;
    }
}

.download-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.download-btn {
    min-width: 200px;
    padding: 15px 30px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #00ffff, #00bfff);
    color: #0f2027;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .download-btn {
        min-width: 180px;
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* 对话框样式 */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.dialog-content {
    background: #1a2b34;
    border-radius: 10px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.dialog-content h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.download-info {
    flex: 1;
    margin-right: 20px;
}

.platform {
    color: #00ffff;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.link {
    color: #fff;
    text-decoration: none;
    word-break: break-all;
}

.multi-links {
    display: flex;
    gap: 15px;
}

.link-with-code {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.code {
    color: #00ffff;
}

.download-now {
    background: linear-gradient(45deg, #00ffff, #00bfff);
    color: #0f2027;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.close-dialog {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-info {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .multi-links {
        flex-direction: column;
        gap: 5px;
    }
}

.link-item {
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.link-label {
    color: #00ffff;
    white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .link-item {
        flex-direction: column;
        gap: 2px;
    }
}

/* 赞助对话框样式 */
.sponsor-dialog {
    max-width: 600px;
    text-align: center;
}

.sponsor-text {
    color: #fff;
    margin-bottom: 30px;
}

.sponsor-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.sponsor-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.sponsor-btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

.bilibili-btn {
    background: linear-gradient(45deg, #23ADE5, #007BB6);
    color: #fff;
}

.sponsor-link-btn {
    background: linear-gradient(45deg, #00ffff, #00bfff);
    color: #0f2027;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sponsor-text p {
        font-size: 1rem;
    }
    
    .sponsor-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .sponsor-btn {
        padding: 10px 25px;
    }
}