Files
dukang/pages/user/36_商品详情页_335c3649/code.html
T
2026-06-30 10:33:56 +08:00

311 lines
18 KiB
HTML

<!DOCTYPE html><html lang="zh-CN" style="width: 390px; height: 1967px; overflow: hidden; position: relative;"><head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<title>杜康·白水古酿 - 杜康好客</title>
<script src="https://cdn.tailwindcss.com?plugins=forms,container-queries"></script>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&amp;family=Be+Vietnam+Pro:wght@400;500&amp;family=Inter:wght@400;500;600&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&amp;display=swap" rel="stylesheet">
<script id="tailwind-config">
tailwind.config = {
darkMode: "class",
theme: {
extend: {
"colors": {
"on-primary-fixed": "#410004",
"surface-variant": "#e3e2e0",
"inverse-primary": "#ffb3ae",
"on-secondary-fixed-variant": "#574500",
"success-green": "#2D6A4F",
"on-surface-variant": "#5a413f",
"surface": "#faf9f7",
"outline-variant": "#e2bebc",
"on-tertiary-fixed": "#141e19",
"on-background": "#1a1c1b",
"outline": "#8d706e",
"secondary-fixed-dim": "#e9c349",
"surface-container-low": "#f4f3f1",
"subtle-gray": "#999999",
"on-secondary": "#ffffff",
"heritage-red": "#A61D24",
"tertiary": "#37413b",
"on-secondary-fixed": "#241a00",
"on-tertiary": "#ffffff",
"error": "#ba1a1a",
"primary-container": "#a61d24",
"on-error": "#ffffff",
"surface-container": "#efeeec",
"status-blue": "#2A6EBB",
"on-primary-container": "#ffb9b4",
"surface-dim": "#dadad8",
"secondary": "#735c00",
"primary-fixed-dim": "#ffb3ae",
"on-primary": "#ffffff",
"aged-amber": "#FFBF00",
"surface-tint": "#b3272c",
"on-tertiary-container": "#c2cdc6",
"inverse-on-surface": "#f1f1ef",
"secondary-fixed": "#ffe088",
"tertiary-container": "#4e5852",
"surface-container-high": "#e9e8e6",
"secondary-container": "#fed65b",
"primary": "#820012",
"tertiary-fixed-dim": "#bec9c2",
"surface-bright": "#faf9f7",
"background": "#faf9f7",
"error-container": "#ffdad6",
"tertiary-fixed": "#dae5dd",
"primary-fixed": "#ffdad7",
"on-surface": "#1a1c1b",
"on-secondary-container": "#745c00",
"ink-black": "#1A1A1A",
"on-tertiary-fixed-variant": "#3f4943",
"on-error-container": "#93000a",
"on-primary-fixed-variant": "#910817",
"surface-container-lowest": "#ffffff",
"inverse-surface": "#2f3130",
"surface-container-highest": "#e3e2e0"
},
"borderRadius": {
"DEFAULT": "0.25rem",
"lg": "0.5rem",
"xl": "0.75rem",
"full": "9999px"
},
"spacing": {
"stack-sm": "4px",
"stack-md": "16px",
"base": "8px",
"margin-page": "20px",
"stack-lg": "32px",
"gutter-card": "12px"
},
"fontFamily": {
"headline-lg": ["Manrope"],
"headline-xl": ["Manrope"],
"headline-md": ["Manrope"],
"body-lg": ["Be Vietnam Pro"],
"headline-lg-mobile": ["Manrope"],
"body-md": ["Be Vietnam Pro"],
"coupon-amount": ["Manrope"],
"label-md": ["Inter"]
},
"fontSize": {
"headline-lg": ["24px", {"lineHeight": "32px", "fontWeight": "600"}],
"headline-xl": ["32px", {"lineHeight": "40px", "letterSpacing": "-0.02em", "fontWeight": "700"}],
"headline-md": ["18px", {"lineHeight": "26px", "fontWeight": "600"}],
"body-lg": ["16px", {"lineHeight": "24px", "fontWeight": "400"}],
"headline-lg-mobile": ["20px", {"lineHeight": "28px", "fontWeight": "600"}],
"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;
}
.fill-icon {
font-variation-settings: 'FILL' 1;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.glass-effect {
backdrop-filter: blur(10px);
background: rgba(255, 255, 255, 0.8);
}
.ticket-notch {
position: relative;
}
.ticket-notch::before, .ticket-notch::after {
content: '';
position: absolute;
left: -6px;
width: 12px;
height: 12px;
background: #faf9f7;
border-radius: 50%;
z-index: 10;
}
.ticket-notch::before { top: 20%; }
.ticket-notch::after { bottom: 20%; }
#carousel-container {
scroll-snap-type: x mandatory;
}
.carousel-item {
scroll-snap-align: start;
}
</style>
</head>
<body class="bg-surface font-body-md text-on-surface selection:bg-heritage-red selection:text-white">
<!-- Top AppBar -->
<header class="fixed top-0 left-0 w-full z-50 flex items-center justify-between px-margin-page h-14 transition-all duration-300 bg-transparent" id="top-app-bar">
<button class="w-10 h-10 flex items-center justify-center rounded-full glass-effect active:scale-95 transition-transform bg-white/20" onclick="history.back()">
<span class="material-symbols-outlined text-on-surface">arrow_back</span>
</button>
<div class="font-headline-md text-headline-md text-heritage-red font-bold transition-opacity duration-300 opacity-0" id="header-title">杜康·白水古酿</div>
<button class="w-10 h-10 flex items-center justify-center rounded-full glass-effect active:scale-95 transition-transform bg-white/20">
<span class="material-symbols-outlined text-on-surface">share</span>
</button>
</header>
<main class="pb-24">
<!-- Image Carousel -->
<section class="relative w-full aspect-square bg-white overflow-hidden">
<div class="flex w-full h-full overflow-x-auto hide-scrollbar" id="carousel-container">
<div class="carousel-item flex-shrink-0 w-full h-full">
<img class="w-full h-full object-cover" data-alt="A premium close-up studio photograph of a Dukang Baijiu bottle, featuring elegant Chinese calligraphy and heritage branding. The bottle is set against a warm parchment background with soft, sophisticated lighting that highlights the crystalline liquid and the intricate label design. The mood is authoritative and distinguished, reflecting a thousand-year legacy." src="https://lh3.googleusercontent.com/aida-public/AB6AXuDiJm2VWrwCv8wnC-dBgSfvlf66izs6faELgWXlyIAUpYWOKrLwfeyB0c0XT0vmDVJnfIkzbLNm_4NYASwH_ce7BotJDLCJcd3SfnxKIe7eso-c4mzzR-4LTv4y3ELhpXHfxVyu-5LVUEwuofvUuzdJELV6CK4MIcLW_9rMaOuXSADfz0mpP-MspQvhKhxJ0wpdAiBxBq8rqHNSKjx8dU7lcVc_smZGunmtkbhmnjAn4JU8nCDnvuDU5HECng82FbFM6rzdkFHoYR0">
</div>
<div class="carousel-item flex-shrink-0 w-full h-full">
<img class="w-full h-full object-cover" data-alt="A lifestyle product shot of a Dukang liquor gift box opened on a dark wood table. Inside, the bottle sits nestled in gold silk lining. Beside it is a small traditional ceramic cup. The background is softly blurred, showing a high-end Chinese dining environment with warm amber lighting. The aesthetic is minimalist with cultural depth." src="https://lh3.googleusercontent.com/aida-public/AB6AXuDzBBRn0yOqhRJ4CbTEOx1aF4fJVIhsbIZgFR9RgdB5E0xcs_RdR1khLyR0OzysGzkW_tnrZTb0avVEZ91Nd81KRItrlTjrEFvrYj0Qag45iRo5wioY8E2gK5NGhILvDpWxakuSPIGGp00nLY_5HuuLwr-0_8ZabaUFAR4C9loXIX_lgCAgRMt7An_H0AitIOBvwOfNVTMkz-P7dXQFzSUvYpFvcmvzAOIWsbipnTrgNU5H8Os37-soM-eWUCfNtJUaD_uqQ3mwJI8">
</div>
<div class="carousel-item flex-shrink-0 w-full h-full">
<img class="w-full h-full object-cover" data-alt="A macro shot detailing the texture of the Dukang liquor label, showing embossed gold foil lettering and red seal of quality. The paper has a subtle tactile texture like aged rice paper. The lighting is high-key and professional, emphasizing the premium quality and craftsmanship of the product." src="https://lh3.googleusercontent.com/aida-public/AB6AXuDSSmH1ygwminKXiiIqOymnukbKJfnhfHnmCJTbNN2BEN2yF3vPtoMYOBAsDHxuldT9xg_ZBZhjh6QJjabvhu_HFB3WcNU53q_AjsD0mVWXInongiXqjOh8R-B2QW9Jfs786j3TSi2gVE57Ad1WskJji-xytI3aFEuk873xGXgdkn6EgzoAMOsKRaWF27DE3GBa48qAARYR92aEyMU_hcte6L2lkaF9brXshSmujiA_3ACK21TLsT2DCJ1Djacvh25J0LZ8v7BYVkk">
</div>
</div>
<!-- Pagination -->
<div class="absolute bottom-4 left-0 w-full flex justify-center gap-1.5 pointer-events-none">
<div class="dot w-6 h-1 rounded-full bg-heritage-red transition-all duration-300"></div>
<div class="dot w-1.5 h-1 rounded-full bg-subtle-gray/30 transition-all duration-300"></div>
<div class="dot w-1.5 h-1 rounded-full bg-subtle-gray/30 transition-all duration-300"></div>
</div>
</section>
<!-- Product Info Section -->
<section class="px-margin-page pt-stack-md">
<div class="flex items-baseline gap-1 mb-2">
<span class="font-headline-md text-heritage-red text-[16px]">¥</span>
<span class="font-headline-xl text-headline-xl text-heritage-red">599</span>
</div>
<h1 class="font-headline-lg-mobile text-headline-lg-mobile text-ink-black font-bold mb-1">杜康·白水古酿 500ml</h1>
<p class="font-body-md text-on-surface-variant mb-6">清香型 52度 礼盒装</p>
<!-- Promotion Card -->
<div class="relative bg-gradient-to-br from-[#FFF9E6] to-[#FFF0C2] rounded-xl p-4 mb-stack-lg shadow-[0px_4px_20px_rgba(166,29,36,0.05)] border border-aged-amber/10 overflow-hidden">
<!-- Decorative element -->
<div class="absolute -right-4 -top-4 w-20 h-20 bg-heritage-red/5 rounded-full blur-2xl"></div>
<div class="flex items-center gap-3 mb-2 relative z-10">
<div class="w-10 h-10 rounded-full bg-heritage-red flex items-center justify-center">
<span class="material-symbols-outlined text-white text-[20px] fill-icon">confirmation_number</span>
</div>
<div>
<h3 class="font-headline-md text-on-secondary-fixed-variant font-bold">买杜康美酒 · 享全城好客礼遇 <span class="text-heritage-red ml-1">¥200</span></h3>
</div>
</div>
<p class="font-body-md text-on-secondary-fixed-variant/80 pl-13 leading-relaxed relative z-10">购酒即享本城专属好客权益,为您安排一场地道饭局。权益金可直接用于本地签约门店消费,到店享用,醇香美酒配佳肴。</p>
<div class="absolute bottom-2 right-4 opacity-10">
<span class="material-symbols-outlined text-[64px]">restaurant</span>
</div>
</div>
</section>
<!-- Product Details -->
<section class="bg-white rounded-t-3xl pt-stack-lg">
<div class="px-margin-page mb-stack-md flex items-center gap-2">
<div class="w-1 h-5 bg-heritage-red rounded-full"></div>
<h2 class="font-headline-md text-headline-md text-ink-black">商品详情</h2>
</div>
<div class="space-y-0">
<div class="w-full">
<img class="w-full block" data-alt="An elegant long-form digital graphic for the product description. Top part shows a wide landscape of the traditional Dukang brewery area with mist-covered mountains and ancient architecture. Middle part features poetic Chinese typography explaining the brewing heritage and the 52-degree purity. The style is clean, modern, and editorial with a high-end parchment texture." src="https://lh3.googleusercontent.com/aida-public/AB6AXuA2-IVt-apnEkj9QQ4rkjN5lb0oymgiJX1XfzAH8pRzSFzMVjYDtlMWE8GwpS7I6sth7CXJiKwNm9c-hpsYKqQ6pyb48yUO6NG8vky4E6qCjwgaCsCnlvoOVLroG4bmmL16-xl4-o28ZMvtzMoCKIiUK-_dQF7lx66nwnxFOP7PcUddDK-UItoO-Gp5iqxf6kp_-t_tjoPpo_ba25DBPG1QThlI8IJYqb9bNng5mIQzdnNul24rBy_JmgS5nsaYK0Wvo7907WT3ch4">
</div>
<div class="px-margin-page py-stack-lg space-y-6">
<div class="text-center space-y-2">
<h4 class="font-headline-md text-heritage-red font-bold">千年杜康 · 唯有此处</h4>
<p class="font-body-md text-on-surface-variant leading-relaxed">
选自白水杜康核心产区,取山泉之灵气,集五谷之精华。古法酿造工艺,历经九九八十一道工序,方得这一口醇厚绵甜。
</p>
</div>
<!-- Feature Grid -->
<div class="grid grid-cols-2 gap-4">
<div class="bg-surface-container-low p-4 rounded-xl text-center space-y-2 border border-outline-variant/30">
<span class="material-symbols-outlined text-heritage-red">water_drop</span>
<div class="font-headline-md text-ink-black text-[14px]">泉水酿造</div>
<div class="text-[12px] text-subtle-gray">甘冽清甜 灵动自然</div>
</div>
<div class="bg-surface-container-low p-4 rounded-xl text-center space-y-2 border border-outline-variant/30">
<span class="material-symbols-outlined text-heritage-red">grain</span>
<div class="font-headline-md text-ink-black text-[14px]">精选五谷</div>
<div class="text-[12px] text-subtle-gray">传统比例 匠心发酵</div>
</div>
</div>
</div>
<div class="w-full">
<img class="w-full block" data-alt="A high-resolution image of the bottle in a professional lifestyle setting. A hand is seen pouring the clear liquid into a small glass, capturing the viscous 'oil' like quality of the high-grade baijiu. The lighting is moody and warm, creating high contrast and a premium luxury feel. Soft background elements of a high-end restaurant table are visible." src="https://lh3.googleusercontent.com/aida-public/AB6AXuBe0yoN6VDKu2SVqwOy9RedE-6Rh56-a_5ygo5raDOU3Y65m1fz9hNmqbrIpvTW8RsqAwPd3zfHnw96Bb4Ct7jtmq-pil1MEvPBL4G3C8Sym_LVuEzK---hgdim1wVx-qP1v1EPex2fXpVQEY27rEVINVaXk2L1F5elWKQhMHWVXjU8B2jvtyNzmlXBpynsocnCgcwM4RhaqYdVf1JZxcfScmJ34dO3QAUIli-RPzEYynLtnW2x4lEbRrpAdBnK2fuSggLnJU1nfSw">
</div>
</div>
</section>
</main>
<!-- Bottom Action Bar -->
<nav class="fixed bottom-0 left-0 w-full z-50 bg-white/90 glass-effect border-t border-outline-variant/10 px-4 pb-safe pt-3 h-20 flex items-center gap-4">
<div class="flex gap-4 px-2">
<button class="flex flex-col items-center justify-center gap-1 active:opacity-70 transition-opacity">
<span class="material-symbols-outlined text-on-surface-variant">home</span>
<span class="text-[10px] font-medium text-on-surface-variant">首页</span>
</button>
<button class="flex flex-col items-center justify-center gap-1 active:opacity-70 transition-opacity">
</button>
</div>
<button class="flex-1 bg-heritage-red text-white h-12 rounded-full font-bold flex items-center justify-center shadow-lg active:scale-[0.98] transition-all duration-150">
立即购买
</button>
</nav>
<script>
// Scroll interaction for TopAppBar
const header = document.getElementById('top-app-bar');
const headerTitle = document.getElementById('header-title');
const carousel = document.getElementById('carousel-container');
const dots = document.querySelectorAll('.dot');
window.addEventListener('scroll', () => {
if (window.scrollY > 100) {
header.classList.add('bg-white', 'shadow-sm');
header.classList.remove('bg-transparent');
headerTitle.classList.add('opacity-100');
headerTitle.classList.remove('opacity-0');
// Update icon colors for white background
header.querySelectorAll('.material-symbols-outlined').forEach(icon => {
icon.classList.add('text-on-surface');
});
header.querySelectorAll('button').forEach(btn => {
btn.classList.remove('bg-white/20');
btn.classList.add('bg-transparent');
});
} else {
header.classList.remove('bg-white', 'shadow-sm');
header.classList.add('bg-transparent');
headerTitle.classList.remove('opacity-100');
headerTitle.classList.add('opacity-0');
header.querySelectorAll('button').forEach(btn => {
btn.classList.add('bg-white/20');
btn.classList.remove('bg-transparent');
});
}
});
// Carousel dots interaction
carousel.addEventListener('scroll', () => {
const index = Math.round(carousel.scrollLeft / carousel.offsetWidth);
dots.forEach((dot, i) => {
if (i === index) {
dot.classList.add('w-6', 'bg-heritage-red');
dot.classList.remove('w-1.5', 'bg-subtle-gray/30');
} else {
dot.classList.remove('w-6', 'bg-heritage-red');
dot.classList.add('w-1.5', 'bg-subtle-gray/30');
}
});
});
</script>
</body></html>