/* Dolly Dolphin — shared styles for index, catalogue and product pages.
   Palette from the logo and brand kit: ocean blue #4AA6E0, coral pink #FF8FAE, pure white;
   deeper shades of the same hues carry text so it stays readable.
   Type from the brand kit: bold rounded sans for display (Nunito), 思源黑体 / 苹方 for Chinese, Manrope for body.
   Deliberately single (light) theme: the public brand site matches the printed brand kit. */
:root {
  color-scheme: light;
  --ink: #0E2B44;
  --muted: #56697A;
  --blue: #4AA6E0;
  --blue-deep: #1F6FA8;
  --blue-ink: #0D3A5E;
  --sky: #EBF6FD;
  --sky-line: #CFE6F6;
  --pink: #FF8FAE;
  --pink-deep: #C23E66;
  --blush: #FFF1F5;
  --white: #FFFFFF;
  --line: #DCE8F1;
  --f-display: "Nunito", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --f-sans: "Manrope", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html[data-lang="en"] [lang="zh"], html[data-lang="zh"] [lang="en"] { display: none !important; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; margin: 0; color: var(--blue-ink); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0; }
i.sci { font-style: italic; color: var(--muted); }
.lead { font-size: 18px; color: var(--muted); max-width: 42em; }

/* the label mark echoes the logo's "D": pink above, blue below */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); margin: 0; }
.label::before { content: ""; width: 12px; height: 12px; border-radius: 3px 12px 12px 3px; background: linear-gradient(180deg, var(--pink) 0 48%, var(--blue) 52% 100%); flex: none; }
html[data-lang="zh"] .label { letter-spacing: .1em; }
.label.light { color: #FFD3DF; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 25px; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.pink { background: var(--pink); color: var(--blue-ink); }
.btn.blue { background: var(--blue-deep); color: #fff; }
.btn.ghost { box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); color: #fff; }
.btn.line { box-shadow: inset 0 0 0 2px var(--blue-deep); color: var(--blue-deep); }
.btn.small { height: 40px; padding: 0 18px; font-size: 14px; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--white); z-index: 30; }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.site-head .logo img { height: 44px; width: auto; }
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--blue-deep); }
.site-nav a[aria-current="page"] { color: var(--blue-ink); border-bottom-color: var(--pink); }
.lang { display: flex; border: 1px solid var(--sky-line); border-radius: 18px; overflow: hidden; flex: none; }
.lang button { padding: 6px 14px; font-size: 13px; font-weight: 800; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; }
.menu-btn { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--blue-ink); }

/* bands */
section.band { padding-block: 96px; }
section.band.sky { background: var(--sky); }
section.band.blush { background: var(--blush); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head > div { display: flex; flex-direction: column; gap: 14px; max-width: 46em; }

/* product card (catalogue, home, related) */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--blue); box-shadow: 0 14px 30px -18px rgba(13,58,94,.35); transform: translateY(-2px); }
.card .ph { aspect-ratio: 4 / 3; max-width: 100%; background: var(--white); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card .group { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); }
.card h3 { font-size: 19px; }
.card .alt { font-size: 14px; color: var(--muted); }
.card i.sci { font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.chip { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 12px; background: var(--sky); color: var(--blue-deep); white-space: nowrap; }
.chip.pink { background: var(--blush); color: var(--pink-deep); }

/* contact band and footer */
.contact { background: linear-gradient(135deg, var(--blue-ink) 0%, #164E7C 100%); color: #fff; position: relative; overflow: hidden; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; padding-block: 96px; position: relative; }
.contact h2 { color: #fff; margin: 14px 0 16px; }
.contact p { color: rgba(255,255,255,.85); }
.contact dl { margin: 0; border-top: 2px solid var(--pink); }
.contact dl div { display: grid; grid-template-columns: 8em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact dt { color: rgba(255,255,255,.65); font-size: 14px; }
.contact dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.copy-btn { font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; margin-left: 10px; }
.contact .copy-btn { color: #FFD3DF; }
.contact .mark { position: absolute; right: -80px; bottom: -90px; width: 380px; opacity: .1; pointer-events: none; }
.site-foot { background: #0A2D4A; color: rgba(255,255,255,.65); font-size: 13px; }
.site-foot .wrap { padding-block: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: rgba(255,255,255,.85); }

@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 16px var(--gutter-l); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--pink-deep); }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  section.band { padding-block: 72px; }
}
@media (max-width: 560px) {
  .grid { gap: 14px 12px; }
  .card h3 { font-size: 16px; }
  .card .body { padding: 10px 12px 12px; }
  .card .alt, .card i.sci { font-size: 12.5px; }
  .contact dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .site-head .logo img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }

/* enquiry form (PHP site) */
.contact dl { margin-top: 24px; }
.enquiry { background: rgba(255,255,255,.98); color: var(--ink); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-self: start; box-shadow: 0 24px 40px -28px rgba(0,0,0,.5); }
.enquiry label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.enquiry .l { font-size: 13px; font-weight: 700; color: var(--muted); }
.enquiry input, .enquiry textarea { width: 100%; border: 1.5px solid var(--sky-line); border-radius: 12px; padding: 10px 12px; font-size: 15px; background: var(--white); color: var(--ink); }
.enquiry input:focus, .enquiry textarea:focus { outline: none; border-color: var(--blue); }
.enquiry textarea { resize: vertical; min-height: 104px; }
.enquiry .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.enquiry .btn { align-self: flex-start; margin-top: 4px; }
.enquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.notice.ok { background: #E4F6EC; color: #1C6B45; }
.notice.bad { background: var(--blush); color: var(--pink-deep); }
@media (max-width: 560px) { .enquiry .row2 { grid-template-columns: minmax(0, 1fr); } .enquiry { padding: 18px; } }
