:root {
  --navy: #0f4368;
  --navy-2: #1a5d85;
  --ocean: #20a7d8;
  --sky: #e8fbff;
  --mint: #e7fff6;
  --gold: #ffbd66;
  --sand: #fffaf2;
  --ink: #183246;
  --muted: #5e7e92;
  --line: #d9eff6;
  --card: #ffffff;
  --shadow: 0 20px 42px rgba(32, 123, 174, 0.13);
  --radius: 22px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 12%, rgba(123, 225, 255, 0.42) 0, rgba(123, 225, 255, 0) 28%),
    radial-gradient(circle at 86% 20%, rgba(111, 240, 224, 0.34) 0, rgba(111, 240, 224, 0) 26%),
    radial-gradient(circle at 16% 80%, rgba(255, 220, 161, 0.30) 0, rgba(255, 220, 161, 0) 20%),
    linear-gradient(180deg, #effcff 0%, #f8feff 48%, #eefcff 100%);
  font-family: "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .18;
}
body.admin-body,
body.influencer-body { background: #f4f7fb; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:24px; }
.section-head h2 { margin:0; font-size: clamp(1.75rem, 3vw, 2.4rem); color:var(--navy); }
.section-head p { margin:8px 0 0; color: var(--muted); }
.badge-line { display:inline-flex; align-items:center; gap:8px; font-size:.95rem; color: var(--ocean); font-weight:700; margin-bottom:8px; }
.badge-line::before { content:""; width:24px; height:2px; background:var(--gold); display:block; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245,253,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 38, 68, 0.06);
}
.topbar .container {
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
  min-height: 82px;
}
.brand { display:flex; align-items:center; gap: 14px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, #0c567d 0%, #23b3dc 86%);
  color: #fff; display:grid; place-items:center; font-weight:900; font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(16, 62, 102, 0.25);
}
.brand-copy h1, .brand-copy h2 { margin:0; font-size:1.12rem; color:var(--navy); }
.brand-copy p { margin:4px 0 0; color:var(--muted); font-size:.88rem; }
.nav-links { display:flex; gap:24px; align-items:center; }
.nav-links a { font-weight:600; color:#314254; }
.nav-actions { display:flex; align-items:center; gap:12px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; cursor:pointer; border-radius:999px; padding:12px 20px; font-weight:700;
  transition:.2s ease; text-decoration:none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #0e557f, #18a3d4 58%, #4fd8d7); color:#fff; box-shadow: 0 14px 26px rgba(30, 149, 196, 0.22); }
.btn-outline { background:#fff; color:var(--navy); border:1px solid rgba(13, 35, 65, .12); }
.btn-soft { background:#e7fbff; color:var(--navy); }
.cart-btn { position:relative; }
.cart-count {
  position:absolute; top:-6px; right:-2px; min-width:20px; height:20px; border-radius:999px;
  background:#f25555; color:#fff; font-size:.76rem; display:grid; place-items:center; padding:0 6px;
}
.mobile-nav-toggle { display:none; }
main { position: relative; z-index: 1; }

#campaigns::before {
  left: 18px; right: 18px;
  background:
    linear-gradient(135deg, rgba(232,251,255,.96), rgba(255,255,255,.92)),
    radial-gradient(circle at 22% 18%, rgba(88, 214, 255, .22), transparent 24%),
    url("assets/red-shrimp.png") right -64px center / 430px auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(190, 232, 243, .65);
}
#gift-zone::before {
  left: 18px; right: 18px;
  background:
    linear-gradient(135deg, rgba(240,252,255,.95), rgba(255,255,255,.93)),
    radial-gradient(circle at 84% 22%, rgba(255, 203, 117, .20), transparent 21%),
    url("assets/crab-legs.png") left -90px center / 430px auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(198, 232, 242, .65);
}
#story::before {
  left: 18px; right: 18px;
  background:
    linear-gradient(135deg, rgba(236,251,255,.95), rgba(255,255,255,.92)),
    radial-gradient(circle at 84% 18%, rgba(90, 216, 230, .18), transparent 28%);
  box-shadow: inset 0 0 0 1px rgba(198, 232, 242, .65);
}
#products::before {
  left: 18px; right: 18px;
  background:
    linear-gradient(135deg, rgba(238,252,255,.96), rgba(255,255,255,.94)),
    radial-gradient(circle at 16% 18%, rgba(122, 235, 219, .14), transparent 20%),
    url("assets/salmon.png") right -60px bottom -50px / 370px auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(198, 232, 242, .64);
}
#cooperation::before {
  left: 18px; right: 18px;
  background:
    linear-gradient(135deg, rgba(7,70,106,.98), rgba(24,142,190,.96) 62%, rgba(76,220,216,.92)),
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.16), transparent 18%);
}
#cooperation .section-head h2,
#cooperation .section-head p,
#cooperation .badge-line,
#cooperation .badge-line::before { color: #fff; }
#cooperation .section-head p { color: rgba(255,255,255,.82); }
#cooperation .badge-line::before { background: rgba(255,255,255,.58); }
#faq::before {
  left: 18px; right: 18px;
  background:
    linear-gradient(135deg, rgba(238,252,255,.96), rgba(255,255,255,.94)),
    url("assets/scallops.png") left -120px bottom -80px / 340px auto no-repeat;
  box-shadow: inset 0 0 0 1px rgba(198, 232, 242, .64);
}
.footer {
  position: relative;
  background:
    linear-gradient(135deg, rgba(8,28,53,.98), rgba(11,41,73,.96)),
    url("assets/hero-seafood.png") center / cover no-repeat;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,20,38,.88), rgba(6,24,45,.95));
}
.footer > .container { position: relative; z-index: 1; }

.hero {
  padding: 40px 0 24px;
}
.hero-grid {
  display:grid; grid-template-columns: 1.05fr .95fr; gap:24px; align-items:stretch;
}
.hero-copy {
  background: linear-gradient(135deg, rgba(9,71,111,1) 0%, rgba(28,141,189,.96) 55%, rgba(77,220,216,.92) 100%);
  color:#fff; border-radius: 32px; padding: clamp(28px, 5vw, 48px); position:relative; overflow:hidden;
  box-shadow: var(--shadow);
}
.hero-copy::after {
  content:""; position:absolute; inset:auto -10% -35% auto; width:420px; height:420px;
  background: radial-gradient(circle, rgba(255,255,255,.2), transparent 60%);
}
.hero-kicker {
  display:inline-flex; align-items:center; gap:10px; background: rgba(255,255,255,.12);
  padding:10px 16px; border-radius:999px; font-weight:700; margin-bottom:20px;
}
.hero h1 {
  margin:0 0 16px; line-height:1.15; font-size: clamp(2rem, 5vw, 3.8rem);
}
.hero p {
  margin:0; line-height:1.85; color: rgba(255,255,255,.88); font-size:1.05rem; max-width: 640px;
}
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.hero .pill-row { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.hero .pill-row span {
  border:1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08);
  padding:10px 14px; border-radius: 999px; font-size:.94rem;
}
.hero-image {
  position:relative; min-height: 520px; border-radius: 32px; overflow:hidden; box-shadow: var(--shadow);
  background: linear-gradient(150deg, #1580aa 4%, #22b8da 56%, #7ee9dc 100%);
}
.hero-image img { width:100%; height:100%; object-fit:cover; }
.hero-card {
  position:absolute; left:22px; right:22px; bottom:22px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-radius: 24px; padding: 18px 20px; box-shadow: 0 18px 40px rgba(4, 23, 49, 0.12);
}
.hero-card strong { display:block; color:var(--navy); font-size:1.1rem; margin-bottom:6px; }
.hero-card p { margin:0; color:var(--muted); line-height:1.7; }

.referral-banner {
  margin-top: 18px; background: linear-gradient(135deg, #fff8ee, #fff0cf); border:1px solid #ffe0a3;
  color:#8a5b14; padding:14px 18px; border-radius: 18px; font-weight:700;
}

.icon-strip { padding: 14px 0 10px; }
.icon-strip-grid {
  display:grid; grid-template-columns: repeat(4, 1fr); gap:16px;
}
.icon-tile {
  background:rgba(255,255,255,.88); padding:22px; border-radius:24px; box-shadow: var(--shadow); display:flex; gap:16px; align-items:flex-start; backdrop-filter: blur(8px);
}
.icon {
  min-width: 52px; width:52px; height:52px; display:grid; place-items:center; border-radius:18px;
  background: linear-gradient(135deg, #e7fbff, #d8fff7); font-size:1.35rem;
}
.icon-tile h3 { margin:0 0 8px; color:var(--navy); font-size:1.02rem; }
.icon-tile p { margin:0; color:var(--muted); line-height:1.7; font-size:.95rem; }

.section {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.section > .container { position: relative; z-index: 1; }
.section::before {
  content: "";
  position: absolute;
  inset: 18px 0;
  border-radius: 34px;
  pointer-events: none;
  opacity: .55;
}
.categories { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
.category-card {
  background:rgba(255,255,255,.90); padding:22px; border-radius: 24px; box-shadow: var(--shadow);
  display:flex; gap:16px; align-items:center; cursor:pointer; border:1px solid transparent; backdrop-filter: blur(8px);
}
.category-card.active, .category-card:hover { border-color: rgba(31,95,139,.25); }
.category-emoji { font-size:2rem; width:64px; height:64px; border-radius:20px; display:grid; place-items:center; background:#f2fbff; }
.category-card h3 { margin:0 0 6px; color:var(--navy); font-size:1.08rem; }
.category-card p { margin:0; color:var(--muted); font-size:.92rem; }

.product-toolbar {
  display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; margin-bottom:20px;
}
.filter-chips { display:flex; flex-wrap:wrap; gap:10px; }
.filter-chip {
  border:1px solid #d9e5ef; background:#fff; color:var(--navy);
  padding:10px 16px; border-radius:999px; cursor:pointer; font-weight:600;
}
.filter-chip.active { background: var(--navy); color:#fff; border-color:var(--navy); }
.search-box {
  min-width: 280px; background:#fff; border:1px solid #d9e5ef; border-radius:999px; padding:12px 18px;
}
.products-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:22px; }
.product-card {
  background:rgba(255,255,255,.90); border-radius: 26px; overflow:hidden; box-shadow: var(--shadow); border:1px solid rgba(9,34,62,.06); backdrop-filter: blur(8px);
}
.product-image { position:relative; aspect-ratio: 1.06 / .85; background: linear-gradient(135deg, #b8e3f4, #dff5ff 55%, #fff); }
.product-image img { width:100%; height:100%; object-fit:cover; }
.product-tag {
  position:absolute; top:14px; left:14px; background:rgba(255,255,255,.88); color:var(--navy); padding:8px 12px; border-radius:999px;
  font-size:.84rem; font-weight:700;
}
.product-body { padding:22px; }
.product-body h3 { margin:0 0 10px; color:var(--navy); font-size:1.18rem; }
.product-meta { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.meta-pill { background:#f3f8fc; color:#44617d; border-radius:999px; padding:7px 11px; font-size:.86rem; }
.product-desc { color:var(--muted); line-height:1.75; min-height: 76px; font-size:.95rem; }
.price-row { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-top:14px; }
.price strong { font-size:1.5rem; color:var(--navy); }
.price span { display:block; color:var(--muted); font-size:.85rem; }
.card-actions { display:flex; gap:10px; margin-top:16px; }
.btn-block { width:100%; }

.story-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap:24px; align-items:stretch; }
.story-panel, .info-panel {
  background:rgba(255,255,255,.88); padding:32px; border-radius: 28px; box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.story-panel p, .info-panel p { color:var(--muted); line-height:1.85; }
.story-checks { display:grid; gap:14px; margin-top:20px; }
.check-item { display:flex; gap:12px; align-items:flex-start; }
.check-item .check { width:28px; height:28px; border-radius:999px; background:#eaf7f3; color:#1b8d63; display:grid; place-items:center; font-weight:800; }
.highlight-card {
  margin-top:20px; padding:18px 20px; background: linear-gradient(135deg, #f8fbff, #eff8ff); border:1px solid #dfeffc; border-radius: 22px;
}
.feature-list { display:grid; gap:16px; margin-top:18px; }
.feature-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-bottom:16px; border-bottom:1px dashed #dfe6ee; }
.feature-row:last-child { border-bottom:none; padding-bottom:0; }
.feature-row strong { color:var(--navy); }
.feature-row span { color:var(--muted); }

.process-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
.process-card {
  background:rgba(255,255,255,.88); padding:26px; border-radius: 24px; box-shadow: var(--shadow); position:relative; backdrop-filter: blur(8px);
}
.process-number {
  width:38px; height:38px; border-radius:999px; background:var(--navy); color:#fff; display:grid; place-items:center; font-weight:800; margin-bottom:14px;
}
.process-card h3 { margin:0 0 10px; color:var(--navy); }
.process-card p { margin:0; color:var(--muted); line-height:1.75; }

.cta-panel {
  background: linear-gradient(135deg, #0b2341 0%, #123a62 60%, #216f98 100%);
  color:#fff; border-radius: 30px; padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow);
  display:flex; justify-content:space-between; gap:28px; align-items:center; flex-wrap:wrap;
}
.cta-panel h2 { margin:0 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-panel p { margin:0; line-height:1.85; color:rgba(255,255,255,.86); max-width: 760px; }

.footer {
  background:#081c35; color:#fff; margin-top:56px; padding: 48px 0 20px;
}
.footer-grid { display:grid; grid-template-columns: 1.1fr .7fr .7fr; gap:24px; }
.footer h3 { margin:0 0 12px; }
.footer p, .footer li { color: rgba(255,255,255,.8); line-height:1.8; }
.footer ul { padding-left: 18px; margin: 0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:24px; padding-top:16px; color:rgba(255,255,255,.68); font-size:.92rem; }

.drawer {
  position:fixed; inset:0 0 0 auto; width:min(480px, 100vw); background:#fff; box-shadow:-24px 0 40px rgba(10,29,51,.15);
  transform: translateX(100%); transition: .25s ease; z-index: 70; display:flex; flex-direction:column;
}
.drawer.open { transform: translateX(0); }
.drawer-header, .drawer-footer { padding:18px 20px; border-bottom:1px solid var(--line); }
.drawer-footer { border-top:1px solid var(--line); border-bottom:none; margin-top:auto; }
.drawer-body { padding:20px; overflow:auto; display:grid; gap:14px; }
.drawer-item { display:grid; grid-template-columns: 86px 1fr auto; gap:14px; align-items:center; padding-bottom:14px; border-bottom:1px solid #eef3f8; }
.drawer-item:last-child { border-bottom:none; }
.drawer-thumb { width:86px; height:70px; border-radius:16px; overflow:hidden; background:#eef7ff; }
.drawer-thumb img { width:100%; height:100%; object-fit:cover; }
.drawer-item h4 { margin:0 0 8px; color:var(--navy); }
.drawer-item p { margin:0; color:var(--muted); font-size:.9rem; }
.quantity-box { display:flex; align-items:center; gap:10px; }
.qty-btn {
  width:28px; height:28px; border-radius:10px; border:1px solid #dfe6ee; background:#fff; cursor:pointer;
}
.overlay {
  position:fixed; inset:0; background:rgba(4, 15, 32, .42); backdrop-filter: blur(2px);
  opacity:0; pointer-events:none; transition:.25s ease; z-index: 65;
}
.overlay.show { opacity:1; pointer-events:auto; }
.summary-row { display:flex; justify-content:space-between; margin-bottom:10px; }
.empty-state {
  text-align:center; padding:36px 18px; background:#f8fbff; border:1px dashed #d4e2ee; border-radius:20px; color:var(--muted);
}

.modal {
  position:fixed; inset:0; display:grid; place-items:center; padding:20px; background:rgba(4, 15, 32, .5);
  opacity:0; pointer-events:none; transition:.25s ease; z-index: 80;
}
.modal.show { opacity:1; pointer-events:auto; }
.modal-card {
  width:min(760px, 100%); background:#fff; border-radius: 28px; box-shadow:0 30px 60px rgba(5, 22, 44, .18);
  overflow:hidden;
}
.modal-head { padding:24px 28px; background:linear-gradient(135deg, #f7fbff, #eef6ff); border-bottom:1px solid var(--line); }
.modal-body { padding:24px 28px; }
.modal-head h3 { margin:0; color:var(--navy); }
.form-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; }
.form-group { display:grid; gap:8px; margin-bottom:16px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight:700; color:var(--navy); }
.input, .textarea, .select {
  width:100%; border:1px solid #d8e4ef; border-radius:16px; padding:14px 16px; background:#fff;
}
.textarea { min-height:110px; resize: vertical; }
.note { color:var(--muted); font-size:.9rem; }
.alert {
  padding:14px 16px; border-radius:16px; font-size:.96rem; margin-bottom:16px;
}
.alert.success { background:#ecfbf3; color:#1f7c52; border:1px solid #ccefdc; }
.alert.info { background:#e7fbff; color:#24507c; border:1px solid #d6e6f7; }
.hidden { display:none !important; }

/* Admin */
.app-shell { display:grid; grid-template-columns: 290px 1fr; min-height:100vh; }
.sidebar {
  background: linear-gradient(180deg, #0b2341 0%, #112f52 100%); color:#fff; padding:24px 20px; position:sticky; top:0; height:100vh; overflow:auto;
}
.sidebar .brand-copy h2 { color:#fff; }
.sidebar .brand-copy p { color: rgba(255,255,255,.72); }
.side-menu { display:grid; gap:10px; margin-top:28px; }
.side-link {
  display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:18px; color: rgba(255,255,255,.84); font-weight:600;
}
.side-link.active, .side-link:hover { background: rgba(255,255,255,.12); color:#fff; }
.side-link small { color: rgba(255,255,255,.6); display:block; font-weight:400; }
.main { padding:24px; }
.page-header { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:20px; }
.page-header h1 { margin:0; color:var(--navy); }
.card {
  background:#fff; border-radius:24px; padding:22px; box-shadow: var(--shadow); border:1px solid rgba(9, 34, 62, .04);
}
.card + .card { margin-top:18px; }
.stat-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:16px; }
.stat-card { background:#fff; padding:22px; border-radius:24px; box-shadow:var(--shadow); }
.stat-card .label { color:var(--muted); font-size:.92rem; }
.stat-card .value { color:var(--navy); font-weight:800; font-size:2rem; margin-top:8px; }
.panel-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; }
.table-wrap { overflow:auto; }
.table { width:100%; border-collapse:collapse; min-width: 800px; }
.table th, .table td { padding:14px 12px; border-bottom:1px solid #edf2f7; text-align:left; vertical-align:top; }
.table th { color:#4d647d; font-size:.92rem; background:#f9fbfd; }
.table td strong { color:var(--navy); }
.status-pill { display:inline-block; padding:7px 10px; border-radius:999px; font-size:.82rem; font-weight:700; }
.status-paid, .status-active { background:#eaf8f0; color:#1a8b5c; }
.status-unpaid, .status-pending { background:#fff4df; color:#aa7a19; }
.status-cancelled, .status-disabled { background:#ffeaea; color:#c04f4f; }
.inline-actions { display:flex; flex-wrap:wrap; gap:8px; }
.btn-xs { padding:8px 12px; border-radius:999px; font-size:.88rem; }
.form-split { display:grid; grid-template-columns: 1.05fr .95fr; gap:18px; }
.upload-drop {
  border:2px dashed #c9d9e7; border-radius:22px; background:#f8fbff; padding:20px; text-align:center; color:var(--muted);
}
.upload-preview {
  margin-top:16px; border-radius:18px; overflow:hidden; min-height: 160px; background:#edf5fb; display:grid; place-items:center;
}
.upload-preview img { width:100%; max-height:260px; object-fit:cover; }
.subtle { color:var(--muted); font-size:.92rem; }
.pill-list { display:flex; flex-wrap:wrap; gap:8px; }
.pill-list span { padding:8px 12px; background:#f3f8fc; color:#43617e; border-radius:999px; font-size:.88rem; }
.login-screen {
  min-height:100vh; display:grid; place-items:center; padding:24px;
  background: radial-gradient(circle at top, #ecf6ff, #f7fbff 45%, #f4f7fb 100%);
}
.login-card {
  width:min(460px, 100%); background:#fff; padding:30px; border-radius:30px; box-shadow: var(--shadow); text-align:center;
}
.login-card .brand-mark { margin:0 auto 14px; }
.login-card h1 { margin:0; color:var(--navy); }
.login-card p { color:var(--muted); line-height:1.8; }

/* influencer */
.stats-inline { display:grid; grid-template-columns: repeat(5, 1fr); gap:16px; }
.mini-stat { background:#fff; padding:18px; border-radius: 20px; box-shadow:var(--shadow); }
.mini-stat .title { color:var(--muted); font-size:.92rem; }
.mini-stat .big { color:var(--navy); font-weight:800; font-size:1.55rem; margin-top:8px; }
.copy-box {
  display:flex; justify-content:space-between; gap:12px; align-items:center;
  border:1px solid #d9e5ef; border-radius:18px; padding:14px 16px; background:#fff;
}

.notice-bar { margin-top:16px; background:#e7fbff; border:1px solid #d8e8f7; color:#24507c; padding:14px 16px; border-radius:16px; }

@media (max-width: 1100px) {
  .hero-grid, .story-grid, .form-split, .panel-grid { grid-template-columns: 1fr; }
  .products-grid, .categories, .process-grid, .icon-strip-grid, .stat-grid, .stats-inline { grid-template-columns: repeat(2, 1fr); }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position:relative; height:auto; }
}

@media (max-width: 760px) {
  .topbar .container { min-height:72px; }
  .nav-links { display:none; }
  .mobile-nav-toggle { display:inline-flex; }
  .hero-image { min-height: 360px; }
  .products-grid, .categories, .process-grid, .icon-strip-grid, .stat-grid, .stats-inline, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 42px 0; }
  .main { padding:16px; }
}


.hero-editorial .hero-copy { background: linear-gradient(135deg, rgba(7,24,42,.95) 0%, rgba(13,43,71,.94) 48%, rgba(25,73,109,.88) 100%); }
.hero-editorial .hero-image img { object-position:center; }
.minimal-feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.minimal-feature { background:#fff; border-radius:24px; padding:24px; box-shadow:var(--shadow); border:1px solid rgba(9,34,62,.05); }
.minimal-feature h3 { margin:0 0 10px; color:var(--navy); font-size:1.08rem; }
.minimal-feature p { margin:0; color:var(--muted); line-height:1.8; }
.editorial-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:24px; align-items:center; }
.editorial-grid.reverse { grid-template-columns:.95fr 1.05fr; }
.editorial-photo { border-radius:30px; overflow:hidden; box-shadow:var(--shadow); min-height:420px; background:#eff5f9; }
.editorial-photo img { width:100%; height:100%; object-fit:cover; }
.editorial-copy { background:#fff; border-radius:28px; padding:34px; box-shadow:var(--shadow); }
.editorial-copy h2, .editorial-copy h3 { margin:0 0 14px; color:var(--navy); }
.editorial-copy p { color:var(--muted); line-height:1.9; margin:0 0 14px; }
.editorial-list { display:grid; gap:12px; margin-top:18px; }
.editorial-list .item { padding:14px 16px; border-radius:18px; background:#f8fbfd; border:1px solid #e4edf4; color:#455e77; }
.collection-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.collection-card { background:rgba(255,255,255,.90); border-radius:28px; overflow:hidden; box-shadow:var(--shadow); backdrop-filter: blur(8px); }
.collection-card .photo { aspect-ratio: 1 / .9; overflow:hidden; }
.collection-card .photo img { width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.collection-card:hover .photo img { transform:scale(1.04); }
.collection-card .copy { padding:22px; }
.collection-card h3 { margin:0 0 10px; color:var(--navy); }
.collection-card p { margin:0; color:var(--muted); line-height:1.8; }
.dark-banner { border-radius:32px; overflow:hidden; position:relative; min-height:420px; box-shadow:var(--shadow); }
.dark-banner img { width:100%; height:100%; object-fit:cover; filter:brightness(.72); }
.dark-banner .overlay-copy { position:absolute; inset:auto 0 0 0; padding:36px; color:#fff; background:linear-gradient(180deg, transparent 0%, rgba(5,20,38,.86) 70%, rgba(5,20,38,.96) 100%); }
.dark-banner .overlay-copy h2 { margin:0 0 10px; font-size:clamp(1.8rem,3vw,2.6rem); }
.dark-banner .overlay-copy p { margin:0; color:rgba(255,255,255,.86); line-height:1.85; max-width:820px; }
.luxury-note { background:linear-gradient(135deg,#fff, #f8fbff); border:1px solid #e1ebf3; padding:18px 20px; border-radius:20px; color:#4b647d; }
.product-card .product-image { aspect-ratio:1 / .92; }
.product-card .product-image img { object-position:center; }
@media (max-width: 1100px) { .minimal-feature-grid, .collection-grid, .editorial-grid, .editorial-grid.reverse { grid-template-columns:1fr; } }
@media (max-width: 760px) { .minimal-feature-grid, .collection-grid { grid-template-columns:1fr; } .dark-banner { min-height:320px; } }

.announcement-bar { background:#081c35; color:#fff; padding:12px 0; font-size:.92rem; }
.announcement-bar .container { display:flex; justify-content:space-between; gap:16px; align-items:center; flex-wrap:wrap; }
.hero-aside-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; margin-top:18px; }
.hero-aside-card { background:#fff; border-radius:22px; box-shadow:var(--shadow); overflow:hidden; }
.hero-aside-card img { width:100%; height:160px; object-fit:cover; }
.hero-aside-card .copy { padding:16px; }
.hero-aside-card h4 { margin:0 0 8px; color:var(--navy); }
.hero-aside-card p { margin:0; color:var(--muted); line-height:1.75; font-size:.94rem; }
.curation-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.service-card-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.service-card { background:#fff; padding:24px; border-radius:24px; box-shadow:var(--shadow); }
.service-card h4 { margin:0 0 8px; color:var(--navy); }
.service-card p { margin:0; color:var(--muted); line-height:1.8; }
.editorial-banner-slim { background:linear-gradient(135deg,#f5fbff,#f8fafc); border:1px solid #e1ebf3; border-radius:28px; padding:28px 30px; display:flex; justify-content:space-between; gap:22px; align-items:center; flex-wrap:wrap; }
.quote-panel { background:#fff; border-radius:30px; box-shadow:var(--shadow); padding:28px; }
.quote-panel blockquote { margin:0; font-size:1.2rem; line-height:1.9; color:var(--navy); }
.quote-panel footer { margin-top:16px; color:var(--muted); }
.pd-hero { padding:34px 0 24px; }
.pd-layout { display:grid; grid-template-columns: 1.05fr .95fr; gap:28px; align-items:start; }
.pd-photo { background:#fff; border-radius:32px; box-shadow:var(--shadow); overflow:hidden; }
.pd-photo img { width:100%; display:block; aspect-ratio:1/.85; object-fit:cover; }
.pd-info { background:#fff; border-radius:32px; box-shadow:var(--shadow); padding:34px; }
.pd-info h1 { margin:8px 0 12px; color:var(--navy); font-size:clamp(2rem,4vw,3rem); }
.pd-kicker { color:var(--ocean); font-weight:700; letter-spacing:.04em; }
.pd-desc { color:var(--muted); line-height:1.95; font-size:1rem; }
.pd-price { font-size:2rem; color:var(--navy); font-weight:800; margin:18px 0 6px; }
.pd-specs { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:22px 0; }
.pd-spec { background:#f8fbfd; border:1px solid #e3edf4; border-radius:20px; padding:16px; }
.pd-spec strong { display:block; color:var(--navy); margin-bottom:8px; }
.pd-qty-row { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin-top:20px; }
.pd-qty-box { display:flex; align-items:center; border:1px solid #d8e4ef; border-radius:999px; overflow:hidden; }
.pd-qty-box button { width:44px; height:44px; border:none; background:#fff; cursor:pointer; font-size:1.2rem; }
.pd-qty-box input { width:60px; border:none; text-align:center; outline:none; }
.breadcrumb { color:var(--muted); font-size:.94rem; margin-bottom:16px; }
.detail-note { background:#e7fbff; border:1px solid #dce9f6; border-radius:18px; padding:14px 16px; color:#32597c; margin-top:18px; }
.stacked-info { display:grid; gap:16px; }
.stacked-info .luxury-note { margin-top:0; }
@media (max-width:1100px){ .pd-layout, .curation-grid, .service-card-grid, .hero-aside-grid { grid-template-columns:1fr 1fr; } .pd-layout { grid-template-columns:1fr; } .service-card-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:760px){ .hero-aside-grid, .service-card-grid, .curation-grid, .pd-specs { grid-template-columns:1fr; } .pd-info { padding:24px; } }

.story-immersive { display:grid; grid-template-columns:1.1fr .9fr; gap:24px; align-items:center; }
.mosaic-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.mosaic-grid img { width:100%; height:220px; object-fit:cover; border-radius:22px; box-shadow:var(--shadow); }
.signature-band { background:#0b2341; color:#fff; border-radius:32px; padding:34px; box-shadow:var(--shadow); }
.signature-band h2 { margin:0 0 12px; }
.signature-band p { margin:0; color:rgba(255,255,255,.85); line-height:1.9; }
.showcase-split { display:grid; grid-template-columns: .95fr 1.05fr; gap:24px; align-items:stretch; }
.showcase-card { background:rgba(255,255,255,.90); border-radius:28px; box-shadow:var(--shadow); overflow:hidden; backdrop-filter: blur(8px); }
.showcase-card img { width:100%; height:100%; object-fit:cover; min-height:400px; }
.showcase-copy { padding:32px; }
.showcase-copy h3 { margin:0 0 12px; color:var(--navy); font-size:1.9rem; }
.showcase-copy p { color:var(--muted); line-height:1.9; }
.badge-cloud { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.badge-cloud span { background:#f3f8fc; color:#42617c; padding:10px 14px; border-radius:999px; }
.testimonial-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.testimonial-card { background:rgba(255,255,255,.90); border-radius:24px; box-shadow:var(--shadow); padding:24px; backdrop-filter: blur(8px); }
.testimonial-card p { margin:0; color:var(--muted); line-height:1.85; }
.testimonial-card strong { display:block; color:var(--navy); margin-top:14px; }
.faq-list { display:grid; gap:14px; }
.faq-item { background:#fff; border-radius:22px; box-shadow:var(--shadow); padding:6px 22px; }
.faq-item summary { cursor:pointer; list-style:none; font-weight:800; color:var(--navy); padding:18px 0; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item p { color:var(--muted); line-height:1.85; padding:0 0 18px; margin:0; }
.pd-gallery { display:grid; gap:14px; }
.pd-thumb-row { display:flex; gap:12px; flex-wrap:wrap; }
.pd-thumb { border:none; background:#fff; padding:0; width:110px; height:82px; border-radius:18px; overflow:hidden; cursor:pointer; box-shadow:var(--shadow); border:2px solid transparent; }
.pd-thumb.active { border-color: var(--navy); }
.pd-thumb img { width:100%; height:100%; object-fit:cover; }
.dual-note-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.info-box { background:rgba(255,255,255,.90); border-radius:26px; box-shadow:var(--shadow); padding:26px; backdrop-filter: blur(8px); }
.info-box h3 { margin:0 0 12px; color:var(--navy); }
.info-box p, .info-box li { color:var(--muted); line-height:1.85; }
.info-box ul { margin:0; padding-left:18px; }
@media (max-width:1100px){ .story-immersive, .showcase-split, .testimonial-grid, .dual-note-grid { grid-template-columns:1fr; } }
@media (max-width:760px){ .mosaic-grid { grid-template-columns:1fr; } .mosaic-grid img { height:190px; } }

.reveal-up { opacity:0; transform:translateY(28px); transition:opacity .8s ease, transform .8s ease; }
.reveal-up.revealed { opacity:1; transform:translateY(0); }
.btn { position:relative; overflow:hidden; }
.btn::after { content:""; position:absolute; inset:0 auto 0 -120%; width:60%; background:linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); transform:skewX(-24deg); transition:.6s ease; }
.btn:hover::after { left:140%; }
.product-card, .collection-card, .hero-aside-card, .service-card, .testimonial-card, .gift-card, .campaign-card { transition:transform .28s ease, box-shadow .28s ease; }
.product-card:hover, .collection-card:hover, .hero-aside-card:hover, .service-card:hover, .testimonial-card:hover, .gift-card:hover, .campaign-card:hover { transform:translateY(-6px); box-shadow:0 22px 48px rgba(8,31,59,.14); }
.home-carousel-wrap { padding-top:8px; }
.home-carousel { position:relative; border-radius:34px; overflow:hidden; min-height:520px; box-shadow:var(--shadow); }
.home-slide { position:absolute; inset:0; opacity:0; pointer-events:none; transition:opacity .7s ease, transform .7s ease; transform:scale(1.02); }
.home-slide.active { opacity:1; pointer-events:auto; transform:scale(1); }
.home-slide img { width:100%; height:100%; object-fit:cover; filter:brightness(.75); }
.home-slide-copy { position:absolute; left:0; right:0; bottom:0; padding:42px; color:#fff; background:linear-gradient(180deg, transparent 0%, rgba(4,18,35,.62) 52%, rgba(4,18,35,.9) 100%); }
.home-slide-copy .eyebrow { display:inline-flex; background:rgba(255,255,255,.12); padding:10px 14px; border-radius:999px; font-weight:700; margin-bottom:16px; }
.home-slide-copy h2 { margin:0 0 12px; font-size:clamp(2rem,4vw,3.4rem); max-width:860px; line-height:1.18; }
.home-slide-copy p { margin:0; line-height:1.9; color:rgba(255,255,255,.88); max-width:820px; }
.home-carousel-controls { position:absolute; inset:auto 22px 22px auto; display:flex; gap:10px; z-index:3; }
.carousel-nav { width:48px; height:48px; border:none; border-radius:999px; background:rgba(255,255,255,.9); color:var(--navy); cursor:pointer; font-size:1.15rem; box-shadow:0 10px 24px rgba(2,18,35,.18); }
.carousel-dots { position:absolute; left:42px; bottom:34px; display:flex; gap:10px; z-index:3; }
.carousel-dot { width:12px; height:12px; border:none; border-radius:999px; background:rgba(255,255,255,.45); cursor:pointer; }
.carousel-dot.active { width:34px; background:#fff; }
.campaign-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.campaign-card { background:rgba(255,255,255,.90); border-radius:28px; overflow:hidden; box-shadow:var(--shadow); backdrop-filter: blur(8px); }
.campaign-card img { width:100%; height:220px; object-fit:cover; }
.campaign-card .copy { padding:24px; }
.campaign-card .tag { display:inline-flex; background:#e7fbff; color:var(--navy); padding:8px 12px; border-radius:999px; font-size:.86rem; font-weight:700; margin-bottom:12px; }
.campaign-card h3 { margin:0 0 10px; color:var(--navy); }
.campaign-card p { margin:0; color:var(--muted); line-height:1.8; }
.gift-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.gift-card { background:rgba(255,255,255,.90); border-radius:28px; overflow:hidden; box-shadow:var(--shadow); backdrop-filter: blur(8px); }
.gift-card img { width:100%; height:250px; object-fit:cover; }
.gift-card .copy { padding:24px; }
.gift-card h3 { margin:0 0 10px; color:var(--navy); }
.gift-card p { margin:0; color:var(--muted); line-height:1.8; }
.gift-meta { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:16px; }
.gift-meta strong { color:var(--navy); font-size:1.2rem; }
.commerce-banner { background:linear-gradient(135deg, rgba(243,249,255,.92), rgba(255,255,255,.9) 42%, rgba(238,245,249,.92)), url("assets/oysters.png") right -40px center / 260px auto no-repeat; border-radius:32px; border:1px solid #dfebf3; padding:32px; box-shadow: var(--shadow); }
.commerce-banner h2 { margin:0 0 12px; color:var(--navy); }
.commerce-banner p { margin:0; color:var(--muted); line-height:1.9; }
.pd-stage { position:relative; }
.pd-gallery-nav { position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border:none; border-radius:999px; background:rgba(255,255,255,.88); cursor:pointer; box-shadow:0 10px 24px rgba(4,20,38,.18); z-index:2; }
.pd-gallery-nav.prev { left:18px; }
.pd-gallery-nav.next { right:18px; }
.full-commercial-grid { display:grid; grid-template-columns: 1fr 1fr; gap:22px; }
.highlight-panel { border-radius:28px; overflow:hidden; box-shadow:var(--shadow); background:#fff; }
.highlight-panel img { width:100%; height:320px; object-fit:cover; }
.highlight-panel .copy { padding:28px; }
.highlight-panel h3 { margin:0 0 10px; color:var(--navy); }
.highlight-panel p { margin:0; color:var(--muted); line-height:1.85; }
@media (max-width:1100px){ .campaign-grid, .gift-grid, .full-commercial-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:760px){ .home-carousel { min-height:420px; } .home-slide-copy { padding:24px; } .carousel-dots { left:24px; bottom:24px; } .home-carousel-controls { right:16px; bottom:16px; } .campaign-grid, .gift-grid, .full-commercial-grid { grid-template-columns:1fr; } }


@media (max-width: 760px) {
  .section::before,
  #campaigns::before,
  #gift-zone::before,
  #story::before,
  #products::before,
  #cooperation::before,
  #faq::before { left: 10px; right: 10px; inset: 10px 0; background-size: 220px auto, cover; }
}



/* Mobile product-list compact layout: perfume-site style */
@media (max-width: 760px) {
  /* 商品列表改成 2 欄，不再一張圖滿版 */
  #products .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 12px !important;
  }

  #products .product-card {
    border-radius: 18px !important;
  }

  #products .product-image,
  #products .product-card .product-image {
    height: 145px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    background: rgba(255,255,255,.88) !important;
  }

  #products .product-image img,
  #products .product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  #products .product-tag {
    top: 8px !important;
    left: 8px !important;
    padding: 5px 8px !important;
    font-size: .72rem !important;
  }

  #products .product-body {
    padding: 12px 12px 14px !important;
  }

  #products .product-body h3 {
    font-size: .95rem !important;
    line-height: 1.45 !important;
    margin: 0 0 6px !important;
    min-height: 42px !important;
  }

  #products .product-meta {
    gap: 5px !important;
    margin-bottom: 6px !important;
  }

  #products .meta-pill {
    font-size: .7rem !important;
    padding: 4px 7px !important;
  }

  #products .product-meta .meta-pill:nth-child(2),
  #products .product-meta .meta-pill:nth-child(3) {
    display: none !important;
  }

  #products .product-desc {
    display: none !important;
  }

  #products .price-row {
    margin-top: 6px !important;
  }

  #products .price span {
    font-size: .72rem !important;
  }

  #products .price strong {
    font-size: 1.08rem !important;
    line-height: 1.2 !important;
  }

  #products .card-actions {
    margin-top: 10px !important;
    gap: 6px !important;
  }

  #products .card-actions .btn {
    padding: 9px 8px !important;
    font-size: .82rem !important;
  }

  #products .card-actions .btn-outline {
    display: none !important;
  }

  /* 分類區維持 2 欄，但卡片再矮一點 */
  #products .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #products .category-card {
    padding: 12px !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }

  #products .category-emoji {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
    border-radius: 14px !important;
  }

  #products .category-card h3 {
    font-size: .9rem !important;
    margin-bottom: 2px !important;
  }

  #products .category-card p {
    font-size: .74rem !important;
    line-height: 1.35 !important;
  }

  /* 搜尋與工具列手機版滿版，不擠 */
  #products .product-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  #products .search-box {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* 禮盒、活動圖片手機版也縮小 */
  #gift-zone .gift-card img,
  #campaigns .campaign-card img {
    height: 175px !important;
    object-fit: cover !important;
  }

  #gift-zone .gift-card .copy,
  #campaigns .campaign-card .copy {
    padding: 16px !important;
  }

  #gift-zone .gift-card h3,
  #campaigns .campaign-card h3 {
    font-size: 1rem !important;
  }

  #gift-zone .gift-card p,
  #campaigns .campaign-card p {
    font-size: .86rem !important;
    line-height: 1.65 !important;
  }
}

@media (max-width: 420px) {
  #products .products-grid {
    gap: 12px 10px !important;
  }

  #products .product-image,
  #products .product-card .product-image {
    height: 132px !important;
  }

  #products .product-body {
    padding: 10px 10px 12px !important;
  }

  #products .product-body h3 {
    font-size: .88rem !important;
    min-height: 38px !important;
  }

  #products .card-actions .btn {
    font-size: .78rem !important;
  }

  #gift-zone .gift-card img,
  #campaigns .campaign-card img {
    height: 160px !important;
  }
}

/* Product image compact fix v2: apply to phone and small tablet widths */
@media (max-width: 900px) {
  #products .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 12px !important;
  }

  #products .product-card {
    border-radius: 18px !important;
  }

  #products .product-card > .product-image,
  #products .product-card > a.product-image,
  #products .product-image,
  #products .product-card .product-image {
    display: block !important;
    height: clamp(105px, 22vw, 150px) !important;
    max-height: 150px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    background: rgba(255,255,255,.9) !important;
  }

  #products .product-card > .product-image img,
  #products .product-card > a.product-image img,
  #products .product-image img,
  #products .product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    max-height: 150px !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  #products .product-body {
    padding: 12px 12px 14px !important;
  }

  #products .product-body h3 {
    font-size: .92rem !important;
    line-height: 1.4 !important;
    min-height: 40px !important;
    margin-bottom: 6px !important;
  }

  #products .product-desc {
    display: none !important;
  }

  #products .product-meta .meta-pill:nth-child(2),
  #products .product-meta .meta-pill:nth-child(3) {
    display: none !important;
  }

  #products .card-actions .btn-outline {
    display: none !important;
  }
}

@media (max-width: 620px) {
  #products .product-card > .product-image,
  #products .product-card > a.product-image,
  #products .product-image,
  #products .product-card .product-image {
    height: clamp(96px, 24vw, 132px) !important;
    max-height: 132px !important;
  }

  #products .product-card > .product-image img,
  #products .product-card > a.product-image img,
  #products .product-image img,
  #products .product-card .product-image img {
    max-height: 132px !important;
  }
}
