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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    background: #fafbfc;
    color: #2d3748;
    line-height: 1.6;
    min-height: 100vh;
}

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


/* 分类标题 */
.category-section {
    margin-bottom: 56px;
}

.category-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a202c;
    letter-spacing: -0.3px;
}

/* 平台标签 */
.platform-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.platform-tab {
    padding: 10px 20px;
    background-color: #ffffff;
    color: #64748b;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.platform-tab:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.platform-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 应用卡片容器 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* 应用卡片 */
.app-card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* 默认只显示 iOS 应用，隐藏其他平台（推荐专区除外） */
.app-grid:not(.recommended-grid) .app-card:not([data-platform="iOS"]) {
    display: none;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #e2e8f0;
}

.app-card:hover::before {
    opacity: 1;
}

/* 卡片内容容器 */
.app-card-content {
    display: block;
    margin-bottom: 0;
}

/* 应用图标 */
.app-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.app-icon img {
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 60px;
    height: 60px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon img {
    transform: scale(1.05);
}

/* 应用信息区域 */
.app-info {
    flex: 1;
    min-width: 0;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    flex: 1;
    letter-spacing: -0.2px;
}

.app-platform {
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

.platform-iOS {
    background: linear-gradient(135deg, #007AFF 0%, #0051d5 100%);
    color: white;
}

.platform-安卓 {
    background: linear-gradient(135deg, #34A853 0%, #2d8f47 100%);
    color: white;
}

.platform-TV {
    background: linear-gradient(135deg, #FBBC05 0%, #f9ab00 100%);
    color: white;
}

.platform-电脑 {
    background: linear-gradient(135deg, #EA4335 0%, #d33b2c 100%);
    color: white;
}

.app-status {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.status-tag {
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    /* 默认标签背景色，避免新标签没有颜色 */
    background-color: #e5e7eb;
    color: #374151;
}

.status-上架 {
    background-color: #d1fae5;
    color: #065f46;
}

.status-下架 {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-有广 {
    background-color: #fef3c7;
    color: #92400e;
}

.status-无广 {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-更新 {
    background-color: #e9d5ff;
    color: #6b21a8;
}

.status-推荐 {
    background-color: #fce7f3;
    color: #9f1239;
}

.app-description {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.app-recommended-note {
    color: #f59e0b;
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.app-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 8px;
    margin-top: 0;
    border-top: 1px solid #f1f5f9;
}

.download-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

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

.transform-code {
    font-size: 12px;
    color: #94a3b8;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    background-color: #f8fafc;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    width: 90%;
    max-width: 280px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-20px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    background-color: #ffffff;
    z-index: 1000;
    padding-top: 0;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.3px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #94a3b8;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.close-btn:hover {
    background-color: #f1f5f9;
    color: #64748b;
}

.modal-body {
    margin-bottom: 12px;
}

#downloadLinks {
    margin-top: 0;
}

.download-link {
    display: block;
    padding: 16px;
    background-color: #f8fafc;
    text-decoration: none;
    color: #1a202c;
    border-radius: 12px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.download-link:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-body .app-info {
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.app-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #1a202c;
    letter-spacing: -0.3px;
}

.app-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 0;
}

.app-recommended-note {
    font-size: 12px;
    color: #f59e0b;
    margin: 6px 0 0 0;
    font-weight: 500;
    line-height: 1.4;
}

.platform-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.platform-card {
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.platform-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.platform-card.ios-card {
    border-left: 4px solid #007AFF;
}

.platform-card.android-card {
    border-left: 4px solid #34A853;
}

.platform-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.platform-icon {
    font-size: 18px;
    margin-right: 8px;
}

.platform-name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
    flex: 1;
}

.platform-body {
    padding: 10px;
}

.download-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-button.ios-button {
    background: linear-gradient(135deg, #007AFF 0%, #0051d5 100%);
    color: white;
}

.download-button.ios-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.download-button.android-button {
    background: linear-gradient(135deg, #34A853 0%, #2d8f47 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.2);
}

.download-button.android-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.installation-steps {
    margin-top: 8px;
}

.installation-steps h5 {
    margin: 0 0 5px 0;
    font-size: 12px;
    font-weight: 600;
    color: #1a202c;
}

.installation-steps ol {
    margin: 0;
    padding-left: 18px;
}

.installation-steps li {
    margin-bottom: 3px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.code-box {
    background-color: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 11px;
    font-weight: 600;
    color: #667eea;
    margin: 5px 0;
    border: 1px solid #e2e8f0;
    word-break: break-all;
}

.android-note {
    margin: 5px 0 0 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* 推荐板块下载说明（黄色区域） */
.recommended-download-notice {
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.recommended-download-notice p {
    margin: 0;
    font-size: 12px;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500;
}

.recommended-download-notice strong {
    color: #78350f;
    font-weight: 600;
}

.support-info {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.support-info p {
    margin: 0;
    font-size: 10px;
    color: #94a3b8;
}

.modal-footer {
    text-align: center;
    position: sticky;
    bottom: 0;
    background-color: #ffffff;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* 提示弹窗 */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    z-index: 1100;
    display: none;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.toast.active {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 底部导航 */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: #e2e8f0;
    padding: 60px 0 32px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 14px;
}

/* 顶部 Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none; /* 隐藏顶部banner，底部弹窗有介绍网站内容 */
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.banner-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.banner-description {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 400;
}

/* 关注弹窗样式 */
.follow-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.follow-modal.active {
    display: flex;
    pointer-events: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.follow-modal-content {
    background: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 20px 18px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 300px;
    width: 90%;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
    pointer-events: auto !important;
    z-index: 1000;
}

.follow-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.follow-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999 !important;
    pointer-events: auto !important;
    user-select: none;
    transition: all 0.3s ease;
}

.follow-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.follow-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.follow-modal-icon {
    font-size: 26px;
    line-height: 1;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.follow-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.follow-modal-body {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.follow-modal-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.follow-modal-text .highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a8a;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    display: inline-block;
    transform: translateY(-1px);
}

.follow-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.follow-btn-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.follow-btn {
    padding: 10px 16px;
    border-radius: 10px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    pointer-events: auto !important;
    z-index: 10;
}
}

.follow-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;
}

.follow-btn:hover::before {
    width: 300px;
    height: 300px;
}

.follow-btn-row .follow-btn {
    flex: 1;
    min-width: 0;
}

.follow-btn-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    min-width: 0;
    pointer-events: auto !important;
}

.follow-btn-wrapper .follow-btn {
    width: 100%;
    min-width: 0;
}

.follow-btn-secondary {
    width: 100%;
}

.follow-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.follow-btn-primary:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.follow-btn-primary:active {
    transform: translateY(-1px);
}

.follow-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.follow-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.follow-btn-icon {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

/* 二维码悬浮显示 */
.qrcode-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    display: none;
    animation: popupFadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 200px;
    pointer-events: auto;
}

/* 确保关闭按钮始终在最上层，不被二维码弹窗遮挡 */
.follow-modal-content {
    position: relative;
}

.follow-modal-content > .follow-modal-close {
    z-index: 99999 !important;
    pointer-events: auto !important;
    position: absolute !important;
}

.qrcode-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.qrcode-popup.active {
    display: block;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(15px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.qrcode-popup img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qrcode-popup-text {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.follow-btn-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    overflow: visible;
}

.follow-btn-share {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.follow-btn-share:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* 分享弹窗样式 */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px 20px 20px;
    width: 90%;
    max-width: 320px;
    position: relative;
    animation: shareModalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes shareModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.share-modal-close:hover {
    background: #e2e8f0;
    color: #475569;
}

/* 社交媒体图标区域 */
.share-modal-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
    padding: 0 16px;
}

.share-modal-icons::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    border-top: 2px dashed #e2e8f0;
    z-index: 0;
}

.share-icon-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    background: white;
}

.share-icon-item[data-platform="weibo"] {
    color: #e6162d;
}

.share-icon-item[data-platform="wechat"] {
    color: #07c160;
}

.share-icon-item[data-platform="bilibili"] {
    color: #fb7299;
}

.share-icon-item[data-platform="douyin"] {
    color: #000000;
}

.share-icon-item[data-platform="xiaohongshu"] {
    color: #ff2442;
}

.share-icon-item[data-platform="douban"] {
    color: #007722;
}

.share-icon-item svg {
    width: 26px;
    height: 26px;
}

.share-icon-item:hover {
    transform: scale(1.15);
}

/* 成功提示区域 */
.share-modal-success {
    text-align: center;
    margin-bottom: 24px;
}

.share-fist-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: fistPunch 0.5s ease;
}

@keyframes fistPunch {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2) rotate(5deg);
    }
}

.share-success-text {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.share-success-desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 0 12px;
}

.share-save-btn {
    width: 100%;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.share-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

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

/* 底部域名区域 */
.share-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.share-domain-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.share-domain {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

/* 关闭按钮（弹窗下方） */
.share-modal-close-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #374151;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-modal-close-btn:hover {
    background: #4b5563;
    transform: translateX(-50%) scale(1.1);
}

.share-modal-close-btn svg {
    width: 18px;
    height: 18px;
}

/* 分享图片容器（用于生成图片） */
.share-image-container {
    width: 600px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    position: fixed;
    left: -9999px;
    top: -9999px;
}

.share-image-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.share-image-description {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 32px;
}

.share-image-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border: 4px solid #f1f5f9;
    border-radius: 12px;
    padding: 16px;
    background: white;
}

.share-image-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.share-image-url {
    font-size: 16px;
    color: #3b82f6;
    word-break: break-all;
    margin-bottom: 24px;
}

.share-image-domain {
    font-size: 14px;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

/* 分享提示弹窗 */
.share-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none;
    animation: popupFadeIn 0.3s ease;
    min-width: 200px;
    white-space: nowrap;
}

.share-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.share-popup.active {
    display: block;
}

.share-popup-text {
    text-align: center;
    font-size: 14px;
    color: #1a202c;
    font-weight: 500;
}

.fixed-icon-wrapper {
    position: relative;
}

/* 右下角固定图标 */
.fixed-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fixed-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.fixed-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.fixed-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .category-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .app-card {
        padding: 8px 10px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    .app-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    
    /* 移动端横向扁平布局 */
    .app-card-content {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        position: relative;
    }
    
    .app-icon {
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .app-icon img {
        width: 40px;
        height: 40px;
        border-radius: 6px;
    }
    
    .app-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        position: relative;
        padding-right: 65px; /* 为右侧状态标签留出空间 */
    }
    
    .app-header {
        margin-bottom: 0;
        gap: 4px;
        align-items: flex-start;
    }
    
    .app-name {
        font-size: 14px;
        line-height: 1.2;
        flex: 1;
        min-width: 0;
        margin: 0;
    }
    
    .app-platform {
        display: none; /* 移动端隐藏平台标签 */
    }
    
    /* 在移动端将状态标签移到右边 */
    .app-status {
        position: absolute;
        right: 0;
        top: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        align-items: flex-end;
        margin: 0;
        z-index: 1;
    }
    
    .status-tag {
        font-size: 9px;
        padding: 2px 6px;
        border-radius: 4px;
        white-space: nowrap;
    }
    
    .app-description {
        font-size: 11px;
        margin-bottom: 0;
        margin-top: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
        padding-top: 0;
    }
    
    .app-recommended-note {
        font-size: 11px;
        margin-top: 4px;
        margin-bottom: 0;
    }
    
    /* 移动端隐藏底部下载区域 */
    .app-footer {
        display: none;
    }
    
    .platform-tabs {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .platform-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .category-section {
        margin-bottom: 40px;
    }
    
    .footer {
        padding: 40px 0 24px;
        margin-top: 60px;
    }
    
    .footer-container {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }
    
    .category-section {
        margin-bottom: 32px;
    }
    
    .category-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
    
    .app-grid {
        gap: 8px;
    }
    
    .app-card {
        padding: 20px 10px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    
    .app-card:hover {
        transform: none;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    }
    
    .app-card-content {
        gap: 6px;
    }
    
    .app-icon img {
        width: 36px;
        height: 36px;
        border-radius: 5px;
    }
    
    .app-name {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .app-info {
        padding-right: 60px;
        gap: 1px;
    }
    
    .app-status {
        gap: 2px;
    }
    
    .status-tag {
        font-size: 8px;
        padding: 2px 5px;
        border-radius: 3px;
    }
    
    .app-description {
        font-size: 10px;
        margin-bottom: 0;
        margin-top: 0;
        line-height: 1.3;
        -webkit-line-clamp: 2;
    }
    
    .app-footer {
        display: none;
    }
    
    .platform-tabs {
        gap: 6px;
        margin-bottom: 20px;
    }
    
    .platform-tab {
        padding: 7px 14px;
        font-size: 12px;
    }
    
    .modal-content {
        padding: 14px;
        width: 92%;
        max-width: 280px;
        max-height: 85vh;
    }
    
    .modal-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .close-btn {
        font-size: 22px;
        width: 28px;
        height: 28px;
    }
    
    .modal-body {
        margin-bottom: 12px;
    }
    
    .modal-body .app-info {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .app-title {
        font-size: 16px;
    }
    
    .app-subtitle {
        font-size: 11px;
    }
    
    .app-recommended-note {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .platform-container {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .platform-header {
        padding: 10px 12px;
    }
    
    .platform-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    
    .platform-name {
        font-size: 13px;
    }
    
    .platform-body {
        padding: 10px;
    }
    
    .download-button {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .installation-steps {
        margin-top: 8px;
    }
    
    .installation-steps h5 {
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .installation-steps ol {
        padding-left: 18px;
    }
    
    .installation-steps li {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .code-box {
        font-size: 11px;
        padding: 6px 10px;
        margin: 5px 0;
    }
    
    .android-note {
        font-size: 11px;
        margin: 5px 0 0 0;
    }
    
    .support-info {
        padding-top: 10px;
    }
    
    .support-info p {
        font-size: 10px;
    }
    
    .recommended-download-notice {
        margin-top: 8px;
        padding: 8px 10px;
    }
    
    .recommended-download-notice p {
        font-size: 11px;
    }
    
    .modal-footer {
        padding-top: 10px;
        margin-top: 10px;
    }
    
    .banner {
        padding: 40px 16px;
    }
    
    .banner-title {
        font-size: 32px;
    }
    
    .banner-description {
        font-size: 16px;
    }
    
    .follow-modal {
        padding: 16px;
        align-items: flex-end;
    }
    
    .follow-modal-content {
        padding: 20px 18px;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        animation: modalSlideUpMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    @keyframes modalSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .follow-modal-title {
        font-size: 20px;
    }
    
    .follow-modal-text {
        font-size: 14px;
    }
    
    .follow-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .follow-modal-text {
        font-size: 13px;
    }
    
    .follow-modal-footer {
        gap: 10px;
    }
    
    .follow-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .share-modal-content {
        padding: 24px 20px 20px;
        max-width: 90%;
    }
    
    .share-modal-icons {
        padding: 0 10px;
    }
    
    .share-icon-item {
        width: 40px;
        height: 40px;
    }
    
    .share-icon-item svg {
        width: 24px;
        height: 24px;
    }
    
    .share-fist-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .share-success-text {
        font-size: 24px;
    }
    
    .share-success-desc {
        font-size: 13px;
        padding: 0 8px;
    }
    
    .share-save-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .share-modal-close-btn {
        bottom: -50px;
        width: 36px;
        height: 36px;
    }
    
    .follow-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .qrcode-popup {
        min-width: 160px;
        padding: 12px;
    }
    
    .qrcode-popup img {
        width: 140px;
        height: 140px;
    }
    
    .share-popup {
        min-width: 160px;
        padding: 12px 16px;
    }
    
    .share-popup-text {
        font-size: 12px;
    }
    
    .fixed-icons {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
    
    .fixed-icon {
        width: 45px;
        height: 45px;
    }
    
    .fixed-icon svg {
        width: 20px;
        height: 20px;
    }
}
