修改appdown
This commit is contained in:
+100
-269
@@ -3,244 +3,96 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title id="page-title">彩先知 - APP下载</title>
|
<title>彩先知 - APP下载</title>
|
||||||
<script src="../public/css/layui/layui.js"></script>
|
|
||||||
<script src="../config.js"></script>
|
<script src="../config.js"></script>
|
||||||
<script src="../utils/ApiClient.js"></script>
|
<script src="../public/css/layui/layui.js"></script>
|
||||||
<script src="../utils/DateUtil.js"></script>
|
|
||||||
<script src="../utils/CommonUtil.js"></script>
|
|
||||||
<script src="../public/js/qrcode.min.js"></script>
|
|
||||||
<link rel="stylesheet" href="../public/css/layui/css/layui.css" />
|
<link rel="stylesheet" href="../public/css/layui/css/layui.css" />
|
||||||
<link rel="stylesheet" href="../public/css/public.css" />
|
|
||||||
<link rel="stylesheet" href="../public/css/appdown.css" />
|
<link rel="stylesheet" href="../public/css/appdown.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<!-- Header -->
|
<div class="app-download-container">
|
||||||
<nav class="topbar" id="navbar">
|
<div class="app-icon-container">
|
||||||
<div class="topbar__inner">
|
<img src="../images/home-logo.png" alt="彩先知图标" class="app-icon" />
|
||||||
<a href="index.html" class="topbar__brand">
|
</div>
|
||||||
<img
|
|
||||||
src="../images/home-logo.png"
|
<div class="app-basic-info">
|
||||||
alt="彩先知"
|
<h1 class="app-name" id="appName">彩先知</h1>
|
||||||
class="topbar__logo"
|
<p class="app-version" id="appVersion">版本: 1.0.0</p>
|
||||||
/>
|
<div class="divider"></div>
|
||||||
</a>
|
</div>
|
||||||
<div class="topbar__nav" id="navLotteryItems">
|
|
||||||
<a href="index.html" class="topbar__nav-link">首页</a>
|
<div class="app-intro">
|
||||||
</div>
|
<h2 class="section-title">应用介绍</h2>
|
||||||
<div class="topbar__user">
|
<p class="intro-text" id="appIntro">
|
||||||
<div id="notLoggedInBox" class="topbar__guest">
|
彩先知为您提供开奖数据、预测分析和文章资讯,随时查看移动端内容。
|
||||||
<a href="login.html" class="topbar__btn topbar__btn--ghost">登录</a>
|
</p>
|
||||||
<a href="reg.html" class="topbar__btn topbar__btn--primary"
|
</div>
|
||||||
>免费注册</a
|
|
||||||
|
<div class="download-section">
|
||||||
|
<h2 class="section-title">立即下载</h2>
|
||||||
|
<a href="/" class="download-btn-wrap" id="targetLink">
|
||||||
|
<button class="download-btn" type="button">
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 1024 1024"
|
||||||
|
class="download-icon"
|
||||||
|
aria-hidden="true"
|
||||||
>
|
>
|
||||||
</div>
|
<path
|
||||||
<div id="loggedInBox" class="topbar__logged" style="display: none">
|
fill="currentColor"
|
||||||
<a href="usercenter.html" class="topbar__profile">
|
d="M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"
|
||||||
<img
|
></path>
|
||||||
id="userAvatar"
|
</svg>
|
||||||
src="../public/img/userimg.png"
|
<span class="btn-text">下载APK</span>
|
||||||
alt=""
|
</button>
|
||||||
class="topbar__avatar"
|
</a>
|
||||||
/>
|
|
||||||
<div class="topbar__meta">
|
|
||||||
<span id="userName" class="topbar__uname">用户</span>
|
|
||||||
<span id="userLevel" class="topbar__ubadge">会员</span>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<button class="topbar__btn topbar__btn--logout" onclick="logout()">
|
|
||||||
退出登录
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</div>
|
||||||
|
|
||||||
<!-- Main Content -->
|
<div class="modal" id="wechatModal">
|
||||||
<main class="page-main">
|
<div class="modal-content">
|
||||||
<!-- Hero with QR -->
|
<div class="modal-content-box">
|
||||||
<div class="download-hero">
|
<div class="modal-content-img-box">
|
||||||
<div class="hero-text">
|
<img src="../public/img/jt.png" alt="" class="modal-content-img" />
|
||||||
<h1>下载彩先知<span>APP</span></h1>
|
|
||||||
<p>随时随地查看预测分析,不错过任何精彩推荐</p>
|
|
||||||
<p>扫码下载,畅享移动端体验</p>
|
|
||||||
</div>
|
|
||||||
<div class="hero-qr">
|
|
||||||
<div class="hero-qr-box">
|
|
||||||
<img id="downloadQrImg" src="" alt="下载二维码" />
|
|
||||||
</div>
|
</div>
|
||||||
<div class="hero-qr-label">扫描二维码下载APP</div>
|
<div class="modal-content-text">
|
||||||
</div>
|
请点击右上角菜单,选择在浏览器打开
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Download Buttons -->
|
|
||||||
<div class="download-cards">
|
|
||||||
<div class="dl-card">
|
|
||||||
<div class="dl-card-icon android">
|
|
||||||
<i class="layui-icon layui-icon-android"></i>
|
|
||||||
</div>
|
|
||||||
<h3>Android 下载</h3>
|
|
||||||
<p>支持 Android 5.0 及以上系统<br />安装包大小约 15MB</p>
|
|
||||||
<a href="#" class="dl-btn android-btn" id="androidBtn"
|
|
||||||
>Android 下载</a
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<div class="dl-card">
|
|
||||||
<div class="dl-card-icon ios">
|
|
||||||
<i class="layui-icon layui-icon-ios"></i>
|
|
||||||
</div>
|
|
||||||
<h3>iOS 下载</h3>
|
|
||||||
<p>支持 iOS 12.0 及以上系统<br />App Store 搜索"彩先知"</p>
|
|
||||||
<a href="#" class="dl-btn ios-btn" id="iosBtn">iOS 下载</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Features -->
|
|
||||||
<div class="features-section">
|
|
||||||
<div class="features-title">APP特色功能</div>
|
|
||||||
<div class="features-grid">
|
|
||||||
<div class="feature-item">
|
|
||||||
<div class="feature-icon">
|
|
||||||
<i class="layui-icon layui-icon-notice"></i>
|
|
||||||
</div>
|
|
||||||
<div class="feature-name">实时推送</div>
|
|
||||||
<div class="feature-desc">开奖结果即时通知</div>
|
|
||||||
</div>
|
|
||||||
<div class="feature-item">
|
|
||||||
<div class="feature-icon">
|
|
||||||
<i class="layui-icon layui-icon-chart"></i>
|
|
||||||
</div>
|
|
||||||
<div class="feature-name">走势分析</div>
|
|
||||||
<div class="feature-desc">专业走势图表工具</div>
|
|
||||||
</div>
|
|
||||||
<div class="feature-item">
|
|
||||||
<div class="feature-icon">
|
|
||||||
<i class="layui-icon layui-icon-star"></i>
|
|
||||||
</div>
|
|
||||||
<div class="feature-name">专家预测</div>
|
|
||||||
<div class="feature-desc">权威专家精准推荐</div>
|
|
||||||
</div>
|
|
||||||
<div class="feature-item">
|
|
||||||
<div class="feature-icon">
|
|
||||||
<i class="layui-icon layui-icon-group"></i>
|
|
||||||
</div>
|
|
||||||
<div class="feature-name">社区交流</div>
|
|
||||||
<div class="feature-desc">彩民互动交流平台</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</div>
|
||||||
|
|
||||||
<!-- Footer -->
|
|
||||||
<footer class="site-footer">
|
|
||||||
<div class="site-footer__inner">
|
|
||||||
<img
|
|
||||||
src="../images/home-logo.png"
|
|
||||||
alt="彩先知"
|
|
||||||
class="site-footer__logo"
|
|
||||||
/>
|
|
||||||
<p id="copyright-info">彩先知以开奖数据、免费文章、资讯推荐为核心</p>
|
|
||||||
<div class="site-footer__meta">
|
|
||||||
<a
|
|
||||||
id="beian"
|
|
||||||
href="https://beian.miit.gov.cn/"
|
|
||||||
target="_blank"
|
|
||||||
style="font-size: 12px; color: rgba(255, 255, 255, 0.5)"
|
|
||||||
>工信部备案号</a
|
|
||||||
>
|
|
||||||
<span id="additional-info">本站仅供数据分析参考</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
<button
|
|
||||||
class="gotop"
|
|
||||||
id="backTop"
|
|
||||||
type="button"
|
|
||||||
onclick="window.scrollTo({ top: 0, behavior: 'smooth' })"
|
|
||||||
>
|
|
||||||
↑
|
|
||||||
</button>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
layui.use(["layer", "jquery"], function () {
|
layui.use(["jquery"], function () {
|
||||||
var layer = layui.layer;
|
|
||||||
var $ = layui.$;
|
var $ = layui.$;
|
||||||
|
|
||||||
// Load page config
|
|
||||||
CommonUtil.loadPageConfig({ ads: false, links: false });
|
|
||||||
|
|
||||||
// Check login state for topbar
|
|
||||||
checkLogin();
|
|
||||||
renderNav();
|
|
||||||
|
|
||||||
function checkLogin() {
|
|
||||||
var token = CommonUtil.getToken();
|
|
||||||
if (token) {
|
|
||||||
$("#notLoggedInBox").hide();
|
|
||||||
$("#loggedInBox").css("display", "flex");
|
|
||||||
CommonUtil.getCurrentUserDetail(
|
|
||||||
function (data) {
|
|
||||||
if (data) {
|
|
||||||
$("#userName").text(data.nickName || "用户");
|
|
||||||
$("#userLevel").text(data.isExpert === "1" ? "专家" : "会员");
|
|
||||||
if (data.avatar) {
|
|
||||||
$("#userAvatar").attr("src", data.avatar);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
function () {
|
|
||||||
$("#notLoggedInBox").show();
|
|
||||||
$("#loggedInBox").hide();
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function renderNav() {
|
|
||||||
ApiClient.post("/api/web/menu/getFormatList", {}).then(
|
|
||||||
function (res) {
|
|
||||||
if (res.code !== 0 || !res.data) return;
|
|
||||||
var $nav = $("#navLotteryItems");
|
|
||||||
$nav.find(".topbar__nav-link").not(":first").remove();
|
|
||||||
$.each(res.data, function (i, item) {
|
|
||||||
$nav.append(
|
|
||||||
'<a href="cai.html?id=' +
|
|
||||||
item.suoxie +
|
|
||||||
'" class="topbar__nav-link">' +
|
|
||||||
item.name +
|
|
||||||
"</a>",
|
|
||||||
);
|
|
||||||
});
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
$(window).on("scroll", function () {
|
|
||||||
$(window).scrollTop() > 320
|
|
||||||
? $("#backTop").addClass("is-visible")
|
|
||||||
: $("#backTop").removeClass("is-visible");
|
|
||||||
});
|
|
||||||
var downloadUrl = window.location.origin;
|
|
||||||
CommonUtil.generateQRCode(downloadUrl, "downloadQrImg", {
|
|
||||||
width: 180,
|
|
||||||
height: 180,
|
|
||||||
colorDark: "#102b6a",
|
|
||||||
colorLight: "#ffffff",
|
|
||||||
});
|
|
||||||
|
|
||||||
var DEFAULT_DOWNLOAD_INFO = {
|
var DEFAULT_DOWNLOAD_INFO = {
|
||||||
appName: "彩先知",
|
appName: "彩先知",
|
||||||
version: "1.0.0",
|
version: "1.0.0",
|
||||||
intro: "随时随地查看预测分析,不错过任何精彩推荐",
|
intro:
|
||||||
downloadUrl: downloadUrl,
|
"彩先知为您提供开奖数据、预测分析和文章资讯,随时查看移动端内容。",
|
||||||
|
downloadUrl: window.location.origin || "/",
|
||||||
};
|
};
|
||||||
|
var DOWNLOAD_INFO_ENDPOINT = "/api/web/app/getDownloadInfo";
|
||||||
|
|
||||||
|
var $targetLink = $("#targetLink");
|
||||||
|
var $wechatModal = $("#wechatModal");
|
||||||
|
var $appName = $("#appName");
|
||||||
|
var $appVersion = $("#appVersion");
|
||||||
|
var $appIntro = $("#appIntro");
|
||||||
|
|
||||||
|
function isWeChatBrowser() {
|
||||||
|
var ua = navigator.userAgent.toLowerCase();
|
||||||
|
return ua.indexOf("micromessenger") !== -1;
|
||||||
|
}
|
||||||
|
|
||||||
function normalizeDownloadInfo(response) {
|
function normalizeDownloadInfo(response) {
|
||||||
var data = response && (response.data || response.result || response);
|
var data = response && (response.data || response.result || response);
|
||||||
if (!data || typeof data !== "object") return DEFAULT_DOWNLOAD_INFO;
|
if (!data || typeof data !== "object") return DEFAULT_DOWNLOAD_INFO;
|
||||||
return {
|
return {
|
||||||
appName: data.appName || data.name || DEFAULT_DOWNLOAD_INFO.appName,
|
appName: data.appName || data.name || DEFAULT_DOWNLOAD_INFO.appName,
|
||||||
version: data.version || data.versionName || DEFAULT_DOWNLOAD_INFO.version,
|
version:
|
||||||
|
data.version || data.versionName || DEFAULT_DOWNLOAD_INFO.version,
|
||||||
intro:
|
intro:
|
||||||
data.intro ||
|
data.intro ||
|
||||||
data.description ||
|
data.description ||
|
||||||
@@ -252,73 +104,52 @@
|
|||||||
data.androidUrl ||
|
data.androidUrl ||
|
||||||
data.url ||
|
data.url ||
|
||||||
DEFAULT_DOWNLOAD_INFO.downloadUrl,
|
DEFAULT_DOWNLOAD_INFO.downloadUrl,
|
||||||
iosUrl: data.iosUrl || data.iphoneUrl || data.appStoreUrl || "",
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyDownloadInfo(info) {
|
function applyDownloadInfo(info) {
|
||||||
var nextInfo = $.extend({}, DEFAULT_DOWNLOAD_INFO, info || {});
|
var nextInfo = Object.assign({}, DEFAULT_DOWNLOAD_INFO, info || {});
|
||||||
if (nextInfo.appName) {
|
$appName.text(nextInfo.appName);
|
||||||
$(".hero-text h1").html("下载" + CommonUtil.escapeHtml(nextInfo.appName) + "<span>APP</span>");
|
$appVersion.text("版本: " + nextInfo.version);
|
||||||
}
|
$appIntro.text(nextInfo.intro);
|
||||||
if (nextInfo.intro) {
|
$targetLink.attr("href", nextInfo.downloadUrl);
|
||||||
$(".hero-text p").first().text(nextInfo.intro);
|
|
||||||
}
|
|
||||||
if (nextInfo.downloadUrl) {
|
|
||||||
$("#androidBtn").attr("href", nextInfo.downloadUrl);
|
|
||||||
CommonUtil.generateQRCode(nextInfo.downloadUrl, "downloadQrImg", {
|
|
||||||
width: 180,
|
|
||||||
height: 180,
|
|
||||||
colorDark: "#102b6a",
|
|
||||||
colorLight: "#ffffff",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
if (nextInfo.iosUrl) $("#iosBtn").attr("href", nextInfo.iosUrl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadDownloadInfo() {
|
function loadDownloadInfo() {
|
||||||
return ApiClient.post(ApiClient.API.appDownloadInfo, {}, { publicRequest: true })
|
var config = window.CURRENT_CONFIG || {};
|
||||||
.then(function (response) {
|
var baseUrl = config.API_BASE_URL || "";
|
||||||
if (ApiClient.isSuccess(response) || response.data || response.result) {
|
var tenantId = config.TENANT_ID || "936208";
|
||||||
applyDownloadInfo(normalizeDownloadInfo(response));
|
if (!baseUrl || !window.fetch) return;
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(function () {});
|
|
||||||
}
|
|
||||||
|
|
||||||
// Load download links from page config
|
fetch(baseUrl.replace(/\/$/, "") + DOWNLOAD_INFO_ENDPOINT, {
|
||||||
loadDownloadInfo();
|
method: "POST",
|
||||||
ApiClient.post("/api/web/index", {})
|
headers: {
|
||||||
.then(function (result) {
|
"Content-Type": "application/json",
|
||||||
if (result.data && result.data.webConfigs) {
|
tenantId: tenantId,
|
||||||
var configs = result.data.webConfigs;
|
},
|
||||||
configs.forEach(function (item) {
|
body: "{}",
|
||||||
if (item.type === "android_download_url") {
|
|
||||||
$("#androidBtn").attr("href", item.content);
|
|
||||||
} else if (item.type === "ios_download_url") {
|
|
||||||
$("#iosBtn").attr("href", item.content);
|
|
||||||
} else if (item.type === "app_download_url") {
|
|
||||||
CommonUtil.generateQRCode(item.content, "downloadQrImg", {
|
|
||||||
width: 180,
|
|
||||||
height: 180,
|
|
||||||
colorDark: "#102b6a",
|
|
||||||
colorLight: "#ffffff",
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.catch(function () {});
|
.then(function (response) {
|
||||||
|
if (!response.ok) throw new Error("HTTP " + response.status);
|
||||||
// Default fallback - generate QR for current origin
|
return response.json();
|
||||||
if (!$("#downloadQrImg").attr("src")) {
|
})
|
||||||
CommonUtil.generateQRCode(window.location.origin, "downloadQrImg", {
|
.then(function (response) {
|
||||||
width: 180,
|
applyDownloadInfo(normalizeDownloadInfo(response));
|
||||||
height: 180,
|
})
|
||||||
colorDark: "#102b6a",
|
.catch(function (error) {
|
||||||
colorLight: "#ffffff",
|
console.warn("加载APP下载配置失败,使用默认下载地址", error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
applyDownloadInfo(DEFAULT_DOWNLOAD_INFO);
|
||||||
|
loadDownloadInfo();
|
||||||
|
|
||||||
|
$targetLink.on("click", function (e) {
|
||||||
|
if (isWeChatBrowser()) {
|
||||||
|
e.preventDefault();
|
||||||
|
$wechatModal.css("display", "flex");
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
+126
-531
@@ -1,584 +1,179 @@
|
|||||||
/* ============================================================
|
body {
|
||||||
appdown.css - App download page (appdown.html)
|
font-family:
|
||||||
Uses CSS variables from public.css
|
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
|
||||||
============================================================ */
|
sans-serif;
|
||||||
|
min-height: 100vh;
|
||||||
|
margin: 0;
|
||||||
|
padding: 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: #f7f8fa;
|
||||||
|
}
|
||||||
|
|
||||||
/* ============================
|
.app-download-container {
|
||||||
DOWNLOAD HERO - Main banner
|
max-width: 400px;
|
||||||
============================ */
|
margin: 20px auto;
|
||||||
.download-hero {
|
padding: 30px 20px 100px;
|
||||||
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--purple) 100%);
|
background: #ffffff;
|
||||||
padding: 60px 40px;
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
|
||||||
border-radius: 20px;
|
border-radius: 8px;
|
||||||
margin-bottom: 32px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
|
||||||
gap: 40px;
|
|
||||||
color: var(--white);
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-hero::before {
|
.app-icon-container {
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: -120px;
|
|
||||||
right: -100px;
|
|
||||||
width: 350px;
|
|
||||||
height: 350px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: rgba(253, 185, 51, 0.08);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-hero::after {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
bottom: -80px;
|
|
||||||
left: -60px;
|
|
||||||
width: 240px;
|
|
||||||
height: 240px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: rgba(255, 255, 255, 0.04);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================
|
|
||||||
HERO CONTENT - Text & buttons
|
|
||||||
============================ */
|
|
||||||
.download-hero-content {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
flex: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-hero-title {
|
|
||||||
font-size: 36px;
|
|
||||||
font-weight: 800;
|
|
||||||
line-height: 1.3;
|
|
||||||
margin: 0 0 12px;
|
|
||||||
color: var(--white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-hero-title span {
|
|
||||||
color: var(--gold);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-hero-desc {
|
|
||||||
font-size: 16px;
|
|
||||||
color: rgba(255, 255, 255, 0.75);
|
|
||||||
line-height: 1.8;
|
|
||||||
margin: 0 0 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-hero-btns {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 16px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 8px;
|
|
||||||
padding: 14px 32px;
|
|
||||||
border-radius: 28px;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 700;
|
|
||||||
cursor: pointer;
|
|
||||||
border: none;
|
|
||||||
transition: all 0.3s;
|
|
||||||
text-decoration: none;
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn::before {
|
|
||||||
content: '';
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: -100%;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
|
|
||||||
transition: left 0.5s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn:hover::before {
|
|
||||||
left: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn i,
|
|
||||||
.download-btn .btn-icon {
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn:hover {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn:active {
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn-ios {
|
|
||||||
background: var(--white);
|
|
||||||
color: var(--primary);
|
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn-ios:hover {
|
|
||||||
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
|
|
||||||
background: var(--white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn-android {
|
|
||||||
background: linear-gradient(135deg, var(--green), #1e8449);
|
|
||||||
color: var(--white);
|
|
||||||
box-shadow: 0 4px 16px rgba(39, 174, 96, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-btn-android:hover {
|
|
||||||
box-shadow: 0 6px 24px rgba(39, 174, 96, 0.4);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================
|
|
||||||
PHONE MOCKUP
|
|
||||||
============================ */
|
|
||||||
.download-phone-mockup {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
flex-shrink: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-phone-mockup .phone-frame {
|
.app-icon {
|
||||||
width: 260px;
|
width: 210px;
|
||||||
height: 520px;
|
max-width: 80%;
|
||||||
background: rgba(255, 255, 255, 0.1);
|
max-height: 80px;
|
||||||
border-radius: 36px;
|
|
||||||
border: 3px solid rgba(255, 255, 255, 0.2);
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
position: relative;
|
|
||||||
backdrop-filter: blur(8px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-phone-mockup .phone-screen {
|
|
||||||
width: 230px;
|
|
||||||
height: 490px;
|
|
||||||
background: rgba(255, 255, 255, 0.08);
|
|
||||||
border-radius: 28px;
|
|
||||||
overflow: hidden;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-phone-mockup .phone-screen img {
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-phone-mockup .phone-notch {
|
.app-basic-info {
|
||||||
position: absolute;
|
|
||||||
top: 12px;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%);
|
|
||||||
width: 80px;
|
|
||||||
height: 6px;
|
|
||||||
background: rgba(255, 255, 255, 0.3);
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* QR Code in hero */
|
|
||||||
.download-hero .hero-qr {
|
|
||||||
position: relative;
|
|
||||||
z-index: 1;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-qr-box {
|
|
||||||
background: var(--white);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 16px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin-bottom: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hero-qr-box img {
|
.app-name {
|
||||||
width: 180px;
|
|
||||||
height: 180px;
|
|
||||||
display: block;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hero-qr-label {
|
|
||||||
font-size: 13px;
|
|
||||||
color: var(--primary);
|
|
||||||
font-weight: 600;
|
|
||||||
margin-top: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================
|
|
||||||
DOWNLOAD FEATURES
|
|
||||||
============================ */
|
|
||||||
.download-features {
|
|
||||||
background: var(--white);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 40px;
|
|
||||||
box-shadow: var(--shadow-sm);
|
|
||||||
margin-bottom: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-features .features-title {
|
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
color: var(--primary);
|
color: #333333;
|
||||||
text-align: center;
|
margin: 0 0 8px;
|
||||||
margin: 0 0 32px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.feature-item {
|
.app-version {
|
||||||
text-align: center;
|
|
||||||
padding: 20px;
|
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
transition: all 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.feature-item:hover {
|
|
||||||
background: var(--bg-light);
|
|
||||||
transform: translateY(-4px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.feature-icon {
|
|
||||||
width: 56px;
|
|
||||||
height: 56px;
|
|
||||||
border-radius: 14px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
margin: 0 auto 12px;
|
|
||||||
font-size: 26px;
|
|
||||||
color: var(--white);
|
|
||||||
background: linear-gradient(135deg, var(--primary), var(--primary-light));
|
|
||||||
}
|
|
||||||
|
|
||||||
.feature-title {
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: var(--primary);
|
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.feature-desc {
|
|
||||||
font-size: 13px;
|
|
||||||
color: var(--text-muted);
|
|
||||||
line-height: 1.6;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Features grid layout */
|
|
||||||
.features-grid {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(4, 1fr);
|
|
||||||
gap: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================
|
|
||||||
DOWNLOAD CARDS
|
|
||||||
============================ */
|
|
||||||
.download-cards {
|
|
||||||
display: grid;
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
gap: 24px;
|
|
||||||
margin-bottom: 32px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card {
|
|
||||||
background: var(--white);
|
|
||||||
border-radius: 16px;
|
|
||||||
padding: 32px;
|
|
||||||
text-align: center;
|
|
||||||
box-shadow: var(--shadow-sm);
|
|
||||||
transition: transform 0.3s, box-shadow 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card:hover {
|
|
||||||
transform: translateY(-4px);
|
|
||||||
box-shadow: var(--shadow-md);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card-icon {
|
|
||||||
width: 64px;
|
|
||||||
height: 64px;
|
|
||||||
border-radius: 16px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
font-size: 32px;
|
|
||||||
margin: 0 auto 16px;
|
|
||||||
color: var(--white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card-icon.android {
|
|
||||||
background: linear-gradient(135deg, #3ddc84, #2fa866);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card-icon.ios {
|
|
||||||
background: linear-gradient(135deg, #007aff, #005ecb);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card-title {
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: var(--primary);
|
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card-desc {
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: var(--text-muted);
|
color: #666666;
|
||||||
margin-bottom: 20px;
|
margin: 0;
|
||||||
line-height: 1.5;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Card download buttons */
|
.divider {
|
||||||
.dl-btn {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 12px 40px;
|
|
||||||
border-radius: 24px;
|
|
||||||
font-size: 16px;
|
|
||||||
font-weight: 700;
|
|
||||||
cursor: pointer;
|
|
||||||
border: none;
|
|
||||||
transition: all 0.3s;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dl-btn.android-btn {
|
|
||||||
background: linear-gradient(135deg, #3ddc84, #2fa866);
|
|
||||||
color: var(--white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.dl-btn.android-btn:hover {
|
|
||||||
box-shadow: 0 4px 16px rgba(61, 220, 132, 0.4);
|
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
|
||||||
|
|
||||||
.dl-btn.ios-btn {
|
|
||||||
background: linear-gradient(135deg, #007aff, #005ecb);
|
|
||||||
color: var(--white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.dl-btn.ios-btn:hover {
|
|
||||||
box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
|
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================
|
|
||||||
PAGE HEADER / NAV (shared)
|
|
||||||
============================ */
|
|
||||||
.page-header {
|
|
||||||
width: 1400px;
|
|
||||||
margin: 0 auto;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-between;
|
|
||||||
padding: 16px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .logo-wrap {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .logo-wrap img {
|
|
||||||
height: 44px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .logo-text {
|
|
||||||
font-size: 26px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .logo-text span {
|
|
||||||
color: var(--orange);
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .header-right {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .header-right a {
|
|
||||||
font-size: 14px;
|
|
||||||
color: var(--primary);
|
|
||||||
font-weight: 500;
|
|
||||||
transition: color 0.2s;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .header-right a:hover {
|
|
||||||
color: var(--orange);
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-nav {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: var(--primary);
|
height: 1px;
|
||||||
display: flex;
|
background: #eeeeee;
|
||||||
justify-content: center;
|
margin: 16px auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-nav-inner {
|
.app-intro {
|
||||||
width: 1400px;
|
margin-bottom: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #333333;
|
||||||
|
margin: 0 0 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.intro-text {
|
||||||
|
font-size: 14px;
|
||||||
|
color: #666666;
|
||||||
|
line-height: 1.5;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-section {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-btn-wrap {
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: none;
|
||||||
|
margin-top: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.download-btn {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
width: 170px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
background: rgb(0, 164, 250);
|
||||||
|
color: #ffffff;
|
||||||
.page-nav-inner a {
|
border: none;
|
||||||
width: 140px;
|
border-radius: 7px;
|
||||||
display: flex;
|
font-size: 18px;
|
||||||
font-size: 16px;
|
|
||||||
justify-content: center;
|
|
||||||
line-height: 50px;
|
|
||||||
text-align: center;
|
|
||||||
color: var(--white);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background 0.3s;
|
transition: all 0.3s ease;
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-nav-inner a:hover {
|
.download-btn:hover {
|
||||||
background: rgba(253, 185, 51, 0.2);
|
background: rgb(0, 164, 250);
|
||||||
|
transform: translateY(-2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-nav-inner a.active {
|
.download-icon {
|
||||||
background: rgba(253, 185, 51, 0.3);
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
margin-right: 8px;
|
||||||
|
fill: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-main {
|
.btn-text {
|
||||||
width: 1400px;
|
margin: 0;
|
||||||
margin: 20px auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ============================
|
.modal {
|
||||||
RESPONSIVE STYLES
|
display: none;
|
||||||
============================ */
|
position: fixed;
|
||||||
@media (max-width: 1024px) {
|
top: 0;
|
||||||
.features-grid {
|
left: 0;
|
||||||
grid-template-columns: repeat(2, 1fr);
|
width: 100%;
|
||||||
}
|
height: 100%;
|
||||||
|
background: rgba(0, 0, 0, 0.7);
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
.modal-content {
|
||||||
.page-header,
|
width: 100%;
|
||||||
.page-nav-inner,
|
display: flex;
|
||||||
.page-main {
|
justify-content: flex-end;
|
||||||
width: 100%;
|
}
|
||||||
padding: 0 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-hero {
|
.modal-content-box {
|
||||||
flex-direction: column;
|
width: 100%;
|
||||||
text-align: center;
|
display: flex;
|
||||||
padding: 40px 24px;
|
align-items: flex-end;
|
||||||
}
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
.download-hero-title {
|
.modal-content-img-box {
|
||||||
font-size: 26px;
|
margin-right: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-hero-desc {
|
.modal-content-img {
|
||||||
font-size: 14px;
|
width: 178px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-hero-btns {
|
.modal-content-text {
|
||||||
justify-content: center;
|
margin-right: 68px;
|
||||||
}
|
margin-top: 7px;
|
||||||
|
font-size: 14px;
|
||||||
.download-phone-mockup .phone-frame {
|
color: #ffffff;
|
||||||
width: 200px;
|
|
||||||
height: 400px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-phone-mockup .phone-screen {
|
|
||||||
width: 174px;
|
|
||||||
height: 372px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-cards {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
}
|
|
||||||
|
|
||||||
.features-grid {
|
|
||||||
grid-template-columns: repeat(2, 1fr);
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-features {
|
|
||||||
padding: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-nav-inner a {
|
|
||||||
width: auto;
|
|
||||||
padding: 0 14px;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
.download-hero {
|
body {
|
||||||
padding: 28px 16px;
|
padding: 12px;
|
||||||
border-radius: var(--radius-lg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-hero-title {
|
.app-download-container {
|
||||||
|
margin: 12px auto;
|
||||||
|
padding: 26px 18px 88px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-title {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.download-hero-btns {
|
.modal-content-text {
|
||||||
flex-direction: column;
|
max-width: 220px;
|
||||||
width: 100%;
|
margin-right: 28px;
|
||||||
}
|
text-align: right;
|
||||||
|
line-height: 1.5;
|
||||||
.download-btn {
|
|
||||||
width: 100%;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-phone-mockup {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-cards {
|
|
||||||
gap: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-card {
|
|
||||||
padding: 24px 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.features-grid {
|
|
||||||
grid-template-columns: 1fr;
|
|
||||||
gap: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.download-features {
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-header .logo-text {
|
|
||||||
font-size: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-nav-inner a {
|
|
||||||
font-size: 12px;
|
|
||||||
padding: 0 8px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user