/*
 * PartiVille 客户前台样式
 * 配色以 logo 为准（docs/开发记录.md 第 8 节），跟 resources/css/partiville-colors.css 一样
 * 直接写 CSS，不用 npm build（VPS 更新时不会跑 npm）
 */
:root {
    --berry: #C6454A;
    --berry-dark: #A3353A;
    --pink: #F29AAE;
    --pink-light: #FCE4E8;
    --cream: #FBEFE0;
    --cream-light: #FFF9F2;
    --white: #FFFDF9;
    --line: #EED9C4;
    --brown: #7A3A30;
    --text: #4A2F2A;
    --muted: #8C6D62;
    --yellow: #F6C453;
    --sage: #8DBF7E;
    --radius: 16px;
    --shadow: 0 2px 10px rgba(122, 58, 48, .08);
    --shadow-lg: 0 10px 30px rgba(122, 58, 48, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream-light);
    color: var(--text);
    font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--berry); text-decoration: none; }
a:hover { color: var(--berry-dark); }
h1, h2, h3, h4 { color: var(--brown); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mt { margin-top: 16px; }
.lead { font-size: 18px; color: var(--muted); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prose { white-space: normal; }

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font: inherit; font-weight: 800; font-size: 15px; line-height: 1;
    padding: 12px 20px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: background .15s, color .15s, transform .15s, box-shadow .15s;
    text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 4px 12px rgba(198, 69, 74, .25); }
.btn-primary:hover { background: var(--berry-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--brown); border-color: var(--pink); }
.btn-soft { background: var(--pink-light); color: var(--berry); }
.btn-soft:hover { color: var(--berry-dark); }
.btn-light { background: #fff; color: var(--berry); }
.btn-light:hover { background: var(--cream-light); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--berry); }

/* ===== 顶栏 ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 249, 242, .94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--brown); font-weight: 700; }
.nav-link:hover { color: var(--berry); }
.nav-list {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--berry); color: #fff; font-weight: 800; font-size: 15px;
    padding: 9px 16px; border-radius: 999px;
}
.nav-list:hover { background: var(--berry-dark); color: #fff; }
.nav-list svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.nav-list .count { background: #fff; color: var(--berry); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; font-size: 13px; }

/* ===== 提示 ===== */
.flash {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--sage); border-left: 5px solid var(--sage);
    border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; box-shadow: var(--shadow);
    font-weight: 700; color: var(--brown);
}
.flash-inline { margin: 0 0 16px; }
.alert { background: var(--pink-light); border: 1px solid var(--pink); color: var(--berry-dark); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.alert ul { margin: 0; padding-left: 18px; }

/* ===== 三角彩旗 ===== */
.bunting {
    height: 22px;
    background:
        linear-gradient(135deg, var(--berry) 25%, transparent 25%) 0 0 / 44px 22px,
        linear-gradient(225deg, var(--berry) 25%, transparent 25%) 0 0 / 44px 22px;
    background-repeat: repeat-x;
    position: relative;
}
.bunting::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(135deg, var(--yellow) 25%, transparent 25%) 22px 0 / 88px 22px,
        linear-gradient(225deg, var(--yellow) 25%, transparent 25%) 22px 0 / 88px 22px,
        linear-gradient(135deg, var(--pink) 25%, transparent 25%) 66px 0 / 88px 22px,
        linear-gradient(225deg, var(--pink) 25%, transparent 25%) 66px 0 / 88px 22px;
    background-repeat: repeat-x;
}

/* ===== 首页 Hero ===== */
.hero { background: var(--cream); position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.eyebrow { font-weight: 800; color: var(--berry); text-transform: uppercase; letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 900; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions.center { justify-content: center; }

/* 帐篷小镇（纯 CSS） */
.hero-art { position: relative; height: 300px; }
.tent { position: absolute; bottom: 0; border-radius: 12px 12px 6px 6px; background: var(--white); box-shadow: var(--shadow-lg); }
.tent::before {
    content: ""; position: absolute; left: -10%; right: -10%; bottom: 100%; height: 70%;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    background: repeating-linear-gradient(90deg, var(--berry) 0 18px, #fff 18px 36px);
}
.tent::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 34%; height: 55%; transform: translateX(-50%);
    background: var(--brown); border-radius: 999px 999px 0 0; opacity: .85;
}
.tent-1 { left: 4%; width: 30%; height: 42%; }
.tent-2 { left: 36%; width: 34%; height: 56%; }
.tent-2::before { background: repeating-linear-gradient(90deg, var(--pink) 0 18px, #fff 18px 36px); }
.tent-3 { left: 72%; width: 26%; height: 36%; }
.tent-3::before { background: repeating-linear-gradient(90deg, var(--yellow) 0 18px, #fff 18px 36px); }
.string-lights {
    position: absolute; left: 0; right: 0; top: 8%; height: 40px;
    border-bottom: 2px dashed var(--brown); border-radius: 0 0 50% 50%; opacity: .5;
}

/* ===== 区块 ===== */
.section { padding: 56px 0; }
.section-tight { padding: 32px 0 56px; }
.section-alt { background: var(--cream); }
.section-title { font-size: clamp(24px, 3vw, 32px); }
.section-title.sm { font-size: 22px; margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.empty { color: var(--muted); padding: 24px 0; }
.empty-box { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 48px 24px; text-align: center; }

.page-head { background: var(--cream); padding: 32px 0 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin-top: 8px; }
.back { display: inline-block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--brown);
    font-size: 14px; font-weight: 700;
}
a.chip:hover, .chip.active { background: var(--berry); border-color: var(--berry); color: #fff; }

/* ===== 分类 ===== */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-top: 24px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 12px; color: var(--brown); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--pink); color: var(--brown); }
.cat-icon {
    width: 64px; height: 64px; border-radius: 50%; background: var(--pink-light);
    display: grid; place-items: center; font-size: 26px; font-weight: 900; color: var(--berry); overflow: hidden;
}
.cat-icon img { width: 70%; height: 70%; object-fit: contain; }
.cat-name { font-weight: 800; }
.cat-count { font-size: 13px; color: var(--muted); }

/* ===== 卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; margin-top: 24px; }
.card {
    display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow);
    transition: transform .15s, box-shadow .15s;
}
a.card:hover, .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.card-img {
    position: relative; display: block; aspect-ratio: 4 / 3; background: var(--pink-light) center / cover no-repeat;
}
.card-img-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 48px; font-weight: 900; color: var(--pink);
}
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badges-inline { display: flex; gap: 6px; margin-bottom: 6px; }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.badge-berry { background: var(--berry); color: #fff; }
.badge-yellow { background: var(--yellow); color: var(--brown); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--brown); }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.vendor-head { display: flex; align-items: center; gap: 10px; }
.vendor-logo-sm { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow); flex-shrink: 0; }
.price { font-weight: 900; color: var(--berry); font-size: 17px; }
.price-lg { font-size: 28px; }
.price-lines { display: flex; flex-direction: column; gap: 2px; }

/* ===== Vendor 页 ===== */
.vendor-hero { height: 280px; background: var(--pink-light) center / cover no-repeat; position: relative; }
.vendor-hero-shade { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(74, 47, 42, .25)); }
.vendor-intro { display: flex; gap: 24px; align-items: flex-end; margin-top: -60px; position: relative; }
.vendor-logo-lg {
    width: 132px; height: 132px; border-radius: 50%; background: #fff; border: 5px solid #fff;
    box-shadow: var(--shadow-lg); overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
    font-size: 48px; font-weight: 900; color: var(--berry);
}
.vendor-logo-lg img { width: 100%; height: 100%; object-fit: cover; }
.vendor-intro-text { padding-bottom: 4px; }
.vendor-intro-text h1 { margin: 0; }
.vendor-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.vendor-aside { position: sticky; top: 92px; }
.note-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.note-box strong { color: var(--brown); }
.note-box p { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 24px; }
.gallery-item { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--pink-light); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ===== 套餐 / 组合套餐详细页 ===== */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-img { position: relative; aspect-ratio: 1; border-radius: 24px; background: var(--pink-light) center / cover no-repeat; box-shadow: var(--shadow-lg); }
.detail-body h1 { margin-top: 10px; }
.price-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.save { display: inline-block; margin-top: 6px; background: var(--sage); color: #fff; font-weight: 800; font-size: 14px; padding: 3px 12px; border-radius: 999px; }
.add-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.add-form label { font-weight: 700; font-size: 14px; color: var(--brown); display: flex; flex-direction: column; gap: 4px; }
.include-list { padding-left: 20px; margin: 0 0 8px; }
.include-list li { margin-bottom: 4px; }

/* ===== 表单 ===== */
.input {
    width: 100%; font: inherit; font-size: 16px; color: var(--text);
    background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(198, 69, 74, .15); }
.input-sm { padding: 8px 10px; font-size: 15px; width: 110px; }
.grow .input-sm { width: 100%; }
textarea.input { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14px; color: var(--brown); }
.form-grid .full { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== My Event List ===== */
.list-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.list-items { display: flex; flex-direction: column; gap: 12px; }
.list-item {
    display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: start;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.list-thumb { width: 84px; height: 84px; border-radius: 12px; background: var(--pink-light) center / cover no-repeat; }
.list-name { font-weight: 800; color: var(--brown); font-size: 17px; }
.list-fields { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.list-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 700; color: var(--muted); }
.list-fields .grow { flex: 1; min-width: 160px; }
.list-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.list-total {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-top: 4px;
}
.list-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); position: sticky; top: 92px; }

/* ===== 谢谢页 ===== */
.thanks-icon { font-size: 64px; margin-bottom: 8px; }
.ref-box { display: inline-block; background: var(--cream); border: 2px dashed var(--pink); border-radius: var(--radius); padding: 14px 28px; margin: 8px 0 16px; }
.ref-no { font-size: 28px; font-weight: 900; color: var(--berry); letter-spacing: 1px; }

/* ===== 步骤 / CTA ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.step-no { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--berry); color: #fff; font-weight: 900; font-size: 20px; margin-bottom: 12px; }
.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: var(--berry); color: #fff; border-radius: 24px; padding: 36px 40px;
    background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,.15) 0 80px, transparent 81px), radial-gradient(circle at 5% 100%, rgba(246,196,83,.25) 0 60px, transparent 61px);
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; opacity: .92; }

/* ===== 页尾 ===== */
.site-footer { background: var(--brown); color: #F3E3D6; margin-top: 0; }
.site-footer .bunting { transform: scaleY(-1); opacity: .9; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 40px; padding-bottom: 28px; }
.footer-logo { height: 46px; width: auto; background: var(--cream-light); border-radius: 12px; padding: 6px 10px; margin-bottom: 14px; }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #F3E3D6; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #D9BFB0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 16px; padding-bottom: 24px; font-size: 14px; color: #D9BFB0; }

/* WhatsApp 浮动按钮（联络 JCW，不是 vendor） */
.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== 手机 ===== */
@media (max-width: 900px) {
    .hero-inner, .detail, .vendor-layout, .list-layout { grid-template-columns: 1fr; }
    .hero-art { height: 200px; }
    .vendor-aside, .list-form { position: static; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hide-sm { display: none; }
    .header-inner { height: 62px; }
    .brand img { height: 38px; }
    .nav-list span:not(.count) { display: none; }
    .section { padding: 40px 0; }
    .hero-inner { padding-top: 36px; padding-bottom: 36px; }
    .vendor-hero { height: 180px; }
    .vendor-intro { flex-direction: column; align-items: flex-start; margin-top: -50px; gap: 12px; }
    .vendor-logo-lg { width: 100px; height: 100px; }
    .form-grid { grid-template-columns: 1fr; }
    .list-item { grid-template-columns: 64px 1fr; }
    .list-thumb { width: 64px; height: 64px; }
    .list-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .cta { padding: 28px 24px; }
    .card-grid { grid-template-columns: 1fr; }
}
