/* ========================================
   App 详情页专属样式
   ======================================== */

/* App 头部区域 */
.app-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.app-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.map-bg {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #6366f1 100%);
}

.player-bg {
    background: linear-gradient(135deg, #ec4899 0%, #f97316 50%, #f59e0b 100%);
}

.words-bg {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 50%, #6366f1 100%);
}

.app-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.app-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: white;
    transform: translateX(-4px);
}

.app-hero-main {
    display: flex;
    align-items: center;
    gap: 40px;
}

.app-hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.app-hero-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.app-hero-slogan {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.app-hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.meta-item i {
    color: rgba(255, 255, 255, 0.8);
}

.app-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-hero-actions .btn-primary {
    background: white;
    color: var(--dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-hero-actions .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.app-hero-actions .btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.app-hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 功能特性区域 */
.features-section {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 36px 28px;
    background: var(--light);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.1);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
}

.feature-icon.blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.feature-icon.cyan { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.feature-icon.green { background: linear-gradient(135deg, #10b981, #22c55e); }
.feature-icon.purple { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.feature-icon.orange { background: linear-gradient(135deg, #f97316, #f59e0b); }
.feature-icon.pink { background: linear-gradient(135deg, #ec4899, #f472b6); }

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* 截图展示区域 */
.screenshots-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc, #f0f4ff);
}

.screenshots-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.screenshot-item {
    text-align: center;
}

.screenshot-frame {
    background: white;
    border-radius: var(--radius-xl);
    padding: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.screenshot-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.screenshot-placeholder {
    aspect-ratio: 9 / 19;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 2.5rem;
    color: white;
    min-height: 320px;
}

.screenshot-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}

.map-screenshot {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.player-screenshot {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.words-screenshot {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.screenshot-caption {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* 详细亮点区域 */
.highlights-section {
    padding: 100px 0;
    background: white;
}

.highlight-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.highlight-block:last-child {
    margin-bottom: 0;
}

.highlight-block.reverse {
    direction: rtl;
}

.highlight-block.reverse > * {
    direction: ltr;
}

.highlight-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.highlight-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.highlight-text p {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

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

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--dark);
    font-size: 0.95rem;
}

.highlight-list li i {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* 手机展示 */
.highlight-phone {
    position: relative;
    width: 260px;
    margin: 0 auto;
}

.phone-screen {
    background: var(--dark);
    border-radius: 36px;
    padding: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.screen-content {
    aspect-ratio: 9 / 19;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 3rem;
    color: white;
}

.screen-content span {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.offline-screen {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.nav-screen {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.player-screen {
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.lyric-screen {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.memory-screen {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.vocab-screen {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

/* App 评价区域 */
.app-reviews-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f8fafc, #f0f4ff);
}

/* 下载区域 */
.download-section-page {
    padding: 100px 0;
    background: white;
}

.download-card {
    background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.download-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.download-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.download-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.download-text p {
    color: var(--gray);
    font-size: 0.95rem;
}

.download-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.download-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    background: white;
    border: 1.5px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.download-link-btn i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.download-link-btn span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.download-link-btn small {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
}

.download-link-btn:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.download-qr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.download-qr-item {
    text-align: center;
}

.qr-label {
    display: block;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .app-hero-main {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .app-hero-info h1 {
        font-size: 2rem;
    }

    .app-hero-meta {
        justify-content: center;
    }

    .app-hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-slider {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlight-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .highlight-block.reverse {
        direction: ltr;
    }

    .highlight-visual {
        order: -1;
    }

    .download-qr-grid,
    .download-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .app-hero {
        min-height: 400px;
        padding: 100px 24px 40px;
    }

    .app-hero-icon {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }

    .app-hero-info h1 {
        font-size: 1.6rem;
    }

    .app-hero-slogan {
        font-size: 1rem;
    }

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

    .screenshots-slider {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .screenshot-placeholder {
        min-height: 200px;
        font-size: 1.8rem;
    }

    .highlight-text h3 {
        font-size: 1.4rem;
    }

    .download-card {
        padding: 28px;
    }

    .download-info {
        flex-direction: column;
        text-align: center;
    }

    .download-qr-grid,
    .download-links-grid {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .screenshots-slider {
        grid-template-columns: 1fr;
    }

    .screenshot-placeholder {
        min-height: 400px;
    }

    .download-qr-grid,
    .download-links-grid {
        grid-template-columns: 1fr 1fr;
    }

    .qr-placeholder.large {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}
