/* ============================================
   铁蛋电竞 - APP下载页专属样式 (ap-)
   布局：左右分栏
   ============================================ */

.ap-hero {
    padding: 60px 0 40px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(124,58,237,0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(167,139,250,0.15) 0%, transparent 50%);
}

.ap-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* ===== 左侧：手机模拟框 ===== */
.ap-hero-left {
    display: flex;
    justify-content: center;
}

.ap-phone-wrap {
    position: relative;
    padding: 20px;
}

.ap-phone {
    position: relative;
    width: 280px;
    height: 560px;
    background: #0a0618;
    border: 2px solid rgba(124,58,237,0.5);
    border-radius: 36px;
    padding: 18px 12px;
    box-shadow: 0 20px 60px rgba(124,58,237,0.4);
    z-index: 2;
}

.ap-phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: #0a0618;
    border-radius: 0 0 14px 14px;
}

.ap-phone-glow {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 320px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
}

.ap-phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1333 0%, #0f0a1e 100%);
    border-radius: 24px;
    padding: 30px 14px 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ap-screen-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.ap-screen-brand {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 14px;
}

.ap-screen-live {
    font-size: 10px;
    color: #10b981;
}

.ap-screen-search {
    background: rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.ap-screen-games {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ap-g {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}

.ap-g.active {
    background: var(--primary);
    color: #fff;
}

.ap-screen-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ap-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 10px;
}

.ap-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.ap-row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ap-row-info b {
    font-size: 12px;
    color: var(--text-primary);
}

.ap-row-info span {
    font-size: 10px;
    color: var(--text-muted);
}

.ap-row-price {
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 700;
}

.ap-screen-tab {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ap-tab {
    font-size: 10px;
    color: var(--text-muted);
}

.ap-tab.active {
    color: var(--primary-light);
}

/* ===== 右侧：下载区 ===== */
.ap-hero-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ap-h1 {
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary-light), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0;
}

.ap-tagline {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ap-download-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ap-dl-btn {
    flex: 1;
    min-width: 180px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s;
}

.ap-dl-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ap-dl-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
}

.ap-dl-ios .ap-dl-icon::after {
    content: "";
    position: absolute;
    inset: 6px;
    background: #000;
    border-radius: 4px;
    clip-path: polygon(50% 0, 100% 30%, 80% 100%, 20% 100%, 0 30%);
}

.ap-dl-android-icon {
    background: #3ddc84;
}

.ap-dl-android-icon::after {
    content: "";
    position: absolute;
    inset: 6px;
    background: #fff;
    border-radius: 4px;
}

.ap-dl-text {
    display: flex;
    flex-direction: column;
}

.ap-dl-text small {
    font-size: 10px;
    color: var(--text-muted);
}

.ap-dl-text b {
    font-size: 15px;
    color: var(--text-primary);
}

/* 二维码 */
.ap-mini-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: 12px;
}

.ap-qr-mock {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 8px;
    position: relative;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    padding: 6px;
}

.ap-qr-pixel {
    background: #000;
}

.ap-qr-pixel.center {
    background: transparent;
    grid-column: 2 / 4;
    grid-row: 2 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
}

.ap-mini-qr-text {
    display: flex;
    flex-direction: column;
}

.ap-mini-qr-text b {
    color: var(--text-primary);
    font-size: 14px;
}

.ap-mini-qr-text small {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* 评分卡 */
.ap-rating-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 20px;
    align-items: center;
}

.ap-rating-score {
    grid-row: 1 / 3;
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

.ap-rating-score span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.ap-rating-stars {
    color: #f59e0b;
    font-size: 22px;
    letter-spacing: 2px;
}

.ap-rating-meta {
    color: var(--text-muted);
    font-size: 13px;
}

.ap-rating-bars {
    grid-column: 1 / 3;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ap-bar {
    display: grid;
    grid-template-columns: 1fr 40px;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.ap-bar i {
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    display: block;
}

/* ===== 功能网格 ===== */
.ap-feature-grid {
    margin-top: 20px;
}

.ap-feature {
    text-align: left;
    padding: 28px 24px;
}

.ap-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
}

.ap-feature-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ap-feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 版本日志：横向时间线 ===== */
.ap-changelog {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent, rgba(124,58,237,0.05), transparent);
}

.ap-log-track {
    position: relative;
    margin-top: 40px;
    padding-top: 20px;
}

.ap-log-track::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.ap-log-node {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.ap-log-dot {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.2);
    z-index: 2;
}

.ap-log-card {
    padding: 22px;
    margin-top: 60px;
}

.ap-log-node.is-current .ap-log-card {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(124,58,237,0.25);
}

.ap-log-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.ap-log-ver {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-light);
}

.ap-log-tag {
    background: var(--primary);
    color: #fff;
}

.ap-log-date {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: auto;
}

.ap-log-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ap-log-items li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.ap-log-items li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* ===== 底部CTA ===== */
.ap-cta {
    padding: 40px 0 60px;
}

.ap-cta-box {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(124,58,237,0.05));
    border: 1px solid var(--primary);
}

.ap-cta-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.ap-cta-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.ap-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .ap-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ap-h1 {
        font-size: 34px;
        text-align: center;
    }
    .ap-tagline {
        text-align: center;
    }
    .ap-download-row,
    .ap-mini-qr,
    .ap-rating-card {
        max-width: 480px;
        margin: 0 auto;
    }
    .ap-log-node {
        grid-template-columns: 1fr;
    }
    .ap-log-track::before {
        display: none;
    }
    .ap-log-dot {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 10px;
    }
    .ap-log-card {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .ap-phone {
        width: 240px;
        height: 480px;
    }
    .ap-h1 {
        font-size: 28px;
    }
}
