* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景 - 仅在主页区域显示 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, #fff, transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 160px 30px, #fff, transparent),
        radial-gradient(1px 1px at 200px 90px, #fff, transparent),
        radial-gradient(2px 2px at 240px 50px, #fff, transparent),
        radial-gradient(1px 1px at 280px 10px, #fff, transparent),
        radial-gradient(1px 1px at 320px 70px, #fff, transparent),
        radial-gradient(2px 2px at 360px 40px, #fff, transparent),
        radial-gradient(1px 1px at 400px 80px, #fff, transparent),
        radial-gradient(2px 2px at 440px 20px, #fff, transparent),
        radial-gradient(1px 1px at 480px 60px, #fff, transparent),
        radial-gradient(1px 1px at 520px 90px, #fff, transparent),
        radial-gradient(2px 2px at 560px 30px, #fff, transparent),
        radial-gradient(1px 1px at 600px 70px, #fff, transparent),
        radial-gradient(1px 1px at 640px 10px, #fff, transparent),
        radial-gradient(2px 2px at 680px 50px, #fff, transparent),
        radial-gradient(1px 1px at 720px 80px, #fff, transparent),
        radial-gradient(1px 1px at 760px 40px, #fff, transparent);
    background-repeat: repeat;
    background-size: 800px 100px;
    animation: stars 20s linear infinite;
    z-index: 0;
    opacity: 0.8;
}

@keyframes stars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    background-color: transparent;
    backdrop-filter: none;
    padding: 15px 0;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-left:hover {
    opacity: 0.8;
}

.logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 8px;
}

.nav-title {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ffffff;
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.language-current {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.language-current:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 主页核心内容区 */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 700px;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left {
    max-width: 500px;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.sub-title {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #00ff00;
    color: #000;
    padding: 20px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    max-width: 250px;
}

.download-button:hover {
    background-color: #00cc00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.3);
}

.download-button i {
    font-size: 32px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

/* Use crisp SVG for the Windows icon to avoid font blurring */
.download-button .fa-windows::before {
    content: none; /* hide Font Awesome glyph */
}
.download-button .fa-windows {
    width: 36px;
    height: 36px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path fill='%23000' d='M2 8l28-4v26H2zM34 4l28-4v30H34zM2 34h28v26L2 56zM34 34h28v30l-28-4z'/></svg>");
}

.download-text {
    display: flex;
    flex-direction: column;
}

.download-main {
    font-size: 16px;
    font-weight: bold;
}

.download-sub {
    font-size: 12px;
    opacity: 0.8;
}

/* ImGui风格菜单 */
.hero-right {
    display: flex;
    justify-content: center;
}

.imgui-menu {
    width: 700px;
    height: 450px;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.menu-header {
    background-color: #2d2d30;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
}

.menu-title {
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.menu-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 16px;
    height: 16px;
    background-color: #555;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    border-radius: 2px;
}

.control-btn:hover {
    background-color: #666;
}

.menu-content {
    padding: 20px;
    height: calc(100% - 45px);
    overflow-y: auto;
}

.menu-section {
    margin-bottom: 25px;
}

.menu-section h3 {
    color: #00ff00;
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 5px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #ccc;
    font-size: 13px;
}

.menu-item input[type="checkbox"] {
    accent-color: #00ff00;
}

.menu-item input[type="range"] {
    width: 100px;
    accent-color: #00ff00;
}

.menu-btn {
    background-color: #444;
    color: #fff;
    border: 1px solid #666;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.menu-btn:hover {
    background-color: #555;
}

.menu-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.action-btn {
    padding: 8px 20px;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #444;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #555;
}

.action-btn.primary {
    background-color: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.action-btn.primary:hover {
    background-color: #00cc00;
}

/* 功能展示区 */
.features-section {
    padding: 80px 0;
    background-color: #111;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background-color: #1a1a1a;
    padding: 45px 35px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.feature-card:hover {
    transform: translateY(-5px); /* 保留抬升动画 */
    border-color: #333; /* 取消绿色边框 */
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.18); /* 中性白光阴影 */
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-icon i {
    font-size: 30px;
    color: #000;
}

/* 第一个卡片 - 眼睛图标 */
.feature-card:nth-child(1) .feature-icon {
    background-image: url("data:image/svg+xml;utf8,<svg t='1758811278471' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='14329' width='48' height='48'><path d='M512 768c-183.466667 0-328.533333-85.333333-426.666667-256 98.133333-170.666667 243.2-256 426.666667-256s328.533333 85.333333 426.666667 256c-98.133333 170.666667-243.2 256-426.666667 256z m8.533333-426.666667c-128 0-256 55.466667-328.533333 170.666667 72.533333 115.2 200.533333 170.666667 328.533333 170.666667s238.933333-55.466667 311.466667-170.666667c-72.533333-115.2-183.466667-170.666667-311.466667-170.666667z m-8.533333 298.666667c-72.533333 0-128-55.466667-128-128s55.466667-128 128-128 128 55.466667 128 128-55.466667 128-128 128z m0-85.333333c25.6 0 42.666667-17.066667 42.666667-42.666667s-17.066667-42.666667-42.666667-42.666667-42.666667 17.066667-42.666667 42.666667 17.066667 42.666667 42.666667 42.666667z' fill='%23ffffff' p-id='14330'></path></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
}

.feature-card:nth-child(1) .feature-icon i {
    display: none;
}

/* 第二个卡片 - 定位图标 */
.feature-card:nth-child(2) .feature-icon {
    background-image: url("data:image/svg+xml;utf8,<svg t='1758810618424' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='10550' width='48' height='48'><path d='M502.656 448a56 56 0 1 0 0 112 56 56 0 0 0 0-112z m0-352C277.312 96 94.64 278.672 94.64 504S277.312 912 502.64 912C728 912 910.656 729.312 910.656 504S728 96 502.656 96zM544 829.312V688h-80v141.312C320 811.136 195.488 688 177.312 544H320v-80h-142.688C195.488 320 320 196.848 464 178.672V320h80v-141.328C688 196.848 809.808 320 827.968 464H688v80h139.968C809.824 688 688 811.152 544 829.312z' fill='%23ffffff' p-id='10551'></path></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
}

.feature-card:nth-child(2) .feature-icon i {
    display: none;
}

/* 第三个卡片 - 工具箱图标 */
.feature-card:nth-child(3) .feature-icon {
    background-image: url("data:image/svg+xml;utf8,<svg t='1758810677202' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='11803' width='48' height='48'><path d='M925.4 399.2c0.4 2.4 0.6 4.7 0.6 7.2v505.3c0 1.4-0.1 2.7-0.2 4.1-1.3 23.6-20.8 42.1-44.5 42.2H141c-24.6 0-44.6-20-44.6-44.6v-507c0-2.3 0.2-4.6 0.5-6.8-0.3-2.6-0.5-5.2-0.5-7.8V362l-0.2-0.1 116.9-202.3c10.2-17.8 28.9-29 49.4-29.6 4.3-1.3 8.7-2 13.2-2h470.5c4.8 0 9.6 0.8 14.2 2.3 20.3 0.8 38.9 12 49 29.6l116.8 202.3-0.6 0.4v29.2c0.2 2.5 0.1 5-0.2 7.4z m-79.4-36c-1.7-2.5-3.2-5.2-4.6-8L758.2 186H281.4l-87.2 177.2H846z m6.1 60H170.4v474.3h681.7V423.2z' p-id='11804' fill='%23ffffff'></path><path d='M739.3 665.8h-240c-15.4 0-28-12.6-28-28s12.6-28 28-28h240c15.4 0 28 12.6 28 28s-12.6 28-28 28zM481.7 407.6V144.8c0-1.1 0.9-2 2-2H539c1.1 0 2 0.9 2 2v262.8c0 1.1-0.9 2-2 2h-55.3c-1.1 0-2-0.9-2-2zM739.8 793.9h-390c-15.4 0-28-12.6-28-28s12.6-28 28-28h390c15.4 0 28 12.6 28 28s-12.6 28-28 28z' p-id='11805' fill='%23ffffff'></path></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
}

.feature-card:nth-child(3) .feature-icon i {
    display: none;
}

/* 第四个卡片 - 全球网络图标 */
.feature-card:nth-child(4) .feature-icon {
    background-image: url("data:image/svg+xml;utf8,<svg t='1758810713068' class='icon' viewBox='0 0 1024 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='13256' width='48' height='48'><path d='M512 42.666667C251.733333 42.666667 42.666667 251.733333 42.666667 512s209.066667 469.333333 469.333333 469.333333c260.266667 0 469.333333-209.066667 469.333333-469.333333S772.266667 42.666667 512 42.666667zM490.666667 936.533333C273.066667 925.866667 98.133333 750.933333 85.333333 533.333333l87.466667 0c6.4 19.2 23.466667 36.266667 44.8 40.533333 27.733333 128 136.533333 226.133333 270.933333 234.666667L488.533333 936.533333zM490.666667 768c-113.066667-8.533333-202.666667-91.733333-228.266667-198.4 14.933333-6.4 25.6-21.333333 32-36.266667l113.066667 0c8.533333 42.666667 40.533333 74.666667 83.2 83.2L490.666667 768zM490.666667 407.466667c-42.666667 8.533333-74.666667 40.533333-83.2 83.2l-113.066667 0c-6.4-14.933333-17.066667-27.733333-32-36.266667 23.466667-106.666667 115.2-187.733333 228.266667-198.4L490.666667 407.466667zM490.666667 213.333333c-134.4 8.533333-243.2 106.666667-270.933333 234.666667-21.333333 4.266667-38.4 21.333333-44.8 40.533333L85.333333 488.533333C98.133333 273.066667 273.066667 98.133333 490.666667 87.466667L490.666667 213.333333zM533.333333 87.466667C750.933333 98.133333 925.866667 273.066667 938.666667 490.666667l-128 0c-4.266667-53.333333-21.333333-100.266667-49.066667-142.933333 4.266667-8.533333 6.4-17.066667 6.4-27.733333 0-36.266667-27.733333-64-64-64-10.666667 0-19.2 2.133333-27.733333 6.4-40.533333-27.733333-89.6-44.8-142.933333-49.066667L533.333333 87.466667zM533.333333 258.133333c40.533333 4.266667 78.933333 17.066667 113.066667 36.266667C642.133333 302.933333 640 311.466667 640 320c0 36.266667 27.733333 64 64 64 8.533333 0 17.066667-2.133333 25.6-6.4 21.333333 34.133333 34.133333 70.4 36.266667 113.066667l-151.466667 0c-8.533333-42.666667-40.533333-74.666667-83.2-83.2L531.2 258.133333zM533.333333 616.533333c42.666667-8.533333 74.666667-40.533333 83.2-83.2L768 533.333333c-10.666667 123.733333-108.8 224-234.666667 234.666667L533.333333 616.533333zM533.333333 936.533333l0-128c147.2-10.666667 266.666667-128 277.333333-275.2l128 0C925.866667 750.933333 750.933333 925.866667 533.333333 936.533333z' fill='%23ffffff' p-id='13257'></path></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 48px 48px;
}

.feature-card:nth-child(4) .feature-icon i {
    display: none;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

/* 下载区域 */
.download-section {
    padding: 80px 0;
    background-color: #111; /* 与核心功能区一致的灰色背景 */
}

.download-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #333;
}

.download-icon {
    width: 80px;
    height: 80px;
    background-color: #00ff00;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.download-icon i {
    font-size: 32px;
    color: #000;
}

.download-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.download-date,
.download-version {
    color: #ccc;
    margin-bottom: 5px;
}

/* 状态指示（绿/红灯+文字） */
.download-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-weight: bold;
}
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.download-status.online .status-dot { background-color: #00ff00; box-shadow: 0 0 8px rgba(0,255,0,0.6); }
.download-status.online { color: #00ff00; }
.download-status.maintenance .status-dot { background-color: #ff4444; box-shadow: 0 0 8px rgba(255,68,68,0.6); }
.download-status.maintenance { color: #ff4444; }

.download-btn {
    background-color: #00ff00;
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-btn.disabled {
    background-color: #444;
    color: #999;
    cursor: not-allowed;
}

.download-btn:hover {
    background-color: #00cc00;
    transform: translateY(-2px);
}

/* 底部信息区 */
.footer {
    background-color: #111;
    padding: 40px 0;
    border-top: 1px solid #333;
}

/* 返回顶部悬浮按钮 */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #00ff00; /* 背景改回绿色 */
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 255, 0, 0.2); /* 绿色柔光 */
    cursor: pointer;
    z-index: 1100;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.back-to-top:hover {
    background-color: #00cc00; /* 悬停更深的绿色 */
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 255, 0, 0.28); /* 更强的绿色光 */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 18px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: center;
}

.footer-section p {
    color: #ccc;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.footer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-main-title {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.copyright {
    color: #fff !important;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .imgui-menu {
        width: 100%;
        max-width: 600px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 120px 0 50px;
    }
    
    .download-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #00ff00;
    white-space: nowrap;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #00ff00; }
}

/* 页面切换动画 */
.page-transition {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-transition.show {
    opacity: 1;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* 对于Firefox */
html {
    scrollbar-width: none;
}

/* 对于IE和Edge */
body {
    -ms-overflow-style: none;
}
