/* 預設先隱藏（電腦端不顯示），避免桌面端首屏閃爍 */
.view-in-app-area {
  display: none;
}

/* 僅在手機端顯示（max-width: 768px） */
@media screen and (max-width: 768px) {
  .view-in-app-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 10px 0 15px;
    padding: 8px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 2px;
    background: #fff;
    box-shadow: 1px 1px 2px #e2dede;
    box-sizing: border-box;
  }

  .app-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
  }

  .app-icon-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }

  .app-title {
    flex: 1;
    min-width: 0;
    text-align: left; /* 明確靠左對齊 */
  }

  .app-title-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-subtitle-text {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    background: #1677ff;
    text-decoration: none;
    white-space: nowrap;
  }

  .button-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #fff;
  }
}