* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 50%, #f0f9ff 100%);
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* 主页面 */
#main-page.active {
    display: block;
}

/* 详情页面 */
#detail-page.active {
    display: block;
}

/* ================== 侧边栏 (PC端) ================== */
.sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 256px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(229, 231, 235, 0.5);
    z-index: 40;
    box-shadow: 4px 0 20px rgba(16, 185, 129, 0.08);
}

.sidebar-content {
    padding: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #9333ea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

/* 侧边栏导航 */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav .nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4b5563;
}

.sidebar-nav .nav-btn svg {
    color: inherit;
}

.sidebar-nav .nav-btn span {
    font-size: 17px;
    font-weight: 500;
}

.sidebar-nav .nav-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.sidebar-nav .nav-btn.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ================== 主内容区 ================== */
#main-page .main-wrapper {
    padding-bottom: 80px;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 移动端顶部导航栏 */
.mobile-header {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(240, 253, 244, 0.7) 50%, rgba(236, 254, 255, 0.75) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    box-shadow:
        0 1px 10px rgba(16, 185, 129, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mobile-header .header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.mobile-header h1 {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    line-height: 52px;
    letter-spacing: -0.025em;
}

/* 主内容 */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Tab内容 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 日期 */
.date-section {
    padding-top: 8px;
    margin-bottom: 40px;
}

.date-section p {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 部分 */
section {
    margin-bottom: 48px;
}

.section-label p {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.view-all-btn {
    font-size: 17px;
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.view-all-btn:hover {
    color: #2563eb;
}

/* 精选卡片区域 */
.featured-container {
    max-width: 56rem;
}

/* ================== 应用卡片 ================== */
.app-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.app-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 4px !important;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.app-card:active {
    opacity: 0.6;
}

.app-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.app-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.app-info p {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.get-btn {
    min-width: 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
    color: #0d9488;
    font-size: 14px;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    cursor: pointer;
    flex-shrink: 0 !important;
    transition: all 0.2s;
    padding: 0 8px !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    margin-left: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.get-btn:hover {
    background: linear-gradient(135deg, #dcfce7, #cffafe);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ================== 横向滚动 ================== */
.scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.vertical-card {
    flex-shrink: 0;
    width: 260px;
    cursor: pointer;
    transition: opacity 0.2s;
    scroll-snap-align: start;
}

.vertical-card:active {
    opacity: 0.8;
}

.vertical-card .preview {
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(to bottom right, #eff6ff, #faf5ff, #fdf2f8);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.vertical-card .preview .icon-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.vertical-card .preview .icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vertical-card .card-info {
    padding: 4px;
}

.vertical-card .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vertical-card .card-header .app-info {
    flex: 1;
    min-width: 0;
}

.vertical-card .tag {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.vertical-card .card-header h3 {
    font-size: 17px;
    font-weight: 400;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vertical-card .small-get-btn {
    min-width: 60px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    margin-top: 20px;
    flex-shrink: 0;
}

.vertical-card .description {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ================== 精选大卡片 ================== */
.featured-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.featured-card:active {
    transform: scale(0.98);
}

.featured-card .featured-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(to bottom right, #dbeafe, #e9d5ff, #fce7f3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.featured-card .featured-image .icon-wrapper {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    overflow: hidden;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.featured-card .featured-image .icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.featured-card .featured-info {
    padding: 16px;
}

.featured-card .badge {
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.featured-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-card p {
    font-size: 15px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ================== 搜索 ================== */
.search-section {
    margin-bottom: 32px;
}

.search-input-wrapper {
    position: relative;
    max-width: 42rem;
}

.search-input-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0 16px 0 44px;
    height: 36px;
    font-size: 17px;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    outline: none;
    transition: background-color 0.2s;
}

.search-input-wrapper input::placeholder {
    color: #9ca3af;
}

.search-input-wrapper input:focus {
    background: #e5e7eb;
}

.search-placeholder {
    text-align: center;
    padding: 80px 0;
}

.search-placeholder svg {
    width: 64px;
    height: 64px;
    color: #e5e7eb;
    margin: 0 auto 16px;
}

.search-placeholder h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.search-placeholder p {
    font-size: 15px;
    color: #6b7280;
}

/* ================== 移动端底部导航栏 ================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 253, 244, 0.9) 50%, rgba(236, 254, 255, 0.95) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px 20px 0 0;
    z-index: 50;
    box-shadow:
        0 -4px 20px rgba(16, 185, 129, 0.15),
        0 -8px 40px rgba(16, 185, 129, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 8px 0 env(safe-area-inset-bottom);
    padding-top: 8px;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 6px 0;
    position: relative;
}

.bottom-nav .nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.bottom-nav .nav-item.active::after {
    width: 24px;
}

.bottom-nav .nav-item:active {
    transform: scale(0.92);
}

.bottom-nav .nav-item svg {
    color: #9ca3af;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

.bottom-nav .nav-item.active svg {
    color: #3b82f6;
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
    transform: translateY(-2px);
}

.bottom-nav .nav-item span {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.bottom-nav .nav-item.active span {
    color: #3b82f6;
}

/* ================== 应用详情页 ================== */
.detail-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow-x: hidden;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    margin-bottom: 24px;
    position: relative;
}

/* PC端详情页面样式优化 */
@media (min-width: 1024px) {
    #detail-page .detail-wrapper {
        padding: 0 48px;
        padding-top: 32px;
    }

    #detail-page .detail-header {
        margin-bottom: 32px;
    }

    #detail-page .app-header {
        padding: 32px 0;
        gap: 24px;
    }

    #detail-page .app-icon-large {
        width: 140px;
        height: 140px;
        border-radius: 32px;
    }

    #detail-page .app-info h1 {
        font-size: 34px;
    }

    #detail-page .download-btn {
        min-width: 240px;
        height: 48px;
        font-size: 17px;
    }

    #detail-page .detail-section {
        padding: 32px 0;
    }

    #detail-page .detail-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    #detail-page .info-row {
        font-size: 17px;
    }
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 17px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.back-btn:active {
    opacity: 0.6;
}

.share-btn {
    background: none;
    border: none;
    color: #3b82f6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.share-btn:active {
    opacity: 0.6;
}

.detail-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 48px;
    width: 100%;
    overflow-x: hidden;
}

.app-header {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 20px;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 27px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.1;
}

.app-info > p {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 16px;
}

.download-btn {
    width: 100%;
    min-width: 200px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background: #2563eb;
}

.download-btn:active {
    background: #1d4ed8;
}

.detail-section {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    gap: 12px;
    font-size: 15px;
}

.info-row .label {
    color: #6b7280;
    min-width: 80px;
}

.info-row span:last-child {
    color: #111827;
}

.detail-section p {
    font-size: 15px;
    color: #111827;
    line-height: 1.6;
    white-space: pre-wrap;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.all-apps-section {
    padding: 24px 0;
}

/* ================== 加载状态 ================== */
.loading-skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ================== 响应式设计 ================== */

/* 平板端 */
@media (min-width: 641px) and (max-width: 1023px) {
    .main-content {
        padding: 0 32px;
    }

    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* PC端 */
@media (min-width: 1024px) {
    body {
        background-color: #fafafa;
    }

    /* 显示侧边栏 */
    .sidebar {
        display: block;
    }

    /* 主内容区左移 */
    #main-page .main-wrapper {
        margin-left: 256px;
        padding-bottom: 32px;
    }

    /* 详情页面也左移 */
    #detail-page {
        margin-left: 256px;
        min-height: 100vh;
        background: #ffffff;
    }

    /* 隐藏移动端头部 */
    .mobile-header {
        display: none;
    }

    .main-content {
        padding: 0 48px;
        padding-top: 32px;
    }

    .detail-wrapper {
        padding: 0 48px;
    }

    .detail-content {
        padding: 0 48px;
        padding-top: 32px;
        max-width: 1280px;
        margin: 0 auto;
    }

    /* 详情页头部样式 */
    #detail-page .detail-header {
        padding-top: 32px;
    }

    /* PC端网格布局 */
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    @media (min-width: 1280px) {
        .app-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
        }
    }

    /* PC端字体大小 */
    .date-section p {
        font-size: 15px;
    }

    .section-label p {
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .view-all-btn {
        font-size: 19px;
    }

    /* PC端精选卡片 */
    .featured-card {
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        max-width: 600px;
    }

    .featured-card .featured-image {
        aspect-ratio: 16 / 8;
    }

    .featured-card .featured-image .icon-wrapper {
        width: 110px;
        height: 110px;
        border-radius: 24px;
    }

    .featured-card h3 {
        font-size: 20px;
    }

    .featured-card p {
        font-size: 15px;
    }

    .featured-card:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    /* PC端垂直卡片 */
    .vertical-card {
        width: 300px;
    }

    .vertical-card .preview {
        border-radius: 16px;
        aspect-ratio: 5 / 3.5;
    }

    /* PC端搜索框 */
    .search-input-wrapper input {
        height: 40px;
        font-size: 19px;
        border-radius: 12px;
    }

    .search-placeholder h3 {
        font-size: 19px;
    }

    .search-placeholder p {
        font-size: 17px;
    }

    /* 隐藏移动端底部导航 */
    .bottom-nav {
        display: none;
    }
}

/* 超大屏 */
@media (min-width: 1536px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================== 首访提示弹窗 ================== */
.web-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out;
}

.web-notice > .notice-content {
    width: 550px;
    background: #fff;
    border-radius: 40px;
    padding: 50px 40px;
    animation: scaleIn 1s ease-out;
}

.web-notice h3 {
    font-weight: bold;
    text-align: center;
    font-size: 30px;
    color: #111827;
    margin: 0;
}

.notice-text {
    font-size: 16px;
    margin-top: 26px;
    line-height: 30px;
    color: #6b7280;
    text-align: center;
}

.notice-text p {
    margin: 0 0 10px 0;
}

.notice-close-btn {
    display: block;
    background: #98a3ff;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 19px;
    line-height: 60px;
    margin: 0 auto;
    margin-top: 45px;
    border-radius: 32px;
    width: 80%;
    cursor: pointer;
    transition: background 0.5s, transform 0.3s;
    text-decoration: none;
}

.notice-close-btn:hover {
    background: #7c8aff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes clickAnimation {
    0% {
        transform: scale(1);
        background: #98a3ff;
    }
    50% {
        transform: scale(0.9);
        background: #7c8aff;
    }
    100% {
        transform: scale(1);
        background: #98a3ff;
    }
}

@media (max-width: 768px) {
    .web-notice > .notice-content {
        width: 80%;
        padding: 40px 30px;
    }

    .web-notice h3 {
        font-size: 24px;
    }

    .notice-text {
        font-size: 14px;
        line-height: 26px;
    }

    .notice-close-btn {
        font-size: 17px;
        line-height: 50px;
    }
}

/* 移动端优化 */
@media (max-width: 640px) {
    .section-header h2 {
        font-size: 20px;
    }

    .view-all-btn {
        font-size: 15px;
    }

    /* 显示移动端底部导航栏 */
    .bottom-nav {
        display: flex;
    }

    /* 为底部导航栏添加安全区域 */
    .main-wrapper {
        padding-bottom: 80px !important;
    }

    /* 确保弹窗在移动端正确显示 */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 0;
    }

    /* 移动端字体调整 */
    .vertical-card {
        width: 220px;
    }

    /* 移动端头部标题调整 */
    .mobile-header h1 {
        font-size: 28px;
        line-height: 44px;
    }

    /* 修复移动端横向滚动 */
    .scroll-container {
        padding-left: 0;
        padding-right: 0;
    }

    /* 确保内容不溢出 */
    .featured-container {
        max-width: 100%;
    }

    .search-input-wrapper {
        max-width: 100%;
    }

    /* 修复弹窗在移动端的圆角 */
    .modal-content {
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
    }

    /* 详情页在移动端的调整 */
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-info {
        width: 100%;
    }

    .download-btn {
        margin-top: 12px;
    }

    /* 统一所有应用卡片在移动端的样式 */
    .app-card {
        gap: 8px;
        padding: 6px 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .app-icon {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }

    .app-info {
        flex: 1;
        min-width: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .app-info h3 {
        font-size: 15px;
        font-weight: 500;
        max-width: 100%;
    }

    .app-info p {
        font-size: 12px;
        max-width: 100%;
    }

    .get-btn {
        min-width: 56px;
        height: 26px;
        font-size: 13px;
        padding: 0 8px;
        flex-shrink: 0;
        margin-left: auto;
    }

    /* 精选卡片区域在移动端的调整 */
    .featured-card h3 {
        font-size: 18px;
    }

    .featured-card p {
        font-size: 14px;
    }

    /* 垂直卡片中的获取按钮 */
    .small-get-btn {
        min-width: 52px;
        height: 24px;
        font-size: 12px;
        padding: 0 6px;
        flex-shrink: 0;
    }
}

/* ================== 下载弹窗 ================== */
.download-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px 20px 0 0;
    max-width: 400px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    flex: 1;
    min-width: 0;
}

.modal-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 2px;
}

.modal-info p {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #6b7280;
    flex-shrink: 0;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #e5e7eb;
}

.modal-body {
    padding: 20px;
}

.download-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.modal-body h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.download-remark {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.download-links,
.cloud-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.download-link-item,
.cloud-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.download-link-item:hover,
.cloud-link-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.link-icon,
.cloud-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.link-text,
.cloud-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.link-arrow,
.cloud-arrow {
    color: #9ca3af;
    font-size: 18px;
    transition: transform 0.2s;
}

.download-link-item:hover .link-arrow,
.cloud-link-item:hover .cloud-arrow {
    transform: translateX(4px);
    color: #3b82f6;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.modal-close-btn {
    width: 100%;
    padding: 12px 24px;
    background: #f3f4f6;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #e5e7eb;
}

/* PC端弹窗优化 */
@media (min-width: 1024px) {
    .download-modal {
        align-items: center;
    }

    .modal-content {
        max-width: 480px;
        width: 90%;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        border-radius: 16px;
    }

    .modal-info h3 {
        font-size: 19px;
    }

    .modal-info p {
        font-size: 14px;
    }

    .download-link-item,
    .cloud-link-item {
        padding: 16px 18px;
    }

    .link-text,
    .cloud-text {
        font-size: 16px;
    }
}
