/* 全局样式 */
:root {
    --color-primary: #7c3aed;
    /* 暗紫色 */
    --color-primary-dark: #6d28d9;
    --color-primary-light: #a78bfa;
    --color-bg-dark: #111827;
    --color-bg-darker: #0f172a;
    --color-text-primary: #f3f4f6;
    --color-text-secondary: #9ca3af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, #1a1f3a 100%);
    color: var(--color-text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-light);
}

/* 按钮悬停效果 */
button,
a.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:before,
a.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover:before,
a.btn:hover:before {
    width: 300px;
    height: 300px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(124, 58, 237, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.8);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.8s ease;
}

/* 特性卡片样式 */
.feature-card {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(124, 58, 237, 0.8);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-5px);
}

.feature-card h4 {
    color: var(--color-primary-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* FAQ 项目样式 */
.faq-item {
    background: rgba(31, 41, 55, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(124, 58, 237, 0.6);
    background: rgba(31, 41, 55, 1);
}

.faq-item h4 {
    color: var(--color-primary-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item.active h4 {
    color: var(--color-primary);
}

.faq-item.active p {
    max-height: 500px;
    opacity: 1;
}

.faq-item p {
    color: var(--color-text-secondary);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.faq-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* 导航栏样式 */
header {
    animation: slideDown 0.5s ease;
}

/* 导航菜单容器 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 0;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-social {
    display: flex;
    gap: 0.75rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(124, 58, 237, 0.3);
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn.active svg {
    transform: rotate(90deg);
}

/* 移动端菜单样式 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 3rem 1rem !important;
    }

    .feature-card,
    .faq-item {
        padding: 1.5rem;
    }

    /* 隐藏桌面版导航，显示汉堡菜单 */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(124, 58, 237, 0.2);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 20;
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 1rem 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(124, 58, 237, 0.1);
        transition: all 0.3s ease;
    }

    .nav-link:after {
        display: none;
    }

    .nav-link:hover {
        background: rgba(124, 58, 237, 0.1);
        padding-left: 1.5rem;
    }

    .nav-social {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin: 1rem 0 0 0;
        padding: 1rem 0 0 0;
        border-left: none;
        border-top: 1px solid rgba(124, 58, 237, 0.1);
    }

    .nav-social a {
        transition: all 0.3s ease;
    }

    .nav-social a:hover {
        transform: scale(1.15) translateY(-2px);
    }

    /* 显示汉堡菜单按钮 */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* 桌面端导航栏 */
@media (min-width: 769px) {
    .nav-menu {
        position: static;
        background: none;
        border: none;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
        flex-direction: row;
    }

    .nav-links {
        flex-direction: row;
    }

    .nav-link {
        display: inline-block;
    }

    .nav-social {
        margin-left: 1rem;
        padding-left: 1rem;
        border-left: 1px solid rgba(124, 58, 237, 0.3);
    }
}

/* 社交链接 SVG 样式 */
.nav-social a svg {
    transition: all 0.3s ease;
}

.nav-social a:hover svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

/* 下载按钮样式 */
.download-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.download-btn:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    section {
        padding: 3rem 1rem !important;
    }

    .feature-card,
    .faq-item {
        padding: 1.5rem;
    }

    nav a {
        display: block;
        padding: 0.5rem 0;
    }
}

/* 容器宽度限制 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 梯度文本效果 */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 加载动画 */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 卡片悬停阴影效果 */
.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.3);
}

/* 英雄部分背景效果 */
#hero {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.5) 0%, rgba(30, 27, 75, 0.3) 100%);
}

/* 社交链接 */
nav a svg {
    transition: all 0.3s ease;
}

nav a:hover svg {
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.6));
}

/* 文本渐变 */
.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 动画标题 */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    animation: slideInDown 0.8s ease-out;
}

/* 按钮组响应式 */
.flex.flex-col.sm\\:flex-row {
    gap: 1rem;
}

@media (max-width: 640px) {
    .flex.flex-col.sm\\:flex-row {
        flex-direction: column;
    }

    .flex.flex-col.sm\\:flex-row>* {
        width: 100%;
    }
}

/* 代码标签样式 */
code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    letter-spacing: 0.02em;
    background-color: rgba(55, 65, 81, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    color: #a78bfa;
}

/* 列表样式 */
ol {
    counter-reset: item;
}

ol li {
    counter-increment: item;
}

/* 有序列表数字样式 */
.list-decimal {
    list-style-type: decimal;
}

.list-inside {
    list-style-position: inside;
}

/* 强调文本 */
strong {
    font-weight: 600;
    color: #e0e7ff;
}

/* 颜色工具类 */
.text-red-400 {
    color: #f87171;
}

.text-green-400 {
    color: #4ade80;
}

/* 分隔线 */
hr {
    border: none;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
    margin: 2rem 0;
}

/* 分段落边距 */
p+p {
    margin-top: 1rem;
}

/* 标题间距 */
h3+p,
h4+p {
    margin-top: 0.5rem;
}

/* 有序列表项间距 */
ol li+li {
    margin-top: 0.5rem;
}

/* 无序列表样式 */
ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
}

/* 响应式 section 间距 */
section {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 80px;
    }
}

/* ========== GitHub 集成样式 ========== */

/* 版本信息容器 */
.version-info {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(167, 139, 250, 0.05));
    border-left: 4px solid var(--color-primary);
    animation: slideInLeft 0.5s ease-out;
}

.version-info p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
}

/* 更新日志容器样式 */
.changelog-container {
    animation: fadeInUp 0.6s ease-out;
}

/* 更新日志项目卡片 */
.changelog-container .bg-gray-800 {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.changelog-container .bg-gray-800:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
    border-color: var(--color-primary);
}

.changelog-container .bg-gray-800::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.changelog-container .bg-gray-800:hover::before {
    opacity: 1;
}

/* 版本标题样式 */
.changelog-container h4 {
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.changelog-container a {
    transition: all 0.3s ease;
    text-decoration: none;
}

.changelog-container a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* 更改类别标签样式 */
.changelog-container .text-green-400 {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.changelog-container .text-blue-400 {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.changelog-container .text-yellow-400 {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* 仓库统计信息 */
.repo-stats {
    animation: fadeInUp 0.6s ease-out;
}

.repo-stats .text-center {
    padding: 1.5rem;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.repo-stats .text-center:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(124, 58, 237, 0.1);
}

.repo-stats .text-2xl {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 下载按钮特殊样式 */
.download-btn {
    position: relative;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
    border-color: var(--color-primary-light);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

/* 加载动画 */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .repo-stats .flex {
        flex-direction: column;
    }

    .changelog-container .space-y-6>*+* {
        margin-top: 1.5rem;
    }

    .version-info {
        border-left: none;
        border-top: 4px solid var(--color-primary);
    }

    .download-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* 深色主题调整 */
@media (prefers-color-scheme: dark) {
    .version-info {
        background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(167, 139, 250, 0.08));
    }

    .repo-stats .text-center {
        background: rgba(124, 58, 237, 0.08);
    }
}

/* ========== 下载选项样式 ========== */

/* 下载选项容器 */
.download-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 通用下载按钮样式 */
.download-btn-github,
.download-btn-cloud {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

/* GitHub 下载按钮 */
.download-btn-github {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.6), rgba(75, 85, 99, 0.4));
    border-color: rgba(107, 114, 128, 0.5);
    color: white;
}

.download-btn-github:hover {
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.8), rgba(107, 114, 128, 0.6));
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
    transform: translateY(-4px) scale(1.02);
}

/* 网盘下载按钮（推荐） */
.download-btn-cloud {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(109, 40, 217, 0.8));
    border-color: rgba(124, 58, 237, 0.8);
    color: white;
    position: relative;
    overflow: hidden;
}

.download-btn-cloud::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #a78bfa, #7c3aed, #6d28d9);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.download-btn-cloud:hover {
    background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(124, 58, 237, 1));
    border-color: rgba(167, 139, 250, 1);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px) scale(1.02);
}

.download-btn-cloud:hover::before {
    opacity: 0.5;
}

/* 下载按钮文字 */
.download-btn-github .text-2xl,
.download-btn-cloud .text-2xl {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.download-btn-github .font-semibold,
.download-btn-cloud .font-semibold {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.download-btn-github .text-xs,
.download-btn-cloud .text-xs {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 移动端下载选项 */
@media (max-width: 768px) {
    .download-options {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .download-btn-github,
    .download-btn-cloud {
        padding: 1.5rem 1rem;
    }

    .download-btn-github:hover,
    .download-btn-cloud:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* 平板端下载选项 */
@media (max-width: 1024px) {
    .download-options {
        gap: 1rem;
        max-width: 100%;
    }
}