:root {
  --primary: #e07a5f;
  --primary-deep: #c25f45;
  --primary-soft: #f4a261;
  --accent: #ffe566;
  --bg: #faf6f0;
  --bg-deep: #f2eae0;
  --card: #ffffff;
  --text: #2b2d42;
  --muted: #8d8fa3;
  --border: #ede8e0;
  --shadow: 0 10px 30px rgba(43, 45, 66, 0.08);
  --shadow-hover: 0 18px 40px rgba(43, 45, 66, 0.14);
  --radius: 18px;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 21px; font-weight: 600; letter-spacing: 2px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 19px;
}
.brand small { display: block; font-family: var(--font-sans); font-size: 10px; font-weight: 400; letter-spacing: 1px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 14px; color: #5a5b6b; position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--primary); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; border: 1px solid var(--border); background: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 17px; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11px; display: grid; place-items: center; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 24px; padding: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(224, 122, 95, .28); }
.btn-primary:hover { background: var(--primary-deep); }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--text); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(250,246,240,.97) 0%, rgba(250,246,240,.88) 38%, rgba(250,246,240,.25) 75%), url('../assets/hero-flowers.jpg'); background-size: cover; background-position: center; }
.hero-content { position: relative; padding: 90px 0 80px; max-width: 560px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--primary); text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: 6px; margin-bottom: 10px; }
.hero h1 span { color: var(--primary); }
.hero-sub { font-family: var(--font-serif); font-size: 20px; color: #5a5b6b; letter-spacing: 2px; margin-bottom: 22px; }
.hero-desc { font-size: 15px; color: #6a6b7a; max-width: 430px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 52px; }
.stat b { display: block; font-family: var(--font-serif); font-size: 26px; color: var(--primary); }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- section ---------- */
.section { padding: 86px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-deep); }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: 3px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 14px; }

/* ---------- feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(237,232,224,.7);
  transition: transform .25s, box-shadow .25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 60px; height: 60px; border-radius: 16px; background: #fdf0e8; display: grid; place-items: center; margin-bottom: 18px; overflow: hidden; }
.feature-icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--muted); }

/* ---------- product ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-thumb { height: 230px; background: #f4eee6; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-body { padding: 18px 18px 20px; }
.product-tag { font-size: 11px; color: var(--primary); background: #fdf0e8; border-radius: 20px; padding: 3px 10px; display: inline-block; margin-bottom: 10px; }
.product-body h3 { font-size: 16px; margin-bottom: 6px; }
.product-body p { font-size: 12px; color: var(--muted); min-height: 34px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.price { font-size: 19px; color: var(--primary); font-weight: 600; font-family: var(--font-serif); }
.price del { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.add-btn { border: 0; background: var(--primary); color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 19px; line-height: 1; display: grid; place-items: center; }

/* ---------- story split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-media { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 420px; object-fit: cover; }
.split h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: 2px; margin-bottom: 18px; }
.split p { color: #6a6b7a; font-size: 14px; margin-bottom: 16px; }
.split-list { list-style: none; padding: 0; margin: 22px 0 28px; }
.split-list li { padding: 9px 0 9px 26px; position: relative; font-size: 14px; }
.split-list li::before { content: "·"; position: absolute; left: 8px; color: var(--primary); font-size: 20px; line-height: 1; }

/* ---------- community ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-cover { height: 190px; overflow: hidden; position: relative; }
.img-count { position: absolute; right: 10px; bottom: 10px; background: rgba(43,45,66,.65); color: #fff; font-size: 11px; border-radius: 14px; padding: 2px 9px; z-index: 2; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px; }
.post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--primary-soft); color: #fff; display: grid; place-items: center; font-size: 13px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; border-radius: 50%; }
.post-author b { font-size: 13px; }
.post-author span { font-size: 11px; color: var(--muted); }
.post-body h3 { font-size: 17px; margin-bottom: 8px; }
.post-body p { font-size: 13px; color: #6a6b7a; }
.post-actions { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.post-actions button { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 0; }
.post-actions button.liked { color: var(--primary); }

/* ---------- AI ---------- */
.ai-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { font-size: 18px; }
.chat-box { height: 420px; overflow-y: auto; padding: 24px; background: #fdfbf8; }
.msg { display: flex; gap: 10px; margin-bottom: 18px; }
.msg .bubble { max-width: 78%; padding: 12px 16px; border-radius: 14px; font-size: 14px; background: #fff; border: 1px solid var(--border); }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.msg .who { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.chat-input { display: flex; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 11px 18px; font-size: 14px; outline: none; background: #fff; }
.chat-input input:focus { border-color: var(--primary); }
.quick-asks { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 16px; }
.quick-asks button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 12px; color: #6a6b7a; }
.quick-asks button:hover { border-color: var(--primary); color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 26px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field select, .field input, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-size: 14px; outline: none; background: #fff; font-family: inherit; color: var(--text);
}
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--primary); }
.field.full { grid-column: 1 / -1; }
.form-actions { padding: 0 26px 26px; }
.result-box { margin: 0 26px 26px; border-radius: 14px; background: #fdf0e8; padding: 18px; text-align: center; }
.result-canvas { display: grid; place-items: center; min-height: 200px; }
.result-box p { font-size: 12px; color: var(--muted); margin-top: 10px; }
.aigc-tag { display: inline-block; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px; margin-top: 6px; }

/* ---------- cart drawer ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(43,45,66,.35); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 201; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.1); }
.drawer.show { transform: none; }
.drawer-head { padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-item { display: flex; gap: 14px; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.cart-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.cart-item .info { flex: 1; }
.cart-item .info b { font-size: 14px; }
.cart-item .info p { font-size: 12px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.qty button { width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; border-radius: 6px; }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--border); background: #fff; }
.drawer-foot .total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.drawer-foot .btn { width: 100%; }

/* ---------- privacy notice banner ---------- */
.privacy-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 150; width: min(720px, calc(100% - 32px));
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(43,45,66,.18);
  display: flex; align-items: center; gap: 16px; padding: 14px 20px;
}
.privacy-banner p { flex: 1; font-size: 12.5px; color: #5a5b6b; line-height: 1.7; margin: 0; }
.privacy-banner a { color: var(--primary); text-decoration: underline; }
.privacy-banner .btn { flex: none; }

/* ---------- modal / toast ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(43,45,66,.4); z-index: 300; display: none; place-items: center; padding: 20px; }
.modal-mask.show { display: grid; }
.modal { background: #fff; border-radius: 20px; width: min(480px, 100%); padding: 28px; box-shadow: var(--shadow-hover); }
.modal h3 { font-size: 21px; margin-bottom: 14px; }
.modal .field { margin-bottom: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 11px 22px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 400; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- shop strip & card shop ---------- */
.shop-strip {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px;
}
.card-shop { display: inline-block; font-size: 12px; color: var(--primary); background: #fdf0e8; border-radius: 20px; padding: 3px 10px; margin-bottom: 10px; }
.card-shop:hover { background: #fbe3d3; }

/* ---------- checkout / payment ---------- */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-item { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); }
.order-item img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.order-item .info { flex: 1; min-width: 0; }
.order-item .info b { font-size: 15px; }
.order-item .info p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.order-item .sum { text-align: right; flex: none; }
.order-item .sum span { font-size: 12px; color: var(--muted); display: block; }
.order-item .sum b { color: var(--primary); font-size: 15px; }
.pay-total { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; }
.pay-total b { font-size: 22px; color: var(--primary); font-family: var(--font-serif); }
.pay-notice { background: #faeeda; color: #854f0b; border: 1px solid #f3ddbb; border-radius: 12px; padding: 12px 18px; font-size: 13px; margin-bottom: 20px; line-height: 1.7; }
.pay-amount { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding: 18px 20px; background: var(--bg); border-radius: 12px; }
.pay-amount span { font-size: 13px; color: var(--muted); }
.pay-amount b { font-size: 34px; color: var(--primary); font-family: var(--font-serif); }
.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.pay-method { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 13px 18px; font-size: 14px; cursor: pointer; transition: border-color .2s; }
.pay-method:has(input:checked) { border-color: var(--primary); background: #fdf7f3; }
.pay-method input { accent-color: var(--primary); }
.pay-method .pm-icon { font-size: 18px; }
.pay-method em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--primary); background: #fdf0e8; border-radius: 20px; padding: 2px 9px; }

/* ---------- lessons ---------- */
.lesson-list { display: flex; flex-direction: column; gap: 30px; max-width: 860px; margin: 0 auto; }
.lesson-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.lesson-video video, .lesson-cover img { width: 100%; max-height: 480px; object-fit: cover; background: #000; display: block; }
.lesson-body { padding: 26px 30px 30px; }
.lesson-body h2 { font-size: 24px; margin-bottom: 10px; }
.lesson-desc { color: #6a6b7a; font-size: 14px; line-height: 1.9; }
.lesson-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.lesson-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; cursor: zoom-in; }

/* ---------- page hero ---------- */
.page-hero { position: relative; padding: 90px 0 70px; background: var(--bg-deep); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -100px; width: 360px; height: 360px; border-radius: 50%; background: rgba(224,122,95,.08); }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: 4px; }
.page-hero p { color: #6a6b7a; margin-top: 12px; font-size: 15px; max-width: 560px; }
.tabs { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 8px 20px; font-size: 13px; }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- footer ---------- */
.site-footer { background: #2b2d42; color: #d8d6d0; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-grid p, .footer-grid a { font-size: 13px; color: #b8b6b0; display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 12px; color: #96948e; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-layout { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split-media img { height: 300px; }
}
@media (max-width: 720px) {
  .privacy-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .privacy-banner .btn { width: 100%; }
  .container { width: calc(100% - 32px); }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a.active::after { display: none; }
  .lesson-gallery { grid-template-columns: repeat(2, 1fr); }
  .lesson-gallery img { height: 120px; }
  .hero { min-height: 500px; }
  .hero-bg { background-image: linear-gradient(180deg, rgba(250,246,240,.75) 0%, rgba(250,246,240,.96) 60%), url('../assets/hero-flowers.jpg'); background-position: center top; }
  .hero-content { padding: 64px 0 50px; }
  .hero-stats { gap: 24px; margin-top: 36px; }
  .section { padding: 58px 0; }
  .feature-grid, .product-grid, .post-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-thumb { height: 160px; }
  .post-cover { height: 140px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .chat-box { height: 360px; }
}
@media (max-width: 460px) {
  .feature-grid, .product-grid, .post-grid { grid-template-columns: 1fr; }
  .product-thumb { height: 220px; }
  .hero-actions .btn { flex: 1; }
}
