:root {
    /* 苹果风格亮色主题变量 */
    --primary-color: #007AFF;
    --primary-hover: #0056CC;
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.1);
    --secondary-text: #86868b;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --item-bg: rgba(142, 142, 147, 0.12);
    --item-hover-bg: rgba(142, 142, 147, 0.16);
    --notice-bg: rgba(0, 122, 255, 0.1);
    --version-badge-bg: rgba(0, 122, 255, 0.1);
    --version-badge-color: #007AFF;
    --button-hover-bg: #0056CC;
    --alt-button-bg: rgba(142, 142, 147, 0.12);
    --alt-button-color: #1d1d1f;
    --alt-button-hover-bg: rgba(142, 142, 147, 0.16);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* 苹果风格暗色主题变量 */
        --primary-color: #0A84FF;
        --primary-hover: #409CFF;
        --text-color: #f5f5f7;
        --bg-color: #000000;
        --card-bg: #1c1c1e;
        --border-color: rgba(84, 84, 88, 0.6);
        --secondary-text: #8e8e93;
        --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        --item-bg: rgba(118, 118, 128, 0.24);
        --item-hover-bg: rgba(118, 118, 128, 0.32);
        --notice-bg: rgba(10, 132, 255, 0.15);
        --version-badge-bg: rgba(10, 132, 255, 0.15);
        --version-badge-color: #0A84FF;
        --button-hover-bg: #409CFF;
        --alt-button-bg: rgba(118, 118, 128, 0.24);
        --alt-button-color: #f5f5f7;
        --alt-button-hover-bg: rgba(118, 118, 128, 0.32);
        --glass-bg: rgba(28, 28, 30, 0.8);
        --glass-border: rgba(84, 84, 88, 0.3);
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f6f7f8 0%, #d3dbe7 100%);
    color: var(--text-color);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
}

.header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.header-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.header h1 {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.07143;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.005em;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.header p {
    font-size: 21px;
    line-height: 1.47619;
    color: var(--secondary-text);
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.github-link, .support-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 8px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    font-size: 14px;
    white-space: nowrap;
}

.github-link:hover, .support-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--hover-shadow);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.github-link::before, .support-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.github-link:hover::before, .support-link:hover::before {
    left: 100%;
}

.github-link svg, .support-link svg {
    margin-right: 8px;
}

.github-link i, .support-link i {
    margin-right: 8px;
    font-size: 20px;
}

/* 版本信息部分 */
.version-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 48px;
    gap: 20px;
    flex-wrap: wrap;
}

.version-badge {
    background-color: var(--version-badge-bg);
    color: var(--version-badge-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    margin-right: 16px;
}

.release-date {
    color: var(--secondary-text);
    font-size: 16px;
}

/* 下载部分 */
.download-section {
    position: relative;
    z-index: 999999;
    overflow: visible; /* 确保下拉菜单不被裁剪 */
}

.download-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    overflow: visible; /* 确保下拉菜单不被裁剪 */
}

.download-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    overflow: visible; /* 确保下拉菜单不被裁剪 */
}

.download-card:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    z-index: 1000; /* 提高悬停时的层级 */
}

/* .download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
} */

.download-card:hover::before {
    left: 100%;
}

.download-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--item-bg), var(--item-hover-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.download-card:hover .download-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.download-card:hover .download-icon i {
    color: white;
}

.download-icon i {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.download-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.download-card p {
    color: var(--secondary-text);
    margin-bottom: 16px;
    font-size: 13px;
    height: 38px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    border: none;
}

.download-button:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

/* .download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
} */

.download-button:hover::before {
    left: 100%;
}

.download-button i {
    margin-right: 6px;
    font-size: 16px;
}

.download-button.alt {
    background-color: var(--alt-button-bg);
    color: var(--alt-button-color);
}

.download-button.alt:hover {
    background-color: var(--alt-button-hover-bg);
}

/* 功能部分 */
.features-section {
    margin-bottom: 64px;
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 40px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--secondary-text);
    line-height: 1.5;
}

/* 评价部分 */
.review-section {
    margin-bottom: 64px;
}

.review-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

/* 横向自动滚动的评价容器 */
.reviews-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
    margin: 0 auto;
    max-width: calc(100% - 40px); /* 确保两侧有足够的边距 */
}

.reviews-scroll {
    display: flex;
    transition: transform 0.3s ease-out;
    width: max-content;
    gap: 24px;
    cursor: grab; /* 表示可拖动 */
    padding: 10px 20px; /* 添加左右内边距 */
}

.reviews-scroll:active {
    cursor: grabbing; /* 拖动时的光标样式 */
    transition: none; /* 拖动时禁用过渡效果 */
}

.review-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    min-width: 300px;
    max-width: 350px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.review-card:hover::before {
    left: 100%;
}

.review-stars {
    color: #ffcc00;
    font-size: 20px;
    margin-bottom: 16px;
}

.review-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.reviewer {
    color: var(--secondary-text);
    font-size: 14px;
}

.review-footer {
    text-align: center;
    margin-top: 40px;
}

.review-support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.review-support-link:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
}

/* 页脚部分 */
.footer {
    text-align: center;
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: var(--secondary-text);
    font-size: 14px;
}

/* 自定义动画增强 */
@keyframes cardFloat {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 增强的悬停效果 */
.download-card, .feature-card, .review-card, .qr-card {
    will-change: transform;
    transform-style: preserve-3d;
}

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

/* 3D 悬停效果 */
.download-card:hover, .feature-card:hover, .qr-card:hover {
    transform-style: preserve-3d;
}

/* 按钮点击反馈 */
.download-button:active {
    transform: translateY(-1px) scale(0.98);
}

/* 加载状态 */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 微妙的阴影动画 */
@keyframes shadowPulse {
    0%, 100% {
        box-shadow: var(--card-shadow);
    }
    50% {
        box-shadow: var(--hover-shadow);
    }
}

.animate-shadow {
    animation: shadowPulse 2s ease-in-out infinite;
}

/* 可访问性改进 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .download-card:hover, .feature-card:hover, .review-card:hover, .qr-card:hover {
        transform: none;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}

/* 焦点可见性 */
.download-button:focus,
.github-link:focus,
.support-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 性能优化 */
.download-card{
    contain: layout style;
}
.feature-card, .review-card, .qr-card {
    contain: layout style  paint;
}

/* 深色模式下的文字对比度优化 */
@media (prefers-color-scheme: dark) {
    .changelog-content {
        color: var(--text-color);
    }

    .changelog-content h1,
    .changelog-content h2,
    .changelog-content h3,
    .changelog-content h4,
    .changelog-content h5,
    .changelog-content h6 {
        color: var(--text-color);
    }

    .changelog-content code {
        background-color: var(--item-bg);
        color: var(--text-color);
    }

    .changelog-content pre {
        background-color: var(--item-bg);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
    
    .download-card {
        padding: 16px 12px;
    }
    
    .download-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 10px;
    }
    
    .download-icon i {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 32px;
    }

    .header p {
        font-size: 16px;
        padding: 0 1rem;
    }

    .header-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .github-link, .support-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-card {
        padding: 24px;
        margin: 0 auto;
        max-width: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .version-info {
        flex-direction: column;
        gap: 12px;
    }

    .github-stats {
        flex-direction: column;
        gap: 10px;
    }

    .app-intro {
        padding: 24px;
    }

    .intro-features {
        grid-template-columns: 1fr;
    }

    .changelog-container {
        padding: 24px;
    }

    .reviews-container {
        padding: 0;
    }

    .review-card {
        min-width: 260px;
        max-width: 280px;
        padding: 20px;
    }

    /* 移动端动画优化 */
    .download-card:hover, .feature-card:hover, .review-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .download-content {
        position: relative;
        height: auto;
    }
    
    .content-wrapper {
        padding: 28px;
    }
}

@media (min-width: 1025px) {
    .download-content {
        position: relative;
        height: auto;
    }
    
    .content-wrapper {
        padding: 32px;
    }
}

/* GitHub 统计信息 */
.github-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--item-bg);
    padding: 8px 16px;
    border-radius: 20px;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 18px;
}

.stat-count {
    font-weight: 600;
    color: var(--text-color);
}

.stat-label {
    color: var(--secondary-text);
    font-size: 14px;
}

/* 应用介绍部分 */
.app-intro {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 64px;
    border: 1px solid var(--border-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.intro-desc {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-group h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-group h3 i {
    color: var(--primary-color);
    font-size: 20px;
}

.feature-group p {
    color: var(--secondary-text);
    margin-bottom: 12px;
}

.feature-group ul {
    list-style: none;
    margin-left: 28px;
}

.feature-group ul li {
    position: relative;
    margin-bottom: 8px;
    color: var(--secondary-text);
}

.feature-group ul li::before {
    content: "•";
    position: absolute;
    left: -20px;
    color: var(--primary-color);
}

.intro-preview {
    margin-top: 30px;
    text-align: center;
}

.main-preview-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: transform 0.5s ease;
}

.main-preview-image:hover {
    transform: scale(1.02);
}

/* 平台预览样式 */
.platform-preview {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--item-bg);
}

.platform-image {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: transform 0.5s ease;
}

.platform-preview:hover .platform-image {
    transform: scale(1.02);
}

.platform-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.platform-badge.web {
    background-color: rgba(41, 121, 255, 0.8);
}

.platform-badge.windows {
    background-color: rgba(0, 120, 215, 0.8);
}

.platform-badge.macos {
    background-color: rgba(134, 134, 134, 0.8);
}

.platform-badge.linux {
    background-color: rgba(233, 84, 32, 0.8);
}

/* 更新日志部分 */
.changelog-section {
    margin-bottom: 64px;
    animation: fadeIn 1s ease-out;
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.changelog-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

.changelog-container {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 40px;
}

.version-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.version-item:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.version-header h3 {
    font-size: 20px;
    color: var(--primary-color);
}

.version-date {
    color: var(--secondary-text);
    font-size: 14px;
}

.changelog-list {
    list-style: none;
}

.changelog-list li {
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.changelog-list li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--primary-color);
}

.changelog-more {
    text-align: center;
    margin-top: 30px;
}

.changelog-more a {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.changelog-more a i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.changelog-more a:hover {
    text-decoration: underline;
}

.changelog-more a:hover i {
    transform: translateX(3px);
}

/* 响应式调整 */
@media (min-width: 1025px) {
    .app-intro {
        flex-direction: row;
    }

    .intro-content {
        flex: 2;
    }

    .intro-preview {
        flex: 1;
        margin-top: 0;
    }
}

/* 更新日志Markdown渲染样式 */
.changelog-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.changelog-content h1,
.changelog-content h2,
.changelog-content h3,
.changelog-content h4,
.changelog-content h5,
.changelog-content h6 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-weight: 600;
    color: #222;
}

.changelog-content h1 { font-size: 1.6em; }
.changelog-content h2 { font-size: 1.4em; }
.changelog-content h3 { font-size: 1.2em; }
.changelog-content h4 { font-size: 1.1em; }
.changelog-content h5 { font-size: 1em; }
.changelog-content h6 { font-size: 0.9em; }

.changelog-content p {
    margin-bottom: 1em;
}

.changelog-content ul,
.changelog-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.changelog-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5em;
}

.changelog-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5em;
}

.changelog-content a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s;
}

.changelog-content a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.changelog-content code {
    font-family: 'Courier New', monospace;
    background-color: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.changelog-content pre {
    background-color: #f5f5f5;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.changelog-content pre code {
    background-color: transparent;
    padding: 0;
}

.changelog-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1em;
    color: #666;
    margin-bottom: 1em;
}

.changelog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1em 0;
}

.changelog-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.changelog-content table th,
.changelog-content table td {
    border: 1px solid #ddd;
    padding: 0.5em;
}

.changelog-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.changelog-content hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 1.5em 0;
}

/* 响应式调整 */
@media (min-width: 1025px) {
    .app-intro {
        flex-direction: row;
    }

    .intro-content {
        flex: 2;
    }

    .intro-preview {
        flex: 1;
        margin-top: 0;
    }
}

/* 下拉菜单样式 */
.dropdown-container {
    position: relative;
    width: 100%;
    z-index: 9999999999; /* 提高下拉容器的层级 */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.dropdown-icon {
    margin-left: 8px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.dropdown-container:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -25%;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--hover-shadow);
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 9999; /* 大幅提高下拉菜单的层级 */
    border: 1px solid var(--border-color);
    /* 确保下拉菜单能够突破父容器边界 */
    overflow: visible;
    /* 添加更强的阴影以突出层级 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 150%;
}

.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 智能定位：当下拉菜单接近底部时，向上显示 */
.dropdown-container.dropup .dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 8px;
    transform: translateY(10px);
}

.dropdown-container.dropup:hover .dropdown-menu {
    transform: translateY(0);
}

/* 确保下拉菜单在所有父容器之上 */
.dropdown-menu {
    /* 使用更高的层级确保显示在最上层 */
    z-index: 999999 !important;
}

/* 确保所有可能影响下拉菜单的父容器都设置正确的overflow */
.container,
.download-section,
.download-grid,
.download-card,
.download-buttons {
    overflow: visible !important;
}

/* 为下拉菜单添加更好的视觉效果 */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--card-bg);
    z-index: 1;
}

/* 向上显示时的箭头 */
.dropdown-container.dropup .dropdown-menu::before {
    top: auto;
    bottom: -8px;
    border-bottom: none;
    border-top: 8px solid var(--card-bg);
}

/* 调试样式 - 可以临时启用来检查层级 */
/*
.dropdown-menu {
    border: 2px solid red !important;
    background-color: yellow !important;
}

.dropdown-container {
    border: 2px solid blue !important;
}

.download-card {
    border: 2px solid green !important;
}
*/

/* 确保下拉菜单在悬停时保持可见 */
.dropdown-container:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 为下拉菜单添加过渡延迟，防止意外关闭 */
.dropdown-menu {
    transition-delay: 0s;
}

.dropdown-container:not(:hover) .dropdown-menu {
    transition-delay: 0.1s;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--item-hover-bg);
}

.dropdown-item i {
    margin-right: 8px;
    font-size: 16px;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .download-card{
    width: 100%;
  }
    .dropdown-menu {
        width: 100%;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 12px;
        padding: 0;
        border-top: 1px solid var(--border-color);
    }
    
    .dropdown-toggle {
        display: none;
    }
    
    .dropdown-item {
        margin-bottom: 8px;
        border-radius: 8px;
        background-color: var(--alt-button-bg);
    }
    
    .dropdown-item:last-child {
        margin-bottom: 0;
    }
    
    .download-grid {
        grid-template-columns: repeat(1, 1fr);
    }
} 

.download-tip-donate-link{
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-tip-donate-link-text{
  /* 按钮 */
  color: #4CAF50;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #94949475;
  margin: 40px 0;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

.download-tip-donate-link-text .desc{
  font-size: 14px;
  color: #bbbbbb;
}

/* 二维码区域 */
.qr-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.qr-card {
  background: var(--card-bg);
  border-radius: 1.2rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.qr-card:nth-child(2) {
  animation-delay: 0.2s;
}

.qr-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--hover-shadow);
  border-color: var(--primary-color);
}

.qr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s;
}

.qr-card:hover::before {
  left: 100%;
}

.qr-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-card-content h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.qr-card p {
  color: var(--secondary-text);
  margin-top: 1rem;
  font-size: 1rem;
}

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  background-color: white;
  padding: 0;
  border-radius: 0;
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  user-select: auto;
  pointer-events: auto;
}

.qr-image-wrapper {
  background: white;
  padding: 0.8rem;
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
  margin: 1rem 0;
  border: 1px solid var(--border-color);
}

.wechat-search {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
}

.wechat-search-text {
  font-size: 1.2rem;
}

/* 添加下载提示弹窗的样式 */
.download-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
    z-index: 999999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 400px;
    max-width: 600px;
    font-size: 16px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    animation: zoomIn 0.3s ease forwards;
}

.download-tip.active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes zoomIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

#download-tip-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

#download-tip-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#download-tip-status-content {
    display: flex;
    z-index: 99999;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.download-tip-qrcode {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.download-tip-qrcode-title {
    margin-bottom: 15px;
    font-size: 16px;
}

.download-tip-qrcode-image {
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-tip-qrcode-image img {
    max-width: 130px;
    max-height: 130px;
}

.download-tip-qrcode-desc {
    margin-top: 10px;
    font-size: 14px;
    color: #aaa;
}

.download-tip a {
    color: #4CAF50;
    text-decoration: underline;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(76, 175, 80, 0.1);
}

.download-tip a:hover {
    background-color: rgba(76, 175, 80, 0.2);
}