/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: scroll;
    width: 100%;
    height: 100%;
    /* 隐藏滚动条但保持滚动功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    /* 确保滚动容器正确 */
    -webkit-overflow-scrolling: touch;
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    overflow-x: hidden;
    overflow-y: visible;
    margin: 0;
    padding: 0;
    width: 100%;
    /* 深色渐变背景 */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #8b5cf6 100%);
    background-attachment: fixed;
}

/* 首页背景图片 */
.home-page {
    background-image: url('../images/backgrounds/home-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 多元兼容页面背景图片 */
.compatibility-page {
    background-image: url('../images/backgrounds/compatibility-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 免费开源页面背景图片 */
.opensource-page {
    background-image: url('../images/backgrounds/opensource-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* FAQ页面背景图片 */
.faq-page {
    background-image: url('../images/backgrounds/faq-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* scroll-snap-align: none; */
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 确保button元素也继承nav-link样式 */
button.nav-link {
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #8b5cf6;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(246deg) brightness(104%) contrast(97%);
}

/* GitHub下拉菜单样式 */
.github-dropdown {
    position: relative;
    display: inline-block;
}

.github-link {
    padding: 10px !important;
    min-width: 44px;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
}

.github-link .nav-icon {
    width: 24px;
    height: 24px;
}

.github-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    margin-top: 8px;
}

.github-dropdown:hover .github-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.github-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    line-height: 1;
}

.github-option:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.github-option-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
    display: block;
    margin-right: 0;
}

.github-option-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    flex: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #8b5cf6;
}

.nav-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.download-dropdown {
    position: relative;
    display: inline-block;
}

.download-btn {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    height: auto;
    min-height: 40px;
}

.download-btn:hover {
    background: #7c3aed;
    /*transform: translateY(-2px);*/
}

.download-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.download-dropdown:hover .download-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.download-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
    white-space: nowrap;
}

.download-option:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #ffffff;
}

.download-option img {
    width: 20px;
    height: 20px;
}

.download-option span {
    font-size: 1.3rem;
    font-weight: 500;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: 0.3s;
}

/* 页面区域 */
.page-section {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 70px;
    scroll-padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    padding-bottom: 20px;
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

/* 首页样式 */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 1920px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 0 40px;
    }
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .hero-content {
        flex: 1;
        max-width: 50%;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 0;
        justify-content: center;
    }
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .hero-title {
        justify-content: flex-start;
    }
}

.title-icon {
    width: 48px;
    height: 48px;
}

.hero-title h1 {
    font-size: 3.8rem;
    font-weight: bold;
    color: #ffffff;
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #e5e7eb;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .hero-description {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .download-buttons {
        justify-content: flex-start;
    }
}

.hero-content .dropdown-button {
    background-color: #fff;
    color: #333;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.hero-content .download-button-group {
    position: relative;
}

.hero-content .download-button-group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1;
}

.hero-content .dropdown-button:hover {
    background-color: #f0f0f0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.hero-content .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background-color: #fff;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.hero-content .download-button-group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hero-content .dropdown-item {
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    font-size: 14px;
}

.hero-content .dropdown-item:last-child {
    border-bottom: none;
}

.hero-content .dropdown-item:hover {
    background-color: #667eea;
    color: #fff;
}

.download-btn-platform {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.download-btn-platform:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.download-btn-platform img {
    width: 20px;
    height: 20px;
}

/* 产品展示区域 */
.product-showcase {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .product-showcase {
        flex: 1;
        max-width: 50%;
        margin-top: 0;
        align-items: center;
        justify-content: center;
    }
    
    .tab-content .product-showcase {
        flex: 1;
        max-width: 50%;
        margin-top: 0;
        align-items: center;
        justify-content: center;
    }
}

.laptop-mockup {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.laptop-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 多元兼容页面样式 */
.compatibility-page {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
}

.compatibility-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.feature-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.feature-nav-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    height: 48px;
    position: relative;
    border-right: none;
}

/* 强制覆盖所有可能的样式 */
.feature-nav .feature-nav-item {
    gap: 10px !important;
}

.compatibility-container .feature-nav-item {
    gap: 10px !important;
}

.feature-nav-item:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.feature-nav-item:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-nav-item.active {
    background: rgba(139, 92, 246, 0.2);
}

.feature-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #8b5cf6;
}

.feature-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feature-nav-item span {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 400;
}

.feature-icon {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    margin: 0 !important;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.feature-nav-item.active .feature-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(246deg) brightness(104%) contrast(97%);
}

.compatibility-content {
    text-align: center;
    margin-bottom: 40px;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .compatibility-content {
        flex: 1;
        max-width: 50%;
        text-align: left;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.content-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 30px;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .content-title {
        justify-content: flex-start !important;
    }
    
    .compatibility-content .content-title {
        justify-content: flex-start !important;
    }
}

/* 强制覆盖所有可能的样式 */
.compatibility-content .content-title {
    gap: 10px !important;
}

.tab-content .content-title {
    gap: 10px !important;
}

/* 最强制性的覆盖 */
div.content-title {
    gap: 10px !important;
}

div.feature-nav-item {
    gap: 10px !important;
}

/* 针对具体元素 - 使用负margin强制减少间距 */
.feature-nav-item img + span {
    margin-left: -5px !important;
}

.content-title img + h1 {
    margin-left: -8px !important;
}

/* 更极端的方法 - 直接设置负margin */
.feature-nav-item span {
    margin-left: -10px !important;
}

.content-title h1 {
    margin-left: -15px !important;
}

/* 强制设置图标和文字的间距为0或负数 */
.feature-nav-item {
    gap: -5px !important;
}

.content-title {
    gap: -10px !important;
}

.title-icon {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(246deg) brightness(104%) contrast(97%);
}

.content-title h1 {
    font-size: 3.2rem;
    font-weight: bold;
    color: #8b5cf6;
}

.content-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #b0b0b0;
    max-width: 800px;
    margin: 0 auto;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .content-description {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* 免费开源页面样式 */
.opensource-page {
    width: 100%;
    max-width: 1920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.opensource-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 免费开源页面宽度控制 - 分屏幕尺寸精确控制 */
@media (min-width: 1200px) {
    .opensource-container {
        max-width: 800px;
        padding: 40px;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .opensource-container {
        max-width: 85%;
        padding: 35px 30px;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .opensource-container {
        max-width: 90%;
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .opensource-container {
        max-width: 95%;
        padding: 25px 20px;
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


.opensource-content {
    text-align: left;
}

.opensource-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.opensource-title h1 {
    font-size: 2.8rem;
    font-weight: bold;
    color: #ffffff;
}

.opensource-description {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #e5e7eb;
}

.opensource-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.grid-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.grid-item {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.grid-item:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
    transform: translateY(-2px);
    text-decoration: none;
}

.grid-icon {
    width: 32px;
    height: 32px;
}

.grid-item span {
    font-size: 1.1rem;
    color: #ffffff;
}

.grid-item:hover span {
    color: #ffffff;
}

/* FAQ页面样式 */
.faq-page {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 50px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    box-sizing: border-box;
}

.faq-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex: 1;
    margin-bottom: 100px;
    padding: 0 20px;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.faq-list {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.faq-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.faq-title h1 {
    font-size: 3.2rem;
    font-weight: bold;
    color: #ffffff;
}


.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 1000px;
    box-sizing: border-box;
}

.faq-item.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8b5cf6;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.faq-question span {
    flex: 1;
    text-align: left;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    color: #e5e7eb;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    word-wrap: break-word;
    /* 确保滚动条被隐藏 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.faq-answer::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 10px 20px 15px;
    text-align: left;
    overflow: hidden;
}

.copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #9ca3af;
    font-size: 1.1rem;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.9);
    padding: 12px 24px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* scroll-snap-align: none; */
}

.visitor-counter {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #8b5cf6;
}

.counter-icon {
    font-size: 1rem;
}

.counter-text {
    color: #9ca3af;
}

#visitor-count {
    color: #8b5cf6;
    font-weight: 600;
}

/* 免费开源页面图标样式覆盖 */
.opensource-page .title-icon {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1) !important;
}

/* 社群按钮样式 */
.community-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.125rem !important;
}

.community-btn:hover,
.community-btn:focus {
    outline: none;
}

/* 强制设置社群按钮字体大小 */
button.nav-link.community-btn {
    font-size: 1.125rem !important;
}

/* 文档按钮样式 */
.nav-link[onclick*="window.open"] {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.125rem !important;
    transition: color 0.3s ease !important;
    position: relative !important;
    cursor: pointer !important;
    font-family: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav-link[onclick*="window.open"]:hover {
    color: #8b5cf6 !important;
}

.nav-link[onclick*="window.open"]:focus {
    outline: none !important;
}

/* 二维码模态框样式 */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.qr-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.qr-close-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.qr-close-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.qr-close-btn:active {
    transform: translateY(0);
}

/* Tab内容区域样式 */
.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
}

.tab-content.active {
    display: block;
    opacity: 1;
    overflow: hidden;
}

/* 桌面端左右分栏布局 */
@media (min-width: 768px) {
    .tab-content.active {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 0 40px;
    }
}

/* Tab切换动画 */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 防止tab切换时出现滚动条 */
.tab-content {
    overflow: hidden !important;
}

.tab-content * {
    overflow: hidden;
}

.tab-content.active {
    overflow: hidden !important;
}

.tab-content.active * {
    overflow: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qr-modal-content {
        padding: 20px;
        max-width: 350px;
    }
    
    .qr-image {
        max-width: 250px;
    }
}



/* ======= 语言切换滑块样式 ======= */
.lang-toggle {
  position: relative;
  width: 70px;
  height: 30px;
  border-radius: 30px;
  background: linear-gradient(145deg, #2f2f52, #1f1f3a);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  user-select: none;
}

.lang-track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
}

.lang-option {
  position: absolute;
  width: 50%;
  text-align: center;
  line-height: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  transition: color 0.3s ease;
}

.lang-option.zh {
  left: 0;
  color: #fff;
}

.lang-option.en {
  right: 0;
  color: #999;
}

.lang-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 32px;
  height: 26px;
  border-radius: 30px;
  background: #8b5cf6;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* 英文状态 */
.lang-toggle.active .lang-slider {
  transform: translateX(36px);
  background: #4f46e5;
}

.lang-toggle.active .lang-option.zh {
  color: #999;
}

.lang-toggle.active .lang-option.en {
  color: #fff;
}

.lang-toggle:hover .lang-slider {
  filter: brightness(1.1);
}

/* 禁止语言切换器出现下划线 */
.lang-toggle.nav-link::after {
  content: none !important;
}

/* ======= Open.html 页面样式 ======= */

/* 首页区域 - 整合所有内容 */
.open-home-section {
    background-image: url('../images/backgrounds/home-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 80px;
}

/* 顶部标题区域 */
.open-hero-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 40px 30px;
    text-align: center;
}

.open-hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

/* 产品展示区域 - 首页卡片式布局 */
.open-products-grid {
    width: 100%;
    max-width: 1400px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 40px;
}

.open-product-card {
    display: flex;
    flex-direction: column;
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: inherit;
    height: 100%;
}

.open-product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
    background: rgba(26, 26, 46, 0.5);
}


.open-card-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 200px;
}

.open-card-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    object-position: top;
    display: block;
    background-color: rgba(0, 0, 0, 0.2);
}

.open-card-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.open-card-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin: 0;
    flex: 1;
}

.open-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #8b5cf6;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
}

.open-card-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    color: #ffffff;
}

/* 产品详情页样式 */
.open-product-detail-section {
    padding: 100px 0 80px;
    min-height: calc(100vh - 200px);
}

.open-detail-hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
    margin-bottom: 100px;
}

.open-detail-hero-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.open-detail-title {
    font-size: 4.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.open-detail-subtitle {
    font-size: 1.8rem;
    color: #8b5cf6;
    margin: 0;
    font-weight: 500;
}

.open-detail-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin: 0;
}

.open-detail-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.open-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.open-detail-btn-primary {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
}

.open-detail-btn-primary:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.open-detail-btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #1e3a8a;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.open-detail-btn-secondary:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
    border-color: #1e40af;
}

.open-detail-btn-secondary .open-btn-icon {
    filter: none !important;
    width: 20px !important;
    height: 20px !important;
    display: inline-block !important;
    vertical-align: middle;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
    background: #c71d23;
    border-radius: 50%;
    padding: 2px;
    box-sizing: border-box;
}

.open-detail-btn-secondary span {
    font-weight: 700;
    text-transform: lowercase;
}

.open-btn-icon {
    width: 20px;
    height: 20px;
}

.open-detail-hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    height: 100%;
}

.open-detail-gif {
    width: 600px;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.open-detail-features {
    background: rgba(26, 26, 46, 0.2);
    padding: 80px 0;
    margin-top: 60px;
}

.open-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.open-detail-section-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin: 0 0 60px;
}

.open-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.open-feature-item {
    background: rgba(26, 26, 46, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.open-feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.open-feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.open-feature-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 15px;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.open-feature-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0;
    flex: 1;
}

/* 响应式设计 - 首页卡片 */
@media (max-width: 1024px) {
    .open-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .open-detail-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .open-detail-hero-image {
        order: -1;
    }

    .open-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .open-products-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .open-detail-title {
        font-size: 3rem;
    }

    .open-detail-subtitle {
        font-size: 1.5rem;
    }

    .open-detail-description {
        font-size: 1.1rem;
    }

    .open-detail-actions {
        flex-direction: column;
    }

    .open-features-grid {
        grid-template-columns: 1fr;
    }

    .open-detail-section-title {
        font-size: 2.5rem;
    }
}

.open-hero-title {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    width: 100%;
}

.open-hero-title .open-hero-title-text {
    font-size: 4.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    padding-bottom: 0;
}

.open-hero-title .open-hero-description {
    font-size: 1.5rem;
    font-weight: normal;
    line-height: 1.8;
    color: #e5e7eb;
    margin: 0;
    white-space: nowrap;
    padding-bottom: 0.2em;
}


/* 产品展示项 */
.open-product-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.open-product-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px 40px;
    transition: all 0.3s ease;
}

.open-product-item:hover .open-product-container {
    background: transparent;
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

/* 产品内容区域 - 文字在左 */
.open-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

/* 产品展示区域 - 图片在右 */
.open-product-showcase {
    flex: 0 0 auto;
    width: 45%;
    max-width: 400px;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.open-product-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.open-product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #b0b0b0;
    margin: 0;
}

.open-product-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.open-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #8b5cf6;
    border: none;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.open-product-link:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    text-decoration: none;
    color: #ffffff;
}

.open-product-link-placeholder {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    opacity: 0.7;
    cursor: not-allowed;
}

.open-product-link-placeholder:hover {
    transform: none;
    opacity: 0.7;
    background: rgba(139, 92, 246, 0.2);
}

.open-link-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.open-link-text {
    color: #ffffff;
}

.open-product-showcase {
    flex: 1;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.open-product-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.open-product-img {
    width: 400px;
    height: 250px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    object-position: center;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .open-hero-section {
        padding: 40px 30px 25px;
    }

    .open-products-section {
        gap: 30px;
        padding: 0 30px;
    }

    .open-product-container {
        gap: 35px;
        padding: 30px 25px;
    }

    .open-hero-title .open-hero-title-text {
        font-size: 3.5rem;
    }

    .open-hero-title .open-hero-description {
        font-size: 1.3rem;
    }

    .open-product-title {
        font-size: 2rem;
    }

    .open-product-showcase {
        max-width: 300px;
    }

    .open-product-img {
        width: 350px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .open-home-section {
        padding-bottom: 60px;
    }

    .open-hero-section {
        padding: 40px 20px 30px;
    }

    .open-products-section {
        gap: 40px;
        padding: 0 20px;
    }

    .open-product-container {
        flex-direction: column;
        gap: 30px;
        padding: 35px 25px;
    }

    .open-product-showcase {
        width: 100%;
        max-width: 100%;
        order: -1;
    }

    .open-hero-title {
        flex-direction: column;
        gap: 10px;
    }

    .open-hero-title .open-hero-title-text {
        font-size: 2.5rem;
    }

    .open-hero-title .open-hero-description {
        font-size: 1.2rem;
        white-space: normal;
    }

    .open-product-title {
        font-size: 1.8rem;
    }

    .open-product-description {
        font-size: 1rem;
    }

    .open-product-links {
        flex-direction: column;
    }

    .open-product-img {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }
}

/* 右侧滚动导航指示器 */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.scroll-dot.active {
    background: #60a5fa;
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.8), 0 0 30px rgba(96, 165, 250, 0.4);
    transform: scale(1.4);
    border-color: #60a5fa;
}

.scroll-dot.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
}

/* 移动端隐藏滚动指示器 */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}