310 lines
16 KiB
HTML
310 lines
16 KiB
HTML
<!DOCTYPE html><html class="h-full" 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@600;700&family=Be+Vietnam+Pro:wght@400;500&family=Inter:wght@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">
|
|
<script id="tailwind-config">
|
|
tailwind.config = {
|
|
darkMode: "class",
|
|
theme: {
|
|
extend: {
|
|
"colors": {
|
|
"on-surface-variant": "#5a413f",
|
|
"on-secondary-fixed-variant": "#574500",
|
|
"secondary-fixed-dim": "#e9c349",
|
|
"aged-amber": "#FFBF00",
|
|
"on-background": "#1a1c1b",
|
|
"tertiary-fixed": "#dae5dd",
|
|
"status-blue": "#2A6EBB",
|
|
"background": "#faf9f7",
|
|
"on-primary-fixed": "#410004",
|
|
"on-tertiary-fixed": "#141e19",
|
|
"surface-container": "#efeeec",
|
|
"on-secondary-container": "#745c00",
|
|
"secondary-fixed": "#ffe088",
|
|
"tertiary-fixed-dim": "#bec9c2",
|
|
"inverse-primary": "#ffb3ae",
|
|
"surface": "#faf9f7",
|
|
"on-primary": "#ffffff",
|
|
"surface-tint": "#b3272c",
|
|
"primary": "#820012",
|
|
"tertiary-container": "#4e5852",
|
|
"primary-fixed": "#ffdad7",
|
|
"on-surface": "#1a1c1b",
|
|
"on-tertiary-fixed-variant": "#3f4943",
|
|
"error-container": "#ffdad6",
|
|
"outline-variant": "#e2bebc",
|
|
"primary-container": "#a61d24",
|
|
"surface-container-lowest": "#ffffff",
|
|
"on-primary-fixed-variant": "#910817",
|
|
"subtle-gray": "#999999",
|
|
"on-error-container": "#93000a",
|
|
"inverse-surface": "#2f3130",
|
|
"on-tertiary": "#ffffff",
|
|
"inverse-on-surface": "#f1f1ef",
|
|
"success-green": "#2D6A4F",
|
|
"surface-dim": "#dadad8",
|
|
"on-error": "#ffffff",
|
|
"on-tertiary-container": "#c2cdc6",
|
|
"tertiary": "#37413b",
|
|
"surface-container-highest": "#e3e2e0",
|
|
"heritage-red": "#A61D24",
|
|
"on-primary-container": "#ffb9b4",
|
|
"ink-black": "#1A1A1A",
|
|
"secondary": "#735c00",
|
|
"error": "#ba1a1a",
|
|
"secondary-container": "#fed65b",
|
|
"surface-bright": "#faf9f7",
|
|
"outline": "#8d706e",
|
|
"primary-fixed-dim": "#ffb3ae",
|
|
"surface-variant": "#e3e2e0",
|
|
"surface-container-low": "#f4f3f1",
|
|
"on-secondary-fixed": "#241a00",
|
|
"surface-container-high": "#e9e8e6",
|
|
"on-secondary": "#ffffff"
|
|
},
|
|
"borderRadius": {
|
|
"DEFAULT": "0.25rem",
|
|
"lg": "0.5rem",
|
|
"xl": "0.75rem",
|
|
"full": "9999px"
|
|
},
|
|
"spacing": {
|
|
"gutter-card": "12px",
|
|
"stack-lg": "32px",
|
|
"base": "8px",
|
|
"stack-md": "16px",
|
|
"margin-page": "20px",
|
|
"stack-sm": "4px"
|
|
},
|
|
"fontFamily": {
|
|
"headline-xl": ["Manrope"],
|
|
"headline-md": ["Manrope"],
|
|
"headline-lg-mobile": ["Manrope"],
|
|
"headline-lg": ["Manrope"],
|
|
"body-lg": ["Be Vietnam Pro"],
|
|
"body-md": ["Be Vietnam Pro"],
|
|
"coupon-amount": ["Manrope"],
|
|
"label-md": ["Inter"]
|
|
},
|
|
"fontSize": {
|
|
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
|
|
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
|
|
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
|
|
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
|
|
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
|
|
"body-md": ["14px", {"lineHeight": "20px", "fontWeight": "400"}],
|
|
"coupon-amount": ["28px", {"lineHeight": "28px", "fontWeight": "700"}],
|
|
"label-md": ["12px", {"lineHeight": "16px", "letterSpacing": "0.05em", "fontWeight": "500"}]
|
|
}
|
|
},
|
|
},
|
|
}
|
|
</script>
|
|
<style>
|
|
.material-symbols-outlined {
|
|
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
}
|
|
.coupon-notch {
|
|
position: relative;
|
|
}
|
|
.coupon-notch::before, .coupon-notch::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 50%;
|
|
width: 8px;
|
|
height: 8px;
|
|
background-color: white;
|
|
border-radius: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
.coupon-notch::before { left: -4px; }
|
|
.coupon-notch::after { right: -4px; }
|
|
|
|
.hide-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
.hide-scrollbar {
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
/* Carousel Styles */
|
|
.carousel-container {
|
|
display: flex;
|
|
overflow-x: auto;
|
|
scroll-snap-type: x mandatory;
|
|
scroll-behavior: smooth;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.carousel-item {
|
|
flex: 0 0 100%;
|
|
scroll-snap-align: start;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-background text-on-surface font-body-md h-full flex flex-col overflow-hidden">
|
|
<!-- Top Navigation Anchor -->
|
|
<header class="bg-surface dark:bg-on-background shadow-[0px_4px_20px_rgba(166,29,36,0.05)] w-full flex-none z-50 flex items-center justify-between px-margin-page h-16">
|
|
<button class="hover:opacity-80 transition-opacity">
|
|
<span class="material-symbols-outlined text-heritage-red">menu</span>
|
|
</button>
|
|
<h1 class="font-headline-lg-mobile text-headline-lg-mobile font-bold text-heritage-red">杜康好客</h1>
|
|
<div class="flex items-center gap-4">
|
|
<div class="flex items-center gap-1 text-heritage-red">
|
|
<span class="material-symbols-outlined text-[20px]">location_on</span>
|
|
<span class="font-label-md">洛阳市</span>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<!-- Main Content Area - Scrollable -->
|
|
<main class="flex-1 overflow-y-auto hide-scrollbar pb-24">
|
|
<!-- Category Tabs - Sticky inside main -->
|
|
<nav class="sticky top-0 bg-background/90 backdrop-blur-md z-40 flex px-margin-page items-center justify-center gap-2 border-b border-surface-container py-2">
|
|
<div class="px-3 py-1.5 text-center font-headline-md border-b-2 border-heritage-red text-heritage-red whitespace-nowrap">清香型</div>
|
|
<div class="px-3 py-1.5 text-center font-headline-md text-subtle-gray opacity-50 cursor-not-allowed whitespace-nowrap">酱香型</div>
|
|
<div class="px-3 py-1.5 text-center font-headline-md text-subtle-gray opacity-50 cursor-not-allowed whitespace-nowrap">浓香型</div>
|
|
</nav>
|
|
<!-- Product List Vertical Scroll -->
|
|
<section class="px-margin-page mt-4 flex flex-col gap-4">
|
|
<!-- Product Card 1 -->
|
|
<div class="bg-surface-container-lowest rounded-xl overflow-hidden shadow-[0px_4px_20px_rgba(166,29,36,0.05)] flex flex-col group transition-all duration-300">
|
|
<div class="relative w-full aspect-[21/10] bg-surface-container overflow-hidden">
|
|
<div class="carousel-container h-full">
|
|
<div class="carousel-item">
|
|
<img alt="Product View 1" class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAPgomduaq2f4aEoth48mxljblAo9Gu2UTHkRGj_xoWsgTMVzKExTMy0dY8mtL4PcgyJ6COvMbYSjBOlkp_9DAfQ3FEDX_1BWDRFVHY9HEv2UliiRm5IdmbpDSWl5wWJR644KxcaVuxbEktYpHoOxwU8573Q8ke_3WDBZh8XCSdIRTg-uSEe3R5xlzDhtlxDbpQl_eYibEziT2wh5PNtbPFuOFAmbu_QQ1fzaJhnbZX2z9uTWViZjtwASsSi0ruoPCMEEdYriHhXaA">
|
|
</div>
|
|
<div class="carousel-item">
|
|
<img alt="Product View 2" class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAJAzdmaEBB3ootOMWOn1lZ9MBBvfLsNGX1t5uTxkMrPJAZVNqEYigsGAJql0gJsvvQT5fI5OAaF1jenuLdb7nQloWs-x4DrketXF9cFiBcH8J59hDHdGCdXAAMJTwFuk815QoH6qPShQIKgweoamLQdD5lwlM5JBXZBuMYDms4woEV-AyXEFXHJGZCyJYSxz7UWuOO2rvcvxuC9bOTU8gR_4SJWYY6PwKGlKDECXflYYC89bB6hrmhFchtjr1VeeO_HpLKC5zlaIM">
|
|
</div>
|
|
</div>
|
|
<!-- Carousel Indicator -->
|
|
<div class="absolute bottom-2 left-1/2 -translate-x-1/2 flex gap-1 px-2 py-1 rounded-full bg-black/20 backdrop-blur-sm pointer-events-none">
|
|
<div class="w-1 h-1 rounded-full bg-white"></div>
|
|
<div class="w-1 h-1 rounded-full bg-white/50"></div>
|
|
</div>
|
|
</div>
|
|
<div class="p-3 flex flex-col gap-1">
|
|
<div class="flex justify-between items-start">
|
|
<h3 class="font-headline-md text-on-surface line-clamp-1">杜康·白水古酿 500ml</h3>
|
|
<span class="text-heritage-red font-headline-lg">¥599</span>
|
|
</div>
|
|
<p class="text-on-surface-variant font-body-md">清香型 52度 礼盒装</p>
|
|
<div class="flex items-center justify-between mt-1">
|
|
<div class="bg-aged-amber text-on-secondary-fixed-variant px-3 py-1 rounded-sm text-label-md font-bold coupon-notch inline-flex items-center">
|
|
送 ¥200 餐券
|
|
</div>
|
|
<button class="bg-heritage-red text-white px-5 py-1.5 rounded-full font-label-md hover:opacity-90 transition-all active:scale-90">立即购买</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Product Card 2 -->
|
|
<div class="bg-surface-container-lowest rounded-xl overflow-hidden shadow-[0px_4px_20px_rgba(166,29,36,0.05)] flex flex-col group transition-all duration-300">
|
|
<div class="relative w-full aspect-[21/10] bg-surface-container overflow-hidden">
|
|
<div class="carousel-container h-full">
|
|
<div class="carousel-item">
|
|
<img alt="Product View 1" class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAJAzdmaEBB3ootOMWOn1lZ9MBBvfLsNGX1t5uTxkMrPJAZVNqEYigsGAJql0gJsvvQT5fI5OAaF1jenuLdb7nQloWs-x4DrketXF9cFiBcH8J59hDHdGCdXAAMJTwFuk815QoH6qPShQIKgweoamLQdD5lwlM5JBXZBuMYDms4woEV-AyXEFXHJGZCyJYSxz7UWuOO2rvcvxuC9bOTU8gR_4SJWYY6PwKGlKDECXflYYC89bB6hrmhFchtjr1VeeO_HpLKC5zlaIM">
|
|
</div>
|
|
<div class="carousel-item">
|
|
<img alt="Product View 2" class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAPgomduaq2f4aEoth48mxljblAo9Gu2UTHkRGj_xoWsgTMVzKExTMy0dY8mtL4PcgyJ6COvMbYSjBOlkp_9DAfQ3FEDX_1BWDRFVHY9HEv2UliiRm5IdmbpDSWl5wWJR644KxcaVuxbEktYpHoOxwU8573Q8ke_3WDBZh8XCSdIRTg-uSEe3R5xlzDhtlxDbpQl_eYibEziT2wh5PNtbPFuOFAmbu_QQ1fzaJhnbZX2z9uTWViZjtwASsSi0ruoPCMEEdYriHhXaA">
|
|
</div>
|
|
</div>
|
|
<div class="absolute bottom-2 left-1/2 -translate-x-1/2 flex gap-1 px-2 py-1 rounded-full bg-black/20 backdrop-blur-sm pointer-events-none">
|
|
<div class="w-1 h-1 rounded-full bg-white"></div>
|
|
<div class="w-1 h-1 rounded-full bg-white/50"></div>
|
|
</div>
|
|
</div>
|
|
<div class="p-3 flex flex-col gap-1">
|
|
<div class="flex justify-between items-start">
|
|
<h3 class="font-headline-md text-on-surface line-clamp-1">杜康·年份陈酿 (十年)</h3>
|
|
<span class="text-heritage-red font-headline-lg">¥880</span>
|
|
</div>
|
|
<p class="text-on-surface-variant font-body-md">清香型 42度 纯粮酿造</p>
|
|
<div class="flex items-center justify-between mt-1">
|
|
<div class="bg-aged-amber text-on-secondary-fixed-variant px-3 py-1 rounded-sm text-label-md font-bold coupon-notch inline-flex items-center">
|
|
送 ¥350 餐券
|
|
</div>
|
|
<button class="bg-heritage-red text-white px-5 py-1.5 rounded-full font-label-md hover:opacity-90 transition-all active:scale-90">立即购买</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- Product Card 3 -->
|
|
<div class="bg-surface-container-lowest rounded-xl overflow-hidden shadow-[0px_4px_20px_rgba(166,29,36,0.05)] flex flex-col group transition-all duration-300">
|
|
<div class="relative w-full aspect-[21/10] bg-surface-container overflow-hidden">
|
|
<div class="carousel-container h-full">
|
|
<div class="carousel-item">
|
|
<img alt="Product View 1" class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuBAZpYFTg1BRtTpAyLeHWa0JKFmgJ3SqBu3K58_qPpXZInSjFARlxKo8BPH5uoo3nI2s8oFVa4Pvkq1hEY1HxA59QAUQ4Dtk6WC_Ic-1sF5cGGG9KJ2ZVvK_1WgUS3aZtz7nh_RI13W7T_PymFa7N-twAoOzSNiLNcIn4Aq4vS6LTeRhS_xwGQwwNNjhVaSfIs--pP2BF512pYjioXTTH4MlAdwgYSn5mvpycs60_p_sjE1-wu2elkmPchlaNmrSPYVw8rUSPyas2Q">
|
|
</div>
|
|
<div class="carousel-item">
|
|
<img alt="Product View 2" class="w-full h-full object-cover" src="https://lh3.googleusercontent.com/aida-public/AB6AXuAJAzdmaEBB3ootOMWOn1lZ9MBBvfLsNGX1t5uTxkMrPJAZVNqEYigsGAJql0gJsvvQT5fI5OAaF1jenuLdb7nQloWs-x4DrketXF9cFiBcH8J59hDHdGCdXAAMJTwFuk815QoH6qPShQIKgweoamLQdD5lwlM5JBXZBuMYDms4woEV-AyXEFXHJGZCyJYSxz7UWuOO2rvcvxuC9bOTU8gR_4SJWYY6PwKGlKDECXflYYC89bB6hrmhFchtjr1VeeO_HpLKC5zlaIM">
|
|
</div>
|
|
</div>
|
|
<div class="absolute bottom-2 left-1/2 -translate-x-1/2 flex gap-1 px-2 py-1 rounded-full bg-black/20 backdrop-blur-sm pointer-events-none">
|
|
<div class="w-1 h-1 rounded-full bg-white"></div>
|
|
<div class="w-1 h-1 rounded-full bg-white/50"></div>
|
|
</div>
|
|
</div>
|
|
<div class="p-3 flex flex-col gap-1">
|
|
<div class="flex justify-between items-start">
|
|
<h3 class="font-headline-md text-on-surface line-clamp-1">杜康·御享1号 珍藏版</h3>
|
|
<span class="text-heritage-red font-headline-lg">¥1299</span>
|
|
</div>
|
|
<p class="text-on-surface-variant font-body-md">高端定制 限量发售</p>
|
|
<div class="flex items-center justify-between mt-1">
|
|
<div class="bg-aged-amber text-on-secondary-fixed-variant px-3 py-1 rounded-sm text-label-md font-bold coupon-notch inline-flex items-center">
|
|
送 ¥500 餐券
|
|
</div>
|
|
<button class="bg-heritage-red text-white px-5 py-1.5 rounded-full font-label-md hover:opacity-90 transition-all active:scale-90">立即购买</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
<!-- Bottom Navigation Shell (Fixed) -->
|
|
<footer class="flex-none w-full z-50 flex justify-around items-center pt-2 pb-safe px-4 bg-surface-container-lowest shadow-[0px_-4px_20px_rgba(166,29,36,0.05)] border-t border-surface-container rounded-t-xl h-20">
|
|
<a class="flex flex-col items-center justify-center text-heritage-red font-bold transition-transform active:scale-90" href="#">
|
|
<span class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1;">home</span>
|
|
<span class="font-label-md text-label-md">首页</span>
|
|
</a>
|
|
<a class="flex flex-col items-center justify-center text-on-surface-variant hover:bg-surface-variant transition-transform active:scale-90" href="#">
|
|
<span class="material-symbols-outlined">receipt_long</span>
|
|
<span class="font-label-md text-label-md">订单</span>
|
|
</a>
|
|
<a class="flex flex-col items-center justify-center text-on-surface-variant hover:bg-surface-variant transition-transform active:scale-90" href="#">
|
|
<span class="material-symbols-outlined">person</span>
|
|
<span class="font-label-md text-label-md">我的</span>
|
|
</a>
|
|
</footer>
|
|
<script>
|
|
// Micro-interaction for add to cart and navigation
|
|
document.querySelectorAll('button, a').forEach(btn => {
|
|
btn.addEventListener('touchstart', function() {
|
|
this.classList.add('scale-95');
|
|
});
|
|
btn.addEventListener('touchend', function() {
|
|
this.classList.remove('scale-95');
|
|
});
|
|
});
|
|
|
|
// Carousel Scroll Indicator Update
|
|
document.querySelectorAll('.carousel-container').forEach(carousel => {
|
|
const indicators = carousel.parentElement.querySelectorAll('.absolute div');
|
|
carousel.addEventListener('scroll', () => {
|
|
const scrollPosition = carousel.scrollLeft;
|
|
const width = carousel.offsetWidth;
|
|
const index = Math.round(scrollPosition / width);
|
|
|
|
indicators.forEach((dot, i) => {
|
|
if (i === index) {
|
|
dot.classList.add('bg-white');
|
|
dot.classList.remove('bg-white/50');
|
|
} else {
|
|
dot.classList.remove('bg-white');
|
|
dot.classList.add('bg-white/50');
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</body></html> |