/**
 * PC 端下载区样式
 * 包含 Hero 区域和蓝色下载栏
 */

/* ========== PC Hero 下载白底胶囊条（图1 海外 / 图2 国内） ========== */
.pc-download-hero {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin-top: 1.667vw;
    margin-left: calc(4.167vw * var(--nav-s, 1));
    padding: 0.729vw 1.25vw;
    background: #FFFFFF;
    border-radius: 1.25vw;
    box-shadow: 0 0.208vw 1.042vw rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    overflow: visible;
}

/* 覆盖 home.css 里 .hero-buttons 的 gap / margin-left，避免双重偏移 */
.hero-buttons.pc-download-hero {
    gap: 0;
    margin-left: calc(4.167vw * var(--nav-s, 1));
}

/* 去掉 a 下划线，保留 hover 文字高亮（见下方 .pc-hero-item-label） */
.hero-buttons.pc-download-hero a,
.hero-buttons.pc-download-hero a:link,
.hero-buttons.pc-download-hero a:visited,
.hero-buttons.pc-download-hero a:hover,
.hero-buttons.pc-download-hero a:focus,
.hero-buttons.pc-download-hero a:active {
    text-decoration: none;
}

/* 竖向图标+文案单元 */
.pc-hero-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.313vw;
    min-width: 4.167vw;
    padding: 0.417vw 1.042vw;
    text-decoration: none;
    color: #1A1A1A;
    background: transparent;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: var(--font-family);
}

.pc-hero-item-icon {
    width: 2.916vw;
    height: 2.916vw;
    object-fit: contain;
    display: block;
}

.pc-hero-item-label {
    font-size: 0.729vw;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    color: #1A1A1A;
}

a.pc-hero-item:hover .pc-hero-item-label,
button.pc-hero-item:hover .pc-hero-item-label {
    color: #008CFF;
}

/* 分隔线：App Store | Android/Google Play */
.pc-hero-divider {
    display: block;
    width: 1px;
    height: 3.333vw;
    background: #E5E5E5;
    flex-shrink: 0;
    margin: 0 0.208vw;
}

/* Download Now / 立即下载：纯文案，灰色 */
.pc-hero-download-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25vw;
    font-family: var(--font-family);
    font-size: 0.938vw;
    font-weight: 500;
    line-height: 1.25;
    color: #B0B0B0;
    white-space: pre-line;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

/* ========== Android 下拉菜单（简中） ========== */
/* Hero 允许下拉溢出，并抬高层级避免被 honors 等后续区块盖住 */
.is-pc .hero-section {
    overflow: visible;
    z-index: 5;
}

.pc-android-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.pc-android-dropdown.is-open {
    z-index: 50;
}

/* 清除 button 默认白底/边框，避免蓝底栏或白条上出现一圈白边 */
.pc-android-trigger {
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.pc-android-trigger:focus,
.pc-android-trigger:focus-visible,
.pc-android-trigger:active {
    outline: none !important;
    border: none !important;
    box-shadow: none;
}

/*
 * 菜单紧贴触发器（top:100%）。
 * padding-top 为透明热区桥，避免鼠标从按钮移到菜单时穿过空隙触发 mouseleave。
 * 白底/阴影画在 ::before 上，视觉上与触发器仍有间距。
 */
.pc-android-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    list-style: none;
    margin: 0;
    padding: 0.521vw 0 0; /* 上方热区桥 */
    z-index: 50;
    box-sizing: border-box;
    background: transparent;
    margin-top: 0.6vw;
    width: 6.8vw;
}

.pc-android-dropdown.is-open .pc-android-menu {
    display: block;
}

.pc-android-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0.521vw; /* 与 padding-top 对齐，白底从热区下方开始 */
    bottom: 0;
    background: #fff;
    border-radius: 0.833vw;
    box-shadow: 0 0.208vw 1.042vw rgba(0, 0, 0, 0.12);
    z-index: -1;
}

.pc-android-menu li {
    margin: 0;
    padding: 0;
    position: relative;
}

.pc-android-menu a {
    display: block;
    padding: 0.85vw 0.8vw;
    font-family: var(--font-family);
    font-size: 0.75vw;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.pc-android-menu a:hover {
    background: rgba(0, 140, 255, 0.08);
    color: #008CFF;
}

.pc-android-menu li:first-child a {
    border-radius: 0.833vw 0.833vw 0 0;
    padding-top: 0.833vw;
}

.pc-android-menu li:last-child a {
    border-radius: 0 0 0.833vw 0.833vw;
    padding-bottom: 0.833vw;
}

/* ========== 扫码按钮与弹出层 ========== */
.pc-scan-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1;
}

.pc-scan-wrap.is-open {
    z-index: 50;
}

.pc-scan-popover {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.521vw 0 0; /* 热区桥 */
    z-index: 50;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    background: transparent;
}

.pc-scan-popover img {
    width: 8.333vw;
    height: 8.333vw;
    display: block;
    background: #fff;
    border-radius: 0.833vw;
    box-shadow: 0 0.208vw 1.042vw rgba(0, 0, 0, 0.12);
    padding: 0.833vw;
    box-sizing: content-box;
}

/* ========== PC 蓝色下载栏 ========== */
.download-section-new {
    background: #F5F7F8;
    padding: 1.667vw 0;
    position: relative;
    z-index: 4;
    overflow: visible;
}

.download-bar-new {
    max-width: 69.792vw;
    width: 69.792vw;
    height: 20vw;
    max-height: 30vw;
    margin: 0 auto;
    background: linear-gradient(135deg, #1A8CFF 0%, #0066CC 100%);
    border-radius: 1.25vw;
    padding: 2.5vw 7.7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible; /* 允许 Android 下拉溢出 */
}

.download-bar-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 15vw;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.download-bar-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25vw;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.download-bar-copy {
    display: flex;
    flex-direction: column;
}

.download-bar-title-new {
    font-family: var(--font-family);
    font-size: 2vw;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.download-bar-subtitle-new {
    font-family: var(--font-family);
    font-size: 1.15vw;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

html:not([lang="zh-CN"]) .download-bar-subtitle-new {
    font-size: 1.7vw;
}

.download-bar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.521vw;
    align-items: flex-start;
    margin-top: 0.65vw;
}

.download-bar-view-details {
    font-family: var(--font-family);
    font-size: 0.833vw;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.2;
}

.download-bar-buttons-new {
    display: flex;
    align-items: center;
    gap: 0.833vw;
    position: relative;
    overflow: visible;
    margin-top: 0.5vw;
}

.download-bar-btn-new {
    display: inline-flex;
    align-items: center;
    height: 3.125vw;
    border-radius: 1.5vw;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.download-bar-btn-new img {
    height: 100%;
    width: auto;
    display: block;
}

.download-bar-btn-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 蓝色栏内 Android 触发器：去掉按钮默认底色，仅保留图片 */
.download-bar-buttons-new .pc-android-dropdown {
    display: inline-flex;
    background: transparent;
    border: none;
    padding: 0;
}

.download-bar-buttons-new .pc-android-trigger.download-bar-btn-new {
    background: transparent !important;
    border: none !important;
    padding: 0;
    box-shadow: none;
}

.download-bar-buttons-new .pc-android-trigger.download-bar-btn-new:hover {
    /* 保留轻微上浮，但不加白色阴影底 */
    box-shadow: none;
}

.download-bar-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625vw;
    margin-top: 2.5vw;
}

.download-bar-qr {
    width: 10.417vw;
    height: 10.417vw;
    background: #fff;
    border-radius: 0.833vw;
    padding: 0.521vw;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.download-bar-qr img {
    width: 100%;
    height: 100%;
    display: block;
}

.download-bar-qr-hint {
    font-family: var(--font-family);
    font-size: 0.729vw;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    white-space: pre-line;
}
