255 lines
13 KiB
HTML
255 lines
13 KiB
HTML
<!DOCTYPE html><html lang="zh-CN"><head>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
|
|
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
|
|
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Be+Vietnam+Pro:wght@400;500&family=Inter:wght@400;500&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap" rel="stylesheet">
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"subtle-gray": "#999999",
|
|
"outline-variant": "#e2bebc",
|
|
"on-error": "#ffffff",
|
|
"primary-container": "#a61d24",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"surface-container-high": "#e9e8e6",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"error-container": "#ffdad6",
|
|
"primary": "#820012",
|
|
"on-primary-fixed": "#410004",
|
|
"on-background": "#1a1c1b",
|
|
"surface-container": "#efeeec",
|
|
"error": "#ba1a1a",
|
|
"surface-tint": "#b3272c",
|
|
"secondary-container": "#fed65b",
|
|
"heritage-red": "#A61D24",
|
|
"inverse-primary": "#ffb3ae",
|
|
"surface-variant": "#e3e2e0",
|
|
"on-secondary-fixed": "#241a00",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"on-tertiary": "#ffffff",
|
|
"on-error-container": "#93000a",
|
|
"surface-bright": "#faf9f7",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"surface-container-lowest": "#ffffff",
|
|
"aged-amber": "#FFBF00",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"on-secondary": "#ffffff",
|
|
"secondary-fixed": "#ffe088",
|
|
"status-blue": "#2A6EBB",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"success-green": "#2D6A4F",
|
|
"secondary": "#735c00",
|
|
"on-secondary-container": "#745c00",
|
|
"ink-black": "#1A1A1A",
|
|
"on-primary": "#ffffff",
|
|
"tertiary-container": "#4e5852",
|
|
"surface": "#faf9f7",
|
|
"background": "#faf9f7",
|
|
"on-surface": "#1a1c1b",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"tertiary": "#37413b",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"outline": "#8d706e",
|
|
"surface-dim": "#dadad8",
|
|
"on-primary-container": "#ffb9b4",
|
|
"on-surface-variant": "#5a413f",
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"inverse-surface": "#2f3130",
|
|
"surface-container-low": "#f4f3f1",
|
|
"primary-fixed": "#ffdad7"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"stack-md": "16px",
|
|
"stack-lg": "32px",
|
|
"base": "8px",
|
|
"margin-page": "20px",
|
|
"stack-sm": "4px",
|
|
"gutter-card": "12px"
|
|
},
|
|
"fontFamily": {
|
|
"headline-xl": ["Manrope"],
|
|
"headline-md": ["Manrope"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"coupon-amount": ["Manrope"],
|
|
"label-md": ["Inter"],
|
|
"headline-lg": ["Manrope"],
|
|
"body-lg": ["Be Vietnam Pro"]
|
|
},
|
|
"fontSize": {
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
body {
|
|
background-color: #faf9f7;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
.login-card {
|
|
box-shadow: 0px 4px 20px rgba(166, 29, 36, 0.05);
|
|
}
|
|
.divider-line {
|
|
height: 1px;
|
|
background: linear-gradient(90deg, transparent 0%, #e3e2e0 50%, transparent 100%);
|
|
}
|
|
input:focus {
|
|
outline: none;
|
|
border-color: #A61D24;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="min-h-screen flex flex-col font-body-md text-on-surface">
|
|
<!-- Header Section -->
|
|
<header class="pt-16 pb-10 flex flex-col items-center px-margin-page animate-fade-in">
|
|
<div class="w-24 h-24 mb-8 relative">
|
|
<img alt="杜康好客 Logo" class="w-full h-full object-contain rounded-xl shadow-sm" src="https://lh3.googleusercontent.com/aida-public/AB6AXuC49aR5uZokcT3T2jQc1raT2-A2g3CXybLEiG4oMyc--lK1Q5QI3-75nAX1NPtFs7Duq8g5zOLNUu5rGzjrJOwDXzsSn9PcaCm2fOoWZTIetnVCGL_BqxbatpFURpXXBslwAwpYdOA--PFqk5dnpfS3bRK-s_16KxorSVLAPDkAU1o8NB7Yio0QZiRnVnzgo_mlwcw7uoErWqSQe5f0NYV0ew230GUsvTTf-UKD6f-PbQrO2sQiSS1TXNCM16yJ7sxo83tUEm49pN4">
|
|
<div class="absolute -bottom-2 -right-2 bg-heritage-red text-white text-[10px] px-2 py-0.5 rounded-full font-bold">官方</div>
|
|
</div>
|
|
<div class="text-center space-y-2">
|
|
<h1 class="font-headline-lg-mobile text-headline-lg-mobile text-ink-black tracking-tight">欢迎来到杜康好客</h1>
|
|
<p class="font-body-lg text-body-lg text-on-surface-variant opacity-80">买美酒,享好礼</p>
|
|
</div>
|
|
</header>
|
|
<!-- Main Login Content -->
|
|
<main class="flex-grow px-margin-page pb-12">
|
|
<div class="max-w-md mx-auto space-y-8">
|
|
<!-- WeChat One-Click Login -->
|
|
|
|
<!-- Divider -->
|
|
|
|
<!-- SMS Login Form -->
|
|
<div class="bg-surface-container-lowest rounded-2xl p-6 login-card space-y-6">
|
|
<h3 class="text-on-surface font-headline-md text-headline-md mb-2">手机验证码登录</h3>
|
|
<div class="space-y-4">
|
|
<!-- Phone Input -->
|
|
<div class="relative flex items-center border-b border-surface-variant pb-2 focus-within:border-heritage-red transition-colors">
|
|
<span class="text-body-lg font-medium text-on-surface mr-3">+86</span>
|
|
<input class="flex-grow bg-transparent border-none p-0 text-body-lg placeholder:text-subtle-gray focus:ring-0" placeholder="请输入手机号" type="tel">
|
|
</div>
|
|
<!-- OTP Input -->
|
|
<div class="relative flex items-center border-b border-surface-variant pb-2 focus-within:border-heritage-red transition-colors">
|
|
<input class="flex-grow bg-transparent border-none p-0 text-body-lg placeholder:text-subtle-gray focus:ring-0" placeholder="请输入验证码" type="number">
|
|
<button class="text-heritage-red font-medium text-body-md hover:opacity-80 transition-opacity" id="get-code">
|
|
获取验证码
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<button class="w-full h-[48px] border border-heritage-red/20 text-heritage-red rounded-xl font-headline-md text-headline-md hover:bg-heritage-red/5 active:scale-[0.98] transition-all">
|
|
登录
|
|
</button>
|
|
</div><button class="w-full h-[56px] bg-heritage-red text-white rounded-xl flex items-center justify-center gap-3 active:scale-[0.98] transition-transform duration-150 shadow-lg shadow-heritage-red/10 mt-8">
|
|
<span class="material-symbols-outlined !text-[24px]" style="font-variation-settings: 'FILL' 1;">chat</span>
|
|
<span class="font-headline-md text-headline-md">微信一键授权</span>
|
|
</button>
|
|
</div>
|
|
</main>
|
|
<!-- Footer & Agreements -->
|
|
<footer class="px-margin-page pb-safe-offset-8 mt-auto">
|
|
<div class="max-w-md mx-auto flex items-start gap-2 py-6">
|
|
<div class="relative flex items-center pt-0.5">
|
|
<input class="w-4 h-4 rounded border-outline-variant text-heritage-red focus:ring-heritage-red focus:ring-offset-0 transition-all cursor-pointer" id="agreement" type="checkbox">
|
|
</div>
|
|
<label class="text-label-md font-label-md text-on-surface-variant leading-relaxed" for="agreement">
|
|
我已阅读并同意
|
|
<a class="text-heritage-red hover:underline" href="#">《用户协议》</a>
|
|
和
|
|
<a class="text-heritage-red hover:underline" href="#">《隐私政策》</a>
|
|
</label>
|
|
</div>
|
|
</footer>
|
|
<!-- Visual Embellishment: Subtle Heritage Texture -->
|
|
<div class="fixed inset-0 pointer-events-none opacity-[0.03] z-[-1]" style="background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png')"></div>
|
|
<script>
|
|
// Simple micro-interaction for the "Get Code" button
|
|
const getCodeBtn = document.getElementById('get-code');
|
|
let countdown = 0;
|
|
|
|
getCodeBtn.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
if (countdown > 0) return;
|
|
|
|
// Basic validation simulation
|
|
const phoneInput = document.querySelector('input[type="tel"]');
|
|
if (phoneInput.value.length < 11) {
|
|
alert('请输入正确的手机号');
|
|
return;
|
|
}
|
|
|
|
countdown = 60;
|
|
this.classList.add('text-subtle-gray');
|
|
this.classList.remove('text-heritage-red');
|
|
|
|
const timer = setInterval(() => {
|
|
if (countdown <= 0) {
|
|
clearInterval(timer);
|
|
this.innerText = '重新获取';
|
|
this.classList.remove('text-subtle-gray');
|
|
this.classList.add('text-heritage-red');
|
|
} else {
|
|
this.innerText = `${countdown}s 后重新获取`;
|
|
countdown--;
|
|
}
|
|
}, 1000);
|
|
});
|
|
|
|
// Toggle button states based on agreement
|
|
const loginBtn = document.querySelector('button.bg-heritage-red');
|
|
const secondaryLoginBtn = document.querySelector('button.border-heritage-red\\/20');
|
|
const agreementCheckbox = document.getElementById('agreement');
|
|
|
|
[loginBtn, secondaryLoginBtn].forEach(btn => {
|
|
btn.addEventListener('click', (e) => {
|
|
if (!agreementCheckbox.checked) {
|
|
e.preventDefault();
|
|
// Shake effect simulation
|
|
agreementCheckbox.parentElement.classList.add('animate-bounce');
|
|
setTimeout(() => agreementCheckbox.parentElement.classList.remove('animate-bounce'), 1000);
|
|
alert('请先勾选并同意用户协议');
|
|
} else {
|
|
// Logic for actual login redirect
|
|
console.log('Login attempt allowed');
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<style>
|
|
@keyframes fade-in {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
.animate-fade-in {
|
|
animation: fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
|
}
|
|
.pb-safe-offset-8 {
|
|
padding-bottom: calc(env(safe-area-inset-bottom) + 2rem);
|
|
}
|
|
</style>
|
|
|
|
|
|
</body></html> |