/* ==========================================================================
   base.css — 设计令牌 / 重置 / 排版 / 页头 / 页脚 / 首屏装置
   站点：V2Ray电脑版（v2rayforandroid.com）
   所有颜色、圆角、阴影只在本文件 :root 中定义，组件层一律引用变量。
   ========================================================================== */

:root{
  /* —— 基础色板 —— */
  --bg:#FEFDFB;
  --bg-panel:#FFFFFF;
  --bg-panel2:#F6F4F1;
  --border:#E9E5DF;
  --accent:#D8503A;
  --accent-dark:#A83A26;
  --text:#1E1C1A;
  --text-muted:#6E6A64;
  --success:#0E7C6B;
  --warn:#E8A33D;
  --error:#8C2B1F;

  /* —— 派生色 —— */
  --on-accent:#FFFFFF;
  --coral-soft:#F8E3DC;
  --coral-wash:#FDF1EC;
  --warn-soft:#FBEEDA;
  --warn-deep:#8F5F14;
  --success-soft:#E4F0ED;
  --success-deep:#0A5F52;
  --error-soft:#F7E4E0;
  --scrim:rgba(30,28,26,.30);
  --focus-ring:rgba(216,80,58,.34);

  /* —— 代码着色（只作用于 <pre>/<code> 内的语法字符） —— */
  --code-bg:#F6F4F1;
  --code-key:#A83A26;
  --code-str:#0E7C6B;
  --code-num:#8F5F14;
  --code-comment:#6E6A64;

  /* —— 阴影（分层景深） —— */
  --shadow-soft:0 1px 2px rgba(30,28,26,.04), 0 8px 20px -14px rgba(30,28,26,.12);
  --shadow-win:0 1px 1px rgba(30,28,26,.03), 0 16px 30px -20px rgba(30,28,26,.18), 0 46px 72px -42px rgba(30,28,26,.22);
  --shadow-float:0 2px 4px rgba(30,28,26,.05), 0 22px 36px -20px rgba(30,28,26,.24), 0 54px 78px -36px rgba(30,28,26,.26);
  --shadow-btn:0 10px 22px -14px rgba(216,80,58,.90), 0 2px 4px rgba(168,58,38,.16);
  --shadow-mark:0 6px 14px -8px rgba(216,80,58,.70);
  --shadow-knob:0 1px 2px rgba(30,28,26,.22);

  /* —— 圆角 —— */
  --r-xl:28px;
  --r-lg:20px;
  --r-md:16px;
  --r-sm:10px;
  --r-xs:8px;
  --r-pill:999px;

  /* —— 版心与节奏 —— */
  --shell:1240px;
  --head-shell:1280px;
  --gutter:24px;
  --head-h:78px;

  /* —— 字体族 —— */
  --font-display:Inter,'Noto Sans SC','Noto Sans JP','Noto Sans KR','PingFang SC','PingFang TC','Hiragino Sans GB','Microsoft YaHei','Microsoft JhengHei',sans-serif;
  --font-body:Inter,'Noto Sans SC','Noto Sans JP','Noto Sans KR','PingFang SC','PingFang TC','Hiragino Sans GB','Microsoft YaHei','Microsoft JhengHei',sans-serif;
  --font-mono:'JetBrains Mono','SFMono-Regular',Menlo,Consolas,'Liberation Mono',monospace;
}

/* ==========================================================================
   重置
   ========================================================================== */

*,*::before,*::after{box-sizing:border-box;}

html{-webkit-text-size-adjust:100%;}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
}

a{color:inherit;text-decoration:none;}
ul,ol{margin:0;padding:0;list-style:none;}
figure{margin:0;}
img{max-width:100%;}
svg{display:block;}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;}
input,select,textarea{font:inherit;}

:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--r-xs);}

/* 行内代码：超长订阅地址 / 安装包文件名必须可断行，防窄屏横向溢出 */
code,kbd,samp{font-family:var(--font-mono);}
:not(pre) > code{
  overflow-wrap:anywhere;
  word-break:break-word;
  padding:.12em .4em;
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  background:var(--bg-panel2);
  color:var(--text);
  font-size:.92em;
}

/* ==========================================================================
   排版
   ========================================================================== */

h1,h2,h3,h4{
  margin:0;
  font-family:var(--font-display);
  font-weight:800;
  line-height:1.18;
  letter-spacing:-.018em;
  text-wrap:balance;
}

h1{font-size:clamp(34px,3.35vw,48px);line-height:1.12;letter-spacing:-.022em;}
h2{font-size:clamp(24px,2.4vw,32px);}
h3{font-size:clamp(18px,1.6vw,21px);}
h4{font-size:16px;font-weight:700;}

p{margin:0 0 16px;}
p:last-child{margin-bottom:0;}

strong{font-weight:600;color:var(--text);}

::selection{background:var(--coral-soft);color:var(--text);}

/* 中文关键词组防词中折行 */
.nw{white-space:nowrap;}

/* ==========================================================================
   版心与区块节奏（横向留白只由 padding-inline 提供，任何断点都不清零）
   ========================================================================== */

.wrap{
  max-width:var(--shell);
  margin:0 auto;
  padding-inline:var(--gutter);
  min-width:0;
}

.section{padding-top:96px;padding-bottom:96px;}
.section--tight{padding-top:56px;padding-bottom:56px;}
.section--flush{padding-top:0;}

.section-head{max-width:66ch;margin-bottom:40px;}
.section-title{margin-bottom:14px;}
.section-sub{margin:0;font-size:15.5px;line-height:1.85;color:var(--text-muted);}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 20px;
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.06em;
  color:var(--success);
}
.eyebrow::before{
  content:"";
  width:6px;
  height:6px;
  flex:none;
  border-radius:var(--r-pill);
  background:var(--success);
}

.rule{height:1px;border:0;background:var(--border);margin:0;}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  height:52px;
  padding:0 28px;
  border-radius:var(--r-pill);
  font-family:var(--font-body);
  font-size:15.5px;
  font-weight:600;
  letter-spacing:.01em;
  transition:transform .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
}
.btn svg{width:18px;height:18px;flex:none;}

.btn-primary{
  background:var(--accent);
  color:var(--on-accent);
  box-shadow:var(--shadow-btn);
}
.btn-primary:hover{background:var(--accent-dark);transform:translateY(-1px);}

.btn-ghost{
  background:var(--bg-panel);
  color:var(--text);
  border:1px solid var(--border);
  box-shadow:var(--shadow-soft);
}
.btn-ghost:hover{border-color:var(--text-muted);transform:translateY(-1px);}

.btn-quiet{
  background:transparent;
  color:var(--accent-dark);
  border:1px solid var(--border);
}
.btn-quiet:hover{border-color:var(--accent);color:var(--accent-dark);}

.btn[disabled],.btn[aria-disabled="true"]{
  opacity:.48;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}

.btn-sm{height:44px;padding:0 20px;font-size:14px;}

.link-quiet{
  color:var(--accent-dark);
  font-size:13.5px;
  font-weight:600;
  border-bottom:1px solid var(--coral-soft);
  padding-bottom:1px;
}
.link-quiet:hover{border-bottom-color:var(--accent);}

/* ==========================================================================
   页头（品牌 / 桌面导航 / 工具区 / 抽屉 四者兄弟节点）
   ========================================================================== */

.site-head{position:relative;z-index:5;}

.head-inner{
  position:relative;
  z-index:60;
  max-width:min(100%, calc(var(--head-shell) + var(--gutter) * 2));
  margin:0 auto;
  padding-inline:var(--gutter);
  height:var(--head-h);
  display:flex;
  align-items:center;
  gap:36px;
  background:var(--bg);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex:none;
  font-family:var(--font-display);
  font-size:17px;
  font-weight:800;
  letter-spacing:-.01em;
  color:var(--text);
}
.brand-logo{width:32px;height:32px;flex:none;display:block;}

.main-nav{margin-left:auto;min-width:0;}

/* 桌面导航横排：ul 自身必须是 flex，否则 li 会逐行堆成竖列 */
.nav-list{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-list a{
  display:inline-block;
  padding:6px 0;
  font-size:14.5px;
  font-weight:500;
  color:var(--text-muted);
  transition:color .16s ease;
}
.nav-list a:hover{color:var(--text);}
.nav-list a[data-active]{color:var(--text);font-weight:700;}

.head-tools{display:flex;align-items:center;gap:10px;flex:none;}

/* 语言切换 */
.lang-switch{position:relative;}
.lang-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 13px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  font-size:13px;
  color:var(--text-muted);
  transition:border-color .16s ease,color .16s ease;
}
.lang-btn:hover{border-color:var(--text-muted);color:var(--text);}
.lang-caret{width:10px;height:10px;flex:none;color:var(--text-muted);}
.lang-short{display:none;}

.lang-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:80;
  min-width:158px;
  margin:0;
  padding:6px;
  list-style:none;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-win);
  display:none;
}
.lang-menu.is-open{display:block;}
.lang-menu a{
  display:block;
  width:100%;
  padding:10px 12px;
  border-radius:var(--r-sm);
  font-size:13.5px;
  color:var(--text);
}
.lang-menu a:hover{background:var(--bg-panel2);}
.lang-menu a.is-current{color:var(--accent-dark);font-weight:700;}

/* 汉堡按钮 */
.nav-burger{
  display:none;
  min-width:44px;
  min-height:44px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--bg-panel);
}
.burger-lines{position:relative;display:block;width:18px;height:12px;}
.burger-lines i{position:absolute;left:0;right:0;height:2px;border-radius:2px;background:var(--text);}
.burger-lines i:nth-child(1){top:0;}
.burger-lines i:nth-child(2){top:5px;}
.burger-lines i:nth-child(3){top:10px;}

/* 抽屉（实色背景，链接整行可点） */
.nav-drawer{
  position:fixed;
  top:var(--head-h);
  left:0;
  right:0;
  bottom:0;
  z-index:50;
  display:none;
  padding:8px var(--gutter) 40px;
  background:var(--bg-panel);
  border-top:1px solid var(--border);
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  max-height:calc(100dvh - var(--head-h));
}
.nav-drawer.is-open{display:block;}
.drawer-list{margin:0;padding:0;list-style:none;}
.drawer-list a{
  display:flex;
  align-items:center;
  width:100%;
  min-height:48px;
  padding:12px 2px;
  font-size:16px;
  color:var(--text);
  border-bottom:1px solid var(--border);
}
.drawer-list a[data-active]{color:var(--accent-dark);font-weight:700;}
.drawer-label{
  margin:22px 0 4px;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.drawer-langs{margin:0;padding:0;list-style:none;}
.drawer-langs a{
  display:flex;
  align-items:center;
  width:100%;
  min-height:48px;
  padding:12px 2px;
  font-size:15px;
  color:var(--text-muted);
  border-bottom:1px solid var(--border);
}
.drawer-langs a.is-current{color:var(--text);font-weight:700;}

.nav-veil{position:fixed;inset:0;z-index:40;background:var(--scrim);display:none;}
.nav-veil.is-open{display:block;}

html.nav-open{overflow:hidden;}

/* ==========================================================================
   首屏
   ========================================================================== */

.hero{
  max-width:var(--shell);
  margin:0 auto;
  padding-inline:var(--gutter);
  min-height:calc(100vh - 136px);
  display:flex;
  align-items:center;
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
  gap:56px;
  align-items:center;
  width:100%;
}

.hero-copy{max-width:560px;min-width:0;}

.hero-title{margin-bottom:22px;}

.hero-lead{margin-bottom:22px;font-size:16.5px;line-height:1.78;color:var(--text-muted);}

.hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 26px;}
.hero-chips li{
  font-size:12.5px;
  line-height:1;
  color:var(--text-muted);
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  padding:7px 12px;
}

.hero-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:0 0 30px;}

.plat-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:22px;
  padding-top:22px;
  border-top:1px solid var(--border);
}
.plat-row li{
  display:inline-flex;
  align-items:center;
  gap:9px;
  font-size:13.5px;
  font-weight:500;
  color:var(--text-muted);
}
.plat-ico{
  width:28px;
  height:28px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid var(--border);
  border-radius:var(--r-sm);
  background:var(--bg-panel2);
  color:var(--text);
}
.plat-ico svg{width:15px;height:15px;}
.plat-ico .ico-tux{width:14px;height:15px;}

/* ==========================================================================
   首屏装置：三层叠置客户端工作台（静态，无动画）
   ========================================================================== */

.stage-holder{min-width:0;}

.stage{position:relative;height:580px;}

/* 底层：淡珊瑚色几何块，自视口右缘探入，边缘切出两道斜角 */
.stage-block{
  position:absolute;
  top:46px;
  right:calc(-24px - max(0px,(100vw - 1240px) / 2));
  width:540px;
  height:450px;
  background:var(--coral-soft);
  border-radius:44px;
  clip-path:polygon(96px 0,100% 0,100% 100%,96px 100%,0 calc(100% - 96px),0 96px);
}

/* 中层：v2rayN 桌面窗口 */
.desk-win{
  position:absolute;
  top:6px;
  left:-4px;
  width:536px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-win);
  overflow:hidden;
}

.win-bar{
  height:36px;
  display:flex;
  align-items:center;
  gap:12px;
  padding-inline:15px;
  background:var(--bg-panel2);
  border-bottom:1px solid var(--border);
}
.win-dots{display:inline-flex;gap:6px;flex:none;}
.win-dots i{display:block;width:9px;height:9px;border-radius:var(--r-pill);flex:none;}
.win-dots i:nth-child(1){background:var(--accent);}
.win-dots i:nth-child(2){background:var(--warn);}
.win-dots i:nth-child(3){background:var(--success);}
.win-title{
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text-muted);
  letter-spacing:.01em;
}

.win-body{display:grid;grid-template-columns:132px minmax(0,1fr);}

.win-side{padding:16px 0;border-right:1px solid var(--border);}
.side-item{
  position:relative;
  display:block;
  padding:11px 16px;
  font-size:13px;
  color:var(--text-muted);
}
.side-item.is-current{color:var(--text);font-weight:600;background:var(--coral-wash);}
.side-item.is-current::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:3px;
  height:16px;
  margin-top:-8px;
  border-radius:0 var(--r-pill) var(--r-pill) 0;
  background:var(--accent);
}

.win-main{padding:16px 18px 60px;min-width:0;}

.set-label{
  margin:0 0 10px;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-muted);
}

.frow{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:3px 0;}
.fk{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);}
.fv{
  font-family:var(--font-mono);
  font-size:11.5px;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.switch-set{margin-top:14px;padding-top:12px;border-top:1px dashed var(--border);}
.srow{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 0;}
.sk{font-size:13px;color:var(--text);}

.sw{
  position:relative;
  flex:none;
  width:34px;
  height:19px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg-panel2);
}
.sw::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:13px;
  height:13px;
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  box-shadow:var(--shadow-knob);
  transition:transform .18s ease;
}
.sw.is-on{background:var(--accent);border-color:var(--accent);}
.sw.is-on::after{transform:translateX(15px);}

/* 顶层：向左微倾 3° 悬浮的安卓 VpnService 设置卡 */
.phone-card{
  position:absolute;
  top:364px;
  right:14px;
  width:306px;
  padding:16px 18px 14px;
  background:var(--bg-panel);
  border:1px solid var(--border);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-float);
  transform:rotate(-3deg);
}
.pc-head{display:flex;align-items:center;gap:10px;padding-bottom:12px;border-bottom:1px solid var(--border);}
.pc-ico{
  width:26px;
  height:26px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid var(--border);
  border-radius:var(--r-xs);
  background:var(--bg-panel2);
  color:var(--text);
}
.pc-ico svg{width:14px;height:14px;}
.pc-title{font-size:14px;font-weight:700;color:var(--text);}
.pc-tag{
  margin-left:auto;
  padding:3px 9px;
  border-radius:var(--r-pill);
  background:var(--warn-soft);
  color:var(--warn-deep);
  font-size:11px;
  font-weight:600;
  line-height:1.5;
}
.pc-list{margin:4px 0 0;}
.pc-list li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 0;}
.pk{font-size:13px;color:var(--text);}

/* 倾斜类装饰：窄屏一律摆正，避免长内容容器包围盒横向溢出 */
.tilt{transform:rotate(-.45deg);}

/* ==========================================================================
   页脚
   ========================================================================== */

.site-foot{margin-top:96px;border-top:1px solid var(--border);background:var(--bg);}

.foot-inner{
  max-width:var(--shell);
  margin:0 auto;
  padding-inline:var(--gutter);
  padding-top:64px;
  padding-bottom:26px;
}

.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1.3fr .9fr;gap:40px;}

.foot-brand{display:flex;flex-direction:column;gap:14px;min-width:0;}
.foot-desc{margin:0;max-width:36ch;font-size:13.5px;line-height:1.8;color:var(--text-muted);}

.foot-col{min-width:0;}
.foot-h{
  margin:0 0 16px;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.foot-list{display:flex;flex-direction:column;gap:10px;}
.foot-list a{font-size:13.5px;color:var(--text-muted);transition:color .16s ease;}
.foot-list a:hover{color:var(--text);}

.foot-kw{display:flex;flex-wrap:wrap;gap:8px;}
.foot-kw a{
  display:inline-block;
  max-width:100%;
  padding:6px 11px;
  border:1px solid var(--border);
  border-radius:var(--r-pill);
  background:var(--bg-panel);
  font-size:12.5px;
  color:var(--text-muted);
  transition:border-color .16s ease,color .16s ease;
}
.foot-kw a:hover{border-color:var(--text-muted);color:var(--text);}

.foot-bottom{
  margin-top:44px;
  padding-top:20px;
  border-top:1px solid var(--border);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 24px;
  font-size:12.5px;
  color:var(--text-muted);
}
.foot-copy{margin:0;}
.foot-legal{display:flex;flex-wrap:wrap;gap:18px;margin-left:auto;}
.foot-legal a{color:var(--text-muted);}
.foot-legal a:hover{color:var(--text);}

/* ==========================================================================
   滚动淡入 / 通用工具
   ========================================================================== */

.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease;}
.reveal.shown{opacity:1;transform:none;}

.elev-1{box-shadow:var(--shadow-soft);}
.elev-2{box-shadow:var(--shadow-win);}
.elev-3{box-shadow:var(--shadow-float);}

.u-break{overflow-wrap:anywhere;}

/* ==========================================================================
   响应式
   ========================================================================== */

@media (max-width:1080px){
  .hero{display:block;min-height:0;padding-top:6px;padding-bottom:56px;}
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:44px;}
  .hero-copy{max-width:none;}
  .hero-title{font-size:clamp(24px,7.4vw,30px);}
  .stage-holder{height:470px;overflow:hidden;}
  .stage{width:596px;transform:scale(.80);transform-origin:top left;}
}

@media (max-width:1000px){
  :root{--head-h:64px;}
  .head-inner{height:var(--head-h);gap:16px;}
  .main-nav{display:none;}
  .head-tools{margin-left:auto;}
  .nav-burger{display:inline-flex;}
  .foot-grid{grid-template-columns:1.4fr 1fr;gap:32px;}
}

@media (max-width:768px){
  .section{padding-top:64px;padding-bottom:64px;}
  .section--tight{padding-top:40px;padding-bottom:40px;}
  .foot-inner{padding-top:48px;}
}

@media (max-width:640px){
  :root{--gutter:16px;}
  .hero-title{font-size:clamp(24px,7.4vw,30px);}
  .hero-lead{font-size:15.5px;}
  .btn{height:48px;padding:0 22px;font-size:15px;}
  .plat-row{gap:14px 18px;}
  .stage-holder{height:330px;}
  .stage{transform:scale(.55);}
  .tilt{transform:none;}
  .lang-full{display:none;}
  .lang-short{display:inline;}
  .lang-btn{padding:7px 11px;}
  .foot-grid{grid-template-columns:minmax(0,1fr);gap:30px;}
  .foot-bottom{gap:10px 18px;}
  .foot-legal{margin-left:0;}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important;}
  .reveal{opacity:1;transform:none;}
}