/* R17 shared theme (local preview, 2026-10-27)
   Used by the homepage and the sub pages so every page has the same liquid glass nav and the same deep space background.
   Header markup needs class r17-nav; r17-theme.js adds the nav behaviour and the star fields */
@property --r16-ang{syntax:'<angle>';inherits:false;initial-value:0deg}
:root{
  --r16-gold:#f0cf98;--r16-gold-2:#d9b26f;--r16-gold-3:#fff1d2;--r16-blue:#38bdf8;--r16-navy:#0b1426;
  --r16-ink:#050506;--r16-text:#f4f1ea;--r16-mute:rgba(244,241,234,.62);--r16-line:rgba(255,255,255,.12);
  --r16-ease:cubic-bezier(.2,.8,.1,1)
}
html,body{overflow-x:clip}
html body{background:#000}

/* ---------------- 1. Liquid glass navigation ---------------- */
html body>header.r17-nav{position:fixed;inset:14px 0 auto 0;margin-inline:auto;z-index:60;width:min(1320px,calc(100% - 32px));max-width:none;height:62px;
  display:flex;align-items:center;gap:10px;padding:0 7px 0 22px;border:0;border-radius:999px;background:transparent;isolation:isolate;
  transition:width .55s var(--r16-ease),height .55s var(--r16-ease),inset .55s var(--r16-ease)}
html body>header.r17-nav::before{content:"";position:absolute;inset:0;z-index:-2;border-radius:inherit;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.035) 48%,rgba(255,255,255,.06)),rgba(16,16,20,.38);
  -webkit-backdrop-filter:blur(22px) saturate(185%);backdrop-filter:blur(22px) saturate(185%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(255,255,255,.06),inset 0 0 22px rgba(255,255,255,.035),0 18px 50px -18px rgba(0,0,0,.85),0 0 0 .5px rgba(0,0,0,.6)}
/* edge refraction ring: bright top left and bottom right like curved glass */
html body>header.r17-nav::after{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;padding:1px;pointer-events:none;
  background:linear-gradient(125deg,rgba(255,255,255,.55),rgba(255,255,255,.08) 22%,rgba(255,255,255,0) 45%,rgba(240,207,152,.22) 70%,rgba(255,255,255,.4));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.r16-sheen{position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .4s;
  background:radial-gradient(180px 120px at var(--sx,50%) var(--sy,50%),rgba(255,255,255,.16),rgba(255,255,255,.04) 45%,transparent 70%)}
header:hover .r16-sheen{opacity:1}
html body>header.r17-nav.r16-compact{inset:8px 0 auto 0;height:54px;width:min(1180px,calc(100% - 32px))}
html body>header.r17-nav .brand{margin-right:0;flex:none;display:flex;align-items:center}
html body>header.r17-nav .brand-logo{width:112px;height:auto;display:block;transition:width .5s var(--r16-ease)}
html body>header.r17-nav.r16-compact .brand-logo{width:100px}
html body>header.r17-nav nav{position:static;transform:none;left:auto;top:auto;display:flex;align-items:center;gap:2px;margin:0 auto;padding:0;background:none;font-size:13px}
html body>header.r17-nav nav a{position:relative;padding:8px 12px;border-radius:999px;color:rgba(255,255,255,.74);text-transform:none;letter-spacing:0;font-weight:500;font-size:13px;line-height:1.2;white-space:nowrap;text-decoration:none;text-shadow:none;transition:color .25s,background .25s,box-shadow .25s}
html body>header.r17-nav nav a:hover{color:#fff;background:rgba(255,255,255,.08);text-shadow:none}
html body>header.r17-nav nav a.r16-active{color:var(--r16-gold-3);background:linear-gradient(180deg,rgba(240,207,152,.16),rgba(240,207,152,.05));box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 0 1px rgba(240,207,152,.18)}
html body>header.r17-nav .language-toggle{flex:0 0 100px;width:100px;height:38px;margin:0;padding:3px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02));box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
html body>header.r17-nav .language-toggle button{position:relative;z-index:1;flex:1;height:100%;padding:0;border:0;background:none;color:rgba(255,255,255,.62);font-size:12px;font-weight:600;cursor:pointer;text-shadow:none;transition:color .3s}
html body>header.r17-nav .language-toggle button[aria-pressed=true]{color:#fff;text-shadow:none}
html body>header.r17-nav .language-thumb{top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/2);border-radius:999px;animation:none;
  background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.1));box-shadow:inset 0 1px 0 rgba(255,255,255,.5),inset 0 -1px 0 rgba(255,255,255,.08),0 4px 12px rgba(0,0,0,.45)}
html body>header.r17-nav .header-contact{display:inline-flex;align-items:center;flex:none;height:46px;margin:0;padding:0 20px;border-radius:999px;font-size:13.5px;font-weight:600;color:#1a1308;text-decoration:none;white-space:nowrap;
  background:linear-gradient(180deg,#fbe6bb 0%,#e7c487 52%,#c99f5d 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -2px 6px rgba(120,80,20,.35),0 8px 24px -8px rgba(240,207,152,.6);transition:transform .3s var(--r16-ease),box-shadow .3s}
html body>header.r17-nav .header-contact:hover{color:#1a1308;transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.8),inset 0 -2px 6px rgba(120,80,20,.35),0 12px 30px -8px rgba(240,207,152,.8),0 0 0 1px rgba(56,189,248,.25)}
html body>header.r17-nav.r16-compact .header-contact{height:40px}
html body>header.r17-nav .menu-toggle{display:none}
@media(min-width:1180px) and (max-width:1379px){html body>header.r17-nav nav a{padding:8px 9px;font-size:12.5px}html body>header.r17-nav{padding-left:18px}html body>header.r17-nav .brand-logo{width:100px}html body>header.r17-nav .header-contact{padding:0 16px}}
@media(max-width:1179px){
  html body>header.r17-nav{width:calc(100% - 24px);height:58px;padding:0 6px 0 18px;inset:10px 0 auto 0}
  html body>header.r17-nav.r16-compact{width:calc(100% - 24px);height:54px;inset:8px 0 auto 0}
  html body>header.r17-nav .brand{margin-right:auto}
  html body>header.r17-nav .menu-toggle{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 15px;border-radius:999px;border:1px solid rgba(255,255,255,.16);
    background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.03));color:#fff;font-size:13px;font-weight:600;box-shadow:inset 0 1px 0 rgba(255,255,255,.22);cursor:pointer}
  html body>header.r17-nav .menu-toggle::before{content:"";width:16px;height:10px;background:linear-gradient(currentColor 0 0) top/100% 1.6px no-repeat,linear-gradient(currentColor 0 0) bottom/70% 1.6px no-repeat;transition:transform .3s}
  html body>header.r17-nav .menu-toggle[aria-expanded=true]::before{transform:scaleX(.7)}
  html body>header.r17-nav nav{position:absolute;top:calc(100% + 10px);left:0;right:0;display:none;flex-direction:column;align-items:stretch;gap:2px;margin:0;padding:10px;border-radius:26px;
    background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.03)),rgba(14,14,18,.66);-webkit-backdrop-filter:blur(28px) saturate(185%);backdrop-filter:blur(28px) saturate(185%);
    border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 30px 60px -20px rgba(0,0,0,.9);max-height:calc(100svh - 100px);overflow:auto}
  html body>header.r17-nav nav.open{display:flex;animation:r16-sheet .45s var(--r16-ease) both}
  html body>header.r17-nav nav a{padding:14px 16px;font-size:16px;border-radius:16px;color:rgba(255,255,255,.86)}
  html body>header.r17-nav nav a+a{box-shadow:0 -1px 0 rgba(255,255,255,.06)}
  html body>header.r17-nav nav a.r16-active{box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 0 0 1px rgba(240,207,152,.18)}
}
@media(max-width:760px){
  html body>header.r17-nav .header-contact{display:none}
  html body>header.r17-nav .brand-logo,html body>header.r17-nav.r16-compact .brand-logo{width:92px}
  html body>header.r17-nav .language-toggle{flex-basis:88px;width:88px;height:36px}
  html body>header.r17-nav .menu-toggle{height:38px;padding:0 13px;font-size:12px}
}
@keyframes r16-sheet{from{opacity:0;transform:translateY(-8px) scale(.98);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}

@media(max-width:1179px){html body>header.r17-nav nav{left:auto;right:0;width:min(380px,100%);max-width:none;transform:none}}
@media(max-width:760px){html body>header.r17-nav nav{left:0;right:0;width:auto}}
/* ---- nav: logo left, glass pill only around the links, language and contact right, no outer frame ---- */
html body>header.r17-nav,html body>header.r17-nav.r16-compact{width:100%;max-width:none;inset:0 0 auto 0;height:86px;padding:0 clamp(20px,3.2vw,60px);border-radius:0;gap:12px}
html body>header.r17-nav.r16-compact{height:72px}
html body>header.r17-nav::after{display:none}
html body>header.r17-nav::before{inset:0 0 -34px 0;border-radius:0;background:linear-gradient(180deg,rgba(0,0,0,.86),rgba(0,0,0,.5) 55%,transparent);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;opacity:0;transition:opacity .5s}
html body>header.r17-nav.r16-compact::before{opacity:1}
html body>header.r17-nav .brand-logo{width:132px}
html body>header.r17-nav.r16-compact .brand-logo{width:116px}
html body>header.r17-nav .language-toggle{background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.03)),rgba(14,14,18,.4);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}
html body>header.r17-nav nav a::after{left:34%;right:34%;bottom:4px;height:1.5px;border-radius:2px;transform-origin:center}
@media(min-width:1180px){
  html body>header.r17-nav nav{position:relative;isolation:isolate;margin:0 auto;padding:5px;gap:2px;border-radius:999px;
    background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.02) 55%,rgba(255,255,255,.05)),rgba(12,12,16,.45);
    -webkit-backdrop-filter:blur(24px) saturate(185%);backdrop-filter:blur(24px) saturate(185%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.24),inset 0 -1px 0 rgba(255,255,255,.05),0 0 0 1px rgba(255,255,255,.1),0 18px 44px -18px rgba(0,0,0,.95)}
  html body>header.r17-nav nav::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;padding:1px;pointer-events:none;
    background:linear-gradient(125deg,rgba(255,255,255,.5),rgba(255,255,255,.06) 24%,transparent 48%,rgba(240,207,152,.2) 72%,rgba(255,255,255,.36));
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
  html body>header.r17-nav nav a{padding:9px 15px;font-size:13px;transition:color .25s,background .35s,box-shadow .35s,transform .35s var(--r16-ease)}
  /* iPhone liquid glass key: convex highlight on top, darker belly, bright rim, soft drop shadow */
  html body>header.r17-nav nav a:hover,html body>header.r17-nav nav a.r16-active{color:#fff;transform:translateY(-1px);text-shadow:0 1px 2px rgba(0,0,0,.55);
    background:radial-gradient(110% 80% at 50% -10%,rgba(255,255,255,.42),rgba(255,255,255,.08) 55%,transparent 75%),linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.04) 52%,rgba(255,255,255,.12));
    box-shadow:inset 0 1px 1px rgba(255,255,255,.75),inset 0 -1px 1px rgba(255,255,255,.22),inset 0 -8px 14px -8px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.16),0 8px 18px -8px rgba(0,0,0,.9),0 0 18px -6px rgba(255,255,255,.18)}
  html body>header.r17-nav nav a.r16-active{color:var(--r16-gold-3);
    background:radial-gradient(110% 80% at 50% -10%,rgba(255,240,210,.42),rgba(240,207,152,.1) 55%,transparent 75%),linear-gradient(180deg,rgba(240,207,152,.24),rgba(240,207,152,.05) 52%,rgba(240,207,152,.14));
    box-shadow:inset 0 1px 1px rgba(255,244,220,.8),inset 0 -1px 1px rgba(240,207,152,.25),inset 0 -8px 14px -8px rgba(0,0,0,.55),inset 0 0 0 1px rgba(240,207,152,.22),0 8px 18px -8px rgba(0,0,0,.9),0 0 20px -6px rgba(240,207,152,.4)}
  html body>header.r17-nav nav a.r16-active::after{transform:scaleX(1)}
  html body>header.r17-nav nav:hover .r16-sheen{opacity:1}
}
@media(min-width:1180px) and (max-width:1439px){html body>header.r17-nav nav a{padding:8px 10px;font-size:12.5px}html body>header.r17-nav .brand-logo{width:112px}html body>header.r17-nav .header-contact{padding:0 16px}}
@media(max-width:1179px){
  html body>header.r17-nav,html body>header.r17-nav.r16-compact{height:68px;padding:0 16px;inset:0 0 auto 0;width:100%}
  html body>header.r17-nav nav{right:16px;top:calc(100% + 4px)}
}
@media(max-width:760px){html body>header.r17-nav nav{left:12px;right:12px}html body>header.r17-nav .brand-logo,html body>header.r17-nav.r16-compact .brand-logo{width:100px}}

/* compact header: dark frosted fade so content never shows through the logo, still no frame */
html body>header.r17-nav.r16-compact::before{inset:0 0 -26px 0;background:linear-gradient(180deg,rgba(0,0,0,.9),rgba(0,0,0,.72) 62%,rgba(0,0,0,0));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  -webkit-mask-image:linear-gradient(180deg,#000 68%,transparent);mask-image:linear-gradient(180deg,#000 68%,transparent)}
@media(min-width:1180px){html body>header.r17-nav nav a:hover,html body>header.r17-nav nav a.r16-active{transform:translateY(-1px) scale(1.04)}}

/* ---- deep space star fields (canvases made by r17-theme.js) ---- */
.r17-stars-host{position:relative;isolation:isolate}
.r17-stars{position:absolute;top:0;bottom:0;left:calc(50% - 50vw);z-index:-1;width:100vw;height:100%;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(180deg,transparent,#000 14%,#000 86%,transparent)}
.r17-sky{position:fixed;inset:0;z-index:-1;width:100vw;height:100vh;pointer-events:none}
/* EN and 中文 labels inside the nav, for pages whose own stylesheet does not switch them */
.r17-nav .headline-zh{display:none}html[data-language=zh] .r17-nav .headline-zh{display:inline}html[data-language=zh] .r17-nav .headline-en{display:none}
/* the current page link (sub pages) gets the same gold glass key as the active section on the homepage */
@media(min-width:1180px){html body>header.r17-nav nav a[aria-current]{color:var(--r16-gold-3);transform:translateY(-1px) scale(1.04);
  background:radial-gradient(110% 80% at 50% -10%,rgba(255,240,210,.42),rgba(240,207,152,.1) 55%,transparent 75%),linear-gradient(180deg,rgba(240,207,152,.24),rgba(240,207,152,.05) 52%,rgba(240,207,152,.14));
  box-shadow:inset 0 1px 1px rgba(255,244,220,.8),inset 0 -1px 1px rgba(240,207,152,.25),inset 0 -8px 14px -8px rgba(0,0,0,.55),inset 0 0 0 1px rgba(240,207,152,.22),0 8px 18px -8px rgba(0,0,0,.9),0 0 20px -6px rgba(240,207,152,.4)}}