/* ============================================================
   柳皓升® Music / Howsen™ Music — Official Site
   Strict monochrome · Pure black / white / gray
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:           #ffffff;
  --surface:      #f5f5f5;
  --surface-2:    #ebebeb;
  --text:         #000000;
  --text-2:       #5c5c5c;
  --text-3:       #8a8a8a;
  --border:       rgba(0,0,0,0.10);
  --border-strong:rgba(0,0,0,0.22);
  --nav-bg:       rgba(255,255,255,0.78);
  --glass:        rgba(255,255,255,0.85);
  --shadow:       0 20px 60px rgba(0,0,0,0.10);
  --btn:          #000;
  --btn-text:     #fff;
  --nav-h:        88px;
  --subnav-h:     56px;
  --maxw:         1120px;
  --ease:         cubic-bezier(0.28,0.11,0.22,1);
}
html.dark {
  --bg:           #000000;
  --surface:      #0d0d0d;
  --surface-2:    #1a1a1a;
  --text:         #ffffff;
  --text-2:       #a3a3a3;
  --text-3:       #6b6b6b;
  --border:       rgba(255,255,255,0.12);
  --border-strong:rgba(255,255,255,0.28);
  --nav-bg:       rgba(0,0,0,0.72);
  --glass:        rgba(15,15,15,0.88);
  --shadow:       0 20px 60px rgba(0,0,0,0.6);
  --btn:          #fff;
  --btn-text:     #000;
}

/* ---------- Reset ---------- */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Display","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",system-ui,sans-serif;
  font-size:16px; line-height:1.7;
  -webkit-font-smoothing:antialiased;
  transition:background .4s var(--ease), color .4s var(--ease);
  overflow-x:hidden;
}
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button { font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
::selection { background:var(--text); color:var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position:fixed; top:0; left:0; right:0;
  height:var(--nav-h);
  z-index:100;
  background:var(--nav-bg);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--border);
}
.nav-inner {
  height:100%; max-width:var(--maxw); margin:0 auto;
  padding:0 32px;
  display:flex; align-items:center; gap:40px;
}
.brand { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.brand-logo {
  width:64px; height:64px;
  border-radius:16px;
  object-fit:cover;
}
html.dark .brand-logo { filter:invert(1); }
.brand-text { display:flex; flex-direction:column; line-height:1.15; }
.brand-zh { font-size:20px; font-weight:700; letter-spacing:-0.01em; }
.brand-en { font-size:12.5px; color:var(--text-3); letter-spacing:0.06em; margin-top:2px; }

.nav-links { display:flex; align-items:center; gap:4px; margin-left:auto; height:100%; }
.nav-link {
  position:relative;
  padding:10px 18px; font-size:16px; font-weight:500;
  color:var(--text-2); border-radius:980px;
  transition:color .2s;
}
.nav-link:hover { color:var(--text); }
.nav-link.active { color:var(--text); }
.nav-link.active::after {
  content:""; position:absolute; left:16px; right:16px; bottom:4px;
  height:2px; background:var(--text); border-radius:2px;
}

.nav-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.icon-btn {
  width:38px; height:38px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-2); transition:background .2s,color .2s;
}
.icon-btn:hover { background:var(--surface-2); color:var(--text); }
.icon-btn svg { width:18px; height:18px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.lang-toggle {
  display:flex; padding:4px;
  border:1px solid var(--border-strong); border-radius:980px;
}
.lang-toggle button {
  padding:5px 12px; border-radius:980px; font-size:12.5px;
  color:var(--text-3); transition:background .2s,color .2s;
}
.lang-toggle button.active { background:var(--btn); color:var(--btn-text); }

.hamburger { display:none; }

/* ---------- Subnav ---------- */
.subnav {
  position:fixed; top:var(--nav-h); left:0; right:0;
  height:var(--subnav-h);
  background:var(--nav-bg);
  -webkit-backdrop-filter:saturate(180%) blur(20px);
  backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid var(--border);
  z-index:90;
  display:flex; align-items:center;
}
.subnav-inner {
  max-width:var(--maxw); width:100%; margin:0 auto; padding:0 32px;
  display:flex; gap:6px; overflow-x:auto;
}
.subnav-inner::-webkit-scrollbar { display:none; }
.subtab {
  padding:8px 16px; font-size:13.5px; color:var(--text-3);
  border-radius:980px; white-space:nowrap;
  transition:background .2s,color .2s;
}
.subtab:hover { color:var(--text); }
.subtab.active { background:var(--text); color:var(--bg); }

/* ---------- Views ---------- */
main { padding-top:calc(var(--nav-h) + var(--subnav-h) + 60px); padding-bottom:80px; }
.view { display:none; }
.view.active { display:block; animation:fadeUp .5s var(--ease); }
@keyframes fadeUp {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}
.container { max-width:var(--maxw); margin:0 auto; padding:0 32px; }

/* Page hero — each sub-page */
.page-hero { padding:40px 0 60px; }
.eyebrow {
  font-size:12px; letter-spacing:0.24em; color:var(--text-3);
  text-transform:uppercase; margin-bottom:24px; font-weight:500;
}
.h-display {
  font-size:clamp(52px,8vw,104px);
  font-weight:700; letter-spacing:-0.035em; line-height:1.0;
  margin-bottom:28px;
}
.h-display .sup { font-size:0.35em; vertical-align:super; font-weight:600; }
.lead {
  font-size:clamp(17px,1.5vw,20px); color:var(--text-2);
  line-height:1.8; max-width:720px;
}

/* Content blocks */
.block { padding:80px 0; border-top:1px solid var(--border); }
.block:first-of-type { border-top:0; }
.block-grid {
  display:grid; grid-template-columns:1fr 1fr; gap:60px;
  align-items:start;
}
.h-section {
  font-size:clamp(28px,3.4vw,40px); font-weight:600;
  letter-spacing:-0.02em; line-height:1.15; margin-bottom:24px;
}
.prose p {
  font-size:17px; color:var(--text-2); line-height:1.95;
  margin-bottom:22px; max-width:680px;
}

/* Sub-page two-column body: giant index + prose */
.subpage-body {
  display:grid;
  grid-template-columns:180px 1fr;
  gap:48px;
  align-items:start;
  padding-bottom:40px;
}
.subpage-index {
  font-size:96px; font-weight:700;
  letter-spacing:-0.04em; line-height:0.9;
  color:var(--text-3);
  font-variant-numeric:tabular-nums;
}
.subpage-index small {
  display:block; font-size:12px; letter-spacing:0.2em;
  color:var(--text-3); margin-top:16px; font-weight:500;
}
.prose p strong { color:var(--text); font-weight:600; }

.portrait {
  aspect-ratio:4/5; background:var(--surface);
  border:1px solid var(--border); border-radius:24px;
  overflow:hidden;
}
.portrait img { width:100%; height:100%; object-fit:cover; display:block; }
.portrait-light { display:none; }
html:not(.dark) .portrait-dark { display:none; }
html:not(.dark) .portrait-light { display:block; }

.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border-radius:980px; font-size:14.5px; font-weight:500;
  border:1px solid var(--border-strong); color:var(--text);
  transition:background .2s,color .2s,transform .2s var(--ease);
  margin-top:16px;
}
.btn:hover { background:var(--text); color:var(--bg); transform:scale(1.02); }
.btn-solid { background:var(--btn); color:var(--btn-text); border-color:var(--btn); }
.btn-solid:hover { opacity:0.85; }
.btn svg { width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Music list rows */
.music-row {
  padding:48px 0; border-top:1px solid var(--border);
  display:grid; grid-template-columns:80px 1fr 1.2fr; gap:32px; align-items:start;
}
.music-row:first-of-type { border-top:0; }
.music-row .num { font-size:13px; color:var(--text-3); font-variant-numeric:tabular-nums; padding-top:8px; }
.music-row h3 { font-size:24px; font-weight:600; letter-spacing:-0.01em; }
.music-row .body p { font-size:15px; color:var(--text-2); line-height:1.85; margin-bottom:12px; }

/* Pricing */
.pricing-hero {
  padding:60px 0 80px;
}
.pricing-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:24px; padding:64px 56px;
  margin-top:40px;
}
.pricing-card h3 { font-size:22px; margin-bottom:20px; font-weight:600; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:32px 0; }
.step { padding:24px; background:var(--bg); border:1px solid var(--border); border-radius:16px; }
.step .n { font-size:12px; color:var(--text-3); margin-bottom:10px; letter-spacing:0.1em; }
.step h4 { font-size:16px; margin-bottom:8px; font-weight:600; }
.step p { font-size:13.5px; color:var(--text-2); line-height:1.7; }

/* Accounts */
.account-grid {
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:40px;
}
.account-card {
  display:flex; align-items:center; gap:16px;
  padding:22px 24px; background:var(--surface);
  border:1px solid var(--border); border-radius:16px;
  transition:transform .2s var(--ease), border-color .2s;
}
.account-card:hover { transform:translateY(-2px); border-color:var(--border-strong); }
.account-card .platform {
  width:44px; height:44px; border-radius:12px;
  background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:700; flex-shrink:0;
}
.account-card .name { font-size:15px; font-weight:600; }
.account-card .handle { font-size:13px; color:var(--text-3); margin-top:2px; }

.contact-block {
  margin-top:56px; padding:40px; background:var(--surface);
  border:1px solid var(--border); border-radius:24px;
  display:grid; grid-template-columns:repeat(3,1fr); gap:24px;
}
.contact-block .item .label { font-size:12px; color:var(--text-3); letter-spacing:0.12em; margin-bottom:8px; text-transform:uppercase; }
.contact-block .item .value { font-size:16px; font-weight:500; }

/* ---------- Footer (grand) ---------- */
.footer {
  border-top:1px solid var(--border);
  background:var(--surface);
  padding:80px 0 32px;
}
.footer-hero {
  padding-bottom:60px; border-bottom:1px solid var(--border);
}
.footer-brand-row {
  display:flex; align-items:center; gap:28px; margin-bottom:32px;
}
.footer-brand-row img {
  width:140px; height:140px;
  border-radius:32px;
  object-fit:cover;
}
html.dark .footer-brand-row img { filter:invert(1); }
.footer-brand-row .fname { font-size:clamp(32px,5vw,56px); font-weight:700; letter-spacing:-0.025em; line-height:1.05; }
.footer-brand-row .fsub { font-size:clamp(14px,1.6vw,18px); color:var(--text-3); margin-top:6px; letter-spacing:0.04em; }

.footer-grid {
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:40px; padding:60px 0;
}
.footer-grid h4 {
  font-size:12px; color:var(--text-3); letter-spacing:0.14em;
  text-transform:uppercase; margin-bottom:20px; font-weight:600;
}
.footer-grid ul { list-style:none; display:flex; flex-direction:column; gap:12px; }
.footer-grid a { font-size:14.5px; color:var(--text-2); transition:color .2s; }
.footer-grid a:hover { color:var(--text); }
.footer-about p { font-size:14px; color:var(--text-2); line-height:1.8; max-width:320px; }

.social-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
.social-btn {
  width:42px; height:42px; border-radius:50%;
  border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  color:var(--text-2); transition:background .2s,color .2s;
}
.social-btn:hover { background:var(--text); color:var(--bg); border-color:var(--text); }
.social-btn svg { width:17px; height:17px; fill:currentColor; }
.social-btn img { width:17px; height:17px; display:block; filter:invert(0); }
html.dark .social-btn img { filter:invert(1); }

.platform-icon {
  width:36px; height:36px;
  flex-shrink:0;
  filter:invert(0);
}
html.dark .platform-icon { filter:invert(1); }
.platform-icon-color { filter:grayscale(1); }
html.dark .platform-icon-color { filter:grayscale(1) invert(1); }

/* Quote card */
.quote-card {
  position:relative;
  margin-top:48px;
  padding:48px 64px;
  border:1px solid var(--border);
  border-radius:22px;
  background:var(--surface);
  overflow:hidden;
}
.quote-card::before,
.quote-card::after {
  position:absolute;
  font-family:Georgia, serif;
  font-size:200px;
  line-height:1;
  color:var(--text-3);
  opacity:.18;
  user-select:none;
  pointer-events:none;
}
.quote-card::before {
  content:"\201C";
  top:6px; left:18px;
}
.quote-card::after {
  content:"\201D";
  bottom:-56px; right:18px;
}
.quote-label {
  position:relative; z-index:1;
  font-size:12px; font-weight:600; letter-spacing:.12em;
  color:var(--text-3); text-transform:uppercase;
  margin-bottom:14px;
}
.quote-text {
  position:relative; z-index:1;
  font-size:clamp(20px,2.4vw,28px);
  font-weight:500; line-height:1.5;
  letter-spacing:-0.005em;
  min-height:2.9em;
  transition:opacity .4s var(--ease);
}
.quote-text.fade { opacity:0; }
.platform-icon-text {
  width:36px; height:36px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:15px; font-weight:600; color:var(--text-2);
  border:1px solid var(--border-strong); border-radius:10px;
}
.section-label {
  font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-3);
  margin:40px 0 16px;
}
.account-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }

/* ---------- Wide map banner ---------- */
.map-banner {
  position:relative;
  height:220px;
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  margin-top:20px;
}
#map {
  position:absolute; inset:0;
  background:var(--surface-2);
  filter:grayscale(100%);
}
html.dark #map { filter:grayscale(100%) invert(0.92) contrast(0.9); }
.map-overlay {
  position:absolute; left:20px; bottom:20px;
  display:flex; align-items:center; gap:20px;
  background:var(--glass-strong, rgba(255,255,255,0.88));
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  border:1px solid var(--border-strong);
  border-radius:16px;
  padding:14px 20px;
  z-index:500;
}
html.dark .map-overlay { background:rgba(20,20,24,0.88); }
.map-title { font-size:15px; font-weight:600; }
.map-sub { font-size:12px; color:var(--text-3); margin-top:3px; }
.map-open-btn {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 16px; border-radius:980px;
  background:var(--btn); color:var(--btn-text);
  font-size:13px; font-weight:500;
}
.map-open-btn svg { width:13px; height:13px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Leaflet dark tweaks */
.leaflet-container { background:var(--surface-2); font-family:inherit; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background:var(--bg); color:var(--text); }
.leaflet-bar a { background:var(--bg); color:var(--text); border-color:var(--border); }

.footer-bottom {
  padding-top:28px; display:flex; justify-content:space-between;
  flex-wrap:wrap; gap:12px; font-size:12.5px; color:var(--text-3);
}
.footer-bottom .links { display:flex; gap:24px; }
.footer-bottom a:hover { color:var(--text); }

/* ---------- Privacy banner ---------- */
.privacy-banner {
  position:fixed; left:50%; bottom:24px;
  transform:translateX(-50%) translateY(160%);
  width:min(720px, calc(100% - 32px));
  background:var(--glass);
  -webkit-backdrop-filter:saturate(180%) blur(24px);
  backdrop-filter:saturate(180%) blur(24px);
  border:1px solid var(--border-strong);
  border-radius:20px; box-shadow:var(--shadow);
  padding:26px 30px; z-index:200;
  transition:transform .5s var(--ease);
}
.privacy-banner.show { transform:translateX(-50%) translateY(0); }
.privacy-banner h4 { font-size:15px; font-weight:600; margin-bottom:12px; }
.privacy-banner p { font-size:12.5px; color:var(--text-2); line-height:1.7; margin-bottom:8px; }
.privacy-banner .actions { margin-top:16px; display:flex; justify-content:flex-end; }
.privacy-banner .accept {
  padding:9px 22px; background:var(--btn); color:var(--btn-text);
  border-radius:980px; font-size:13.5px; font-weight:500;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --nav-h: 60px; --subnav-h: 46px; }
  html:not(.dark) :root { --nav-bg: rgba(255,255,255,0.65); }
  html.dark :root { --nav-bg: rgba(18,18,20,0.55); }

  .nav, .subnav {
    -webkit-backdrop-filter:saturate(200%) blur(28px) !important;
    backdrop-filter:saturate(200%) blur(28px) !important;
    border-bottom:1px solid var(--border);
  }

  .nav-inner { padding:0 16px; gap:10px; }
  .brand-logo { width:38px; height:38px; border-radius:10px; }
  .brand-zh { font-size:14px; }
  .brand-en { display:block; font-size:10px; margin-top:1px; letter-spacing:.08em; }
  .brand-text { line-height:1.15; }

  .lang-toggle { margin-left:auto; padding:3px; }
  .nav-actions { margin-left:auto; }
  .lang-toggle button { padding:4px 9px; font-size:11.5px; }
  .icon-btn { width:32px; height:32px; }
  .icon-btn svg { width:16px; height:16px; }

  .nav-links { display:none; position:fixed; top:var(--nav-h); left:0; right:0;
    flex-direction:column; align-items:stretch; gap:4px;
    height:auto;
    background:rgba(255,255,255,0.92);
    -webkit-backdrop-filter:saturate(200%) blur(30px); backdrop-filter:saturate(200%) blur(30px);
    border-bottom:1px solid var(--border);
    padding:14px 16px 24px;
    transform:translateY(-8px); opacity:0; pointer-events:none;
    transition:opacity .28s var(--ease), transform .28s var(--ease);
  }
  html.dark .nav-links { background:rgba(18,18,22,0.92); }
  .nav-links.open { display:flex; opacity:1; transform:translateY(0); pointer-events:auto; }
  .nav-link {
    height:auto; padding:16px 14px; border-radius:14px; font-size:17px;
    font-weight:500; letter-spacing:.01em;
  }
  .nav-link:hover { background:rgba(0,0,0,0.05); }
  html.dark .nav-link:hover { background:rgba(255,255,255,0.06); }
  .nav-link.active { background:rgba(0,0,0,0.06); color:var(--text); }
  html.dark .nav-link.active { background:rgba(255,255,255,0.08); }
  .nav-link.active::after { display:none; }
  .hamburger { display:flex; }

  .container { padding:0 20px; }
  .subnav-inner { padding:0 16px; gap:4px; }
  .subtab { padding:7px 13px; font-size:13px; }

  .page-hero { padding:20px 0 36px; }
  .h-display { font-size:clamp(40px,13vw,64px); }
  .lead { font-size:16px; }

  .subpage-body { grid-template-columns:1fr; gap:16px; }
  .subpage-index { font-size:48px; }
  .prose p { font-size:15.5px; }
  .block { padding:48px 0; }
  .block-grid { grid-template-columns:1fr; gap:28px; }
  .music-row { grid-template-columns:1fr; gap:12px; padding:36px 0; }
  .music-row .num { padding-top:0; }
  .steps { grid-template-columns:1fr; }
  .account-grid { grid-template-columns:1fr; }
  .contact-block { grid-template-columns:1fr; padding:24px; gap:18px; }
  .pricing-card { padding:32px 22px; }

  .footer-grid {
    grid-template-columns:1fr 1fr;
    gap:24px 20px; padding:36px 0;
  }
  .footer-grid > div:first-child { grid-column:1 / -1; }
  .footer-brand-row { flex-direction:column; align-items:flex-start; gap:16px; }
  .footer-brand-row img { width:84px; height:84px; border-radius:20px; }

  .map-banner { height:260px; border-radius:18px; }
  .map-overlay {
    left:12px; right:12px; bottom:12px;
    flex-direction:column; align-items:flex-start; gap:10px;
    padding:14px 16px;
  }
  .map-open-btn { align-self:stretch; justify-content:center; width:100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .view.active { animation:none; }
}
