@charset "utf-8";
/* ==========================================================================
   v2rayNG安卓版 · base.css
   设计令牌 / 重置 / 排版 / 按钮 / 页头 / 页脚 / 通用容器 / 滚动淡入
   ========================================================================== */

:root{
  /* —— 底色与面板 —— */
  --bg:#FFFFFF;
  --bg-panel:#F5F5F6;
  --bg-panel-2:#14161A;
  --border:#E4E4E6;
  --accent:#D5E01E;
  --accent-dark:#5C6600;
  --text:#101114;
  --text-muted:#5F6168;
  --success:#0E8A5F;
  --warn:#B8730B;
  --error:#C6362B;

  /* —— 深色装置层 —— */
  --hero-line:#2A2D33;
  --hero-line-soft:#1E2127;
  --hero-chip:#1B1E24;
  --hero-chip-on:#33373F;
  --hero-text:#FFFFFF;
  --hero-text-dim:#B7BAC2;
  --hero-text-mute:#8A8F99;
  --hero-glow:rgba(213,224,30,.10);
  --hero-ring:rgba(255,255,255,.055);
  --veil-1:rgba(255,255,255,.035);
  --veil-2:rgba(255,255,255,.06);
  --card-app-bg:linear-gradient(158deg,#1D2027 0%,#15171C 64%);
  --card-cfg-bg:linear-gradient(160deg,#1A1D23 0%,#14161A 100%);

  /* —— 浅色薄染与遮罩 —— */
  --tint-accent:rgba(213,224,30,.14);
  --tint-warn:rgba(184,115,11,.10);
  --tint-error:rgba(198,54,43,.09);
  --tint-ink:rgba(16,17,20,.05);
  --tint-ink-2:rgba(16,17,20,.09);
  --accent-edge:rgba(16,17,20,.12);
  --scrim:rgba(16,17,20,.46);

  /* —— 字体 —— */
  --font-display:"Inter","Noto Sans SC","Noto Sans JP","Noto Sans KR","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-body:"Inter","Noto Sans SC","Noto Sans JP","Noto Sans KR","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans SC",monospace;

  /* —— 圆角 —— */
  --radius-xs:8px;
  --radius-sm:10px;
  --radius-md:12px;
  --radius-card:14px;
  --radius-lg:20px;
  --radius-pill:999px;

  /* —— 版心 —— */
  --gutter:24px;
  --shell:1320px;
  --head-shell:min(100%,calc(1300px + var(--gutter) * 2));
  --head-h:76px;

  /* —— 投影 —— */
  --shadow-panel:inset 0 1px 0 var(--veil-2),0 30px 60px -34px rgba(16,17,20,.42);
  --shadow-card:0 1px 2px rgba(16,17,20,.04),0 14px 30px -18px rgba(16,17,20,.14);
  --shadow-pop:0 18px 40px -22px rgba(16,17,20,.30);
  --shadow-device-a:0 40px 70px -26px rgba(0,0,0,.66),inset 0 1px 0 var(--veil-2);
  --shadow-device-b:0 26px 52px -24px rgba(0,0,0,.58),inset 0 1px 0 var(--veil-1);
  --shadow-device-c:0 20px 40px -22px rgba(0,0,0,.50);
  --shadow-cta:0 12px 26px -12px rgba(213,224,30,.50);
  --shadow-cta-hover:0 16px 32px -12px rgba(213,224,30,.65);
}

/* ---------------------------------------------------------------
   重置
   --------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
  scroll-behavior:smooth;
}
html.nav-open{overflow:hidden}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  overflow-x:clip;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}
ul,ol{margin:0;padding:0;list-style:none}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
hr{border:0;border-top:1px solid var(--border);margin:0}

/* ---------------------------------------------------------------
   排版
   --------------------------------------------------------------- */
h1,h2,h3,h4{
  margin:0;
  font-family:var(--font-display);
  font-weight:800;
  line-height:1.16;
  letter-spacing:-.02em;
  color:var(--text);
  text-wrap:balance;
}
h1{font-size:clamp(34px,3.6vw,48px);line-height:1.12}
h2{font-size:clamp(24px,2.4vw,34px)}
h3{font-size:clamp(18px,1.5vw,22px);font-weight:700;letter-spacing:-.01em;line-height:1.35}
h4{font-size:17px;font-weight:700;letter-spacing:-.005em;line-height:1.4}
p{margin:0}
strong,b{font-weight:700}

/* 中文标题禁止词中折行:关键词组用 <span class="kw"> 包住 */
.kw{white-space:nowrap}

code,kbd,samp,pre{font-family:var(--font-mono)}
code{
  font-size:.92em;
  overflow-wrap:anywhere;
  word-break:break-word;
}
pre{
  margin:0;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
pre code{overflow-wrap:normal;word-break:normal;font-size:inherit}
a code{color:inherit}

/* ---------------------------------------------------------------
   版心与区块
   --------------------------------------------------------------- */
.wrap{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{padding-top:88px;padding-bottom:88px}
.section.is-panel{
  background:var(--bg-panel);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.section.is-dark{
  background:var(--bg-panel-2);
  color:var(--hero-text);
}
.section.is-dark h2,.section.is-dark h3{color:var(--hero-text)}
.sec-head{max-width:760px}
.sec-title + .sec-lede{margin-top:14px}
.sec-lede{font-size:16.5px;line-height:1.75;color:var(--text-muted)}
.section.is-dark .sec-lede{color:var(--hero-text-dim)}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:.06em;
  color:var(--text-muted);
}
.eyebrow::before{content:"";width:20px;height:1px;flex-shrink:0;background:var(--text-muted)}
.section.is-dark .eyebrow{color:var(--hero-text-mute)}

.grid-2,.grid-3,.grid-4{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.grid-2 > *,.grid-3 > *,.grid-4 > *{min-width:0}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ---------------------------------------------------------------
   按钮
   --------------------------------------------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:50px;
  padding:0 24px;
  border:1px solid transparent;
  border-radius:var(--radius-sm);
  font-family:var(--font-body);
  font-size:15.5px;
  font-weight:700;
  letter-spacing:.005em;
  text-align:center;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
}
.btn svg{width:16px;height:16px;flex-shrink:0}
.btn-primary{
  background:var(--accent);
  color:var(--bg-panel-2);
  box-shadow:var(--shadow-cta);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:var(--shadow-cta-hover)}
.btn-primary:active{transform:translateY(0)}
.btn-outline{
  background:var(--bg);
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow-card);
}
.btn-outline:hover{border-color:var(--text-muted);background:var(--bg-panel)}
.btn-ghost{
  color:var(--hero-text);
  border-color:transparent;
  padding:0 18px;
}
.btn-ghost svg{width:14px;height:14px;transition:transform .18s ease}
.btn-ghost:hover{border-color:var(--hero-line);background:var(--veil-1)}
.btn-ghost:hover svg{transform:translateX(2px)}
.btn-sm{min-height:40px;padding:0 16px;font-size:14px;border-radius:var(--radius-xs)}
.btn-block{width:100%}
.btn:focus-visible,.nav-item:focus-visible,.lang-btn:focus-visible,.nav-toggle:focus-visible,.tab:focus-visible{
  outline:2px solid var(--accent-dark);
  outline-offset:2px;
}

/* ---------------------------------------------------------------
   页头
   --------------------------------------------------------------- */
.site-head{
  position:relative;
  z-index:60;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.head-inner{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  gap:22px;
  height:var(--head-h);
  width:100%;
  max-width:var(--head-shell);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.brand{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;min-width:0}
.brand-mark{width:34px;height:34px;flex-shrink:0}
.brand-name{
  font-family:var(--font-display);
  font-size:17px;
  font-weight:800;
  letter-spacing:-.015em;
  white-space:nowrap;
}
.nav{display:flex;align-items:center;min-width:0;margin-left:auto}
.nav-list{
  display:flex;
  align-items:center;
  gap:2px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-item{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 14px;
  border-radius:var(--radius-pill);
  font-size:14.5px;
  font-weight:600;
  color:var(--text-muted);
  white-space:nowrap;
  transition:background-color .18s ease,color .18s ease;
}
.nav-item:hover{color:var(--text);background:var(--bg-panel)}
.nav-item.is-active{background:var(--accent);color:var(--text);font-weight:700}

.head-tools{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:12px}
.lang{position:relative;flex:0 0 auto}
.lang-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:34px;
  padding:0 13px;
  border:1px solid var(--border);
  border-radius:var(--radius-pill);
  background:var(--bg);
  font-size:13.5px;
  font-weight:600;
  color:var(--text);
  transition:border-color .18s ease,background-color .18s ease;
}
.lang-btn:hover{border-color:var(--text-muted);background:var(--bg-panel)}
.lang-btn svg{width:11px;height:11px;flex-shrink:0;color:var(--text-muted)}
.lang-short{display:none}
.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:8;
  min-width:172px;
  padding:6px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-pop);
}
.lang-menu[hidden]{display:none}
.lang-opt{
  display:block;
  padding:9px 12px;
  border-radius:var(--radius-xs);
  font-size:13.5px;
  font-weight:600;
  color:var(--text-muted);
}
.lang-opt:hover{background:var(--bg-panel);color:var(--text)}
.lang-opt.is-current{background:var(--tint-ink);color:var(--text)}

.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  flex:0 0 auto;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--bg);
}
.nav-toggle:hover{background:var(--bg-panel)}
.nav-toggle .bars{position:relative;display:block;width:18px;height:2px;border-radius:2px;background:var(--text)}
.nav-toggle .bars::before,.nav-toggle .bars::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  border-radius:2px;
  background:var(--text);
  transition:transform .18s ease,top .18s ease;
}
.nav-toggle .bars::before{top:-6px}
.nav-toggle .bars::after{top:6px}
html.nav-open .nav-toggle .bars{background:transparent}
html.nav-open .nav-toggle .bars::before{top:0;transform:rotate(45deg)}
html.nav-open .nav-toggle .bars::after{top:0;transform:rotate(-45deg)}

.nav-drawer{
  position:fixed;
  left:0;
  right:0;
  top:var(--head-h);
  z-index:2;
  max-height:calc(100dvh - var(--head-h));
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:10px var(--gutter) 24px;
  background:var(--bg);
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow-pop);
}
.nav-drawer[hidden]{display:none}
.drawer-list{list-style:none;margin:0;padding:0}
.drawer-list > li{border-bottom:1px solid var(--border)}
.drawer-list > li:last-child{border-bottom:0}
.drawer-link{
  display:flex;
  align-items:center;
  width:100%;
  min-height:48px;
  padding:12px 6px;
  font-size:15.5px;
  font-weight:600;
  color:var(--text);
}
.drawer-link:hover{color:var(--accent-dark)}
.drawer-link.is-active{color:var(--accent-dark);font-weight:700}
.drawer-langs .drawer-link{font-size:14.5px;font-weight:500;color:var(--text-muted)}
.drawer-langs .drawer-link.is-current{color:var(--text);font-weight:700}
.drawer-label{
  margin:0;
  padding:18px 6px 6px;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.12em;
  color:var(--text-muted);
}
.nav-veil{position:fixed;inset:0;z-index:1;background:var(--scrim)}
.nav-veil[hidden]{display:none}

/* ---------------------------------------------------------------
   页脚
   --------------------------------------------------------------- */
.site-foot{
  background:var(--bg-panel);
  border-top:1px solid var(--border);
}
.foot-inner{
  width:100%;
  max-width:var(--head-shell);
  margin-inline:auto;
  padding-top:56px;
  padding-bottom:26px;
  padding-inline:var(--gutter);
}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1.2fr 1fr;gap:40px 32px}
.foot-col{min-width:0}
.foot-brand p{
  margin-top:14px;
  max-width:34em;
  font-size:14px;
  line-height:1.75;
  color:var(--text-muted);
}
.foot-title{
  margin:0 0 14px;
  font-family:var(--font-mono);
  font-size:11.5px;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--text-muted);
}
.foot-list{display:flex;flex-direction:column;gap:9px;list-style:none;margin:0;padding:0}
.foot-list a{
  font-size:14px;
  color:var(--text-muted);
  overflow-wrap:anywhere;
}
.foot-list a:hover{color:var(--text);text-decoration:underline;text-underline-offset:3px}
.foot-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 20px;
  margin-top:44px;
  padding-top:20px;
  border-top:1px solid var(--border);
  font-size:13px;
  color:var(--text-muted);
}
.foot-note{font-family:var(--font-mono);font-size:12px}
.foot-legal{font-weight:600;color:var(--text)}
.foot-legal:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------------------------------------------------------------
   通用卡片 / 面板
   --------------------------------------------------------------- */
.card-surface{
  padding:24px;
  background:var(--bg);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-card);
  min-width:0;
}
.card-surface.is-dark{
  background:var(--bg-panel-2);
  border-color:var(--hero-line);
  color:var(--hero-text);
}
.card-surface.is-dark h3,.card-surface.is-dark h4{color:var(--hero-text)}
.panel{
  padding:24px;
  background:var(--bg-panel);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  min-width:0;
}
.stack-16{display:flex;flex-direction:column;gap:16px}
.stack-20{display:flex;flex-direction:column;gap:20px}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* 微倾斜装饰类:窄屏一律拉直,避免包围盒横向溢出 */
.tilt-l{transform:rotate(-1.5deg)}
.tilt-r{transform:rotate(2deg)}

/* ---------------------------------------------------------------
   滚动淡入
   --------------------------------------------------------------- */
.reveal{
  opacity:0;
  transform:translate3d(0,14px,0);
  transition:opacity .6s ease,transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.shown{opacity:1;transform:translate3d(0,0,0)}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .btn:hover,.btn-ghost:hover svg{transform:none}
}

/* ---------------------------------------------------------------
   响应式
   --------------------------------------------------------------- */
@media (max-width:1180px){
  .nav-item{padding:0 11px;font-size:13.5px}
}
@media (max-width:860px){
  .nav{display:none}
  .head-tools{margin-left:auto}
  .nav-toggle{display:inline-flex}
  .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:768px){
  h1{font-size:clamp(24px,7vw,30px)}
  h2{font-size:clamp(21px,5.6vw,26px)}
  /* 窄屏放开关键词组的 nowrap,长词随版心折行,避免撑破页面 */
  .kw{white-space:normal}
  .section{padding-top:56px;padding-bottom:56px}
  .grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  :root{--gutter:16px}
  .grid-2,.grid-3,.grid-4{grid-template-columns:minmax(0,1fr)}
  .tilt-l,.tilt-r{transform:none}
  .foot-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .foot-bottom{margin-top:32px}
  .lang-full{display:none}
  .lang-short{display:inline}
  .btn{min-height:46px;padding:0 18px;font-size:15px}
}
@media (max-width:380px){
  .brand-name{font-size:15.5px}
  .head-inner{gap:14px}
}